Skip to content

Commit

Permalink
adjust generated api
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinOehlerkingCap committed Aug 8, 2024
1 parent 21d57fc commit d3d5150
Show file tree
Hide file tree
Showing 304 changed files with 32,333 additions and 25,742 deletions.
7 changes: 6 additions & 1 deletion openapitools-for-server.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"apiPackage": "api",
"enumNameSuffix": "",
"enumPropertyNaming": "UPPERCASE",
"modelPackage": "models",
"supportsES6": true,
"withInterfaces": true
"withInterfaces": true,
"withSeparateModelsAndApi": true
}
10 changes: 6 additions & 4 deletions src/modules/data/env-config/envConfigDefaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {

export const defaultConfigEnvs: ConfigResponse = {
NOT_AUTHENTICATED_REDIRECT_URL: "",
SC_THEME: SchulcloudTheme.Default,
SC_THEME: SchulcloudTheme.DEFAULT,
JWT_TIMEOUT_SECONDS: -1,
JWT_SHOW_TIMEOUT_WARNING_SECONDS: -1,
FEATURE_LERNSTORE_ENABLED: false,
Expand All @@ -18,9 +18,9 @@ export const defaultConfigEnvs: ConfigResponse = {
FEATURE_SCHOOL_SANIS_USER_MIGRATION_ENABLED: false,
GHOST_BASE_URL: "",
I18N__AVAILABLE_LANGUAGES: [],
I18N__FALLBACK_LANGUAGE: LanguageType.De,
I18N__DEFAULT_LANGUAGE: LanguageType.De,
I18N__DEFAULT_TIMEZONE: Timezone.EuropeBerlin,
I18N__FALLBACK_LANGUAGE: LanguageType.DE,
I18N__DEFAULT_LANGUAGE: LanguageType.DE,
I18N__DEFAULT_TIMEZONE: Timezone.EUROPE_BERLIN,
SC_TITLE: "",
FEATURE_SHOW_OUTDATED_USERS: false,
FEATURE_ENABLE_LDAP_SYNC_DURING_MIGRATION: false,
Expand Down Expand Up @@ -70,4 +70,6 @@ export const defaultConfigEnvs: ConfigResponse = {
FEATURE_MEDIA_SHELF_ENABLED: false,
BOARD_COLLABORATION_URI: "ws://localhost:4450",
FEATURE_SCHULCONNEX_MEDIA_LICENSE_ENABLED: false,
FEATURE_AI_TUTOR_ENABLED: false,
TRAINING_URL: "https://lernen.dbildungscloud.de",
};
8 changes: 4 additions & 4 deletions src/plugins/i18n.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ describe("i18n plugin", () => {
describe("when creating the i18n plugin", () => {
const setup = () => {
const envs = envsFactory.build({
I18N__DEFAULT_LANGUAGE: LanguageType.De,
I18N__FALLBACK_LANGUAGE: LanguageType.En,
I18N__DEFAULT_LANGUAGE: LanguageType.DE,
I18N__FALLBACK_LANGUAGE: LanguageType.EN,
});

useEnvConfigStore().setEnvs(envs);
Expand All @@ -29,8 +29,8 @@ describe("i18n plugin", () => {

const i18n = createI18n();

expect(unref(i18n.global.locale)).toEqual(LanguageType.De);
expect(unref(i18n.global.fallbackLocale)).toEqual(LanguageType.En);
expect(unref(i18n.global.locale)).toEqual(LanguageType.DE);
expect(unref(i18n.global.fallbackLocale)).toEqual(LanguageType.EN);
});

it("sets the number formats for all supported languages correctly", () => {
Expand Down
297 changes: 297 additions & 0 deletions src/serverApi/v3/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,305 @@
.npmignore
.openapi-generator-ignore
api.ts
api/account-api.ts
api/admin-students-api.ts
api/admin-teachers-api.ts
api/alert-api.ts
api/authentication-api.ts
api/authorization-api.ts
api/board-api.ts
api/board-card-api.ts
api/board-column-api.ts
api/board-element-api.ts
api/board-submission-api.ts
api/collaborative-storage-api.ts
api/collaborative-text-editor-api.ts
api/courses-api.ts
api/dashboard-api.ts
api/default-api.ts
api/group-api.ts
api/lesson-api.ts
api/me-api.ts
api/media-board-api.ts
api/media-element-api.ts
api/media-line-api.ts
api/meta-tag-extractor-api.ts
api/news-api.ts
api/oauth2-api.ts
api/pseudonym-api.ts
api/rooms-api.ts
api/school-api.ts
api/share-token-api.ts
api/ssoapi.ts
api/submission-api.ts
api/systems-api.ts
api/task-api.ts
api/tool-api.ts
api/user-api.ts
api/user-import-api.ts
api/user-login-migration-api.ts
api/user-login-migration-rollback-api.ts
api/video-conference-api.ts
base.ts
common.ts
configuration.ts
git_push.sh
index.ts
models/account-by-id-body-params.ts
models/account-response.ts
models/account-search-list-response.ts
models/action.ts
models/alert-response.ts
models/api-validation-error.ts
models/authorization-body-params.ts
models/authorization-context-params.ts
models/authorized-reponse.ts
models/basic-tool-config-params.ts
models/board-context-response.ts
models/board-element-response.ts
models/board-external-reference-type.ts
models/board-layout.ts
models/board-parent-type.ts
models/board-response.ts
models/card-list-response.ts
models/card-response.ts
models/card-skeleton-response.ts
models/change-language-params.ts
models/class-info-response.ts
models/class-info-search-list-response.ts
models/class-request-context.ts
models/class-response.ts
models/class-sort-query-type.ts
models/collaborative-text-editor-element-response.ts
models/collaborative-text-editor-parent-type.ts
models/collaborative-text-editor-response.ts
models/collapsable-body-params.ts
models/color-body-params.ts
models/column-response.ts
models/config-response.ts
models/consent-request-body.ts
models/consent-response.ts
models/consent-session-response.ts
models/consents-response.ts
models/content-element-type.ts
models/context-external-tool-body-params.ts
models/context-external-tool-configuration-status-response.ts
models/context-external-tool-configuration-template-list-response.ts
models/context-external-tool-configuration-template-response.ts
models/context-external-tool-count-per-context-response.ts
models/context-external-tool-post-params.ts
models/context-external-tool-response.ts
models/context-external-tool-search-list-response.ts
models/copy-api-response.ts
models/county-response.ts
models/course-export-body-params.ts
models/course-info-response.ts
models/course-metadata-list-response.ts
models/course-metadata-response.ts
models/create-board-body-params.ts
models/create-board-response.ts
models/create-card-body-params.ts
models/create-content-element-body-params.ts
models/create-media-element-body-params.ts
models/create-news-params.ts
models/create-submission-item-body-params.ts
models/custom-parameter-entry-param.ts
models/custom-parameter-entry-response.ts
models/custom-parameter-post-params.ts
models/custom-parameter-response.ts
models/dashboard-grid-element-response.ts
models/dashboard-grid-sub-element-response.ts
models/dashboard-response.ts
models/drawing-content-body.ts
models/drawing-element-content-body.ts
models/drawing-element-content.ts
models/drawing-element-response.ts
models/entity-not-found-error.ts
models/external-source-response.ts
models/external-tool-bulk-create-params.ts
models/external-tool-content-body.ts
models/external-tool-create-params.ts
models/external-tool-element-content-body.ts
models/external-tool-element-content.ts
models/external-tool-element-response.ts
models/external-tool-medium-params.ts
models/external-tool-medium-response.ts
models/external-tool-metadata-response.ts
models/external-tool-response.ts
models/external-tool-search-list-response.ts
models/external-tool-update-params.ts
models/federal-state-response.ts
models/file-content-body.ts
models/file-element-content-body.ts
models/file-element-content.ts
models/file-element-response.ts
models/file-storage-type.ts
models/forbidden-operation-error.ts
models/force-migration-params.ts
models/get-meta-tag-data-body.ts
models/group-list-response.ts
models/group-response.ts
models/group-user-response.ts
models/import-user-list-response.ts
models/import-user-response.ts
models/index.ts
models/instance-feature.ts
models/language-type.ts
models/layout-body-params.ts
models/ldap-authorization-body-params.ts
models/lesson-content-response.ts
models/lesson-copy-api-params.ts
models/lesson-metadata-list-response.ts
models/lesson-metadata-response.ts
models/lesson-response.ts
models/link-content-body.ts
models/link-element-content-body.ts
models/link-element-content.ts
models/link-element-response.ts
models/local-authorization-body-params.ts
models/login-request-body.ts
models/login-response.ts
models/lti-message-type.ts
models/lti-privacy-permission.ts
models/lti11-tool-config-create-params.ts
models/lti11-tool-config-update-params.ts
models/material-response.ts
models/me-account-response.ts
models/me-response.ts
models/me-role-response.ts
models/me-school-logo-response.ts
models/me-school-response.ts
models/me-user-response.ts
models/media-available-line-element-response.ts
models/media-available-line-response.ts
models/media-board-colors.ts
models/media-board-layout-type.ts
models/media-board-response.ts
models/media-external-tool-element-content.ts
models/media-external-tool-element-response.ts
models/media-line-response.ts
models/message-origin.ts
models/message.ts
models/meta-tag-extractor-response.ts
models/move-card-body-params.ts
models/move-column-body-params.ts
models/move-content-element-body.ts
models/move-element-body-params.ts
models/move-element-params.ts
models/move-element-position-params.ts
models/news-list-response.ts
models/news-response.ts
models/news-target-model.ts
models/oauth-client-create-body.ts
models/oauth-client-response.ts
models/oauth-client-update-body.ts
models/oauth-config-response.ts
models/oauth-token-dto.ts
models/oauth2-authorization-body-params.ts
models/oauth2-migration-params.ts
models/oauth2-tool-config-create-params.ts
models/oauth2-tool-config-update-params.ts
models/oidc-context-response.ts
models/parent-consent-response.ts
models/patch-group-params.ts
models/patch-my-account-params.ts
models/patch-my-password-params.ts
models/patch-order-params.ts
models/patch-visibility-params.ts
models/permission.ts
models/provider-config-response.ts
models/pseudonym-response.ts
models/public-system-list-response.ts
models/public-system-response.ts
models/redirect-response.ts
models/rename-body-params.ts
models/resolved-user-response.ts
models/rich-text-content-body.ts
models/rich-text-element-content-body.ts
models/rich-text-element-content.ts
models/rich-text-element-response.ts
models/rich-text.ts
models/role-name.ts
models/school-exists-response.ts
models/school-external-tool-configuration-status-response.ts
models/school-external-tool-configuration-template-list-response.ts
models/school-external-tool-configuration-template-response.ts
models/school-external-tool-metadata-response.ts
models/school-external-tool-post-params.ts
models/school-external-tool-response.ts
models/school-external-tool-search-list-response.ts
models/school-feature.ts
models/school-for-external-invite-response.ts
models/school-for-ldap-login-response.ts
models/school-info-response.ts
models/school-logo.ts
models/school-permissions-params.ts
models/school-purpose.ts
models/school-response.ts
models/school-system-response.ts
models/school-update-body-params.ts
models/school-year-query-type.ts
models/school-year-response.ts
models/schul-conne-xprovisioning-options-params.ts
models/schul-conne-xprovisioning-options-response.ts
models/schulcloud-theme.ts
models/set-height-body-params.ts
models/share-token-body-params.ts
models/share-token-import-body-params.ts
models/share-token-info-response.ts
models/share-token-payload-response.ts
models/share-token-response.ts
models/single-column-board-response.ts
models/student-permission-params.ts
models/submission-container-content-body.ts
models/submission-container-element-content-body.ts
models/submission-container-element-content.ts
models/submission-container-element-response.ts
models/submission-item-response.ts
models/submission-status-list-response.ts
models/submission-status-response.ts
models/submissions-response.ts
models/successful-response.ts
models/system-for-ldap-login-response.ts
models/system-type.ts
models/target-info-response.ts
models/task-copy-api-params.ts
models/task-list-response.ts
models/task-response.ts
models/task-status-response.ts
models/teacher-permission-params.ts
models/team-permissions-body.ts
models/timestamps-response.ts
models/timezone.ts
models/tool-config-type.ts
models/tool-context-type.ts
models/tool-context-types-list-response.ts
models/tool-launch-request-response.ts
models/tool-reference-list-response.ts
models/tool-reference-response.ts
models/update-board-title-params.ts
models/update-element-content-body-params.ts
models/update-flag-params.ts
models/update-match-params.ts
models/update-news-params.ts
models/update-submission-item-body-params.ts
models/user-consent-response.ts
models/user-data-response.ts
models/user-info-response.ts
models/user-list-response.ts
models/user-login-migration-mandatory-params.ts
models/user-login-migration-response.ts
models/user-login-migration-search-list-response.ts
models/user-match-list-response.ts
models/user-match-response.ts
models/user-response.ts
models/validation-error.ts
models/video-conference-create-params.ts
models/video-conference-info-response.ts
models/video-conference-join-response.ts
models/video-conference-options-response.ts
models/video-conference-scope.ts
models/video-conference-state-response.ts
models/visibility-body-params.ts
models/visibility-settings-response.ts
models/years-response.ts
Loading

0 comments on commit d3d5150

Please sign in to comment.