From 913faffa283c7553d3a8bdcd89cc429de4a004e7 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Wed, 5 Jun 2024 12:00:36 +0200 Subject: [PATCH 01/40] BC-6453 - Add authorization service client using OpenAPI --- .../server/src/infra/authorization/.gitignore | 4 + .../server/src/infra/authorization/.npmignore | 1 + .../authorization/.openapi-generator-ignore | 23 + .../authorization/.openapi-generator/FILES | 8 + .../authorization/.openapi-generator/VERSION | 1 + apps/server/src/infra/authorization/api.ts | 8359 +++++++++++++++++ apps/server/src/infra/authorization/base.ts | 86 + apps/server/src/infra/authorization/common.ts | 150 + .../src/infra/authorization/configuration.ts | 110 + .../src/infra/authorization/git_push.sh | 57 + apps/server/src/infra/authorization/index.ts | 18 + openapitools.json | 16 + package-lock.json | 274 +- package.json | 4 +- scripts/generate-client.js | 90 + 15 files changed, 9153 insertions(+), 48 deletions(-) create mode 100644 apps/server/src/infra/authorization/.gitignore create mode 100644 apps/server/src/infra/authorization/.npmignore create mode 100644 apps/server/src/infra/authorization/.openapi-generator-ignore create mode 100644 apps/server/src/infra/authorization/.openapi-generator/FILES create mode 100644 apps/server/src/infra/authorization/.openapi-generator/VERSION create mode 100644 apps/server/src/infra/authorization/api.ts create mode 100644 apps/server/src/infra/authorization/base.ts create mode 100644 apps/server/src/infra/authorization/common.ts create mode 100644 apps/server/src/infra/authorization/configuration.ts create mode 100644 apps/server/src/infra/authorization/git_push.sh create mode 100644 apps/server/src/infra/authorization/index.ts create mode 100644 openapitools.json create mode 100644 scripts/generate-client.js diff --git a/apps/server/src/infra/authorization/.gitignore b/apps/server/src/infra/authorization/.gitignore new file mode 100644 index 00000000000..149b5765472 --- /dev/null +++ b/apps/server/src/infra/authorization/.gitignore @@ -0,0 +1,4 @@ +wwwroot/*.js +node_modules +typings +dist diff --git a/apps/server/src/infra/authorization/.npmignore b/apps/server/src/infra/authorization/.npmignore new file mode 100644 index 00000000000..999d88df693 --- /dev/null +++ b/apps/server/src/infra/authorization/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/apps/server/src/infra/authorization/.openapi-generator-ignore b/apps/server/src/infra/authorization/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/apps/server/src/infra/authorization/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/apps/server/src/infra/authorization/.openapi-generator/FILES b/apps/server/src/infra/authorization/.openapi-generator/FILES new file mode 100644 index 00000000000..a80cd4f07b0 --- /dev/null +++ b/apps/server/src/infra/authorization/.openapi-generator/FILES @@ -0,0 +1,8 @@ +.gitignore +.npmignore +api.ts +base.ts +common.ts +configuration.ts +git_push.sh +index.ts diff --git a/apps/server/src/infra/authorization/.openapi-generator/VERSION b/apps/server/src/infra/authorization/.openapi-generator/VERSION new file mode 100644 index 00000000000..93c8ddab9fe --- /dev/null +++ b/apps/server/src/infra/authorization/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.6.0 diff --git a/apps/server/src/infra/authorization/api.ts b/apps/server/src/infra/authorization/api.ts new file mode 100644 index 00000000000..1789a6e8d6e --- /dev/null +++ b/apps/server/src/infra/authorization/api.ts @@ -0,0 +1,8359 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from './configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; +import type { RequestArgs } from './base'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; + +/** + * + * @export + * @interface AccountByIdBodyParams + */ +export interface AccountByIdBodyParams { + /** + * The new user name for the user. + * @type {string} + * @memberof AccountByIdBodyParams + */ + 'username'?: string | null; + /** + * The new password for the user. + * @type {string} + * @memberof AccountByIdBodyParams + */ + 'password'?: string | null; + /** + * The new activation state of the user. + * @type {boolean} + * @memberof AccountByIdBodyParams + */ + 'activated'?: boolean | null; +} +/** + * + * @export + * @interface AccountResponse + */ +export interface AccountResponse { + /** + * + * @type {string} + * @memberof AccountResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof AccountResponse + */ + 'username': string; + /** + * + * @type {string} + * @memberof AccountResponse + */ + 'userId': string; + /** + * + * @type {boolean} + * @memberof AccountResponse + */ + 'activated': boolean; + /** + * + * @type {string} + * @memberof AccountResponse + */ + 'updatedAt': string; +} +/** + * + * @export + * @interface AccountSearchListResponse + */ +export interface AccountSearchListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof AccountSearchListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof AccountSearchListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof AccountSearchListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof AccountSearchListResponse + */ + 'limit': number; +} +/** + * + * @export + * @enum {string} + */ + +export const Action = { + Read: 'read', + Write: 'write' +} as const; + +export type Action = typeof Action[keyof typeof Action]; + + +/** + * + * @export + * @interface AlertResponse + */ +export interface AlertResponse { + /** + * + * @type {Array} + * @memberof AlertResponse + */ + 'data': Array; +} +/** + * + * @export + * @interface ApiValidationError + */ +export interface ApiValidationError { + /** + * The response status code. + * @type {number} + * @memberof ApiValidationError + */ + 'code': number; + /** + * The error type. + * @type {string} + * @memberof ApiValidationError + */ + 'type': string; + /** + * The error title. + * @type {string} + * @memberof ApiValidationError + */ + 'title': string; + /** + * The error message. + * @type {string} + * @memberof ApiValidationError + */ + 'message': string; + /** + * The error details. + * @type {object} + * @memberof ApiValidationError + */ + 'details'?: object; +} +/** + * + * @export + * @interface AuthorizationBodyParams + */ +export interface AuthorizationBodyParams { + /** + * + * @type {AuthorizationContextParams} + * @memberof AuthorizationBodyParams + */ + 'context': AuthorizationContextParams; + /** + * The entity or domain object the operation should be performed on. + * @type {string} + * @memberof AuthorizationBodyParams + */ + 'referenceType': AuthorizationBodyParamsReferenceTypeEnum; + /** + * The id of the entity/domain object of the defined referenceType. + * @type {string} + * @memberof AuthorizationBodyParams + */ + 'referenceId': string; +} + +export const AuthorizationBodyParamsReferenceTypeEnum = { + Users: 'users', + Schools: 'schools', + Courses: 'courses', + Coursegroups: 'coursegroups', + Tasks: 'tasks', + Lessons: 'lessons', + Teams: 'teams', + Submissions: 'submissions', + SchoolExternalTools: 'school-external-tools', + Boardnodes: 'boardnodes', + ContextExternalTools: 'context-external-tools' +} as const; + +export type AuthorizationBodyParamsReferenceTypeEnum = typeof AuthorizationBodyParamsReferenceTypeEnum[keyof typeof AuthorizationBodyParamsReferenceTypeEnum]; + +/** + * + * @export + * @interface AuthorizationContextParams + */ +export interface AuthorizationContextParams { + /** + * + * @type {Action} + * @memberof AuthorizationContextParams + */ + 'action': Action; + /** + * User permissions that are needed to execute the operation. + * @type {Array} + * @memberof AuthorizationContextParams + */ + 'requiredPermissions': Array; +} + + +/** + * + * @export + * @interface AuthorizedReponse + */ +export interface AuthorizedReponse { + /** + * + * @type {string} + * @memberof AuthorizedReponse + */ + 'userId': string; + /** + * + * @type {boolean} + * @memberof AuthorizedReponse + */ + 'isAuthorized': boolean; +} +/** + * + * @export + * @interface BasicToolConfigParams + */ +export interface BasicToolConfigParams { + /** + * + * @type {string} + * @memberof BasicToolConfigParams + */ + 'type': string; + /** + * + * @type {string} + * @memberof BasicToolConfigParams + */ + 'baseUrl': string; +} +/** + * + * @export + * @interface BoardContextResponse + */ +export interface BoardContextResponse { + /** + * + * @type {string} + * @memberof BoardContextResponse + */ + 'id': string; + /** + * + * @type {BoardExternalReferenceType} + * @memberof BoardContextResponse + */ + 'type': BoardExternalReferenceType; +} + + +/** + * + * @export + * @interface BoardElementResponse + */ +export interface BoardElementResponse { + /** + * the type of the element in the content. For possible types, please refer to the enum + * @type {string} + * @memberof BoardElementResponse + */ + 'type': BoardElementResponseTypeEnum; + /** + * Content of the Board, either: a task or a lesson specific for the board + * @type {object} + * @memberof BoardElementResponse + */ + 'content': object; +} + +export const BoardElementResponseTypeEnum = { + Task: 'task', + Lesson: 'lesson', + ColumnBoard: 'column-board' +} as const; + +export type BoardElementResponseTypeEnum = typeof BoardElementResponseTypeEnum[keyof typeof BoardElementResponseTypeEnum]; + +/** + * + * @export + * @enum {string} + */ + +export const BoardExternalReferenceType = { + Course: 'course', + User: 'user' +} as const; + +export type BoardExternalReferenceType = typeof BoardExternalReferenceType[keyof typeof BoardExternalReferenceType]; + + +/** + * + * @export + * @enum {string} + */ + +export const BoardLayout = { + Columns: 'columns', + List: 'list' +} as const; + +export type BoardLayout = typeof BoardLayout[keyof typeof BoardLayout]; + + +/** + * + * @export + * @enum {string} + */ + +export const BoardParentType = { + Course: 'course', + User: 'user' +} as const; + +export type BoardParentType = typeof BoardParentType[keyof typeof BoardParentType]; + + +/** + * + * @export + * @interface BoardResponse + */ +export interface BoardResponse { + /** + * + * @type {string} + * @memberof BoardResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof BoardResponse + */ + 'title': string; + /** + * + * @type {Array} + * @memberof BoardResponse + */ + 'columns': Array; + /** + * + * @type {TimestampsResponse} + * @memberof BoardResponse + */ + 'timestamps': TimestampsResponse; + /** + * + * @type {boolean} + * @memberof BoardResponse + */ + 'isVisible': boolean; + /** + * + * @type {string} + * @memberof BoardResponse + */ + 'layout': string; +} +/** + * @type BoardSubmissionControllerCreateElement201Response + * @export + */ +export type BoardSubmissionControllerCreateElement201Response = FileElementResponse | RichTextElementResponse; + +/** + * @type CardControllerCreateElement201Response + * @export + */ +export type CardControllerCreateElement201Response = DrawingElementResponse | ExternalToolElementResponse | FileElementResponse | LinkElementResponse | RichTextElementResponse | SubmissionContainerElementResponse; + +/** + * + * @export + * @interface CardListResponse + */ +export interface CardListResponse { + /** + * + * @type {Array} + * @memberof CardListResponse + */ + 'data': Array; +} +/** + * + * @export + * @interface CardResponse + */ +export interface CardResponse { + /** + * + * @type {string} + * @memberof CardResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof CardResponse + */ + 'title'?: string; + /** + * + * @type {number} + * @memberof CardResponse + */ + 'height': number; + /** + * + * @type {Array} + * @memberof CardResponse + */ + 'elements': Array; + /** + * + * @type {VisibilitySettingsResponse} + * @memberof CardResponse + */ + 'visibilitySettings': VisibilitySettingsResponse; + /** + * + * @type {TimestampsResponse} + * @memberof CardResponse + */ + 'timestamps': TimestampsResponse; +} +/** + * @type CardResponseElementsInner + * @export + */ +export type CardResponseElementsInner = CollaborativeTextEditorElementResponse | DrawingElementResponse | ExternalToolElementResponse | FileElementResponse | LinkElementResponse | RichTextElementResponse | SubmissionContainerElementResponse; + +/** + * + * @export + * @interface CardSkeletonResponse + */ +export interface CardSkeletonResponse { + /** + * + * @type {string} + * @memberof CardSkeletonResponse + */ + 'cardId': string; + /** + * The approximate height of the referenced card. Intended to be used for prerendering purposes. Note, that different devices can lead to this value not being precise + * @type {number} + * @memberof CardSkeletonResponse + */ + 'height': number; +} +/** + * + * @export + * @interface ChangeLanguageParams + */ +export interface ChangeLanguageParams { + /** + * + * @type {LanguageType} + * @memberof ChangeLanguageParams + */ + 'language': LanguageType; +} + + +/** + * + * @export + * @interface ClassInfoResponse + */ +export interface ClassInfoResponse { + /** + * + * @type {string} + * @memberof ClassInfoResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof ClassInfoResponse + */ + 'type': ClassInfoResponseTypeEnum; + /** + * + * @type {string} + * @memberof ClassInfoResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof ClassInfoResponse + */ + 'externalSourceName'?: string; + /** + * + * @type {Array} + * @memberof ClassInfoResponse + */ + 'teacherNames': Array; + /** + * + * @type {string} + * @memberof ClassInfoResponse + */ + 'schoolYear'?: string; + /** + * + * @type {boolean} + * @memberof ClassInfoResponse + */ + 'isUpgradable'?: boolean; + /** + * + * @type {number} + * @memberof ClassInfoResponse + */ + 'studentCount': number; + /** + * + * @type {Array} + * @memberof ClassInfoResponse + */ + 'synchronizedCourses'?: Array; +} + +export const ClassInfoResponseTypeEnum = { + Class: 'class', + Group: 'group' +} as const; + +export type ClassInfoResponseTypeEnum = typeof ClassInfoResponseTypeEnum[keyof typeof ClassInfoResponseTypeEnum]; + +/** + * + * @export + * @interface ClassInfoSearchListResponse + */ +export interface ClassInfoSearchListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof ClassInfoSearchListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof ClassInfoSearchListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof ClassInfoSearchListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof ClassInfoSearchListResponse + */ + 'limit': number; +} +/** + * + * @export + * @enum {string} + */ + +export const ClassRequestContext = { + Course: 'course', + ClassOverview: 'class-overview' +} as const; + +export type ClassRequestContext = typeof ClassRequestContext[keyof typeof ClassRequestContext]; + + +/** + * + * @export + * @interface ClassResponse + */ +export interface ClassResponse { + /** + * + * @type {string} + * @memberof ClassResponse + */ + 'name': string; + /** + * + * @type {number} + * @memberof ClassResponse + */ + 'gradeLevel': number; +} +/** + * + * @export + * @enum {string} + */ + +export const ClassSortBy = { + Name: 'name', + ExternalSourceName: 'externalSourceName', + SynchronizedCourses: 'synchronizedCourses', + StudentCount: 'studentCount', + TeacherNames: 'teacherNames' +} as const; + +export type ClassSortBy = typeof ClassSortBy[keyof typeof ClassSortBy]; + + +/** + * + * @export + * @interface CollaborativeTextEditorElementResponse + */ +export interface CollaborativeTextEditorElementResponse { + /** + * + * @type {string} + * @memberof CollaborativeTextEditorElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof CollaborativeTextEditorElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {TimestampsResponse} + * @memberof CollaborativeTextEditorElementResponse + */ + 'timestamps': TimestampsResponse; + /** + * + * @type {object} + * @memberof CollaborativeTextEditorElementResponse + */ + 'content': object; +} + + +/** + * + * @export + * @enum {string} + */ + +export const CollaborativeTextEditorParentType = { + ContentElement: 'content-element' +} as const; + +export type CollaborativeTextEditorParentType = typeof CollaborativeTextEditorParentType[keyof typeof CollaborativeTextEditorParentType]; + + +/** + * + * @export + * @interface CollaborativeTextEditorResponse + */ +export interface CollaborativeTextEditorResponse { + /** + * + * @type {string} + * @memberof CollaborativeTextEditorResponse + */ + 'url': string; +} +/** + * + * @export + * @interface CollapsableBodyParams + */ +export interface CollapsableBodyParams { + /** + * + * @type {boolean} + * @memberof CollapsableBodyParams + */ + 'collapsed': boolean; +} +/** + * + * @export + * @interface ColorBodyParams + */ +export interface ColorBodyParams { + /** + * + * @type {MediaBoardColors} + * @memberof ColorBodyParams + */ + 'backgroundColor': MediaBoardColors; +} + + +/** + * + * @export + * @interface ColumnResponse + */ +export interface ColumnResponse { + /** + * + * @type {string} + * @memberof ColumnResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof ColumnResponse + */ + 'title': string; + /** + * + * @type {Array} + * @memberof ColumnResponse + */ + 'cards': Array; + /** + * + * @type {TimestampsResponse} + * @memberof ColumnResponse + */ + 'timestamps': TimestampsResponse; +} +/** + * + * @export + * @interface ConfigResponse + */ +export interface ConfigResponse { + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'ACCESSIBILITY_REPORT_EMAIL': string; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_NEW_SCHOOL_ADMINISTRATION_PAGE_AS_DEFAULT_ENABLED': boolean; + /** + * + * @type {number} + * @memberof ConfigResponse + */ + 'MIGRATION_END_GRACE_PERIOD_MS': number; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_CTL_TOOLS_TAB_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_LTI_TOOLS_TAB_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SHOW_OUTDATED_USERS': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_ENABLE_LDAP_SYNC_DURING_MIGRATION': boolean; + /** + * + * @type {number} + * @memberof ConfigResponse + */ + 'CTL_TOOLS_RELOAD_TIME_MS': number; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SHOW_NEW_CLASS_VIEW_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_CTL_TOOLS_COPY_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SHOW_MIGRATION_WIZARD': boolean; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'MIGRATION_WIZARD_DOCUMENTATION_LINK'?: string; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_TLDRAW_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'TLDRAW__ASSETS_ENABLED': boolean; + /** + * + * @type {number} + * @memberof ConfigResponse + */ + 'TLDRAW__ASSETS_MAX_SIZE': number; + /** + * + * @type {Array} + * @memberof ConfigResponse + */ + 'TLDRAW__ASSETS_ALLOWED_MIME_TYPES_LIST': Array; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'ADMIN_TABLES_DISPLAY_CONSENT_COLUMN': boolean; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'ALERT_STATUS_URL': string | null; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_ES_COLLECTIONS_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_EXTENSIONS_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_TEAMS_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_LERNSTORE_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_ADMIN_TOGGLE_STUDENT_LERNSTORE_VIEW_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'TEACHER_STUDENT_VISIBILITY__IS_CONFIGURABLE': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'TEACHER_STUDENT_VISIBILITY__IS_ENABLED_BY_DEFAULT': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'TEACHER_STUDENT_VISIBILITY__IS_VISIBLE': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SCHOOL_POLICY_ENABLED_NEW': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SCHOOL_TERMS_OF_USE_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_NEXBOARD_COPY_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_VIDEOCONFERENCE_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_SUBMISSIONS_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_COLLABORATIVE_TEXT_EDITOR_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_LINK_ELEMENT_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_EXTERNAL_TOOLS_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_SHARE': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_SOCKET_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COURSE_SHARE': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_LOGIN_LINK_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_LESSON_SHARE': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_TASK_SHARE': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_BOARD_LAYOUT_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_USER_MIGRATION_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COPY_SERVICE_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_CONSENT_NECESSARY': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COMMON_CARTRIDGE_COURSE_EXPORT_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COMMON_CARTRIDGE_COURSE_IMPORT_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SCHOOL_SANIS_USER_MIGRATION_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SCHULCONNEX_COURSE_SYNC_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_ALLOW_INSECURE_LDAP_URL_ENABLED': boolean; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'GHOST_BASE_URL': string; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'ROCKETCHAT_SERVICE_ENABLED': boolean; + /** + * + * @type {Array} + * @memberof ConfigResponse + */ + 'I18N__AVAILABLE_LANGUAGES': Array; + /** + * + * @type {LanguageType} + * @memberof ConfigResponse + */ + 'I18N__DEFAULT_LANGUAGE': LanguageType; + /** + * + * @type {LanguageType} + * @memberof ConfigResponse + */ + 'I18N__FALLBACK_LANGUAGE': LanguageType; + /** + * + * @type {Timezone} + * @memberof ConfigResponse + */ + 'I18N__DEFAULT_TIMEZONE': Timezone; + /** + * + * @type {number} + * @memberof ConfigResponse + */ + 'JWT_SHOW_TIMEOUT_WARNING_SECONDS': number; + /** + * + * @type {number} + * @memberof ConfigResponse + */ + 'JWT_TIMEOUT_SECONDS': number; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'NOT_AUTHENTICATED_REDIRECT_URL': string; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'DOCUMENT_BASE_DIR': string; + /** + * + * @type {SchulcloudTheme} + * @memberof ConfigResponse + */ + 'SC_THEME': SchulcloudTheme; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'SC_TITLE': string; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_MEDIA_SHELF_ENABLED': boolean; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'BOARD_COLLABORATION_URI': string; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_NEW_LAYOUT_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SCHULCONNEX_MEDIA_LICENSE_ENABLED': boolean; +} + + +/** + * + * @export + * @interface ConsentRequestBody + */ +export interface ConsentRequestBody { + /** + * The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to request_denied. + * @type {string} + * @memberof ConsentRequestBody + */ + 'error'?: string; + /** + * Debug contains information to help resolve the problem as a developer. Usually not exposed to the public but only in the server logs. + * @type {string} + * @memberof ConsentRequestBody + */ + 'error_debug'?: string; + /** + * Description of the error in a human readable format. + * @type {string} + * @memberof ConsentRequestBody + */ + 'error_description'?: string; + /** + * Hint to help resolve the error. + * @type {string} + * @memberof ConsentRequestBody + */ + 'error_hint'?: string; + /** + * Represents the HTTP status code of the error (e.g. 401 or 403). Defaults to 400. + * @type {number} + * @memberof ConsentRequestBody + */ + 'status_code'?: number; + /** + * The Oauth2 client id. + * @type {Array} + * @memberof ConsentRequestBody + */ + 'grant_scope'?: Array; + /** + * Remember, if set to true, tells the oauth provider to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. + * @type {boolean} + * @memberof ConsentRequestBody + */ + 'remember'?: boolean; + /** + * RememberFor sets how long the consent authorization should be remembered for in seconds. If set to 0, the authorization will be remembered indefinitely. + * @type {number} + * @memberof ConsentRequestBody + */ + 'remember_for'?: number; +} +/** + * + * @export + * @interface ConsentResponse + */ +export interface ConsentResponse { + /** + * ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session + * @type {string} + * @memberof ConsentResponse + */ + 'acr': string; + /** + * + * @type {Array} + * @memberof ConsentResponse + */ + 'amr'?: Array; + /** + * Is the id/authorization challenge of the consent authorization request. It is used to identify the session. + * @type {object} + * @memberof ConsentResponse + */ + 'challenge': object; + /** + * + * @type {OauthClientResponse} + * @memberof ConsentResponse + */ + 'client': OauthClientResponse; + /** + * + * @type {object} + * @memberof ConsentResponse + */ + 'context': object; + /** + * LoginChallenge is the login challenge this consent challenge belongs to. + * @type {string} + * @memberof ConsentResponse + */ + 'login_challenge': string; + /** + * LoginSessionID is the login session ID. + * @type {string} + * @memberof ConsentResponse + */ + 'login_session_id': string; + /** + * + * @type {OidcContextResponse} + * @memberof ConsentResponse + */ + 'oidc_context': OidcContextResponse; + /** + * RequestUrl is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. + * @type {string} + * @memberof ConsentResponse + */ + 'request_url': string; + /** + * + * @type {Array} + * @memberof ConsentResponse + */ + 'requested_access_token_audience'?: Array; + /** + * The request scopes of the login request. + * @type {Array} + * @memberof ConsentResponse + */ + 'requested_scope'?: Array; + /** + * Skip, if true, implies that the client has requested the same scopes from the same user previously. + * @type {boolean} + * @memberof ConsentResponse + */ + 'skip': boolean; + /** + * Subject is the user id of the end-user that is authenticated. + * @type {string} + * @memberof ConsentResponse + */ + 'subject': string; +} +/** + * + * @export + * @interface ConsentSessionResponse + */ +export interface ConsentSessionResponse { + /** + * The id of the client. + * @type {string} + * @memberof ConsentSessionResponse + */ + 'client_id': string; + /** + * The name of the client. + * @type {string} + * @memberof ConsentSessionResponse + */ + 'client_name': string; + /** + * The id/challenge of the consent authorization request. + * @type {string} + * @memberof ConsentSessionResponse + */ + 'challenge': string; +} +/** + * + * @export + * @interface ConsentsResponse + */ +export interface ConsentsResponse { + /** + * + * @type {UserConsentResponse} + * @memberof ConsentsResponse + */ + 'userConsent': UserConsentResponse; + /** + * + * @type {Array} + * @memberof ConsentsResponse + */ + 'parentConsents': Array; +} +/** + * + * @export + * @enum {string} + */ + +export const ContentElementType = { + File: 'file', + Drawing: 'drawing', + Link: 'link', + RichText: 'richText', + SubmissionContainer: 'submissionContainer', + ExternalTool: 'externalTool', + CollaborativeTextEditor: 'collaborativeTextEditor' +} as const; + +export type ContentElementType = typeof ContentElementType[keyof typeof ContentElementType]; + + +/** + * + * @export + * @interface ContextExternalToolBodyParams + */ +export interface ContextExternalToolBodyParams { + /** + * + * @type {string} + * @memberof ContextExternalToolBodyParams + */ + 'contextId': string; + /** + * + * @type {ToolContextType} + * @memberof ContextExternalToolBodyParams + */ + 'contextType': ToolContextType; +} + + +/** + * + * @export + * @interface ContextExternalToolConfigurationStatusResponse + */ +export interface ContextExternalToolConfigurationStatusResponse { + /** + * Is the tool outdated on school scope, because of non matching versions or required parameter changes on ExternalTool? + * @type {boolean} + * @memberof ContextExternalToolConfigurationStatusResponse + */ + 'isOutdatedOnScopeSchool': boolean; + /** + * Is the tool outdated on context scope, because of non matching versions or required parameter changes on SchoolExternalTool? + * @type {boolean} + * @memberof ContextExternalToolConfigurationStatusResponse + */ + 'isOutdatedOnScopeContext': boolean; + /** + * True, if a mandatory parameter on the context external tool is missing a value + * @type {boolean} + * @memberof ContextExternalToolConfigurationStatusResponse + */ + 'isIncompleteOnScopeContext': boolean; + /** + * True, if a optional parameter on the context external tool is missing a value. This is happening, when course is copied. + * @type {boolean} + * @memberof ContextExternalToolConfigurationStatusResponse + */ + 'isIncompleteOperationalOnScopeContext': boolean; + /** + * Is the tool deactivated, because of superhero or school administrator + * @type {boolean} + * @memberof ContextExternalToolConfigurationStatusResponse + */ + 'isDeactivated': boolean; + /** + * True if the tool is not licensed for user + * @type {boolean} + * @memberof ContextExternalToolConfigurationStatusResponse + */ + 'isNotLicensed': boolean; +} +/** + * + * @export + * @interface ContextExternalToolConfigurationTemplateListResponse + */ +export interface ContextExternalToolConfigurationTemplateListResponse { + /** + * + * @type {Array} + * @memberof ContextExternalToolConfigurationTemplateListResponse + */ + 'data': Array; +} +/** + * + * @export + * @interface ContextExternalToolConfigurationTemplateResponse + */ +export interface ContextExternalToolConfigurationTemplateResponse { + /** + * + * @type {string} + * @memberof ContextExternalToolConfigurationTemplateResponse + */ + 'externalToolId': string; + /** + * + * @type {string} + * @memberof ContextExternalToolConfigurationTemplateResponse + */ + 'schoolExternalToolId': string; + /** + * + * @type {string} + * @memberof ContextExternalToolConfigurationTemplateResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof ContextExternalToolConfigurationTemplateResponse + */ + 'logoUrl'?: string; + /** + * + * @type {Array} + * @memberof ContextExternalToolConfigurationTemplateResponse + */ + 'parameters': Array; +} +/** + * + * @export + * @interface ContextExternalToolCountPerContextResponse + */ +export interface ContextExternalToolCountPerContextResponse { + /** + * + * @type {number} + * @memberof ContextExternalToolCountPerContextResponse + */ + 'course': number; + /** + * + * @type {number} + * @memberof ContextExternalToolCountPerContextResponse + */ + 'boardElement': number; +} +/** + * + * @export + * @interface ContextExternalToolPostParams + */ +export interface ContextExternalToolPostParams { + /** + * + * @type {string} + * @memberof ContextExternalToolPostParams + */ + 'schoolToolId': string; + /** + * + * @type {string} + * @memberof ContextExternalToolPostParams + */ + 'contextId': string; + /** + * + * @type {string} + * @memberof ContextExternalToolPostParams + */ + 'contextType': string; + /** + * + * @type {string} + * @memberof ContextExternalToolPostParams + */ + 'displayName'?: string; + /** + * + * @type {Array} + * @memberof ContextExternalToolPostParams + */ + 'parameters'?: Array; +} +/** + * + * @export + * @interface ContextExternalToolResponse + */ +export interface ContextExternalToolResponse { + /** + * + * @type {string} + * @memberof ContextExternalToolResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof ContextExternalToolResponse + */ + 'schoolToolId': string; + /** + * + * @type {string} + * @memberof ContextExternalToolResponse + */ + 'contextId': string; + /** + * + * @type {string} + * @memberof ContextExternalToolResponse + */ + 'contextType': ContextExternalToolResponseContextTypeEnum; + /** + * + * @type {string} + * @memberof ContextExternalToolResponse + */ + 'displayName'?: string; + /** + * + * @type {Array} + * @memberof ContextExternalToolResponse + */ + 'parameters': Array; + /** + * + * @type {string} + * @memberof ContextExternalToolResponse + */ + 'logoUrl'?: string; +} + +export const ContextExternalToolResponseContextTypeEnum = { + Course: 'course', + BoardElement: 'board-element', + MediaBoard: 'media-board' +} as const; + +export type ContextExternalToolResponseContextTypeEnum = typeof ContextExternalToolResponseContextTypeEnum[keyof typeof ContextExternalToolResponseContextTypeEnum]; + +/** + * + * @export + * @interface ContextExternalToolSearchListResponse + */ +export interface ContextExternalToolSearchListResponse { + /** + * + * @type {Array} + * @memberof ContextExternalToolSearchListResponse + */ + 'data': Array; +} +/** + * + * @export + * @interface CopyApiResponse + */ +export interface CopyApiResponse { + /** + * Id of copied element + * @type {string} + * @memberof CopyApiResponse + */ + 'id'?: string; + /** + * Title of copied element + * @type {string} + * @memberof CopyApiResponse + */ + 'title'?: string; + /** + * Type of copied element + * @type {string} + * @memberof CopyApiResponse + */ + 'type': CopyApiResponseTypeEnum; + /** + * Id of destination course + * @type {string} + * @memberof CopyApiResponse + */ + 'destinationCourseId'?: string; + /** + * Copy progress status of copied element + * @type {string} + * @memberof CopyApiResponse + */ + 'status': CopyApiResponseStatusEnum; + /** + * List of included sub elements with recursive type structure + * @type {Array} + * @memberof CopyApiResponse + */ + 'elements'?: Array; +} + +export const CopyApiResponseTypeEnum = { + Board: 'BOARD', + Card: 'CARD', + CollaborativeTextEditorElement: 'COLLABORATIVE_TEXT_EDITOR_ELEMENT', + Column: 'COLUMN', + Columnboard: 'COLUMNBOARD', + Content: 'CONTENT', + Course: 'COURSE', + CoursegroupGroup: 'COURSEGROUP_GROUP', + ExternalTool: 'EXTERNAL_TOOL', + ExternalToolElement: 'EXTERNAL_TOOL_ELEMENT', + File: 'FILE', + FileElement: 'FILE_ELEMENT', + DrawingElement: 'DRAWING_ELEMENT', + FileGroup: 'FILE_GROUP', + Leaf: 'LEAF', + Lesson: 'LESSON', + LessonContentEtherpad: 'LESSON_CONTENT_ETHERPAD', + LessonContentGeogebra: 'LESSON_CONTENT_GEOGEBRA', + LessonContentGroup: 'LESSON_CONTENT_GROUP', + LessonContentLernstore: 'LESSON_CONTENT_LERNSTORE', + LessonContentNexboard: 'LESSON_CONTENT_NEXBOARD', + LessonContentTask: 'LESSON_CONTENT_TASK', + LessonContentText: 'LESSON_CONTENT_TEXT', + LernstoreMaterial: 'LERNSTORE_MATERIAL', + LernstoreMaterialGroup: 'LERNSTORE_MATERIAL_GROUP', + LinkElement: 'LINK_ELEMENT', + LtitoolGroup: 'LTITOOL_GROUP', + MediaBoard: 'MEDIA_BOARD', + MediaLine: 'MEDIA_LINE', + MediaExternalToolElement: 'MEDIA_EXTERNAL_TOOL_ELEMENT', + Metadata: 'METADATA', + RichtextElement: 'RICHTEXT_ELEMENT', + SubmissionContainerElement: 'SUBMISSION_CONTAINER_ELEMENT', + SubmissionItem: 'SUBMISSION_ITEM', + SubmissionGroup: 'SUBMISSION_GROUP', + Task: 'TASK', + TaskGroup: 'TASK_GROUP', + TimeGroup: 'TIME_GROUP', + UserGroup: 'USER_GROUP' +} as const; + +export type CopyApiResponseTypeEnum = typeof CopyApiResponseTypeEnum[keyof typeof CopyApiResponseTypeEnum]; +export const CopyApiResponseStatusEnum = { + Success: 'success', + Failure: 'failure', + NotDoing: 'not-doing', + NotImplemented: 'not-implemented', + Partial: 'partial' +} as const; + +export type CopyApiResponseStatusEnum = typeof CopyApiResponseStatusEnum[keyof typeof CopyApiResponseStatusEnum]; + +/** + * + * @export + * @interface CountyResponse + */ +export interface CountyResponse { + /** + * + * @type {string} + * @memberof CountyResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof CountyResponse + */ + 'name': string; + /** + * + * @type {number} + * @memberof CountyResponse + */ + 'countyId': number; + /** + * + * @type {string} + * @memberof CountyResponse + */ + 'antaresKey': string; +} +/** + * + * @export + * @interface CourseExportBodyParams + */ +export interface CourseExportBodyParams { + /** + * The list of ids of topics which should be exported. If empty no topics are exported. + * @type {Array} + * @memberof CourseExportBodyParams + */ + 'topics': Array; + /** + * The list of ids of tasks which should be exported. If empty no tasks are exported. + * @type {Array} + * @memberof CourseExportBodyParams + */ + 'tasks': Array; + /** + * The list of ids of column boards which should be exported. If empty no column boards are exported. + * @type {Array} + * @memberof CourseExportBodyParams + */ + 'columnBoards': Array; +} +/** + * + * @export + * @interface CourseInfoResponse + */ +export interface CourseInfoResponse { + /** + * + * @type {string} + * @memberof CourseInfoResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof CourseInfoResponse + */ + 'name': string; +} +/** + * + * @export + * @interface CourseMetadataListResponse + */ +export interface CourseMetadataListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof CourseMetadataListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof CourseMetadataListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof CourseMetadataListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof CourseMetadataListResponse + */ + 'limit': number; +} +/** + * + * @export + * @interface CourseMetadataResponse + */ +export interface CourseMetadataResponse { + /** + * The id of the Grid element + * @type {string} + * @memberof CourseMetadataResponse + */ + 'id': string; + /** + * Title of the Grid element + * @type {string} + * @memberof CourseMetadataResponse + */ + 'title': string; + /** + * Short title of the Grid element + * @type {string} + * @memberof CourseMetadataResponse + */ + 'shortTitle': string; + /** + * Color of the Grid element + * @type {string} + * @memberof CourseMetadataResponse + */ + 'displayColor': string; + /** + * Start date of the course + * @type {string} + * @memberof CourseMetadataResponse + */ + 'startDate'?: string; + /** + * End date of the course. After this the course counts as archived + * @type {string} + * @memberof CourseMetadataResponse + */ + 'untilDate'?: string; + /** + * Start of the copying process if it is still ongoing - otherwise property is not set. + * @type {string} + * @memberof CourseMetadataResponse + */ + 'copyingSince'?: string; +} +/** + * + * @export + * @interface CreateBoardBodyParams + */ +export interface CreateBoardBodyParams { + /** + * The title of the board + * @type {string} + * @memberof CreateBoardBodyParams + */ + 'title': string; + /** + * The id of the parent + * @type {string} + * @memberof CreateBoardBodyParams + */ + 'parentId': string; + /** + * + * @type {BoardParentType} + * @memberof CreateBoardBodyParams + */ + 'parentType': BoardParentType; + /** + * + * @type {BoardLayout} + * @memberof CreateBoardBodyParams + */ + 'layout': BoardLayout; +} + + +/** + * + * @export + * @interface CreateBoardResponse + */ +export interface CreateBoardResponse { + /** + * + * @type {string} + * @memberof CreateBoardResponse + */ + 'id': string; +} +/** + * + * @export + * @interface CreateCardBodyParams + */ +export interface CreateCardBodyParams { + /** + * + * @type {Array} + * @memberof CreateCardBodyParams + */ + 'requiredEmptyElements'?: Array; +} + +export const CreateCardBodyParamsRequiredEmptyElementsEnum = { + File: 'file', + Drawing: 'drawing', + Link: 'link', + RichText: 'richText', + SubmissionContainer: 'submissionContainer', + ExternalTool: 'externalTool', + CollaborativeTextEditor: 'collaborativeTextEditor' +} as const; + +export type CreateCardBodyParamsRequiredEmptyElementsEnum = typeof CreateCardBodyParamsRequiredEmptyElementsEnum[keyof typeof CreateCardBodyParamsRequiredEmptyElementsEnum]; + +/** + * + * @export + * @interface CreateContentElementBodyParams + */ +export interface CreateContentElementBodyParams { + /** + * + * @type {ContentElementType} + * @memberof CreateContentElementBodyParams + */ + 'type': ContentElementType; + /** + * to bring element to a specific position, default is last position + * @type {number} + * @memberof CreateContentElementBodyParams + */ + 'toPosition'?: number; +} + + +/** + * + * @export + * @interface CreateMediaElementBodyParams + */ +export interface CreateMediaElementBodyParams { + /** + * The id of the line where the element is created + * @type {string} + * @memberof CreateMediaElementBodyParams + */ + 'lineId': string; + /** + * The position where the element is created + * @type {number} + * @memberof CreateMediaElementBodyParams + */ + 'position': number; + /** + * The id of the school external tool + * @type {string} + * @memberof CreateMediaElementBodyParams + */ + 'schoolExternalToolId': string; +} +/** + * + * @export + * @interface CreateNewsParams + */ +export interface CreateNewsParams { + /** + * Title of the News entity + * @type {string} + * @memberof CreateNewsParams + */ + 'title': string; + /** + * Content of the News entity + * @type {string} + * @memberof CreateNewsParams + */ + 'content': string; + /** + * The point in time from when the News entity schould be displayed. Defaults to now so that the news is published + * @type {string} + * @memberof CreateNewsParams + */ + 'displayAt'?: string; + /** + * Target model to which the News entity is related + * @type {string} + * @memberof CreateNewsParams + */ + 'targetModel': CreateNewsParamsTargetModelEnum; + /** + * Specific target id to which the News entity is related + * @type {string} + * @memberof CreateNewsParams + */ + 'targetId': string; +} + +export const CreateNewsParamsTargetModelEnum = { + Schools: 'schools', + Courses: 'courses', + Teams: 'teams' +} as const; + +export type CreateNewsParamsTargetModelEnum = typeof CreateNewsParamsTargetModelEnum[keyof typeof CreateNewsParamsTargetModelEnum]; + +/** + * + * @export + * @interface CreateSubmissionItemBodyParams + */ +export interface CreateSubmissionItemBodyParams { + /** + * Boolean indicating whether the submission is completed. + * @type {boolean} + * @memberof CreateSubmissionItemBodyParams + */ + 'completed': boolean; +} +/** + * + * @export + * @interface CustomParameterEntryParam + */ +export interface CustomParameterEntryParam { + /** + * + * @type {string} + * @memberof CustomParameterEntryParam + */ + 'name': string; + /** + * + * @type {string} + * @memberof CustomParameterEntryParam + */ + 'value'?: string; +} +/** + * + * @export + * @interface CustomParameterEntryResponse + */ +export interface CustomParameterEntryResponse { + /** + * + * @type {string} + * @memberof CustomParameterEntryResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof CustomParameterEntryResponse + */ + 'value'?: string; +} +/** + * + * @export + * @interface CustomParameterPostParams + */ +export interface CustomParameterPostParams { + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'name': string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'defaultValue'?: string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'regex'?: string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'regexComment'?: string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'scope': string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'location': string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'type': string; + /** + * + * @type {boolean} + * @memberof CustomParameterPostParams + */ + 'isOptional': boolean; + /** + * + * @type {boolean} + * @memberof CustomParameterPostParams + */ + 'isProtected': boolean; +} +/** + * + * @export + * @interface CustomParameterResponse + */ +export interface CustomParameterResponse { + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'defaultValue'?: string; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'regex'?: string; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'regexComment'?: string; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'scope': CustomParameterResponseScopeEnum; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'location': CustomParameterResponseLocationEnum; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'type': CustomParameterResponseTypeEnum; + /** + * + * @type {boolean} + * @memberof CustomParameterResponse + */ + 'isOptional': boolean; + /** + * + * @type {boolean} + * @memberof CustomParameterResponse + */ + 'isProtected': boolean; +} + +export const CustomParameterResponseScopeEnum = { + Global: 'global', + School: 'school', + Context: 'context' +} as const; + +export type CustomParameterResponseScopeEnum = typeof CustomParameterResponseScopeEnum[keyof typeof CustomParameterResponseScopeEnum]; +export const CustomParameterResponseLocationEnum = { + Path: 'path', + Body: 'body', + Query: 'query' +} as const; + +export type CustomParameterResponseLocationEnum = typeof CustomParameterResponseLocationEnum[keyof typeof CustomParameterResponseLocationEnum]; +export const CustomParameterResponseTypeEnum = { + String: 'string', + Number: 'number', + Boolean: 'boolean', + AutoContextid: 'auto_contextid', + AutoContextname: 'auto_contextname', + AutoSchoolid: 'auto_schoolid', + AutoSchoolnumber: 'auto_schoolnumber', + AutoMediumid: 'auto_mediumid' +} as const; + +export type CustomParameterResponseTypeEnum = typeof CustomParameterResponseTypeEnum[keyof typeof CustomParameterResponseTypeEnum]; + +/** + * + * @export + * @interface DashboardGridElementResponse + */ +export interface DashboardGridElementResponse { + /** + * The id of the Grid element + * @type {string} + * @memberof DashboardGridElementResponse + */ + 'id': string; + /** + * Title of the Grid element + * @type {string} + * @memberof DashboardGridElementResponse + */ + 'title': string; + /** + * Short title of the Grid element + * @type {string} + * @memberof DashboardGridElementResponse + */ + 'shortTitle': string; + /** + * Color of the Grid element + * @type {string} + * @memberof DashboardGridElementResponse + */ + 'displayColor': string; + /** + * X position of the Grid element + * @type {number} + * @memberof DashboardGridElementResponse + */ + 'xPosition': number; + /** + * Y position of the Grid element + * @type {number} + * @memberof DashboardGridElementResponse + */ + 'yPosition': number; + /** + * The id of the group element + * @type {string} + * @memberof DashboardGridElementResponse + */ + 'groupId': string; + /** + * List of all subelements in the group + * @type {Array} + * @memberof DashboardGridElementResponse + */ + 'groupElements': Array; + /** + * Start of the copying process if it is still ongoing - otherwise property is not set. + * @type {string} + * @memberof DashboardGridElementResponse + */ + 'copyingSince': string; + /** + * Is the course synchronized with a group? + * @type {boolean} + * @memberof DashboardGridElementResponse + */ + 'isSynchronized': boolean; +} +/** + * + * @export + * @interface DashboardGridSubElementResponse + */ +export interface DashboardGridSubElementResponse { + /** + * The id of the Grid element + * @type {string} + * @memberof DashboardGridSubElementResponse + */ + 'id': string; + /** + * Title of the Grid element + * @type {string} + * @memberof DashboardGridSubElementResponse + */ + 'title': string; + /** + * Short title of the Grid element + * @type {string} + * @memberof DashboardGridSubElementResponse + */ + 'shortTitle': string; + /** + * Color of the Grid element + * @type {string} + * @memberof DashboardGridSubElementResponse + */ + 'displayColor': string; +} +/** + * + * @export + * @interface DashboardResponse + */ +export interface DashboardResponse { + /** + * The id of the Dashboard entity + * @type {string} + * @memberof DashboardResponse + */ + 'id': string; + /** + * List of all elements visible on the dashboard + * @type {Array} + * @memberof DashboardResponse + */ + 'gridElements': Array; +} +/** + * + * @export + * @interface DrawingContentBody + */ +export interface DrawingContentBody { + /** + * + * @type {string} + * @memberof DrawingContentBody + */ + 'description': string; +} +/** + * + * @export + * @interface DrawingElementContent + */ +export interface DrawingElementContent { + /** + * + * @type {string} + * @memberof DrawingElementContent + */ + 'description': string; +} +/** + * + * @export + * @interface DrawingElementContentBody + */ +export interface DrawingElementContentBody { + /** + * + * @type {ContentElementType} + * @memberof DrawingElementContentBody + */ + 'type': ContentElementType; + /** + * + * @type {DrawingContentBody} + * @memberof DrawingElementContentBody + */ + 'content': DrawingContentBody; +} + + +/** + * + * @export + * @interface DrawingElementResponse + */ +export interface DrawingElementResponse { + /** + * + * @type {string} + * @memberof DrawingElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof DrawingElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {TimestampsResponse} + * @memberof DrawingElementResponse + */ + 'timestamps': TimestampsResponse; + /** + * + * @type {DrawingElementContent} + * @memberof DrawingElementResponse + */ + 'content': DrawingElementContent; +} + + +/** + * + * @export + * @interface EntityNotFoundError + */ +export interface EntityNotFoundError { + /** + * The response status code. + * @type {number} + * @memberof EntityNotFoundError + */ + 'code': number; + /** + * The error type. + * @type {string} + * @memberof EntityNotFoundError + */ + 'type': string; + /** + * The error title. + * @type {string} + * @memberof EntityNotFoundError + */ + 'title': string; + /** + * The error message. + * @type {string} + * @memberof EntityNotFoundError + */ + 'message': string; + /** + * The error details. + * @type {object} + * @memberof EntityNotFoundError + */ + 'details'?: object; +} +/** + * + * @export + * @interface ExternalSourceResponse + */ +export interface ExternalSourceResponse { + /** + * + * @type {string} + * @memberof ExternalSourceResponse + */ + 'externalId': string; + /** + * + * @type {string} + * @memberof ExternalSourceResponse + */ + 'systemId': string; +} +/** + * + * @export + * @interface ExternalToolBulkCreateParams + */ +export interface ExternalToolBulkCreateParams { + /** + * List of external tools + * @type {Array} + * @memberof ExternalToolBulkCreateParams + */ + 'data': Array; +} +/** + * + * @export + * @interface ExternalToolContentBody + */ +export interface ExternalToolContentBody { + /** + * + * @type {string} + * @memberof ExternalToolContentBody + */ + 'contextExternalToolId'?: string; +} +/** + * + * @export + * @interface ExternalToolCreateParams + */ +export interface ExternalToolCreateParams { + /** + * Name of the external tool + * @type {string} + * @memberof ExternalToolCreateParams + */ + 'name': string; + /** + * Description of the external tool + * @type {string} + * @memberof ExternalToolCreateParams + */ + 'description'?: string; + /** + * URL of the external tool + * @type {string} + * @memberof ExternalToolCreateParams + */ + 'url'?: string; + /** + * URL of the logo of the external tool + * @type {string} + * @memberof ExternalToolCreateParams + */ + 'logoUrl'?: string; + /** + * + * @type {ExternalToolResponseConfig} + * @memberof ExternalToolCreateParams + */ + 'config': ExternalToolResponseConfig; + /** + * Custom parameters of the external tool + * @type {Array} + * @memberof ExternalToolCreateParams + */ + 'parameters'?: Array; + /** + * Tool can be hidden, those tools cant be added to e.g. school, course or board + * @type {boolean} + * @memberof ExternalToolCreateParams + */ + 'isHidden': boolean; + /** + * Tool can be deactivated, related tools can not be added to e.g. school, course or board anymore + * @type {boolean} + * @memberof ExternalToolCreateParams + */ + 'isDeactivated': boolean; + /** + * Tool should be opened in a new tab + * @type {boolean} + * @memberof ExternalToolCreateParams + */ + 'openNewTab': boolean; + /** + * Restrict tools to specific contexts + * @type {Array} + * @memberof ExternalToolCreateParams + */ + 'restrictToContexts'?: Array; + /** + * Medium of the external tool + * @type {ExternalToolMediumParams} + * @memberof ExternalToolCreateParams + */ + 'medium'?: ExternalToolMediumParams; +} +/** + * + * @export + * @interface ExternalToolElementContent + */ +export interface ExternalToolElementContent { + /** + * + * @type {string} + * @memberof ExternalToolElementContent + */ + 'contextExternalToolId': string | null; +} +/** + * + * @export + * @interface ExternalToolElementContentBody + */ +export interface ExternalToolElementContentBody { + /** + * + * @type {ContentElementType} + * @memberof ExternalToolElementContentBody + */ + 'type': ContentElementType; + /** + * + * @type {ExternalToolContentBody} + * @memberof ExternalToolElementContentBody + */ + 'content': ExternalToolContentBody; +} + + +/** + * + * @export + * @interface ExternalToolElementResponse + */ +export interface ExternalToolElementResponse { + /** + * + * @type {string} + * @memberof ExternalToolElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof ExternalToolElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {ExternalToolElementContent} + * @memberof ExternalToolElementResponse + */ + 'content': ExternalToolElementContent; + /** + * + * @type {TimestampsResponse} + * @memberof ExternalToolElementResponse + */ + 'timestamps': TimestampsResponse; +} + + +/** + * + * @export + * @interface ExternalToolMediumParams + */ +export interface ExternalToolMediumParams { + /** + * Id of the medium + * @type {string} + * @memberof ExternalToolMediumParams + */ + 'mediumId': string; + /** + * Publisher of the medium + * @type {string} + * @memberof ExternalToolMediumParams + */ + 'publisher'?: string; + /** + * The id of the media source + * @type {string} + * @memberof ExternalToolMediumParams + */ + 'mediaSourceId'?: string; +} +/** + * + * @export + * @interface ExternalToolMediumResponse + */ +export interface ExternalToolMediumResponse { + /** + * Id of the medium + * @type {string} + * @memberof ExternalToolMediumResponse + */ + 'mediumId': string; + /** + * Publisher of the medium + * @type {string} + * @memberof ExternalToolMediumResponse + */ + 'publisher'?: string; + /** + * The id of the media source + * @type {string} + * @memberof ExternalToolMediumResponse + */ + 'mediaSourceId'?: string; +} +/** + * + * @export + * @interface ExternalToolMetadataResponse + */ +export interface ExternalToolMetadataResponse { + /** + * + * @type {number} + * @memberof ExternalToolMetadataResponse + */ + 'schoolExternalToolCount': number; + /** + * + * @type {ContextExternalToolCountPerContextResponse} + * @memberof ExternalToolMetadataResponse + */ + 'contextExternalToolCountPerContext': ContextExternalToolCountPerContextResponse; +} +/** + * + * @export + * @interface ExternalToolResponse + */ +export interface ExternalToolResponse { + /** + * Id of the external tool + * @type {string} + * @memberof ExternalToolResponse + */ + 'id': string; + /** + * Name of the external tool + * @type {string} + * @memberof ExternalToolResponse + */ + 'name': string; + /** + * Description of the external tool + * @type {string} + * @memberof ExternalToolResponse + */ + 'description'?: string; + /** + * URL of the external tool + * @type {string} + * @memberof ExternalToolResponse + */ + 'url'?: string; + /** + * URL of the logo of the external tool + * @type {string} + * @memberof ExternalToolResponse + */ + 'logoUrl'?: string; + /** + * + * @type {ExternalToolResponseConfig} + * @memberof ExternalToolResponse + */ + 'config': ExternalToolResponseConfig; + /** + * Custom parameters of the external tool + * @type {Array} + * @memberof ExternalToolResponse + */ + 'parameters': Array; + /** + * Is the external tool hidden + * @type {boolean} + * @memberof ExternalToolResponse + */ + 'isHidden': boolean; + /** + * Is the external tool deactivated + * @type {boolean} + * @memberof ExternalToolResponse + */ + 'isDeactivated': boolean; + /** + * Should the external tool be opened in a new tab + * @type {boolean} + * @memberof ExternalToolResponse + */ + 'openNewTab': boolean; + /** + * Contexts in which the external tool is restricted + * @type {Array} + * @memberof ExternalToolResponse + */ + 'restrictToContexts'?: Array; + /** + * Medium of the external tool + * @type {ExternalToolMediumResponse} + * @memberof ExternalToolResponse + */ + 'medium'?: ExternalToolMediumResponse; +} +/** + * @type ExternalToolResponseConfig + * Configuration of the external tool + * @export + */ +export type ExternalToolResponseConfig = BasicToolConfigParams | Lti11ToolConfigCreateParams | Oauth2ToolConfigCreateParams; + +/** + * + * @export + * @interface ExternalToolSearchListResponse + */ +export interface ExternalToolSearchListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof ExternalToolSearchListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof ExternalToolSearchListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof ExternalToolSearchListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof ExternalToolSearchListResponse + */ + 'limit': number; +} +/** + * + * @export + * @interface ExternalToolUpdateParams + */ +export interface ExternalToolUpdateParams { + /** + * ID of the external tool + * @type {string} + * @memberof ExternalToolUpdateParams + */ + 'id': string; + /** + * + * @type {string} + * @memberof ExternalToolUpdateParams + */ + 'name': string; + /** + * Description of the external tool + * @type {string} + * @memberof ExternalToolUpdateParams + */ + 'description'?: string; + /** + * URL of the external tool + * @type {string} + * @memberof ExternalToolUpdateParams + */ + 'url'?: string; + /** + * URL of the logo of the external tool + * @type {string} + * @memberof ExternalToolUpdateParams + */ + 'logoUrl'?: string; + /** + * + * @type {ExternalToolUpdateParamsConfig} + * @memberof ExternalToolUpdateParams + */ + 'config': ExternalToolUpdateParamsConfig; + /** + * Custom parameters of the external tool + * @type {Array} + * @memberof ExternalToolUpdateParams + */ + 'parameters'?: Array; + /** + * + * @type {boolean} + * @memberof ExternalToolUpdateParams + */ + 'isHidden': boolean; + /** + * Tool can be deactivated, related tools can not be added to e.g. school, course or board anymore + * @type {boolean} + * @memberof ExternalToolUpdateParams + */ + 'isDeactivated': boolean; + /** + * Open the tool in a new tab + * @type {boolean} + * @memberof ExternalToolUpdateParams + */ + 'openNewTab': boolean; + /** + * Restrict the tool to certain contexts + * @type {Array} + * @memberof ExternalToolUpdateParams + */ + 'restrictToContexts'?: Array; + /** + * Medium of the external tool + * @type {ExternalToolMediumParams} + * @memberof ExternalToolUpdateParams + */ + 'medium'?: ExternalToolMediumParams; +} +/** + * @type ExternalToolUpdateParamsConfig + * Configuration of the external tool + * @export + */ +export type ExternalToolUpdateParamsConfig = BasicToolConfigParams | Lti11ToolConfigUpdateParams | Oauth2ToolConfigUpdateParams; + +/** + * + * @export + * @interface FederalStateResponse + */ +export interface FederalStateResponse { + /** + * + * @type {string} + * @memberof FederalStateResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof FederalStateResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof FederalStateResponse + */ + 'abbreviation': string; + /** + * + * @type {string} + * @memberof FederalStateResponse + */ + 'logoUrl': string; + /** + * + * @type {Array} + * @memberof FederalStateResponse + */ + 'counties': Array; +} +/** + * + * @export + * @interface FileContentBody + */ +export interface FileContentBody { + /** + * + * @type {string} + * @memberof FileContentBody + */ + 'caption': string; + /** + * + * @type {string} + * @memberof FileContentBody + */ + 'alternativeText': string; +} +/** + * + * @export + * @interface FileElementContent + */ +export interface FileElementContent { + /** + * + * @type {string} + * @memberof FileElementContent + */ + 'caption': string; + /** + * + * @type {string} + * @memberof FileElementContent + */ + 'alternativeText': string; +} +/** + * + * @export + * @interface FileElementContentBody + */ +export interface FileElementContentBody { + /** + * + * @type {ContentElementType} + * @memberof FileElementContentBody + */ + 'type': ContentElementType; + /** + * + * @type {FileContentBody} + * @memberof FileElementContentBody + */ + 'content': FileContentBody; +} + + +/** + * + * @export + * @interface FileElementResponse + */ +export interface FileElementResponse { + /** + * + * @type {string} + * @memberof FileElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof FileElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {FileElementContent} + * @memberof FileElementResponse + */ + 'content': FileElementContent; + /** + * + * @type {TimestampsResponse} + * @memberof FileElementResponse + */ + 'timestamps': TimestampsResponse; +} + + +/** + * + * @export + * @enum {string} + */ + +export const FileStorageType = { + AwsS3: 'awsS3' +} as const; + +export type FileStorageType = typeof FileStorageType[keyof typeof FileStorageType]; + + +/** + * + * @export + * @interface ForbiddenOperationError + */ +export interface ForbiddenOperationError { + /** + * The response status code. + * @type {number} + * @memberof ForbiddenOperationError + */ + 'code': number; + /** + * The error type. + * @type {string} + * @memberof ForbiddenOperationError + */ + 'type': string; + /** + * The error title. + * @type {string} + * @memberof ForbiddenOperationError + */ + 'title': string; + /** + * The error message. + * @type {string} + * @memberof ForbiddenOperationError + */ + 'message': string; + /** + * The error details. + * @type {object} + * @memberof ForbiddenOperationError + */ + 'details'?: object; +} +/** + * + * @export + * @interface GetMetaTagDataBody + */ +export interface GetMetaTagDataBody { + /** + * + * @type {string} + * @memberof GetMetaTagDataBody + */ + 'url': string; +} +/** + * + * @export + * @interface GroupListResponse + */ +export interface GroupListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof GroupListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof GroupListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof GroupListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof GroupListResponse + */ + 'limit': number; +} +/** + * + * @export + * @interface GroupResponse + */ +export interface GroupResponse { + /** + * + * @type {string} + * @memberof GroupResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof GroupResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof GroupResponse + */ + 'type': GroupResponseTypeEnum; + /** + * + * @type {Array} + * @memberof GroupResponse + */ + 'users': Array; + /** + * + * @type {ExternalSourceResponse} + * @memberof GroupResponse + */ + 'externalSource'?: ExternalSourceResponse; + /** + * + * @type {string} + * @memberof GroupResponse + */ + 'organizationId'?: string; +} + +export const GroupResponseTypeEnum = { + Class: 'class', + Course: 'course', + Other: 'other' +} as const; + +export type GroupResponseTypeEnum = typeof GroupResponseTypeEnum[keyof typeof GroupResponseTypeEnum]; + +/** + * + * @export + * @interface GroupUserResponse + */ +export interface GroupUserResponse { + /** + * + * @type {string} + * @memberof GroupUserResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof GroupUserResponse + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof GroupUserResponse + */ + 'lastName': string; + /** + * + * @type {RoleName} + * @memberof GroupUserResponse + */ + 'role': RoleName; +} + + +/** + * + * @export + * @interface ImportUserListResponse + */ +export interface ImportUserListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof ImportUserListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof ImportUserListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof ImportUserListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof ImportUserListResponse + */ + 'limit': number; +} +/** + * + * @export + * @interface ImportUserResponse + */ +export interface ImportUserResponse { + /** + * id reference to a import user + * @type {string} + * @memberof ImportUserResponse + */ + 'importUserId': string; + /** + * login name from external system + * @type {string} + * @memberof ImportUserResponse + */ + 'loginName': string; + /** + * external systems user firstname + * @type {string} + * @memberof ImportUserResponse + */ + 'firstName': string; + /** + * external systems user lastname + * @type {string} + * @memberof ImportUserResponse + */ + 'lastName': string; + /** + * list of user roles from external system: student, teacher, admin + * @type {Array} + * @memberof ImportUserResponse + */ + 'roleNames': Array; + /** + * names of classes the user attends from external system + * @type {Array} + * @memberof ImportUserResponse + */ + 'classNames': Array; + /** + * assignemnt to a local user account + * @type {UserMatchResponse} + * @memberof ImportUserResponse + */ + 'match'?: UserMatchResponse; + /** + * manual flag to apply it as filter + * @type {boolean} + * @memberof ImportUserResponse + */ + 'flagged': boolean; +} + +export const ImportUserResponseRoleNamesEnum = { + Student: 'student', + Teacher: 'teacher', + Admin: 'admin' +} as const; + +export type ImportUserResponseRoleNamesEnum = typeof ImportUserResponseRoleNamesEnum[keyof typeof ImportUserResponseRoleNamesEnum]; + +/** + * + * @export + * @interface LayoutBodyParams + */ +export interface LayoutBodyParams { + /** + * + * @type {MediaBoardLayoutType} + * @memberof LayoutBodyParams + */ + 'layout': MediaBoardLayoutType; +} + + +/** + * + * @export + * @interface LdapAuthorizationBodyParams + */ +export interface LdapAuthorizationBodyParams { + /** + * + * @type {string} + * @memberof LdapAuthorizationBodyParams + */ + 'systemId': string; + /** + * + * @type {string} + * @memberof LdapAuthorizationBodyParams + */ + 'username': string; + /** + * + * @type {string} + * @memberof LdapAuthorizationBodyParams + */ + 'password': string; + /** + * + * @type {string} + * @memberof LdapAuthorizationBodyParams + */ + 'schoolId': string; +} +/** + * + * @export + * @interface LessonContentResponse + */ +export interface LessonContentResponse { + /** + * + * @type {object} + * @memberof LessonContentResponse + */ + 'content': object; + /** + * The id of the Material entity + * @type {string} + * @memberof LessonContentResponse + * @deprecated + */ + '_id': string; + /** + * The id of the Material entity + * @type {string} + * @memberof LessonContentResponse + */ + 'id': string; + /** + * Title of the Material entity + * @type {string} + * @memberof LessonContentResponse + */ + 'title': string; + /** + * + * @type {string} + * @memberof LessonContentResponse + */ + 'component': LessonContentResponseComponentEnum; + /** + * + * @type {boolean} + * @memberof LessonContentResponse + */ + 'hidden': boolean; +} + +export const LessonContentResponseComponentEnum = { + Etherpad: 'Etherpad', + GeoGebra: 'geoGebra', + Internal: 'internal', + Resources: 'resources', + Text: 'text', + NeXboard: 'neXboard' +} as const; + +export type LessonContentResponseComponentEnum = typeof LessonContentResponseComponentEnum[keyof typeof LessonContentResponseComponentEnum]; + +/** + * + * @export + * @interface LessonCopyApiParams + */ +export interface LessonCopyApiParams { + /** + * Destination course parent Id the lesson is copied to + * @type {string} + * @memberof LessonCopyApiParams + */ + 'courseId'?: string; +} +/** + * + * @export + * @interface LessonMetadataListResponse + */ +export interface LessonMetadataListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof LessonMetadataListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof LessonMetadataListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof LessonMetadataListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof LessonMetadataListResponse + */ + 'limit': number; +} +/** + * + * @export + * @interface LessonMetadataResponse + */ +export interface LessonMetadataResponse { + /** + * The id of the Lesson entity + * @type {string} + * @memberof LessonMetadataResponse + */ + '_id': string; + /** + * Name of the Lesson entity + * @type {string} + * @memberof LessonMetadataResponse + */ + 'name': string; +} +/** + * + * @export + * @interface LessonResponse + */ +export interface LessonResponse { + /** + * The id of the Lesson entity + * @type {string} + * @memberof LessonResponse + * @deprecated + */ + '_id': string; + /** + * The id of the Lesson entity + * @type {string} + * @memberof LessonResponse + */ + 'id': string; + /** + * Name of the Lesson entity + * @type {string} + * @memberof LessonResponse + */ + 'name': string; + /** + * The id of the Course entity + * @type {string} + * @memberof LessonResponse + */ + 'courseId'?: string; + /** + * The id of the Course-group entity + * @type {string} + * @memberof LessonResponse + */ + 'courseGroupId'?: string; + /** + * Hidden status of the Lesson entity + * @type {boolean} + * @memberof LessonResponse + */ + 'hidden': boolean; + /** + * Position of the Lesson entity + * @type {number} + * @memberof LessonResponse + */ + 'position': number; + /** + * Contents of the Lesson entity + * @type {Array} + * @memberof LessonResponse + */ + 'contents': Array; + /** + * Materials of the Lesson entity + * @type {Array} + * @memberof LessonResponse + */ + 'materials': Array; +} +/** + * + * @export + * @interface LinkContentBody + */ +export interface LinkContentBody { + /** + * + * @type {string} + * @memberof LinkContentBody + */ + 'url': string; + /** + * + * @type {string} + * @memberof LinkContentBody + */ + 'title': string; + /** + * + * @type {string} + * @memberof LinkContentBody + */ + 'description': string; + /** + * + * @type {string} + * @memberof LinkContentBody + */ + 'imageUrl': string; +} +/** + * + * @export + * @interface LinkElementContent + */ +export interface LinkElementContent { + /** + * + * @type {string} + * @memberof LinkElementContent + */ + 'url': string; + /** + * + * @type {string} + * @memberof LinkElementContent + */ + 'title': string; + /** + * + * @type {string} + * @memberof LinkElementContent + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof LinkElementContent + */ + 'imageUrl'?: string; +} +/** + * + * @export + * @interface LinkElementContentBody + */ +export interface LinkElementContentBody { + /** + * + * @type {ContentElementType} + * @memberof LinkElementContentBody + */ + 'type': ContentElementType; + /** + * + * @type {LinkContentBody} + * @memberof LinkElementContentBody + */ + 'content': LinkContentBody; +} + + +/** + * + * @export + * @interface LinkElementResponse + */ +export interface LinkElementResponse { + /** + * + * @type {string} + * @memberof LinkElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof LinkElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {LinkElementContent} + * @memberof LinkElementResponse + */ + 'content': LinkElementContent; + /** + * + * @type {TimestampsResponse} + * @memberof LinkElementResponse + */ + 'timestamps': TimestampsResponse; +} + + +/** + * + * @export + * @interface LocalAuthorizationBodyParams + */ +export interface LocalAuthorizationBodyParams { + /** + * + * @type {string} + * @memberof LocalAuthorizationBodyParams + */ + 'username': string; + /** + * + * @type {string} + * @memberof LocalAuthorizationBodyParams + */ + 'password': string; +} +/** + * + * @export + * @interface LoginRequestBody + */ +export interface LoginRequestBody { + /** + * The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to request_denied. + * @type {string} + * @memberof LoginRequestBody + */ + 'error'?: string; + /** + * Debug contains information to help resolve the problem as a developer. Usually not exposed to the public but only in the server logs. + * @type {string} + * @memberof LoginRequestBody + */ + 'error_debug'?: string; + /** + * Description of the error in a human readable format. + * @type {string} + * @memberof LoginRequestBody + */ + 'error_description'?: string; + /** + * Hint to help resolve the error. + * @type {string} + * @memberof LoginRequestBody + */ + 'error_hint'?: string; + /** + * Represents the HTTP status code of the error (e.g. 401 or 403). Defaults to 400. + * @type {number} + * @memberof LoginRequestBody + */ + 'status_code'?: number; + /** + * Remember, if set to true, tells the oauth provider to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. + * @type {boolean} + * @memberof LoginRequestBody + */ + 'remember'?: boolean; + /** + * RememberFor sets how long the consent authorization should be remembered for in seconds. If set to 0, the authorization will be remembered indefinitely. + * @type {number} + * @memberof LoginRequestBody + */ + 'remember_for'?: number; +} +/** + * + * @export + * @interface LoginResponse + */ +export interface LoginResponse { + /** + * Id of the corresponding client. + * @type {string} + * @memberof LoginResponse + */ + 'client_id': string; + /** + * The id/challenge of the consent login request. + * @type {object} + * @memberof LoginResponse + */ + 'challenge': object; + /** + * + * @type {object} + * @memberof LoginResponse + */ + 'client': object; + /** + * + * @type {OidcContextResponse} + * @memberof LoginResponse + */ + 'oidc_context': OidcContextResponse; + /** + * The original oauth2.0 authorization url request by the client. + * @type {string} + * @memberof LoginResponse + */ + 'request_url': string; + /** + * + * @type {Array} + * @memberof LoginResponse + */ + 'requested_access_token_audience': Array; + /** + * The request scopes of the login request. + * @type {Array} + * @memberof LoginResponse + */ + 'requested_scope'?: Array; + /** + * The login session id. This parameter is used as sid for the oidc front-/backchannel logout. + * @type {string} + * @memberof LoginResponse + */ + 'session_id': string; + /** + * Skip, if true, implies that the client has requested the same scopes from the same user previously. + * @type {object} + * @memberof LoginResponse + */ + 'skip': object; + /** + * User id of the end-user that is authenticated. + * @type {object} + * @memberof LoginResponse + */ + 'subject': object; +} +/** + * + * @export + * @interface Lti11ToolConfigCreateParams + */ +export interface Lti11ToolConfigCreateParams { + /** + * + * @type {ToolConfigType} + * @memberof Lti11ToolConfigCreateParams + */ + 'type': ToolConfigType; + /** + * + * @type {string} + * @memberof Lti11ToolConfigCreateParams + */ + 'baseUrl': string; + /** + * + * @type {string} + * @memberof Lti11ToolConfigCreateParams + */ + 'key': string; + /** + * + * @type {string} + * @memberof Lti11ToolConfigCreateParams + */ + 'secret': string; + /** + * + * @type {LtiMessageType} + * @memberof Lti11ToolConfigCreateParams + */ + 'lti_message_type': LtiMessageType; + /** + * + * @type {LtiPrivacyPermission} + * @memberof Lti11ToolConfigCreateParams + */ + 'privacy_permission': LtiPrivacyPermission; + /** + * + * @type {string} + * @memberof Lti11ToolConfigCreateParams + */ + 'launch_presentation_locale': string; +} + + +/** + * + * @export + * @interface Lti11ToolConfigUpdateParams + */ +export interface Lti11ToolConfigUpdateParams { + /** + * + * @type {ToolConfigType} + * @memberof Lti11ToolConfigUpdateParams + */ + 'type': ToolConfigType; + /** + * + * @type {string} + * @memberof Lti11ToolConfigUpdateParams + */ + 'baseUrl': string; + /** + * + * @type {string} + * @memberof Lti11ToolConfigUpdateParams + */ + 'key': string; + /** + * + * @type {string} + * @memberof Lti11ToolConfigUpdateParams + */ + 'secret'?: string; + /** + * + * @type {LtiMessageType} + * @memberof Lti11ToolConfigUpdateParams + */ + 'lti_message_type': LtiMessageType; + /** + * + * @type {LtiPrivacyPermission} + * @memberof Lti11ToolConfigUpdateParams + */ + 'privacy_permission': LtiPrivacyPermission; + /** + * + * @type {string} + * @memberof Lti11ToolConfigUpdateParams + */ + 'launch_presentation_locale': string; +} + + +/** + * + * @export + * @enum {string} + */ + +export const LtiMessageType = { + BasicLtiLaunchRequest: 'basic-lti-launch-request' +} as const; + +export type LtiMessageType = typeof LtiMessageType[keyof typeof LtiMessageType]; + + +/** + * + * @export + * @enum {string} + */ + +export const LtiPrivacyPermission = { + Anonymous: 'anonymous', + EMail: 'e-mail', + Name: 'name', + Public: 'public', + Pseudonymous: 'pseudonymous' +} as const; + +export type LtiPrivacyPermission = typeof LtiPrivacyPermission[keyof typeof LtiPrivacyPermission]; + + +/** + * + * @export + * @interface MaterialResponse + */ +export interface MaterialResponse { + /** + * The id of the Material entity + * @type {string} + * @memberof MaterialResponse + */ + '_id': string; + /** + * The id of the Material entity + * @type {string} + * @memberof MaterialResponse + */ + 'id': string; + /** + * Title of the Material entity + * @type {string} + * @memberof MaterialResponse + */ + 'title': string; + /** + * ? + * @type {Array} + * @memberof MaterialResponse + */ + 'relatedResources': Array; + /** + * Url of the material + * @type {string} + * @memberof MaterialResponse + */ + 'url': string; + /** + * Position of the Lesson entity + * @type {string} + * @memberof MaterialResponse + */ + 'client': string; + /** + * Description of the material license + * @type {Array} + * @memberof MaterialResponse + */ + 'license': Array; + /** + * For material from Merlin, the Merlin reference + * @type {string} + * @memberof MaterialResponse + */ + 'merlinReference': string; +} +/** + * + * @export + * @interface MeAccountResponse + */ +export interface MeAccountResponse { + /** + * + * @type {string} + * @memberof MeAccountResponse + */ + 'id': string; +} +/** + * + * @export + * @interface MeResponse + */ +export interface MeResponse { + /** + * + * @type {MeSchoolResponse} + * @memberof MeResponse + */ + 'school': MeSchoolResponse; + /** + * + * @type {MeUserResponse} + * @memberof MeResponse + */ + 'user': MeUserResponse; + /** + * + * @type {Array} + * @memberof MeResponse + */ + 'roles': Array; + /** + * + * @type {Array} + * @memberof MeResponse + */ + 'permissions': Array; + /** + * + * @type {LanguageType} + * @memberof MeResponse + */ + 'language': LanguageType; + /** + * + * @type {MeAccountResponse} + * @memberof MeResponse + */ + 'account': MeAccountResponse; +} + + +/** + * + * @export + * @interface MeRoleResponse + */ +export interface MeRoleResponse { + /** + * + * @type {string} + * @memberof MeRoleResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof MeRoleResponse + */ + 'name': string; +} +/** + * + * @export + * @interface MeSchoolLogoResponse + */ +export interface MeSchoolLogoResponse { + /** + * + * @type {string} + * @memberof MeSchoolLogoResponse + */ + 'url'?: string; + /** + * + * @type {string} + * @memberof MeSchoolLogoResponse + */ + 'name'?: string; +} +/** + * + * @export + * @interface MeSchoolResponse + */ +export interface MeSchoolResponse { + /** + * + * @type {string} + * @memberof MeSchoolResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof MeSchoolResponse + */ + 'name': string; + /** + * + * @type {MeSchoolLogoResponse} + * @memberof MeSchoolResponse + */ + 'logo': MeSchoolLogoResponse; +} +/** + * + * @export + * @interface MeUserResponse + */ +export interface MeUserResponse { + /** + * + * @type {string} + * @memberof MeUserResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof MeUserResponse + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof MeUserResponse + */ + 'lastName': string; + /** + * + * @type {string} + * @memberof MeUserResponse + */ + 'customAvatarBackgroundColor'?: string; +} +/** + * + * @export + * @interface MediaAvailableLineElementResponse + */ +export interface MediaAvailableLineElementResponse { + /** + * School External tool id of the media available line element + * @type {string} + * @memberof MediaAvailableLineElementResponse + */ + 'schoolExternalToolId': string; + /** + * Name of the media available line element + * @type {string} + * @memberof MediaAvailableLineElementResponse + */ + 'name': string; + /** + * Description of the media available line element + * @type {string} + * @memberof MediaAvailableLineElementResponse + */ + 'description'?: string; + /** + * Logo url of the media available line element + * @type {string} + * @memberof MediaAvailableLineElementResponse + */ + 'logoUrl'?: string; +} +/** + * + * @export + * @interface MediaAvailableLineResponse + */ +export interface MediaAvailableLineResponse { + /** + * Available media elements in the line + * @type {Array} + * @memberof MediaAvailableLineResponse + */ + 'elements': Array; + /** + * + * @type {MediaBoardColors} + * @memberof MediaAvailableLineResponse + */ + 'backgroundColor': MediaBoardColors; + /** + * Collapse available media line + * @type {boolean} + * @memberof MediaAvailableLineResponse + */ + 'collapsed': boolean; +} + + +/** + * + * @export + * @enum {string} + */ + +export const MediaBoardColors = { + Transparent: 'transparent', + Red: 'red', + Pink: 'pink', + Purple: 'purple', + DeepPurple: 'deepPurple', + Indigo: 'indigo', + Blue: 'blue', + LightBlue: 'lightBlue', + Cyan: 'cyan', + Teal: 'teal', + Green: 'green', + LightGreen: 'lightGreen', + Lime: 'lime', + Yellow: 'yellow', + Amber: 'amber', + Orange: 'orange', + DeepOrange: 'deepOrange', + Brown: 'brown', + Grey: 'grey', + BlueGrey: 'blueGrey' +} as const; + +export type MediaBoardColors = typeof MediaBoardColors[keyof typeof MediaBoardColors]; + + +/** + * + * @export + * @enum {string} + */ + +export const MediaBoardLayoutType = { + Grid: 'grid', + List: 'list' +} as const; + +export type MediaBoardLayoutType = typeof MediaBoardLayoutType[keyof typeof MediaBoardLayoutType]; + + +/** + * + * @export + * @interface MediaBoardResponse + */ +export interface MediaBoardResponse { + /** + * The id of the media board + * @type {string} + * @memberof MediaBoardResponse + */ + 'id': string; + /** + * The lines of the media board + * @type {Array} + * @memberof MediaBoardResponse + */ + 'lines': Array; + /** + * The timestamps of the media board + * @type {TimestampsResponse} + * @memberof MediaBoardResponse + */ + 'timestamps': TimestampsResponse; + /** + * + * @type {MediaBoardLayoutType} + * @memberof MediaBoardResponse + */ + 'layout': MediaBoardLayoutType; +} + + +/** + * + * @export + * @interface MediaExternalToolElementContent + */ +export interface MediaExternalToolElementContent { + /** + * The id of the context external tool + * @type {string} + * @memberof MediaExternalToolElementContent + */ + 'contextExternalToolId': string; +} +/** + * + * @export + * @interface MediaExternalToolElementResponse + */ +export interface MediaExternalToolElementResponse { + /** + * The id of the media external tool element + * @type {string} + * @memberof MediaExternalToolElementResponse + */ + 'id': string; + /** + * The content of the media external tool element + * @type {MediaExternalToolElementContent} + * @memberof MediaExternalToolElementResponse + */ + 'content': MediaExternalToolElementContent; + /** + * The timestamps of the media external tool element + * @type {TimestampsResponse} + * @memberof MediaExternalToolElementResponse + */ + 'timestamps': TimestampsResponse; +} +/** + * + * @export + * @interface MediaLineResponse + */ +export interface MediaLineResponse { + /** + * The id of the media line + * @type {string} + * @memberof MediaLineResponse + */ + 'id': string; + /** + * The title of the media line + * @type {string} + * @memberof MediaLineResponse + */ + 'title': string; + /** + * The elements of the media line + * @type {Array} + * @memberof MediaLineResponse + */ + 'elements': Array; + /** + * The timestamps of the media line + * @type {TimestampsResponse} + * @memberof MediaLineResponse + */ + 'timestamps': TimestampsResponse; + /** + * + * @type {MediaBoardColors} + * @memberof MediaLineResponse + */ + 'backgroundColor': MediaBoardColors; + /** + * Collapse the media line + * @type {boolean} + * @memberof MediaLineResponse + */ + 'collapsed': boolean; +} + + +/** + * + * @export + * @interface Message + */ +export interface Message { + /** + * + * @type {string} + * @memberof Message + */ + 'title': string; + /** + * + * @type {string} + * @memberof Message + */ + 'text': string; + /** + * + * @type {string} + * @memberof Message + */ + 'timestamp': string; + /** + * + * @type {MessageOrigin} + * @memberof Message + */ + 'origin': MessageOrigin; + /** + * + * @type {string} + * @memberof Message + */ + 'url': string; + /** + * + * @type {string} + * @memberof Message + */ + 'status': string; + /** + * + * @type {string} + * @memberof Message + */ + 'createdAt': string; +} +/** + * + * @export + * @interface MessageOrigin + */ +export interface MessageOrigin { + /** + * + * @type {number} + * @memberof MessageOrigin + */ + 'message_id': number; + /** + * + * @type {string} + * @memberof MessageOrigin + */ + 'page': string; +} +/** + * + * @export + * @interface MetaTagExtractorResponse + */ +export interface MetaTagExtractorResponse { + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'url': string; + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'title': string; + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'description': string; + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'imageUrl': string; + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'type': string; + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'parentTitle': string; + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'parentType': string; +} +/** + * + * @export + * @interface MoveCardBodyParams + */ +export interface MoveCardBodyParams { + /** + * + * @type {string} + * @memberof MoveCardBodyParams + */ + 'toColumnId': string; + /** + * + * @type {number} + * @memberof MoveCardBodyParams + */ + 'toPosition': number; +} +/** + * + * @export + * @interface MoveColumnBodyParams + */ +export interface MoveColumnBodyParams { + /** + * The id of the target board + * @type {string} + * @memberof MoveColumnBodyParams + */ + 'toBoardId': string; + /** + * + * @type {number} + * @memberof MoveColumnBodyParams + */ + 'toPosition': number; +} +/** + * + * @export + * @interface MoveContentElementBody + */ +export interface MoveContentElementBody { + /** + * + * @type {string} + * @memberof MoveContentElementBody + */ + 'toCardId': string; + /** + * + * @type {number} + * @memberof MoveContentElementBody + */ + 'toPosition': number; +} +/** + * + * @export + * @interface MoveElementBodyParams + */ +export interface MoveElementBodyParams { + /** + * The id of the line where the element is moved to + * @type {string} + * @memberof MoveElementBodyParams + */ + 'toLineId': string; + /** + * The position where the element is moved to + * @type {number} + * @memberof MoveElementBodyParams + */ + 'toPosition': number; +} +/** + * + * @export + * @interface MoveElementParams + */ +export interface MoveElementParams { + /** + * + * @type {MoveElementPositionParams} + * @memberof MoveElementParams + */ + 'from': MoveElementPositionParams; + /** + * + * @type {MoveElementPositionParams} + * @memberof MoveElementParams + */ + 'to': MoveElementPositionParams; +} +/** + * + * @export + * @interface MoveElementPositionParams + */ +export interface MoveElementPositionParams { + /** + * + * @type {number} + * @memberof MoveElementPositionParams + */ + 'x': number; + /** + * + * @type {number} + * @memberof MoveElementPositionParams + */ + 'y': number; + /** + * used to identify a position within a group. + * @type {number} + * @memberof MoveElementPositionParams + */ + 'groupIndex'?: number; +} +/** + * + * @export + * @interface NewsListResponse + */ +export interface NewsListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof NewsListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof NewsListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof NewsListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof NewsListResponse + */ + 'limit': number; +} +/** + * + * @export + * @interface NewsResponse + */ +export interface NewsResponse { + /** + * The id of the News entity + * @type {string} + * @memberof NewsResponse + */ + 'id': string; + /** + * Title of the News entity + * @type {string} + * @memberof NewsResponse + */ + 'title': string; + /** + * Content of the News entity + * @type {string} + * @memberof NewsResponse + */ + 'content': string; + /** + * The point in time from when the News entity schould be displayed + * @type {string} + * @memberof NewsResponse + */ + 'displayAt': string; + /** + * The type of source of the News entity + * @type {string} + * @memberof NewsResponse + */ + 'source'?: NewsResponseSourceEnum; + /** + * The source description of the News entity + * @type {string} + * @memberof NewsResponse + */ + 'sourceDescription'?: string; + /** + * + * @type {NewsTargetModel} + * @memberof NewsResponse + */ + 'targetModel': NewsTargetModel; + /** + * Specific target id to which the News entity is related + * @type {string} + * @memberof NewsResponse + */ + 'targetId': string; + /** + * The target object with id and name, could be the school, team, or course name + * @type {TargetInfoResponse} + * @memberof NewsResponse + */ + 'target': TargetInfoResponse; + /** + * The School ownership + * @type {SchoolInfoResponse} + * @memberof NewsResponse + */ + 'school': SchoolInfoResponse; + /** + * Reference to the User that created the News entity + * @type {UserInfoResponse} + * @memberof NewsResponse + */ + 'creator': UserInfoResponse; + /** + * Reference to the User that updated the News entity + * @type {UserInfoResponse} + * @memberof NewsResponse + */ + 'updater'?: UserInfoResponse; + /** + * The creation timestamp + * @type {string} + * @memberof NewsResponse + */ + 'createdAt': string; + /** + * The update timestamp + * @type {string} + * @memberof NewsResponse + */ + 'updatedAt': string; + /** + * List of permissions the current user has for the News entity + * @type {Array} + * @memberof NewsResponse + */ + 'permissions': Array; +} + +export const NewsResponseSourceEnum = { + Internal: 'internal', + Rss: 'rss' +} as const; + +export type NewsResponseSourceEnum = typeof NewsResponseSourceEnum[keyof typeof NewsResponseSourceEnum]; + +/** + * + * @export + * @enum {string} + */ + +export const NewsTargetModel = { + Schools: 'schools', + Courses: 'courses', + Teams: 'teams' +} as const; + +export type NewsTargetModel = typeof NewsTargetModel[keyof typeof NewsTargetModel]; + + +/** + * + * @export + * @interface OAuthTokenDto + */ +export interface OAuthTokenDto { + /** + * + * @type {string} + * @memberof OAuthTokenDto + */ + 'idToken': string; + /** + * + * @type {string} + * @memberof OAuthTokenDto + */ + 'refreshToken': string; + /** + * + * @type {string} + * @memberof OAuthTokenDto + */ + 'accessToken': string; +} +/** + * + * @export + * @interface Oauth2AuthorizationBodyParams + */ +export interface Oauth2AuthorizationBodyParams { + /** + * + * @type {string} + * @memberof Oauth2AuthorizationBodyParams + */ + 'redirectUri': string; + /** + * + * @type {string} + * @memberof Oauth2AuthorizationBodyParams + */ + 'code': string; + /** + * + * @type {string} + * @memberof Oauth2AuthorizationBodyParams + */ + 'systemId': string; +} +/** + * + * @export + * @interface Oauth2MigrationParams + */ +export interface Oauth2MigrationParams { + /** + * + * @type {string} + * @memberof Oauth2MigrationParams + */ + 'redirectUri': string; + /** + * + * @type {string} + * @memberof Oauth2MigrationParams + */ + 'code': string; + /** + * + * @type {string} + * @memberof Oauth2MigrationParams + */ + 'systemId': string; +} +/** + * + * @export + * @interface Oauth2ToolConfigCreateParams + */ +export interface Oauth2ToolConfigCreateParams { + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'type': string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'baseUrl': string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'clientId': string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'clientSecret': string; + /** + * + * @type {boolean} + * @memberof Oauth2ToolConfigCreateParams + */ + 'skipConsent': boolean; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'frontchannelLogoutUri'?: string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'scope'?: string; + /** + * + * @type {Array} + * @memberof Oauth2ToolConfigCreateParams + */ + 'redirectUris': Array; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'tokenEndpointAuthMethod': string; +} +/** + * + * @export + * @interface Oauth2ToolConfigUpdateParams + */ +export interface Oauth2ToolConfigUpdateParams { + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'type': string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'baseUrl': string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'clientId': string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'clientSecret'?: string; + /** + * + * @type {boolean} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'skipConsent': boolean; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'frontchannelLogoutUri'?: string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'scope'?: string; + /** + * + * @type {Array} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'redirectUris': Array; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'tokenEndpointAuthMethod': string; +} +/** + * + * @export + * @interface OauthClientBody + */ +export interface OauthClientBody { + /** + * The Oauth2 client id. + * @type {string} + * @memberof OauthClientBody + */ + 'client_id'?: string; + /** + * The Oauth2 client name. + * @type {string} + * @memberof OauthClientBody + */ + 'client_name'?: string; + /** + * The Oauth2 client secret. + * @type {string} + * @memberof OauthClientBody + */ + 'client_secret'?: string; + /** + * The allowed redirect urls of the Oauth2 client. + * @type {Array} + * @memberof OauthClientBody + */ + 'redirect_uris'?: Array; + /** + * Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none. + * @type {string} + * @memberof OauthClientBody + */ + 'token_endpoint_auth_method'?: string; + /** + * SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include pairwise and public. + * @type {string} + * @memberof OauthClientBody + */ + 'subject_type'?: string; + /** + * Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. + * @type {string} + * @memberof OauthClientBody + */ + 'scope'?: string; + /** + * Thr frontchannel logout uri. + * @type {string} + * @memberof OauthClientBody + */ + 'frontchannel_logout_uri'?: string; + /** + * The grant types of the Oauth2 client. + * @type {Array} + * @memberof OauthClientBody + */ + 'grant_types'?: Array; + /** + * The response types of the Oauth2 client. + * @type {Array} + * @memberof OauthClientBody + */ + 'response_types'?: Array; +} +/** + * + * @export + * @interface OauthClientResponse + */ +export interface OauthClientResponse { + /** + * + * @type {Array} + * @memberof OauthClientResponse + */ + 'allowed_cors_origins'?: Array; + /** + * + * @type {Array} + * @memberof OauthClientResponse + */ + 'audience': Array; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'authorization_code_grant_access_token_lifespan': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'authorization_code_grant_id_token_lifespan': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'authorization_code_grant_refresh_token_lifespan': string; + /** + * Boolean value specifying whether the RP requires that a sid (session ID) Claim. + * @type {boolean} + * @memberof OauthClientResponse + */ + 'backchannel_logout_session_required': boolean; + /** + * RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. + * @type {string} + * @memberof OauthClientResponse + */ + 'backchannel_logout_uri': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'client_credentials_grant_access_token_lifespan': string; + /** + * Id of the client. + * @type {string} + * @memberof OauthClientResponse + */ + 'client_id': string; + /** + * Human-readable string name of the client presented to the end-user. + * @type {string} + * @memberof OauthClientResponse + */ + 'client_name': string; + /** + * SecretExpiresAt is an integer holding the time at which the client secret will expire or 0 if it will not expire. + * @type {number} + * @memberof OauthClientResponse + */ + 'client_secret_expires_at': number; + /** + * ClientUri is an URL string of a web page providing information about the client. + * @type {string} + * @memberof OauthClientResponse + */ + 'client_uri': string; + /** + * + * @type {Array} + * @memberof OauthClientResponse + */ + 'contacts'?: Array; + /** + * CreatedAt returns the timestamp of the clients creation. + * @type {string} + * @memberof OauthClientResponse + */ + 'created_at': string; + /** + * Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters. + * @type {boolean} + * @memberof OauthClientResponse + */ + 'frontchannel_logout_session_required': boolean; + /** + * RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. + * @type {string} + * @memberof OauthClientResponse + */ + 'frontchannel_logout_uri': string; + /** + * The grant types of the Oauth2 client. + * @type {Array} + * @memberof OauthClientResponse + */ + 'grant_types'?: Array; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'implicit_grant_access_token_lifespan': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'implicit_grant_id_token_lifespan': string; + /** + * + * @type {object} + * @memberof OauthClientResponse + */ + 'jwks': object; + /** + * URL for the clients JSON Web Key Set [JWK] document + * @type {string} + * @memberof OauthClientResponse + */ + 'jwks_uri': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'jwt_bearer_grant_access_token_lifespan': string; + /** + * LogoUri is an URL string that references a logo for the client. + * @type {string} + * @memberof OauthClientResponse + */ + 'logo_uri': string; + /** + * + * @type {object} + * @memberof OauthClientResponse + */ + 'metadata': object; + /** + * Owner is a string identifying the owner of the OAuth 2.0 Client. + * @type {string} + * @memberof OauthClientResponse + */ + 'owner': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'password_grant_access_token_lifespan': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'password_grant_refresh_token_lifespan': string; + /** + * PolicyUri is a URL string that points to a human-readable privacy policy document + * @type {string} + * @memberof OauthClientResponse + */ + 'policy_uri': string; + /** + * + * @type {Array} + * @memberof OauthClientResponse + */ + 'post_logout_redirect_uris'?: Array; + /** + * + * @type {Array} + * @memberof OauthClientResponse + */ + 'redirect_uris'?: Array; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'refresh_token_grant_access_token_lifespan': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'refresh_token_grant_id_token_lifespan': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'refresh_token_grant_refresh_token_lifespan': string; + /** + * RegistrationAccessToken can be used to update, get, or delete the OAuth2 Client. + * @type {string} + * @memberof OauthClientResponse + */ + 'registration_access_token': string; + /** + * RegistrationClientURI is the URL used to update, get, or delete the OAuth2 Client. + * @type {string} + * @memberof OauthClientResponse + */ + 'registration_client_uri': string; + /** + * JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. + * @type {string} + * @memberof OauthClientResponse + */ + 'request_object_signing_alg': string; + /** + * + * @type {Array} + * @memberof OauthClientResponse + */ + 'request_uris'?: Array; + /** + * The response types of the Oauth2 client. + * @type {Array} + * @memberof OauthClientResponse + */ + 'response_types'?: Array; + /** + * Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. + * @type {string} + * @memberof OauthClientResponse + */ + 'scope': string; + /** + * URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. + * @type {string} + * @memberof OauthClientResponse + */ + 'sector_identifier_uri': string; + /** + * SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include pairwise and public. + * @type {string} + * @memberof OauthClientResponse + */ + 'subject_type': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'token_endpoint_auth_method': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'token_endpoint_auth_signing_alg': string; + /** + * TermsOfServiceUri is a URL string that points to a human-readable terms of service document for the client. + * @type {string} + * @memberof OauthClientResponse + */ + 'tos_uri': string; + /** + * UpdatedAt returns the timestamp of the last update. + * @type {string} + * @memberof OauthClientResponse + */ + 'updated_at': string; + /** + * JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. + * @type {string} + * @memberof OauthClientResponse + */ + 'userinfo_signed_response_alg': string; +} +/** + * + * @export + * @interface OauthConfigResponse + */ +export interface OauthConfigResponse { + /** + * Client id + * @type {string} + * @memberof OauthConfigResponse + */ + 'clientId': string; + /** + * Hint for idp redirects (optional) + * @type {string} + * @memberof OauthConfigResponse + */ + 'idpHint'?: string | null; + /** + * Redirect uri + * @type {string} + * @memberof OauthConfigResponse + */ + 'redirectUri': string; + /** + * Grant type + * @type {string} + * @memberof OauthConfigResponse + */ + 'grantType': string; + /** + * Token endpoint + * @type {string} + * @memberof OauthConfigResponse + */ + 'tokenEndpoint': string; + /** + * Auth endpoint + * @type {string} + * @memberof OauthConfigResponse + */ + 'authEndpoint': string; + /** + * Response type + * @type {string} + * @memberof OauthConfigResponse + */ + 'responseType': string; + /** + * Scope + * @type {string} + * @memberof OauthConfigResponse + */ + 'scope': string; + /** + * Provider + * @type {string} + * @memberof OauthConfigResponse + */ + 'provider': string; + /** + * Logout endpoint + * @type {string} + * @memberof OauthConfigResponse + */ + 'logoutEndpoint'?: string; + /** + * Issuer + * @type {string} + * @memberof OauthConfigResponse + */ + 'issuer': string; + /** + * Jwks endpoint + * @type {string} + * @memberof OauthConfigResponse + */ + 'jwksEndpoint': string; +} +/** + * + * @export + * @interface OidcContextResponse + */ +export interface OidcContextResponse { + /** + * + * @type {Array} + * @memberof OidcContextResponse + */ + 'acr_values': Array; + /** + * + * @type {string} + * @memberof OidcContextResponse + */ + 'display': string; + /** + * + * @type {object} + * @memberof OidcContextResponse + */ + 'id_token_hint_claims': object; + /** + * + * @type {string} + * @memberof OidcContextResponse + */ + 'login_hint': string; + /** + * + * @type {Array} + * @memberof OidcContextResponse + */ + 'ui_locales': Array; +} +/** + * + * @export + * @interface ParentConsentResponse + */ +export interface ParentConsentResponse { + /** + * + * @type {string} + * @memberof ParentConsentResponse + */ + 'form': string; + /** + * + * @type {boolean} + * @memberof ParentConsentResponse + */ + 'privacyConsent': boolean; + /** + * + * @type {boolean} + * @memberof ParentConsentResponse + */ + 'termsOfUseConsent': boolean; + /** + * + * @type {string} + * @memberof ParentConsentResponse + */ + 'dateOfPrivacyConsent': string; + /** + * + * @type {string} + * @memberof ParentConsentResponse + */ + 'dateOfTermsOfUseConsent': string; + /** + * + * @type {string} + * @memberof ParentConsentResponse + */ + '_id': string; +} +/** + * + * @export + * @interface PatchGroupParams + */ +export interface PatchGroupParams { + /** + * Title of the Group grid element + * @type {string} + * @memberof PatchGroupParams + */ + 'title': string; +} +/** + * + * @export + * @interface PatchMyAccountParams + */ +export interface PatchMyAccountParams { + /** + * The current user password to authorize the update action. + * @type {string} + * @memberof PatchMyAccountParams + */ + 'passwordOld': string; + /** + * The new password for the current user. + * @type {string} + * @memberof PatchMyAccountParams + */ + 'passwordNew'?: string | null; + /** + * The new email address for the current user. + * @type {string} + * @memberof PatchMyAccountParams + */ + 'email'?: string | null; + /** + * The new first name for the current user. + * @type {string} + * @memberof PatchMyAccountParams + */ + 'firstName'?: string | null; + /** + * The new last name for the current user. + * @type {string} + * @memberof PatchMyAccountParams + */ + 'lastName'?: string | null; +} +/** + * + * @export + * @interface PatchMyPasswordParams + */ +export interface PatchMyPasswordParams { + /** + * The new user password. + * @type {string} + * @memberof PatchMyPasswordParams + */ + 'password': string; + /** + * The confirmed new user password. Must match the password field. + * @type {string} + * @memberof PatchMyPasswordParams + */ + 'confirmPassword': string; +} +/** + * + * @export + * @interface PatchOrderParams + */ +export interface PatchOrderParams { + /** + * Array ids determining the new order + * @type {Array} + * @memberof PatchOrderParams + */ + 'elements': Array; +} +/** + * + * @export + * @interface PatchVisibilityParams + */ +export interface PatchVisibilityParams { + /** + * true to publish the element, false to unpublish + * @type {boolean} + * @memberof PatchVisibilityParams + */ + 'visibility': boolean; +} +/** + * + * @export + * @interface ProviderConfigResponse + */ +export interface ProviderConfigResponse { + /** + * + * @type {string} + * @memberof ProviderConfigResponse + */ + 'provider': string; +} +/** + * + * @export + * @interface PseudonymResponse + */ +export interface PseudonymResponse { + /** + * + * @type {string} + * @memberof PseudonymResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof PseudonymResponse + */ + 'toolId': string; + /** + * + * @type {string} + * @memberof PseudonymResponse + */ + 'userId': string; +} +/** + * + * @export + * @interface PublicSystemListResponse + */ +export interface PublicSystemListResponse { + /** + * + * @type {Array} + * @memberof PublicSystemListResponse + */ + 'data': Array; +} +/** + * + * @export + * @interface PublicSystemResponse + */ +export interface PublicSystemResponse { + /** + * Id of the system. + * @type {string} + * @memberof PublicSystemResponse + */ + 'id': string; + /** + * Flag to request only systems with oauth-config. + * @type {string} + * @memberof PublicSystemResponse + */ + 'type'?: string | null; + /** + * Alias of the system. + * @type {string} + * @memberof PublicSystemResponse + */ + 'alias'?: string | null; + /** + * Display name of the system. + * @type {string} + * @memberof PublicSystemResponse + */ + 'displayName'?: string | null; + /** + * + * @type {PublicSystemResponseOauthConfig} + * @memberof PublicSystemResponse + */ + 'oauthConfig'?: PublicSystemResponseOauthConfig | null; +} +/** + * Oauth config of the system. + * @export + * @interface PublicSystemResponseOauthConfig + */ +export interface PublicSystemResponseOauthConfig { + /** + * Client id + * @type {string} + * @memberof PublicSystemResponseOauthConfig + */ + 'clientId': string; + /** + * Hint for idp redirects (optional) + * @type {string} + * @memberof PublicSystemResponseOauthConfig + */ + 'idpHint'?: string | null; + /** + * Redirect uri + * @type {string} + * @memberof PublicSystemResponseOauthConfig + */ + 'redirectUri': string; + /** + * Grant type + * @type {string} + * @memberof PublicSystemResponseOauthConfig + */ + 'grantType': string; + /** + * Token endpoint + * @type {string} + * @memberof PublicSystemResponseOauthConfig + */ + 'tokenEndpoint': string; + /** + * Auth endpoint + * @type {string} + * @memberof PublicSystemResponseOauthConfig + */ + 'authEndpoint': string; + /** + * Response type + * @type {string} + * @memberof PublicSystemResponseOauthConfig + */ + 'responseType': string; + /** + * Scope + * @type {string} + * @memberof PublicSystemResponseOauthConfig + */ + 'scope': string; + /** + * Provider + * @type {string} + * @memberof PublicSystemResponseOauthConfig + */ + 'provider': string; + /** + * Logout endpoint + * @type {string} + * @memberof PublicSystemResponseOauthConfig + */ + 'logoutEndpoint'?: string; + /** + * Issuer + * @type {string} + * @memberof PublicSystemResponseOauthConfig + */ + 'issuer': string; + /** + * Jwks endpoint + * @type {string} + * @memberof PublicSystemResponseOauthConfig + */ + 'jwksEndpoint': string; +} +/** + * + * @export + * @interface RedirectResponse + */ +export interface RedirectResponse { + /** + * RedirectURL is the URL which you should redirect the user to once the authentication process is completed. + * @type {string} + * @memberof RedirectResponse + */ + 'redirect_to': string; +} +/** + * + * @export + * @interface RenameBodyParams + */ +export interface RenameBodyParams { + /** + * + * @type {string} + * @memberof RenameBodyParams + */ + 'title': string; +} +/** + * + * @export + * @interface ResolvedUserResponse + */ +export interface ResolvedUserResponse { + /** + * + * @type {string} + * @memberof ResolvedUserResponse + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof ResolvedUserResponse + */ + 'lastName': string; + /** + * + * @type {string} + * @memberof ResolvedUserResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof ResolvedUserResponse + */ + 'createdAt': string; + /** + * + * @type {string} + * @memberof ResolvedUserResponse + */ + 'updatedAt': string; + /** + * + * @type {Array} + * @memberof ResolvedUserResponse + */ + 'roles': Array; + /** + * + * @type {Array} + * @memberof ResolvedUserResponse + */ + 'permissions': Array; + /** + * + * @type {string} + * @memberof ResolvedUserResponse + */ + 'schoolId': string; +} +/** + * + * @export + * @interface RichText + */ +export interface RichText { + /** + * Content of the rich text element + * @type {string} + * @memberof RichText + */ + 'content': string; + /** + * Input format of the rich text element + * @type {string} + * @memberof RichText + */ + 'type': RichTextTypeEnum; +} + +export const RichTextTypeEnum = { + PlainText: 'plainText', + RichTextCk5Simple: 'richTextCk5Simple', + RichTextCk4: 'richTextCk4', + RichTextCk5: 'richTextCk5' +} as const; + +export type RichTextTypeEnum = typeof RichTextTypeEnum[keyof typeof RichTextTypeEnum]; + +/** + * + * @export + * @interface RichTextContentBody + */ +export interface RichTextContentBody { + /** + * + * @type {string} + * @memberof RichTextContentBody + */ + 'text': string; + /** + * + * @type {string} + * @memberof RichTextContentBody + */ + 'inputFormat': string; +} +/** + * + * @export + * @interface RichTextElementContent + */ +export interface RichTextElementContent { + /** + * + * @type {string} + * @memberof RichTextElementContent + */ + 'text': string; + /** + * + * @type {string} + * @memberof RichTextElementContent + */ + 'inputFormat': string; +} +/** + * + * @export + * @interface RichTextElementContentBody + */ +export interface RichTextElementContentBody { + /** + * + * @type {ContentElementType} + * @memberof RichTextElementContentBody + */ + 'type': ContentElementType; + /** + * + * @type {RichTextContentBody} + * @memberof RichTextElementContentBody + */ + 'content': RichTextContentBody; +} + + +/** + * + * @export + * @interface RichTextElementResponse + */ +export interface RichTextElementResponse { + /** + * + * @type {string} + * @memberof RichTextElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof RichTextElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {RichTextElementContent} + * @memberof RichTextElementResponse + */ + 'content': RichTextElementContent; + /** + * + * @type {TimestampsResponse} + * @memberof RichTextElementResponse + */ + 'timestamps': TimestampsResponse; +} + + +/** + * + * @export + * @enum {string} + */ + +export const RoleName = { + Administrator: 'administrator', + CourseAdministrator: 'courseAdministrator', + CourseStudent: 'courseStudent', + CourseSubstitutionTeacher: 'courseSubstitutionTeacher', + CourseTeacher: 'courseTeacher', + Demo: 'demo', + DemoStudent: 'demoStudent', + DemoTeacher: 'demoTeacher', + Expert: 'expert', + Helpdesk: 'helpdesk', + Student: 'student', + Superhero: 'superhero', + Teacher: 'teacher', + Teamadministrator: 'teamadministrator', + Teamexpert: 'teamexpert', + Teamleader: 'teamleader', + Teammember: 'teammember', + Teamowner: 'teamowner', + User: 'user' +} as const; + +export type RoleName = typeof RoleName[keyof typeof RoleName]; + + +/** + * @type SchoolControllerGetProvisioningOptions200Response + * @export + */ +export type SchoolControllerGetProvisioningOptions200Response = SchulConneXProvisioningOptionsResponse; + +/** + * + * @export + * @interface SchoolExistsResponse + */ +export interface SchoolExistsResponse { + /** + * + * @type {boolean} + * @memberof SchoolExistsResponse + */ + 'exists': boolean; +} +/** + * + * @export + * @interface SchoolExternalToolConfigurationStatusResponse + */ +export interface SchoolExternalToolConfigurationStatusResponse { + /** + * Is the tool outdated on school scope, because of non matching versions or required parameter changes on ExternalTool? + * @type {boolean} + * @memberof SchoolExternalToolConfigurationStatusResponse + */ + 'isOutdatedOnScopeSchool': boolean; + /** + * Is the tool deactivated, because of school administrator? + * @type {boolean} + * @memberof SchoolExternalToolConfigurationStatusResponse + */ + 'isDeactivated': boolean; +} +/** + * + * @export + * @interface SchoolExternalToolConfigurationTemplateListResponse + */ +export interface SchoolExternalToolConfigurationTemplateListResponse { + /** + * + * @type {Array} + * @memberof SchoolExternalToolConfigurationTemplateListResponse + */ + 'data': Array; +} +/** + * + * @export + * @interface SchoolExternalToolConfigurationTemplateResponse + */ +export interface SchoolExternalToolConfigurationTemplateResponse { + /** + * + * @type {string} + * @memberof SchoolExternalToolConfigurationTemplateResponse + */ + 'externalToolId': string; + /** + * + * @type {string} + * @memberof SchoolExternalToolConfigurationTemplateResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof SchoolExternalToolConfigurationTemplateResponse + */ + 'logoUrl'?: string; + /** + * + * @type {Array} + * @memberof SchoolExternalToolConfigurationTemplateResponse + */ + 'parameters': Array; +} +/** + * + * @export + * @interface SchoolExternalToolMetadataResponse + */ +export interface SchoolExternalToolMetadataResponse { + /** + * + * @type {ContextExternalToolCountPerContextResponse} + * @memberof SchoolExternalToolMetadataResponse + */ + 'contextExternalToolCountPerContext': ContextExternalToolCountPerContextResponse; +} +/** + * + * @export + * @interface SchoolExternalToolPostParams + */ +export interface SchoolExternalToolPostParams { + /** + * + * @type {string} + * @memberof SchoolExternalToolPostParams + */ + 'toolId': string; + /** + * + * @type {string} + * @memberof SchoolExternalToolPostParams + */ + 'schoolId': string; + /** + * + * @type {Array} + * @memberof SchoolExternalToolPostParams + */ + 'parameters'?: Array; + /** + * Tool can be deactivated, related tools can not be added to e.g. course or board anymore + * @type {boolean} + * @memberof SchoolExternalToolPostParams + */ + 'isDeactivated': boolean; +} +/** + * + * @export + * @interface SchoolExternalToolResponse + */ +export interface SchoolExternalToolResponse { + /** + * + * @type {string} + * @memberof SchoolExternalToolResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SchoolExternalToolResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof SchoolExternalToolResponse + */ + 'toolId': string; + /** + * + * @type {string} + * @memberof SchoolExternalToolResponse + */ + 'schoolId': string; + /** + * + * @type {Array} + * @memberof SchoolExternalToolResponse + */ + 'parameters': Array; + /** + * + * @type {SchoolExternalToolConfigurationStatusResponse} + * @memberof SchoolExternalToolResponse + */ + 'status': SchoolExternalToolConfigurationStatusResponse; + /** + * + * @type {string} + * @memberof SchoolExternalToolResponse + */ + 'logoUrl'?: string; +} +/** + * + * @export + * @interface SchoolExternalToolSearchListResponse + */ +export interface SchoolExternalToolSearchListResponse { + /** + * + * @type {Array} + * @memberof SchoolExternalToolSearchListResponse + */ + 'data': Array; +} +/** + * + * @export + * @interface SchoolForExternalInviteResponse + */ +export interface SchoolForExternalInviteResponse { + /** + * + * @type {string} + * @memberof SchoolForExternalInviteResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SchoolForExternalInviteResponse + */ + 'name': string; +} +/** + * + * @export + * @interface SchoolForLdapLoginResponse + */ +export interface SchoolForLdapLoginResponse { + /** + * + * @type {string} + * @memberof SchoolForLdapLoginResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SchoolForLdapLoginResponse + */ + 'name': string; + /** + * + * @type {Array} + * @memberof SchoolForLdapLoginResponse + */ + 'systems': Array; +} +/** + * + * @export + * @interface SchoolInfoResponse + */ +export interface SchoolInfoResponse { + /** + * The id of the School entity + * @type {string} + * @memberof SchoolInfoResponse + */ + 'id': string; + /** + * The name of the School entity + * @type {string} + * @memberof SchoolInfoResponse + */ + 'name': string; +} +/** + * + * @export + * @interface SchoolLogo + */ +export interface SchoolLogo { + /** + * + * @type {string} + * @memberof SchoolLogo + */ + 'dataUrl'?: string; + /** + * + * @type {string} + * @memberof SchoolLogo + */ + 'name'?: string; +} +/** + * + * @export + * @interface SchoolPermissionsParams + */ +export interface SchoolPermissionsParams { + /** + * + * @type {TeacherPermissionParams} + * @memberof SchoolPermissionsParams + */ + 'teacher'?: TeacherPermissionParams; + /** + * + * @type {StudentPermissionParams} + * @memberof SchoolPermissionsParams + */ + 'student'?: StudentPermissionParams; +} +/** + * + * @export + * @enum {string} + */ + +export const SchoolPurpose = { + Expert: 'expert', + Tombstone: 'tombstone', + Demo: 'demo', + Test: 'test', + MintEc: 'MINT-EC' +} as const; + +export type SchoolPurpose = typeof SchoolPurpose[keyof typeof SchoolPurpose]; + + +/** + * + * @export + * @interface SchoolResponse + */ +export interface SchoolResponse { + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'createdAt': string; + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'updatedAt': string; + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'officialSchoolNumber'?: string; + /** + * + * @type {SchoolYearResponse} + * @memberof SchoolResponse + */ + 'currentYear'?: SchoolYearResponse; + /** + * + * @type {FederalStateResponse} + * @memberof SchoolResponse + */ + 'federalState': FederalStateResponse; + /** + * + * @type {CountyResponse} + * @memberof SchoolResponse + */ + 'county'?: CountyResponse; + /** + * + * @type {SchoolPurpose} + * @memberof SchoolResponse + */ + 'purpose'?: SchoolPurpose; + /** + * + * @type {Array} + * @memberof SchoolResponse + */ + 'features': Array; + /** + * + * @type {Array} + * @memberof SchoolResponse + */ + 'systemIds': Array; + /** + * + * @type {boolean} + * @memberof SchoolResponse + */ + 'inUserMigration'?: boolean; + /** + * + * @type {boolean} + * @memberof SchoolResponse + */ + 'inMaintenance': boolean; + /** + * + * @type {boolean} + * @memberof SchoolResponse + */ + 'isExternal': boolean; + /** + * + * @type {SchoolLogo} + * @memberof SchoolResponse + */ + 'logo'?: SchoolLogo; + /** + * + * @type {FileStorageType} + * @memberof SchoolResponse + */ + 'fileStorageType'?: FileStorageType; + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'language'?: string; + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'timezone'?: string; + /** + * + * @type {object} + * @memberof SchoolResponse + */ + 'permissions'?: object; + /** + * + * @type {YearsResponse} + * @memberof SchoolResponse + */ + 'years': YearsResponse; + /** + * + * @type {Array} + * @memberof SchoolResponse + */ + 'instanceFeatures': Array; +} + + +/** + * + * @export + * @interface SchoolSystemResponse + */ +export interface SchoolSystemResponse { + /** + * + * @type {string} + * @memberof SchoolSystemResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SchoolSystemResponse + */ + 'type': string; + /** + * + * @type {string} + * @memberof SchoolSystemResponse + */ + 'alias'?: string; + /** + * + * @type {ProviderConfigResponse} + * @memberof SchoolSystemResponse + */ + 'ldapConfig'?: ProviderConfigResponse; + /** + * + * @type {ProviderConfigResponse} + * @memberof SchoolSystemResponse + */ + 'oauthConfig'?: ProviderConfigResponse; +} +/** + * + * @export + * @interface SchoolUpdateBodyParams + */ +export interface SchoolUpdateBodyParams { + /** + * + * @type {string} + * @memberof SchoolUpdateBodyParams + */ + 'name'?: string; + /** + * + * @type {string} + * @memberof SchoolUpdateBodyParams + */ + 'officialSchoolNumber'?: string; + /** + * + * @type {SchoolLogo} + * @memberof SchoolUpdateBodyParams + */ + 'logo'?: SchoolLogo; + /** + * + * @type {string} + * @memberof SchoolUpdateBodyParams + */ + 'fileStorageType'?: SchoolUpdateBodyParamsFileStorageTypeEnum; + /** + * + * @type {LanguageType} + * @memberof SchoolUpdateBodyParams + */ + 'language'?: LanguageType; + /** + * + * @type {Array} + * @memberof SchoolUpdateBodyParams + */ + 'features'?: Array; + /** + * + * @type {SchoolPermissionsParams} + * @memberof SchoolUpdateBodyParams + */ + 'permissions'?: SchoolPermissionsParams; + /** + * + * @type {string} + * @memberof SchoolUpdateBodyParams + */ + 'countyId'?: string; + /** + * + * @type {boolean} + * @memberof SchoolUpdateBodyParams + */ + 'enableStudentTeamCreation'?: boolean; +} + +export const SchoolUpdateBodyParamsFileStorageTypeEnum = { + AwsS3: 'awsS3' +} as const; + +export type SchoolUpdateBodyParamsFileStorageTypeEnum = typeof SchoolUpdateBodyParamsFileStorageTypeEnum[keyof typeof SchoolUpdateBodyParamsFileStorageTypeEnum]; + +/** + * + * @export + * @enum {string} + */ + +export const SchoolYearQueryType = { + NextYear: 'nextYear', + CurrentYear: 'currentYear', + PreviousYears: 'previousYears' +} as const; + +export type SchoolYearQueryType = typeof SchoolYearQueryType[keyof typeof SchoolYearQueryType]; + + +/** + * + * @export + * @interface SchoolYearResponse + */ +export interface SchoolYearResponse { + /** + * + * @type {string} + * @memberof SchoolYearResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SchoolYearResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof SchoolYearResponse + */ + 'startDate': string; + /** + * + * @type {string} + * @memberof SchoolYearResponse + */ + 'endDate': string; +} +/** + * + * @export + * @interface SchulConneXProvisioningOptionsParams + */ +export interface SchulConneXProvisioningOptionsParams { + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsParams + */ + 'groupProvisioningClassesEnabled': boolean; + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsParams + */ + 'groupProvisioningCoursesEnabled': boolean; + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsParams + */ + 'groupProvisioningOtherEnabled': boolean; + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsParams + */ + 'schoolExternalToolProvisioningEnabled': boolean; +} +/** + * + * @export + * @interface SchulConneXProvisioningOptionsResponse + */ +export interface SchulConneXProvisioningOptionsResponse { + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsResponse + */ + 'groupProvisioningClassesEnabled': boolean; + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsResponse + */ + 'groupProvisioningCoursesEnabled': boolean; + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsResponse + */ + 'groupProvisioningOtherEnabled': boolean; + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsResponse + */ + 'schoolExternalToolProvisioningEnabled': boolean; +} +/** + * + * @export + * @enum {string} + */ + +export const SchulcloudTheme = { + Brb: 'brb', + Default: 'default', + N21: 'n21', + Thr: 'thr' +} as const; + +export type SchulcloudTheme = typeof SchulcloudTheme[keyof typeof SchulcloudTheme]; + + +/** + * + * @export + * @interface SetHeightBodyParams + */ +export interface SetHeightBodyParams { + /** + * + * @type {number} + * @memberof SetHeightBodyParams + */ + 'height': number; +} +/** + * + * @export + * @interface ShareTokenBodyParams + */ +export interface ShareTokenBodyParams { + /** + * the type of the object being shared + * @type {string} + * @memberof ShareTokenBodyParams + */ + 'parentType': ShareTokenBodyParamsParentTypeEnum; + /** + * the id of the object being shared. + * @type {string} + * @memberof ShareTokenBodyParams + */ + 'parentId': string; + /** + * when defined, the sharetoken will expire after the given number of days. + * @type {number} + * @memberof ShareTokenBodyParams + */ + 'expiresInDays'?: number | null; + /** + * when defined, the sharetoken will be usable exclusively by members of the users school. + * @type {boolean} + * @memberof ShareTokenBodyParams + */ + 'schoolExclusive'?: boolean | null; +} + +export const ShareTokenBodyParamsParentTypeEnum = { + Courses: 'courses', + Tasks: 'tasks', + Lessons: 'lessons', + ColumnBoard: 'columnBoard' +} as const; + +export type ShareTokenBodyParamsParentTypeEnum = typeof ShareTokenBodyParamsParentTypeEnum[keyof typeof ShareTokenBodyParamsParentTypeEnum]; + +/** + * + * @export + * @interface ShareTokenImportBodyParams + */ +export interface ShareTokenImportBodyParams { + /** + * the new name of the imported object. + * @type {string} + * @memberof ShareTokenImportBodyParams + */ + 'newName': string; + /** + * Id of the course to which the lesson/task will be added + * @type {string} + * @memberof ShareTokenImportBodyParams + */ + 'destinationCourseId'?: string | null; +} +/** + * + * @export + * @interface ShareTokenInfoResponse + */ +export interface ShareTokenInfoResponse { + /** + * + * @type {string} + * @memberof ShareTokenInfoResponse + */ + 'token': string; + /** + * + * @type {string} + * @memberof ShareTokenInfoResponse + */ + 'parentType': ShareTokenInfoResponseParentTypeEnum; + /** + * + * @type {string} + * @memberof ShareTokenInfoResponse + */ + 'parentName': string; +} + +export const ShareTokenInfoResponseParentTypeEnum = { + Courses: 'courses', + Tasks: 'tasks', + Lessons: 'lessons', + ColumnBoard: 'columnBoard' +} as const; + +export type ShareTokenInfoResponseParentTypeEnum = typeof ShareTokenInfoResponseParentTypeEnum[keyof typeof ShareTokenInfoResponseParentTypeEnum]; + +/** + * + * @export + * @interface ShareTokenPayloadResponse + */ +export interface ShareTokenPayloadResponse { + /** + * + * @type {string} + * @memberof ShareTokenPayloadResponse + */ + 'parentType': ShareTokenPayloadResponseParentTypeEnum; + /** + * + * @type {string} + * @memberof ShareTokenPayloadResponse + */ + 'parentId': string; +} + +export const ShareTokenPayloadResponseParentTypeEnum = { + Courses: 'courses', + Tasks: 'tasks', + Lessons: 'lessons', + ColumnBoard: 'columnBoard' +} as const; + +export type ShareTokenPayloadResponseParentTypeEnum = typeof ShareTokenPayloadResponseParentTypeEnum[keyof typeof ShareTokenPayloadResponseParentTypeEnum]; + +/** + * + * @export + * @interface ShareTokenResponse + */ +export interface ShareTokenResponse { + /** + * + * @type {string} + * @memberof ShareTokenResponse + */ + 'token': string; + /** + * + * @type {ShareTokenPayloadResponse} + * @memberof ShareTokenResponse + */ + 'payload': ShareTokenPayloadResponse; + /** + * + * @type {string} + * @memberof ShareTokenResponse + */ + 'expiresAt'?: string; +} +/** + * + * @export + * @interface SingleColumnBoardResponse + */ +export interface SingleColumnBoardResponse { + /** + * The id of the room this board belongs to + * @type {string} + * @memberof SingleColumnBoardResponse + */ + 'roomId': string; + /** + * Title of the Board + * @type {string} + * @memberof SingleColumnBoardResponse + */ + 'title': string; + /** + * Color of the Board + * @type {string} + * @memberof SingleColumnBoardResponse + */ + 'displayColor': string; + /** + * Array of board specific tasks or lessons with matching type property + * @type {Array} + * @memberof SingleColumnBoardResponse + */ + 'elements': Array; + /** + * Boolean if the room this board belongs to is archived + * @type {boolean} + * @memberof SingleColumnBoardResponse + */ + 'isArchived': boolean; + /** + * Is the course synchronized with a group? + * @type {boolean} + * @memberof SingleColumnBoardResponse + */ + 'isSynchronized': boolean; +} +/** + * + * @export + * @interface StudentPermissionParams + */ +export interface StudentPermissionParams { + /** + * + * @type {boolean} + * @memberof StudentPermissionParams + */ + 'LERNSTORE_VIEW'?: boolean; +} +/** + * + * @export + * @interface SubmissionContainerContentBody + */ +export interface SubmissionContainerContentBody { + /** + * The point in time until when a submission can be handed in. + * @type {string} + * @memberof SubmissionContainerContentBody + */ + 'dueDate'?: string; +} +/** + * + * @export + * @interface SubmissionContainerElementContent + */ +export interface SubmissionContainerElementContent { + /** + * The dueDate as date string or null of not set + * @type {string} + * @memberof SubmissionContainerElementContent + */ + 'dueDate': string; +} +/** + * + * @export + * @interface SubmissionContainerElementContentBody + */ +export interface SubmissionContainerElementContentBody { + /** + * + * @type {ContentElementType} + * @memberof SubmissionContainerElementContentBody + */ + 'type': ContentElementType; + /** + * + * @type {SubmissionContainerContentBody} + * @memberof SubmissionContainerElementContentBody + */ + 'content': SubmissionContainerContentBody; +} + + +/** + * + * @export + * @interface SubmissionContainerElementResponse + */ +export interface SubmissionContainerElementResponse { + /** + * + * @type {string} + * @memberof SubmissionContainerElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof SubmissionContainerElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {SubmissionContainerElementContent} + * @memberof SubmissionContainerElementResponse + */ + 'content': SubmissionContainerElementContent; + /** + * + * @type {TimestampsResponse} + * @memberof SubmissionContainerElementResponse + */ + 'timestamps': TimestampsResponse; +} + + +/** + * + * @export + * @interface SubmissionItemResponse + */ +export interface SubmissionItemResponse { + /** + * + * @type {string} + * @memberof SubmissionItemResponse + */ + 'id': string; + /** + * + * @type {TimestampsResponse} + * @memberof SubmissionItemResponse + */ + 'timestamps': TimestampsResponse; + /** + * + * @type {boolean} + * @memberof SubmissionItemResponse + */ + 'completed': boolean; + /** + * + * @type {string} + * @memberof SubmissionItemResponse + */ + 'userId': string; + /** + * + * @type {Array} + * @memberof SubmissionItemResponse + */ + 'elements': Array; +} +/** + * @type SubmissionItemResponseElementsInner + * @export + */ +export type SubmissionItemResponseElementsInner = FileElementResponse | RichTextElementResponse; + +/** + * + * @export + * @interface SubmissionStatusListResponse + */ +export interface SubmissionStatusListResponse { + /** + * + * @type {Array} + * @memberof SubmissionStatusListResponse + */ + 'data': Array; +} +/** + * + * @export + * @interface SubmissionStatusResponse + */ +export interface SubmissionStatusResponse { + /** + * + * @type {string} + * @memberof SubmissionStatusResponse + */ + 'id': string; + /** + * + * @type {Array} + * @memberof SubmissionStatusResponse + */ + 'submitters': Array; + /** + * + * @type {boolean} + * @memberof SubmissionStatusResponse + */ + 'isSubmitted': boolean; + /** + * + * @type {number} + * @memberof SubmissionStatusResponse + */ + 'grade'?: number; + /** + * + * @type {boolean} + * @memberof SubmissionStatusResponse + */ + 'isGraded': boolean; + /** + * + * @type {string} + * @memberof SubmissionStatusResponse + */ + 'submittingCourseGroupName'?: string; +} +/** + * + * @export + * @interface SubmissionsResponse + */ +export interface SubmissionsResponse { + /** + * + * @type {Array} + * @memberof SubmissionsResponse + */ + 'submissionItemsResponse': Array; + /** + * + * @type {Array} + * @memberof SubmissionsResponse + */ + 'users': Array; +} +/** + * + * @export + * @interface SuccessfulResponse + */ +export interface SuccessfulResponse { + /** + * + * @type {boolean} + * @memberof SuccessfulResponse + */ + 'successful': boolean; +} +/** + * + * @export + * @interface SystemForLdapLoginResponse + */ +export interface SystemForLdapLoginResponse { + /** + * + * @type {string} + * @memberof SystemForLdapLoginResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SystemForLdapLoginResponse + */ + 'type': string; + /** + * + * @type {string} + * @memberof SystemForLdapLoginResponse + */ + 'alias': string; +} +/** + * + * @export + * @interface TargetInfoResponse + */ +export interface TargetInfoResponse { + /** + * The id of the Target entity + * @type {string} + * @memberof TargetInfoResponse + */ + 'id': string; + /** + * The name of the Target entity + * @type {string} + * @memberof TargetInfoResponse + */ + 'name': string; +} +/** + * + * @export + * @interface TaskCopyApiParams + */ +export interface TaskCopyApiParams { + /** + * Destination course parent Id the task is copied to + * @type {string} + * @memberof TaskCopyApiParams + */ + 'courseId'?: string; + /** + * Destination lesson parent Id the task is copied to + * @type {string} + * @memberof TaskCopyApiParams + */ + 'lessonId'?: string; +} +/** + * + * @export + * @interface TaskListResponse + */ +export interface TaskListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof TaskListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof TaskListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof TaskListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof TaskListResponse + */ + 'limit': number; +} +/** + * + * @export + * @interface TaskResponse + */ +export interface TaskResponse { + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'availableDate'?: string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'dueDate'?: string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'courseName': string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'lessonName'?: string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'courseId': string; + /** + * Task description object, with props content: string and type: input format types + * @type {RichText} + * @memberof TaskResponse + */ + 'description'?: RichText; + /** + * + * @type {boolean} + * @memberof TaskResponse + */ + 'lessonHidden': boolean; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'displayColor'?: string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'createdAt': string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'updatedAt': string; + /** + * + * @type {TaskStatusResponse} + * @memberof TaskResponse + */ + 'status': TaskStatusResponse; +} +/** + * + * @export + * @interface TaskStatusResponse + */ +export interface TaskStatusResponse { + /** + * + * @type {number} + * @memberof TaskStatusResponse + */ + 'submitted': number; + /** + * + * @type {number} + * @memberof TaskStatusResponse + */ + 'maxSubmissions': number; + /** + * + * @type {number} + * @memberof TaskStatusResponse + */ + 'graded': number; + /** + * + * @type {boolean} + * @memberof TaskStatusResponse + */ + 'isDraft': boolean; + /** + * + * @type {boolean} + * @memberof TaskStatusResponse + */ + 'isSubstitutionTeacher': boolean; + /** + * + * @type {boolean} + * @memberof TaskStatusResponse + */ + 'isFinished': boolean; +} +/** + * + * @export + * @interface TeacherPermissionParams + */ +export interface TeacherPermissionParams { + /** + * + * @type {boolean} + * @memberof TeacherPermissionParams + */ + 'STUDENT_LIST'?: boolean; +} +/** + * + * @export + * @interface TeamPermissionsBody + */ +export interface TeamPermissionsBody { + /** + * + * @type {boolean} + * @memberof TeamPermissionsBody + */ + 'read': boolean; + /** + * + * @type {boolean} + * @memberof TeamPermissionsBody + */ + 'write': boolean; + /** + * + * @type {boolean} + * @memberof TeamPermissionsBody + */ + 'create': boolean; + /** + * + * @type {boolean} + * @memberof TeamPermissionsBody + */ + 'delete': boolean; + /** + * + * @type {boolean} + * @memberof TeamPermissionsBody + */ + 'share': boolean; +} +/** + * + * @export + * @interface TimestampsResponse + */ +export interface TimestampsResponse { + /** + * + * @type {string} + * @memberof TimestampsResponse + */ + 'lastUpdatedAt': string; + /** + * + * @type {string} + * @memberof TimestampsResponse + */ + 'createdAt': string; + /** + * + * @type {string} + * @memberof TimestampsResponse + */ + 'deletedAt'?: string; +} +/** + * + * @export + * @enum {string} + */ + +export const Timezone = { + EuropeBerlin: 'Europe/Berlin' +} as const; + +export type Timezone = typeof Timezone[keyof typeof Timezone]; + + +/** + * + * @export + * @enum {string} + */ + +export const ToolConfigType = { + Basic: 'basic', + Oauth2: 'oauth2', + Lti11: 'lti11' +} as const; + +export type ToolConfigType = typeof ToolConfigType[keyof typeof ToolConfigType]; + + +/** + * + * @export + * @enum {string} + */ + +export const ToolContextType = { + Course: 'course', + BoardElement: 'board-element', + MediaBoard: 'media-board' +} as const; + +export type ToolContextType = typeof ToolContextType[keyof typeof ToolContextType]; + + +/** + * + * @export + * @interface ToolContextTypesListResponse + */ +export interface ToolContextTypesListResponse { + /** + * + * @type {Array} + * @memberof ToolContextTypesListResponse + */ + 'data': Array; +} +/** + * + * @export + * @interface ToolLaunchRequestResponse + */ +export interface ToolLaunchRequestResponse { + /** + * The Launch Request method (GET or POST) + * @type {string} + * @memberof ToolLaunchRequestResponse + */ + 'method': ToolLaunchRequestResponseMethodEnum; + /** + * The URL for the Tool Launch Request + * @type {string} + * @memberof ToolLaunchRequestResponse + */ + 'url': string; + /** + * The payload for the Tool Launch Request (optional) + * @type {string} + * @memberof ToolLaunchRequestResponse + */ + 'payload'?: string; + /** + * Specifies whether the Tool should be launched in a new tab + * @type {boolean} + * @memberof ToolLaunchRequestResponse + */ + 'openNewTab'?: boolean; +} + +export const ToolLaunchRequestResponseMethodEnum = { + Get: 'GET', + Post: 'POST' +} as const; + +export type ToolLaunchRequestResponseMethodEnum = typeof ToolLaunchRequestResponseMethodEnum[keyof typeof ToolLaunchRequestResponseMethodEnum]; + +/** + * + * @export + * @interface ToolReferenceListResponse + */ +export interface ToolReferenceListResponse { + /** + * + * @type {Array} + * @memberof ToolReferenceListResponse + */ + 'data': Array; +} +/** + * + * @export + * @interface ToolReferenceResponse + */ +export interface ToolReferenceResponse { + /** + * The id of the tool in the context + * @type {string} + * @memberof ToolReferenceResponse + */ + 'contextToolId': string; + /** + * The description of the tool + * @type {string} + * @memberof ToolReferenceResponse + */ + 'description'?: string; + /** + * The url of the logo which is stored in the db + * @type {string} + * @memberof ToolReferenceResponse + */ + 'logoUrl'?: string; + /** + * The display name of the tool + * @type {string} + * @memberof ToolReferenceResponse + */ + 'displayName': string; + /** + * Whether the tool should be opened in a new tab + * @type {boolean} + * @memberof ToolReferenceResponse + */ + 'openInNewTab': boolean; + /** + * The status of the tool + * @type {ContextExternalToolConfigurationStatusResponse} + * @memberof ToolReferenceResponse + */ + 'status': ContextExternalToolConfigurationStatusResponse; +} +/** + * + * @export + * @interface UpdateBoardTitleParams + */ +export interface UpdateBoardTitleParams { + /** + * + * @type {string} + * @memberof UpdateBoardTitleParams + */ + 'title': string; +} +/** + * + * @export + * @interface UpdateElementContentBodyParams + */ +export interface UpdateElementContentBodyParams { + /** + * + * @type {UpdateElementContentBodyParamsData} + * @memberof UpdateElementContentBodyParams + */ + 'data': UpdateElementContentBodyParamsData; +} +/** + * @type UpdateElementContentBodyParamsData + * @export + */ +export type UpdateElementContentBodyParamsData = DrawingElementContentBody | ExternalToolElementContentBody | FileElementContentBody | LinkElementContentBody | RichTextElementContentBody | SubmissionContainerElementContentBody; + +/** + * + * @export + * @interface UpdateFlagParams + */ +export interface UpdateFlagParams { + /** + * updates flag for an import user + * @type {boolean} + * @memberof UpdateFlagParams + */ + 'flagged': boolean; +} +/** + * + * @export + * @interface UpdateMatchParams + */ +export interface UpdateMatchParams { + /** + * updates local user reference for an import user + * @type {string} + * @memberof UpdateMatchParams + */ + 'userId': string; +} +/** + * + * @export + * @interface UpdateNewsParams + */ +export interface UpdateNewsParams { + /** + * Title of the News entity + * @type {string} + * @memberof UpdateNewsParams + */ + 'title'?: string; + /** + * Content of the News entity + * @type {string} + * @memberof UpdateNewsParams + */ + 'content'?: string; + /** + * The point in time from when the News entity schould be displayed + * @type {string} + * @memberof UpdateNewsParams + */ + 'displayAt'?: string; +} +/** + * + * @export + * @interface UpdateSubmissionItemBodyParams + */ +export interface UpdateSubmissionItemBodyParams { + /** + * Boolean indicating whether the submission is completed. + * @type {boolean} + * @memberof UpdateSubmissionItemBodyParams + */ + 'completed': boolean; +} +/** + * + * @export + * @interface UserConsentResponse + */ +export interface UserConsentResponse { + /** + * + * @type {string} + * @memberof UserConsentResponse + */ + 'form': string; + /** + * + * @type {boolean} + * @memberof UserConsentResponse + */ + 'privacyConsent': boolean; + /** + * + * @type {boolean} + * @memberof UserConsentResponse + */ + 'termsOfUseConsent': boolean; + /** + * + * @type {string} + * @memberof UserConsentResponse + */ + 'dateOfPrivacyConsent': string; + /** + * + * @type {string} + * @memberof UserConsentResponse + */ + 'dateOfTermsOfUseConsent': string; +} +/** + * + * @export + * @interface UserDataResponse + */ +export interface UserDataResponse { + /** + * + * @type {string} + * @memberof UserDataResponse + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof UserDataResponse + */ + 'lastName': string; + /** + * + * @type {string} + * @memberof UserDataResponse + */ + 'userId': string; +} +/** + * + * @export + * @interface UserInfoResponse + */ +export interface UserInfoResponse { + /** + * The id of the User entity + * @type {string} + * @memberof UserInfoResponse + */ + 'id': string; + /** + * First name of the user + * @type {string} + * @memberof UserInfoResponse + */ + 'firstName'?: string; + /** + * Last name of the user + * @type {string} + * @memberof UserInfoResponse + */ + 'lastName'?: string; +} +/** + * + * @export + * @interface UserListResponse + */ +export interface UserListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof UserListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof UserListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof UserListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof UserListResponse + */ + 'limit': number; +} +/** + * + * @export + * @interface UserLoginMigrationMandatoryParams + */ +export interface UserLoginMigrationMandatoryParams { + /** + * + * @type {boolean} + * @memberof UserLoginMigrationMandatoryParams + */ + 'mandatory': boolean; +} +/** + * + * @export + * @interface UserLoginMigrationResponse + */ +export interface UserLoginMigrationResponse { + /** + * Id of the migration + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'id': string; + /** + * Id of the system which is the origin of the migration + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'sourceSystemId'?: string; + /** + * Id of the system which is the target of the migration + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'targetSystemId': string; + /** + * Date when the migration was marked as required + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'mandatorySince'?: string; + /** + * Date when the migration was started + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'startedAt': string; + /** + * Date when the migration was completed + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'closedAt'?: string; + /** + * Date when the migration was completed including the grace period + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'finishedAt'?: string; +} +/** + * + * @export + * @interface UserLoginMigrationSearchListResponse + */ +export interface UserLoginMigrationSearchListResponse { + /** + * Contains user login migration responses + * @type {Array} + * @memberof UserLoginMigrationSearchListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof UserLoginMigrationSearchListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof UserLoginMigrationSearchListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof UserLoginMigrationSearchListResponse + */ + 'limit': number; +} +/** + * + * @export + * @interface UserMatchListResponse + */ +export interface UserMatchListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof UserMatchListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof UserMatchListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof UserMatchListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof UserMatchListResponse + */ + 'limit': number; +} +/** + * + * @export + * @interface UserMatchResponse + */ +export interface UserMatchResponse { + /** + * local user id + * @type {string} + * @memberof UserMatchResponse + */ + 'userId': string; + /** + * login name of local user + * @type {string} + * @memberof UserMatchResponse + */ + 'loginName': string; + /** + * firstname of local user + * @type {string} + * @memberof UserMatchResponse + */ + 'firstName': string; + /** + * lastname of local user + * @type {string} + * @memberof UserMatchResponse + */ + 'lastName': string; + /** + * list of user roles from external system: student, teacher, admin + * @type {Array} + * @memberof UserMatchResponse + */ + 'roleNames': Array; + /** + * match type: admin (manual) or auto (set, when names match exactly for a single user + * @type {string} + * @memberof UserMatchResponse + */ + 'matchedBy'?: UserMatchResponseMatchedByEnum; +} + +export const UserMatchResponseRoleNamesEnum = { + Student: 'student', + Teacher: 'teacher', + Admin: 'admin' +} as const; + +export type UserMatchResponseRoleNamesEnum = typeof UserMatchResponseRoleNamesEnum[keyof typeof UserMatchResponseRoleNamesEnum]; +export const UserMatchResponseMatchedByEnum = { + Auto: 'auto', + Admin: 'admin' +} as const; + +export type UserMatchResponseMatchedByEnum = typeof UserMatchResponseMatchedByEnum[keyof typeof UserMatchResponseMatchedByEnum]; + +/** + * + * @export + * @interface UserResponse + */ +export interface UserResponse { + /** + * + * @type {string} + * @memberof UserResponse + */ + '_id': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'lastName': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'email': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'createdAt': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'birthday': string; + /** + * + * @type {object} + * @memberof UserResponse + */ + 'preferences': object; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'consentStatus': string; + /** + * + * @type {ConsentsResponse} + * @memberof UserResponse + */ + 'consent': ConsentsResponse; + /** + * + * @type {Array} + * @memberof UserResponse + */ + 'classes': Array; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'importHash': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'lastLoginSystemChange': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'outdatedSince': string; +} +/** + * + * @export + * @interface ValidationError + */ +export interface ValidationError { + /** + * The response status code. + * @type {number} + * @memberof ValidationError + */ + 'code': number; + /** + * The error type. + * @type {string} + * @memberof ValidationError + */ + 'type': string; + /** + * The error title. + * @type {string} + * @memberof ValidationError + */ + 'title': string; + /** + * The error message. + * @type {string} + * @memberof ValidationError + */ + 'message': string; + /** + * The error details. + * @type {object} + * @memberof ValidationError + */ + 'details'?: object; +} +/** + * + * @export + * @interface VideoConferenceCreateParams + */ +export interface VideoConferenceCreateParams { + /** + * + * @type {boolean} + * @memberof VideoConferenceCreateParams + */ + 'everyAttendeeJoinsMuted'?: boolean; + /** + * + * @type {boolean} + * @memberof VideoConferenceCreateParams + */ + 'everybodyJoinsAsModerator'?: boolean; + /** + * + * @type {boolean} + * @memberof VideoConferenceCreateParams + */ + 'moderatorMustApproveJoinRequests'?: boolean; + /** + * The URL that the BigBlueButton client will go to after users click the OK button on the ‘You have been logged out’ or ’This session was ended’ message. Has to be a URL from the same domain that the conference is started from. + * @type {string} + * @memberof VideoConferenceCreateParams + */ + 'logoutUrl'?: string; +} +/** + * + * @export + * @interface VideoConferenceInfoResponse + */ +export interface VideoConferenceInfoResponse { + /** + * + * @type {VideoConferenceStateResponse} + * @memberof VideoConferenceInfoResponse + */ + 'state': VideoConferenceStateResponse; + /** + * The options for the video conference. + * @type {VideoConferenceOptionsResponse} + * @memberof VideoConferenceInfoResponse + */ + 'options': VideoConferenceOptionsResponse; +} + + +/** + * + * @export + * @interface VideoConferenceJoinResponse + */ +export interface VideoConferenceJoinResponse { + /** + * The URL to join the video conference. + * @type {string} + * @memberof VideoConferenceJoinResponse + */ + 'url': string; +} +/** + * + * @export + * @interface VideoConferenceOptionsResponse + */ +export interface VideoConferenceOptionsResponse { + /** + * Every attendee joins muted + * @type {boolean} + * @memberof VideoConferenceOptionsResponse + */ + 'everyAttendeeJoinsMuted': boolean; + /** + * Every attendee joins as a moderator + * @type {boolean} + * @memberof VideoConferenceOptionsResponse + */ + 'everybodyJoinsAsModerator': boolean; + /** + * Moderator must approve join requests + * @type {boolean} + * @memberof VideoConferenceOptionsResponse + */ + 'moderatorMustApproveJoinRequests': boolean; +} +/** + * + * @export + * @enum {string} + */ + +export const VideoConferenceScope = { + Course: 'course', + Event: 'event' +} as const; + +export type VideoConferenceScope = typeof VideoConferenceScope[keyof typeof VideoConferenceScope]; + + +/** + * + * @export + * @enum {string} + */ + +export const VideoConferenceStateResponse = { + NotStarted: 'NOT_STARTED', + Running: 'RUNNING', + Finished: 'FINISHED' +} as const; + +export type VideoConferenceStateResponse = typeof VideoConferenceStateResponse[keyof typeof VideoConferenceStateResponse]; + + +/** + * + * @export + * @interface VisibilityBodyParams + */ +export interface VisibilityBodyParams { + /** + * + * @type {boolean} + * @memberof VisibilityBodyParams + */ + 'isVisible': boolean; +} +/** + * + * @export + * @interface VisibilitySettingsResponse + */ +export interface VisibilitySettingsResponse { + /** + * + * @type {string} + * @memberof VisibilitySettingsResponse + */ + 'publishedAt'?: string; +} +/** + * + * @export + * @interface YearsResponse + */ +export interface YearsResponse { + /** + * + * @type {Array} + * @memberof YearsResponse + */ + 'schoolYears': Array; + /** + * + * @type {SchoolYearResponse} + * @memberof YearsResponse + */ + 'activeYear': SchoolYearResponse; + /** + * + * @type {SchoolYearResponse} + * @memberof YearsResponse + */ + 'lastYear': SchoolYearResponse; + /** + * + * @type {SchoolYearResponse} + * @memberof YearsResponse + */ + 'nextYear': SchoolYearResponse; +} + +/** + * AuthorizationApi - axios parameter creator + * @export + */ +export const AuthorizationApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Checks if user is authorized to perform the given operation. + * @param {AuthorizationBodyParams} authorizationBodyParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authorizationReferenceControllerAuthorizeByReference: async (authorizationBodyParams: AuthorizationBodyParams, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'authorizationBodyParams' is not null or undefined + assertParamExists('authorizationReferenceControllerAuthorizeByReference', 'authorizationBodyParams', authorizationBodyParams) + const localVarPath = `/authorization/by-reference`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(authorizationBodyParams, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * AuthorizationApi - functional programming interface + * @export + */ +export const AuthorizationApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = AuthorizationApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Checks if user is authorized to perform the given operation. + * @param {AuthorizationBodyParams} authorizationBodyParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams: AuthorizationBodyParams, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authorizationReferenceControllerAuthorizeByReference']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * AuthorizationApi - factory interface + * @export + */ +export const AuthorizationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = AuthorizationApiFp(configuration) + return { + /** + * + * @summary Checks if user is authorized to perform the given operation. + * @param {AuthorizationBodyParams} authorizationBodyParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams: AuthorizationBodyParams, options?: any): AxiosPromise { + return localVarFp.authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * AuthorizationApi - object-oriented interface + * @export + * @class AuthorizationApi + * @extends {BaseAPI} + */ +export class AuthorizationApi extends BaseAPI { + /** + * + * @summary Checks if user is authorized to perform the given operation. + * @param {AuthorizationBodyParams} authorizationBodyParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthorizationApi + */ + public authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams: AuthorizationBodyParams, options?: RawAxiosRequestConfig) { + return AuthorizationApiFp(this.configuration).authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams, options).then((request) => request(this.axios, this.basePath)); + } +} + + + diff --git a/apps/server/src/infra/authorization/base.ts b/apps/server/src/infra/authorization/base.ts new file mode 100644 index 00000000000..a30fff92848 --- /dev/null +++ b/apps/server/src/infra/authorization/base.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from './configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; + +export const BASE_PATH = "http://localhost:3030/api/v3".replace(/\/+$/, ""); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: RawAxiosRequestConfig; +} + +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + protected configuration: Configuration | undefined; + + constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath ?? basePath; + } + } +}; + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + constructor(public field: string, msg?: string) { + super(msg); + this.name = "RequiredError" + } +} + +interface ServerMap { + [key: string]: { + url: string, + description: string, + }[]; +} + +/** + * + * @export + */ +export const operationServerMap: ServerMap = { +} diff --git a/apps/server/src/infra/authorization/common.ts b/apps/server/src/infra/authorization/common.ts new file mode 100644 index 00000000000..ce83449d1c9 --- /dev/null +++ b/apps/server/src/infra/authorization/common.ts @@ -0,0 +1,150 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from "./configuration"; +import type { RequestArgs } from "./base"; +import type { AxiosInstance, AxiosResponse } from 'axios'; +import { RequiredError } from "./base"; + +/** + * + * @export + */ +export const DUMMY_BASE_URL = 'https://example.com' + +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +} + +/** + * + * @export + */ +export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +} + +/** + * + * @export + */ +export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +} + +/** + * + * @export + */ +export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } +} + +/** + * + * @export + */ +export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } +} + +function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void { + if (parameter == null) return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => + setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) + ); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} + +/** + * + * @export + */ +export const setSearchParams = function (url: URL, ...objects: any[]) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +} + +/** + * + * @export + */ +export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +} + +/** + * + * @export + */ +export const toPathString = function (url: URL) { + return url.pathname + url.search + url.hash +} + +/** + * + * @export + */ +export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { + return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; + return axios.request(axiosRequestArgs); + }; +} diff --git a/apps/server/src/infra/authorization/configuration.ts b/apps/server/src/infra/authorization/configuration.ts new file mode 100644 index 00000000000..768d04811a2 --- /dev/null +++ b/apps/server/src/infra/authorization/configuration.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ConfigurationParameters { + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + serverIndex?: number; + baseOptions?: any; + formDataCtor?: new () => any; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.serverIndex = param.serverIndex; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} diff --git a/apps/server/src/infra/authorization/git_push.sh b/apps/server/src/infra/authorization/git_push.sh new file mode 100644 index 00000000000..f53a75d4fab --- /dev/null +++ b/apps/server/src/infra/authorization/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/apps/server/src/infra/authorization/index.ts b/apps/server/src/infra/authorization/index.ts new file mode 100644 index 00000000000..de68565fde0 --- /dev/null +++ b/apps/server/src/infra/authorization/index.ts @@ -0,0 +1,18 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export * from "./api"; +export * from "./configuration"; + diff --git a/openapitools.json b/openapitools.json new file mode 100644 index 00000000000..779a497566a --- /dev/null +++ b/openapitools.json @@ -0,0 +1,16 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.6.0", + "additionalProperties": { + "apiPackage": "api", + "enumNameSuffix": "", + "enumPropertyNaming": "UPPERCASE", + "modelPackage": "models", + "supportsES6": true, + "withInterfaces": true, + "withSeparateModelsAndApi": true + } + } +} diff --git a/package-lock.json b/package-lock.json index 5547abc9647..12b2d1ddc44 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,6 +41,7 @@ "@nestjs/platform-ws": "^10.3.0", "@nestjs/swagger": "^7.1.10", "@nestjs/websockets": "^10.3.7", + "@openapitools/openapi-generator-cli": "^2.13.4", "@socket.io/mongo-adapter": "^0.3.2", "@types/gm": "^1.25.1", "@types/ldapjs": "^2.2.5", @@ -4403,12 +4404,12 @@ } }, "node_modules/@nestjs/axios": { - "version": "3.0.0", - "license": "MIT", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@nestjs/axios/-/axios-3.0.2.tgz", + "integrity": "sha512-Z6GuOUdNQjP7FX+OuV2Ybyamse+/e0BFdTWBX5JxpBDKA+YkdLynDgG6HTF04zy6e9zPa19UX0WA2VDoehwhXQ==", "peerDependencies": { "@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0", "axios": "^1.3.1", - "reflect-metadata": "^0.1.12", "rxjs": "^6.0.0 || ^7.0.0" } }, @@ -4649,8 +4650,9 @@ } }, "node_modules/@nestjs/common": { - "version": "10.2.4", - "license": "MIT", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-10.3.0.tgz", + "integrity": "sha512-DGv34UHsZBxCM3H5QGE2XE/+oLJzz5+714JQjBhjD9VccFlQs3LRxo/epso4l7nJIiNlZkPyIUC8WzfU/5RTsQ==", "dependencies": { "iterare": "1.2.1", "tslib": "2.6.2", @@ -4707,9 +4709,10 @@ } }, "node_modules/@nestjs/core": { - "version": "10.2.4", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-10.3.0.tgz", + "integrity": "sha512-N06P5ncknW/Pm8bj964WvLIZn2gNhHliCBoAO1LeBvNImYkecqKcrmLbY49Fa1rmMfEM3MuBHeDys3edeuYAOA==", "hasInstallScript": true, - "license": "MIT", "dependencies": { "@nuxtjs/opencollective": "0.3.2", "fast-safe-stringify": "2.1.1", @@ -5183,6 +5186,195 @@ "node": ">=8" } }, + "node_modules/@openapitools/openapi-generator-cli": { + "version": "2.13.4", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.4.tgz", + "integrity": "sha512-4JKyrk55ohQK2FcuZbPdNvxdyXD14jjOIvE8hYjJ+E1cHbRbfXQXbYnjTODFE52Gx8eAxz8C9icuhDYDLn7nww==", + "hasInstallScript": true, + "dependencies": { + "@nestjs/axios": "3.0.2", + "@nestjs/common": "10.3.0", + "@nestjs/core": "10.3.0", + "@nuxtjs/opencollective": "0.3.2", + "axios": "1.6.8", + "chalk": "4.1.2", + "commander": "8.3.0", + "compare-versions": "4.1.4", + "concurrently": "6.5.1", + "console.table": "0.10.0", + "fs-extra": "10.1.0", + "glob": "7.2.3", + "https-proxy-agent": "7.0.4", + "inquirer": "8.2.6", + "lodash": "4.17.21", + "reflect-metadata": "0.1.13", + "rxjs": "7.8.1", + "tslib": "2.6.2" + }, + "bin": { + "openapi-generator-cli": "main.js" + }, + "engines": { + "node": ">=10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/openapi_generator" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/agent-base": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", + "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/debug": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", + "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/https-proxy-agent": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz", + "integrity": "sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==", + "dependencies": { + "agent-base": "^7.0.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/inquirer": { + "version": "8.2.6", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.6.tgz", + "integrity": "sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==", + "dependencies": { + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^6.0.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/@panva/asn1.js": { "version": "1.0.0", "license": "MIT", @@ -6600,7 +6792,6 @@ }, "node_modules/ansi-escapes": { "version": "4.3.2", - "dev": true, "license": "MIT", "dependencies": { "type-fest": "^0.21.3" @@ -7144,10 +7335,11 @@ } }, "node_modules/axios": { - "version": "1.6.2", - "license": "MIT", + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", + "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", "dependencies": { - "follow-redirects": "^1.15.0", + "follow-redirects": "^1.15.6", "form-data": "^4.0.0", "proxy-from-env": "^1.1.0" } @@ -7883,7 +8075,6 @@ }, "node_modules/chardet": { "version": "0.7.0", - "dev": true, "license": "MIT" }, "node_modules/charenc": { @@ -8129,7 +8320,6 @@ }, "node_modules/cli-cursor": { "version": "3.1.0", - "dev": true, "license": "MIT", "dependencies": { "restore-cursor": "^3.1.0" @@ -8140,7 +8330,6 @@ }, "node_modules/cli-spinners": { "version": "2.6.1", - "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -8165,7 +8354,6 @@ }, "node_modules/cli-width": { "version": "3.0.0", - "dev": true, "license": "ISC", "engines": { "node": ">= 10" @@ -8530,6 +8718,11 @@ "version": "1.0.1", "license": "MIT" }, + "node_modules/compare-versions": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-4.1.4.tgz", + "integrity": "sha512-FemMreK9xNyL8gQevsdRMrvO4lFCkQP7qbuktn1q8ndcNk1+0mz7lgE7b/sNvbhVgY4w6tMN1FDp6aADjqw2rw==" + }, "node_modules/component-emitter": { "version": "1.3.0", "dev": true, @@ -8761,6 +8954,17 @@ "version": "2.15.3", "license": "MIT" }, + "node_modules/console.table": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz", + "integrity": "sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g==", + "dependencies": { + "easy-table": "1.1.0" + }, + "engines": { + "node": "> 0.10" + } + }, "node_modules/content-disposition": { "version": "0.5.4", "license": "MIT", @@ -9216,7 +9420,6 @@ }, "node_modules/defaults": { "version": "1.0.3", - "dev": true, "license": "MIT", "dependencies": { "clone": "^1.0.2" @@ -9510,6 +9713,14 @@ "safe-buffer": "~5.1.0" } }, + "node_modules/easy-table": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz", + "integrity": "sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA==", + "optionalDependencies": { + "wcwidth": ">=1.0.1" + } + }, "node_modules/ecc-jsbn": { "version": "0.1.2", "license": "MIT", @@ -11188,7 +11399,6 @@ }, "node_modules/external-editor": { "version": "3.1.0", - "dev": true, "license": "MIT", "dependencies": { "chardet": "^0.7.0", @@ -11372,7 +11582,6 @@ }, "node_modules/figures": { "version": "3.2.0", - "dev": true, "license": "MIT", "dependencies": { "escape-string-regexp": "^1.0.5" @@ -11386,7 +11595,6 @@ }, "node_modules/figures/node_modules/escape-string-regexp": { "version": "1.0.5", - "dev": true, "license": "MIT", "engines": { "node": ">=0.8.0" @@ -12908,7 +13116,6 @@ }, "node_modules/is-interactive": { "version": "1.0.0", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -13068,7 +13275,6 @@ }, "node_modules/is-unicode-supported": { "version": "0.1.0", - "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -15862,7 +16068,6 @@ }, "node_modules/log-symbols": { "version": "4.1.0", - "dev": true, "license": "MIT", "dependencies": { "chalk": "^4.1.0", @@ -15877,7 +16082,6 @@ }, "node_modules/log-symbols/node_modules/ansi-styles": { "version": "4.3.0", - "dev": true, "license": "MIT", "dependencies": { "color-convert": "^2.0.1" @@ -15891,7 +16095,6 @@ }, "node_modules/log-symbols/node_modules/chalk": { "version": "4.1.2", - "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", @@ -15906,7 +16109,6 @@ }, "node_modules/log-symbols/node_modules/color-convert": { "version": "2.0.1", - "dev": true, "license": "MIT", "dependencies": { "color-name": "~1.1.4" @@ -15917,12 +16119,10 @@ }, "node_modules/log-symbols/node_modules/color-name": { "version": "1.1.4", - "dev": true, "license": "MIT" }, "node_modules/log-symbols/node_modules/supports-color": { "version": "7.2.0", - "dev": true, "license": "MIT", "dependencies": { "has-flag": "^4.0.0" @@ -16272,7 +16472,6 @@ }, "node_modules/mimic-fn": { "version": "2.1.0", - "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -17038,7 +17237,6 @@ }, "node_modules/mute-stream": { "version": "0.0.8", - "dev": true, "license": "ISC" }, "node_modules/mv": { @@ -17795,7 +17993,6 @@ }, "node_modules/onetime": { "version": "5.1.2", - "dev": true, "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" @@ -17865,7 +18062,6 @@ }, "node_modules/ora": { "version": "5.4.1", - "dev": true, "license": "MIT", "dependencies": { "bl": "^4.1.0", @@ -17887,7 +18083,6 @@ }, "node_modules/ora/node_modules/ansi-styles": { "version": "4.3.0", - "dev": true, "license": "MIT", "dependencies": { "color-convert": "^2.0.1" @@ -17901,7 +18096,6 @@ }, "node_modules/ora/node_modules/bl": { "version": "4.1.0", - "dev": true, "license": "MIT", "dependencies": { "buffer": "^5.5.0", @@ -17911,7 +18105,6 @@ }, "node_modules/ora/node_modules/buffer": { "version": "5.7.1", - "dev": true, "funding": [ { "type": "github", @@ -17934,7 +18127,6 @@ }, "node_modules/ora/node_modules/chalk": { "version": "4.1.2", - "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", @@ -17949,7 +18141,6 @@ }, "node_modules/ora/node_modules/color-convert": { "version": "2.0.1", - "dev": true, "license": "MIT", "dependencies": { "color-name": "~1.1.4" @@ -17960,12 +18151,10 @@ }, "node_modules/ora/node_modules/color-name": { "version": "1.1.4", - "dev": true, "license": "MIT" }, "node_modules/ora/node_modules/readable-stream": { "version": "3.6.0", - "dev": true, "license": "MIT", "dependencies": { "inherits": "^2.0.3", @@ -17978,7 +18167,6 @@ }, "node_modules/ora/node_modules/string_decoder": { "version": "1.3.0", - "dev": true, "license": "MIT", "dependencies": { "safe-buffer": "~5.2.0" @@ -17986,7 +18174,6 @@ }, "node_modules/ora/node_modules/supports-color": { "version": "7.2.0", - "dev": true, "license": "MIT", "dependencies": { "has-flag": "^4.0.0" @@ -18024,7 +18211,6 @@ }, "node_modules/os-tmpdir": { "version": "1.0.2", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -19681,7 +19867,6 @@ }, "node_modules/restore-cursor": { "version": "3.1.0", - "dev": true, "license": "MIT", "dependencies": { "onetime": "^5.1.0", @@ -20194,7 +20379,6 @@ }, "node_modules/run-async": { "version": "2.4.1", - "dev": true, "license": "MIT", "engines": { "node": ">=0.12.0" @@ -20732,7 +20916,6 @@ }, "node_modules/signal-exit": { "version": "3.0.7", - "dev": true, "license": "ISC" }, "node_modules/simple-oauth2": { @@ -21953,7 +22136,6 @@ }, "node_modules/tmp": { "version": "0.0.33", - "dev": true, "license": "MIT", "dependencies": { "os-tmpdir": "~1.0.2" @@ -22580,7 +22762,6 @@ }, "node_modules/type-fest": { "version": "0.21.3", - "dev": true, "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" @@ -23137,7 +23318,6 @@ }, "node_modules/wcwidth": { "version": "1.0.1", - "dev": true, "license": "MIT", "dependencies": { "defaults": "^1.0.3" diff --git a/package.json b/package.json index ed99d072020..7b34ec37ffd 100644 --- a/package.json +++ b/package.json @@ -119,7 +119,8 @@ "syncIndexes": "node ./scripts/syncIndexes.js", "ensureIndexes": "npm run nest:start:console -- database sync-indexes", "schoolExport": "node ./scripts/schoolExport.js", - "schoolImport": "node ./scripts/schoolImport.js" + "schoolImport": "node ./scripts/schoolImport.js", + "generate-client:authorization": "node ./scripts/generate-client.js -u 'http://localhost:3030/api/v3/docs-json/' -p 'apps/server/src/infra/authorization' -c 'openapitools.json' -f 'operationId:AuthorizationReferenceController_authorizeByReference'" }, "dependencies": { "@aws-sdk/lib-storage": "^3.100.0", @@ -155,6 +156,7 @@ "@nestjs/platform-ws": "^10.3.0", "@nestjs/swagger": "^7.1.10", "@nestjs/websockets": "^10.3.7", + "@openapitools/openapi-generator-cli": "^2.13.4", "@socket.io/mongo-adapter": "^0.3.2", "@types/gm": "^1.25.1", "@types/ldapjs": "^2.2.5", diff --git a/scripts/generate-client.js b/scripts/generate-client.js new file mode 100644 index 00000000000..609bd87b182 --- /dev/null +++ b/scripts/generate-client.js @@ -0,0 +1,90 @@ +#!/usr/bin/env node + +const arg = require('arg'); +const { exec } = require('child_process'); +const { log, error } = console; + +const args = arg( + { + '--help': Boolean, + '-h': '--help', + + '--url': String, + '-u': '--url', + + '--path': String, + '-p': '--path', + + '--config': String, + '-c': '--config', + + '--filter': String, + '-f': '--filter', + }, + { + argv: process.argv.slice(2), + } +); + +if ('--help' in args) { + log(`Usage: node generate-client.js [opts] +OPTIONS: + --help (-h) Show this help. + --path (-p) Path to the newly created client's directory. + --url (-u) URL/path to the spec file in yml/json format. + --config (-c) path to the additional-properties config file in yml/json format + --filter (-f) filter to apply to the openapi spec before generating the client +`); + process.exit(0); +} + +const params = { + /** url to load the open-api definition from */ + url: args._[0] || args['--url'], + /** folder to save the open-api client */ + path: args._[1] || args['--path'], + + config: args._[2] || args['--config'] || '', + + filter: args._[3] || args['--filter'] || '', +}; + +const errorMessageContains = (includedString, error) => + error && error.message && typeof error.message === 'string' && error.message.includes(includedString); + +const getOpenApiCommand = (params) => { + const { url, path, config, filter } = params; + const configFile = config ? `-c ${config}` : ''; + const filterString = filter ? ` --openapi-normalizer FILTER="${filter}"` : ''; + const command = `openapi-generator-cli generate -i ${url} -g typescript-axios -o ${path} ${configFile} --skip-validate-spec ${filterString}`; + + return command; +}; + +const asyncExec = (command) => + new Promise((resolve, reject) => { + exec(command, (error, stdout, stderr) => { + if (error) { + return reject(error); + } + return resolve(stdout || stderr); + }); + }); + +const generateClient = () => { + const cmd = getOpenApiCommand(params); + log(`Try updating the openapi client in the folder ${params.path} from ${params.url} ...`); + asyncExec(cmd) + .then((stdout) => log(stdout)) + .catch((stderr) => { + if (errorMessageContains('ConnectException', stderr)) { + error(`Failed to connect to ${params.url}, is the server started at this url?`); + } else error(stderr.message); + }); +}; + +const main = () => { + generateClient(); +}; + +main(); From a9808c1b1173cfaf56d65f8b5913d60c11e13296 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Wed, 5 Jun 2024 12:59:04 +0200 Subject: [PATCH 02/40] BC-6453 - move OpenAPI generated client to `apps/server/src/infra/authorization-client/authorization-api-client` --- .../authorization-api-client}/.gitignore | 0 .../authorization-api-client}/.npmignore | 0 .../authorization-api-client}/.openapi-generator-ignore | 0 .../authorization-api-client}/.openapi-generator/FILES | 1 + .../authorization-api-client}/.openapi-generator/VERSION | 0 .../authorization-api-client}/api.ts | 0 .../authorization-api-client}/base.ts | 0 .../authorization-api-client}/common.ts | 0 .../authorization-api-client}/configuration.ts | 0 .../authorization-api-client}/git_push.sh | 0 .../authorization-api-client}/index.ts | 0 package.json | 2 +- 12 files changed, 2 insertions(+), 1 deletion(-) rename apps/server/src/infra/{authorization => authorization-client/authorization-api-client}/.gitignore (100%) rename apps/server/src/infra/{authorization => authorization-client/authorization-api-client}/.npmignore (100%) rename apps/server/src/infra/{authorization => authorization-client/authorization-api-client}/.openapi-generator-ignore (100%) rename apps/server/src/infra/{authorization => authorization-client/authorization-api-client}/.openapi-generator/FILES (76%) rename apps/server/src/infra/{authorization => authorization-client/authorization-api-client}/.openapi-generator/VERSION (100%) rename apps/server/src/infra/{authorization => authorization-client/authorization-api-client}/api.ts (100%) rename apps/server/src/infra/{authorization => authorization-client/authorization-api-client}/base.ts (100%) rename apps/server/src/infra/{authorization => authorization-client/authorization-api-client}/common.ts (100%) rename apps/server/src/infra/{authorization => authorization-client/authorization-api-client}/configuration.ts (100%) rename apps/server/src/infra/{authorization => authorization-client/authorization-api-client}/git_push.sh (100%) rename apps/server/src/infra/{authorization => authorization-client/authorization-api-client}/index.ts (100%) diff --git a/apps/server/src/infra/authorization/.gitignore b/apps/server/src/infra/authorization-client/authorization-api-client/.gitignore similarity index 100% rename from apps/server/src/infra/authorization/.gitignore rename to apps/server/src/infra/authorization-client/authorization-api-client/.gitignore diff --git a/apps/server/src/infra/authorization/.npmignore b/apps/server/src/infra/authorization-client/authorization-api-client/.npmignore similarity index 100% rename from apps/server/src/infra/authorization/.npmignore rename to apps/server/src/infra/authorization-client/authorization-api-client/.npmignore diff --git a/apps/server/src/infra/authorization/.openapi-generator-ignore b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore similarity index 100% rename from apps/server/src/infra/authorization/.openapi-generator-ignore rename to apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore diff --git a/apps/server/src/infra/authorization/.openapi-generator/FILES b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES similarity index 76% rename from apps/server/src/infra/authorization/.openapi-generator/FILES rename to apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES index a80cd4f07b0..16b445eee6d 100644 --- a/apps/server/src/infra/authorization/.openapi-generator/FILES +++ b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts base.ts common.ts diff --git a/apps/server/src/infra/authorization/.openapi-generator/VERSION b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/VERSION similarity index 100% rename from apps/server/src/infra/authorization/.openapi-generator/VERSION rename to apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/VERSION diff --git a/apps/server/src/infra/authorization/api.ts b/apps/server/src/infra/authorization-client/authorization-api-client/api.ts similarity index 100% rename from apps/server/src/infra/authorization/api.ts rename to apps/server/src/infra/authorization-client/authorization-api-client/api.ts diff --git a/apps/server/src/infra/authorization/base.ts b/apps/server/src/infra/authorization-client/authorization-api-client/base.ts similarity index 100% rename from apps/server/src/infra/authorization/base.ts rename to apps/server/src/infra/authorization-client/authorization-api-client/base.ts diff --git a/apps/server/src/infra/authorization/common.ts b/apps/server/src/infra/authorization-client/authorization-api-client/common.ts similarity index 100% rename from apps/server/src/infra/authorization/common.ts rename to apps/server/src/infra/authorization-client/authorization-api-client/common.ts diff --git a/apps/server/src/infra/authorization/configuration.ts b/apps/server/src/infra/authorization-client/authorization-api-client/configuration.ts similarity index 100% rename from apps/server/src/infra/authorization/configuration.ts rename to apps/server/src/infra/authorization-client/authorization-api-client/configuration.ts diff --git a/apps/server/src/infra/authorization/git_push.sh b/apps/server/src/infra/authorization-client/authorization-api-client/git_push.sh similarity index 100% rename from apps/server/src/infra/authorization/git_push.sh rename to apps/server/src/infra/authorization-client/authorization-api-client/git_push.sh diff --git a/apps/server/src/infra/authorization/index.ts b/apps/server/src/infra/authorization-client/authorization-api-client/index.ts similarity index 100% rename from apps/server/src/infra/authorization/index.ts rename to apps/server/src/infra/authorization-client/authorization-api-client/index.ts diff --git a/package.json b/package.json index 7b34ec37ffd..58b954e7f89 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "ensureIndexes": "npm run nest:start:console -- database sync-indexes", "schoolExport": "node ./scripts/schoolExport.js", "schoolImport": "node ./scripts/schoolImport.js", - "generate-client:authorization": "node ./scripts/generate-client.js -u 'http://localhost:3030/api/v3/docs-json/' -p 'apps/server/src/infra/authorization' -c 'openapitools.json' -f 'operationId:AuthorizationReferenceController_authorizeByReference'" + "generate-client:authorization": "node ./scripts/generate-client.js -u 'http://localhost:3030/api/v3/docs-json/' -p 'apps/server/src/infra/authorization-client/authorization-api-client' -c 'openapitools.json' -f 'operationId:AuthorizationReferenceController_authorizeByReference'" }, "dependencies": { "@aws-sdk/lib-storage": "^3.100.0", From f20813896b7b70a052c02075f330ee69afe80196 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Wed, 5 Jun 2024 13:51:40 +0200 Subject: [PATCH 03/40] BC-6453 - move latest OpenAPI config file to separate file and use latest changes --- .../.openapi-generator/FILES | 261 + .../authorization-api-client/api.ts | 8343 +---------------- .../api/authorization-api.ts | 159 + .../authorization-api-client/index.ts | 2 +- .../models/account-by-id-body-params.ts | 42 + .../models/account-response.ts | 54 + .../models/account-search-list-response.ts | 51 + .../authorization-api-client/models/action.ts | 31 + .../models/alert-response.ts | 33 + .../models/api-validation-error.ts | 54 + .../models/authorization-body-params.ts | 62 + .../models/authorization-context-params.ts | 44 + .../models/authorized-reponse.ts | 36 + .../models/basic-tool-config-params.ts | 36 + .../models/board-context-response.ts | 41 + .../models/board-element-response.ts | 45 + .../models/board-external-reference-type.ts | 31 + .../models/board-layout.ts | 31 + .../models/board-parent-type.ts | 31 + .../models/board-response.ts | 66 + ...n-controller-create-element201-response.ts | 38 + ...d-controller-create-element201-response.ts | 50 + .../models/card-list-response.ts | 33 + .../models/card-response-elements-inner.ts | 50 + .../models/card-response.ts | 69 + .../models/card-skeleton-response.ts | 36 + .../models/change-language-params.ts | 35 + .../models/class-info-response.ts | 89 + .../models/class-info-search-list-response.ts | 51 + .../models/class-request-context.ts | 31 + .../models/class-response.ts | 36 + .../models/class-sort-by.ts | 34 + ...laborative-text-editor-element-response.ts | 56 + .../collaborative-text-editor-parent-type.ts | 30 + .../collaborative-text-editor-response.ts | 30 + .../models/collapsable-body-params.ts | 30 + .../models/color-body-params.ts | 35 + .../models/column-response.ts | 54 + .../models/config-response.ts | 431 + .../models/consent-request-body.ts | 72 + .../models/consent-response.ts | 108 + .../models/consent-session-response.ts | 42 + .../models/consents-response.ts | 42 + .../models/content-element-type.ts | 36 + .../context-external-tool-body-params.ts | 41 + ...rnal-tool-configuration-status-response.ts | 60 + ...ol-configuration-template-list-response.ts | 33 + ...al-tool-configuration-template-response.ts | 57 + ...xternal-tool-count-per-context-response.ts | 36 + .../context-external-tool-post-params.ts | 57 + .../models/context-external-tool-response.ts | 78 + ...text-external-tool-search-list-response.ts | 33 + .../models/copy-api-response.ts | 114 + .../models/county-response.ts | 48 + .../models/course-export-body-params.ts | 42 + .../models/course-info-response.ts | 36 + .../models/course-metadata-list-response.ts | 51 + .../models/course-metadata-response.ts | 66 + .../models/create-board-body-params.ts | 56 + .../models/create-board-response.ts | 30 + .../models/create-card-body-params.ts | 43 + .../create-content-element-body-params.ts | 41 + .../create-media-element-body-params.ts | 42 + .../models/create-news-params.ts | 63 + .../create-submission-item-body-params.ts | 30 + .../models/custom-parameter-entry-param.ts | 36 + .../models/custom-parameter-entry-response.ts | 36 + .../models/custom-parameter-post-params.ts | 90 + .../models/custom-parameter-response.ts | 118 + .../models/dashboard-grid-element-response.ts | 87 + .../dashboard-grid-sub-element-response.ts | 48 + .../models/dashboard-response.ts | 39 + .../models/drawing-content-body.ts | 30 + .../models/drawing-element-content-body.ts | 44 + .../models/drawing-element-content.ts | 30 + .../models/drawing-element-response.ts | 59 + .../models/entity-not-found-error.ts | 54 + .../models/external-source-response.ts | 36 + .../external-tool-bulk-create-params.ts | 33 + .../models/external-tool-content-body.ts | 30 + .../models/external-tool-create-params.ts | 102 + .../external-tool-element-content-body.ts | 44 + .../models/external-tool-element-content.ts | 30 + .../models/external-tool-element-response.ts | 59 + .../models/external-tool-medium-params.ts | 42 + .../models/external-tool-medium-response.ts | 42 + .../models/external-tool-metadata-response.ts | 39 + .../models/external-tool-response-config.ts | 39 + .../models/external-tool-response.ts | 108 + .../external-tool-search-list-response.ts | 51 + .../external-tool-update-params-config.ts | 39 + .../models/external-tool-update-params.ts | 108 + .../models/federal-state-response.ts | 57 + .../models/file-content-body.ts | 36 + .../models/file-element-content-body.ts | 44 + .../models/file-element-content.ts | 36 + .../models/file-element-response.ts | 59 + .../models/file-storage-type.ts | 30 + .../models/forbidden-operation-error.ts | 54 + .../models/get-meta-tag-data-body.ts | 30 + .../models/group-list-response.ts | 51 + .../models/group-response.ts | 75 + .../models/group-user-response.ts | 53 + .../models/import-user-list-response.ts | 51 + .../models/import-user-response.ts | 84 + .../authorization-api-client/models/index.ts | 259 + .../models/layout-body-params.ts | 35 + .../models/ldap-authorization-body-params.ts | 48 + .../models/lesson-content-response.ts | 73 + .../models/lesson-copy-api-params.ts | 30 + .../models/lesson-metadata-list-response.ts | 51 + .../models/lesson-metadata-response.ts | 36 + .../models/lesson-response.ts | 85 + .../models/link-content-body.ts | 48 + .../models/link-element-content-body.ts | 44 + .../models/link-element-content.ts | 48 + .../models/link-element-response.ts | 59 + .../models/local-authorization-body-params.ts | 36 + .../models/login-request-body.ts | 66 + .../models/login-response.ts | 87 + .../models/lti-message-type.ts | 30 + .../models/lti-privacy-permission.ts | 34 + .../models/lti11-tool-config-create-params.ts | 77 + .../models/lti11-tool-config-update-params.ts | 77 + .../models/material-response.ts | 72 + .../models/me-account-response.ts | 30 + .../models/me-response.ts | 77 + .../models/me-role-response.ts | 36 + .../models/me-school-logo-response.ts | 36 + .../models/me-school-response.ts | 45 + .../models/me-user-response.ts | 48 + .../media-available-line-element-response.ts | 48 + .../models/media-available-line-response.ts | 50 + .../models/media-board-colors.ts | 49 + .../models/media-board-layout-type.ts | 31 + .../models/media-board-response.ts | 59 + .../media-external-tool-element-content.ts | 30 + .../media-external-tool-element-response.ts | 48 + .../models/media-line-response.ts | 71 + .../models/message-origin.ts | 36 + .../models/message.ts | 69 + .../models/meta-tag-extractor-response.ts | 66 + .../models/move-card-body-params.ts | 36 + .../models/move-column-body-params.ts | 36 + .../models/move-content-element-body.ts | 36 + .../models/move-element-body-params.ts | 36 + .../models/move-element-params.ts | 39 + .../models/move-element-position-params.ts | 42 + .../models/news-list-response.ts | 51 + .../models/news-response.ts | 134 + .../models/news-target-model.ts | 32 + .../models/oauth-client-body.ts | 84 + .../models/oauth-client-response.ts | 300 + .../models/oauth-config-response.ts | 96 + .../models/oauth-token-dto.ts | 42 + .../oauth2-authorization-body-params.ts | 42 + .../models/oauth2-migration-params.ts | 42 + .../oauth2-tool-config-create-params.ts | 78 + .../oauth2-tool-config-update-params.ts | 78 + .../models/oidc-context-response.ts | 54 + .../models/parent-consent-response.ts | 60 + .../models/patch-group-params.ts | 30 + .../models/patch-my-account-params.ts | 54 + .../models/patch-my-password-params.ts | 36 + .../models/patch-order-params.ts | 30 + .../models/patch-visibility-params.ts | 30 + .../models/provider-config-response.ts | 30 + .../models/pseudonym-response.ts | 42 + .../models/public-system-list-response.ts | 33 + .../public-system-response-oauth-config.ts | 27 + .../models/public-system-response.ts | 57 + .../models/redirect-response.ts | 30 + .../models/rename-body-params.ts | 30 + .../models/resolved-user-response.ts | 72 + .../models/rich-text-content-body.ts | 36 + .../models/rich-text-element-content-body.ts | 44 + .../models/rich-text-element-content.ts | 36 + .../models/rich-text-element-response.ts | 59 + .../models/rich-text.ts | 46 + .../models/role-name.ts | 48 + ...er-get-provisioning-options200-response.ts | 26 + .../models/school-exists-response.ts | 30 + ...rnal-tool-configuration-status-response.ts | 36 + ...ol-configuration-template-list-response.ts | 33 + ...al-tool-configuration-template-response.ts | 51 + .../school-external-tool-metadata-response.ts | 33 + .../school-external-tool-post-params.ts | 51 + .../models/school-external-tool-response.ts | 72 + ...hool-external-tool-search-list-response.ts | 33 + .../school-for-external-invite-response.ts | 36 + .../models/school-for-ldap-login-response.ts | 45 + .../models/school-info-response.ts | 36 + .../models/school-logo.ts | 36 + .../models/school-permissions-params.ts | 42 + .../models/school-purpose.ts | 34 + .../models/school-response.ts | 179 + .../models/school-system-response.ts | 57 + .../models/school-update-body-params.ts | 97 + .../models/school-year-query-type.ts | 32 + .../models/school-year-response.ts | 48 + ...chul-conne-xprovisioning-options-params.ts | 48 + ...ul-conne-xprovisioning-options-response.ts | 48 + .../models/schulcloud-theme.ts | 33 + .../models/set-height-body-params.ts | 30 + .../models/share-token-body-params.ts | 58 + .../models/share-token-import-body-params.ts | 36 + .../models/share-token-info-response.ts | 52 + .../models/share-token-payload-response.ts | 46 + .../models/share-token-response.ts | 45 + .../models/single-column-board-response.ts | 63 + .../models/student-permission-params.ts | 30 + .../submission-container-content-body.ts | 30 + ...bmission-container-element-content-body.ts | 44 + .../submission-container-element-content.ts | 30 + .../submission-container-element-response.ts | 59 + ...submission-item-response-elements-inner.ts | 38 + .../models/submission-item-response.ts | 60 + .../models/submission-status-list-response.ts | 33 + .../models/submission-status-response.ts | 60 + .../models/submissions-response.ts | 42 + .../models/successful-response.ts | 30 + .../models/system-for-ldap-login-response.ts | 42 + .../models/target-info-response.ts | 36 + .../models/task-copy-api-params.ts | 36 + .../models/task-list-response.ts | 51 + .../models/task-response.ts | 108 + .../models/task-status-response.ts | 60 + .../models/teacher-permission-params.ts | 30 + .../models/team-permissions-body.ts | 54 + .../models/timestamps-response.ts | 42 + .../models/timezone.ts | 30 + .../models/tool-config-type.ts | 32 + .../models/tool-context-type.ts | 32 + .../tool-context-types-list-response.ts | 33 + .../models/tool-launch-request-response.ts | 56 + .../models/tool-reference-list-response.ts | 33 + .../models/tool-reference-response.ts | 63 + .../models/update-board-title-params.ts | 30 + ...update-element-content-body-params-data.ts | 47 + .../update-element-content-body-params.ts | 33 + .../models/update-flag-params.ts | 30 + .../models/update-match-params.ts | 30 + .../models/update-news-params.ts | 42 + .../update-submission-item-body-params.ts | 30 + .../models/user-consent-response.ts | 54 + .../models/user-data-response.ts | 42 + .../models/user-info-response.ts | 42 + .../models/user-list-response.ts | 51 + .../user-login-migration-mandatory-params.ts | 30 + .../models/user-login-migration-response.ts | 66 + ...er-login-migration-search-list-response.ts | 51 + .../models/user-match-list-response.ts | 51 + .../models/user-match-response.ts | 75 + .../models/user-response.ts | 108 + .../models/validation-error.ts | 54 + .../models/video-conference-create-params.ts | 48 + .../models/video-conference-info-response.ts | 44 + .../models/video-conference-join-response.ts | 30 + .../video-conference-options-response.ts | 42 + .../models/video-conference-scope.ts | 31 + .../models/video-conference-state-response.ts | 32 + .../models/visibility-body-params.ts | 30 + .../models/visibility-settings-response.ts | 30 + .../models/years-response.ts | 51 + .../authorization-client.adapter.ts | 29 + .../authorization-client.module.ts | 30 + openapitools-config.json | 9 + openapitools.json | 11 +- package.json | 2 +- scripts/generate-client.js | 2 +- 270 files changed, 13965 insertions(+), 8355 deletions(-) create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/api/authorization-api.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/account-by-id-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/account-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/account-search-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/action.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/alert-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/api-validation-error.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-context-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/authorized-reponse.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/basic-tool-config-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-context-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-element-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-external-reference-type.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-layout.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-parent-type.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-submission-controller-create-element201-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/card-controller-create-element201-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/card-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/card-response-elements-inner.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/card-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/card-skeleton-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/change-language-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-search-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/class-request-context.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/class-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/class-sort-by.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-element-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-parent-type.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/collapsable-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/color-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/column-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/config-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/consent-request-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/consent-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/consent-session-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/consents-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/content-element-type.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-status-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-count-per-context-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-post-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-search-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/copy-api-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/county-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/course-export-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/course-info-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-card-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-content-element-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-media-element-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-news-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-submission-item-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-param.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-post-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-element-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-sub-element-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-content-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/entity-not-found-error.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-source-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-bulk-create-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-content-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-create-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-metadata-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response-config.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-search-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params-config.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/federal-state-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/file-content-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/file-storage-type.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/forbidden-operation-error.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/get-meta-tag-data-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/group-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/group-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/group-user-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/index.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/layout-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/ldap-authorization-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-content-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-copy-api-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/link-content-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/local-authorization-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/login-request-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/login-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lti-message-type.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lti-privacy-permission.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-create-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-update-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/material-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/me-account-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/me-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/me-role-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-logo-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/me-user-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-element-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-colors.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-layout-type.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-content.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-line-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/message-origin.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/message.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/meta-tag-extractor-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/move-card-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/move-column-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/move-content-element-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-position-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/news-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/news-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/news-target-model.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-config-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-token-dto.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-authorization-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-migration-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-create-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-update-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oidc-context-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/parent-consent-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/patch-group-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-account-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-password-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/patch-order-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/patch-visibility-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/provider-config-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/pseudonym-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response-oauth-config.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/redirect-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/rename-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/resolved-user-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-content-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/role-name.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-controller-get-provisioning-options200-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-exists-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-status-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-metadata-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-post-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-search-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-external-invite-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-ldap-login-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-info-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-logo.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-permissions-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-purpose.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-system-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-update-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-query-type.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/schulcloud-theme.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/set-height-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-import-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-info-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-payload-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/single-column-board-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/student-permission-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-content-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response-elements-inner.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submissions-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/successful-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/system-for-ldap-login-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/target-info-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/task-copy-api-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/task-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/task-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/task-status-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/teacher-permission-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/team-permissions-body.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/timestamps-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/timezone.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/tool-config-type.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-type.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-types-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/tool-launch-request-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-board-title-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params-data.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-flag-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-match-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-news-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-submission-item-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-consent-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-data-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-info-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-mandatory-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-search-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-list-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/validation-error.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-create-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-info-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-join-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-options-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-scope.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-state-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-body-params.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-settings-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/years-response.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-client.adapter.ts create mode 100644 apps/server/src/infra/authorization-client/authorization-client.module.ts create mode 100644 openapitools-config.json diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES index 16b445eee6d..f79fccf336a 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES +++ b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES @@ -2,8 +2,269 @@ .npmignore .openapi-generator-ignore api.ts +api/authorization-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/board-submission-controller-create-element201-response.ts +models/card-controller-create-element201-response.ts +models/card-list-response.ts +models/card-response-elements-inner.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-by.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-config.ts +models/external-tool-response.ts +models/external-tool-search-list-response.ts +models/external-tool-update-params-config.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/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/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-body.ts +models/oauth-client-response.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/provider-config-response.ts +models/pseudonym-response.ts +models/public-system-list-response.ts +models/public-system-response-oauth-config.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-controller-get-provisioning-options200-response.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-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-elements-inner.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/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-data.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 diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/api.ts b/apps/server/src/infra/authorization-client/authorization-api-client/api.ts index 1789a6e8d6e..a9da9347c42 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/api.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/api.ts @@ -13,8347 +13,6 @@ */ -import type { Configuration } from './configuration'; -import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; -import globalAxios from 'axios'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; -import type { RequestArgs } from './base'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; - -/** - * - * @export - * @interface AccountByIdBodyParams - */ -export interface AccountByIdBodyParams { - /** - * The new user name for the user. - * @type {string} - * @memberof AccountByIdBodyParams - */ - 'username'?: string | null; - /** - * The new password for the user. - * @type {string} - * @memberof AccountByIdBodyParams - */ - 'password'?: string | null; - /** - * The new activation state of the user. - * @type {boolean} - * @memberof AccountByIdBodyParams - */ - 'activated'?: boolean | null; -} -/** - * - * @export - * @interface AccountResponse - */ -export interface AccountResponse { - /** - * - * @type {string} - * @memberof AccountResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof AccountResponse - */ - 'username': string; - /** - * - * @type {string} - * @memberof AccountResponse - */ - 'userId': string; - /** - * - * @type {boolean} - * @memberof AccountResponse - */ - 'activated': boolean; - /** - * - * @type {string} - * @memberof AccountResponse - */ - 'updatedAt': string; -} -/** - * - * @export - * @interface AccountSearchListResponse - */ -export interface AccountSearchListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof AccountSearchListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof AccountSearchListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof AccountSearchListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof AccountSearchListResponse - */ - 'limit': number; -} -/** - * - * @export - * @enum {string} - */ - -export const Action = { - Read: 'read', - Write: 'write' -} as const; - -export type Action = typeof Action[keyof typeof Action]; - - -/** - * - * @export - * @interface AlertResponse - */ -export interface AlertResponse { - /** - * - * @type {Array} - * @memberof AlertResponse - */ - 'data': Array; -} -/** - * - * @export - * @interface ApiValidationError - */ -export interface ApiValidationError { - /** - * The response status code. - * @type {number} - * @memberof ApiValidationError - */ - 'code': number; - /** - * The error type. - * @type {string} - * @memberof ApiValidationError - */ - 'type': string; - /** - * The error title. - * @type {string} - * @memberof ApiValidationError - */ - 'title': string; - /** - * The error message. - * @type {string} - * @memberof ApiValidationError - */ - 'message': string; - /** - * The error details. - * @type {object} - * @memberof ApiValidationError - */ - 'details'?: object; -} -/** - * - * @export - * @interface AuthorizationBodyParams - */ -export interface AuthorizationBodyParams { - /** - * - * @type {AuthorizationContextParams} - * @memberof AuthorizationBodyParams - */ - 'context': AuthorizationContextParams; - /** - * The entity or domain object the operation should be performed on. - * @type {string} - * @memberof AuthorizationBodyParams - */ - 'referenceType': AuthorizationBodyParamsReferenceTypeEnum; - /** - * The id of the entity/domain object of the defined referenceType. - * @type {string} - * @memberof AuthorizationBodyParams - */ - 'referenceId': string; -} - -export const AuthorizationBodyParamsReferenceTypeEnum = { - Users: 'users', - Schools: 'schools', - Courses: 'courses', - Coursegroups: 'coursegroups', - Tasks: 'tasks', - Lessons: 'lessons', - Teams: 'teams', - Submissions: 'submissions', - SchoolExternalTools: 'school-external-tools', - Boardnodes: 'boardnodes', - ContextExternalTools: 'context-external-tools' -} as const; - -export type AuthorizationBodyParamsReferenceTypeEnum = typeof AuthorizationBodyParamsReferenceTypeEnum[keyof typeof AuthorizationBodyParamsReferenceTypeEnum]; - -/** - * - * @export - * @interface AuthorizationContextParams - */ -export interface AuthorizationContextParams { - /** - * - * @type {Action} - * @memberof AuthorizationContextParams - */ - 'action': Action; - /** - * User permissions that are needed to execute the operation. - * @type {Array} - * @memberof AuthorizationContextParams - */ - 'requiredPermissions': Array; -} - - -/** - * - * @export - * @interface AuthorizedReponse - */ -export interface AuthorizedReponse { - /** - * - * @type {string} - * @memberof AuthorizedReponse - */ - 'userId': string; - /** - * - * @type {boolean} - * @memberof AuthorizedReponse - */ - 'isAuthorized': boolean; -} -/** - * - * @export - * @interface BasicToolConfigParams - */ -export interface BasicToolConfigParams { - /** - * - * @type {string} - * @memberof BasicToolConfigParams - */ - 'type': string; - /** - * - * @type {string} - * @memberof BasicToolConfigParams - */ - 'baseUrl': string; -} -/** - * - * @export - * @interface BoardContextResponse - */ -export interface BoardContextResponse { - /** - * - * @type {string} - * @memberof BoardContextResponse - */ - 'id': string; - /** - * - * @type {BoardExternalReferenceType} - * @memberof BoardContextResponse - */ - 'type': BoardExternalReferenceType; -} - - -/** - * - * @export - * @interface BoardElementResponse - */ -export interface BoardElementResponse { - /** - * the type of the element in the content. For possible types, please refer to the enum - * @type {string} - * @memberof BoardElementResponse - */ - 'type': BoardElementResponseTypeEnum; - /** - * Content of the Board, either: a task or a lesson specific for the board - * @type {object} - * @memberof BoardElementResponse - */ - 'content': object; -} - -export const BoardElementResponseTypeEnum = { - Task: 'task', - Lesson: 'lesson', - ColumnBoard: 'column-board' -} as const; - -export type BoardElementResponseTypeEnum = typeof BoardElementResponseTypeEnum[keyof typeof BoardElementResponseTypeEnum]; - -/** - * - * @export - * @enum {string} - */ - -export const BoardExternalReferenceType = { - Course: 'course', - User: 'user' -} as const; - -export type BoardExternalReferenceType = typeof BoardExternalReferenceType[keyof typeof BoardExternalReferenceType]; - - -/** - * - * @export - * @enum {string} - */ - -export const BoardLayout = { - Columns: 'columns', - List: 'list' -} as const; - -export type BoardLayout = typeof BoardLayout[keyof typeof BoardLayout]; - - -/** - * - * @export - * @enum {string} - */ - -export const BoardParentType = { - Course: 'course', - User: 'user' -} as const; - -export type BoardParentType = typeof BoardParentType[keyof typeof BoardParentType]; - - -/** - * - * @export - * @interface BoardResponse - */ -export interface BoardResponse { - /** - * - * @type {string} - * @memberof BoardResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof BoardResponse - */ - 'title': string; - /** - * - * @type {Array} - * @memberof BoardResponse - */ - 'columns': Array; - /** - * - * @type {TimestampsResponse} - * @memberof BoardResponse - */ - 'timestamps': TimestampsResponse; - /** - * - * @type {boolean} - * @memberof BoardResponse - */ - 'isVisible': boolean; - /** - * - * @type {string} - * @memberof BoardResponse - */ - 'layout': string; -} -/** - * @type BoardSubmissionControllerCreateElement201Response - * @export - */ -export type BoardSubmissionControllerCreateElement201Response = FileElementResponse | RichTextElementResponse; - -/** - * @type CardControllerCreateElement201Response - * @export - */ -export type CardControllerCreateElement201Response = DrawingElementResponse | ExternalToolElementResponse | FileElementResponse | LinkElementResponse | RichTextElementResponse | SubmissionContainerElementResponse; - -/** - * - * @export - * @interface CardListResponse - */ -export interface CardListResponse { - /** - * - * @type {Array} - * @memberof CardListResponse - */ - 'data': Array; -} -/** - * - * @export - * @interface CardResponse - */ -export interface CardResponse { - /** - * - * @type {string} - * @memberof CardResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof CardResponse - */ - 'title'?: string; - /** - * - * @type {number} - * @memberof CardResponse - */ - 'height': number; - /** - * - * @type {Array} - * @memberof CardResponse - */ - 'elements': Array; - /** - * - * @type {VisibilitySettingsResponse} - * @memberof CardResponse - */ - 'visibilitySettings': VisibilitySettingsResponse; - /** - * - * @type {TimestampsResponse} - * @memberof CardResponse - */ - 'timestamps': TimestampsResponse; -} -/** - * @type CardResponseElementsInner - * @export - */ -export type CardResponseElementsInner = CollaborativeTextEditorElementResponse | DrawingElementResponse | ExternalToolElementResponse | FileElementResponse | LinkElementResponse | RichTextElementResponse | SubmissionContainerElementResponse; - -/** - * - * @export - * @interface CardSkeletonResponse - */ -export interface CardSkeletonResponse { - /** - * - * @type {string} - * @memberof CardSkeletonResponse - */ - 'cardId': string; - /** - * The approximate height of the referenced card. Intended to be used for prerendering purposes. Note, that different devices can lead to this value not being precise - * @type {number} - * @memberof CardSkeletonResponse - */ - 'height': number; -} -/** - * - * @export - * @interface ChangeLanguageParams - */ -export interface ChangeLanguageParams { - /** - * - * @type {LanguageType} - * @memberof ChangeLanguageParams - */ - 'language': LanguageType; -} - - -/** - * - * @export - * @interface ClassInfoResponse - */ -export interface ClassInfoResponse { - /** - * - * @type {string} - * @memberof ClassInfoResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof ClassInfoResponse - */ - 'type': ClassInfoResponseTypeEnum; - /** - * - * @type {string} - * @memberof ClassInfoResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof ClassInfoResponse - */ - 'externalSourceName'?: string; - /** - * - * @type {Array} - * @memberof ClassInfoResponse - */ - 'teacherNames': Array; - /** - * - * @type {string} - * @memberof ClassInfoResponse - */ - 'schoolYear'?: string; - /** - * - * @type {boolean} - * @memberof ClassInfoResponse - */ - 'isUpgradable'?: boolean; - /** - * - * @type {number} - * @memberof ClassInfoResponse - */ - 'studentCount': number; - /** - * - * @type {Array} - * @memberof ClassInfoResponse - */ - 'synchronizedCourses'?: Array; -} - -export const ClassInfoResponseTypeEnum = { - Class: 'class', - Group: 'group' -} as const; - -export type ClassInfoResponseTypeEnum = typeof ClassInfoResponseTypeEnum[keyof typeof ClassInfoResponseTypeEnum]; - -/** - * - * @export - * @interface ClassInfoSearchListResponse - */ -export interface ClassInfoSearchListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof ClassInfoSearchListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof ClassInfoSearchListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof ClassInfoSearchListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof ClassInfoSearchListResponse - */ - 'limit': number; -} -/** - * - * @export - * @enum {string} - */ - -export const ClassRequestContext = { - Course: 'course', - ClassOverview: 'class-overview' -} as const; - -export type ClassRequestContext = typeof ClassRequestContext[keyof typeof ClassRequestContext]; - - -/** - * - * @export - * @interface ClassResponse - */ -export interface ClassResponse { - /** - * - * @type {string} - * @memberof ClassResponse - */ - 'name': string; - /** - * - * @type {number} - * @memberof ClassResponse - */ - 'gradeLevel': number; -} -/** - * - * @export - * @enum {string} - */ - -export const ClassSortBy = { - Name: 'name', - ExternalSourceName: 'externalSourceName', - SynchronizedCourses: 'synchronizedCourses', - StudentCount: 'studentCount', - TeacherNames: 'teacherNames' -} as const; - -export type ClassSortBy = typeof ClassSortBy[keyof typeof ClassSortBy]; - - -/** - * - * @export - * @interface CollaborativeTextEditorElementResponse - */ -export interface CollaborativeTextEditorElementResponse { - /** - * - * @type {string} - * @memberof CollaborativeTextEditorElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof CollaborativeTextEditorElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {TimestampsResponse} - * @memberof CollaborativeTextEditorElementResponse - */ - 'timestamps': TimestampsResponse; - /** - * - * @type {object} - * @memberof CollaborativeTextEditorElementResponse - */ - 'content': object; -} - - -/** - * - * @export - * @enum {string} - */ - -export const CollaborativeTextEditorParentType = { - ContentElement: 'content-element' -} as const; - -export type CollaborativeTextEditorParentType = typeof CollaborativeTextEditorParentType[keyof typeof CollaborativeTextEditorParentType]; - - -/** - * - * @export - * @interface CollaborativeTextEditorResponse - */ -export interface CollaborativeTextEditorResponse { - /** - * - * @type {string} - * @memberof CollaborativeTextEditorResponse - */ - 'url': string; -} -/** - * - * @export - * @interface CollapsableBodyParams - */ -export interface CollapsableBodyParams { - /** - * - * @type {boolean} - * @memberof CollapsableBodyParams - */ - 'collapsed': boolean; -} -/** - * - * @export - * @interface ColorBodyParams - */ -export interface ColorBodyParams { - /** - * - * @type {MediaBoardColors} - * @memberof ColorBodyParams - */ - 'backgroundColor': MediaBoardColors; -} - - -/** - * - * @export - * @interface ColumnResponse - */ -export interface ColumnResponse { - /** - * - * @type {string} - * @memberof ColumnResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof ColumnResponse - */ - 'title': string; - /** - * - * @type {Array} - * @memberof ColumnResponse - */ - 'cards': Array; - /** - * - * @type {TimestampsResponse} - * @memberof ColumnResponse - */ - 'timestamps': TimestampsResponse; -} -/** - * - * @export - * @interface ConfigResponse - */ -export interface ConfigResponse { - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'ACCESSIBILITY_REPORT_EMAIL': string; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_NEW_SCHOOL_ADMINISTRATION_PAGE_AS_DEFAULT_ENABLED': boolean; - /** - * - * @type {number} - * @memberof ConfigResponse - */ - 'MIGRATION_END_GRACE_PERIOD_MS': number; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_CTL_TOOLS_TAB_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_LTI_TOOLS_TAB_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SHOW_OUTDATED_USERS': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_ENABLE_LDAP_SYNC_DURING_MIGRATION': boolean; - /** - * - * @type {number} - * @memberof ConfigResponse - */ - 'CTL_TOOLS_RELOAD_TIME_MS': number; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SHOW_NEW_CLASS_VIEW_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_CTL_TOOLS_COPY_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SHOW_MIGRATION_WIZARD': boolean; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'MIGRATION_WIZARD_DOCUMENTATION_LINK'?: string; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_TLDRAW_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'TLDRAW__ASSETS_ENABLED': boolean; - /** - * - * @type {number} - * @memberof ConfigResponse - */ - 'TLDRAW__ASSETS_MAX_SIZE': number; - /** - * - * @type {Array} - * @memberof ConfigResponse - */ - 'TLDRAW__ASSETS_ALLOWED_MIME_TYPES_LIST': Array; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'ADMIN_TABLES_DISPLAY_CONSENT_COLUMN': boolean; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'ALERT_STATUS_URL': string | null; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_ES_COLLECTIONS_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_EXTENSIONS_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_TEAMS_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_LERNSTORE_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_ADMIN_TOGGLE_STUDENT_LERNSTORE_VIEW_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'TEACHER_STUDENT_VISIBILITY__IS_CONFIGURABLE': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'TEACHER_STUDENT_VISIBILITY__IS_ENABLED_BY_DEFAULT': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'TEACHER_STUDENT_VISIBILITY__IS_VISIBLE': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SCHOOL_POLICY_ENABLED_NEW': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SCHOOL_TERMS_OF_USE_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_NEXBOARD_COPY_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_VIDEOCONFERENCE_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_SUBMISSIONS_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_COLLABORATIVE_TEXT_EDITOR_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_LINK_ELEMENT_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_EXTERNAL_TOOLS_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_SHARE': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_SOCKET_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COURSE_SHARE': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_LOGIN_LINK_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_LESSON_SHARE': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_TASK_SHARE': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_BOARD_LAYOUT_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_USER_MIGRATION_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COPY_SERVICE_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_CONSENT_NECESSARY': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COMMON_CARTRIDGE_COURSE_EXPORT_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COMMON_CARTRIDGE_COURSE_IMPORT_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SCHOOL_SANIS_USER_MIGRATION_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SCHULCONNEX_COURSE_SYNC_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_ALLOW_INSECURE_LDAP_URL_ENABLED': boolean; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'GHOST_BASE_URL': string; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'ROCKETCHAT_SERVICE_ENABLED': boolean; - /** - * - * @type {Array} - * @memberof ConfigResponse - */ - 'I18N__AVAILABLE_LANGUAGES': Array; - /** - * - * @type {LanguageType} - * @memberof ConfigResponse - */ - 'I18N__DEFAULT_LANGUAGE': LanguageType; - /** - * - * @type {LanguageType} - * @memberof ConfigResponse - */ - 'I18N__FALLBACK_LANGUAGE': LanguageType; - /** - * - * @type {Timezone} - * @memberof ConfigResponse - */ - 'I18N__DEFAULT_TIMEZONE': Timezone; - /** - * - * @type {number} - * @memberof ConfigResponse - */ - 'JWT_SHOW_TIMEOUT_WARNING_SECONDS': number; - /** - * - * @type {number} - * @memberof ConfigResponse - */ - 'JWT_TIMEOUT_SECONDS': number; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'NOT_AUTHENTICATED_REDIRECT_URL': string; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'DOCUMENT_BASE_DIR': string; - /** - * - * @type {SchulcloudTheme} - * @memberof ConfigResponse - */ - 'SC_THEME': SchulcloudTheme; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'SC_TITLE': string; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_MEDIA_SHELF_ENABLED': boolean; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'BOARD_COLLABORATION_URI': string; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_NEW_LAYOUT_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SCHULCONNEX_MEDIA_LICENSE_ENABLED': boolean; -} - - -/** - * - * @export - * @interface ConsentRequestBody - */ -export interface ConsentRequestBody { - /** - * The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to request_denied. - * @type {string} - * @memberof ConsentRequestBody - */ - 'error'?: string; - /** - * Debug contains information to help resolve the problem as a developer. Usually not exposed to the public but only in the server logs. - * @type {string} - * @memberof ConsentRequestBody - */ - 'error_debug'?: string; - /** - * Description of the error in a human readable format. - * @type {string} - * @memberof ConsentRequestBody - */ - 'error_description'?: string; - /** - * Hint to help resolve the error. - * @type {string} - * @memberof ConsentRequestBody - */ - 'error_hint'?: string; - /** - * Represents the HTTP status code of the error (e.g. 401 or 403). Defaults to 400. - * @type {number} - * @memberof ConsentRequestBody - */ - 'status_code'?: number; - /** - * The Oauth2 client id. - * @type {Array} - * @memberof ConsentRequestBody - */ - 'grant_scope'?: Array; - /** - * Remember, if set to true, tells the oauth provider to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. - * @type {boolean} - * @memberof ConsentRequestBody - */ - 'remember'?: boolean; - /** - * RememberFor sets how long the consent authorization should be remembered for in seconds. If set to 0, the authorization will be remembered indefinitely. - * @type {number} - * @memberof ConsentRequestBody - */ - 'remember_for'?: number; -} -/** - * - * @export - * @interface ConsentResponse - */ -export interface ConsentResponse { - /** - * ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session - * @type {string} - * @memberof ConsentResponse - */ - 'acr': string; - /** - * - * @type {Array} - * @memberof ConsentResponse - */ - 'amr'?: Array; - /** - * Is the id/authorization challenge of the consent authorization request. It is used to identify the session. - * @type {object} - * @memberof ConsentResponse - */ - 'challenge': object; - /** - * - * @type {OauthClientResponse} - * @memberof ConsentResponse - */ - 'client': OauthClientResponse; - /** - * - * @type {object} - * @memberof ConsentResponse - */ - 'context': object; - /** - * LoginChallenge is the login challenge this consent challenge belongs to. - * @type {string} - * @memberof ConsentResponse - */ - 'login_challenge': string; - /** - * LoginSessionID is the login session ID. - * @type {string} - * @memberof ConsentResponse - */ - 'login_session_id': string; - /** - * - * @type {OidcContextResponse} - * @memberof ConsentResponse - */ - 'oidc_context': OidcContextResponse; - /** - * RequestUrl is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. - * @type {string} - * @memberof ConsentResponse - */ - 'request_url': string; - /** - * - * @type {Array} - * @memberof ConsentResponse - */ - 'requested_access_token_audience'?: Array; - /** - * The request scopes of the login request. - * @type {Array} - * @memberof ConsentResponse - */ - 'requested_scope'?: Array; - /** - * Skip, if true, implies that the client has requested the same scopes from the same user previously. - * @type {boolean} - * @memberof ConsentResponse - */ - 'skip': boolean; - /** - * Subject is the user id of the end-user that is authenticated. - * @type {string} - * @memberof ConsentResponse - */ - 'subject': string; -} -/** - * - * @export - * @interface ConsentSessionResponse - */ -export interface ConsentSessionResponse { - /** - * The id of the client. - * @type {string} - * @memberof ConsentSessionResponse - */ - 'client_id': string; - /** - * The name of the client. - * @type {string} - * @memberof ConsentSessionResponse - */ - 'client_name': string; - /** - * The id/challenge of the consent authorization request. - * @type {string} - * @memberof ConsentSessionResponse - */ - 'challenge': string; -} -/** - * - * @export - * @interface ConsentsResponse - */ -export interface ConsentsResponse { - /** - * - * @type {UserConsentResponse} - * @memberof ConsentsResponse - */ - 'userConsent': UserConsentResponse; - /** - * - * @type {Array} - * @memberof ConsentsResponse - */ - 'parentConsents': Array; -} -/** - * - * @export - * @enum {string} - */ - -export const ContentElementType = { - File: 'file', - Drawing: 'drawing', - Link: 'link', - RichText: 'richText', - SubmissionContainer: 'submissionContainer', - ExternalTool: 'externalTool', - CollaborativeTextEditor: 'collaborativeTextEditor' -} as const; - -export type ContentElementType = typeof ContentElementType[keyof typeof ContentElementType]; - - -/** - * - * @export - * @interface ContextExternalToolBodyParams - */ -export interface ContextExternalToolBodyParams { - /** - * - * @type {string} - * @memberof ContextExternalToolBodyParams - */ - 'contextId': string; - /** - * - * @type {ToolContextType} - * @memberof ContextExternalToolBodyParams - */ - 'contextType': ToolContextType; -} - - -/** - * - * @export - * @interface ContextExternalToolConfigurationStatusResponse - */ -export interface ContextExternalToolConfigurationStatusResponse { - /** - * Is the tool outdated on school scope, because of non matching versions or required parameter changes on ExternalTool? - * @type {boolean} - * @memberof ContextExternalToolConfigurationStatusResponse - */ - 'isOutdatedOnScopeSchool': boolean; - /** - * Is the tool outdated on context scope, because of non matching versions or required parameter changes on SchoolExternalTool? - * @type {boolean} - * @memberof ContextExternalToolConfigurationStatusResponse - */ - 'isOutdatedOnScopeContext': boolean; - /** - * True, if a mandatory parameter on the context external tool is missing a value - * @type {boolean} - * @memberof ContextExternalToolConfigurationStatusResponse - */ - 'isIncompleteOnScopeContext': boolean; - /** - * True, if a optional parameter on the context external tool is missing a value. This is happening, when course is copied. - * @type {boolean} - * @memberof ContextExternalToolConfigurationStatusResponse - */ - 'isIncompleteOperationalOnScopeContext': boolean; - /** - * Is the tool deactivated, because of superhero or school administrator - * @type {boolean} - * @memberof ContextExternalToolConfigurationStatusResponse - */ - 'isDeactivated': boolean; - /** - * True if the tool is not licensed for user - * @type {boolean} - * @memberof ContextExternalToolConfigurationStatusResponse - */ - 'isNotLicensed': boolean; -} -/** - * - * @export - * @interface ContextExternalToolConfigurationTemplateListResponse - */ -export interface ContextExternalToolConfigurationTemplateListResponse { - /** - * - * @type {Array} - * @memberof ContextExternalToolConfigurationTemplateListResponse - */ - 'data': Array; -} -/** - * - * @export - * @interface ContextExternalToolConfigurationTemplateResponse - */ -export interface ContextExternalToolConfigurationTemplateResponse { - /** - * - * @type {string} - * @memberof ContextExternalToolConfigurationTemplateResponse - */ - 'externalToolId': string; - /** - * - * @type {string} - * @memberof ContextExternalToolConfigurationTemplateResponse - */ - 'schoolExternalToolId': string; - /** - * - * @type {string} - * @memberof ContextExternalToolConfigurationTemplateResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof ContextExternalToolConfigurationTemplateResponse - */ - 'logoUrl'?: string; - /** - * - * @type {Array} - * @memberof ContextExternalToolConfigurationTemplateResponse - */ - 'parameters': Array; -} -/** - * - * @export - * @interface ContextExternalToolCountPerContextResponse - */ -export interface ContextExternalToolCountPerContextResponse { - /** - * - * @type {number} - * @memberof ContextExternalToolCountPerContextResponse - */ - 'course': number; - /** - * - * @type {number} - * @memberof ContextExternalToolCountPerContextResponse - */ - 'boardElement': number; -} -/** - * - * @export - * @interface ContextExternalToolPostParams - */ -export interface ContextExternalToolPostParams { - /** - * - * @type {string} - * @memberof ContextExternalToolPostParams - */ - 'schoolToolId': string; - /** - * - * @type {string} - * @memberof ContextExternalToolPostParams - */ - 'contextId': string; - /** - * - * @type {string} - * @memberof ContextExternalToolPostParams - */ - 'contextType': string; - /** - * - * @type {string} - * @memberof ContextExternalToolPostParams - */ - 'displayName'?: string; - /** - * - * @type {Array} - * @memberof ContextExternalToolPostParams - */ - 'parameters'?: Array; -} -/** - * - * @export - * @interface ContextExternalToolResponse - */ -export interface ContextExternalToolResponse { - /** - * - * @type {string} - * @memberof ContextExternalToolResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof ContextExternalToolResponse - */ - 'schoolToolId': string; - /** - * - * @type {string} - * @memberof ContextExternalToolResponse - */ - 'contextId': string; - /** - * - * @type {string} - * @memberof ContextExternalToolResponse - */ - 'contextType': ContextExternalToolResponseContextTypeEnum; - /** - * - * @type {string} - * @memberof ContextExternalToolResponse - */ - 'displayName'?: string; - /** - * - * @type {Array} - * @memberof ContextExternalToolResponse - */ - 'parameters': Array; - /** - * - * @type {string} - * @memberof ContextExternalToolResponse - */ - 'logoUrl'?: string; -} - -export const ContextExternalToolResponseContextTypeEnum = { - Course: 'course', - BoardElement: 'board-element', - MediaBoard: 'media-board' -} as const; - -export type ContextExternalToolResponseContextTypeEnum = typeof ContextExternalToolResponseContextTypeEnum[keyof typeof ContextExternalToolResponseContextTypeEnum]; - -/** - * - * @export - * @interface ContextExternalToolSearchListResponse - */ -export interface ContextExternalToolSearchListResponse { - /** - * - * @type {Array} - * @memberof ContextExternalToolSearchListResponse - */ - 'data': Array; -} -/** - * - * @export - * @interface CopyApiResponse - */ -export interface CopyApiResponse { - /** - * Id of copied element - * @type {string} - * @memberof CopyApiResponse - */ - 'id'?: string; - /** - * Title of copied element - * @type {string} - * @memberof CopyApiResponse - */ - 'title'?: string; - /** - * Type of copied element - * @type {string} - * @memberof CopyApiResponse - */ - 'type': CopyApiResponseTypeEnum; - /** - * Id of destination course - * @type {string} - * @memberof CopyApiResponse - */ - 'destinationCourseId'?: string; - /** - * Copy progress status of copied element - * @type {string} - * @memberof CopyApiResponse - */ - 'status': CopyApiResponseStatusEnum; - /** - * List of included sub elements with recursive type structure - * @type {Array} - * @memberof CopyApiResponse - */ - 'elements'?: Array; -} - -export const CopyApiResponseTypeEnum = { - Board: 'BOARD', - Card: 'CARD', - CollaborativeTextEditorElement: 'COLLABORATIVE_TEXT_EDITOR_ELEMENT', - Column: 'COLUMN', - Columnboard: 'COLUMNBOARD', - Content: 'CONTENT', - Course: 'COURSE', - CoursegroupGroup: 'COURSEGROUP_GROUP', - ExternalTool: 'EXTERNAL_TOOL', - ExternalToolElement: 'EXTERNAL_TOOL_ELEMENT', - File: 'FILE', - FileElement: 'FILE_ELEMENT', - DrawingElement: 'DRAWING_ELEMENT', - FileGroup: 'FILE_GROUP', - Leaf: 'LEAF', - Lesson: 'LESSON', - LessonContentEtherpad: 'LESSON_CONTENT_ETHERPAD', - LessonContentGeogebra: 'LESSON_CONTENT_GEOGEBRA', - LessonContentGroup: 'LESSON_CONTENT_GROUP', - LessonContentLernstore: 'LESSON_CONTENT_LERNSTORE', - LessonContentNexboard: 'LESSON_CONTENT_NEXBOARD', - LessonContentTask: 'LESSON_CONTENT_TASK', - LessonContentText: 'LESSON_CONTENT_TEXT', - LernstoreMaterial: 'LERNSTORE_MATERIAL', - LernstoreMaterialGroup: 'LERNSTORE_MATERIAL_GROUP', - LinkElement: 'LINK_ELEMENT', - LtitoolGroup: 'LTITOOL_GROUP', - MediaBoard: 'MEDIA_BOARD', - MediaLine: 'MEDIA_LINE', - MediaExternalToolElement: 'MEDIA_EXTERNAL_TOOL_ELEMENT', - Metadata: 'METADATA', - RichtextElement: 'RICHTEXT_ELEMENT', - SubmissionContainerElement: 'SUBMISSION_CONTAINER_ELEMENT', - SubmissionItem: 'SUBMISSION_ITEM', - SubmissionGroup: 'SUBMISSION_GROUP', - Task: 'TASK', - TaskGroup: 'TASK_GROUP', - TimeGroup: 'TIME_GROUP', - UserGroup: 'USER_GROUP' -} as const; - -export type CopyApiResponseTypeEnum = typeof CopyApiResponseTypeEnum[keyof typeof CopyApiResponseTypeEnum]; -export const CopyApiResponseStatusEnum = { - Success: 'success', - Failure: 'failure', - NotDoing: 'not-doing', - NotImplemented: 'not-implemented', - Partial: 'partial' -} as const; - -export type CopyApiResponseStatusEnum = typeof CopyApiResponseStatusEnum[keyof typeof CopyApiResponseStatusEnum]; - -/** - * - * @export - * @interface CountyResponse - */ -export interface CountyResponse { - /** - * - * @type {string} - * @memberof CountyResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof CountyResponse - */ - 'name': string; - /** - * - * @type {number} - * @memberof CountyResponse - */ - 'countyId': number; - /** - * - * @type {string} - * @memberof CountyResponse - */ - 'antaresKey': string; -} -/** - * - * @export - * @interface CourseExportBodyParams - */ -export interface CourseExportBodyParams { - /** - * The list of ids of topics which should be exported. If empty no topics are exported. - * @type {Array} - * @memberof CourseExportBodyParams - */ - 'topics': Array; - /** - * The list of ids of tasks which should be exported. If empty no tasks are exported. - * @type {Array} - * @memberof CourseExportBodyParams - */ - 'tasks': Array; - /** - * The list of ids of column boards which should be exported. If empty no column boards are exported. - * @type {Array} - * @memberof CourseExportBodyParams - */ - 'columnBoards': Array; -} -/** - * - * @export - * @interface CourseInfoResponse - */ -export interface CourseInfoResponse { - /** - * - * @type {string} - * @memberof CourseInfoResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof CourseInfoResponse - */ - 'name': string; -} -/** - * - * @export - * @interface CourseMetadataListResponse - */ -export interface CourseMetadataListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof CourseMetadataListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof CourseMetadataListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof CourseMetadataListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof CourseMetadataListResponse - */ - 'limit': number; -} -/** - * - * @export - * @interface CourseMetadataResponse - */ -export interface CourseMetadataResponse { - /** - * The id of the Grid element - * @type {string} - * @memberof CourseMetadataResponse - */ - 'id': string; - /** - * Title of the Grid element - * @type {string} - * @memberof CourseMetadataResponse - */ - 'title': string; - /** - * Short title of the Grid element - * @type {string} - * @memberof CourseMetadataResponse - */ - 'shortTitle': string; - /** - * Color of the Grid element - * @type {string} - * @memberof CourseMetadataResponse - */ - 'displayColor': string; - /** - * Start date of the course - * @type {string} - * @memberof CourseMetadataResponse - */ - 'startDate'?: string; - /** - * End date of the course. After this the course counts as archived - * @type {string} - * @memberof CourseMetadataResponse - */ - 'untilDate'?: string; - /** - * Start of the copying process if it is still ongoing - otherwise property is not set. - * @type {string} - * @memberof CourseMetadataResponse - */ - 'copyingSince'?: string; -} -/** - * - * @export - * @interface CreateBoardBodyParams - */ -export interface CreateBoardBodyParams { - /** - * The title of the board - * @type {string} - * @memberof CreateBoardBodyParams - */ - 'title': string; - /** - * The id of the parent - * @type {string} - * @memberof CreateBoardBodyParams - */ - 'parentId': string; - /** - * - * @type {BoardParentType} - * @memberof CreateBoardBodyParams - */ - 'parentType': BoardParentType; - /** - * - * @type {BoardLayout} - * @memberof CreateBoardBodyParams - */ - 'layout': BoardLayout; -} - - -/** - * - * @export - * @interface CreateBoardResponse - */ -export interface CreateBoardResponse { - /** - * - * @type {string} - * @memberof CreateBoardResponse - */ - 'id': string; -} -/** - * - * @export - * @interface CreateCardBodyParams - */ -export interface CreateCardBodyParams { - /** - * - * @type {Array} - * @memberof CreateCardBodyParams - */ - 'requiredEmptyElements'?: Array; -} - -export const CreateCardBodyParamsRequiredEmptyElementsEnum = { - File: 'file', - Drawing: 'drawing', - Link: 'link', - RichText: 'richText', - SubmissionContainer: 'submissionContainer', - ExternalTool: 'externalTool', - CollaborativeTextEditor: 'collaborativeTextEditor' -} as const; - -export type CreateCardBodyParamsRequiredEmptyElementsEnum = typeof CreateCardBodyParamsRequiredEmptyElementsEnum[keyof typeof CreateCardBodyParamsRequiredEmptyElementsEnum]; - -/** - * - * @export - * @interface CreateContentElementBodyParams - */ -export interface CreateContentElementBodyParams { - /** - * - * @type {ContentElementType} - * @memberof CreateContentElementBodyParams - */ - 'type': ContentElementType; - /** - * to bring element to a specific position, default is last position - * @type {number} - * @memberof CreateContentElementBodyParams - */ - 'toPosition'?: number; -} - - -/** - * - * @export - * @interface CreateMediaElementBodyParams - */ -export interface CreateMediaElementBodyParams { - /** - * The id of the line where the element is created - * @type {string} - * @memberof CreateMediaElementBodyParams - */ - 'lineId': string; - /** - * The position where the element is created - * @type {number} - * @memberof CreateMediaElementBodyParams - */ - 'position': number; - /** - * The id of the school external tool - * @type {string} - * @memberof CreateMediaElementBodyParams - */ - 'schoolExternalToolId': string; -} -/** - * - * @export - * @interface CreateNewsParams - */ -export interface CreateNewsParams { - /** - * Title of the News entity - * @type {string} - * @memberof CreateNewsParams - */ - 'title': string; - /** - * Content of the News entity - * @type {string} - * @memberof CreateNewsParams - */ - 'content': string; - /** - * The point in time from when the News entity schould be displayed. Defaults to now so that the news is published - * @type {string} - * @memberof CreateNewsParams - */ - 'displayAt'?: string; - /** - * Target model to which the News entity is related - * @type {string} - * @memberof CreateNewsParams - */ - 'targetModel': CreateNewsParamsTargetModelEnum; - /** - * Specific target id to which the News entity is related - * @type {string} - * @memberof CreateNewsParams - */ - 'targetId': string; -} - -export const CreateNewsParamsTargetModelEnum = { - Schools: 'schools', - Courses: 'courses', - Teams: 'teams' -} as const; - -export type CreateNewsParamsTargetModelEnum = typeof CreateNewsParamsTargetModelEnum[keyof typeof CreateNewsParamsTargetModelEnum]; - -/** - * - * @export - * @interface CreateSubmissionItemBodyParams - */ -export interface CreateSubmissionItemBodyParams { - /** - * Boolean indicating whether the submission is completed. - * @type {boolean} - * @memberof CreateSubmissionItemBodyParams - */ - 'completed': boolean; -} -/** - * - * @export - * @interface CustomParameterEntryParam - */ -export interface CustomParameterEntryParam { - /** - * - * @type {string} - * @memberof CustomParameterEntryParam - */ - 'name': string; - /** - * - * @type {string} - * @memberof CustomParameterEntryParam - */ - 'value'?: string; -} -/** - * - * @export - * @interface CustomParameterEntryResponse - */ -export interface CustomParameterEntryResponse { - /** - * - * @type {string} - * @memberof CustomParameterEntryResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof CustomParameterEntryResponse - */ - 'value'?: string; -} -/** - * - * @export - * @interface CustomParameterPostParams - */ -export interface CustomParameterPostParams { - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'name': string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'displayName': string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'defaultValue'?: string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'regex'?: string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'regexComment'?: string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'scope': string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'location': string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'type': string; - /** - * - * @type {boolean} - * @memberof CustomParameterPostParams - */ - 'isOptional': boolean; - /** - * - * @type {boolean} - * @memberof CustomParameterPostParams - */ - 'isProtected': boolean; -} -/** - * - * @export - * @interface CustomParameterResponse - */ -export interface CustomParameterResponse { - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'displayName': string; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'defaultValue'?: string; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'regex'?: string; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'regexComment'?: string; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'scope': CustomParameterResponseScopeEnum; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'location': CustomParameterResponseLocationEnum; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'type': CustomParameterResponseTypeEnum; - /** - * - * @type {boolean} - * @memberof CustomParameterResponse - */ - 'isOptional': boolean; - /** - * - * @type {boolean} - * @memberof CustomParameterResponse - */ - 'isProtected': boolean; -} - -export const CustomParameterResponseScopeEnum = { - Global: 'global', - School: 'school', - Context: 'context' -} as const; - -export type CustomParameterResponseScopeEnum = typeof CustomParameterResponseScopeEnum[keyof typeof CustomParameterResponseScopeEnum]; -export const CustomParameterResponseLocationEnum = { - Path: 'path', - Body: 'body', - Query: 'query' -} as const; - -export type CustomParameterResponseLocationEnum = typeof CustomParameterResponseLocationEnum[keyof typeof CustomParameterResponseLocationEnum]; -export const CustomParameterResponseTypeEnum = { - String: 'string', - Number: 'number', - Boolean: 'boolean', - AutoContextid: 'auto_contextid', - AutoContextname: 'auto_contextname', - AutoSchoolid: 'auto_schoolid', - AutoSchoolnumber: 'auto_schoolnumber', - AutoMediumid: 'auto_mediumid' -} as const; - -export type CustomParameterResponseTypeEnum = typeof CustomParameterResponseTypeEnum[keyof typeof CustomParameterResponseTypeEnum]; - -/** - * - * @export - * @interface DashboardGridElementResponse - */ -export interface DashboardGridElementResponse { - /** - * The id of the Grid element - * @type {string} - * @memberof DashboardGridElementResponse - */ - 'id': string; - /** - * Title of the Grid element - * @type {string} - * @memberof DashboardGridElementResponse - */ - 'title': string; - /** - * Short title of the Grid element - * @type {string} - * @memberof DashboardGridElementResponse - */ - 'shortTitle': string; - /** - * Color of the Grid element - * @type {string} - * @memberof DashboardGridElementResponse - */ - 'displayColor': string; - /** - * X position of the Grid element - * @type {number} - * @memberof DashboardGridElementResponse - */ - 'xPosition': number; - /** - * Y position of the Grid element - * @type {number} - * @memberof DashboardGridElementResponse - */ - 'yPosition': number; - /** - * The id of the group element - * @type {string} - * @memberof DashboardGridElementResponse - */ - 'groupId': string; - /** - * List of all subelements in the group - * @type {Array} - * @memberof DashboardGridElementResponse - */ - 'groupElements': Array; - /** - * Start of the copying process if it is still ongoing - otherwise property is not set. - * @type {string} - * @memberof DashboardGridElementResponse - */ - 'copyingSince': string; - /** - * Is the course synchronized with a group? - * @type {boolean} - * @memberof DashboardGridElementResponse - */ - 'isSynchronized': boolean; -} -/** - * - * @export - * @interface DashboardGridSubElementResponse - */ -export interface DashboardGridSubElementResponse { - /** - * The id of the Grid element - * @type {string} - * @memberof DashboardGridSubElementResponse - */ - 'id': string; - /** - * Title of the Grid element - * @type {string} - * @memberof DashboardGridSubElementResponse - */ - 'title': string; - /** - * Short title of the Grid element - * @type {string} - * @memberof DashboardGridSubElementResponse - */ - 'shortTitle': string; - /** - * Color of the Grid element - * @type {string} - * @memberof DashboardGridSubElementResponse - */ - 'displayColor': string; -} -/** - * - * @export - * @interface DashboardResponse - */ -export interface DashboardResponse { - /** - * The id of the Dashboard entity - * @type {string} - * @memberof DashboardResponse - */ - 'id': string; - /** - * List of all elements visible on the dashboard - * @type {Array} - * @memberof DashboardResponse - */ - 'gridElements': Array; -} -/** - * - * @export - * @interface DrawingContentBody - */ -export interface DrawingContentBody { - /** - * - * @type {string} - * @memberof DrawingContentBody - */ - 'description': string; -} -/** - * - * @export - * @interface DrawingElementContent - */ -export interface DrawingElementContent { - /** - * - * @type {string} - * @memberof DrawingElementContent - */ - 'description': string; -} -/** - * - * @export - * @interface DrawingElementContentBody - */ -export interface DrawingElementContentBody { - /** - * - * @type {ContentElementType} - * @memberof DrawingElementContentBody - */ - 'type': ContentElementType; - /** - * - * @type {DrawingContentBody} - * @memberof DrawingElementContentBody - */ - 'content': DrawingContentBody; -} - - -/** - * - * @export - * @interface DrawingElementResponse - */ -export interface DrawingElementResponse { - /** - * - * @type {string} - * @memberof DrawingElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof DrawingElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {TimestampsResponse} - * @memberof DrawingElementResponse - */ - 'timestamps': TimestampsResponse; - /** - * - * @type {DrawingElementContent} - * @memberof DrawingElementResponse - */ - 'content': DrawingElementContent; -} - - -/** - * - * @export - * @interface EntityNotFoundError - */ -export interface EntityNotFoundError { - /** - * The response status code. - * @type {number} - * @memberof EntityNotFoundError - */ - 'code': number; - /** - * The error type. - * @type {string} - * @memberof EntityNotFoundError - */ - 'type': string; - /** - * The error title. - * @type {string} - * @memberof EntityNotFoundError - */ - 'title': string; - /** - * The error message. - * @type {string} - * @memberof EntityNotFoundError - */ - 'message': string; - /** - * The error details. - * @type {object} - * @memberof EntityNotFoundError - */ - 'details'?: object; -} -/** - * - * @export - * @interface ExternalSourceResponse - */ -export interface ExternalSourceResponse { - /** - * - * @type {string} - * @memberof ExternalSourceResponse - */ - 'externalId': string; - /** - * - * @type {string} - * @memberof ExternalSourceResponse - */ - 'systemId': string; -} -/** - * - * @export - * @interface ExternalToolBulkCreateParams - */ -export interface ExternalToolBulkCreateParams { - /** - * List of external tools - * @type {Array} - * @memberof ExternalToolBulkCreateParams - */ - 'data': Array; -} -/** - * - * @export - * @interface ExternalToolContentBody - */ -export interface ExternalToolContentBody { - /** - * - * @type {string} - * @memberof ExternalToolContentBody - */ - 'contextExternalToolId'?: string; -} -/** - * - * @export - * @interface ExternalToolCreateParams - */ -export interface ExternalToolCreateParams { - /** - * Name of the external tool - * @type {string} - * @memberof ExternalToolCreateParams - */ - 'name': string; - /** - * Description of the external tool - * @type {string} - * @memberof ExternalToolCreateParams - */ - 'description'?: string; - /** - * URL of the external tool - * @type {string} - * @memberof ExternalToolCreateParams - */ - 'url'?: string; - /** - * URL of the logo of the external tool - * @type {string} - * @memberof ExternalToolCreateParams - */ - 'logoUrl'?: string; - /** - * - * @type {ExternalToolResponseConfig} - * @memberof ExternalToolCreateParams - */ - 'config': ExternalToolResponseConfig; - /** - * Custom parameters of the external tool - * @type {Array} - * @memberof ExternalToolCreateParams - */ - 'parameters'?: Array; - /** - * Tool can be hidden, those tools cant be added to e.g. school, course or board - * @type {boolean} - * @memberof ExternalToolCreateParams - */ - 'isHidden': boolean; - /** - * Tool can be deactivated, related tools can not be added to e.g. school, course or board anymore - * @type {boolean} - * @memberof ExternalToolCreateParams - */ - 'isDeactivated': boolean; - /** - * Tool should be opened in a new tab - * @type {boolean} - * @memberof ExternalToolCreateParams - */ - 'openNewTab': boolean; - /** - * Restrict tools to specific contexts - * @type {Array} - * @memberof ExternalToolCreateParams - */ - 'restrictToContexts'?: Array; - /** - * Medium of the external tool - * @type {ExternalToolMediumParams} - * @memberof ExternalToolCreateParams - */ - 'medium'?: ExternalToolMediumParams; -} -/** - * - * @export - * @interface ExternalToolElementContent - */ -export interface ExternalToolElementContent { - /** - * - * @type {string} - * @memberof ExternalToolElementContent - */ - 'contextExternalToolId': string | null; -} -/** - * - * @export - * @interface ExternalToolElementContentBody - */ -export interface ExternalToolElementContentBody { - /** - * - * @type {ContentElementType} - * @memberof ExternalToolElementContentBody - */ - 'type': ContentElementType; - /** - * - * @type {ExternalToolContentBody} - * @memberof ExternalToolElementContentBody - */ - 'content': ExternalToolContentBody; -} - - -/** - * - * @export - * @interface ExternalToolElementResponse - */ -export interface ExternalToolElementResponse { - /** - * - * @type {string} - * @memberof ExternalToolElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof ExternalToolElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {ExternalToolElementContent} - * @memberof ExternalToolElementResponse - */ - 'content': ExternalToolElementContent; - /** - * - * @type {TimestampsResponse} - * @memberof ExternalToolElementResponse - */ - 'timestamps': TimestampsResponse; -} - - -/** - * - * @export - * @interface ExternalToolMediumParams - */ -export interface ExternalToolMediumParams { - /** - * Id of the medium - * @type {string} - * @memberof ExternalToolMediumParams - */ - 'mediumId': string; - /** - * Publisher of the medium - * @type {string} - * @memberof ExternalToolMediumParams - */ - 'publisher'?: string; - /** - * The id of the media source - * @type {string} - * @memberof ExternalToolMediumParams - */ - 'mediaSourceId'?: string; -} -/** - * - * @export - * @interface ExternalToolMediumResponse - */ -export interface ExternalToolMediumResponse { - /** - * Id of the medium - * @type {string} - * @memberof ExternalToolMediumResponse - */ - 'mediumId': string; - /** - * Publisher of the medium - * @type {string} - * @memberof ExternalToolMediumResponse - */ - 'publisher'?: string; - /** - * The id of the media source - * @type {string} - * @memberof ExternalToolMediumResponse - */ - 'mediaSourceId'?: string; -} -/** - * - * @export - * @interface ExternalToolMetadataResponse - */ -export interface ExternalToolMetadataResponse { - /** - * - * @type {number} - * @memberof ExternalToolMetadataResponse - */ - 'schoolExternalToolCount': number; - /** - * - * @type {ContextExternalToolCountPerContextResponse} - * @memberof ExternalToolMetadataResponse - */ - 'contextExternalToolCountPerContext': ContextExternalToolCountPerContextResponse; -} -/** - * - * @export - * @interface ExternalToolResponse - */ -export interface ExternalToolResponse { - /** - * Id of the external tool - * @type {string} - * @memberof ExternalToolResponse - */ - 'id': string; - /** - * Name of the external tool - * @type {string} - * @memberof ExternalToolResponse - */ - 'name': string; - /** - * Description of the external tool - * @type {string} - * @memberof ExternalToolResponse - */ - 'description'?: string; - /** - * URL of the external tool - * @type {string} - * @memberof ExternalToolResponse - */ - 'url'?: string; - /** - * URL of the logo of the external tool - * @type {string} - * @memberof ExternalToolResponse - */ - 'logoUrl'?: string; - /** - * - * @type {ExternalToolResponseConfig} - * @memberof ExternalToolResponse - */ - 'config': ExternalToolResponseConfig; - /** - * Custom parameters of the external tool - * @type {Array} - * @memberof ExternalToolResponse - */ - 'parameters': Array; - /** - * Is the external tool hidden - * @type {boolean} - * @memberof ExternalToolResponse - */ - 'isHidden': boolean; - /** - * Is the external tool deactivated - * @type {boolean} - * @memberof ExternalToolResponse - */ - 'isDeactivated': boolean; - /** - * Should the external tool be opened in a new tab - * @type {boolean} - * @memberof ExternalToolResponse - */ - 'openNewTab': boolean; - /** - * Contexts in which the external tool is restricted - * @type {Array} - * @memberof ExternalToolResponse - */ - 'restrictToContexts'?: Array; - /** - * Medium of the external tool - * @type {ExternalToolMediumResponse} - * @memberof ExternalToolResponse - */ - 'medium'?: ExternalToolMediumResponse; -} -/** - * @type ExternalToolResponseConfig - * Configuration of the external tool - * @export - */ -export type ExternalToolResponseConfig = BasicToolConfigParams | Lti11ToolConfigCreateParams | Oauth2ToolConfigCreateParams; - -/** - * - * @export - * @interface ExternalToolSearchListResponse - */ -export interface ExternalToolSearchListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof ExternalToolSearchListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof ExternalToolSearchListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof ExternalToolSearchListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof ExternalToolSearchListResponse - */ - 'limit': number; -} -/** - * - * @export - * @interface ExternalToolUpdateParams - */ -export interface ExternalToolUpdateParams { - /** - * ID of the external tool - * @type {string} - * @memberof ExternalToolUpdateParams - */ - 'id': string; - /** - * - * @type {string} - * @memberof ExternalToolUpdateParams - */ - 'name': string; - /** - * Description of the external tool - * @type {string} - * @memberof ExternalToolUpdateParams - */ - 'description'?: string; - /** - * URL of the external tool - * @type {string} - * @memberof ExternalToolUpdateParams - */ - 'url'?: string; - /** - * URL of the logo of the external tool - * @type {string} - * @memberof ExternalToolUpdateParams - */ - 'logoUrl'?: string; - /** - * - * @type {ExternalToolUpdateParamsConfig} - * @memberof ExternalToolUpdateParams - */ - 'config': ExternalToolUpdateParamsConfig; - /** - * Custom parameters of the external tool - * @type {Array} - * @memberof ExternalToolUpdateParams - */ - 'parameters'?: Array; - /** - * - * @type {boolean} - * @memberof ExternalToolUpdateParams - */ - 'isHidden': boolean; - /** - * Tool can be deactivated, related tools can not be added to e.g. school, course or board anymore - * @type {boolean} - * @memberof ExternalToolUpdateParams - */ - 'isDeactivated': boolean; - /** - * Open the tool in a new tab - * @type {boolean} - * @memberof ExternalToolUpdateParams - */ - 'openNewTab': boolean; - /** - * Restrict the tool to certain contexts - * @type {Array} - * @memberof ExternalToolUpdateParams - */ - 'restrictToContexts'?: Array; - /** - * Medium of the external tool - * @type {ExternalToolMediumParams} - * @memberof ExternalToolUpdateParams - */ - 'medium'?: ExternalToolMediumParams; -} -/** - * @type ExternalToolUpdateParamsConfig - * Configuration of the external tool - * @export - */ -export type ExternalToolUpdateParamsConfig = BasicToolConfigParams | Lti11ToolConfigUpdateParams | Oauth2ToolConfigUpdateParams; - -/** - * - * @export - * @interface FederalStateResponse - */ -export interface FederalStateResponse { - /** - * - * @type {string} - * @memberof FederalStateResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof FederalStateResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof FederalStateResponse - */ - 'abbreviation': string; - /** - * - * @type {string} - * @memberof FederalStateResponse - */ - 'logoUrl': string; - /** - * - * @type {Array} - * @memberof FederalStateResponse - */ - 'counties': Array; -} -/** - * - * @export - * @interface FileContentBody - */ -export interface FileContentBody { - /** - * - * @type {string} - * @memberof FileContentBody - */ - 'caption': string; - /** - * - * @type {string} - * @memberof FileContentBody - */ - 'alternativeText': string; -} -/** - * - * @export - * @interface FileElementContent - */ -export interface FileElementContent { - /** - * - * @type {string} - * @memberof FileElementContent - */ - 'caption': string; - /** - * - * @type {string} - * @memberof FileElementContent - */ - 'alternativeText': string; -} -/** - * - * @export - * @interface FileElementContentBody - */ -export interface FileElementContentBody { - /** - * - * @type {ContentElementType} - * @memberof FileElementContentBody - */ - 'type': ContentElementType; - /** - * - * @type {FileContentBody} - * @memberof FileElementContentBody - */ - 'content': FileContentBody; -} - - -/** - * - * @export - * @interface FileElementResponse - */ -export interface FileElementResponse { - /** - * - * @type {string} - * @memberof FileElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof FileElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {FileElementContent} - * @memberof FileElementResponse - */ - 'content': FileElementContent; - /** - * - * @type {TimestampsResponse} - * @memberof FileElementResponse - */ - 'timestamps': TimestampsResponse; -} - - -/** - * - * @export - * @enum {string} - */ - -export const FileStorageType = { - AwsS3: 'awsS3' -} as const; - -export type FileStorageType = typeof FileStorageType[keyof typeof FileStorageType]; - - -/** - * - * @export - * @interface ForbiddenOperationError - */ -export interface ForbiddenOperationError { - /** - * The response status code. - * @type {number} - * @memberof ForbiddenOperationError - */ - 'code': number; - /** - * The error type. - * @type {string} - * @memberof ForbiddenOperationError - */ - 'type': string; - /** - * The error title. - * @type {string} - * @memberof ForbiddenOperationError - */ - 'title': string; - /** - * The error message. - * @type {string} - * @memberof ForbiddenOperationError - */ - 'message': string; - /** - * The error details. - * @type {object} - * @memberof ForbiddenOperationError - */ - 'details'?: object; -} -/** - * - * @export - * @interface GetMetaTagDataBody - */ -export interface GetMetaTagDataBody { - /** - * - * @type {string} - * @memberof GetMetaTagDataBody - */ - 'url': string; -} -/** - * - * @export - * @interface GroupListResponse - */ -export interface GroupListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof GroupListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof GroupListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof GroupListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof GroupListResponse - */ - 'limit': number; -} -/** - * - * @export - * @interface GroupResponse - */ -export interface GroupResponse { - /** - * - * @type {string} - * @memberof GroupResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof GroupResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof GroupResponse - */ - 'type': GroupResponseTypeEnum; - /** - * - * @type {Array} - * @memberof GroupResponse - */ - 'users': Array; - /** - * - * @type {ExternalSourceResponse} - * @memberof GroupResponse - */ - 'externalSource'?: ExternalSourceResponse; - /** - * - * @type {string} - * @memberof GroupResponse - */ - 'organizationId'?: string; -} - -export const GroupResponseTypeEnum = { - Class: 'class', - Course: 'course', - Other: 'other' -} as const; - -export type GroupResponseTypeEnum = typeof GroupResponseTypeEnum[keyof typeof GroupResponseTypeEnum]; - -/** - * - * @export - * @interface GroupUserResponse - */ -export interface GroupUserResponse { - /** - * - * @type {string} - * @memberof GroupUserResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof GroupUserResponse - */ - 'firstName': string; - /** - * - * @type {string} - * @memberof GroupUserResponse - */ - 'lastName': string; - /** - * - * @type {RoleName} - * @memberof GroupUserResponse - */ - 'role': RoleName; -} - - -/** - * - * @export - * @interface ImportUserListResponse - */ -export interface ImportUserListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof ImportUserListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof ImportUserListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof ImportUserListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof ImportUserListResponse - */ - 'limit': number; -} -/** - * - * @export - * @interface ImportUserResponse - */ -export interface ImportUserResponse { - /** - * id reference to a import user - * @type {string} - * @memberof ImportUserResponse - */ - 'importUserId': string; - /** - * login name from external system - * @type {string} - * @memberof ImportUserResponse - */ - 'loginName': string; - /** - * external systems user firstname - * @type {string} - * @memberof ImportUserResponse - */ - 'firstName': string; - /** - * external systems user lastname - * @type {string} - * @memberof ImportUserResponse - */ - 'lastName': string; - /** - * list of user roles from external system: student, teacher, admin - * @type {Array} - * @memberof ImportUserResponse - */ - 'roleNames': Array; - /** - * names of classes the user attends from external system - * @type {Array} - * @memberof ImportUserResponse - */ - 'classNames': Array; - /** - * assignemnt to a local user account - * @type {UserMatchResponse} - * @memberof ImportUserResponse - */ - 'match'?: UserMatchResponse; - /** - * manual flag to apply it as filter - * @type {boolean} - * @memberof ImportUserResponse - */ - 'flagged': boolean; -} - -export const ImportUserResponseRoleNamesEnum = { - Student: 'student', - Teacher: 'teacher', - Admin: 'admin' -} as const; - -export type ImportUserResponseRoleNamesEnum = typeof ImportUserResponseRoleNamesEnum[keyof typeof ImportUserResponseRoleNamesEnum]; - -/** - * - * @export - * @interface LayoutBodyParams - */ -export interface LayoutBodyParams { - /** - * - * @type {MediaBoardLayoutType} - * @memberof LayoutBodyParams - */ - 'layout': MediaBoardLayoutType; -} - - -/** - * - * @export - * @interface LdapAuthorizationBodyParams - */ -export interface LdapAuthorizationBodyParams { - /** - * - * @type {string} - * @memberof LdapAuthorizationBodyParams - */ - 'systemId': string; - /** - * - * @type {string} - * @memberof LdapAuthorizationBodyParams - */ - 'username': string; - /** - * - * @type {string} - * @memberof LdapAuthorizationBodyParams - */ - 'password': string; - /** - * - * @type {string} - * @memberof LdapAuthorizationBodyParams - */ - 'schoolId': string; -} -/** - * - * @export - * @interface LessonContentResponse - */ -export interface LessonContentResponse { - /** - * - * @type {object} - * @memberof LessonContentResponse - */ - 'content': object; - /** - * The id of the Material entity - * @type {string} - * @memberof LessonContentResponse - * @deprecated - */ - '_id': string; - /** - * The id of the Material entity - * @type {string} - * @memberof LessonContentResponse - */ - 'id': string; - /** - * Title of the Material entity - * @type {string} - * @memberof LessonContentResponse - */ - 'title': string; - /** - * - * @type {string} - * @memberof LessonContentResponse - */ - 'component': LessonContentResponseComponentEnum; - /** - * - * @type {boolean} - * @memberof LessonContentResponse - */ - 'hidden': boolean; -} - -export const LessonContentResponseComponentEnum = { - Etherpad: 'Etherpad', - GeoGebra: 'geoGebra', - Internal: 'internal', - Resources: 'resources', - Text: 'text', - NeXboard: 'neXboard' -} as const; - -export type LessonContentResponseComponentEnum = typeof LessonContentResponseComponentEnum[keyof typeof LessonContentResponseComponentEnum]; - -/** - * - * @export - * @interface LessonCopyApiParams - */ -export interface LessonCopyApiParams { - /** - * Destination course parent Id the lesson is copied to - * @type {string} - * @memberof LessonCopyApiParams - */ - 'courseId'?: string; -} -/** - * - * @export - * @interface LessonMetadataListResponse - */ -export interface LessonMetadataListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof LessonMetadataListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof LessonMetadataListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof LessonMetadataListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof LessonMetadataListResponse - */ - 'limit': number; -} -/** - * - * @export - * @interface LessonMetadataResponse - */ -export interface LessonMetadataResponse { - /** - * The id of the Lesson entity - * @type {string} - * @memberof LessonMetadataResponse - */ - '_id': string; - /** - * Name of the Lesson entity - * @type {string} - * @memberof LessonMetadataResponse - */ - 'name': string; -} -/** - * - * @export - * @interface LessonResponse - */ -export interface LessonResponse { - /** - * The id of the Lesson entity - * @type {string} - * @memberof LessonResponse - * @deprecated - */ - '_id': string; - /** - * The id of the Lesson entity - * @type {string} - * @memberof LessonResponse - */ - 'id': string; - /** - * Name of the Lesson entity - * @type {string} - * @memberof LessonResponse - */ - 'name': string; - /** - * The id of the Course entity - * @type {string} - * @memberof LessonResponse - */ - 'courseId'?: string; - /** - * The id of the Course-group entity - * @type {string} - * @memberof LessonResponse - */ - 'courseGroupId'?: string; - /** - * Hidden status of the Lesson entity - * @type {boolean} - * @memberof LessonResponse - */ - 'hidden': boolean; - /** - * Position of the Lesson entity - * @type {number} - * @memberof LessonResponse - */ - 'position': number; - /** - * Contents of the Lesson entity - * @type {Array} - * @memberof LessonResponse - */ - 'contents': Array; - /** - * Materials of the Lesson entity - * @type {Array} - * @memberof LessonResponse - */ - 'materials': Array; -} -/** - * - * @export - * @interface LinkContentBody - */ -export interface LinkContentBody { - /** - * - * @type {string} - * @memberof LinkContentBody - */ - 'url': string; - /** - * - * @type {string} - * @memberof LinkContentBody - */ - 'title': string; - /** - * - * @type {string} - * @memberof LinkContentBody - */ - 'description': string; - /** - * - * @type {string} - * @memberof LinkContentBody - */ - 'imageUrl': string; -} -/** - * - * @export - * @interface LinkElementContent - */ -export interface LinkElementContent { - /** - * - * @type {string} - * @memberof LinkElementContent - */ - 'url': string; - /** - * - * @type {string} - * @memberof LinkElementContent - */ - 'title': string; - /** - * - * @type {string} - * @memberof LinkElementContent - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof LinkElementContent - */ - 'imageUrl'?: string; -} -/** - * - * @export - * @interface LinkElementContentBody - */ -export interface LinkElementContentBody { - /** - * - * @type {ContentElementType} - * @memberof LinkElementContentBody - */ - 'type': ContentElementType; - /** - * - * @type {LinkContentBody} - * @memberof LinkElementContentBody - */ - 'content': LinkContentBody; -} - - -/** - * - * @export - * @interface LinkElementResponse - */ -export interface LinkElementResponse { - /** - * - * @type {string} - * @memberof LinkElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof LinkElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {LinkElementContent} - * @memberof LinkElementResponse - */ - 'content': LinkElementContent; - /** - * - * @type {TimestampsResponse} - * @memberof LinkElementResponse - */ - 'timestamps': TimestampsResponse; -} - - -/** - * - * @export - * @interface LocalAuthorizationBodyParams - */ -export interface LocalAuthorizationBodyParams { - /** - * - * @type {string} - * @memberof LocalAuthorizationBodyParams - */ - 'username': string; - /** - * - * @type {string} - * @memberof LocalAuthorizationBodyParams - */ - 'password': string; -} -/** - * - * @export - * @interface LoginRequestBody - */ -export interface LoginRequestBody { - /** - * The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to request_denied. - * @type {string} - * @memberof LoginRequestBody - */ - 'error'?: string; - /** - * Debug contains information to help resolve the problem as a developer. Usually not exposed to the public but only in the server logs. - * @type {string} - * @memberof LoginRequestBody - */ - 'error_debug'?: string; - /** - * Description of the error in a human readable format. - * @type {string} - * @memberof LoginRequestBody - */ - 'error_description'?: string; - /** - * Hint to help resolve the error. - * @type {string} - * @memberof LoginRequestBody - */ - 'error_hint'?: string; - /** - * Represents the HTTP status code of the error (e.g. 401 or 403). Defaults to 400. - * @type {number} - * @memberof LoginRequestBody - */ - 'status_code'?: number; - /** - * Remember, if set to true, tells the oauth provider to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. - * @type {boolean} - * @memberof LoginRequestBody - */ - 'remember'?: boolean; - /** - * RememberFor sets how long the consent authorization should be remembered for in seconds. If set to 0, the authorization will be remembered indefinitely. - * @type {number} - * @memberof LoginRequestBody - */ - 'remember_for'?: number; -} -/** - * - * @export - * @interface LoginResponse - */ -export interface LoginResponse { - /** - * Id of the corresponding client. - * @type {string} - * @memberof LoginResponse - */ - 'client_id': string; - /** - * The id/challenge of the consent login request. - * @type {object} - * @memberof LoginResponse - */ - 'challenge': object; - /** - * - * @type {object} - * @memberof LoginResponse - */ - 'client': object; - /** - * - * @type {OidcContextResponse} - * @memberof LoginResponse - */ - 'oidc_context': OidcContextResponse; - /** - * The original oauth2.0 authorization url request by the client. - * @type {string} - * @memberof LoginResponse - */ - 'request_url': string; - /** - * - * @type {Array} - * @memberof LoginResponse - */ - 'requested_access_token_audience': Array; - /** - * The request scopes of the login request. - * @type {Array} - * @memberof LoginResponse - */ - 'requested_scope'?: Array; - /** - * The login session id. This parameter is used as sid for the oidc front-/backchannel logout. - * @type {string} - * @memberof LoginResponse - */ - 'session_id': string; - /** - * Skip, if true, implies that the client has requested the same scopes from the same user previously. - * @type {object} - * @memberof LoginResponse - */ - 'skip': object; - /** - * User id of the end-user that is authenticated. - * @type {object} - * @memberof LoginResponse - */ - 'subject': object; -} -/** - * - * @export - * @interface Lti11ToolConfigCreateParams - */ -export interface Lti11ToolConfigCreateParams { - /** - * - * @type {ToolConfigType} - * @memberof Lti11ToolConfigCreateParams - */ - 'type': ToolConfigType; - /** - * - * @type {string} - * @memberof Lti11ToolConfigCreateParams - */ - 'baseUrl': string; - /** - * - * @type {string} - * @memberof Lti11ToolConfigCreateParams - */ - 'key': string; - /** - * - * @type {string} - * @memberof Lti11ToolConfigCreateParams - */ - 'secret': string; - /** - * - * @type {LtiMessageType} - * @memberof Lti11ToolConfigCreateParams - */ - 'lti_message_type': LtiMessageType; - /** - * - * @type {LtiPrivacyPermission} - * @memberof Lti11ToolConfigCreateParams - */ - 'privacy_permission': LtiPrivacyPermission; - /** - * - * @type {string} - * @memberof Lti11ToolConfigCreateParams - */ - 'launch_presentation_locale': string; -} - - -/** - * - * @export - * @interface Lti11ToolConfigUpdateParams - */ -export interface Lti11ToolConfigUpdateParams { - /** - * - * @type {ToolConfigType} - * @memberof Lti11ToolConfigUpdateParams - */ - 'type': ToolConfigType; - /** - * - * @type {string} - * @memberof Lti11ToolConfigUpdateParams - */ - 'baseUrl': string; - /** - * - * @type {string} - * @memberof Lti11ToolConfigUpdateParams - */ - 'key': string; - /** - * - * @type {string} - * @memberof Lti11ToolConfigUpdateParams - */ - 'secret'?: string; - /** - * - * @type {LtiMessageType} - * @memberof Lti11ToolConfigUpdateParams - */ - 'lti_message_type': LtiMessageType; - /** - * - * @type {LtiPrivacyPermission} - * @memberof Lti11ToolConfigUpdateParams - */ - 'privacy_permission': LtiPrivacyPermission; - /** - * - * @type {string} - * @memberof Lti11ToolConfigUpdateParams - */ - 'launch_presentation_locale': string; -} - - -/** - * - * @export - * @enum {string} - */ - -export const LtiMessageType = { - BasicLtiLaunchRequest: 'basic-lti-launch-request' -} as const; - -export type LtiMessageType = typeof LtiMessageType[keyof typeof LtiMessageType]; - - -/** - * - * @export - * @enum {string} - */ - -export const LtiPrivacyPermission = { - Anonymous: 'anonymous', - EMail: 'e-mail', - Name: 'name', - Public: 'public', - Pseudonymous: 'pseudonymous' -} as const; - -export type LtiPrivacyPermission = typeof LtiPrivacyPermission[keyof typeof LtiPrivacyPermission]; - - -/** - * - * @export - * @interface MaterialResponse - */ -export interface MaterialResponse { - /** - * The id of the Material entity - * @type {string} - * @memberof MaterialResponse - */ - '_id': string; - /** - * The id of the Material entity - * @type {string} - * @memberof MaterialResponse - */ - 'id': string; - /** - * Title of the Material entity - * @type {string} - * @memberof MaterialResponse - */ - 'title': string; - /** - * ? - * @type {Array} - * @memberof MaterialResponse - */ - 'relatedResources': Array; - /** - * Url of the material - * @type {string} - * @memberof MaterialResponse - */ - 'url': string; - /** - * Position of the Lesson entity - * @type {string} - * @memberof MaterialResponse - */ - 'client': string; - /** - * Description of the material license - * @type {Array} - * @memberof MaterialResponse - */ - 'license': Array; - /** - * For material from Merlin, the Merlin reference - * @type {string} - * @memberof MaterialResponse - */ - 'merlinReference': string; -} -/** - * - * @export - * @interface MeAccountResponse - */ -export interface MeAccountResponse { - /** - * - * @type {string} - * @memberof MeAccountResponse - */ - 'id': string; -} -/** - * - * @export - * @interface MeResponse - */ -export interface MeResponse { - /** - * - * @type {MeSchoolResponse} - * @memberof MeResponse - */ - 'school': MeSchoolResponse; - /** - * - * @type {MeUserResponse} - * @memberof MeResponse - */ - 'user': MeUserResponse; - /** - * - * @type {Array} - * @memberof MeResponse - */ - 'roles': Array; - /** - * - * @type {Array} - * @memberof MeResponse - */ - 'permissions': Array; - /** - * - * @type {LanguageType} - * @memberof MeResponse - */ - 'language': LanguageType; - /** - * - * @type {MeAccountResponse} - * @memberof MeResponse - */ - 'account': MeAccountResponse; -} - - -/** - * - * @export - * @interface MeRoleResponse - */ -export interface MeRoleResponse { - /** - * - * @type {string} - * @memberof MeRoleResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof MeRoleResponse - */ - 'name': string; -} -/** - * - * @export - * @interface MeSchoolLogoResponse - */ -export interface MeSchoolLogoResponse { - /** - * - * @type {string} - * @memberof MeSchoolLogoResponse - */ - 'url'?: string; - /** - * - * @type {string} - * @memberof MeSchoolLogoResponse - */ - 'name'?: string; -} -/** - * - * @export - * @interface MeSchoolResponse - */ -export interface MeSchoolResponse { - /** - * - * @type {string} - * @memberof MeSchoolResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof MeSchoolResponse - */ - 'name': string; - /** - * - * @type {MeSchoolLogoResponse} - * @memberof MeSchoolResponse - */ - 'logo': MeSchoolLogoResponse; -} -/** - * - * @export - * @interface MeUserResponse - */ -export interface MeUserResponse { - /** - * - * @type {string} - * @memberof MeUserResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof MeUserResponse - */ - 'firstName': string; - /** - * - * @type {string} - * @memberof MeUserResponse - */ - 'lastName': string; - /** - * - * @type {string} - * @memberof MeUserResponse - */ - 'customAvatarBackgroundColor'?: string; -} -/** - * - * @export - * @interface MediaAvailableLineElementResponse - */ -export interface MediaAvailableLineElementResponse { - /** - * School External tool id of the media available line element - * @type {string} - * @memberof MediaAvailableLineElementResponse - */ - 'schoolExternalToolId': string; - /** - * Name of the media available line element - * @type {string} - * @memberof MediaAvailableLineElementResponse - */ - 'name': string; - /** - * Description of the media available line element - * @type {string} - * @memberof MediaAvailableLineElementResponse - */ - 'description'?: string; - /** - * Logo url of the media available line element - * @type {string} - * @memberof MediaAvailableLineElementResponse - */ - 'logoUrl'?: string; -} -/** - * - * @export - * @interface MediaAvailableLineResponse - */ -export interface MediaAvailableLineResponse { - /** - * Available media elements in the line - * @type {Array} - * @memberof MediaAvailableLineResponse - */ - 'elements': Array; - /** - * - * @type {MediaBoardColors} - * @memberof MediaAvailableLineResponse - */ - 'backgroundColor': MediaBoardColors; - /** - * Collapse available media line - * @type {boolean} - * @memberof MediaAvailableLineResponse - */ - 'collapsed': boolean; -} - - -/** - * - * @export - * @enum {string} - */ - -export const MediaBoardColors = { - Transparent: 'transparent', - Red: 'red', - Pink: 'pink', - Purple: 'purple', - DeepPurple: 'deepPurple', - Indigo: 'indigo', - Blue: 'blue', - LightBlue: 'lightBlue', - Cyan: 'cyan', - Teal: 'teal', - Green: 'green', - LightGreen: 'lightGreen', - Lime: 'lime', - Yellow: 'yellow', - Amber: 'amber', - Orange: 'orange', - DeepOrange: 'deepOrange', - Brown: 'brown', - Grey: 'grey', - BlueGrey: 'blueGrey' -} as const; - -export type MediaBoardColors = typeof MediaBoardColors[keyof typeof MediaBoardColors]; - - -/** - * - * @export - * @enum {string} - */ - -export const MediaBoardLayoutType = { - Grid: 'grid', - List: 'list' -} as const; - -export type MediaBoardLayoutType = typeof MediaBoardLayoutType[keyof typeof MediaBoardLayoutType]; - - -/** - * - * @export - * @interface MediaBoardResponse - */ -export interface MediaBoardResponse { - /** - * The id of the media board - * @type {string} - * @memberof MediaBoardResponse - */ - 'id': string; - /** - * The lines of the media board - * @type {Array} - * @memberof MediaBoardResponse - */ - 'lines': Array; - /** - * The timestamps of the media board - * @type {TimestampsResponse} - * @memberof MediaBoardResponse - */ - 'timestamps': TimestampsResponse; - /** - * - * @type {MediaBoardLayoutType} - * @memberof MediaBoardResponse - */ - 'layout': MediaBoardLayoutType; -} - - -/** - * - * @export - * @interface MediaExternalToolElementContent - */ -export interface MediaExternalToolElementContent { - /** - * The id of the context external tool - * @type {string} - * @memberof MediaExternalToolElementContent - */ - 'contextExternalToolId': string; -} -/** - * - * @export - * @interface MediaExternalToolElementResponse - */ -export interface MediaExternalToolElementResponse { - /** - * The id of the media external tool element - * @type {string} - * @memberof MediaExternalToolElementResponse - */ - 'id': string; - /** - * The content of the media external tool element - * @type {MediaExternalToolElementContent} - * @memberof MediaExternalToolElementResponse - */ - 'content': MediaExternalToolElementContent; - /** - * The timestamps of the media external tool element - * @type {TimestampsResponse} - * @memberof MediaExternalToolElementResponse - */ - 'timestamps': TimestampsResponse; -} -/** - * - * @export - * @interface MediaLineResponse - */ -export interface MediaLineResponse { - /** - * The id of the media line - * @type {string} - * @memberof MediaLineResponse - */ - 'id': string; - /** - * The title of the media line - * @type {string} - * @memberof MediaLineResponse - */ - 'title': string; - /** - * The elements of the media line - * @type {Array} - * @memberof MediaLineResponse - */ - 'elements': Array; - /** - * The timestamps of the media line - * @type {TimestampsResponse} - * @memberof MediaLineResponse - */ - 'timestamps': TimestampsResponse; - /** - * - * @type {MediaBoardColors} - * @memberof MediaLineResponse - */ - 'backgroundColor': MediaBoardColors; - /** - * Collapse the media line - * @type {boolean} - * @memberof MediaLineResponse - */ - 'collapsed': boolean; -} - - -/** - * - * @export - * @interface Message - */ -export interface Message { - /** - * - * @type {string} - * @memberof Message - */ - 'title': string; - /** - * - * @type {string} - * @memberof Message - */ - 'text': string; - /** - * - * @type {string} - * @memberof Message - */ - 'timestamp': string; - /** - * - * @type {MessageOrigin} - * @memberof Message - */ - 'origin': MessageOrigin; - /** - * - * @type {string} - * @memberof Message - */ - 'url': string; - /** - * - * @type {string} - * @memberof Message - */ - 'status': string; - /** - * - * @type {string} - * @memberof Message - */ - 'createdAt': string; -} -/** - * - * @export - * @interface MessageOrigin - */ -export interface MessageOrigin { - /** - * - * @type {number} - * @memberof MessageOrigin - */ - 'message_id': number; - /** - * - * @type {string} - * @memberof MessageOrigin - */ - 'page': string; -} -/** - * - * @export - * @interface MetaTagExtractorResponse - */ -export interface MetaTagExtractorResponse { - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'url': string; - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'title': string; - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'description': string; - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'imageUrl': string; - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'type': string; - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'parentTitle': string; - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'parentType': string; -} -/** - * - * @export - * @interface MoveCardBodyParams - */ -export interface MoveCardBodyParams { - /** - * - * @type {string} - * @memberof MoveCardBodyParams - */ - 'toColumnId': string; - /** - * - * @type {number} - * @memberof MoveCardBodyParams - */ - 'toPosition': number; -} -/** - * - * @export - * @interface MoveColumnBodyParams - */ -export interface MoveColumnBodyParams { - /** - * The id of the target board - * @type {string} - * @memberof MoveColumnBodyParams - */ - 'toBoardId': string; - /** - * - * @type {number} - * @memberof MoveColumnBodyParams - */ - 'toPosition': number; -} -/** - * - * @export - * @interface MoveContentElementBody - */ -export interface MoveContentElementBody { - /** - * - * @type {string} - * @memberof MoveContentElementBody - */ - 'toCardId': string; - /** - * - * @type {number} - * @memberof MoveContentElementBody - */ - 'toPosition': number; -} -/** - * - * @export - * @interface MoveElementBodyParams - */ -export interface MoveElementBodyParams { - /** - * The id of the line where the element is moved to - * @type {string} - * @memberof MoveElementBodyParams - */ - 'toLineId': string; - /** - * The position where the element is moved to - * @type {number} - * @memberof MoveElementBodyParams - */ - 'toPosition': number; -} -/** - * - * @export - * @interface MoveElementParams - */ -export interface MoveElementParams { - /** - * - * @type {MoveElementPositionParams} - * @memberof MoveElementParams - */ - 'from': MoveElementPositionParams; - /** - * - * @type {MoveElementPositionParams} - * @memberof MoveElementParams - */ - 'to': MoveElementPositionParams; -} -/** - * - * @export - * @interface MoveElementPositionParams - */ -export interface MoveElementPositionParams { - /** - * - * @type {number} - * @memberof MoveElementPositionParams - */ - 'x': number; - /** - * - * @type {number} - * @memberof MoveElementPositionParams - */ - 'y': number; - /** - * used to identify a position within a group. - * @type {number} - * @memberof MoveElementPositionParams - */ - 'groupIndex'?: number; -} -/** - * - * @export - * @interface NewsListResponse - */ -export interface NewsListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof NewsListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof NewsListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof NewsListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof NewsListResponse - */ - 'limit': number; -} -/** - * - * @export - * @interface NewsResponse - */ -export interface NewsResponse { - /** - * The id of the News entity - * @type {string} - * @memberof NewsResponse - */ - 'id': string; - /** - * Title of the News entity - * @type {string} - * @memberof NewsResponse - */ - 'title': string; - /** - * Content of the News entity - * @type {string} - * @memberof NewsResponse - */ - 'content': string; - /** - * The point in time from when the News entity schould be displayed - * @type {string} - * @memberof NewsResponse - */ - 'displayAt': string; - /** - * The type of source of the News entity - * @type {string} - * @memberof NewsResponse - */ - 'source'?: NewsResponseSourceEnum; - /** - * The source description of the News entity - * @type {string} - * @memberof NewsResponse - */ - 'sourceDescription'?: string; - /** - * - * @type {NewsTargetModel} - * @memberof NewsResponse - */ - 'targetModel': NewsTargetModel; - /** - * Specific target id to which the News entity is related - * @type {string} - * @memberof NewsResponse - */ - 'targetId': string; - /** - * The target object with id and name, could be the school, team, or course name - * @type {TargetInfoResponse} - * @memberof NewsResponse - */ - 'target': TargetInfoResponse; - /** - * The School ownership - * @type {SchoolInfoResponse} - * @memberof NewsResponse - */ - 'school': SchoolInfoResponse; - /** - * Reference to the User that created the News entity - * @type {UserInfoResponse} - * @memberof NewsResponse - */ - 'creator': UserInfoResponse; - /** - * Reference to the User that updated the News entity - * @type {UserInfoResponse} - * @memberof NewsResponse - */ - 'updater'?: UserInfoResponse; - /** - * The creation timestamp - * @type {string} - * @memberof NewsResponse - */ - 'createdAt': string; - /** - * The update timestamp - * @type {string} - * @memberof NewsResponse - */ - 'updatedAt': string; - /** - * List of permissions the current user has for the News entity - * @type {Array} - * @memberof NewsResponse - */ - 'permissions': Array; -} - -export const NewsResponseSourceEnum = { - Internal: 'internal', - Rss: 'rss' -} as const; - -export type NewsResponseSourceEnum = typeof NewsResponseSourceEnum[keyof typeof NewsResponseSourceEnum]; - -/** - * - * @export - * @enum {string} - */ - -export const NewsTargetModel = { - Schools: 'schools', - Courses: 'courses', - Teams: 'teams' -} as const; - -export type NewsTargetModel = typeof NewsTargetModel[keyof typeof NewsTargetModel]; - - -/** - * - * @export - * @interface OAuthTokenDto - */ -export interface OAuthTokenDto { - /** - * - * @type {string} - * @memberof OAuthTokenDto - */ - 'idToken': string; - /** - * - * @type {string} - * @memberof OAuthTokenDto - */ - 'refreshToken': string; - /** - * - * @type {string} - * @memberof OAuthTokenDto - */ - 'accessToken': string; -} -/** - * - * @export - * @interface Oauth2AuthorizationBodyParams - */ -export interface Oauth2AuthorizationBodyParams { - /** - * - * @type {string} - * @memberof Oauth2AuthorizationBodyParams - */ - 'redirectUri': string; - /** - * - * @type {string} - * @memberof Oauth2AuthorizationBodyParams - */ - 'code': string; - /** - * - * @type {string} - * @memberof Oauth2AuthorizationBodyParams - */ - 'systemId': string; -} -/** - * - * @export - * @interface Oauth2MigrationParams - */ -export interface Oauth2MigrationParams { - /** - * - * @type {string} - * @memberof Oauth2MigrationParams - */ - 'redirectUri': string; - /** - * - * @type {string} - * @memberof Oauth2MigrationParams - */ - 'code': string; - /** - * - * @type {string} - * @memberof Oauth2MigrationParams - */ - 'systemId': string; -} -/** - * - * @export - * @interface Oauth2ToolConfigCreateParams - */ -export interface Oauth2ToolConfigCreateParams { - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'type': string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'baseUrl': string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'clientId': string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'clientSecret': string; - /** - * - * @type {boolean} - * @memberof Oauth2ToolConfigCreateParams - */ - 'skipConsent': boolean; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'frontchannelLogoutUri'?: string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'scope'?: string; - /** - * - * @type {Array} - * @memberof Oauth2ToolConfigCreateParams - */ - 'redirectUris': Array; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'tokenEndpointAuthMethod': string; -} -/** - * - * @export - * @interface Oauth2ToolConfigUpdateParams - */ -export interface Oauth2ToolConfigUpdateParams { - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'type': string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'baseUrl': string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'clientId': string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'clientSecret'?: string; - /** - * - * @type {boolean} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'skipConsent': boolean; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'frontchannelLogoutUri'?: string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'scope'?: string; - /** - * - * @type {Array} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'redirectUris': Array; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'tokenEndpointAuthMethod': string; -} -/** - * - * @export - * @interface OauthClientBody - */ -export interface OauthClientBody { - /** - * The Oauth2 client id. - * @type {string} - * @memberof OauthClientBody - */ - 'client_id'?: string; - /** - * The Oauth2 client name. - * @type {string} - * @memberof OauthClientBody - */ - 'client_name'?: string; - /** - * The Oauth2 client secret. - * @type {string} - * @memberof OauthClientBody - */ - 'client_secret'?: string; - /** - * The allowed redirect urls of the Oauth2 client. - * @type {Array} - * @memberof OauthClientBody - */ - 'redirect_uris'?: Array; - /** - * Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none. - * @type {string} - * @memberof OauthClientBody - */ - 'token_endpoint_auth_method'?: string; - /** - * SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include pairwise and public. - * @type {string} - * @memberof OauthClientBody - */ - 'subject_type'?: string; - /** - * Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. - * @type {string} - * @memberof OauthClientBody - */ - 'scope'?: string; - /** - * Thr frontchannel logout uri. - * @type {string} - * @memberof OauthClientBody - */ - 'frontchannel_logout_uri'?: string; - /** - * The grant types of the Oauth2 client. - * @type {Array} - * @memberof OauthClientBody - */ - 'grant_types'?: Array; - /** - * The response types of the Oauth2 client. - * @type {Array} - * @memberof OauthClientBody - */ - 'response_types'?: Array; -} -/** - * - * @export - * @interface OauthClientResponse - */ -export interface OauthClientResponse { - /** - * - * @type {Array} - * @memberof OauthClientResponse - */ - 'allowed_cors_origins'?: Array; - /** - * - * @type {Array} - * @memberof OauthClientResponse - */ - 'audience': Array; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'authorization_code_grant_access_token_lifespan': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'authorization_code_grant_id_token_lifespan': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'authorization_code_grant_refresh_token_lifespan': string; - /** - * Boolean value specifying whether the RP requires that a sid (session ID) Claim. - * @type {boolean} - * @memberof OauthClientResponse - */ - 'backchannel_logout_session_required': boolean; - /** - * RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. - * @type {string} - * @memberof OauthClientResponse - */ - 'backchannel_logout_uri': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'client_credentials_grant_access_token_lifespan': string; - /** - * Id of the client. - * @type {string} - * @memberof OauthClientResponse - */ - 'client_id': string; - /** - * Human-readable string name of the client presented to the end-user. - * @type {string} - * @memberof OauthClientResponse - */ - 'client_name': string; - /** - * SecretExpiresAt is an integer holding the time at which the client secret will expire or 0 if it will not expire. - * @type {number} - * @memberof OauthClientResponse - */ - 'client_secret_expires_at': number; - /** - * ClientUri is an URL string of a web page providing information about the client. - * @type {string} - * @memberof OauthClientResponse - */ - 'client_uri': string; - /** - * - * @type {Array} - * @memberof OauthClientResponse - */ - 'contacts'?: Array; - /** - * CreatedAt returns the timestamp of the clients creation. - * @type {string} - * @memberof OauthClientResponse - */ - 'created_at': string; - /** - * Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters. - * @type {boolean} - * @memberof OauthClientResponse - */ - 'frontchannel_logout_session_required': boolean; - /** - * RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. - * @type {string} - * @memberof OauthClientResponse - */ - 'frontchannel_logout_uri': string; - /** - * The grant types of the Oauth2 client. - * @type {Array} - * @memberof OauthClientResponse - */ - 'grant_types'?: Array; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'implicit_grant_access_token_lifespan': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'implicit_grant_id_token_lifespan': string; - /** - * - * @type {object} - * @memberof OauthClientResponse - */ - 'jwks': object; - /** - * URL for the clients JSON Web Key Set [JWK] document - * @type {string} - * @memberof OauthClientResponse - */ - 'jwks_uri': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'jwt_bearer_grant_access_token_lifespan': string; - /** - * LogoUri is an URL string that references a logo for the client. - * @type {string} - * @memberof OauthClientResponse - */ - 'logo_uri': string; - /** - * - * @type {object} - * @memberof OauthClientResponse - */ - 'metadata': object; - /** - * Owner is a string identifying the owner of the OAuth 2.0 Client. - * @type {string} - * @memberof OauthClientResponse - */ - 'owner': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'password_grant_access_token_lifespan': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'password_grant_refresh_token_lifespan': string; - /** - * PolicyUri is a URL string that points to a human-readable privacy policy document - * @type {string} - * @memberof OauthClientResponse - */ - 'policy_uri': string; - /** - * - * @type {Array} - * @memberof OauthClientResponse - */ - 'post_logout_redirect_uris'?: Array; - /** - * - * @type {Array} - * @memberof OauthClientResponse - */ - 'redirect_uris'?: Array; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'refresh_token_grant_access_token_lifespan': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'refresh_token_grant_id_token_lifespan': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'refresh_token_grant_refresh_token_lifespan': string; - /** - * RegistrationAccessToken can be used to update, get, or delete the OAuth2 Client. - * @type {string} - * @memberof OauthClientResponse - */ - 'registration_access_token': string; - /** - * RegistrationClientURI is the URL used to update, get, or delete the OAuth2 Client. - * @type {string} - * @memberof OauthClientResponse - */ - 'registration_client_uri': string; - /** - * JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. - * @type {string} - * @memberof OauthClientResponse - */ - 'request_object_signing_alg': string; - /** - * - * @type {Array} - * @memberof OauthClientResponse - */ - 'request_uris'?: Array; - /** - * The response types of the Oauth2 client. - * @type {Array} - * @memberof OauthClientResponse - */ - 'response_types'?: Array; - /** - * Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. - * @type {string} - * @memberof OauthClientResponse - */ - 'scope': string; - /** - * URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. - * @type {string} - * @memberof OauthClientResponse - */ - 'sector_identifier_uri': string; - /** - * SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include pairwise and public. - * @type {string} - * @memberof OauthClientResponse - */ - 'subject_type': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'token_endpoint_auth_method': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'token_endpoint_auth_signing_alg': string; - /** - * TermsOfServiceUri is a URL string that points to a human-readable terms of service document for the client. - * @type {string} - * @memberof OauthClientResponse - */ - 'tos_uri': string; - /** - * UpdatedAt returns the timestamp of the last update. - * @type {string} - * @memberof OauthClientResponse - */ - 'updated_at': string; - /** - * JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. - * @type {string} - * @memberof OauthClientResponse - */ - 'userinfo_signed_response_alg': string; -} -/** - * - * @export - * @interface OauthConfigResponse - */ -export interface OauthConfigResponse { - /** - * Client id - * @type {string} - * @memberof OauthConfigResponse - */ - 'clientId': string; - /** - * Hint for idp redirects (optional) - * @type {string} - * @memberof OauthConfigResponse - */ - 'idpHint'?: string | null; - /** - * Redirect uri - * @type {string} - * @memberof OauthConfigResponse - */ - 'redirectUri': string; - /** - * Grant type - * @type {string} - * @memberof OauthConfigResponse - */ - 'grantType': string; - /** - * Token endpoint - * @type {string} - * @memberof OauthConfigResponse - */ - 'tokenEndpoint': string; - /** - * Auth endpoint - * @type {string} - * @memberof OauthConfigResponse - */ - 'authEndpoint': string; - /** - * Response type - * @type {string} - * @memberof OauthConfigResponse - */ - 'responseType': string; - /** - * Scope - * @type {string} - * @memberof OauthConfigResponse - */ - 'scope': string; - /** - * Provider - * @type {string} - * @memberof OauthConfigResponse - */ - 'provider': string; - /** - * Logout endpoint - * @type {string} - * @memberof OauthConfigResponse - */ - 'logoutEndpoint'?: string; - /** - * Issuer - * @type {string} - * @memberof OauthConfigResponse - */ - 'issuer': string; - /** - * Jwks endpoint - * @type {string} - * @memberof OauthConfigResponse - */ - 'jwksEndpoint': string; -} -/** - * - * @export - * @interface OidcContextResponse - */ -export interface OidcContextResponse { - /** - * - * @type {Array} - * @memberof OidcContextResponse - */ - 'acr_values': Array; - /** - * - * @type {string} - * @memberof OidcContextResponse - */ - 'display': string; - /** - * - * @type {object} - * @memberof OidcContextResponse - */ - 'id_token_hint_claims': object; - /** - * - * @type {string} - * @memberof OidcContextResponse - */ - 'login_hint': string; - /** - * - * @type {Array} - * @memberof OidcContextResponse - */ - 'ui_locales': Array; -} -/** - * - * @export - * @interface ParentConsentResponse - */ -export interface ParentConsentResponse { - /** - * - * @type {string} - * @memberof ParentConsentResponse - */ - 'form': string; - /** - * - * @type {boolean} - * @memberof ParentConsentResponse - */ - 'privacyConsent': boolean; - /** - * - * @type {boolean} - * @memberof ParentConsentResponse - */ - 'termsOfUseConsent': boolean; - /** - * - * @type {string} - * @memberof ParentConsentResponse - */ - 'dateOfPrivacyConsent': string; - /** - * - * @type {string} - * @memberof ParentConsentResponse - */ - 'dateOfTermsOfUseConsent': string; - /** - * - * @type {string} - * @memberof ParentConsentResponse - */ - '_id': string; -} -/** - * - * @export - * @interface PatchGroupParams - */ -export interface PatchGroupParams { - /** - * Title of the Group grid element - * @type {string} - * @memberof PatchGroupParams - */ - 'title': string; -} -/** - * - * @export - * @interface PatchMyAccountParams - */ -export interface PatchMyAccountParams { - /** - * The current user password to authorize the update action. - * @type {string} - * @memberof PatchMyAccountParams - */ - 'passwordOld': string; - /** - * The new password for the current user. - * @type {string} - * @memberof PatchMyAccountParams - */ - 'passwordNew'?: string | null; - /** - * The new email address for the current user. - * @type {string} - * @memberof PatchMyAccountParams - */ - 'email'?: string | null; - /** - * The new first name for the current user. - * @type {string} - * @memberof PatchMyAccountParams - */ - 'firstName'?: string | null; - /** - * The new last name for the current user. - * @type {string} - * @memberof PatchMyAccountParams - */ - 'lastName'?: string | null; -} -/** - * - * @export - * @interface PatchMyPasswordParams - */ -export interface PatchMyPasswordParams { - /** - * The new user password. - * @type {string} - * @memberof PatchMyPasswordParams - */ - 'password': string; - /** - * The confirmed new user password. Must match the password field. - * @type {string} - * @memberof PatchMyPasswordParams - */ - 'confirmPassword': string; -} -/** - * - * @export - * @interface PatchOrderParams - */ -export interface PatchOrderParams { - /** - * Array ids determining the new order - * @type {Array} - * @memberof PatchOrderParams - */ - 'elements': Array; -} -/** - * - * @export - * @interface PatchVisibilityParams - */ -export interface PatchVisibilityParams { - /** - * true to publish the element, false to unpublish - * @type {boolean} - * @memberof PatchVisibilityParams - */ - 'visibility': boolean; -} -/** - * - * @export - * @interface ProviderConfigResponse - */ -export interface ProviderConfigResponse { - /** - * - * @type {string} - * @memberof ProviderConfigResponse - */ - 'provider': string; -} -/** - * - * @export - * @interface PseudonymResponse - */ -export interface PseudonymResponse { - /** - * - * @type {string} - * @memberof PseudonymResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof PseudonymResponse - */ - 'toolId': string; - /** - * - * @type {string} - * @memberof PseudonymResponse - */ - 'userId': string; -} -/** - * - * @export - * @interface PublicSystemListResponse - */ -export interface PublicSystemListResponse { - /** - * - * @type {Array} - * @memberof PublicSystemListResponse - */ - 'data': Array; -} -/** - * - * @export - * @interface PublicSystemResponse - */ -export interface PublicSystemResponse { - /** - * Id of the system. - * @type {string} - * @memberof PublicSystemResponse - */ - 'id': string; - /** - * Flag to request only systems with oauth-config. - * @type {string} - * @memberof PublicSystemResponse - */ - 'type'?: string | null; - /** - * Alias of the system. - * @type {string} - * @memberof PublicSystemResponse - */ - 'alias'?: string | null; - /** - * Display name of the system. - * @type {string} - * @memberof PublicSystemResponse - */ - 'displayName'?: string | null; - /** - * - * @type {PublicSystemResponseOauthConfig} - * @memberof PublicSystemResponse - */ - 'oauthConfig'?: PublicSystemResponseOauthConfig | null; -} -/** - * Oauth config of the system. - * @export - * @interface PublicSystemResponseOauthConfig - */ -export interface PublicSystemResponseOauthConfig { - /** - * Client id - * @type {string} - * @memberof PublicSystemResponseOauthConfig - */ - 'clientId': string; - /** - * Hint for idp redirects (optional) - * @type {string} - * @memberof PublicSystemResponseOauthConfig - */ - 'idpHint'?: string | null; - /** - * Redirect uri - * @type {string} - * @memberof PublicSystemResponseOauthConfig - */ - 'redirectUri': string; - /** - * Grant type - * @type {string} - * @memberof PublicSystemResponseOauthConfig - */ - 'grantType': string; - /** - * Token endpoint - * @type {string} - * @memberof PublicSystemResponseOauthConfig - */ - 'tokenEndpoint': string; - /** - * Auth endpoint - * @type {string} - * @memberof PublicSystemResponseOauthConfig - */ - 'authEndpoint': string; - /** - * Response type - * @type {string} - * @memberof PublicSystemResponseOauthConfig - */ - 'responseType': string; - /** - * Scope - * @type {string} - * @memberof PublicSystemResponseOauthConfig - */ - 'scope': string; - /** - * Provider - * @type {string} - * @memberof PublicSystemResponseOauthConfig - */ - 'provider': string; - /** - * Logout endpoint - * @type {string} - * @memberof PublicSystemResponseOauthConfig - */ - 'logoutEndpoint'?: string; - /** - * Issuer - * @type {string} - * @memberof PublicSystemResponseOauthConfig - */ - 'issuer': string; - /** - * Jwks endpoint - * @type {string} - * @memberof PublicSystemResponseOauthConfig - */ - 'jwksEndpoint': string; -} -/** - * - * @export - * @interface RedirectResponse - */ -export interface RedirectResponse { - /** - * RedirectURL is the URL which you should redirect the user to once the authentication process is completed. - * @type {string} - * @memberof RedirectResponse - */ - 'redirect_to': string; -} -/** - * - * @export - * @interface RenameBodyParams - */ -export interface RenameBodyParams { - /** - * - * @type {string} - * @memberof RenameBodyParams - */ - 'title': string; -} -/** - * - * @export - * @interface ResolvedUserResponse - */ -export interface ResolvedUserResponse { - /** - * - * @type {string} - * @memberof ResolvedUserResponse - */ - 'firstName': string; - /** - * - * @type {string} - * @memberof ResolvedUserResponse - */ - 'lastName': string; - /** - * - * @type {string} - * @memberof ResolvedUserResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof ResolvedUserResponse - */ - 'createdAt': string; - /** - * - * @type {string} - * @memberof ResolvedUserResponse - */ - 'updatedAt': string; - /** - * - * @type {Array} - * @memberof ResolvedUserResponse - */ - 'roles': Array; - /** - * - * @type {Array} - * @memberof ResolvedUserResponse - */ - 'permissions': Array; - /** - * - * @type {string} - * @memberof ResolvedUserResponse - */ - 'schoolId': string; -} -/** - * - * @export - * @interface RichText - */ -export interface RichText { - /** - * Content of the rich text element - * @type {string} - * @memberof RichText - */ - 'content': string; - /** - * Input format of the rich text element - * @type {string} - * @memberof RichText - */ - 'type': RichTextTypeEnum; -} - -export const RichTextTypeEnum = { - PlainText: 'plainText', - RichTextCk5Simple: 'richTextCk5Simple', - RichTextCk4: 'richTextCk4', - RichTextCk5: 'richTextCk5' -} as const; - -export type RichTextTypeEnum = typeof RichTextTypeEnum[keyof typeof RichTextTypeEnum]; - -/** - * - * @export - * @interface RichTextContentBody - */ -export interface RichTextContentBody { - /** - * - * @type {string} - * @memberof RichTextContentBody - */ - 'text': string; - /** - * - * @type {string} - * @memberof RichTextContentBody - */ - 'inputFormat': string; -} -/** - * - * @export - * @interface RichTextElementContent - */ -export interface RichTextElementContent { - /** - * - * @type {string} - * @memberof RichTextElementContent - */ - 'text': string; - /** - * - * @type {string} - * @memberof RichTextElementContent - */ - 'inputFormat': string; -} -/** - * - * @export - * @interface RichTextElementContentBody - */ -export interface RichTextElementContentBody { - /** - * - * @type {ContentElementType} - * @memberof RichTextElementContentBody - */ - 'type': ContentElementType; - /** - * - * @type {RichTextContentBody} - * @memberof RichTextElementContentBody - */ - 'content': RichTextContentBody; -} - - -/** - * - * @export - * @interface RichTextElementResponse - */ -export interface RichTextElementResponse { - /** - * - * @type {string} - * @memberof RichTextElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof RichTextElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {RichTextElementContent} - * @memberof RichTextElementResponse - */ - 'content': RichTextElementContent; - /** - * - * @type {TimestampsResponse} - * @memberof RichTextElementResponse - */ - 'timestamps': TimestampsResponse; -} - - -/** - * - * @export - * @enum {string} - */ - -export const RoleName = { - Administrator: 'administrator', - CourseAdministrator: 'courseAdministrator', - CourseStudent: 'courseStudent', - CourseSubstitutionTeacher: 'courseSubstitutionTeacher', - CourseTeacher: 'courseTeacher', - Demo: 'demo', - DemoStudent: 'demoStudent', - DemoTeacher: 'demoTeacher', - Expert: 'expert', - Helpdesk: 'helpdesk', - Student: 'student', - Superhero: 'superhero', - Teacher: 'teacher', - Teamadministrator: 'teamadministrator', - Teamexpert: 'teamexpert', - Teamleader: 'teamleader', - Teammember: 'teammember', - Teamowner: 'teamowner', - User: 'user' -} as const; - -export type RoleName = typeof RoleName[keyof typeof RoleName]; - - -/** - * @type SchoolControllerGetProvisioningOptions200Response - * @export - */ -export type SchoolControllerGetProvisioningOptions200Response = SchulConneXProvisioningOptionsResponse; - -/** - * - * @export - * @interface SchoolExistsResponse - */ -export interface SchoolExistsResponse { - /** - * - * @type {boolean} - * @memberof SchoolExistsResponse - */ - 'exists': boolean; -} -/** - * - * @export - * @interface SchoolExternalToolConfigurationStatusResponse - */ -export interface SchoolExternalToolConfigurationStatusResponse { - /** - * Is the tool outdated on school scope, because of non matching versions or required parameter changes on ExternalTool? - * @type {boolean} - * @memberof SchoolExternalToolConfigurationStatusResponse - */ - 'isOutdatedOnScopeSchool': boolean; - /** - * Is the tool deactivated, because of school administrator? - * @type {boolean} - * @memberof SchoolExternalToolConfigurationStatusResponse - */ - 'isDeactivated': boolean; -} -/** - * - * @export - * @interface SchoolExternalToolConfigurationTemplateListResponse - */ -export interface SchoolExternalToolConfigurationTemplateListResponse { - /** - * - * @type {Array} - * @memberof SchoolExternalToolConfigurationTemplateListResponse - */ - 'data': Array; -} -/** - * - * @export - * @interface SchoolExternalToolConfigurationTemplateResponse - */ -export interface SchoolExternalToolConfigurationTemplateResponse { - /** - * - * @type {string} - * @memberof SchoolExternalToolConfigurationTemplateResponse - */ - 'externalToolId': string; - /** - * - * @type {string} - * @memberof SchoolExternalToolConfigurationTemplateResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof SchoolExternalToolConfigurationTemplateResponse - */ - 'logoUrl'?: string; - /** - * - * @type {Array} - * @memberof SchoolExternalToolConfigurationTemplateResponse - */ - 'parameters': Array; -} -/** - * - * @export - * @interface SchoolExternalToolMetadataResponse - */ -export interface SchoolExternalToolMetadataResponse { - /** - * - * @type {ContextExternalToolCountPerContextResponse} - * @memberof SchoolExternalToolMetadataResponse - */ - 'contextExternalToolCountPerContext': ContextExternalToolCountPerContextResponse; -} -/** - * - * @export - * @interface SchoolExternalToolPostParams - */ -export interface SchoolExternalToolPostParams { - /** - * - * @type {string} - * @memberof SchoolExternalToolPostParams - */ - 'toolId': string; - /** - * - * @type {string} - * @memberof SchoolExternalToolPostParams - */ - 'schoolId': string; - /** - * - * @type {Array} - * @memberof SchoolExternalToolPostParams - */ - 'parameters'?: Array; - /** - * Tool can be deactivated, related tools can not be added to e.g. course or board anymore - * @type {boolean} - * @memberof SchoolExternalToolPostParams - */ - 'isDeactivated': boolean; -} -/** - * - * @export - * @interface SchoolExternalToolResponse - */ -export interface SchoolExternalToolResponse { - /** - * - * @type {string} - * @memberof SchoolExternalToolResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SchoolExternalToolResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof SchoolExternalToolResponse - */ - 'toolId': string; - /** - * - * @type {string} - * @memberof SchoolExternalToolResponse - */ - 'schoolId': string; - /** - * - * @type {Array} - * @memberof SchoolExternalToolResponse - */ - 'parameters': Array; - /** - * - * @type {SchoolExternalToolConfigurationStatusResponse} - * @memberof SchoolExternalToolResponse - */ - 'status': SchoolExternalToolConfigurationStatusResponse; - /** - * - * @type {string} - * @memberof SchoolExternalToolResponse - */ - 'logoUrl'?: string; -} -/** - * - * @export - * @interface SchoolExternalToolSearchListResponse - */ -export interface SchoolExternalToolSearchListResponse { - /** - * - * @type {Array} - * @memberof SchoolExternalToolSearchListResponse - */ - 'data': Array; -} -/** - * - * @export - * @interface SchoolForExternalInviteResponse - */ -export interface SchoolForExternalInviteResponse { - /** - * - * @type {string} - * @memberof SchoolForExternalInviteResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SchoolForExternalInviteResponse - */ - 'name': string; -} -/** - * - * @export - * @interface SchoolForLdapLoginResponse - */ -export interface SchoolForLdapLoginResponse { - /** - * - * @type {string} - * @memberof SchoolForLdapLoginResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SchoolForLdapLoginResponse - */ - 'name': string; - /** - * - * @type {Array} - * @memberof SchoolForLdapLoginResponse - */ - 'systems': Array; -} -/** - * - * @export - * @interface SchoolInfoResponse - */ -export interface SchoolInfoResponse { - /** - * The id of the School entity - * @type {string} - * @memberof SchoolInfoResponse - */ - 'id': string; - /** - * The name of the School entity - * @type {string} - * @memberof SchoolInfoResponse - */ - 'name': string; -} -/** - * - * @export - * @interface SchoolLogo - */ -export interface SchoolLogo { - /** - * - * @type {string} - * @memberof SchoolLogo - */ - 'dataUrl'?: string; - /** - * - * @type {string} - * @memberof SchoolLogo - */ - 'name'?: string; -} -/** - * - * @export - * @interface SchoolPermissionsParams - */ -export interface SchoolPermissionsParams { - /** - * - * @type {TeacherPermissionParams} - * @memberof SchoolPermissionsParams - */ - 'teacher'?: TeacherPermissionParams; - /** - * - * @type {StudentPermissionParams} - * @memberof SchoolPermissionsParams - */ - 'student'?: StudentPermissionParams; -} -/** - * - * @export - * @enum {string} - */ - -export const SchoolPurpose = { - Expert: 'expert', - Tombstone: 'tombstone', - Demo: 'demo', - Test: 'test', - MintEc: 'MINT-EC' -} as const; - -export type SchoolPurpose = typeof SchoolPurpose[keyof typeof SchoolPurpose]; - - -/** - * - * @export - * @interface SchoolResponse - */ -export interface SchoolResponse { - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'createdAt': string; - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'updatedAt': string; - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'officialSchoolNumber'?: string; - /** - * - * @type {SchoolYearResponse} - * @memberof SchoolResponse - */ - 'currentYear'?: SchoolYearResponse; - /** - * - * @type {FederalStateResponse} - * @memberof SchoolResponse - */ - 'federalState': FederalStateResponse; - /** - * - * @type {CountyResponse} - * @memberof SchoolResponse - */ - 'county'?: CountyResponse; - /** - * - * @type {SchoolPurpose} - * @memberof SchoolResponse - */ - 'purpose'?: SchoolPurpose; - /** - * - * @type {Array} - * @memberof SchoolResponse - */ - 'features': Array; - /** - * - * @type {Array} - * @memberof SchoolResponse - */ - 'systemIds': Array; - /** - * - * @type {boolean} - * @memberof SchoolResponse - */ - 'inUserMigration'?: boolean; - /** - * - * @type {boolean} - * @memberof SchoolResponse - */ - 'inMaintenance': boolean; - /** - * - * @type {boolean} - * @memberof SchoolResponse - */ - 'isExternal': boolean; - /** - * - * @type {SchoolLogo} - * @memberof SchoolResponse - */ - 'logo'?: SchoolLogo; - /** - * - * @type {FileStorageType} - * @memberof SchoolResponse - */ - 'fileStorageType'?: FileStorageType; - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'language'?: string; - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'timezone'?: string; - /** - * - * @type {object} - * @memberof SchoolResponse - */ - 'permissions'?: object; - /** - * - * @type {YearsResponse} - * @memberof SchoolResponse - */ - 'years': YearsResponse; - /** - * - * @type {Array} - * @memberof SchoolResponse - */ - 'instanceFeatures': Array; -} - - -/** - * - * @export - * @interface SchoolSystemResponse - */ -export interface SchoolSystemResponse { - /** - * - * @type {string} - * @memberof SchoolSystemResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SchoolSystemResponse - */ - 'type': string; - /** - * - * @type {string} - * @memberof SchoolSystemResponse - */ - 'alias'?: string; - /** - * - * @type {ProviderConfigResponse} - * @memberof SchoolSystemResponse - */ - 'ldapConfig'?: ProviderConfigResponse; - /** - * - * @type {ProviderConfigResponse} - * @memberof SchoolSystemResponse - */ - 'oauthConfig'?: ProviderConfigResponse; -} -/** - * - * @export - * @interface SchoolUpdateBodyParams - */ -export interface SchoolUpdateBodyParams { - /** - * - * @type {string} - * @memberof SchoolUpdateBodyParams - */ - 'name'?: string; - /** - * - * @type {string} - * @memberof SchoolUpdateBodyParams - */ - 'officialSchoolNumber'?: string; - /** - * - * @type {SchoolLogo} - * @memberof SchoolUpdateBodyParams - */ - 'logo'?: SchoolLogo; - /** - * - * @type {string} - * @memberof SchoolUpdateBodyParams - */ - 'fileStorageType'?: SchoolUpdateBodyParamsFileStorageTypeEnum; - /** - * - * @type {LanguageType} - * @memberof SchoolUpdateBodyParams - */ - 'language'?: LanguageType; - /** - * - * @type {Array} - * @memberof SchoolUpdateBodyParams - */ - 'features'?: Array; - /** - * - * @type {SchoolPermissionsParams} - * @memberof SchoolUpdateBodyParams - */ - 'permissions'?: SchoolPermissionsParams; - /** - * - * @type {string} - * @memberof SchoolUpdateBodyParams - */ - 'countyId'?: string; - /** - * - * @type {boolean} - * @memberof SchoolUpdateBodyParams - */ - 'enableStudentTeamCreation'?: boolean; -} - -export const SchoolUpdateBodyParamsFileStorageTypeEnum = { - AwsS3: 'awsS3' -} as const; - -export type SchoolUpdateBodyParamsFileStorageTypeEnum = typeof SchoolUpdateBodyParamsFileStorageTypeEnum[keyof typeof SchoolUpdateBodyParamsFileStorageTypeEnum]; - -/** - * - * @export - * @enum {string} - */ - -export const SchoolYearQueryType = { - NextYear: 'nextYear', - CurrentYear: 'currentYear', - PreviousYears: 'previousYears' -} as const; - -export type SchoolYearQueryType = typeof SchoolYearQueryType[keyof typeof SchoolYearQueryType]; - - -/** - * - * @export - * @interface SchoolYearResponse - */ -export interface SchoolYearResponse { - /** - * - * @type {string} - * @memberof SchoolYearResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SchoolYearResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof SchoolYearResponse - */ - 'startDate': string; - /** - * - * @type {string} - * @memberof SchoolYearResponse - */ - 'endDate': string; -} -/** - * - * @export - * @interface SchulConneXProvisioningOptionsParams - */ -export interface SchulConneXProvisioningOptionsParams { - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsParams - */ - 'groupProvisioningClassesEnabled': boolean; - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsParams - */ - 'groupProvisioningCoursesEnabled': boolean; - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsParams - */ - 'groupProvisioningOtherEnabled': boolean; - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsParams - */ - 'schoolExternalToolProvisioningEnabled': boolean; -} -/** - * - * @export - * @interface SchulConneXProvisioningOptionsResponse - */ -export interface SchulConneXProvisioningOptionsResponse { - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsResponse - */ - 'groupProvisioningClassesEnabled': boolean; - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsResponse - */ - 'groupProvisioningCoursesEnabled': boolean; - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsResponse - */ - 'groupProvisioningOtherEnabled': boolean; - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsResponse - */ - 'schoolExternalToolProvisioningEnabled': boolean; -} -/** - * - * @export - * @enum {string} - */ - -export const SchulcloudTheme = { - Brb: 'brb', - Default: 'default', - N21: 'n21', - Thr: 'thr' -} as const; - -export type SchulcloudTheme = typeof SchulcloudTheme[keyof typeof SchulcloudTheme]; - - -/** - * - * @export - * @interface SetHeightBodyParams - */ -export interface SetHeightBodyParams { - /** - * - * @type {number} - * @memberof SetHeightBodyParams - */ - 'height': number; -} -/** - * - * @export - * @interface ShareTokenBodyParams - */ -export interface ShareTokenBodyParams { - /** - * the type of the object being shared - * @type {string} - * @memberof ShareTokenBodyParams - */ - 'parentType': ShareTokenBodyParamsParentTypeEnum; - /** - * the id of the object being shared. - * @type {string} - * @memberof ShareTokenBodyParams - */ - 'parentId': string; - /** - * when defined, the sharetoken will expire after the given number of days. - * @type {number} - * @memberof ShareTokenBodyParams - */ - 'expiresInDays'?: number | null; - /** - * when defined, the sharetoken will be usable exclusively by members of the users school. - * @type {boolean} - * @memberof ShareTokenBodyParams - */ - 'schoolExclusive'?: boolean | null; -} - -export const ShareTokenBodyParamsParentTypeEnum = { - Courses: 'courses', - Tasks: 'tasks', - Lessons: 'lessons', - ColumnBoard: 'columnBoard' -} as const; - -export type ShareTokenBodyParamsParentTypeEnum = typeof ShareTokenBodyParamsParentTypeEnum[keyof typeof ShareTokenBodyParamsParentTypeEnum]; - -/** - * - * @export - * @interface ShareTokenImportBodyParams - */ -export interface ShareTokenImportBodyParams { - /** - * the new name of the imported object. - * @type {string} - * @memberof ShareTokenImportBodyParams - */ - 'newName': string; - /** - * Id of the course to which the lesson/task will be added - * @type {string} - * @memberof ShareTokenImportBodyParams - */ - 'destinationCourseId'?: string | null; -} -/** - * - * @export - * @interface ShareTokenInfoResponse - */ -export interface ShareTokenInfoResponse { - /** - * - * @type {string} - * @memberof ShareTokenInfoResponse - */ - 'token': string; - /** - * - * @type {string} - * @memberof ShareTokenInfoResponse - */ - 'parentType': ShareTokenInfoResponseParentTypeEnum; - /** - * - * @type {string} - * @memberof ShareTokenInfoResponse - */ - 'parentName': string; -} - -export const ShareTokenInfoResponseParentTypeEnum = { - Courses: 'courses', - Tasks: 'tasks', - Lessons: 'lessons', - ColumnBoard: 'columnBoard' -} as const; - -export type ShareTokenInfoResponseParentTypeEnum = typeof ShareTokenInfoResponseParentTypeEnum[keyof typeof ShareTokenInfoResponseParentTypeEnum]; - -/** - * - * @export - * @interface ShareTokenPayloadResponse - */ -export interface ShareTokenPayloadResponse { - /** - * - * @type {string} - * @memberof ShareTokenPayloadResponse - */ - 'parentType': ShareTokenPayloadResponseParentTypeEnum; - /** - * - * @type {string} - * @memberof ShareTokenPayloadResponse - */ - 'parentId': string; -} - -export const ShareTokenPayloadResponseParentTypeEnum = { - Courses: 'courses', - Tasks: 'tasks', - Lessons: 'lessons', - ColumnBoard: 'columnBoard' -} as const; - -export type ShareTokenPayloadResponseParentTypeEnum = typeof ShareTokenPayloadResponseParentTypeEnum[keyof typeof ShareTokenPayloadResponseParentTypeEnum]; - -/** - * - * @export - * @interface ShareTokenResponse - */ -export interface ShareTokenResponse { - /** - * - * @type {string} - * @memberof ShareTokenResponse - */ - 'token': string; - /** - * - * @type {ShareTokenPayloadResponse} - * @memberof ShareTokenResponse - */ - 'payload': ShareTokenPayloadResponse; - /** - * - * @type {string} - * @memberof ShareTokenResponse - */ - 'expiresAt'?: string; -} -/** - * - * @export - * @interface SingleColumnBoardResponse - */ -export interface SingleColumnBoardResponse { - /** - * The id of the room this board belongs to - * @type {string} - * @memberof SingleColumnBoardResponse - */ - 'roomId': string; - /** - * Title of the Board - * @type {string} - * @memberof SingleColumnBoardResponse - */ - 'title': string; - /** - * Color of the Board - * @type {string} - * @memberof SingleColumnBoardResponse - */ - 'displayColor': string; - /** - * Array of board specific tasks or lessons with matching type property - * @type {Array} - * @memberof SingleColumnBoardResponse - */ - 'elements': Array; - /** - * Boolean if the room this board belongs to is archived - * @type {boolean} - * @memberof SingleColumnBoardResponse - */ - 'isArchived': boolean; - /** - * Is the course synchronized with a group? - * @type {boolean} - * @memberof SingleColumnBoardResponse - */ - 'isSynchronized': boolean; -} -/** - * - * @export - * @interface StudentPermissionParams - */ -export interface StudentPermissionParams { - /** - * - * @type {boolean} - * @memberof StudentPermissionParams - */ - 'LERNSTORE_VIEW'?: boolean; -} -/** - * - * @export - * @interface SubmissionContainerContentBody - */ -export interface SubmissionContainerContentBody { - /** - * The point in time until when a submission can be handed in. - * @type {string} - * @memberof SubmissionContainerContentBody - */ - 'dueDate'?: string; -} -/** - * - * @export - * @interface SubmissionContainerElementContent - */ -export interface SubmissionContainerElementContent { - /** - * The dueDate as date string or null of not set - * @type {string} - * @memberof SubmissionContainerElementContent - */ - 'dueDate': string; -} -/** - * - * @export - * @interface SubmissionContainerElementContentBody - */ -export interface SubmissionContainerElementContentBody { - /** - * - * @type {ContentElementType} - * @memberof SubmissionContainerElementContentBody - */ - 'type': ContentElementType; - /** - * - * @type {SubmissionContainerContentBody} - * @memberof SubmissionContainerElementContentBody - */ - 'content': SubmissionContainerContentBody; -} - - -/** - * - * @export - * @interface SubmissionContainerElementResponse - */ -export interface SubmissionContainerElementResponse { - /** - * - * @type {string} - * @memberof SubmissionContainerElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof SubmissionContainerElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {SubmissionContainerElementContent} - * @memberof SubmissionContainerElementResponse - */ - 'content': SubmissionContainerElementContent; - /** - * - * @type {TimestampsResponse} - * @memberof SubmissionContainerElementResponse - */ - 'timestamps': TimestampsResponse; -} - - -/** - * - * @export - * @interface SubmissionItemResponse - */ -export interface SubmissionItemResponse { - /** - * - * @type {string} - * @memberof SubmissionItemResponse - */ - 'id': string; - /** - * - * @type {TimestampsResponse} - * @memberof SubmissionItemResponse - */ - 'timestamps': TimestampsResponse; - /** - * - * @type {boolean} - * @memberof SubmissionItemResponse - */ - 'completed': boolean; - /** - * - * @type {string} - * @memberof SubmissionItemResponse - */ - 'userId': string; - /** - * - * @type {Array} - * @memberof SubmissionItemResponse - */ - 'elements': Array; -} -/** - * @type SubmissionItemResponseElementsInner - * @export - */ -export type SubmissionItemResponseElementsInner = FileElementResponse | RichTextElementResponse; - -/** - * - * @export - * @interface SubmissionStatusListResponse - */ -export interface SubmissionStatusListResponse { - /** - * - * @type {Array} - * @memberof SubmissionStatusListResponse - */ - 'data': Array; -} -/** - * - * @export - * @interface SubmissionStatusResponse - */ -export interface SubmissionStatusResponse { - /** - * - * @type {string} - * @memberof SubmissionStatusResponse - */ - 'id': string; - /** - * - * @type {Array} - * @memberof SubmissionStatusResponse - */ - 'submitters': Array; - /** - * - * @type {boolean} - * @memberof SubmissionStatusResponse - */ - 'isSubmitted': boolean; - /** - * - * @type {number} - * @memberof SubmissionStatusResponse - */ - 'grade'?: number; - /** - * - * @type {boolean} - * @memberof SubmissionStatusResponse - */ - 'isGraded': boolean; - /** - * - * @type {string} - * @memberof SubmissionStatusResponse - */ - 'submittingCourseGroupName'?: string; -} -/** - * - * @export - * @interface SubmissionsResponse - */ -export interface SubmissionsResponse { - /** - * - * @type {Array} - * @memberof SubmissionsResponse - */ - 'submissionItemsResponse': Array; - /** - * - * @type {Array} - * @memberof SubmissionsResponse - */ - 'users': Array; -} -/** - * - * @export - * @interface SuccessfulResponse - */ -export interface SuccessfulResponse { - /** - * - * @type {boolean} - * @memberof SuccessfulResponse - */ - 'successful': boolean; -} -/** - * - * @export - * @interface SystemForLdapLoginResponse - */ -export interface SystemForLdapLoginResponse { - /** - * - * @type {string} - * @memberof SystemForLdapLoginResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SystemForLdapLoginResponse - */ - 'type': string; - /** - * - * @type {string} - * @memberof SystemForLdapLoginResponse - */ - 'alias': string; -} -/** - * - * @export - * @interface TargetInfoResponse - */ -export interface TargetInfoResponse { - /** - * The id of the Target entity - * @type {string} - * @memberof TargetInfoResponse - */ - 'id': string; - /** - * The name of the Target entity - * @type {string} - * @memberof TargetInfoResponse - */ - 'name': string; -} -/** - * - * @export - * @interface TaskCopyApiParams - */ -export interface TaskCopyApiParams { - /** - * Destination course parent Id the task is copied to - * @type {string} - * @memberof TaskCopyApiParams - */ - 'courseId'?: string; - /** - * Destination lesson parent Id the task is copied to - * @type {string} - * @memberof TaskCopyApiParams - */ - 'lessonId'?: string; -} -/** - * - * @export - * @interface TaskListResponse - */ -export interface TaskListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof TaskListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof TaskListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof TaskListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof TaskListResponse - */ - 'limit': number; -} -/** - * - * @export - * @interface TaskResponse - */ -export interface TaskResponse { - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'availableDate'?: string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'dueDate'?: string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'courseName': string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'lessonName'?: string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'courseId': string; - /** - * Task description object, with props content: string and type: input format types - * @type {RichText} - * @memberof TaskResponse - */ - 'description'?: RichText; - /** - * - * @type {boolean} - * @memberof TaskResponse - */ - 'lessonHidden': boolean; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'displayColor'?: string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'createdAt': string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'updatedAt': string; - /** - * - * @type {TaskStatusResponse} - * @memberof TaskResponse - */ - 'status': TaskStatusResponse; -} -/** - * - * @export - * @interface TaskStatusResponse - */ -export interface TaskStatusResponse { - /** - * - * @type {number} - * @memberof TaskStatusResponse - */ - 'submitted': number; - /** - * - * @type {number} - * @memberof TaskStatusResponse - */ - 'maxSubmissions': number; - /** - * - * @type {number} - * @memberof TaskStatusResponse - */ - 'graded': number; - /** - * - * @type {boolean} - * @memberof TaskStatusResponse - */ - 'isDraft': boolean; - /** - * - * @type {boolean} - * @memberof TaskStatusResponse - */ - 'isSubstitutionTeacher': boolean; - /** - * - * @type {boolean} - * @memberof TaskStatusResponse - */ - 'isFinished': boolean; -} -/** - * - * @export - * @interface TeacherPermissionParams - */ -export interface TeacherPermissionParams { - /** - * - * @type {boolean} - * @memberof TeacherPermissionParams - */ - 'STUDENT_LIST'?: boolean; -} -/** - * - * @export - * @interface TeamPermissionsBody - */ -export interface TeamPermissionsBody { - /** - * - * @type {boolean} - * @memberof TeamPermissionsBody - */ - 'read': boolean; - /** - * - * @type {boolean} - * @memberof TeamPermissionsBody - */ - 'write': boolean; - /** - * - * @type {boolean} - * @memberof TeamPermissionsBody - */ - 'create': boolean; - /** - * - * @type {boolean} - * @memberof TeamPermissionsBody - */ - 'delete': boolean; - /** - * - * @type {boolean} - * @memberof TeamPermissionsBody - */ - 'share': boolean; -} -/** - * - * @export - * @interface TimestampsResponse - */ -export interface TimestampsResponse { - /** - * - * @type {string} - * @memberof TimestampsResponse - */ - 'lastUpdatedAt': string; - /** - * - * @type {string} - * @memberof TimestampsResponse - */ - 'createdAt': string; - /** - * - * @type {string} - * @memberof TimestampsResponse - */ - 'deletedAt'?: string; -} -/** - * - * @export - * @enum {string} - */ - -export const Timezone = { - EuropeBerlin: 'Europe/Berlin' -} as const; - -export type Timezone = typeof Timezone[keyof typeof Timezone]; - - -/** - * - * @export - * @enum {string} - */ - -export const ToolConfigType = { - Basic: 'basic', - Oauth2: 'oauth2', - Lti11: 'lti11' -} as const; - -export type ToolConfigType = typeof ToolConfigType[keyof typeof ToolConfigType]; - - -/** - * - * @export - * @enum {string} - */ - -export const ToolContextType = { - Course: 'course', - BoardElement: 'board-element', - MediaBoard: 'media-board' -} as const; - -export type ToolContextType = typeof ToolContextType[keyof typeof ToolContextType]; - - -/** - * - * @export - * @interface ToolContextTypesListResponse - */ -export interface ToolContextTypesListResponse { - /** - * - * @type {Array} - * @memberof ToolContextTypesListResponse - */ - 'data': Array; -} -/** - * - * @export - * @interface ToolLaunchRequestResponse - */ -export interface ToolLaunchRequestResponse { - /** - * The Launch Request method (GET or POST) - * @type {string} - * @memberof ToolLaunchRequestResponse - */ - 'method': ToolLaunchRequestResponseMethodEnum; - /** - * The URL for the Tool Launch Request - * @type {string} - * @memberof ToolLaunchRequestResponse - */ - 'url': string; - /** - * The payload for the Tool Launch Request (optional) - * @type {string} - * @memberof ToolLaunchRequestResponse - */ - 'payload'?: string; - /** - * Specifies whether the Tool should be launched in a new tab - * @type {boolean} - * @memberof ToolLaunchRequestResponse - */ - 'openNewTab'?: boolean; -} - -export const ToolLaunchRequestResponseMethodEnum = { - Get: 'GET', - Post: 'POST' -} as const; - -export type ToolLaunchRequestResponseMethodEnum = typeof ToolLaunchRequestResponseMethodEnum[keyof typeof ToolLaunchRequestResponseMethodEnum]; - -/** - * - * @export - * @interface ToolReferenceListResponse - */ -export interface ToolReferenceListResponse { - /** - * - * @type {Array} - * @memberof ToolReferenceListResponse - */ - 'data': Array; -} -/** - * - * @export - * @interface ToolReferenceResponse - */ -export interface ToolReferenceResponse { - /** - * The id of the tool in the context - * @type {string} - * @memberof ToolReferenceResponse - */ - 'contextToolId': string; - /** - * The description of the tool - * @type {string} - * @memberof ToolReferenceResponse - */ - 'description'?: string; - /** - * The url of the logo which is stored in the db - * @type {string} - * @memberof ToolReferenceResponse - */ - 'logoUrl'?: string; - /** - * The display name of the tool - * @type {string} - * @memberof ToolReferenceResponse - */ - 'displayName': string; - /** - * Whether the tool should be opened in a new tab - * @type {boolean} - * @memberof ToolReferenceResponse - */ - 'openInNewTab': boolean; - /** - * The status of the tool - * @type {ContextExternalToolConfigurationStatusResponse} - * @memberof ToolReferenceResponse - */ - 'status': ContextExternalToolConfigurationStatusResponse; -} -/** - * - * @export - * @interface UpdateBoardTitleParams - */ -export interface UpdateBoardTitleParams { - /** - * - * @type {string} - * @memberof UpdateBoardTitleParams - */ - 'title': string; -} -/** - * - * @export - * @interface UpdateElementContentBodyParams - */ -export interface UpdateElementContentBodyParams { - /** - * - * @type {UpdateElementContentBodyParamsData} - * @memberof UpdateElementContentBodyParams - */ - 'data': UpdateElementContentBodyParamsData; -} -/** - * @type UpdateElementContentBodyParamsData - * @export - */ -export type UpdateElementContentBodyParamsData = DrawingElementContentBody | ExternalToolElementContentBody | FileElementContentBody | LinkElementContentBody | RichTextElementContentBody | SubmissionContainerElementContentBody; - -/** - * - * @export - * @interface UpdateFlagParams - */ -export interface UpdateFlagParams { - /** - * updates flag for an import user - * @type {boolean} - * @memberof UpdateFlagParams - */ - 'flagged': boolean; -} -/** - * - * @export - * @interface UpdateMatchParams - */ -export interface UpdateMatchParams { - /** - * updates local user reference for an import user - * @type {string} - * @memberof UpdateMatchParams - */ - 'userId': string; -} -/** - * - * @export - * @interface UpdateNewsParams - */ -export interface UpdateNewsParams { - /** - * Title of the News entity - * @type {string} - * @memberof UpdateNewsParams - */ - 'title'?: string; - /** - * Content of the News entity - * @type {string} - * @memberof UpdateNewsParams - */ - 'content'?: string; - /** - * The point in time from when the News entity schould be displayed - * @type {string} - * @memberof UpdateNewsParams - */ - 'displayAt'?: string; -} -/** - * - * @export - * @interface UpdateSubmissionItemBodyParams - */ -export interface UpdateSubmissionItemBodyParams { - /** - * Boolean indicating whether the submission is completed. - * @type {boolean} - * @memberof UpdateSubmissionItemBodyParams - */ - 'completed': boolean; -} -/** - * - * @export - * @interface UserConsentResponse - */ -export interface UserConsentResponse { - /** - * - * @type {string} - * @memberof UserConsentResponse - */ - 'form': string; - /** - * - * @type {boolean} - * @memberof UserConsentResponse - */ - 'privacyConsent': boolean; - /** - * - * @type {boolean} - * @memberof UserConsentResponse - */ - 'termsOfUseConsent': boolean; - /** - * - * @type {string} - * @memberof UserConsentResponse - */ - 'dateOfPrivacyConsent': string; - /** - * - * @type {string} - * @memberof UserConsentResponse - */ - 'dateOfTermsOfUseConsent': string; -} -/** - * - * @export - * @interface UserDataResponse - */ -export interface UserDataResponse { - /** - * - * @type {string} - * @memberof UserDataResponse - */ - 'firstName': string; - /** - * - * @type {string} - * @memberof UserDataResponse - */ - 'lastName': string; - /** - * - * @type {string} - * @memberof UserDataResponse - */ - 'userId': string; -} -/** - * - * @export - * @interface UserInfoResponse - */ -export interface UserInfoResponse { - /** - * The id of the User entity - * @type {string} - * @memberof UserInfoResponse - */ - 'id': string; - /** - * First name of the user - * @type {string} - * @memberof UserInfoResponse - */ - 'firstName'?: string; - /** - * Last name of the user - * @type {string} - * @memberof UserInfoResponse - */ - 'lastName'?: string; -} -/** - * - * @export - * @interface UserListResponse - */ -export interface UserListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof UserListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof UserListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof UserListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof UserListResponse - */ - 'limit': number; -} -/** - * - * @export - * @interface UserLoginMigrationMandatoryParams - */ -export interface UserLoginMigrationMandatoryParams { - /** - * - * @type {boolean} - * @memberof UserLoginMigrationMandatoryParams - */ - 'mandatory': boolean; -} -/** - * - * @export - * @interface UserLoginMigrationResponse - */ -export interface UserLoginMigrationResponse { - /** - * Id of the migration - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'id': string; - /** - * Id of the system which is the origin of the migration - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'sourceSystemId'?: string; - /** - * Id of the system which is the target of the migration - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'targetSystemId': string; - /** - * Date when the migration was marked as required - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'mandatorySince'?: string; - /** - * Date when the migration was started - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'startedAt': string; - /** - * Date when the migration was completed - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'closedAt'?: string; - /** - * Date when the migration was completed including the grace period - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'finishedAt'?: string; -} -/** - * - * @export - * @interface UserLoginMigrationSearchListResponse - */ -export interface UserLoginMigrationSearchListResponse { - /** - * Contains user login migration responses - * @type {Array} - * @memberof UserLoginMigrationSearchListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof UserLoginMigrationSearchListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof UserLoginMigrationSearchListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof UserLoginMigrationSearchListResponse - */ - 'limit': number; -} -/** - * - * @export - * @interface UserMatchListResponse - */ -export interface UserMatchListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof UserMatchListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof UserMatchListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof UserMatchListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof UserMatchListResponse - */ - 'limit': number; -} -/** - * - * @export - * @interface UserMatchResponse - */ -export interface UserMatchResponse { - /** - * local user id - * @type {string} - * @memberof UserMatchResponse - */ - 'userId': string; - /** - * login name of local user - * @type {string} - * @memberof UserMatchResponse - */ - 'loginName': string; - /** - * firstname of local user - * @type {string} - * @memberof UserMatchResponse - */ - 'firstName': string; - /** - * lastname of local user - * @type {string} - * @memberof UserMatchResponse - */ - 'lastName': string; - /** - * list of user roles from external system: student, teacher, admin - * @type {Array} - * @memberof UserMatchResponse - */ - 'roleNames': Array; - /** - * match type: admin (manual) or auto (set, when names match exactly for a single user - * @type {string} - * @memberof UserMatchResponse - */ - 'matchedBy'?: UserMatchResponseMatchedByEnum; -} - -export const UserMatchResponseRoleNamesEnum = { - Student: 'student', - Teacher: 'teacher', - Admin: 'admin' -} as const; - -export type UserMatchResponseRoleNamesEnum = typeof UserMatchResponseRoleNamesEnum[keyof typeof UserMatchResponseRoleNamesEnum]; -export const UserMatchResponseMatchedByEnum = { - Auto: 'auto', - Admin: 'admin' -} as const; - -export type UserMatchResponseMatchedByEnum = typeof UserMatchResponseMatchedByEnum[keyof typeof UserMatchResponseMatchedByEnum]; - -/** - * - * @export - * @interface UserResponse - */ -export interface UserResponse { - /** - * - * @type {string} - * @memberof UserResponse - */ - '_id': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'firstName': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'lastName': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'email': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'createdAt': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'birthday': string; - /** - * - * @type {object} - * @memberof UserResponse - */ - 'preferences': object; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'consentStatus': string; - /** - * - * @type {ConsentsResponse} - * @memberof UserResponse - */ - 'consent': ConsentsResponse; - /** - * - * @type {Array} - * @memberof UserResponse - */ - 'classes': Array; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'importHash': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'lastLoginSystemChange': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'outdatedSince': string; -} -/** - * - * @export - * @interface ValidationError - */ -export interface ValidationError { - /** - * The response status code. - * @type {number} - * @memberof ValidationError - */ - 'code': number; - /** - * The error type. - * @type {string} - * @memberof ValidationError - */ - 'type': string; - /** - * The error title. - * @type {string} - * @memberof ValidationError - */ - 'title': string; - /** - * The error message. - * @type {string} - * @memberof ValidationError - */ - 'message': string; - /** - * The error details. - * @type {object} - * @memberof ValidationError - */ - 'details'?: object; -} -/** - * - * @export - * @interface VideoConferenceCreateParams - */ -export interface VideoConferenceCreateParams { - /** - * - * @type {boolean} - * @memberof VideoConferenceCreateParams - */ - 'everyAttendeeJoinsMuted'?: boolean; - /** - * - * @type {boolean} - * @memberof VideoConferenceCreateParams - */ - 'everybodyJoinsAsModerator'?: boolean; - /** - * - * @type {boolean} - * @memberof VideoConferenceCreateParams - */ - 'moderatorMustApproveJoinRequests'?: boolean; - /** - * The URL that the BigBlueButton client will go to after users click the OK button on the ‘You have been logged out’ or ’This session was ended’ message. Has to be a URL from the same domain that the conference is started from. - * @type {string} - * @memberof VideoConferenceCreateParams - */ - 'logoutUrl'?: string; -} -/** - * - * @export - * @interface VideoConferenceInfoResponse - */ -export interface VideoConferenceInfoResponse { - /** - * - * @type {VideoConferenceStateResponse} - * @memberof VideoConferenceInfoResponse - */ - 'state': VideoConferenceStateResponse; - /** - * The options for the video conference. - * @type {VideoConferenceOptionsResponse} - * @memberof VideoConferenceInfoResponse - */ - 'options': VideoConferenceOptionsResponse; -} - - -/** - * - * @export - * @interface VideoConferenceJoinResponse - */ -export interface VideoConferenceJoinResponse { - /** - * The URL to join the video conference. - * @type {string} - * @memberof VideoConferenceJoinResponse - */ - 'url': string; -} -/** - * - * @export - * @interface VideoConferenceOptionsResponse - */ -export interface VideoConferenceOptionsResponse { - /** - * Every attendee joins muted - * @type {boolean} - * @memberof VideoConferenceOptionsResponse - */ - 'everyAttendeeJoinsMuted': boolean; - /** - * Every attendee joins as a moderator - * @type {boolean} - * @memberof VideoConferenceOptionsResponse - */ - 'everybodyJoinsAsModerator': boolean; - /** - * Moderator must approve join requests - * @type {boolean} - * @memberof VideoConferenceOptionsResponse - */ - 'moderatorMustApproveJoinRequests': boolean; -} -/** - * - * @export - * @enum {string} - */ - -export const VideoConferenceScope = { - Course: 'course', - Event: 'event' -} as const; - -export type VideoConferenceScope = typeof VideoConferenceScope[keyof typeof VideoConferenceScope]; - - -/** - * - * @export - * @enum {string} - */ - -export const VideoConferenceStateResponse = { - NotStarted: 'NOT_STARTED', - Running: 'RUNNING', - Finished: 'FINISHED' -} as const; - -export type VideoConferenceStateResponse = typeof VideoConferenceStateResponse[keyof typeof VideoConferenceStateResponse]; - - -/** - * - * @export - * @interface VisibilityBodyParams - */ -export interface VisibilityBodyParams { - /** - * - * @type {boolean} - * @memberof VisibilityBodyParams - */ - 'isVisible': boolean; -} -/** - * - * @export - * @interface VisibilitySettingsResponse - */ -export interface VisibilitySettingsResponse { - /** - * - * @type {string} - * @memberof VisibilitySettingsResponse - */ - 'publishedAt'?: string; -} -/** - * - * @export - * @interface YearsResponse - */ -export interface YearsResponse { - /** - * - * @type {Array} - * @memberof YearsResponse - */ - 'schoolYears': Array; - /** - * - * @type {SchoolYearResponse} - * @memberof YearsResponse - */ - 'activeYear': SchoolYearResponse; - /** - * - * @type {SchoolYearResponse} - * @memberof YearsResponse - */ - 'lastYear': SchoolYearResponse; - /** - * - * @type {SchoolYearResponse} - * @memberof YearsResponse - */ - 'nextYear': SchoolYearResponse; -} - -/** - * AuthorizationApi - axios parameter creator - * @export - */ -export const AuthorizationApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Checks if user is authorized to perform the given operation. - * @param {AuthorizationBodyParams} authorizationBodyParams - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - authorizationReferenceControllerAuthorizeByReference: async (authorizationBodyParams: AuthorizationBodyParams, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'authorizationBodyParams' is not null or undefined - assertParamExists('authorizationReferenceControllerAuthorizeByReference', 'authorizationBodyParams', authorizationBodyParams) - const localVarPath = `/authorization/by-reference`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication bearer required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(authorizationBodyParams, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * AuthorizationApi - functional programming interface - * @export - */ -export const AuthorizationApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = AuthorizationApiAxiosParamCreator(configuration) - return { - /** - * - * @summary Checks if user is authorized to perform the given operation. - * @param {AuthorizationBodyParams} authorizationBodyParams - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams: AuthorizationBodyParams, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams, options); - const localVarOperationServerIndex = configuration?.serverIndex ?? 0; - const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authorizationReferenceControllerAuthorizeByReference']?.[localVarOperationServerIndex]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); - }, - } -}; - -/** - * AuthorizationApi - factory interface - * @export - */ -export const AuthorizationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = AuthorizationApiFp(configuration) - return { - /** - * - * @summary Checks if user is authorized to perform the given operation. - * @param {AuthorizationBodyParams} authorizationBodyParams - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams: AuthorizationBodyParams, options?: any): AxiosPromise { - return localVarFp.authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * AuthorizationApi - object-oriented interface - * @export - * @class AuthorizationApi - * @extends {BaseAPI} - */ -export class AuthorizationApi extends BaseAPI { - /** - * - * @summary Checks if user is authorized to perform the given operation. - * @param {AuthorizationBodyParams} authorizationBodyParams - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthorizationApi - */ - public authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams: AuthorizationBodyParams, options?: RawAxiosRequestConfig) { - return AuthorizationApiFp(this.configuration).authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams, options).then((request) => request(this.axios, this.basePath)); - } -} - +export * from './api/authorization-api'; diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/api/authorization-api.ts b/apps/server/src/infra/authorization-client/authorization-api-client/api/authorization-api.ts new file mode 100644 index 00000000000..adf2db910e7 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/api/authorization-api.ts @@ -0,0 +1,159 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { ApiValidationError } from '../models'; +// @ts-ignore +import type { AuthorizationBodyParams } from '../models'; +// @ts-ignore +import type { AuthorizedReponse } from '../models'; +/** + * AuthorizationApi - axios parameter creator + * @export + */ +export const AuthorizationApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Checks if user is authorized to perform the given operation. + * @param {AuthorizationBodyParams} authorizationBodyParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authorizationReferenceControllerAuthorizeByReference: async (authorizationBodyParams: AuthorizationBodyParams, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'authorizationBodyParams' is not null or undefined + assertParamExists('authorizationReferenceControllerAuthorizeByReference', 'authorizationBodyParams', authorizationBodyParams) + const localVarPath = `/authorization/by-reference`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(authorizationBodyParams, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * AuthorizationApi - functional programming interface + * @export + */ +export const AuthorizationApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = AuthorizationApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Checks if user is authorized to perform the given operation. + * @param {AuthorizationBodyParams} authorizationBodyParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams: AuthorizationBodyParams, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorizationApi.authorizationReferenceControllerAuthorizeByReference']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * AuthorizationApi - factory interface + * @export + */ +export const AuthorizationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = AuthorizationApiFp(configuration) + return { + /** + * + * @summary Checks if user is authorized to perform the given operation. + * @param {AuthorizationBodyParams} authorizationBodyParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams: AuthorizationBodyParams, options?: any): AxiosPromise { + return localVarFp.authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * AuthorizationApi - interface + * @export + * @interface AuthorizationApi + */ +export interface AuthorizationApiInterface { + /** + * + * @summary Checks if user is authorized to perform the given operation. + * @param {AuthorizationBodyParams} authorizationBodyParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthorizationApiInterface + */ + authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams: AuthorizationBodyParams, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * AuthorizationApi - object-oriented interface + * @export + * @class AuthorizationApi + * @extends {BaseAPI} + */ +export class AuthorizationApi extends BaseAPI implements AuthorizationApiInterface { + /** + * + * @summary Checks if user is authorized to perform the given operation. + * @param {AuthorizationBodyParams} authorizationBodyParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthorizationApi + */ + public authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams: AuthorizationBodyParams, options?: RawAxiosRequestConfig) { + return AuthorizationApiFp(this.configuration).authorizationReferenceControllerAuthorizeByReference(authorizationBodyParams, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/index.ts b/apps/server/src/infra/authorization-client/authorization-api-client/index.ts index de68565fde0..9ba67e6bce2 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/index.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/index.ts @@ -15,4 +15,4 @@ export * from "./api"; export * from "./configuration"; - +export * from "./models"; diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/account-by-id-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/account-by-id-body-params.ts new file mode 100644 index 00000000000..beccd223f8d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/account-by-id-body-params.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface AccountByIdBodyParams + */ +export interface AccountByIdBodyParams { + /** + * The new user name for the user. + * @type {string} + * @memberof AccountByIdBodyParams + */ + 'username'?: string | null; + /** + * The new password for the user. + * @type {string} + * @memberof AccountByIdBodyParams + */ + 'password'?: string | null; + /** + * The new activation state of the user. + * @type {boolean} + * @memberof AccountByIdBodyParams + */ + 'activated'?: boolean | null; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/account-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/account-response.ts new file mode 100644 index 00000000000..5bdc249fbdd --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/account-response.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface AccountResponse + */ +export interface AccountResponse { + /** + * + * @type {string} + * @memberof AccountResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof AccountResponse + */ + 'username': string; + /** + * + * @type {string} + * @memberof AccountResponse + */ + 'userId': string; + /** + * + * @type {boolean} + * @memberof AccountResponse + */ + 'activated': boolean; + /** + * + * @type {string} + * @memberof AccountResponse + */ + 'updatedAt': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/account-search-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/account-search-list-response.ts new file mode 100644 index 00000000000..f13242181c8 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/account-search-list-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { AccountResponse } from './account-response'; + +/** + * + * @export + * @interface AccountSearchListResponse + */ +export interface AccountSearchListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof AccountSearchListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof AccountSearchListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof AccountSearchListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof AccountSearchListResponse + */ + 'limit': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/action.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/action.ts new file mode 100644 index 00000000000..7c03adfc6a2 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/action.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const Action = { + READ: 'read', + WRITE: 'write' +} as const; + +export type Action = typeof Action[keyof typeof Action]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/alert-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/alert-response.ts new file mode 100644 index 00000000000..eaa35b3eafe --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/alert-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Message } from './message'; + +/** + * + * @export + * @interface AlertResponse + */ +export interface AlertResponse { + /** + * + * @type {Array} + * @memberof AlertResponse + */ + 'data': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/api-validation-error.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/api-validation-error.ts new file mode 100644 index 00000000000..d5d948fc5f7 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/api-validation-error.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ApiValidationError + */ +export interface ApiValidationError { + /** + * The response status code. + * @type {number} + * @memberof ApiValidationError + */ + 'code': number; + /** + * The error type. + * @type {string} + * @memberof ApiValidationError + */ + 'type': string; + /** + * The error title. + * @type {string} + * @memberof ApiValidationError + */ + 'title': string; + /** + * The error message. + * @type {string} + * @memberof ApiValidationError + */ + 'message': string; + /** + * The error details. + * @type {object} + * @memberof ApiValidationError + */ + 'details'?: object; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-body-params.ts new file mode 100644 index 00000000000..806b7999505 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-body-params.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { AuthorizationContextParams } from './authorization-context-params'; + +/** + * + * @export + * @interface AuthorizationBodyParams + */ +export interface AuthorizationBodyParams { + /** + * + * @type {AuthorizationContextParams} + * @memberof AuthorizationBodyParams + */ + 'context': AuthorizationContextParams; + /** + * The entity or domain object the operation should be performed on. + * @type {string} + * @memberof AuthorizationBodyParams + */ + 'referenceType': AuthorizationBodyParamsReferenceType; + /** + * The id of the entity/domain object of the defined referenceType. + * @type {string} + * @memberof AuthorizationBodyParams + */ + 'referenceId': string; +} + +export const AuthorizationBodyParamsReferenceType = { + USERS: 'users', + SCHOOLS: 'schools', + COURSES: 'courses', + COURSEGROUPS: 'coursegroups', + TASKS: 'tasks', + LESSONS: 'lessons', + TEAMS: 'teams', + SUBMISSIONS: 'submissions', + SCHOOL_EXTERNAL_TOOLS: 'school-external-tools', + BOARDNODES: 'boardnodes', + CONTEXT_EXTERNAL_TOOLS: 'context-external-tools' +} as const; + +export type AuthorizationBodyParamsReferenceType = typeof AuthorizationBodyParamsReferenceType[keyof typeof AuthorizationBodyParamsReferenceType]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-context-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-context-params.ts new file mode 100644 index 00000000000..c4b8d3b77ad --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-context-params.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Action } from './action'; +// May contain unused imports in some cases +// @ts-ignore +import type { Permission } from './permission'; + +/** + * + * @export + * @interface AuthorizationContextParams + */ +export interface AuthorizationContextParams { + /** + * + * @type {Action} + * @memberof AuthorizationContextParams + */ + 'action': Action; + /** + * User permissions that are needed to execute the operation. + * @type {Array} + * @memberof AuthorizationContextParams + */ + 'requiredPermissions': Array; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/authorized-reponse.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/authorized-reponse.ts new file mode 100644 index 00000000000..2b764e092bc --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/authorized-reponse.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface AuthorizedReponse + */ +export interface AuthorizedReponse { + /** + * + * @type {string} + * @memberof AuthorizedReponse + */ + 'userId': string; + /** + * + * @type {boolean} + * @memberof AuthorizedReponse + */ + 'isAuthorized': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/basic-tool-config-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/basic-tool-config-params.ts new file mode 100644 index 00000000000..42546789c38 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/basic-tool-config-params.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface BasicToolConfigParams + */ +export interface BasicToolConfigParams { + /** + * + * @type {string} + * @memberof BasicToolConfigParams + */ + 'type': string; + /** + * + * @type {string} + * @memberof BasicToolConfigParams + */ + 'baseUrl': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-context-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-context-response.ts new file mode 100644 index 00000000000..1ae652ec113 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-context-response.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { BoardExternalReferenceType } from './board-external-reference-type'; + +/** + * + * @export + * @interface BoardContextResponse + */ +export interface BoardContextResponse { + /** + * + * @type {string} + * @memberof BoardContextResponse + */ + 'id': string; + /** + * + * @type {BoardExternalReferenceType} + * @memberof BoardContextResponse + */ + 'type': BoardExternalReferenceType; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-element-response.ts new file mode 100644 index 00000000000..7137c3b411a --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-element-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface BoardElementResponse + */ +export interface BoardElementResponse { + /** + * the type of the element in the content. For possible types, please refer to the enum + * @type {string} + * @memberof BoardElementResponse + */ + 'type': BoardElementResponseType; + /** + * Content of the Board, either: a task or a lesson specific for the board + * @type {object} + * @memberof BoardElementResponse + */ + 'content': object; +} + +export const BoardElementResponseType = { + TASK: 'task', + LESSON: 'lesson', + COLUMN_BOARD: 'column-board' +} as const; + +export type BoardElementResponseType = typeof BoardElementResponseType[keyof typeof BoardElementResponseType]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-external-reference-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-external-reference-type.ts new file mode 100644 index 00000000000..10544700101 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-external-reference-type.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const BoardExternalReferenceType = { + COURSE: 'course', + USER: 'user' +} as const; + +export type BoardExternalReferenceType = typeof BoardExternalReferenceType[keyof typeof BoardExternalReferenceType]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-layout.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-layout.ts new file mode 100644 index 00000000000..ebd6867af7f --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-layout.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const BoardLayout = { + COLUMNS: 'columns', + LIST: 'list' +} as const; + +export type BoardLayout = typeof BoardLayout[keyof typeof BoardLayout]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-parent-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-parent-type.ts new file mode 100644 index 00000000000..4498c9702b4 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-parent-type.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const BoardParentType = { + COURSE: 'course', + USER: 'user' +} as const; + +export type BoardParentType = typeof BoardParentType[keyof typeof BoardParentType]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-response.ts new file mode 100644 index 00000000000..0b1d6b29a60 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-response.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ColumnResponse } from './column-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface BoardResponse + */ +export interface BoardResponse { + /** + * + * @type {string} + * @memberof BoardResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof BoardResponse + */ + 'title': string; + /** + * + * @type {Array} + * @memberof BoardResponse + */ + 'columns': Array; + /** + * + * @type {TimestampsResponse} + * @memberof BoardResponse + */ + 'timestamps': TimestampsResponse; + /** + * + * @type {boolean} + * @memberof BoardResponse + */ + 'isVisible': boolean; + /** + * + * @type {string} + * @memberof BoardResponse + */ + 'layout': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-submission-controller-create-element201-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-submission-controller-create-element201-response.ts new file mode 100644 index 00000000000..2e5c5268ac6 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-submission-controller-create-element201-response.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { FileElementContent } from './file-element-content'; +// May contain unused imports in some cases +// @ts-ignore +import type { FileElementResponse } from './file-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { RichTextElementResponse } from './rich-text-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * @type BoardSubmissionControllerCreateElement201Response + * @export + */ +export type BoardSubmissionControllerCreateElement201Response = FileElementResponse | RichTextElementResponse; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-controller-create-element201-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-controller-create-element201-response.ts new file mode 100644 index 00000000000..527db1e9adf --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-controller-create-element201-response.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { DrawingElementContent } from './drawing-element-content'; +// May contain unused imports in some cases +// @ts-ignore +import type { DrawingElementResponse } from './drawing-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolElementResponse } from './external-tool-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { FileElementResponse } from './file-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { LinkElementResponse } from './link-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { RichTextElementResponse } from './rich-text-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { SubmissionContainerElementResponse } from './submission-container-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * @type CardControllerCreateElement201Response + * @export + */ +export type CardControllerCreateElement201Response = DrawingElementResponse | ExternalToolElementResponse | FileElementResponse | LinkElementResponse | RichTextElementResponse | SubmissionContainerElementResponse; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-list-response.ts new file mode 100644 index 00000000000..1e51d6278ee --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-list-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CardResponse } from './card-response'; + +/** + * + * @export + * @interface CardListResponse + */ +export interface CardListResponse { + /** + * + * @type {Array} + * @memberof CardListResponse + */ + 'data': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-response-elements-inner.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-response-elements-inner.ts new file mode 100644 index 00000000000..66bfc786f9c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-response-elements-inner.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CollaborativeTextEditorElementResponse } from './collaborative-text-editor-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { DrawingElementResponse } from './drawing-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolElementResponse } from './external-tool-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { FileElementResponse } from './file-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { LinkElementResponse } from './link-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { RichTextElementResponse } from './rich-text-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { SubmissionContainerElementResponse } from './submission-container-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * @type CardResponseElementsInner + * @export + */ +export type CardResponseElementsInner = CollaborativeTextEditorElementResponse | DrawingElementResponse | ExternalToolElementResponse | FileElementResponse | LinkElementResponse | RichTextElementResponse | SubmissionContainerElementResponse; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-response.ts new file mode 100644 index 00000000000..95d90a38a6e --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-response.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CardResponseElementsInner } from './card-response-elements-inner'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { VisibilitySettingsResponse } from './visibility-settings-response'; + +/** + * + * @export + * @interface CardResponse + */ +export interface CardResponse { + /** + * + * @type {string} + * @memberof CardResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof CardResponse + */ + 'title'?: string; + /** + * + * @type {number} + * @memberof CardResponse + */ + 'height': number; + /** + * + * @type {Array} + * @memberof CardResponse + */ + 'elements': Array; + /** + * + * @type {VisibilitySettingsResponse} + * @memberof CardResponse + */ + 'visibilitySettings': VisibilitySettingsResponse; + /** + * + * @type {TimestampsResponse} + * @memberof CardResponse + */ + 'timestamps': TimestampsResponse; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-skeleton-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-skeleton-response.ts new file mode 100644 index 00000000000..07ce117d677 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-skeleton-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CardSkeletonResponse + */ +export interface CardSkeletonResponse { + /** + * + * @type {string} + * @memberof CardSkeletonResponse + */ + 'cardId': string; + /** + * The approximate height of the referenced card. Intended to be used for prerendering purposes. Note, that different devices can lead to this value not being precise + * @type {number} + * @memberof CardSkeletonResponse + */ + 'height': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/change-language-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/change-language-params.ts new file mode 100644 index 00000000000..6fda6164735 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/change-language-params.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LanguageType } from './language-type'; + +/** + * + * @export + * @interface ChangeLanguageParams + */ +export interface ChangeLanguageParams { + /** + * + * @type {LanguageType} + * @memberof ChangeLanguageParams + */ + 'language': LanguageType; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-response.ts new file mode 100644 index 00000000000..25a096f0c99 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-response.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CourseInfoResponse } from './course-info-response'; + +/** + * + * @export + * @interface ClassInfoResponse + */ +export interface ClassInfoResponse { + /** + * + * @type {string} + * @memberof ClassInfoResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof ClassInfoResponse + */ + 'type': ClassInfoResponseType; + /** + * + * @type {string} + * @memberof ClassInfoResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof ClassInfoResponse + */ + 'externalSourceName'?: string; + /** + * + * @type {Array} + * @memberof ClassInfoResponse + */ + 'teacherNames': Array; + /** + * + * @type {string} + * @memberof ClassInfoResponse + */ + 'schoolYear'?: string; + /** + * + * @type {boolean} + * @memberof ClassInfoResponse + */ + 'isUpgradable'?: boolean; + /** + * + * @type {number} + * @memberof ClassInfoResponse + */ + 'studentCount': number; + /** + * + * @type {Array} + * @memberof ClassInfoResponse + */ + 'synchronizedCourses'?: Array; +} + +export const ClassInfoResponseType = { + CLASS: 'class', + GROUP: 'group' +} as const; + +export type ClassInfoResponseType = typeof ClassInfoResponseType[keyof typeof ClassInfoResponseType]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-search-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-search-list-response.ts new file mode 100644 index 00000000000..2523d2f6d37 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-search-list-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ClassInfoResponse } from './class-info-response'; + +/** + * + * @export + * @interface ClassInfoSearchListResponse + */ +export interface ClassInfoSearchListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof ClassInfoSearchListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof ClassInfoSearchListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof ClassInfoSearchListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof ClassInfoSearchListResponse + */ + 'limit': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-request-context.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-request-context.ts new file mode 100644 index 00000000000..485a0f25dcd --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-request-context.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const ClassRequestContext = { + COURSE: 'course', + CLASS_OVERVIEW: 'class-overview' +} as const; + +export type ClassRequestContext = typeof ClassRequestContext[keyof typeof ClassRequestContext]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-response.ts new file mode 100644 index 00000000000..3212753a06d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ClassResponse + */ +export interface ClassResponse { + /** + * + * @type {string} + * @memberof ClassResponse + */ + 'name': string; + /** + * + * @type {number} + * @memberof ClassResponse + */ + 'gradeLevel': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-sort-by.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-sort-by.ts new file mode 100644 index 00000000000..ffae3ca02f4 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-sort-by.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const ClassSortBy = { + NAME: 'name', + EXTERNAL_SOURCE_NAME: 'externalSourceName', + SYNCHRONIZED_COURSES: 'synchronizedCourses', + STUDENT_COUNT: 'studentCount', + TEACHER_NAMES: 'teacherNames' +} as const; + +export type ClassSortBy = typeof ClassSortBy[keyof typeof ClassSortBy]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-element-response.ts new file mode 100644 index 00000000000..57e4c49312c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-element-response.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface CollaborativeTextEditorElementResponse + */ +export interface CollaborativeTextEditorElementResponse { + /** + * + * @type {string} + * @memberof CollaborativeTextEditorElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof CollaborativeTextEditorElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {TimestampsResponse} + * @memberof CollaborativeTextEditorElementResponse + */ + 'timestamps': TimestampsResponse; + /** + * + * @type {object} + * @memberof CollaborativeTextEditorElementResponse + */ + 'content': object; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-parent-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-parent-type.ts new file mode 100644 index 00000000000..22228c320ba --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-parent-type.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const CollaborativeTextEditorParentType = { + CONTENT_ELEMENT: 'content-element' +} as const; + +export type CollaborativeTextEditorParentType = typeof CollaborativeTextEditorParentType[keyof typeof CollaborativeTextEditorParentType]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-response.ts new file mode 100644 index 00000000000..fd4dd7d6018 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CollaborativeTextEditorResponse + */ +export interface CollaborativeTextEditorResponse { + /** + * + * @type {string} + * @memberof CollaborativeTextEditorResponse + */ + 'url': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/collapsable-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/collapsable-body-params.ts new file mode 100644 index 00000000000..ce3e5b2297f --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/collapsable-body-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CollapsableBodyParams + */ +export interface CollapsableBodyParams { + /** + * + * @type {boolean} + * @memberof CollapsableBodyParams + */ + 'collapsed': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/color-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/color-body-params.ts new file mode 100644 index 00000000000..68626305f9e --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/color-body-params.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MediaBoardColors } from './media-board-colors'; + +/** + * + * @export + * @interface ColorBodyParams + */ +export interface ColorBodyParams { + /** + * + * @type {MediaBoardColors} + * @memberof ColorBodyParams + */ + 'backgroundColor': MediaBoardColors; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/column-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/column-response.ts new file mode 100644 index 00000000000..b34180767e4 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/column-response.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CardSkeletonResponse } from './card-skeleton-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface ColumnResponse + */ +export interface ColumnResponse { + /** + * + * @type {string} + * @memberof ColumnResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof ColumnResponse + */ + 'title': string; + /** + * + * @type {Array} + * @memberof ColumnResponse + */ + 'cards': Array; + /** + * + * @type {TimestampsResponse} + * @memberof ColumnResponse + */ + 'timestamps': TimestampsResponse; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/config-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/config-response.ts new file mode 100644 index 00000000000..4123a55bbaa --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/config-response.ts @@ -0,0 +1,431 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LanguageType } from './language-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { SchulcloudTheme } from './schulcloud-theme'; +// May contain unused imports in some cases +// @ts-ignore +import type { Timezone } from './timezone'; + +/** + * + * @export + * @interface ConfigResponse + */ +export interface ConfigResponse { + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'ACCESSIBILITY_REPORT_EMAIL': string; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_NEW_SCHOOL_ADMINISTRATION_PAGE_AS_DEFAULT_ENABLED': boolean; + /** + * + * @type {number} + * @memberof ConfigResponse + */ + 'MIGRATION_END_GRACE_PERIOD_MS': number; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_CTL_TOOLS_TAB_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_LTI_TOOLS_TAB_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SHOW_OUTDATED_USERS': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_ENABLE_LDAP_SYNC_DURING_MIGRATION': boolean; + /** + * + * @type {number} + * @memberof ConfigResponse + */ + 'CTL_TOOLS_RELOAD_TIME_MS': number; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SHOW_NEW_CLASS_VIEW_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_CTL_TOOLS_COPY_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SHOW_MIGRATION_WIZARD': boolean; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'MIGRATION_WIZARD_DOCUMENTATION_LINK'?: string; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_TLDRAW_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'TLDRAW__ASSETS_ENABLED': boolean; + /** + * + * @type {number} + * @memberof ConfigResponse + */ + 'TLDRAW__ASSETS_MAX_SIZE': number; + /** + * + * @type {Array} + * @memberof ConfigResponse + */ + 'TLDRAW__ASSETS_ALLOWED_MIME_TYPES_LIST': Array; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'ADMIN_TABLES_DISPLAY_CONSENT_COLUMN': boolean; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'ALERT_STATUS_URL': string | null; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_ES_COLLECTIONS_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_EXTENSIONS_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_TEAMS_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_LERNSTORE_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_ADMIN_TOGGLE_STUDENT_LERNSTORE_VIEW_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'TEACHER_STUDENT_VISIBILITY__IS_CONFIGURABLE': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'TEACHER_STUDENT_VISIBILITY__IS_ENABLED_BY_DEFAULT': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'TEACHER_STUDENT_VISIBILITY__IS_VISIBLE': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SCHOOL_POLICY_ENABLED_NEW': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SCHOOL_TERMS_OF_USE_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_NEXBOARD_COPY_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_VIDEOCONFERENCE_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_SUBMISSIONS_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_COLLABORATIVE_TEXT_EDITOR_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_LINK_ELEMENT_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_EXTERNAL_TOOLS_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_SHARE': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COLUMN_BOARD_SOCKET_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COURSE_SHARE': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_LOGIN_LINK_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_LESSON_SHARE': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_TASK_SHARE': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_BOARD_LAYOUT_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_USER_MIGRATION_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COPY_SERVICE_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_CONSENT_NECESSARY': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COMMON_CARTRIDGE_COURSE_EXPORT_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_COMMON_CARTRIDGE_COURSE_IMPORT_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SCHOOL_SANIS_USER_MIGRATION_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SCHULCONNEX_COURSE_SYNC_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_ALLOW_INSECURE_LDAP_URL_ENABLED': boolean; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'GHOST_BASE_URL': string; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'ROCKETCHAT_SERVICE_ENABLED': boolean; + /** + * + * @type {Array} + * @memberof ConfigResponse + */ + 'I18N__AVAILABLE_LANGUAGES': Array; + /** + * + * @type {LanguageType} + * @memberof ConfigResponse + */ + 'I18N__DEFAULT_LANGUAGE': LanguageType; + /** + * + * @type {LanguageType} + * @memberof ConfigResponse + */ + 'I18N__FALLBACK_LANGUAGE': LanguageType; + /** + * + * @type {Timezone} + * @memberof ConfigResponse + */ + 'I18N__DEFAULT_TIMEZONE': Timezone; + /** + * + * @type {number} + * @memberof ConfigResponse + */ + 'JWT_SHOW_TIMEOUT_WARNING_SECONDS': number; + /** + * + * @type {number} + * @memberof ConfigResponse + */ + 'JWT_TIMEOUT_SECONDS': number; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'NOT_AUTHENTICATED_REDIRECT_URL': string; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'DOCUMENT_BASE_DIR': string; + /** + * + * @type {SchulcloudTheme} + * @memberof ConfigResponse + */ + 'SC_THEME': SchulcloudTheme; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'SC_TITLE': string; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_MEDIA_SHELF_ENABLED': boolean; + /** + * + * @type {string} + * @memberof ConfigResponse + */ + 'BOARD_COLLABORATION_URI': string; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_NEW_LAYOUT_ENABLED': boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + 'FEATURE_SCHULCONNEX_MEDIA_LICENSE_ENABLED': boolean; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-request-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-request-body.ts new file mode 100644 index 00000000000..4f19f9445f8 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-request-body.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ConsentRequestBody + */ +export interface ConsentRequestBody { + /** + * The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to request_denied. + * @type {string} + * @memberof ConsentRequestBody + */ + 'error'?: string; + /** + * Debug contains information to help resolve the problem as a developer. Usually not exposed to the public but only in the server logs. + * @type {string} + * @memberof ConsentRequestBody + */ + 'error_debug'?: string; + /** + * Description of the error in a human readable format. + * @type {string} + * @memberof ConsentRequestBody + */ + 'error_description'?: string; + /** + * Hint to help resolve the error. + * @type {string} + * @memberof ConsentRequestBody + */ + 'error_hint'?: string; + /** + * Represents the HTTP status code of the error (e.g. 401 or 403). Defaults to 400. + * @type {number} + * @memberof ConsentRequestBody + */ + 'status_code'?: number; + /** + * The Oauth2 client id. + * @type {Array} + * @memberof ConsentRequestBody + */ + 'grant_scope'?: Array; + /** + * Remember, if set to true, tells the oauth provider to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. + * @type {boolean} + * @memberof ConsentRequestBody + */ + 'remember'?: boolean; + /** + * RememberFor sets how long the consent authorization should be remembered for in seconds. If set to 0, the authorization will be remembered indefinitely. + * @type {number} + * @memberof ConsentRequestBody + */ + 'remember_for'?: number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-response.ts new file mode 100644 index 00000000000..65e6d34eef0 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-response.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { OauthClientResponse } from './oauth-client-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { OidcContextResponse } from './oidc-context-response'; + +/** + * + * @export + * @interface ConsentResponse + */ +export interface ConsentResponse { + /** + * ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session + * @type {string} + * @memberof ConsentResponse + */ + 'acr': string; + /** + * + * @type {Array} + * @memberof ConsentResponse + */ + 'amr'?: Array; + /** + * Is the id/authorization challenge of the consent authorization request. It is used to identify the session. + * @type {object} + * @memberof ConsentResponse + */ + 'challenge': object; + /** + * + * @type {OauthClientResponse} + * @memberof ConsentResponse + */ + 'client': OauthClientResponse; + /** + * + * @type {object} + * @memberof ConsentResponse + */ + 'context': object; + /** + * LoginChallenge is the login challenge this consent challenge belongs to. + * @type {string} + * @memberof ConsentResponse + */ + 'login_challenge': string; + /** + * LoginSessionID is the login session ID. + * @type {string} + * @memberof ConsentResponse + */ + 'login_session_id': string; + /** + * + * @type {OidcContextResponse} + * @memberof ConsentResponse + */ + 'oidc_context': OidcContextResponse; + /** + * RequestUrl is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. + * @type {string} + * @memberof ConsentResponse + */ + 'request_url': string; + /** + * + * @type {Array} + * @memberof ConsentResponse + */ + 'requested_access_token_audience'?: Array; + /** + * The request scopes of the login request. + * @type {Array} + * @memberof ConsentResponse + */ + 'requested_scope'?: Array; + /** + * Skip, if true, implies that the client has requested the same scopes from the same user previously. + * @type {boolean} + * @memberof ConsentResponse + */ + 'skip': boolean; + /** + * Subject is the user id of the end-user that is authenticated. + * @type {string} + * @memberof ConsentResponse + */ + 'subject': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-session-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-session-response.ts new file mode 100644 index 00000000000..8d95898f8aa --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-session-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ConsentSessionResponse + */ +export interface ConsentSessionResponse { + /** + * The id of the client. + * @type {string} + * @memberof ConsentSessionResponse + */ + 'client_id': string; + /** + * The name of the client. + * @type {string} + * @memberof ConsentSessionResponse + */ + 'client_name': string; + /** + * The id/challenge of the consent authorization request. + * @type {string} + * @memberof ConsentSessionResponse + */ + 'challenge': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/consents-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/consents-response.ts new file mode 100644 index 00000000000..de183e95bff --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/consents-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ParentConsentResponse } from './parent-consent-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { UserConsentResponse } from './user-consent-response'; + +/** + * + * @export + * @interface ConsentsResponse + */ +export interface ConsentsResponse { + /** + * + * @type {UserConsentResponse} + * @memberof ConsentsResponse + */ + 'userConsent': UserConsentResponse; + /** + * + * @type {Array} + * @memberof ConsentsResponse + */ + 'parentConsents': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/content-element-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/content-element-type.ts new file mode 100644 index 00000000000..57ee1f2323d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/content-element-type.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const ContentElementType = { + FILE: 'file', + DRAWING: 'drawing', + LINK: 'link', + RICH_TEXT: 'richText', + SUBMISSION_CONTAINER: 'submissionContainer', + EXTERNAL_TOOL: 'externalTool', + COLLABORATIVE_TEXT_EDITOR: 'collaborativeTextEditor' +} as const; + +export type ContentElementType = typeof ContentElementType[keyof typeof ContentElementType]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-body-params.ts new file mode 100644 index 00000000000..a79469bb211 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-body-params.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ToolContextType } from './tool-context-type'; + +/** + * + * @export + * @interface ContextExternalToolBodyParams + */ +export interface ContextExternalToolBodyParams { + /** + * + * @type {string} + * @memberof ContextExternalToolBodyParams + */ + 'contextId': string; + /** + * + * @type {ToolContextType} + * @memberof ContextExternalToolBodyParams + */ + 'contextType': ToolContextType; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-status-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-status-response.ts new file mode 100644 index 00000000000..b7cf5d152df --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-status-response.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ContextExternalToolConfigurationStatusResponse + */ +export interface ContextExternalToolConfigurationStatusResponse { + /** + * Is the tool outdated on school scope, because of non matching versions or required parameter changes on ExternalTool? + * @type {boolean} + * @memberof ContextExternalToolConfigurationStatusResponse + */ + 'isOutdatedOnScopeSchool': boolean; + /** + * Is the tool outdated on context scope, because of non matching versions or required parameter changes on SchoolExternalTool? + * @type {boolean} + * @memberof ContextExternalToolConfigurationStatusResponse + */ + 'isOutdatedOnScopeContext': boolean; + /** + * True, if a mandatory parameter on the context external tool is missing a value + * @type {boolean} + * @memberof ContextExternalToolConfigurationStatusResponse + */ + 'isIncompleteOnScopeContext': boolean; + /** + * True, if a optional parameter on the context external tool is missing a value. This is happening, when course is copied. + * @type {boolean} + * @memberof ContextExternalToolConfigurationStatusResponse + */ + 'isIncompleteOperationalOnScopeContext': boolean; + /** + * Is the tool deactivated, because of superhero or school administrator + * @type {boolean} + * @memberof ContextExternalToolConfigurationStatusResponse + */ + 'isDeactivated': boolean; + /** + * True if the tool is not licensed for user + * @type {boolean} + * @memberof ContextExternalToolConfigurationStatusResponse + */ + 'isNotLicensed': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-list-response.ts new file mode 100644 index 00000000000..1bf717c10f6 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-list-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContextExternalToolConfigurationTemplateResponse } from './context-external-tool-configuration-template-response'; + +/** + * + * @export + * @interface ContextExternalToolConfigurationTemplateListResponse + */ +export interface ContextExternalToolConfigurationTemplateListResponse { + /** + * + * @type {Array} + * @memberof ContextExternalToolConfigurationTemplateListResponse + */ + 'data': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-response.ts new file mode 100644 index 00000000000..75977e0c9b9 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-response.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CustomParameterResponse } from './custom-parameter-response'; + +/** + * + * @export + * @interface ContextExternalToolConfigurationTemplateResponse + */ +export interface ContextExternalToolConfigurationTemplateResponse { + /** + * + * @type {string} + * @memberof ContextExternalToolConfigurationTemplateResponse + */ + 'externalToolId': string; + /** + * + * @type {string} + * @memberof ContextExternalToolConfigurationTemplateResponse + */ + 'schoolExternalToolId': string; + /** + * + * @type {string} + * @memberof ContextExternalToolConfigurationTemplateResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof ContextExternalToolConfigurationTemplateResponse + */ + 'logoUrl'?: string; + /** + * + * @type {Array} + * @memberof ContextExternalToolConfigurationTemplateResponse + */ + 'parameters': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-count-per-context-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-count-per-context-response.ts new file mode 100644 index 00000000000..16c76214122 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-count-per-context-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ContextExternalToolCountPerContextResponse + */ +export interface ContextExternalToolCountPerContextResponse { + /** + * + * @type {number} + * @memberof ContextExternalToolCountPerContextResponse + */ + 'course': number; + /** + * + * @type {number} + * @memberof ContextExternalToolCountPerContextResponse + */ + 'boardElement': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-post-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-post-params.ts new file mode 100644 index 00000000000..62a74c6a49b --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-post-params.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CustomParameterEntryParam } from './custom-parameter-entry-param'; + +/** + * + * @export + * @interface ContextExternalToolPostParams + */ +export interface ContextExternalToolPostParams { + /** + * + * @type {string} + * @memberof ContextExternalToolPostParams + */ + 'schoolToolId': string; + /** + * + * @type {string} + * @memberof ContextExternalToolPostParams + */ + 'contextId': string; + /** + * + * @type {string} + * @memberof ContextExternalToolPostParams + */ + 'contextType': string; + /** + * + * @type {string} + * @memberof ContextExternalToolPostParams + */ + 'displayName'?: string; + /** + * + * @type {Array} + * @memberof ContextExternalToolPostParams + */ + 'parameters'?: Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-response.ts new file mode 100644 index 00000000000..e1a2d77c6e1 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-response.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CustomParameterEntryResponse } from './custom-parameter-entry-response'; + +/** + * + * @export + * @interface ContextExternalToolResponse + */ +export interface ContextExternalToolResponse { + /** + * + * @type {string} + * @memberof ContextExternalToolResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof ContextExternalToolResponse + */ + 'schoolToolId': string; + /** + * + * @type {string} + * @memberof ContextExternalToolResponse + */ + 'contextId': string; + /** + * + * @type {string} + * @memberof ContextExternalToolResponse + */ + 'contextType': ContextExternalToolResponseContextType; + /** + * + * @type {string} + * @memberof ContextExternalToolResponse + */ + 'displayName'?: string; + /** + * + * @type {Array} + * @memberof ContextExternalToolResponse + */ + 'parameters': Array; + /** + * + * @type {string} + * @memberof ContextExternalToolResponse + */ + 'logoUrl'?: string; +} + +export const ContextExternalToolResponseContextType = { + COURSE: 'course', + BOARD_ELEMENT: 'board-element', + MEDIA_BOARD: 'media-board' +} as const; + +export type ContextExternalToolResponseContextType = typeof ContextExternalToolResponseContextType[keyof typeof ContextExternalToolResponseContextType]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-search-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-search-list-response.ts new file mode 100644 index 00000000000..cbb6a165307 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-search-list-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContextExternalToolResponse } from './context-external-tool-response'; + +/** + * + * @export + * @interface ContextExternalToolSearchListResponse + */ +export interface ContextExternalToolSearchListResponse { + /** + * + * @type {Array} + * @memberof ContextExternalToolSearchListResponse + */ + 'data': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/copy-api-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/copy-api-response.ts new file mode 100644 index 00000000000..dace5990eda --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/copy-api-response.ts @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CopyApiResponse + */ +export interface CopyApiResponse { + /** + * Id of copied element + * @type {string} + * @memberof CopyApiResponse + */ + 'id'?: string; + /** + * Title of copied element + * @type {string} + * @memberof CopyApiResponse + */ + 'title'?: string; + /** + * Type of copied element + * @type {string} + * @memberof CopyApiResponse + */ + 'type': CopyApiResponseType; + /** + * Id of destination course + * @type {string} + * @memberof CopyApiResponse + */ + 'destinationCourseId'?: string; + /** + * Copy progress status of copied element + * @type {string} + * @memberof CopyApiResponse + */ + 'status': CopyApiResponseStatus; + /** + * List of included sub elements with recursive type structure + * @type {Array} + * @memberof CopyApiResponse + */ + 'elements'?: Array; +} + +export const CopyApiResponseType = { + BOARD: 'BOARD', + CARD: 'CARD', + COLLABORATIVE_TEXT_EDITOR_ELEMENT: 'COLLABORATIVE_TEXT_EDITOR_ELEMENT', + COLUMN: 'COLUMN', + COLUMNBOARD: 'COLUMNBOARD', + CONTENT: 'CONTENT', + COURSE: 'COURSE', + COURSEGROUP_GROUP: 'COURSEGROUP_GROUP', + EXTERNAL_TOOL: 'EXTERNAL_TOOL', + EXTERNAL_TOOL_ELEMENT: 'EXTERNAL_TOOL_ELEMENT', + FILE: 'FILE', + FILE_ELEMENT: 'FILE_ELEMENT', + DRAWING_ELEMENT: 'DRAWING_ELEMENT', + FILE_GROUP: 'FILE_GROUP', + LEAF: 'LEAF', + LESSON: 'LESSON', + LESSON_CONTENT_ETHERPAD: 'LESSON_CONTENT_ETHERPAD', + LESSON_CONTENT_GEOGEBRA: 'LESSON_CONTENT_GEOGEBRA', + LESSON_CONTENT_GROUP: 'LESSON_CONTENT_GROUP', + LESSON_CONTENT_LERNSTORE: 'LESSON_CONTENT_LERNSTORE', + LESSON_CONTENT_NEXBOARD: 'LESSON_CONTENT_NEXBOARD', + LESSON_CONTENT_TASK: 'LESSON_CONTENT_TASK', + LESSON_CONTENT_TEXT: 'LESSON_CONTENT_TEXT', + LERNSTORE_MATERIAL: 'LERNSTORE_MATERIAL', + LERNSTORE_MATERIAL_GROUP: 'LERNSTORE_MATERIAL_GROUP', + LINK_ELEMENT: 'LINK_ELEMENT', + LTITOOL_GROUP: 'LTITOOL_GROUP', + MEDIA_BOARD: 'MEDIA_BOARD', + MEDIA_LINE: 'MEDIA_LINE', + MEDIA_EXTERNAL_TOOL_ELEMENT: 'MEDIA_EXTERNAL_TOOL_ELEMENT', + METADATA: 'METADATA', + RICHTEXT_ELEMENT: 'RICHTEXT_ELEMENT', + SUBMISSION_CONTAINER_ELEMENT: 'SUBMISSION_CONTAINER_ELEMENT', + SUBMISSION_ITEM: 'SUBMISSION_ITEM', + SUBMISSION_GROUP: 'SUBMISSION_GROUP', + TASK: 'TASK', + TASK_GROUP: 'TASK_GROUP', + TIME_GROUP: 'TIME_GROUP', + USER_GROUP: 'USER_GROUP' +} as const; + +export type CopyApiResponseType = typeof CopyApiResponseType[keyof typeof CopyApiResponseType]; +export const CopyApiResponseStatus = { + SUCCESS: 'success', + FAILURE: 'failure', + NOT_DOING: 'not-doing', + NOT_IMPLEMENTED: 'not-implemented', + PARTIAL: 'partial' +} as const; + +export type CopyApiResponseStatus = typeof CopyApiResponseStatus[keyof typeof CopyApiResponseStatus]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/county-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/county-response.ts new file mode 100644 index 00000000000..4c5bf982ff9 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/county-response.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CountyResponse + */ +export interface CountyResponse { + /** + * + * @type {string} + * @memberof CountyResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof CountyResponse + */ + 'name': string; + /** + * + * @type {number} + * @memberof CountyResponse + */ + 'countyId': number; + /** + * + * @type {string} + * @memberof CountyResponse + */ + 'antaresKey': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/course-export-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/course-export-body-params.ts new file mode 100644 index 00000000000..991bd4ab40e --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/course-export-body-params.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CourseExportBodyParams + */ +export interface CourseExportBodyParams { + /** + * The list of ids of topics which should be exported. If empty no topics are exported. + * @type {Array} + * @memberof CourseExportBodyParams + */ + 'topics': Array; + /** + * The list of ids of tasks which should be exported. If empty no tasks are exported. + * @type {Array} + * @memberof CourseExportBodyParams + */ + 'tasks': Array; + /** + * The list of ids of column boards which should be exported. If empty no column boards are exported. + * @type {Array} + * @memberof CourseExportBodyParams + */ + 'columnBoards': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/course-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/course-info-response.ts new file mode 100644 index 00000000000..df10d76d5e3 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/course-info-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CourseInfoResponse + */ +export interface CourseInfoResponse { + /** + * + * @type {string} + * @memberof CourseInfoResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof CourseInfoResponse + */ + 'name': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-list-response.ts new file mode 100644 index 00000000000..5fe38c668a7 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-list-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CourseMetadataResponse } from './course-metadata-response'; + +/** + * + * @export + * @interface CourseMetadataListResponse + */ +export interface CourseMetadataListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof CourseMetadataListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof CourseMetadataListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof CourseMetadataListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof CourseMetadataListResponse + */ + 'limit': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-response.ts new file mode 100644 index 00000000000..58e5c20d01c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-response.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CourseMetadataResponse + */ +export interface CourseMetadataResponse { + /** + * The id of the Grid element + * @type {string} + * @memberof CourseMetadataResponse + */ + 'id': string; + /** + * Title of the Grid element + * @type {string} + * @memberof CourseMetadataResponse + */ + 'title': string; + /** + * Short title of the Grid element + * @type {string} + * @memberof CourseMetadataResponse + */ + 'shortTitle': string; + /** + * Color of the Grid element + * @type {string} + * @memberof CourseMetadataResponse + */ + 'displayColor': string; + /** + * Start date of the course + * @type {string} + * @memberof CourseMetadataResponse + */ + 'startDate'?: string; + /** + * End date of the course. After this the course counts as archived + * @type {string} + * @memberof CourseMetadataResponse + */ + 'untilDate'?: string; + /** + * Start of the copying process if it is still ongoing - otherwise property is not set. + * @type {string} + * @memberof CourseMetadataResponse + */ + 'copyingSince'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-body-params.ts new file mode 100644 index 00000000000..7d423d0dd56 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-body-params.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { BoardLayout } from './board-layout'; +// May contain unused imports in some cases +// @ts-ignore +import type { BoardParentType } from './board-parent-type'; + +/** + * + * @export + * @interface CreateBoardBodyParams + */ +export interface CreateBoardBodyParams { + /** + * The title of the board + * @type {string} + * @memberof CreateBoardBodyParams + */ + 'title': string; + /** + * The id of the parent + * @type {string} + * @memberof CreateBoardBodyParams + */ + 'parentId': string; + /** + * + * @type {BoardParentType} + * @memberof CreateBoardBodyParams + */ + 'parentType': BoardParentType; + /** + * + * @type {BoardLayout} + * @memberof CreateBoardBodyParams + */ + 'layout': BoardLayout; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-response.ts new file mode 100644 index 00000000000..9ab7bf89691 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CreateBoardResponse + */ +export interface CreateBoardResponse { + /** + * + * @type {string} + * @memberof CreateBoardResponse + */ + 'id': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-card-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-card-body-params.ts new file mode 100644 index 00000000000..3e66e5455e7 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-card-body-params.ts @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CreateCardBodyParams + */ +export interface CreateCardBodyParams { + /** + * + * @type {Array} + * @memberof CreateCardBodyParams + */ + 'requiredEmptyElements'?: Array; +} + +export const CreateCardBodyParamsRequiredEmptyElements = { + FILE: 'file', + DRAWING: 'drawing', + LINK: 'link', + RICH_TEXT: 'richText', + SUBMISSION_CONTAINER: 'submissionContainer', + EXTERNAL_TOOL: 'externalTool', + COLLABORATIVE_TEXT_EDITOR: 'collaborativeTextEditor' +} as const; + +export type CreateCardBodyParamsRequiredEmptyElements = typeof CreateCardBodyParamsRequiredEmptyElements[keyof typeof CreateCardBodyParamsRequiredEmptyElements]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-content-element-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-content-element-body-params.ts new file mode 100644 index 00000000000..4c9a69910e6 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-content-element-body-params.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; + +/** + * + * @export + * @interface CreateContentElementBodyParams + */ +export interface CreateContentElementBodyParams { + /** + * + * @type {ContentElementType} + * @memberof CreateContentElementBodyParams + */ + 'type': ContentElementType; + /** + * to bring element to a specific position, default is last position + * @type {number} + * @memberof CreateContentElementBodyParams + */ + 'toPosition'?: number; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-media-element-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-media-element-body-params.ts new file mode 100644 index 00000000000..7fb6219b68e --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-media-element-body-params.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CreateMediaElementBodyParams + */ +export interface CreateMediaElementBodyParams { + /** + * The id of the line where the element is created + * @type {string} + * @memberof CreateMediaElementBodyParams + */ + 'lineId': string; + /** + * The position where the element is created + * @type {number} + * @memberof CreateMediaElementBodyParams + */ + 'position': number; + /** + * The id of the school external tool + * @type {string} + * @memberof CreateMediaElementBodyParams + */ + 'schoolExternalToolId': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-news-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-news-params.ts new file mode 100644 index 00000000000..f848731470d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-news-params.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CreateNewsParams + */ +export interface CreateNewsParams { + /** + * Title of the News entity + * @type {string} + * @memberof CreateNewsParams + */ + 'title': string; + /** + * Content of the News entity + * @type {string} + * @memberof CreateNewsParams + */ + 'content': string; + /** + * The point in time from when the News entity schould be displayed. Defaults to now so that the news is published + * @type {string} + * @memberof CreateNewsParams + */ + 'displayAt'?: string; + /** + * Target model to which the News entity is related + * @type {string} + * @memberof CreateNewsParams + */ + 'targetModel': CreateNewsParamsTargetModel; + /** + * Specific target id to which the News entity is related + * @type {string} + * @memberof CreateNewsParams + */ + 'targetId': string; +} + +export const CreateNewsParamsTargetModel = { + SCHOOLS: 'schools', + COURSES: 'courses', + TEAMS: 'teams' +} as const; + +export type CreateNewsParamsTargetModel = typeof CreateNewsParamsTargetModel[keyof typeof CreateNewsParamsTargetModel]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-submission-item-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-submission-item-body-params.ts new file mode 100644 index 00000000000..fe86b43dd4d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-submission-item-body-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CreateSubmissionItemBodyParams + */ +export interface CreateSubmissionItemBodyParams { + /** + * Boolean indicating whether the submission is completed. + * @type {boolean} + * @memberof CreateSubmissionItemBodyParams + */ + 'completed': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-param.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-param.ts new file mode 100644 index 00000000000..15ba133c340 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-param.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CustomParameterEntryParam + */ +export interface CustomParameterEntryParam { + /** + * + * @type {string} + * @memberof CustomParameterEntryParam + */ + 'name': string; + /** + * + * @type {string} + * @memberof CustomParameterEntryParam + */ + 'value'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-response.ts new file mode 100644 index 00000000000..0e411e05b87 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CustomParameterEntryResponse + */ +export interface CustomParameterEntryResponse { + /** + * + * @type {string} + * @memberof CustomParameterEntryResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof CustomParameterEntryResponse + */ + 'value'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-post-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-post-params.ts new file mode 100644 index 00000000000..f539fd14f14 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-post-params.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CustomParameterPostParams + */ +export interface CustomParameterPostParams { + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'name': string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'defaultValue'?: string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'regex'?: string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'regexComment'?: string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'scope': string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'location': string; + /** + * + * @type {string} + * @memberof CustomParameterPostParams + */ + 'type': string; + /** + * + * @type {boolean} + * @memberof CustomParameterPostParams + */ + 'isOptional': boolean; + /** + * + * @type {boolean} + * @memberof CustomParameterPostParams + */ + 'isProtected': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-response.ts new file mode 100644 index 00000000000..699324182ce --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-response.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CustomParameterResponse + */ +export interface CustomParameterResponse { + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'displayName': string; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'defaultValue'?: string; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'regex'?: string; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'regexComment'?: string; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'scope': CustomParameterResponseScope; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'location': CustomParameterResponseLocation; + /** + * + * @type {string} + * @memberof CustomParameterResponse + */ + 'type': CustomParameterResponseType; + /** + * + * @type {boolean} + * @memberof CustomParameterResponse + */ + 'isOptional': boolean; + /** + * + * @type {boolean} + * @memberof CustomParameterResponse + */ + 'isProtected': boolean; +} + +export const CustomParameterResponseScope = { + GLOBAL: 'global', + SCHOOL: 'school', + CONTEXT: 'context' +} as const; + +export type CustomParameterResponseScope = typeof CustomParameterResponseScope[keyof typeof CustomParameterResponseScope]; +export const CustomParameterResponseLocation = { + PATH: 'path', + BODY: 'body', + QUERY: 'query' +} as const; + +export type CustomParameterResponseLocation = typeof CustomParameterResponseLocation[keyof typeof CustomParameterResponseLocation]; +export const CustomParameterResponseType = { + STRING: 'string', + NUMBER: 'number', + BOOLEAN: 'boolean', + AUTO_CONTEXTID: 'auto_contextid', + AUTO_CONTEXTNAME: 'auto_contextname', + AUTO_SCHOOLID: 'auto_schoolid', + AUTO_SCHOOLNUMBER: 'auto_schoolnumber', + AUTO_MEDIUMID: 'auto_mediumid' +} as const; + +export type CustomParameterResponseType = typeof CustomParameterResponseType[keyof typeof CustomParameterResponseType]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-element-response.ts new file mode 100644 index 00000000000..cfa56bf6b30 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-element-response.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { DashboardGridSubElementResponse } from './dashboard-grid-sub-element-response'; + +/** + * + * @export + * @interface DashboardGridElementResponse + */ +export interface DashboardGridElementResponse { + /** + * The id of the Grid element + * @type {string} + * @memberof DashboardGridElementResponse + */ + 'id': string; + /** + * Title of the Grid element + * @type {string} + * @memberof DashboardGridElementResponse + */ + 'title': string; + /** + * Short title of the Grid element + * @type {string} + * @memberof DashboardGridElementResponse + */ + 'shortTitle': string; + /** + * Color of the Grid element + * @type {string} + * @memberof DashboardGridElementResponse + */ + 'displayColor': string; + /** + * X position of the Grid element + * @type {number} + * @memberof DashboardGridElementResponse + */ + 'xPosition': number; + /** + * Y position of the Grid element + * @type {number} + * @memberof DashboardGridElementResponse + */ + 'yPosition': number; + /** + * The id of the group element + * @type {string} + * @memberof DashboardGridElementResponse + */ + 'groupId': string; + /** + * List of all subelements in the group + * @type {Array} + * @memberof DashboardGridElementResponse + */ + 'groupElements': Array; + /** + * Start of the copying process if it is still ongoing - otherwise property is not set. + * @type {string} + * @memberof DashboardGridElementResponse + */ + 'copyingSince': string; + /** + * Is the course synchronized with a group? + * @type {boolean} + * @memberof DashboardGridElementResponse + */ + 'isSynchronized': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-sub-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-sub-element-response.ts new file mode 100644 index 00000000000..e237c774df4 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-sub-element-response.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface DashboardGridSubElementResponse + */ +export interface DashboardGridSubElementResponse { + /** + * The id of the Grid element + * @type {string} + * @memberof DashboardGridSubElementResponse + */ + 'id': string; + /** + * Title of the Grid element + * @type {string} + * @memberof DashboardGridSubElementResponse + */ + 'title': string; + /** + * Short title of the Grid element + * @type {string} + * @memberof DashboardGridSubElementResponse + */ + 'shortTitle': string; + /** + * Color of the Grid element + * @type {string} + * @memberof DashboardGridSubElementResponse + */ + 'displayColor': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-response.ts new file mode 100644 index 00000000000..e5e3def907d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { DashboardGridElementResponse } from './dashboard-grid-element-response'; + +/** + * + * @export + * @interface DashboardResponse + */ +export interface DashboardResponse { + /** + * The id of the Dashboard entity + * @type {string} + * @memberof DashboardResponse + */ + 'id': string; + /** + * List of all elements visible on the dashboard + * @type {Array} + * @memberof DashboardResponse + */ + 'gridElements': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-content-body.ts new file mode 100644 index 00000000000..02d80b65ee9 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-content-body.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface DrawingContentBody + */ +export interface DrawingContentBody { + /** + * + * @type {string} + * @memberof DrawingContentBody + */ + 'description': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content-body.ts new file mode 100644 index 00000000000..6fd6abc2ade --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content-body.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { DrawingContentBody } from './drawing-content-body'; + +/** + * + * @export + * @interface DrawingElementContentBody + */ +export interface DrawingElementContentBody { + /** + * + * @type {ContentElementType} + * @memberof DrawingElementContentBody + */ + 'type': ContentElementType; + /** + * + * @type {DrawingContentBody} + * @memberof DrawingElementContentBody + */ + 'content': DrawingContentBody; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content.ts new file mode 100644 index 00000000000..55d09d28782 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface DrawingElementContent + */ +export interface DrawingElementContent { + /** + * + * @type {string} + * @memberof DrawingElementContent + */ + 'description': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-response.ts new file mode 100644 index 00000000000..9c0803671bc --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-response.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { DrawingElementContent } from './drawing-element-content'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface DrawingElementResponse + */ +export interface DrawingElementResponse { + /** + * + * @type {string} + * @memberof DrawingElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof DrawingElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {TimestampsResponse} + * @memberof DrawingElementResponse + */ + 'timestamps': TimestampsResponse; + /** + * + * @type {DrawingElementContent} + * @memberof DrawingElementResponse + */ + 'content': DrawingElementContent; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/entity-not-found-error.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/entity-not-found-error.ts new file mode 100644 index 00000000000..f7ba1ffef84 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/entity-not-found-error.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface EntityNotFoundError + */ +export interface EntityNotFoundError { + /** + * The response status code. + * @type {number} + * @memberof EntityNotFoundError + */ + 'code': number; + /** + * The error type. + * @type {string} + * @memberof EntityNotFoundError + */ + 'type': string; + /** + * The error title. + * @type {string} + * @memberof EntityNotFoundError + */ + 'title': string; + /** + * The error message. + * @type {string} + * @memberof EntityNotFoundError + */ + 'message': string; + /** + * The error details. + * @type {object} + * @memberof EntityNotFoundError + */ + 'details'?: object; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-source-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-source-response.ts new file mode 100644 index 00000000000..49f3472a975 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-source-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ExternalSourceResponse + */ +export interface ExternalSourceResponse { + /** + * + * @type {string} + * @memberof ExternalSourceResponse + */ + 'externalId': string; + /** + * + * @type {string} + * @memberof ExternalSourceResponse + */ + 'systemId': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-bulk-create-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-bulk-create-params.ts new file mode 100644 index 00000000000..1b4ec9c1d7a --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-bulk-create-params.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolCreateParams } from './external-tool-create-params'; + +/** + * + * @export + * @interface ExternalToolBulkCreateParams + */ +export interface ExternalToolBulkCreateParams { + /** + * List of external tools + * @type {Array} + * @memberof ExternalToolBulkCreateParams + */ + 'data': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-content-body.ts new file mode 100644 index 00000000000..f6097315cbf --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-content-body.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ExternalToolContentBody + */ +export interface ExternalToolContentBody { + /** + * + * @type {string} + * @memberof ExternalToolContentBody + */ + 'contextExternalToolId'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-create-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-create-params.ts new file mode 100644 index 00000000000..58d10e68b74 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-create-params.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CustomParameterPostParams } from './custom-parameter-post-params'; +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolMediumParams } from './external-tool-medium-params'; +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolResponseConfig } from './external-tool-response-config'; +// May contain unused imports in some cases +// @ts-ignore +import type { ToolContextType } from './tool-context-type'; + +/** + * + * @export + * @interface ExternalToolCreateParams + */ +export interface ExternalToolCreateParams { + /** + * Name of the external tool + * @type {string} + * @memberof ExternalToolCreateParams + */ + 'name': string; + /** + * Description of the external tool + * @type {string} + * @memberof ExternalToolCreateParams + */ + 'description'?: string; + /** + * URL of the external tool + * @type {string} + * @memberof ExternalToolCreateParams + */ + 'url'?: string; + /** + * URL of the logo of the external tool + * @type {string} + * @memberof ExternalToolCreateParams + */ + 'logoUrl'?: string; + /** + * + * @type {ExternalToolResponseConfig} + * @memberof ExternalToolCreateParams + */ + 'config': ExternalToolResponseConfig; + /** + * Custom parameters of the external tool + * @type {Array} + * @memberof ExternalToolCreateParams + */ + 'parameters'?: Array; + /** + * Tool can be hidden, those tools cant be added to e.g. school, course or board + * @type {boolean} + * @memberof ExternalToolCreateParams + */ + 'isHidden': boolean; + /** + * Tool can be deactivated, related tools can not be added to e.g. school, course or board anymore + * @type {boolean} + * @memberof ExternalToolCreateParams + */ + 'isDeactivated': boolean; + /** + * Tool should be opened in a new tab + * @type {boolean} + * @memberof ExternalToolCreateParams + */ + 'openNewTab': boolean; + /** + * Restrict tools to specific contexts + * @type {Array} + * @memberof ExternalToolCreateParams + */ + 'restrictToContexts'?: Array; + /** + * Medium of the external tool + * @type {ExternalToolMediumParams} + * @memberof ExternalToolCreateParams + */ + 'medium'?: ExternalToolMediumParams; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content-body.ts new file mode 100644 index 00000000000..de3a37b0321 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content-body.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolContentBody } from './external-tool-content-body'; + +/** + * + * @export + * @interface ExternalToolElementContentBody + */ +export interface ExternalToolElementContentBody { + /** + * + * @type {ContentElementType} + * @memberof ExternalToolElementContentBody + */ + 'type': ContentElementType; + /** + * + * @type {ExternalToolContentBody} + * @memberof ExternalToolElementContentBody + */ + 'content': ExternalToolContentBody; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content.ts new file mode 100644 index 00000000000..47003d5db9e --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ExternalToolElementContent + */ +export interface ExternalToolElementContent { + /** + * + * @type {string} + * @memberof ExternalToolElementContent + */ + 'contextExternalToolId': string | null; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-response.ts new file mode 100644 index 00000000000..44d60edddd8 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-response.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolElementContent } from './external-tool-element-content'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface ExternalToolElementResponse + */ +export interface ExternalToolElementResponse { + /** + * + * @type {string} + * @memberof ExternalToolElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof ExternalToolElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {ExternalToolElementContent} + * @memberof ExternalToolElementResponse + */ + 'content': ExternalToolElementContent; + /** + * + * @type {TimestampsResponse} + * @memberof ExternalToolElementResponse + */ + 'timestamps': TimestampsResponse; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-params.ts new file mode 100644 index 00000000000..8bf96ce003a --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-params.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ExternalToolMediumParams + */ +export interface ExternalToolMediumParams { + /** + * Id of the medium + * @type {string} + * @memberof ExternalToolMediumParams + */ + 'mediumId': string; + /** + * Publisher of the medium + * @type {string} + * @memberof ExternalToolMediumParams + */ + 'publisher'?: string; + /** + * The id of the media source + * @type {string} + * @memberof ExternalToolMediumParams + */ + 'mediaSourceId'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-response.ts new file mode 100644 index 00000000000..ec152173f7c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ExternalToolMediumResponse + */ +export interface ExternalToolMediumResponse { + /** + * Id of the medium + * @type {string} + * @memberof ExternalToolMediumResponse + */ + 'mediumId': string; + /** + * Publisher of the medium + * @type {string} + * @memberof ExternalToolMediumResponse + */ + 'publisher'?: string; + /** + * The id of the media source + * @type {string} + * @memberof ExternalToolMediumResponse + */ + 'mediaSourceId'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-metadata-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-metadata-response.ts new file mode 100644 index 00000000000..35d8ed722bb --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-metadata-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContextExternalToolCountPerContextResponse } from './context-external-tool-count-per-context-response'; + +/** + * + * @export + * @interface ExternalToolMetadataResponse + */ +export interface ExternalToolMetadataResponse { + /** + * + * @type {number} + * @memberof ExternalToolMetadataResponse + */ + 'schoolExternalToolCount': number; + /** + * + * @type {ContextExternalToolCountPerContextResponse} + * @memberof ExternalToolMetadataResponse + */ + 'contextExternalToolCountPerContext': ContextExternalToolCountPerContextResponse; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response-config.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response-config.ts new file mode 100644 index 00000000000..b31b4ea65d8 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response-config.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { BasicToolConfigParams } from './basic-tool-config-params'; +// May contain unused imports in some cases +// @ts-ignore +import type { Lti11ToolConfigCreateParams } from './lti11-tool-config-create-params'; +// May contain unused imports in some cases +// @ts-ignore +import type { LtiMessageType } from './lti-message-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { LtiPrivacyPermission } from './lti-privacy-permission'; +// May contain unused imports in some cases +// @ts-ignore +import type { Oauth2ToolConfigCreateParams } from './oauth2-tool-config-create-params'; + +/** + * @type ExternalToolResponseConfig + * Configuration of the external tool + * @export + */ +export type ExternalToolResponseConfig = BasicToolConfigParams | Lti11ToolConfigCreateParams | Oauth2ToolConfigCreateParams; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response.ts new file mode 100644 index 00000000000..fea92f8969a --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CustomParameterResponse } from './custom-parameter-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolMediumResponse } from './external-tool-medium-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolResponseConfig } from './external-tool-response-config'; +// May contain unused imports in some cases +// @ts-ignore +import type { ToolContextType } from './tool-context-type'; + +/** + * + * @export + * @interface ExternalToolResponse + */ +export interface ExternalToolResponse { + /** + * Id of the external tool + * @type {string} + * @memberof ExternalToolResponse + */ + 'id': string; + /** + * Name of the external tool + * @type {string} + * @memberof ExternalToolResponse + */ + 'name': string; + /** + * Description of the external tool + * @type {string} + * @memberof ExternalToolResponse + */ + 'description'?: string; + /** + * URL of the external tool + * @type {string} + * @memberof ExternalToolResponse + */ + 'url'?: string; + /** + * URL of the logo of the external tool + * @type {string} + * @memberof ExternalToolResponse + */ + 'logoUrl'?: string; + /** + * + * @type {ExternalToolResponseConfig} + * @memberof ExternalToolResponse + */ + 'config': ExternalToolResponseConfig; + /** + * Custom parameters of the external tool + * @type {Array} + * @memberof ExternalToolResponse + */ + 'parameters': Array; + /** + * Is the external tool hidden + * @type {boolean} + * @memberof ExternalToolResponse + */ + 'isHidden': boolean; + /** + * Is the external tool deactivated + * @type {boolean} + * @memberof ExternalToolResponse + */ + 'isDeactivated': boolean; + /** + * Should the external tool be opened in a new tab + * @type {boolean} + * @memberof ExternalToolResponse + */ + 'openNewTab': boolean; + /** + * Contexts in which the external tool is restricted + * @type {Array} + * @memberof ExternalToolResponse + */ + 'restrictToContexts'?: Array; + /** + * Medium of the external tool + * @type {ExternalToolMediumResponse} + * @memberof ExternalToolResponse + */ + 'medium'?: ExternalToolMediumResponse; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-search-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-search-list-response.ts new file mode 100644 index 00000000000..447a819f416 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-search-list-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolResponse } from './external-tool-response'; + +/** + * + * @export + * @interface ExternalToolSearchListResponse + */ +export interface ExternalToolSearchListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof ExternalToolSearchListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof ExternalToolSearchListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof ExternalToolSearchListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof ExternalToolSearchListResponse + */ + 'limit': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params-config.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params-config.ts new file mode 100644 index 00000000000..16112f4b2c2 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params-config.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { BasicToolConfigParams } from './basic-tool-config-params'; +// May contain unused imports in some cases +// @ts-ignore +import type { Lti11ToolConfigUpdateParams } from './lti11-tool-config-update-params'; +// May contain unused imports in some cases +// @ts-ignore +import type { LtiMessageType } from './lti-message-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { LtiPrivacyPermission } from './lti-privacy-permission'; +// May contain unused imports in some cases +// @ts-ignore +import type { Oauth2ToolConfigUpdateParams } from './oauth2-tool-config-update-params'; + +/** + * @type ExternalToolUpdateParamsConfig + * Configuration of the external tool + * @export + */ +export type ExternalToolUpdateParamsConfig = BasicToolConfigParams | Lti11ToolConfigUpdateParams | Oauth2ToolConfigUpdateParams; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params.ts new file mode 100644 index 00000000000..bfcd10db17d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CustomParameterPostParams } from './custom-parameter-post-params'; +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolMediumParams } from './external-tool-medium-params'; +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolUpdateParamsConfig } from './external-tool-update-params-config'; +// May contain unused imports in some cases +// @ts-ignore +import type { ToolContextType } from './tool-context-type'; + +/** + * + * @export + * @interface ExternalToolUpdateParams + */ +export interface ExternalToolUpdateParams { + /** + * ID of the external tool + * @type {string} + * @memberof ExternalToolUpdateParams + */ + 'id': string; + /** + * + * @type {string} + * @memberof ExternalToolUpdateParams + */ + 'name': string; + /** + * Description of the external tool + * @type {string} + * @memberof ExternalToolUpdateParams + */ + 'description'?: string; + /** + * URL of the external tool + * @type {string} + * @memberof ExternalToolUpdateParams + */ + 'url'?: string; + /** + * URL of the logo of the external tool + * @type {string} + * @memberof ExternalToolUpdateParams + */ + 'logoUrl'?: string; + /** + * + * @type {ExternalToolUpdateParamsConfig} + * @memberof ExternalToolUpdateParams + */ + 'config': ExternalToolUpdateParamsConfig; + /** + * Custom parameters of the external tool + * @type {Array} + * @memberof ExternalToolUpdateParams + */ + 'parameters'?: Array; + /** + * + * @type {boolean} + * @memberof ExternalToolUpdateParams + */ + 'isHidden': boolean; + /** + * Tool can be deactivated, related tools can not be added to e.g. school, course or board anymore + * @type {boolean} + * @memberof ExternalToolUpdateParams + */ + 'isDeactivated': boolean; + /** + * Open the tool in a new tab + * @type {boolean} + * @memberof ExternalToolUpdateParams + */ + 'openNewTab': boolean; + /** + * Restrict the tool to certain contexts + * @type {Array} + * @memberof ExternalToolUpdateParams + */ + 'restrictToContexts'?: Array; + /** + * Medium of the external tool + * @type {ExternalToolMediumParams} + * @memberof ExternalToolUpdateParams + */ + 'medium'?: ExternalToolMediumParams; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/federal-state-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/federal-state-response.ts new file mode 100644 index 00000000000..f97afc8e9cb --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/federal-state-response.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CountyResponse } from './county-response'; + +/** + * + * @export + * @interface FederalStateResponse + */ +export interface FederalStateResponse { + /** + * + * @type {string} + * @memberof FederalStateResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof FederalStateResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof FederalStateResponse + */ + 'abbreviation': string; + /** + * + * @type {string} + * @memberof FederalStateResponse + */ + 'logoUrl': string; + /** + * + * @type {Array} + * @memberof FederalStateResponse + */ + 'counties': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-content-body.ts new file mode 100644 index 00000000000..14751b17286 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-content-body.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface FileContentBody + */ +export interface FileContentBody { + /** + * + * @type {string} + * @memberof FileContentBody + */ + 'caption': string; + /** + * + * @type {string} + * @memberof FileContentBody + */ + 'alternativeText': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content-body.ts new file mode 100644 index 00000000000..09558b83228 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content-body.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { FileContentBody } from './file-content-body'; + +/** + * + * @export + * @interface FileElementContentBody + */ +export interface FileElementContentBody { + /** + * + * @type {ContentElementType} + * @memberof FileElementContentBody + */ + 'type': ContentElementType; + /** + * + * @type {FileContentBody} + * @memberof FileElementContentBody + */ + 'content': FileContentBody; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content.ts new file mode 100644 index 00000000000..b589e2a6d56 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface FileElementContent + */ +export interface FileElementContent { + /** + * + * @type {string} + * @memberof FileElementContent + */ + 'caption': string; + /** + * + * @type {string} + * @memberof FileElementContent + */ + 'alternativeText': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-response.ts new file mode 100644 index 00000000000..7da93dce121 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-response.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { FileElementContent } from './file-element-content'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface FileElementResponse + */ +export interface FileElementResponse { + /** + * + * @type {string} + * @memberof FileElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof FileElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {FileElementContent} + * @memberof FileElementResponse + */ + 'content': FileElementContent; + /** + * + * @type {TimestampsResponse} + * @memberof FileElementResponse + */ + 'timestamps': TimestampsResponse; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-storage-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-storage-type.ts new file mode 100644 index 00000000000..d6b25388317 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-storage-type.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const FileStorageType = { + AWS_S3: 'awsS3' +} as const; + +export type FileStorageType = typeof FileStorageType[keyof typeof FileStorageType]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/forbidden-operation-error.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/forbidden-operation-error.ts new file mode 100644 index 00000000000..5b7768a2445 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/forbidden-operation-error.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ForbiddenOperationError + */ +export interface ForbiddenOperationError { + /** + * The response status code. + * @type {number} + * @memberof ForbiddenOperationError + */ + 'code': number; + /** + * The error type. + * @type {string} + * @memberof ForbiddenOperationError + */ + 'type': string; + /** + * The error title. + * @type {string} + * @memberof ForbiddenOperationError + */ + 'title': string; + /** + * The error message. + * @type {string} + * @memberof ForbiddenOperationError + */ + 'message': string; + /** + * The error details. + * @type {object} + * @memberof ForbiddenOperationError + */ + 'details'?: object; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/get-meta-tag-data-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/get-meta-tag-data-body.ts new file mode 100644 index 00000000000..5a4d398024c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/get-meta-tag-data-body.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface GetMetaTagDataBody + */ +export interface GetMetaTagDataBody { + /** + * + * @type {string} + * @memberof GetMetaTagDataBody + */ + 'url': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/group-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/group-list-response.ts new file mode 100644 index 00000000000..542cb612406 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/group-list-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GroupResponse } from './group-response'; + +/** + * + * @export + * @interface GroupListResponse + */ +export interface GroupListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof GroupListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof GroupListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof GroupListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof GroupListResponse + */ + 'limit': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/group-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/group-response.ts new file mode 100644 index 00000000000..12570dd6d39 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/group-response.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalSourceResponse } from './external-source-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { GroupUserResponse } from './group-user-response'; + +/** + * + * @export + * @interface GroupResponse + */ +export interface GroupResponse { + /** + * + * @type {string} + * @memberof GroupResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof GroupResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof GroupResponse + */ + 'type': GroupResponseType; + /** + * + * @type {Array} + * @memberof GroupResponse + */ + 'users': Array; + /** + * + * @type {ExternalSourceResponse} + * @memberof GroupResponse + */ + 'externalSource'?: ExternalSourceResponse; + /** + * + * @type {string} + * @memberof GroupResponse + */ + 'organizationId'?: string; +} + +export const GroupResponseType = { + CLASS: 'class', + COURSE: 'course', + OTHER: 'other' +} as const; + +export type GroupResponseType = typeof GroupResponseType[keyof typeof GroupResponseType]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/group-user-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/group-user-response.ts new file mode 100644 index 00000000000..d5d6dbb7d31 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/group-user-response.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { RoleName } from './role-name'; + +/** + * + * @export + * @interface GroupUserResponse + */ +export interface GroupUserResponse { + /** + * + * @type {string} + * @memberof GroupUserResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof GroupUserResponse + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof GroupUserResponse + */ + 'lastName': string; + /** + * + * @type {RoleName} + * @memberof GroupUserResponse + */ + 'role': RoleName; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-list-response.ts new file mode 100644 index 00000000000..4c120307216 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-list-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ImportUserResponse } from './import-user-response'; + +/** + * + * @export + * @interface ImportUserListResponse + */ +export interface ImportUserListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof ImportUserListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof ImportUserListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof ImportUserListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof ImportUserListResponse + */ + 'limit': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-response.ts new file mode 100644 index 00000000000..fb173af9b52 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-response.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { UserMatchResponse } from './user-match-response'; + +/** + * + * @export + * @interface ImportUserResponse + */ +export interface ImportUserResponse { + /** + * id reference to a import user + * @type {string} + * @memberof ImportUserResponse + */ + 'importUserId': string; + /** + * login name from external system + * @type {string} + * @memberof ImportUserResponse + */ + 'loginName': string; + /** + * external systems user firstname + * @type {string} + * @memberof ImportUserResponse + */ + 'firstName': string; + /** + * external systems user lastname + * @type {string} + * @memberof ImportUserResponse + */ + 'lastName': string; + /** + * list of user roles from external system: student, teacher, admin + * @type {Array} + * @memberof ImportUserResponse + */ + 'roleNames': Array; + /** + * names of classes the user attends from external system + * @type {Array} + * @memberof ImportUserResponse + */ + 'classNames': Array; + /** + * assignemnt to a local user account + * @type {UserMatchResponse} + * @memberof ImportUserResponse + */ + 'match'?: UserMatchResponse; + /** + * manual flag to apply it as filter + * @type {boolean} + * @memberof ImportUserResponse + */ + 'flagged': boolean; +} + +export const ImportUserResponseRoleNames = { + STUDENT: 'student', + TEACHER: 'teacher', + ADMIN: 'admin' +} as const; + +export type ImportUserResponseRoleNames = typeof ImportUserResponseRoleNames[keyof typeof ImportUserResponseRoleNames]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/index.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/index.ts new file mode 100644 index 00000000000..0bf1b8a8a44 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/index.ts @@ -0,0 +1,259 @@ +export * from './account-by-id-body-params'; +export * from './account-response'; +export * from './account-search-list-response'; +export * from './action'; +export * from './alert-response'; +export * from './api-validation-error'; +export * from './authorization-body-params'; +export * from './authorization-context-params'; +export * from './authorized-reponse'; +export * from './basic-tool-config-params'; +export * from './board-context-response'; +export * from './board-element-response'; +export * from './board-external-reference-type'; +export * from './board-layout'; +export * from './board-parent-type'; +export * from './board-response'; +export * from './board-submission-controller-create-element201-response'; +export * from './card-controller-create-element201-response'; +export * from './card-list-response'; +export * from './card-response'; +export * from './card-response-elements-inner'; +export * from './card-skeleton-response'; +export * from './change-language-params'; +export * from './class-info-response'; +export * from './class-info-search-list-response'; +export * from './class-request-context'; +export * from './class-response'; +export * from './class-sort-by'; +export * from './collaborative-text-editor-element-response'; +export * from './collaborative-text-editor-parent-type'; +export * from './collaborative-text-editor-response'; +export * from './collapsable-body-params'; +export * from './color-body-params'; +export * from './column-response'; +export * from './config-response'; +export * from './consent-request-body'; +export * from './consent-response'; +export * from './consent-session-response'; +export * from './consents-response'; +export * from './content-element-type'; +export * from './context-external-tool-body-params'; +export * from './context-external-tool-configuration-status-response'; +export * from './context-external-tool-configuration-template-list-response'; +export * from './context-external-tool-configuration-template-response'; +export * from './context-external-tool-count-per-context-response'; +export * from './context-external-tool-post-params'; +export * from './context-external-tool-response'; +export * from './context-external-tool-search-list-response'; +export * from './copy-api-response'; +export * from './county-response'; +export * from './course-export-body-params'; +export * from './course-info-response'; +export * from './course-metadata-list-response'; +export * from './course-metadata-response'; +export * from './create-board-body-params'; +export * from './create-board-response'; +export * from './create-card-body-params'; +export * from './create-content-element-body-params'; +export * from './create-media-element-body-params'; +export * from './create-news-params'; +export * from './create-submission-item-body-params'; +export * from './custom-parameter-entry-param'; +export * from './custom-parameter-entry-response'; +export * from './custom-parameter-post-params'; +export * from './custom-parameter-response'; +export * from './dashboard-grid-element-response'; +export * from './dashboard-grid-sub-element-response'; +export * from './dashboard-response'; +export * from './drawing-content-body'; +export * from './drawing-element-content'; +export * from './drawing-element-content-body'; +export * from './drawing-element-response'; +export * from './entity-not-found-error'; +export * from './external-source-response'; +export * from './external-tool-bulk-create-params'; +export * from './external-tool-content-body'; +export * from './external-tool-create-params'; +export * from './external-tool-element-content'; +export * from './external-tool-element-content-body'; +export * from './external-tool-element-response'; +export * from './external-tool-medium-params'; +export * from './external-tool-medium-response'; +export * from './external-tool-metadata-response'; +export * from './external-tool-response'; +export * from './external-tool-response-config'; +export * from './external-tool-search-list-response'; +export * from './external-tool-update-params'; +export * from './external-tool-update-params-config'; +export * from './federal-state-response'; +export * from './file-content-body'; +export * from './file-element-content'; +export * from './file-element-content-body'; +export * from './file-element-response'; +export * from './file-storage-type'; +export * from './forbidden-operation-error'; +export * from './get-meta-tag-data-body'; +export * from './group-list-response'; +export * from './group-response'; +export * from './group-user-response'; +export * from './import-user-list-response'; +export * from './import-user-response'; +export * from './layout-body-params'; +export * from './ldap-authorization-body-params'; +export * from './lesson-content-response'; +export * from './lesson-copy-api-params'; +export * from './lesson-metadata-list-response'; +export * from './lesson-metadata-response'; +export * from './lesson-response'; +export * from './link-content-body'; +export * from './link-element-content'; +export * from './link-element-content-body'; +export * from './link-element-response'; +export * from './local-authorization-body-params'; +export * from './login-request-body'; +export * from './login-response'; +export * from './lti11-tool-config-create-params'; +export * from './lti11-tool-config-update-params'; +export * from './lti-message-type'; +export * from './lti-privacy-permission'; +export * from './material-response'; +export * from './me-account-response'; +export * from './me-response'; +export * from './me-role-response'; +export * from './me-school-logo-response'; +export * from './me-school-response'; +export * from './me-user-response'; +export * from './media-available-line-element-response'; +export * from './media-available-line-response'; +export * from './media-board-colors'; +export * from './media-board-layout-type'; +export * from './media-board-response'; +export * from './media-external-tool-element-content'; +export * from './media-external-tool-element-response'; +export * from './media-line-response'; +export * from './message'; +export * from './message-origin'; +export * from './meta-tag-extractor-response'; +export * from './move-card-body-params'; +export * from './move-column-body-params'; +export * from './move-content-element-body'; +export * from './move-element-body-params'; +export * from './move-element-params'; +export * from './move-element-position-params'; +export * from './news-list-response'; +export * from './news-response'; +export * from './news-target-model'; +export * from './oauth-token-dto'; +export * from './oauth2-authorization-body-params'; +export * from './oauth2-migration-params'; +export * from './oauth2-tool-config-create-params'; +export * from './oauth2-tool-config-update-params'; +export * from './oauth-client-body'; +export * from './oauth-client-response'; +export * from './oauth-config-response'; +export * from './oidc-context-response'; +export * from './parent-consent-response'; +export * from './patch-group-params'; +export * from './patch-my-account-params'; +export * from './patch-my-password-params'; +export * from './patch-order-params'; +export * from './patch-visibility-params'; +export * from './provider-config-response'; +export * from './pseudonym-response'; +export * from './public-system-list-response'; +export * from './public-system-response'; +export * from './public-system-response-oauth-config'; +export * from './redirect-response'; +export * from './rename-body-params'; +export * from './resolved-user-response'; +export * from './rich-text'; +export * from './rich-text-content-body'; +export * from './rich-text-element-content'; +export * from './rich-text-element-content-body'; +export * from './rich-text-element-response'; +export * from './role-name'; +export * from './school-controller-get-provisioning-options200-response'; +export * from './school-exists-response'; +export * from './school-external-tool-configuration-status-response'; +export * from './school-external-tool-configuration-template-list-response'; +export * from './school-external-tool-configuration-template-response'; +export * from './school-external-tool-metadata-response'; +export * from './school-external-tool-post-params'; +export * from './school-external-tool-response'; +export * from './school-external-tool-search-list-response'; +export * from './school-for-external-invite-response'; +export * from './school-for-ldap-login-response'; +export * from './school-info-response'; +export * from './school-logo'; +export * from './school-permissions-params'; +export * from './school-purpose'; +export * from './school-response'; +export * from './school-system-response'; +export * from './school-update-body-params'; +export * from './school-year-query-type'; +export * from './school-year-response'; +export * from './schul-conne-xprovisioning-options-params'; +export * from './schul-conne-xprovisioning-options-response'; +export * from './schulcloud-theme'; +export * from './set-height-body-params'; +export * from './share-token-body-params'; +export * from './share-token-import-body-params'; +export * from './share-token-info-response'; +export * from './share-token-payload-response'; +export * from './share-token-response'; +export * from './single-column-board-response'; +export * from './student-permission-params'; +export * from './submission-container-content-body'; +export * from './submission-container-element-content'; +export * from './submission-container-element-content-body'; +export * from './submission-container-element-response'; +export * from './submission-item-response'; +export * from './submission-item-response-elements-inner'; +export * from './submission-status-list-response'; +export * from './submission-status-response'; +export * from './submissions-response'; +export * from './successful-response'; +export * from './system-for-ldap-login-response'; +export * from './target-info-response'; +export * from './task-copy-api-params'; +export * from './task-list-response'; +export * from './task-response'; +export * from './task-status-response'; +export * from './teacher-permission-params'; +export * from './team-permissions-body'; +export * from './timestamps-response'; +export * from './timezone'; +export * from './tool-config-type'; +export * from './tool-context-type'; +export * from './tool-context-types-list-response'; +export * from './tool-launch-request-response'; +export * from './tool-reference-list-response'; +export * from './tool-reference-response'; +export * from './update-board-title-params'; +export * from './update-element-content-body-params'; +export * from './update-element-content-body-params-data'; +export * from './update-flag-params'; +export * from './update-match-params'; +export * from './update-news-params'; +export * from './update-submission-item-body-params'; +export * from './user-consent-response'; +export * from './user-data-response'; +export * from './user-info-response'; +export * from './user-list-response'; +export * from './user-login-migration-mandatory-params'; +export * from './user-login-migration-response'; +export * from './user-login-migration-search-list-response'; +export * from './user-match-list-response'; +export * from './user-match-response'; +export * from './user-response'; +export * from './validation-error'; +export * from './video-conference-create-params'; +export * from './video-conference-info-response'; +export * from './video-conference-join-response'; +export * from './video-conference-options-response'; +export * from './video-conference-scope'; +export * from './video-conference-state-response'; +export * from './visibility-body-params'; +export * from './visibility-settings-response'; +export * from './years-response'; diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/layout-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/layout-body-params.ts new file mode 100644 index 00000000000..7b878f15ed3 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/layout-body-params.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MediaBoardLayoutType } from './media-board-layout-type'; + +/** + * + * @export + * @interface LayoutBodyParams + */ +export interface LayoutBodyParams { + /** + * + * @type {MediaBoardLayoutType} + * @memberof LayoutBodyParams + */ + 'layout': MediaBoardLayoutType; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/ldap-authorization-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/ldap-authorization-body-params.ts new file mode 100644 index 00000000000..d1d7a408ce7 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/ldap-authorization-body-params.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LdapAuthorizationBodyParams + */ +export interface LdapAuthorizationBodyParams { + /** + * + * @type {string} + * @memberof LdapAuthorizationBodyParams + */ + 'systemId': string; + /** + * + * @type {string} + * @memberof LdapAuthorizationBodyParams + */ + 'username': string; + /** + * + * @type {string} + * @memberof LdapAuthorizationBodyParams + */ + 'password': string; + /** + * + * @type {string} + * @memberof LdapAuthorizationBodyParams + */ + 'schoolId': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-content-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-content-response.ts new file mode 100644 index 00000000000..0f3f4164f41 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-content-response.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LessonContentResponse + */ +export interface LessonContentResponse { + /** + * + * @type {object} + * @memberof LessonContentResponse + */ + 'content': object; + /** + * The id of the Material entity + * @type {string} + * @memberof LessonContentResponse + * @deprecated + */ + '_id': string; + /** + * The id of the Material entity + * @type {string} + * @memberof LessonContentResponse + */ + 'id': string; + /** + * Title of the Material entity + * @type {string} + * @memberof LessonContentResponse + */ + 'title': string; + /** + * + * @type {string} + * @memberof LessonContentResponse + */ + 'component': LessonContentResponseComponent; + /** + * + * @type {boolean} + * @memberof LessonContentResponse + */ + 'hidden': boolean; +} + +export const LessonContentResponseComponent = { + ETHERPAD: 'Etherpad', + GEO_GEBRA: 'geoGebra', + INTERNAL: 'internal', + RESOURCES: 'resources', + TEXT: 'text', + NE_XBOARD: 'neXboard' +} as const; + +export type LessonContentResponseComponent = typeof LessonContentResponseComponent[keyof typeof LessonContentResponseComponent]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-copy-api-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-copy-api-params.ts new file mode 100644 index 00000000000..ffe582e2742 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-copy-api-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LessonCopyApiParams + */ +export interface LessonCopyApiParams { + /** + * Destination course parent Id the lesson is copied to + * @type {string} + * @memberof LessonCopyApiParams + */ + 'courseId'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-list-response.ts new file mode 100644 index 00000000000..e93a9d8feb6 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-list-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LessonMetadataResponse } from './lesson-metadata-response'; + +/** + * + * @export + * @interface LessonMetadataListResponse + */ +export interface LessonMetadataListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof LessonMetadataListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof LessonMetadataListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof LessonMetadataListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof LessonMetadataListResponse + */ + 'limit': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-response.ts new file mode 100644 index 00000000000..f1382273cf9 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LessonMetadataResponse + */ +export interface LessonMetadataResponse { + /** + * The id of the Lesson entity + * @type {string} + * @memberof LessonMetadataResponse + */ + '_id': string; + /** + * Name of the Lesson entity + * @type {string} + * @memberof LessonMetadataResponse + */ + 'name': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-response.ts new file mode 100644 index 00000000000..a77cb88c1af --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-response.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LessonContentResponse } from './lesson-content-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { MaterialResponse } from './material-response'; + +/** + * + * @export + * @interface LessonResponse + */ +export interface LessonResponse { + /** + * The id of the Lesson entity + * @type {string} + * @memberof LessonResponse + * @deprecated + */ + '_id': string; + /** + * The id of the Lesson entity + * @type {string} + * @memberof LessonResponse + */ + 'id': string; + /** + * Name of the Lesson entity + * @type {string} + * @memberof LessonResponse + */ + 'name': string; + /** + * The id of the Course entity + * @type {string} + * @memberof LessonResponse + */ + 'courseId'?: string; + /** + * The id of the Course-group entity + * @type {string} + * @memberof LessonResponse + */ + 'courseGroupId'?: string; + /** + * Hidden status of the Lesson entity + * @type {boolean} + * @memberof LessonResponse + */ + 'hidden': boolean; + /** + * Position of the Lesson entity + * @type {number} + * @memberof LessonResponse + */ + 'position': number; + /** + * Contents of the Lesson entity + * @type {Array} + * @memberof LessonResponse + */ + 'contents': Array; + /** + * Materials of the Lesson entity + * @type {Array} + * @memberof LessonResponse + */ + 'materials': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/link-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/link-content-body.ts new file mode 100644 index 00000000000..3ff296bf3a5 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/link-content-body.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LinkContentBody + */ +export interface LinkContentBody { + /** + * + * @type {string} + * @memberof LinkContentBody + */ + 'url': string; + /** + * + * @type {string} + * @memberof LinkContentBody + */ + 'title': string; + /** + * + * @type {string} + * @memberof LinkContentBody + */ + 'description': string; + /** + * + * @type {string} + * @memberof LinkContentBody + */ + 'imageUrl': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content-body.ts new file mode 100644 index 00000000000..9a36e2c699a --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content-body.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { LinkContentBody } from './link-content-body'; + +/** + * + * @export + * @interface LinkElementContentBody + */ +export interface LinkElementContentBody { + /** + * + * @type {ContentElementType} + * @memberof LinkElementContentBody + */ + 'type': ContentElementType; + /** + * + * @type {LinkContentBody} + * @memberof LinkElementContentBody + */ + 'content': LinkContentBody; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content.ts new file mode 100644 index 00000000000..55aa37a7b06 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LinkElementContent + */ +export interface LinkElementContent { + /** + * + * @type {string} + * @memberof LinkElementContent + */ + 'url': string; + /** + * + * @type {string} + * @memberof LinkElementContent + */ + 'title': string; + /** + * + * @type {string} + * @memberof LinkElementContent + */ + 'description'?: string; + /** + * + * @type {string} + * @memberof LinkElementContent + */ + 'imageUrl'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-response.ts new file mode 100644 index 00000000000..0311f6e3575 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-response.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { LinkElementContent } from './link-element-content'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface LinkElementResponse + */ +export interface LinkElementResponse { + /** + * + * @type {string} + * @memberof LinkElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof LinkElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {LinkElementContent} + * @memberof LinkElementResponse + */ + 'content': LinkElementContent; + /** + * + * @type {TimestampsResponse} + * @memberof LinkElementResponse + */ + 'timestamps': TimestampsResponse; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/local-authorization-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/local-authorization-body-params.ts new file mode 100644 index 00000000000..eb393187706 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/local-authorization-body-params.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LocalAuthorizationBodyParams + */ +export interface LocalAuthorizationBodyParams { + /** + * + * @type {string} + * @memberof LocalAuthorizationBodyParams + */ + 'username': string; + /** + * + * @type {string} + * @memberof LocalAuthorizationBodyParams + */ + 'password': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/login-request-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/login-request-body.ts new file mode 100644 index 00000000000..c2cd6676cc6 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/login-request-body.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LoginRequestBody + */ +export interface LoginRequestBody { + /** + * The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to request_denied. + * @type {string} + * @memberof LoginRequestBody + */ + 'error'?: string; + /** + * Debug contains information to help resolve the problem as a developer. Usually not exposed to the public but only in the server logs. + * @type {string} + * @memberof LoginRequestBody + */ + 'error_debug'?: string; + /** + * Description of the error in a human readable format. + * @type {string} + * @memberof LoginRequestBody + */ + 'error_description'?: string; + /** + * Hint to help resolve the error. + * @type {string} + * @memberof LoginRequestBody + */ + 'error_hint'?: string; + /** + * Represents the HTTP status code of the error (e.g. 401 or 403). Defaults to 400. + * @type {number} + * @memberof LoginRequestBody + */ + 'status_code'?: number; + /** + * Remember, if set to true, tells the oauth provider to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. + * @type {boolean} + * @memberof LoginRequestBody + */ + 'remember'?: boolean; + /** + * RememberFor sets how long the consent authorization should be remembered for in seconds. If set to 0, the authorization will be remembered indefinitely. + * @type {number} + * @memberof LoginRequestBody + */ + 'remember_for'?: number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/login-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/login-response.ts new file mode 100644 index 00000000000..33217e821a0 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/login-response.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { OidcContextResponse } from './oidc-context-response'; + +/** + * + * @export + * @interface LoginResponse + */ +export interface LoginResponse { + /** + * Id of the corresponding client. + * @type {string} + * @memberof LoginResponse + */ + 'client_id': string; + /** + * The id/challenge of the consent login request. + * @type {object} + * @memberof LoginResponse + */ + 'challenge': object; + /** + * + * @type {object} + * @memberof LoginResponse + */ + 'client': object; + /** + * + * @type {OidcContextResponse} + * @memberof LoginResponse + */ + 'oidc_context': OidcContextResponse; + /** + * The original oauth2.0 authorization url request by the client. + * @type {string} + * @memberof LoginResponse + */ + 'request_url': string; + /** + * + * @type {Array} + * @memberof LoginResponse + */ + 'requested_access_token_audience': Array; + /** + * The request scopes of the login request. + * @type {Array} + * @memberof LoginResponse + */ + 'requested_scope'?: Array; + /** + * The login session id. This parameter is used as sid for the oidc front-/backchannel logout. + * @type {string} + * @memberof LoginResponse + */ + 'session_id': string; + /** + * Skip, if true, implies that the client has requested the same scopes from the same user previously. + * @type {object} + * @memberof LoginResponse + */ + 'skip': object; + /** + * User id of the end-user that is authenticated. + * @type {object} + * @memberof LoginResponse + */ + 'subject': object; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lti-message-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lti-message-type.ts new file mode 100644 index 00000000000..345f5f857c8 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/lti-message-type.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const LtiMessageType = { + BASIC_LTI_LAUNCH_REQUEST: 'basic-lti-launch-request' +} as const; + +export type LtiMessageType = typeof LtiMessageType[keyof typeof LtiMessageType]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lti-privacy-permission.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lti-privacy-permission.ts new file mode 100644 index 00000000000..ebd9fd70e30 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/lti-privacy-permission.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const LtiPrivacyPermission = { + ANONYMOUS: 'anonymous', + E_MAIL: 'e-mail', + NAME: 'name', + PUBLIC: 'public', + PSEUDONYMOUS: 'pseudonymous' +} as const; + +export type LtiPrivacyPermission = typeof LtiPrivacyPermission[keyof typeof LtiPrivacyPermission]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-create-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-create-params.ts new file mode 100644 index 00000000000..ab19387417d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-create-params.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LtiMessageType } from './lti-message-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { LtiPrivacyPermission } from './lti-privacy-permission'; +// May contain unused imports in some cases +// @ts-ignore +import type { ToolConfigType } from './tool-config-type'; + +/** + * + * @export + * @interface Lti11ToolConfigCreateParams + */ +export interface Lti11ToolConfigCreateParams { + /** + * + * @type {ToolConfigType} + * @memberof Lti11ToolConfigCreateParams + */ + 'type': ToolConfigType; + /** + * + * @type {string} + * @memberof Lti11ToolConfigCreateParams + */ + 'baseUrl': string; + /** + * + * @type {string} + * @memberof Lti11ToolConfigCreateParams + */ + 'key': string; + /** + * + * @type {string} + * @memberof Lti11ToolConfigCreateParams + */ + 'secret': string; + /** + * + * @type {LtiMessageType} + * @memberof Lti11ToolConfigCreateParams + */ + 'lti_message_type': LtiMessageType; + /** + * + * @type {LtiPrivacyPermission} + * @memberof Lti11ToolConfigCreateParams + */ + 'privacy_permission': LtiPrivacyPermission; + /** + * + * @type {string} + * @memberof Lti11ToolConfigCreateParams + */ + 'launch_presentation_locale': string; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-update-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-update-params.ts new file mode 100644 index 00000000000..b2ca6817c09 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-update-params.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LtiMessageType } from './lti-message-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { LtiPrivacyPermission } from './lti-privacy-permission'; +// May contain unused imports in some cases +// @ts-ignore +import type { ToolConfigType } from './tool-config-type'; + +/** + * + * @export + * @interface Lti11ToolConfigUpdateParams + */ +export interface Lti11ToolConfigUpdateParams { + /** + * + * @type {ToolConfigType} + * @memberof Lti11ToolConfigUpdateParams + */ + 'type': ToolConfigType; + /** + * + * @type {string} + * @memberof Lti11ToolConfigUpdateParams + */ + 'baseUrl': string; + /** + * + * @type {string} + * @memberof Lti11ToolConfigUpdateParams + */ + 'key': string; + /** + * + * @type {string} + * @memberof Lti11ToolConfigUpdateParams + */ + 'secret'?: string; + /** + * + * @type {LtiMessageType} + * @memberof Lti11ToolConfigUpdateParams + */ + 'lti_message_type': LtiMessageType; + /** + * + * @type {LtiPrivacyPermission} + * @memberof Lti11ToolConfigUpdateParams + */ + 'privacy_permission': LtiPrivacyPermission; + /** + * + * @type {string} + * @memberof Lti11ToolConfigUpdateParams + */ + 'launch_presentation_locale': string; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/material-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/material-response.ts new file mode 100644 index 00000000000..dae92cdce6a --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/material-response.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MaterialResponse + */ +export interface MaterialResponse { + /** + * The id of the Material entity + * @type {string} + * @memberof MaterialResponse + */ + '_id': string; + /** + * The id of the Material entity + * @type {string} + * @memberof MaterialResponse + */ + 'id': string; + /** + * Title of the Material entity + * @type {string} + * @memberof MaterialResponse + */ + 'title': string; + /** + * ? + * @type {Array} + * @memberof MaterialResponse + */ + 'relatedResources': Array; + /** + * Url of the material + * @type {string} + * @memberof MaterialResponse + */ + 'url': string; + /** + * Position of the Lesson entity + * @type {string} + * @memberof MaterialResponse + */ + 'client': string; + /** + * Description of the material license + * @type {Array} + * @memberof MaterialResponse + */ + 'license': Array; + /** + * For material from Merlin, the Merlin reference + * @type {string} + * @memberof MaterialResponse + */ + 'merlinReference': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-account-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-account-response.ts new file mode 100644 index 00000000000..9cc817bd0ca --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-account-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MeAccountResponse + */ +export interface MeAccountResponse { + /** + * + * @type {string} + * @memberof MeAccountResponse + */ + 'id': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-response.ts new file mode 100644 index 00000000000..6e7cae2389e --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-response.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LanguageType } from './language-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { MeAccountResponse } from './me-account-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { MeRoleResponse } from './me-role-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { MeSchoolResponse } from './me-school-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { MeUserResponse } from './me-user-response'; + +/** + * + * @export + * @interface MeResponse + */ +export interface MeResponse { + /** + * + * @type {MeSchoolResponse} + * @memberof MeResponse + */ + 'school': MeSchoolResponse; + /** + * + * @type {MeUserResponse} + * @memberof MeResponse + */ + 'user': MeUserResponse; + /** + * + * @type {Array} + * @memberof MeResponse + */ + 'roles': Array; + /** + * + * @type {Array} + * @memberof MeResponse + */ + 'permissions': Array; + /** + * + * @type {LanguageType} + * @memberof MeResponse + */ + 'language': LanguageType; + /** + * + * @type {MeAccountResponse} + * @memberof MeResponse + */ + 'account': MeAccountResponse; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-role-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-role-response.ts new file mode 100644 index 00000000000..b0b7da90eee --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-role-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MeRoleResponse + */ +export interface MeRoleResponse { + /** + * + * @type {string} + * @memberof MeRoleResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof MeRoleResponse + */ + 'name': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-logo-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-logo-response.ts new file mode 100644 index 00000000000..9f926f9ab60 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-logo-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MeSchoolLogoResponse + */ +export interface MeSchoolLogoResponse { + /** + * + * @type {string} + * @memberof MeSchoolLogoResponse + */ + 'url'?: string; + /** + * + * @type {string} + * @memberof MeSchoolLogoResponse + */ + 'name'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-response.ts new file mode 100644 index 00000000000..ec3fad83c66 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MeSchoolLogoResponse } from './me-school-logo-response'; + +/** + * + * @export + * @interface MeSchoolResponse + */ +export interface MeSchoolResponse { + /** + * + * @type {string} + * @memberof MeSchoolResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof MeSchoolResponse + */ + 'name': string; + /** + * + * @type {MeSchoolLogoResponse} + * @memberof MeSchoolResponse + */ + 'logo': MeSchoolLogoResponse; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-user-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-user-response.ts new file mode 100644 index 00000000000..989c37d9dec --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-user-response.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MeUserResponse + */ +export interface MeUserResponse { + /** + * + * @type {string} + * @memberof MeUserResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof MeUserResponse + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof MeUserResponse + */ + 'lastName': string; + /** + * + * @type {string} + * @memberof MeUserResponse + */ + 'customAvatarBackgroundColor'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-element-response.ts new file mode 100644 index 00000000000..e751162fb7c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-element-response.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MediaAvailableLineElementResponse + */ +export interface MediaAvailableLineElementResponse { + /** + * School External tool id of the media available line element + * @type {string} + * @memberof MediaAvailableLineElementResponse + */ + 'schoolExternalToolId': string; + /** + * Name of the media available line element + * @type {string} + * @memberof MediaAvailableLineElementResponse + */ + 'name': string; + /** + * Description of the media available line element + * @type {string} + * @memberof MediaAvailableLineElementResponse + */ + 'description'?: string; + /** + * Logo url of the media available line element + * @type {string} + * @memberof MediaAvailableLineElementResponse + */ + 'logoUrl'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-response.ts new file mode 100644 index 00000000000..8793665a854 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-response.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MediaAvailableLineElementResponse } from './media-available-line-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { MediaBoardColors } from './media-board-colors'; + +/** + * + * @export + * @interface MediaAvailableLineResponse + */ +export interface MediaAvailableLineResponse { + /** + * Available media elements in the line + * @type {Array} + * @memberof MediaAvailableLineResponse + */ + 'elements': Array; + /** + * + * @type {MediaBoardColors} + * @memberof MediaAvailableLineResponse + */ + 'backgroundColor': MediaBoardColors; + /** + * Collapse available media line + * @type {boolean} + * @memberof MediaAvailableLineResponse + */ + 'collapsed': boolean; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-colors.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-colors.ts new file mode 100644 index 00000000000..f751ae42b09 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-colors.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const MediaBoardColors = { + TRANSPARENT: 'transparent', + RED: 'red', + PINK: 'pink', + PURPLE: 'purple', + DEEP_PURPLE: 'deepPurple', + INDIGO: 'indigo', + BLUE: 'blue', + LIGHT_BLUE: 'lightBlue', + CYAN: 'cyan', + TEAL: 'teal', + GREEN: 'green', + LIGHT_GREEN: 'lightGreen', + LIME: 'lime', + YELLOW: 'yellow', + AMBER: 'amber', + ORANGE: 'orange', + DEEP_ORANGE: 'deepOrange', + BROWN: 'brown', + GREY: 'grey', + BLUE_GREY: 'blueGrey' +} as const; + +export type MediaBoardColors = typeof MediaBoardColors[keyof typeof MediaBoardColors]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-layout-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-layout-type.ts new file mode 100644 index 00000000000..64fbae471a9 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-layout-type.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const MediaBoardLayoutType = { + GRID: 'grid', + LIST: 'list' +} as const; + +export type MediaBoardLayoutType = typeof MediaBoardLayoutType[keyof typeof MediaBoardLayoutType]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-response.ts new file mode 100644 index 00000000000..002ddb653f8 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-response.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MediaBoardLayoutType } from './media-board-layout-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { MediaLineResponse } from './media-line-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface MediaBoardResponse + */ +export interface MediaBoardResponse { + /** + * The id of the media board + * @type {string} + * @memberof MediaBoardResponse + */ + 'id': string; + /** + * The lines of the media board + * @type {Array} + * @memberof MediaBoardResponse + */ + 'lines': Array; + /** + * The timestamps of the media board + * @type {TimestampsResponse} + * @memberof MediaBoardResponse + */ + 'timestamps': TimestampsResponse; + /** + * + * @type {MediaBoardLayoutType} + * @memberof MediaBoardResponse + */ + 'layout': MediaBoardLayoutType; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-content.ts new file mode 100644 index 00000000000..172329e136c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-content.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MediaExternalToolElementContent + */ +export interface MediaExternalToolElementContent { + /** + * The id of the context external tool + * @type {string} + * @memberof MediaExternalToolElementContent + */ + 'contextExternalToolId': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-response.ts new file mode 100644 index 00000000000..488b9a727a0 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-response.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MediaExternalToolElementContent } from './media-external-tool-element-content'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface MediaExternalToolElementResponse + */ +export interface MediaExternalToolElementResponse { + /** + * The id of the media external tool element + * @type {string} + * @memberof MediaExternalToolElementResponse + */ + 'id': string; + /** + * The content of the media external tool element + * @type {MediaExternalToolElementContent} + * @memberof MediaExternalToolElementResponse + */ + 'content': MediaExternalToolElementContent; + /** + * The timestamps of the media external tool element + * @type {TimestampsResponse} + * @memberof MediaExternalToolElementResponse + */ + 'timestamps': TimestampsResponse; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-line-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-line-response.ts new file mode 100644 index 00000000000..ebfbee670c6 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-line-response.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MediaBoardColors } from './media-board-colors'; +// May contain unused imports in some cases +// @ts-ignore +import type { MediaExternalToolElementResponse } from './media-external-tool-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface MediaLineResponse + */ +export interface MediaLineResponse { + /** + * The id of the media line + * @type {string} + * @memberof MediaLineResponse + */ + 'id': string; + /** + * The title of the media line + * @type {string} + * @memberof MediaLineResponse + */ + 'title': string; + /** + * The elements of the media line + * @type {Array} + * @memberof MediaLineResponse + */ + 'elements': Array; + /** + * The timestamps of the media line + * @type {TimestampsResponse} + * @memberof MediaLineResponse + */ + 'timestamps': TimestampsResponse; + /** + * + * @type {MediaBoardColors} + * @memberof MediaLineResponse + */ + 'backgroundColor': MediaBoardColors; + /** + * Collapse the media line + * @type {boolean} + * @memberof MediaLineResponse + */ + 'collapsed': boolean; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/message-origin.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/message-origin.ts new file mode 100644 index 00000000000..119a105619e --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/message-origin.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MessageOrigin + */ +export interface MessageOrigin { + /** + * + * @type {number} + * @memberof MessageOrigin + */ + 'message_id': number; + /** + * + * @type {string} + * @memberof MessageOrigin + */ + 'page': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/message.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/message.ts new file mode 100644 index 00000000000..bb2920c3987 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/message.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MessageOrigin } from './message-origin'; + +/** + * + * @export + * @interface Message + */ +export interface Message { + /** + * + * @type {string} + * @memberof Message + */ + 'title': string; + /** + * + * @type {string} + * @memberof Message + */ + 'text': string; + /** + * + * @type {string} + * @memberof Message + */ + 'timestamp': string; + /** + * + * @type {MessageOrigin} + * @memberof Message + */ + 'origin': MessageOrigin; + /** + * + * @type {string} + * @memberof Message + */ + 'url': string; + /** + * + * @type {string} + * @memberof Message + */ + 'status': string; + /** + * + * @type {string} + * @memberof Message + */ + 'createdAt': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/meta-tag-extractor-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/meta-tag-extractor-response.ts new file mode 100644 index 00000000000..19f8a63da73 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/meta-tag-extractor-response.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MetaTagExtractorResponse + */ +export interface MetaTagExtractorResponse { + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'url': string; + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'title': string; + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'description': string; + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'imageUrl': string; + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'type': string; + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'parentTitle': string; + /** + * + * @type {string} + * @memberof MetaTagExtractorResponse + */ + 'parentType': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-card-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-card-body-params.ts new file mode 100644 index 00000000000..45d20645563 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-card-body-params.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MoveCardBodyParams + */ +export interface MoveCardBodyParams { + /** + * + * @type {string} + * @memberof MoveCardBodyParams + */ + 'toColumnId': string; + /** + * + * @type {number} + * @memberof MoveCardBodyParams + */ + 'toPosition': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-column-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-column-body-params.ts new file mode 100644 index 00000000000..0f207cf0c7a --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-column-body-params.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MoveColumnBodyParams + */ +export interface MoveColumnBodyParams { + /** + * The id of the target board + * @type {string} + * @memberof MoveColumnBodyParams + */ + 'toBoardId': string; + /** + * + * @type {number} + * @memberof MoveColumnBodyParams + */ + 'toPosition': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-content-element-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-content-element-body.ts new file mode 100644 index 00000000000..d02c346c8c6 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-content-element-body.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MoveContentElementBody + */ +export interface MoveContentElementBody { + /** + * + * @type {string} + * @memberof MoveContentElementBody + */ + 'toCardId': string; + /** + * + * @type {number} + * @memberof MoveContentElementBody + */ + 'toPosition': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-body-params.ts new file mode 100644 index 00000000000..f85bc628169 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-body-params.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MoveElementBodyParams + */ +export interface MoveElementBodyParams { + /** + * The id of the line where the element is moved to + * @type {string} + * @memberof MoveElementBodyParams + */ + 'toLineId': string; + /** + * The position where the element is moved to + * @type {number} + * @memberof MoveElementBodyParams + */ + 'toPosition': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-params.ts new file mode 100644 index 00000000000..2c4a38fae19 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-params.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MoveElementPositionParams } from './move-element-position-params'; + +/** + * + * @export + * @interface MoveElementParams + */ +export interface MoveElementParams { + /** + * + * @type {MoveElementPositionParams} + * @memberof MoveElementParams + */ + 'from': MoveElementPositionParams; + /** + * + * @type {MoveElementPositionParams} + * @memberof MoveElementParams + */ + 'to': MoveElementPositionParams; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-position-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-position-params.ts new file mode 100644 index 00000000000..08f7416f559 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-position-params.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MoveElementPositionParams + */ +export interface MoveElementPositionParams { + /** + * + * @type {number} + * @memberof MoveElementPositionParams + */ + 'x': number; + /** + * + * @type {number} + * @memberof MoveElementPositionParams + */ + 'y': number; + /** + * used to identify a position within a group. + * @type {number} + * @memberof MoveElementPositionParams + */ + 'groupIndex'?: number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/news-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/news-list-response.ts new file mode 100644 index 00000000000..8f98f5184dd --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/news-list-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { NewsResponse } from './news-response'; + +/** + * + * @export + * @interface NewsListResponse + */ +export interface NewsListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof NewsListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof NewsListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof NewsListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof NewsListResponse + */ + 'limit': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/news-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/news-response.ts new file mode 100644 index 00000000000..19fa5239851 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/news-response.ts @@ -0,0 +1,134 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { NewsTargetModel } from './news-target-model'; +// May contain unused imports in some cases +// @ts-ignore +import type { SchoolInfoResponse } from './school-info-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { TargetInfoResponse } from './target-info-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { UserInfoResponse } from './user-info-response'; + +/** + * + * @export + * @interface NewsResponse + */ +export interface NewsResponse { + /** + * The id of the News entity + * @type {string} + * @memberof NewsResponse + */ + 'id': string; + /** + * Title of the News entity + * @type {string} + * @memberof NewsResponse + */ + 'title': string; + /** + * Content of the News entity + * @type {string} + * @memberof NewsResponse + */ + 'content': string; + /** + * The point in time from when the News entity schould be displayed + * @type {string} + * @memberof NewsResponse + */ + 'displayAt': string; + /** + * The type of source of the News entity + * @type {string} + * @memberof NewsResponse + */ + 'source'?: NewsResponseSource; + /** + * The source description of the News entity + * @type {string} + * @memberof NewsResponse + */ + 'sourceDescription'?: string; + /** + * + * @type {NewsTargetModel} + * @memberof NewsResponse + */ + 'targetModel': NewsTargetModel; + /** + * Specific target id to which the News entity is related + * @type {string} + * @memberof NewsResponse + */ + 'targetId': string; + /** + * The target object with id and name, could be the school, team, or course name + * @type {TargetInfoResponse} + * @memberof NewsResponse + */ + 'target': TargetInfoResponse; + /** + * The School ownership + * @type {SchoolInfoResponse} + * @memberof NewsResponse + */ + 'school': SchoolInfoResponse; + /** + * Reference to the User that created the News entity + * @type {UserInfoResponse} + * @memberof NewsResponse + */ + 'creator': UserInfoResponse; + /** + * Reference to the User that updated the News entity + * @type {UserInfoResponse} + * @memberof NewsResponse + */ + 'updater'?: UserInfoResponse; + /** + * The creation timestamp + * @type {string} + * @memberof NewsResponse + */ + 'createdAt': string; + /** + * The update timestamp + * @type {string} + * @memberof NewsResponse + */ + 'updatedAt': string; + /** + * List of permissions the current user has for the News entity + * @type {Array} + * @memberof NewsResponse + */ + 'permissions': Array; +} + +export const NewsResponseSource = { + INTERNAL: 'internal', + RSS: 'rss' +} as const; + +export type NewsResponseSource = typeof NewsResponseSource[keyof typeof NewsResponseSource]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/news-target-model.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/news-target-model.ts new file mode 100644 index 00000000000..302adaeaee1 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/news-target-model.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const NewsTargetModel = { + SCHOOLS: 'schools', + COURSES: 'courses', + TEAMS: 'teams' +} as const; + +export type NewsTargetModel = typeof NewsTargetModel[keyof typeof NewsTargetModel]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-body.ts new file mode 100644 index 00000000000..4fba05a5179 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-body.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface OauthClientBody + */ +export interface OauthClientBody { + /** + * The Oauth2 client id. + * @type {string} + * @memberof OauthClientBody + */ + 'client_id'?: string; + /** + * The Oauth2 client name. + * @type {string} + * @memberof OauthClientBody + */ + 'client_name'?: string; + /** + * The Oauth2 client secret. + * @type {string} + * @memberof OauthClientBody + */ + 'client_secret'?: string; + /** + * The allowed redirect urls of the Oauth2 client. + * @type {Array} + * @memberof OauthClientBody + */ + 'redirect_uris'?: Array; + /** + * Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none. + * @type {string} + * @memberof OauthClientBody + */ + 'token_endpoint_auth_method'?: string; + /** + * SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include pairwise and public. + * @type {string} + * @memberof OauthClientBody + */ + 'subject_type'?: string; + /** + * Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. + * @type {string} + * @memberof OauthClientBody + */ + 'scope'?: string; + /** + * Thr frontchannel logout uri. + * @type {string} + * @memberof OauthClientBody + */ + 'frontchannel_logout_uri'?: string; + /** + * The grant types of the Oauth2 client. + * @type {Array} + * @memberof OauthClientBody + */ + 'grant_types'?: Array; + /** + * The response types of the Oauth2 client. + * @type {Array} + * @memberof OauthClientBody + */ + 'response_types'?: Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-response.ts new file mode 100644 index 00000000000..d9cf3d0fd9b --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-response.ts @@ -0,0 +1,300 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface OauthClientResponse + */ +export interface OauthClientResponse { + /** + * + * @type {Array} + * @memberof OauthClientResponse + */ + 'allowed_cors_origins'?: Array; + /** + * + * @type {Array} + * @memberof OauthClientResponse + */ + 'audience': Array; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'authorization_code_grant_access_token_lifespan': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'authorization_code_grant_id_token_lifespan': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'authorization_code_grant_refresh_token_lifespan': string; + /** + * Boolean value specifying whether the RP requires that a sid (session ID) Claim. + * @type {boolean} + * @memberof OauthClientResponse + */ + 'backchannel_logout_session_required': boolean; + /** + * RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. + * @type {string} + * @memberof OauthClientResponse + */ + 'backchannel_logout_uri': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'client_credentials_grant_access_token_lifespan': string; + /** + * Id of the client. + * @type {string} + * @memberof OauthClientResponse + */ + 'client_id': string; + /** + * Human-readable string name of the client presented to the end-user. + * @type {string} + * @memberof OauthClientResponse + */ + 'client_name': string; + /** + * SecretExpiresAt is an integer holding the time at which the client secret will expire or 0 if it will not expire. + * @type {number} + * @memberof OauthClientResponse + */ + 'client_secret_expires_at': number; + /** + * ClientUri is an URL string of a web page providing information about the client. + * @type {string} + * @memberof OauthClientResponse + */ + 'client_uri': string; + /** + * + * @type {Array} + * @memberof OauthClientResponse + */ + 'contacts'?: Array; + /** + * CreatedAt returns the timestamp of the clients creation. + * @type {string} + * @memberof OauthClientResponse + */ + 'created_at': string; + /** + * Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters. + * @type {boolean} + * @memberof OauthClientResponse + */ + 'frontchannel_logout_session_required': boolean; + /** + * RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. + * @type {string} + * @memberof OauthClientResponse + */ + 'frontchannel_logout_uri': string; + /** + * The grant types of the Oauth2 client. + * @type {Array} + * @memberof OauthClientResponse + */ + 'grant_types'?: Array; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'implicit_grant_access_token_lifespan': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'implicit_grant_id_token_lifespan': string; + /** + * + * @type {object} + * @memberof OauthClientResponse + */ + 'jwks': object; + /** + * URL for the clients JSON Web Key Set [JWK] document + * @type {string} + * @memberof OauthClientResponse + */ + 'jwks_uri': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'jwt_bearer_grant_access_token_lifespan': string; + /** + * LogoUri is an URL string that references a logo for the client. + * @type {string} + * @memberof OauthClientResponse + */ + 'logo_uri': string; + /** + * + * @type {object} + * @memberof OauthClientResponse + */ + 'metadata': object; + /** + * Owner is a string identifying the owner of the OAuth 2.0 Client. + * @type {string} + * @memberof OauthClientResponse + */ + 'owner': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'password_grant_access_token_lifespan': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'password_grant_refresh_token_lifespan': string; + /** + * PolicyUri is a URL string that points to a human-readable privacy policy document + * @type {string} + * @memberof OauthClientResponse + */ + 'policy_uri': string; + /** + * + * @type {Array} + * @memberof OauthClientResponse + */ + 'post_logout_redirect_uris'?: Array; + /** + * + * @type {Array} + * @memberof OauthClientResponse + */ + 'redirect_uris'?: Array; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'refresh_token_grant_access_token_lifespan': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'refresh_token_grant_id_token_lifespan': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'refresh_token_grant_refresh_token_lifespan': string; + /** + * RegistrationAccessToken can be used to update, get, or delete the OAuth2 Client. + * @type {string} + * @memberof OauthClientResponse + */ + 'registration_access_token': string; + /** + * RegistrationClientURI is the URL used to update, get, or delete the OAuth2 Client. + * @type {string} + * @memberof OauthClientResponse + */ + 'registration_client_uri': string; + /** + * JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. + * @type {string} + * @memberof OauthClientResponse + */ + 'request_object_signing_alg': string; + /** + * + * @type {Array} + * @memberof OauthClientResponse + */ + 'request_uris'?: Array; + /** + * The response types of the Oauth2 client. + * @type {Array} + * @memberof OauthClientResponse + */ + 'response_types'?: Array; + /** + * Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. + * @type {string} + * @memberof OauthClientResponse + */ + 'scope': string; + /** + * URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. + * @type {string} + * @memberof OauthClientResponse + */ + 'sector_identifier_uri': string; + /** + * SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include pairwise and public. + * @type {string} + * @memberof OauthClientResponse + */ + 'subject_type': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'token_endpoint_auth_method': string; + /** + * + * @type {string} + * @memberof OauthClientResponse + */ + 'token_endpoint_auth_signing_alg': string; + /** + * TermsOfServiceUri is a URL string that points to a human-readable terms of service document for the client. + * @type {string} + * @memberof OauthClientResponse + */ + 'tos_uri': string; + /** + * UpdatedAt returns the timestamp of the last update. + * @type {string} + * @memberof OauthClientResponse + */ + 'updated_at': string; + /** + * JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. + * @type {string} + * @memberof OauthClientResponse + */ + 'userinfo_signed_response_alg': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-config-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-config-response.ts new file mode 100644 index 00000000000..d7cde70af92 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-config-response.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface OauthConfigResponse + */ +export interface OauthConfigResponse { + /** + * Client id + * @type {string} + * @memberof OauthConfigResponse + */ + 'clientId': string; + /** + * Hint for idp redirects (optional) + * @type {string} + * @memberof OauthConfigResponse + */ + 'idpHint'?: string | null; + /** + * Redirect uri + * @type {string} + * @memberof OauthConfigResponse + */ + 'redirectUri': string; + /** + * Grant type + * @type {string} + * @memberof OauthConfigResponse + */ + 'grantType': string; + /** + * Token endpoint + * @type {string} + * @memberof OauthConfigResponse + */ + 'tokenEndpoint': string; + /** + * Auth endpoint + * @type {string} + * @memberof OauthConfigResponse + */ + 'authEndpoint': string; + /** + * Response type + * @type {string} + * @memberof OauthConfigResponse + */ + 'responseType': string; + /** + * Scope + * @type {string} + * @memberof OauthConfigResponse + */ + 'scope': string; + /** + * Provider + * @type {string} + * @memberof OauthConfigResponse + */ + 'provider': string; + /** + * Logout endpoint + * @type {string} + * @memberof OauthConfigResponse + */ + 'logoutEndpoint'?: string; + /** + * Issuer + * @type {string} + * @memberof OauthConfigResponse + */ + 'issuer': string; + /** + * Jwks endpoint + * @type {string} + * @memberof OauthConfigResponse + */ + 'jwksEndpoint': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-token-dto.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-token-dto.ts new file mode 100644 index 00000000000..0be71975ec4 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-token-dto.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface OAuthTokenDto + */ +export interface OAuthTokenDto { + /** + * + * @type {string} + * @memberof OAuthTokenDto + */ + 'idToken': string; + /** + * + * @type {string} + * @memberof OAuthTokenDto + */ + 'refreshToken': string; + /** + * + * @type {string} + * @memberof OAuthTokenDto + */ + 'accessToken': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-authorization-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-authorization-body-params.ts new file mode 100644 index 00000000000..fe8873c0691 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-authorization-body-params.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface Oauth2AuthorizationBodyParams + */ +export interface Oauth2AuthorizationBodyParams { + /** + * + * @type {string} + * @memberof Oauth2AuthorizationBodyParams + */ + 'redirectUri': string; + /** + * + * @type {string} + * @memberof Oauth2AuthorizationBodyParams + */ + 'code': string; + /** + * + * @type {string} + * @memberof Oauth2AuthorizationBodyParams + */ + 'systemId': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-migration-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-migration-params.ts new file mode 100644 index 00000000000..b74cd66c8e8 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-migration-params.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface Oauth2MigrationParams + */ +export interface Oauth2MigrationParams { + /** + * + * @type {string} + * @memberof Oauth2MigrationParams + */ + 'redirectUri': string; + /** + * + * @type {string} + * @memberof Oauth2MigrationParams + */ + 'code': string; + /** + * + * @type {string} + * @memberof Oauth2MigrationParams + */ + 'systemId': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-create-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-create-params.ts new file mode 100644 index 00000000000..8deacd8d00e --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-create-params.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface Oauth2ToolConfigCreateParams + */ +export interface Oauth2ToolConfigCreateParams { + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'type': string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'baseUrl': string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'clientId': string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'clientSecret': string; + /** + * + * @type {boolean} + * @memberof Oauth2ToolConfigCreateParams + */ + 'skipConsent': boolean; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'frontchannelLogoutUri'?: string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'scope'?: string; + /** + * + * @type {Array} + * @memberof Oauth2ToolConfigCreateParams + */ + 'redirectUris': Array; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigCreateParams + */ + 'tokenEndpointAuthMethod': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-update-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-update-params.ts new file mode 100644 index 00000000000..20a490e6cce --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-update-params.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface Oauth2ToolConfigUpdateParams + */ +export interface Oauth2ToolConfigUpdateParams { + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'type': string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'baseUrl': string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'clientId': string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'clientSecret'?: string; + /** + * + * @type {boolean} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'skipConsent': boolean; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'frontchannelLogoutUri'?: string; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'scope'?: string; + /** + * + * @type {Array} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'redirectUris': Array; + /** + * + * @type {string} + * @memberof Oauth2ToolConfigUpdateParams + */ + 'tokenEndpointAuthMethod': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oidc-context-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oidc-context-response.ts new file mode 100644 index 00000000000..a463081fe82 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/oidc-context-response.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface OidcContextResponse + */ +export interface OidcContextResponse { + /** + * + * @type {Array} + * @memberof OidcContextResponse + */ + 'acr_values': Array; + /** + * + * @type {string} + * @memberof OidcContextResponse + */ + 'display': string; + /** + * + * @type {object} + * @memberof OidcContextResponse + */ + 'id_token_hint_claims': object; + /** + * + * @type {string} + * @memberof OidcContextResponse + */ + 'login_hint': string; + /** + * + * @type {Array} + * @memberof OidcContextResponse + */ + 'ui_locales': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/parent-consent-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/parent-consent-response.ts new file mode 100644 index 00000000000..c3a8977a060 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/parent-consent-response.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ParentConsentResponse + */ +export interface ParentConsentResponse { + /** + * + * @type {string} + * @memberof ParentConsentResponse + */ + 'form': string; + /** + * + * @type {boolean} + * @memberof ParentConsentResponse + */ + 'privacyConsent': boolean; + /** + * + * @type {boolean} + * @memberof ParentConsentResponse + */ + 'termsOfUseConsent': boolean; + /** + * + * @type {string} + * @memberof ParentConsentResponse + */ + 'dateOfPrivacyConsent': string; + /** + * + * @type {string} + * @memberof ParentConsentResponse + */ + 'dateOfTermsOfUseConsent': string; + /** + * + * @type {string} + * @memberof ParentConsentResponse + */ + '_id': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-group-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-group-params.ts new file mode 100644 index 00000000000..ac6f16a4c0c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-group-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface PatchGroupParams + */ +export interface PatchGroupParams { + /** + * Title of the Group grid element + * @type {string} + * @memberof PatchGroupParams + */ + 'title': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-account-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-account-params.ts new file mode 100644 index 00000000000..01537a514fa --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-account-params.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface PatchMyAccountParams + */ +export interface PatchMyAccountParams { + /** + * The current user password to authorize the update action. + * @type {string} + * @memberof PatchMyAccountParams + */ + 'passwordOld': string; + /** + * The new password for the current user. + * @type {string} + * @memberof PatchMyAccountParams + */ + 'passwordNew'?: string | null; + /** + * The new email address for the current user. + * @type {string} + * @memberof PatchMyAccountParams + */ + 'email'?: string | null; + /** + * The new first name for the current user. + * @type {string} + * @memberof PatchMyAccountParams + */ + 'firstName'?: string | null; + /** + * The new last name for the current user. + * @type {string} + * @memberof PatchMyAccountParams + */ + 'lastName'?: string | null; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-password-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-password-params.ts new file mode 100644 index 00000000000..53ef68eb3c0 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-password-params.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface PatchMyPasswordParams + */ +export interface PatchMyPasswordParams { + /** + * The new user password. + * @type {string} + * @memberof PatchMyPasswordParams + */ + 'password': string; + /** + * The confirmed new user password. Must match the password field. + * @type {string} + * @memberof PatchMyPasswordParams + */ + 'confirmPassword': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-order-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-order-params.ts new file mode 100644 index 00000000000..dc92e556928 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-order-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface PatchOrderParams + */ +export interface PatchOrderParams { + /** + * Array ids determining the new order + * @type {Array} + * @memberof PatchOrderParams + */ + 'elements': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-visibility-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-visibility-params.ts new file mode 100644 index 00000000000..e0abecf0a60 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-visibility-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface PatchVisibilityParams + */ +export interface PatchVisibilityParams { + /** + * true to publish the element, false to unpublish + * @type {boolean} + * @memberof PatchVisibilityParams + */ + 'visibility': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/provider-config-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/provider-config-response.ts new file mode 100644 index 00000000000..7caf97a0f94 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/provider-config-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ProviderConfigResponse + */ +export interface ProviderConfigResponse { + /** + * + * @type {string} + * @memberof ProviderConfigResponse + */ + 'provider': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/pseudonym-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/pseudonym-response.ts new file mode 100644 index 00000000000..218fbde7895 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/pseudonym-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface PseudonymResponse + */ +export interface PseudonymResponse { + /** + * + * @type {string} + * @memberof PseudonymResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof PseudonymResponse + */ + 'toolId': string; + /** + * + * @type {string} + * @memberof PseudonymResponse + */ + 'userId': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-list-response.ts new file mode 100644 index 00000000000..44f745d9e2f --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-list-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { PublicSystemResponse } from './public-system-response'; + +/** + * + * @export + * @interface PublicSystemListResponse + */ +export interface PublicSystemListResponse { + /** + * + * @type {Array} + * @memberof PublicSystemListResponse + */ + 'data': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response-oauth-config.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response-oauth-config.ts new file mode 100644 index 00000000000..94ccdb87016 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response-oauth-config.ts @@ -0,0 +1,27 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { OauthConfigResponse } from './oauth-config-response'; + +/** + * @type PublicSystemResponseOauthConfig + * Oauth config of the system. + * @export + */ +export type PublicSystemResponseOauthConfig = OauthConfigResponse; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response.ts new file mode 100644 index 00000000000..cf80566ef11 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { PublicSystemResponseOauthConfig } from './public-system-response-oauth-config'; + +/** + * + * @export + * @interface PublicSystemResponse + */ +export interface PublicSystemResponse { + /** + * Id of the system. + * @type {string} + * @memberof PublicSystemResponse + */ + 'id': string; + /** + * Flag to request only systems with oauth-config. + * @type {string} + * @memberof PublicSystemResponse + */ + 'type'?: string | null; + /** + * Alias of the system. + * @type {string} + * @memberof PublicSystemResponse + */ + 'alias'?: string | null; + /** + * Display name of the system. + * @type {string} + * @memberof PublicSystemResponse + */ + 'displayName'?: string | null; + /** + * + * @type {PublicSystemResponseOauthConfig} + * @memberof PublicSystemResponse + */ + 'oauthConfig'?: PublicSystemResponseOauthConfig | null; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/redirect-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/redirect-response.ts new file mode 100644 index 00000000000..1ba4cc04eb0 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/redirect-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface RedirectResponse + */ +export interface RedirectResponse { + /** + * RedirectURL is the URL which you should redirect the user to once the authentication process is completed. + * @type {string} + * @memberof RedirectResponse + */ + 'redirect_to': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/rename-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/rename-body-params.ts new file mode 100644 index 00000000000..9a2880f6788 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/rename-body-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface RenameBodyParams + */ +export interface RenameBodyParams { + /** + * + * @type {string} + * @memberof RenameBodyParams + */ + 'title': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/resolved-user-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/resolved-user-response.ts new file mode 100644 index 00000000000..0592dea68c6 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/resolved-user-response.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ResolvedUserResponse + */ +export interface ResolvedUserResponse { + /** + * + * @type {string} + * @memberof ResolvedUserResponse + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof ResolvedUserResponse + */ + 'lastName': string; + /** + * + * @type {string} + * @memberof ResolvedUserResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof ResolvedUserResponse + */ + 'createdAt': string; + /** + * + * @type {string} + * @memberof ResolvedUserResponse + */ + 'updatedAt': string; + /** + * + * @type {Array} + * @memberof ResolvedUserResponse + */ + 'roles': Array; + /** + * + * @type {Array} + * @memberof ResolvedUserResponse + */ + 'permissions': Array; + /** + * + * @type {string} + * @memberof ResolvedUserResponse + */ + 'schoolId': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-content-body.ts new file mode 100644 index 00000000000..e1605efa5ac --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-content-body.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface RichTextContentBody + */ +export interface RichTextContentBody { + /** + * + * @type {string} + * @memberof RichTextContentBody + */ + 'text': string; + /** + * + * @type {string} + * @memberof RichTextContentBody + */ + 'inputFormat': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content-body.ts new file mode 100644 index 00000000000..3212faf5406 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content-body.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { RichTextContentBody } from './rich-text-content-body'; + +/** + * + * @export + * @interface RichTextElementContentBody + */ +export interface RichTextElementContentBody { + /** + * + * @type {ContentElementType} + * @memberof RichTextElementContentBody + */ + 'type': ContentElementType; + /** + * + * @type {RichTextContentBody} + * @memberof RichTextElementContentBody + */ + 'content': RichTextContentBody; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content.ts new file mode 100644 index 00000000000..334db30f7df --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface RichTextElementContent + */ +export interface RichTextElementContent { + /** + * + * @type {string} + * @memberof RichTextElementContent + */ + 'text': string; + /** + * + * @type {string} + * @memberof RichTextElementContent + */ + 'inputFormat': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-response.ts new file mode 100644 index 00000000000..7d2c8f667e2 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-response.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { RichTextElementContent } from './rich-text-element-content'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface RichTextElementResponse + */ +export interface RichTextElementResponse { + /** + * + * @type {string} + * @memberof RichTextElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof RichTextElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {RichTextElementContent} + * @memberof RichTextElementResponse + */ + 'content': RichTextElementContent; + /** + * + * @type {TimestampsResponse} + * @memberof RichTextElementResponse + */ + 'timestamps': TimestampsResponse; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text.ts new file mode 100644 index 00000000000..69bae9f3946 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text.ts @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface RichText + */ +export interface RichText { + /** + * Content of the rich text element + * @type {string} + * @memberof RichText + */ + 'content': string; + /** + * Input format of the rich text element + * @type {string} + * @memberof RichText + */ + 'type': RichTextType; +} + +export const RichTextType = { + PLAIN_TEXT: 'plainText', + RICH_TEXT_CK5_SIMPLE: 'richTextCk5Simple', + RICH_TEXT_CK4: 'richTextCk4', + RICH_TEXT_CK5: 'richTextCk5' +} as const; + +export type RichTextType = typeof RichTextType[keyof typeof RichTextType]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/role-name.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/role-name.ts new file mode 100644 index 00000000000..861350c40ec --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/role-name.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const RoleName = { + ADMINISTRATOR: 'administrator', + COURSE_ADMINISTRATOR: 'courseAdministrator', + COURSE_STUDENT: 'courseStudent', + COURSE_SUBSTITUTION_TEACHER: 'courseSubstitutionTeacher', + COURSE_TEACHER: 'courseTeacher', + DEMO: 'demo', + DEMO_STUDENT: 'demoStudent', + DEMO_TEACHER: 'demoTeacher', + EXPERT: 'expert', + HELPDESK: 'helpdesk', + STUDENT: 'student', + SUPERHERO: 'superhero', + TEACHER: 'teacher', + TEAMADMINISTRATOR: 'teamadministrator', + TEAMEXPERT: 'teamexpert', + TEAMLEADER: 'teamleader', + TEAMMEMBER: 'teammember', + TEAMOWNER: 'teamowner', + USER: 'user' +} as const; + +export type RoleName = typeof RoleName[keyof typeof RoleName]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-controller-get-provisioning-options200-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-controller-get-provisioning-options200-response.ts new file mode 100644 index 00000000000..4e6fc1a59e5 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-controller-get-provisioning-options200-response.ts @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { SchulConneXProvisioningOptionsResponse } from './schul-conne-xprovisioning-options-response'; + +/** + * @type SchoolControllerGetProvisioningOptions200Response + * @export + */ +export type SchoolControllerGetProvisioningOptions200Response = SchulConneXProvisioningOptionsResponse; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-exists-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-exists-response.ts new file mode 100644 index 00000000000..bf258362dea --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-exists-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SchoolExistsResponse + */ +export interface SchoolExistsResponse { + /** + * + * @type {boolean} + * @memberof SchoolExistsResponse + */ + 'exists': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-status-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-status-response.ts new file mode 100644 index 00000000000..aa18ddd6b73 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-status-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SchoolExternalToolConfigurationStatusResponse + */ +export interface SchoolExternalToolConfigurationStatusResponse { + /** + * Is the tool outdated on school scope, because of non matching versions or required parameter changes on ExternalTool? + * @type {boolean} + * @memberof SchoolExternalToolConfigurationStatusResponse + */ + 'isOutdatedOnScopeSchool': boolean; + /** + * Is the tool deactivated, because of school administrator? + * @type {boolean} + * @memberof SchoolExternalToolConfigurationStatusResponse + */ + 'isDeactivated': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-list-response.ts new file mode 100644 index 00000000000..c8d4dfd0c0c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-list-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { SchoolExternalToolConfigurationTemplateResponse } from './school-external-tool-configuration-template-response'; + +/** + * + * @export + * @interface SchoolExternalToolConfigurationTemplateListResponse + */ +export interface SchoolExternalToolConfigurationTemplateListResponse { + /** + * + * @type {Array} + * @memberof SchoolExternalToolConfigurationTemplateListResponse + */ + 'data': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-response.ts new file mode 100644 index 00000000000..2f229f16c54 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CustomParameterResponse } from './custom-parameter-response'; + +/** + * + * @export + * @interface SchoolExternalToolConfigurationTemplateResponse + */ +export interface SchoolExternalToolConfigurationTemplateResponse { + /** + * + * @type {string} + * @memberof SchoolExternalToolConfigurationTemplateResponse + */ + 'externalToolId': string; + /** + * + * @type {string} + * @memberof SchoolExternalToolConfigurationTemplateResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof SchoolExternalToolConfigurationTemplateResponse + */ + 'logoUrl'?: string; + /** + * + * @type {Array} + * @memberof SchoolExternalToolConfigurationTemplateResponse + */ + 'parameters': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-metadata-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-metadata-response.ts new file mode 100644 index 00000000000..4328fe37eae --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-metadata-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContextExternalToolCountPerContextResponse } from './context-external-tool-count-per-context-response'; + +/** + * + * @export + * @interface SchoolExternalToolMetadataResponse + */ +export interface SchoolExternalToolMetadataResponse { + /** + * + * @type {ContextExternalToolCountPerContextResponse} + * @memberof SchoolExternalToolMetadataResponse + */ + 'contextExternalToolCountPerContext': ContextExternalToolCountPerContextResponse; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-post-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-post-params.ts new file mode 100644 index 00000000000..e2e6451177d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-post-params.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CustomParameterEntryParam } from './custom-parameter-entry-param'; + +/** + * + * @export + * @interface SchoolExternalToolPostParams + */ +export interface SchoolExternalToolPostParams { + /** + * + * @type {string} + * @memberof SchoolExternalToolPostParams + */ + 'toolId': string; + /** + * + * @type {string} + * @memberof SchoolExternalToolPostParams + */ + 'schoolId': string; + /** + * + * @type {Array} + * @memberof SchoolExternalToolPostParams + */ + 'parameters'?: Array; + /** + * Tool can be deactivated, related tools can not be added to e.g. course or board anymore + * @type {boolean} + * @memberof SchoolExternalToolPostParams + */ + 'isDeactivated': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-response.ts new file mode 100644 index 00000000000..9fc14d43913 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-response.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CustomParameterEntryResponse } from './custom-parameter-entry-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { SchoolExternalToolConfigurationStatusResponse } from './school-external-tool-configuration-status-response'; + +/** + * + * @export + * @interface SchoolExternalToolResponse + */ +export interface SchoolExternalToolResponse { + /** + * + * @type {string} + * @memberof SchoolExternalToolResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SchoolExternalToolResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof SchoolExternalToolResponse + */ + 'toolId': string; + /** + * + * @type {string} + * @memberof SchoolExternalToolResponse + */ + 'schoolId': string; + /** + * + * @type {Array} + * @memberof SchoolExternalToolResponse + */ + 'parameters': Array; + /** + * + * @type {SchoolExternalToolConfigurationStatusResponse} + * @memberof SchoolExternalToolResponse + */ + 'status': SchoolExternalToolConfigurationStatusResponse; + /** + * + * @type {string} + * @memberof SchoolExternalToolResponse + */ + 'logoUrl'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-search-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-search-list-response.ts new file mode 100644 index 00000000000..a1d88c7fd6d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-search-list-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { SchoolExternalToolResponse } from './school-external-tool-response'; + +/** + * + * @export + * @interface SchoolExternalToolSearchListResponse + */ +export interface SchoolExternalToolSearchListResponse { + /** + * + * @type {Array} + * @memberof SchoolExternalToolSearchListResponse + */ + 'data': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-external-invite-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-external-invite-response.ts new file mode 100644 index 00000000000..704d3fd9f89 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-external-invite-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SchoolForExternalInviteResponse + */ +export interface SchoolForExternalInviteResponse { + /** + * + * @type {string} + * @memberof SchoolForExternalInviteResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SchoolForExternalInviteResponse + */ + 'name': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-ldap-login-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-ldap-login-response.ts new file mode 100644 index 00000000000..4c09be5d499 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-ldap-login-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { SystemForLdapLoginResponse } from './system-for-ldap-login-response'; + +/** + * + * @export + * @interface SchoolForLdapLoginResponse + */ +export interface SchoolForLdapLoginResponse { + /** + * + * @type {string} + * @memberof SchoolForLdapLoginResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SchoolForLdapLoginResponse + */ + 'name': string; + /** + * + * @type {Array} + * @memberof SchoolForLdapLoginResponse + */ + 'systems': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-info-response.ts new file mode 100644 index 00000000000..3d3daf711cc --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-info-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SchoolInfoResponse + */ +export interface SchoolInfoResponse { + /** + * The id of the School entity + * @type {string} + * @memberof SchoolInfoResponse + */ + 'id': string; + /** + * The name of the School entity + * @type {string} + * @memberof SchoolInfoResponse + */ + 'name': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-logo.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-logo.ts new file mode 100644 index 00000000000..021830c29cf --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-logo.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SchoolLogo + */ +export interface SchoolLogo { + /** + * + * @type {string} + * @memberof SchoolLogo + */ + 'dataUrl'?: string; + /** + * + * @type {string} + * @memberof SchoolLogo + */ + 'name'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-permissions-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-permissions-params.ts new file mode 100644 index 00000000000..d4502a9ed1e --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-permissions-params.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { StudentPermissionParams } from './student-permission-params'; +// May contain unused imports in some cases +// @ts-ignore +import type { TeacherPermissionParams } from './teacher-permission-params'; + +/** + * + * @export + * @interface SchoolPermissionsParams + */ +export interface SchoolPermissionsParams { + /** + * + * @type {TeacherPermissionParams} + * @memberof SchoolPermissionsParams + */ + 'teacher'?: TeacherPermissionParams; + /** + * + * @type {StudentPermissionParams} + * @memberof SchoolPermissionsParams + */ + 'student'?: StudentPermissionParams; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-purpose.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-purpose.ts new file mode 100644 index 00000000000..b04a625adbd --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-purpose.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const SchoolPurpose = { + EXPERT: 'expert', + TOMBSTONE: 'tombstone', + DEMO: 'demo', + TEST: 'test', + MINT_EC: 'MINT-EC' +} as const; + +export type SchoolPurpose = typeof SchoolPurpose[keyof typeof SchoolPurpose]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-response.ts new file mode 100644 index 00000000000..5bedf937315 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-response.ts @@ -0,0 +1,179 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CountyResponse } from './county-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { FederalStateResponse } from './federal-state-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { FileStorageType } from './file-storage-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { InstanceFeature } from './instance-feature'; +// May contain unused imports in some cases +// @ts-ignore +import type { SchoolFeature } from './school-feature'; +// May contain unused imports in some cases +// @ts-ignore +import type { SchoolLogo } from './school-logo'; +// May contain unused imports in some cases +// @ts-ignore +import type { SchoolPurpose } from './school-purpose'; +// May contain unused imports in some cases +// @ts-ignore +import type { SchoolYearResponse } from './school-year-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { YearsResponse } from './years-response'; + +/** + * + * @export + * @interface SchoolResponse + */ +export interface SchoolResponse { + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'createdAt': string; + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'updatedAt': string; + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'officialSchoolNumber'?: string; + /** + * + * @type {SchoolYearResponse} + * @memberof SchoolResponse + */ + 'currentYear'?: SchoolYearResponse; + /** + * + * @type {FederalStateResponse} + * @memberof SchoolResponse + */ + 'federalState': FederalStateResponse; + /** + * + * @type {CountyResponse} + * @memberof SchoolResponse + */ + 'county'?: CountyResponse; + /** + * + * @type {SchoolPurpose} + * @memberof SchoolResponse + */ + 'purpose'?: SchoolPurpose; + /** + * + * @type {Array} + * @memberof SchoolResponse + */ + 'features': Array; + /** + * + * @type {Array} + * @memberof SchoolResponse + */ + 'systemIds': Array; + /** + * + * @type {boolean} + * @memberof SchoolResponse + */ + 'inUserMigration'?: boolean; + /** + * + * @type {boolean} + * @memberof SchoolResponse + */ + 'inMaintenance': boolean; + /** + * + * @type {boolean} + * @memberof SchoolResponse + */ + 'isExternal': boolean; + /** + * + * @type {SchoolLogo} + * @memberof SchoolResponse + */ + 'logo'?: SchoolLogo; + /** + * + * @type {FileStorageType} + * @memberof SchoolResponse + */ + 'fileStorageType'?: FileStorageType; + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'language'?: string; + /** + * + * @type {string} + * @memberof SchoolResponse + */ + 'timezone'?: string; + /** + * + * @type {object} + * @memberof SchoolResponse + */ + 'permissions'?: object; + /** + * + * @type {YearsResponse} + * @memberof SchoolResponse + */ + 'years': YearsResponse; + /** + * + * @type {Array} + * @memberof SchoolResponse + */ + 'instanceFeatures': Array; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-system-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-system-response.ts new file mode 100644 index 00000000000..2aab6d28c85 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-system-response.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ProviderConfigResponse } from './provider-config-response'; + +/** + * + * @export + * @interface SchoolSystemResponse + */ +export interface SchoolSystemResponse { + /** + * + * @type {string} + * @memberof SchoolSystemResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SchoolSystemResponse + */ + 'type': string; + /** + * + * @type {string} + * @memberof SchoolSystemResponse + */ + 'alias'?: string; + /** + * + * @type {ProviderConfigResponse} + * @memberof SchoolSystemResponse + */ + 'ldapConfig'?: ProviderConfigResponse; + /** + * + * @type {ProviderConfigResponse} + * @memberof SchoolSystemResponse + */ + 'oauthConfig'?: ProviderConfigResponse; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-update-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-update-body-params.ts new file mode 100644 index 00000000000..77f430eb83b --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-update-body-params.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LanguageType } from './language-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { SchoolFeature } from './school-feature'; +// May contain unused imports in some cases +// @ts-ignore +import type { SchoolLogo } from './school-logo'; +// May contain unused imports in some cases +// @ts-ignore +import type { SchoolPermissionsParams } from './school-permissions-params'; + +/** + * + * @export + * @interface SchoolUpdateBodyParams + */ +export interface SchoolUpdateBodyParams { + /** + * + * @type {string} + * @memberof SchoolUpdateBodyParams + */ + 'name'?: string; + /** + * + * @type {string} + * @memberof SchoolUpdateBodyParams + */ + 'officialSchoolNumber'?: string; + /** + * + * @type {SchoolLogo} + * @memberof SchoolUpdateBodyParams + */ + 'logo'?: SchoolLogo; + /** + * + * @type {string} + * @memberof SchoolUpdateBodyParams + */ + 'fileStorageType'?: SchoolUpdateBodyParamsFileStorageType; + /** + * + * @type {LanguageType} + * @memberof SchoolUpdateBodyParams + */ + 'language'?: LanguageType; + /** + * + * @type {Array} + * @memberof SchoolUpdateBodyParams + */ + 'features'?: Array; + /** + * + * @type {SchoolPermissionsParams} + * @memberof SchoolUpdateBodyParams + */ + 'permissions'?: SchoolPermissionsParams; + /** + * + * @type {string} + * @memberof SchoolUpdateBodyParams + */ + 'countyId'?: string; + /** + * + * @type {boolean} + * @memberof SchoolUpdateBodyParams + */ + 'enableStudentTeamCreation'?: boolean; +} + +export const SchoolUpdateBodyParamsFileStorageType = { + AWS_S3: 'awsS3' +} as const; + +export type SchoolUpdateBodyParamsFileStorageType = typeof SchoolUpdateBodyParamsFileStorageType[keyof typeof SchoolUpdateBodyParamsFileStorageType]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-query-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-query-type.ts new file mode 100644 index 00000000000..1a342cdae85 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-query-type.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const SchoolYearQueryType = { + NEXT_YEAR: 'nextYear', + CURRENT_YEAR: 'currentYear', + PREVIOUS_YEARS: 'previousYears' +} as const; + +export type SchoolYearQueryType = typeof SchoolYearQueryType[keyof typeof SchoolYearQueryType]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-response.ts new file mode 100644 index 00000000000..82da6c45aaf --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-response.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SchoolYearResponse + */ +export interface SchoolYearResponse { + /** + * + * @type {string} + * @memberof SchoolYearResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SchoolYearResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof SchoolYearResponse + */ + 'startDate': string; + /** + * + * @type {string} + * @memberof SchoolYearResponse + */ + 'endDate': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-params.ts new file mode 100644 index 00000000000..238cf078c38 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-params.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SchulConneXProvisioningOptionsParams + */ +export interface SchulConneXProvisioningOptionsParams { + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsParams + */ + 'groupProvisioningClassesEnabled': boolean; + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsParams + */ + 'groupProvisioningCoursesEnabled': boolean; + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsParams + */ + 'groupProvisioningOtherEnabled': boolean; + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsParams + */ + 'schoolExternalToolProvisioningEnabled': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-response.ts new file mode 100644 index 00000000000..75f742746fe --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-response.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SchulConneXProvisioningOptionsResponse + */ +export interface SchulConneXProvisioningOptionsResponse { + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsResponse + */ + 'groupProvisioningClassesEnabled': boolean; + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsResponse + */ + 'groupProvisioningCoursesEnabled': boolean; + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsResponse + */ + 'groupProvisioningOtherEnabled': boolean; + /** + * + * @type {boolean} + * @memberof SchulConneXProvisioningOptionsResponse + */ + 'schoolExternalToolProvisioningEnabled': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/schulcloud-theme.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/schulcloud-theme.ts new file mode 100644 index 00000000000..3234fe8ec1b --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/schulcloud-theme.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const SchulcloudTheme = { + BRB: 'brb', + DEFAULT: 'default', + N21: 'n21', + THR: 'thr' +} as const; + +export type SchulcloudTheme = typeof SchulcloudTheme[keyof typeof SchulcloudTheme]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/set-height-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/set-height-body-params.ts new file mode 100644 index 00000000000..e58eb48d1a7 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/set-height-body-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SetHeightBodyParams + */ +export interface SetHeightBodyParams { + /** + * + * @type {number} + * @memberof SetHeightBodyParams + */ + 'height': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-body-params.ts new file mode 100644 index 00000000000..fd1115f5585 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-body-params.ts @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ShareTokenBodyParams + */ +export interface ShareTokenBodyParams { + /** + * the type of the object being shared + * @type {string} + * @memberof ShareTokenBodyParams + */ + 'parentType': ShareTokenBodyParamsParentType; + /** + * the id of the object being shared. + * @type {string} + * @memberof ShareTokenBodyParams + */ + 'parentId': string; + /** + * when defined, the sharetoken will expire after the given number of days. + * @type {number} + * @memberof ShareTokenBodyParams + */ + 'expiresInDays'?: number | null; + /** + * when defined, the sharetoken will be usable exclusively by members of the users school. + * @type {boolean} + * @memberof ShareTokenBodyParams + */ + 'schoolExclusive'?: boolean | null; +} + +export const ShareTokenBodyParamsParentType = { + COURSES: 'courses', + TASKS: 'tasks', + LESSONS: 'lessons', + COLUMN_BOARD: 'columnBoard' +} as const; + +export type ShareTokenBodyParamsParentType = typeof ShareTokenBodyParamsParentType[keyof typeof ShareTokenBodyParamsParentType]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-import-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-import-body-params.ts new file mode 100644 index 00000000000..dbb4a195ca2 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-import-body-params.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ShareTokenImportBodyParams + */ +export interface ShareTokenImportBodyParams { + /** + * the new name of the imported object. + * @type {string} + * @memberof ShareTokenImportBodyParams + */ + 'newName': string; + /** + * Id of the course to which the lesson/task will be added + * @type {string} + * @memberof ShareTokenImportBodyParams + */ + 'destinationCourseId'?: string | null; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-info-response.ts new file mode 100644 index 00000000000..7cadae54854 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-info-response.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ShareTokenInfoResponse + */ +export interface ShareTokenInfoResponse { + /** + * + * @type {string} + * @memberof ShareTokenInfoResponse + */ + 'token': string; + /** + * + * @type {string} + * @memberof ShareTokenInfoResponse + */ + 'parentType': ShareTokenInfoResponseParentType; + /** + * + * @type {string} + * @memberof ShareTokenInfoResponse + */ + 'parentName': string; +} + +export const ShareTokenInfoResponseParentType = { + COURSES: 'courses', + TASKS: 'tasks', + LESSONS: 'lessons', + COLUMN_BOARD: 'columnBoard' +} as const; + +export type ShareTokenInfoResponseParentType = typeof ShareTokenInfoResponseParentType[keyof typeof ShareTokenInfoResponseParentType]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-payload-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-payload-response.ts new file mode 100644 index 00000000000..9edf2a783e9 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-payload-response.ts @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ShareTokenPayloadResponse + */ +export interface ShareTokenPayloadResponse { + /** + * + * @type {string} + * @memberof ShareTokenPayloadResponse + */ + 'parentType': ShareTokenPayloadResponseParentType; + /** + * + * @type {string} + * @memberof ShareTokenPayloadResponse + */ + 'parentId': string; +} + +export const ShareTokenPayloadResponseParentType = { + COURSES: 'courses', + TASKS: 'tasks', + LESSONS: 'lessons', + COLUMN_BOARD: 'columnBoard' +} as const; + +export type ShareTokenPayloadResponseParentType = typeof ShareTokenPayloadResponseParentType[keyof typeof ShareTokenPayloadResponseParentType]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-response.ts new file mode 100644 index 00000000000..68ad83eb0e8 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ShareTokenPayloadResponse } from './share-token-payload-response'; + +/** + * + * @export + * @interface ShareTokenResponse + */ +export interface ShareTokenResponse { + /** + * + * @type {string} + * @memberof ShareTokenResponse + */ + 'token': string; + /** + * + * @type {ShareTokenPayloadResponse} + * @memberof ShareTokenResponse + */ + 'payload': ShareTokenPayloadResponse; + /** + * + * @type {string} + * @memberof ShareTokenResponse + */ + 'expiresAt'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/single-column-board-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/single-column-board-response.ts new file mode 100644 index 00000000000..b9409573716 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/single-column-board-response.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { BoardElementResponse } from './board-element-response'; + +/** + * + * @export + * @interface SingleColumnBoardResponse + */ +export interface SingleColumnBoardResponse { + /** + * The id of the room this board belongs to + * @type {string} + * @memberof SingleColumnBoardResponse + */ + 'roomId': string; + /** + * Title of the Board + * @type {string} + * @memberof SingleColumnBoardResponse + */ + 'title': string; + /** + * Color of the Board + * @type {string} + * @memberof SingleColumnBoardResponse + */ + 'displayColor': string; + /** + * Array of board specific tasks or lessons with matching type property + * @type {Array} + * @memberof SingleColumnBoardResponse + */ + 'elements': Array; + /** + * Boolean if the room this board belongs to is archived + * @type {boolean} + * @memberof SingleColumnBoardResponse + */ + 'isArchived': boolean; + /** + * Is the course synchronized with a group? + * @type {boolean} + * @memberof SingleColumnBoardResponse + */ + 'isSynchronized': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/student-permission-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/student-permission-params.ts new file mode 100644 index 00000000000..e3b5b66e6fe --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/student-permission-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StudentPermissionParams + */ +export interface StudentPermissionParams { + /** + * + * @type {boolean} + * @memberof StudentPermissionParams + */ + 'LERNSTORE_VIEW'?: boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-content-body.ts new file mode 100644 index 00000000000..4210ee50a22 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-content-body.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SubmissionContainerContentBody + */ +export interface SubmissionContainerContentBody { + /** + * The point in time until when a submission can be handed in. + * @type {string} + * @memberof SubmissionContainerContentBody + */ + 'dueDate'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content-body.ts new file mode 100644 index 00000000000..f508cd5585c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content-body.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { SubmissionContainerContentBody } from './submission-container-content-body'; + +/** + * + * @export + * @interface SubmissionContainerElementContentBody + */ +export interface SubmissionContainerElementContentBody { + /** + * + * @type {ContentElementType} + * @memberof SubmissionContainerElementContentBody + */ + 'type': ContentElementType; + /** + * + * @type {SubmissionContainerContentBody} + * @memberof SubmissionContainerElementContentBody + */ + 'content': SubmissionContainerContentBody; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content.ts new file mode 100644 index 00000000000..821e4f26241 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SubmissionContainerElementContent + */ +export interface SubmissionContainerElementContent { + /** + * The dueDate as date string or null of not set + * @type {string} + * @memberof SubmissionContainerElementContent + */ + 'dueDate': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-response.ts new file mode 100644 index 00000000000..de4af08dea9 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-response.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { SubmissionContainerElementContent } from './submission-container-element-content'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface SubmissionContainerElementResponse + */ +export interface SubmissionContainerElementResponse { + /** + * + * @type {string} + * @memberof SubmissionContainerElementResponse + */ + 'id': string; + /** + * + * @type {ContentElementType} + * @memberof SubmissionContainerElementResponse + */ + 'type': ContentElementType; + /** + * + * @type {SubmissionContainerElementContent} + * @memberof SubmissionContainerElementResponse + */ + 'content': SubmissionContainerElementContent; + /** + * + * @type {TimestampsResponse} + * @memberof SubmissionContainerElementResponse + */ + 'timestamps': TimestampsResponse; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response-elements-inner.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response-elements-inner.ts new file mode 100644 index 00000000000..c599fe39d08 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response-elements-inner.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { FileElementResponse } from './file-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { RichTextElementContent } from './rich-text-element-content'; +// May contain unused imports in some cases +// @ts-ignore +import type { RichTextElementResponse } from './rich-text-element-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * @type SubmissionItemResponseElementsInner + * @export + */ +export type SubmissionItemResponseElementsInner = FileElementResponse | RichTextElementResponse; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response.ts new file mode 100644 index 00000000000..cb6ca9abb2d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { SubmissionItemResponseElementsInner } from './submission-item-response-elements-inner'; +// May contain unused imports in some cases +// @ts-ignore +import type { TimestampsResponse } from './timestamps-response'; + +/** + * + * @export + * @interface SubmissionItemResponse + */ +export interface SubmissionItemResponse { + /** + * + * @type {string} + * @memberof SubmissionItemResponse + */ + 'id': string; + /** + * + * @type {TimestampsResponse} + * @memberof SubmissionItemResponse + */ + 'timestamps': TimestampsResponse; + /** + * + * @type {boolean} + * @memberof SubmissionItemResponse + */ + 'completed': boolean; + /** + * + * @type {string} + * @memberof SubmissionItemResponse + */ + 'userId': string; + /** + * + * @type {Array} + * @memberof SubmissionItemResponse + */ + 'elements': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-list-response.ts new file mode 100644 index 00000000000..e1fb8145e15 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-list-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { SubmissionStatusResponse } from './submission-status-response'; + +/** + * + * @export + * @interface SubmissionStatusListResponse + */ +export interface SubmissionStatusListResponse { + /** + * + * @type {Array} + * @memberof SubmissionStatusListResponse + */ + 'data': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-response.ts new file mode 100644 index 00000000000..547bc929b2a --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-response.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SubmissionStatusResponse + */ +export interface SubmissionStatusResponse { + /** + * + * @type {string} + * @memberof SubmissionStatusResponse + */ + 'id': string; + /** + * + * @type {Array} + * @memberof SubmissionStatusResponse + */ + 'submitters': Array; + /** + * + * @type {boolean} + * @memberof SubmissionStatusResponse + */ + 'isSubmitted': boolean; + /** + * + * @type {number} + * @memberof SubmissionStatusResponse + */ + 'grade'?: number; + /** + * + * @type {boolean} + * @memberof SubmissionStatusResponse + */ + 'isGraded': boolean; + /** + * + * @type {string} + * @memberof SubmissionStatusResponse + */ + 'submittingCourseGroupName'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submissions-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submissions-response.ts new file mode 100644 index 00000000000..ebd6aca5701 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/submissions-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { SubmissionItemResponse } from './submission-item-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { UserDataResponse } from './user-data-response'; + +/** + * + * @export + * @interface SubmissionsResponse + */ +export interface SubmissionsResponse { + /** + * + * @type {Array} + * @memberof SubmissionsResponse + */ + 'submissionItemsResponse': Array; + /** + * + * @type {Array} + * @memberof SubmissionsResponse + */ + 'users': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/successful-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/successful-response.ts new file mode 100644 index 00000000000..d9efb008d6f --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/successful-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SuccessfulResponse + */ +export interface SuccessfulResponse { + /** + * + * @type {boolean} + * @memberof SuccessfulResponse + */ + 'successful': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/system-for-ldap-login-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/system-for-ldap-login-response.ts new file mode 100644 index 00000000000..a5e41dd35d6 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/system-for-ldap-login-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SystemForLdapLoginResponse + */ +export interface SystemForLdapLoginResponse { + /** + * + * @type {string} + * @memberof SystemForLdapLoginResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SystemForLdapLoginResponse + */ + 'type': string; + /** + * + * @type {string} + * @memberof SystemForLdapLoginResponse + */ + 'alias': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/target-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/target-info-response.ts new file mode 100644 index 00000000000..d442ce019aa --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/target-info-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface TargetInfoResponse + */ +export interface TargetInfoResponse { + /** + * The id of the Target entity + * @type {string} + * @memberof TargetInfoResponse + */ + 'id': string; + /** + * The name of the Target entity + * @type {string} + * @memberof TargetInfoResponse + */ + 'name': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/task-copy-api-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/task-copy-api-params.ts new file mode 100644 index 00000000000..93c6e1ba3c0 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/task-copy-api-params.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface TaskCopyApiParams + */ +export interface TaskCopyApiParams { + /** + * Destination course parent Id the task is copied to + * @type {string} + * @memberof TaskCopyApiParams + */ + 'courseId'?: string; + /** + * Destination lesson parent Id the task is copied to + * @type {string} + * @memberof TaskCopyApiParams + */ + 'lessonId'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/task-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/task-list-response.ts new file mode 100644 index 00000000000..0e50e444801 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/task-list-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { TaskResponse } from './task-response'; + +/** + * + * @export + * @interface TaskListResponse + */ +export interface TaskListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof TaskListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof TaskListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof TaskListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof TaskListResponse + */ + 'limit': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/task-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/task-response.ts new file mode 100644 index 00000000000..6ac50bf39d8 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/task-response.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { RichText } from './rich-text'; +// May contain unused imports in some cases +// @ts-ignore +import type { TaskStatusResponse } from './task-status-response'; + +/** + * + * @export + * @interface TaskResponse + */ +export interface TaskResponse { + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'name': string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'availableDate'?: string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'dueDate'?: string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'courseName': string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'lessonName'?: string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'courseId': string; + /** + * Task description object, with props content: string and type: input format types + * @type {RichText} + * @memberof TaskResponse + */ + 'description'?: RichText; + /** + * + * @type {boolean} + * @memberof TaskResponse + */ + 'lessonHidden': boolean; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'displayColor'?: string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'createdAt': string; + /** + * + * @type {string} + * @memberof TaskResponse + */ + 'updatedAt': string; + /** + * + * @type {TaskStatusResponse} + * @memberof TaskResponse + */ + 'status': TaskStatusResponse; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/task-status-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/task-status-response.ts new file mode 100644 index 00000000000..d7268557f02 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/task-status-response.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface TaskStatusResponse + */ +export interface TaskStatusResponse { + /** + * + * @type {number} + * @memberof TaskStatusResponse + */ + 'submitted': number; + /** + * + * @type {number} + * @memberof TaskStatusResponse + */ + 'maxSubmissions': number; + /** + * + * @type {number} + * @memberof TaskStatusResponse + */ + 'graded': number; + /** + * + * @type {boolean} + * @memberof TaskStatusResponse + */ + 'isDraft': boolean; + /** + * + * @type {boolean} + * @memberof TaskStatusResponse + */ + 'isSubstitutionTeacher': boolean; + /** + * + * @type {boolean} + * @memberof TaskStatusResponse + */ + 'isFinished': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/teacher-permission-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/teacher-permission-params.ts new file mode 100644 index 00000000000..9c7be404b90 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/teacher-permission-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface TeacherPermissionParams + */ +export interface TeacherPermissionParams { + /** + * + * @type {boolean} + * @memberof TeacherPermissionParams + */ + 'STUDENT_LIST'?: boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/team-permissions-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/team-permissions-body.ts new file mode 100644 index 00000000000..19bc1edd92c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/team-permissions-body.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface TeamPermissionsBody + */ +export interface TeamPermissionsBody { + /** + * + * @type {boolean} + * @memberof TeamPermissionsBody + */ + 'read': boolean; + /** + * + * @type {boolean} + * @memberof TeamPermissionsBody + */ + 'write': boolean; + /** + * + * @type {boolean} + * @memberof TeamPermissionsBody + */ + 'create': boolean; + /** + * + * @type {boolean} + * @memberof TeamPermissionsBody + */ + 'delete': boolean; + /** + * + * @type {boolean} + * @memberof TeamPermissionsBody + */ + 'share': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/timestamps-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/timestamps-response.ts new file mode 100644 index 00000000000..5cb199ae39a --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/timestamps-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface TimestampsResponse + */ +export interface TimestampsResponse { + /** + * + * @type {string} + * @memberof TimestampsResponse + */ + 'lastUpdatedAt': string; + /** + * + * @type {string} + * @memberof TimestampsResponse + */ + 'createdAt': string; + /** + * + * @type {string} + * @memberof TimestampsResponse + */ + 'deletedAt'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/timezone.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/timezone.ts new file mode 100644 index 00000000000..bbd4c976d8b --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/timezone.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const Timezone = { + EUROPE_BERLIN: 'Europe/Berlin' +} as const; + +export type Timezone = typeof Timezone[keyof typeof Timezone]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-config-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-config-type.ts new file mode 100644 index 00000000000..b43aa7f739a --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-config-type.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const ToolConfigType = { + BASIC: 'basic', + OAUTH2: 'oauth2', + LTI11: 'lti11' +} as const; + +export type ToolConfigType = typeof ToolConfigType[keyof typeof ToolConfigType]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-type.ts new file mode 100644 index 00000000000..8816e809a16 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-type.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const ToolContextType = { + COURSE: 'course', + BOARD_ELEMENT: 'board-element', + MEDIA_BOARD: 'media-board' +} as const; + +export type ToolContextType = typeof ToolContextType[keyof typeof ToolContextType]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-types-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-types-list-response.ts new file mode 100644 index 00000000000..c8eba96ed23 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-types-list-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ToolContextType } from './tool-context-type'; + +/** + * + * @export + * @interface ToolContextTypesListResponse + */ +export interface ToolContextTypesListResponse { + /** + * + * @type {Array} + * @memberof ToolContextTypesListResponse + */ + 'data': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-launch-request-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-launch-request-response.ts new file mode 100644 index 00000000000..93c4bf5f7ca --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-launch-request-response.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ToolLaunchRequestResponse + */ +export interface ToolLaunchRequestResponse { + /** + * The Launch Request method (GET or POST) + * @type {string} + * @memberof ToolLaunchRequestResponse + */ + 'method': ToolLaunchRequestResponseMethod; + /** + * The URL for the Tool Launch Request + * @type {string} + * @memberof ToolLaunchRequestResponse + */ + 'url': string; + /** + * The payload for the Tool Launch Request (optional) + * @type {string} + * @memberof ToolLaunchRequestResponse + */ + 'payload'?: string; + /** + * Specifies whether the Tool should be launched in a new tab + * @type {boolean} + * @memberof ToolLaunchRequestResponse + */ + 'openNewTab'?: boolean; +} + +export const ToolLaunchRequestResponseMethod = { + GET: 'GET', + POST: 'POST' +} as const; + +export type ToolLaunchRequestResponseMethod = typeof ToolLaunchRequestResponseMethod[keyof typeof ToolLaunchRequestResponseMethod]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-list-response.ts new file mode 100644 index 00000000000..9ca604d587c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-list-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ToolReferenceResponse } from './tool-reference-response'; + +/** + * + * @export + * @interface ToolReferenceListResponse + */ +export interface ToolReferenceListResponse { + /** + * + * @type {Array} + * @memberof ToolReferenceListResponse + */ + 'data': Array; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-response.ts new file mode 100644 index 00000000000..235cdb637be --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-response.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContextExternalToolConfigurationStatusResponse } from './context-external-tool-configuration-status-response'; + +/** + * + * @export + * @interface ToolReferenceResponse + */ +export interface ToolReferenceResponse { + /** + * The id of the tool in the context + * @type {string} + * @memberof ToolReferenceResponse + */ + 'contextToolId': string; + /** + * The description of the tool + * @type {string} + * @memberof ToolReferenceResponse + */ + 'description'?: string; + /** + * The url of the logo which is stored in the db + * @type {string} + * @memberof ToolReferenceResponse + */ + 'logoUrl'?: string; + /** + * The display name of the tool + * @type {string} + * @memberof ToolReferenceResponse + */ + 'displayName': string; + /** + * Whether the tool should be opened in a new tab + * @type {boolean} + * @memberof ToolReferenceResponse + */ + 'openInNewTab': boolean; + /** + * The status of the tool + * @type {ContextExternalToolConfigurationStatusResponse} + * @memberof ToolReferenceResponse + */ + 'status': ContextExternalToolConfigurationStatusResponse; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-board-title-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-board-title-params.ts new file mode 100644 index 00000000000..30eb491acef --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-board-title-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UpdateBoardTitleParams + */ +export interface UpdateBoardTitleParams { + /** + * + * @type {string} + * @memberof UpdateBoardTitleParams + */ + 'title': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params-data.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params-data.ts new file mode 100644 index 00000000000..af36224ef6d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params-data.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ContentElementType } from './content-element-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { DrawingContentBody } from './drawing-content-body'; +// May contain unused imports in some cases +// @ts-ignore +import type { DrawingElementContentBody } from './drawing-element-content-body'; +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalToolElementContentBody } from './external-tool-element-content-body'; +// May contain unused imports in some cases +// @ts-ignore +import type { FileElementContentBody } from './file-element-content-body'; +// May contain unused imports in some cases +// @ts-ignore +import type { LinkElementContentBody } from './link-element-content-body'; +// May contain unused imports in some cases +// @ts-ignore +import type { RichTextElementContentBody } from './rich-text-element-content-body'; +// May contain unused imports in some cases +// @ts-ignore +import type { SubmissionContainerElementContentBody } from './submission-container-element-content-body'; + +/** + * @type UpdateElementContentBodyParamsData + * @export + */ +export type UpdateElementContentBodyParamsData = DrawingElementContentBody | ExternalToolElementContentBody | FileElementContentBody | LinkElementContentBody | RichTextElementContentBody | SubmissionContainerElementContentBody; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params.ts new file mode 100644 index 00000000000..e07a1440a41 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { UpdateElementContentBodyParamsData } from './update-element-content-body-params-data'; + +/** + * + * @export + * @interface UpdateElementContentBodyParams + */ +export interface UpdateElementContentBodyParams { + /** + * + * @type {UpdateElementContentBodyParamsData} + * @memberof UpdateElementContentBodyParams + */ + 'data': UpdateElementContentBodyParamsData; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-flag-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-flag-params.ts new file mode 100644 index 00000000000..86755a26686 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-flag-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UpdateFlagParams + */ +export interface UpdateFlagParams { + /** + * updates flag for an import user + * @type {boolean} + * @memberof UpdateFlagParams + */ + 'flagged': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-match-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-match-params.ts new file mode 100644 index 00000000000..22dab934e12 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-match-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UpdateMatchParams + */ +export interface UpdateMatchParams { + /** + * updates local user reference for an import user + * @type {string} + * @memberof UpdateMatchParams + */ + 'userId': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-news-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-news-params.ts new file mode 100644 index 00000000000..382085dc7b3 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-news-params.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UpdateNewsParams + */ +export interface UpdateNewsParams { + /** + * Title of the News entity + * @type {string} + * @memberof UpdateNewsParams + */ + 'title'?: string; + /** + * Content of the News entity + * @type {string} + * @memberof UpdateNewsParams + */ + 'content'?: string; + /** + * The point in time from when the News entity schould be displayed + * @type {string} + * @memberof UpdateNewsParams + */ + 'displayAt'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-submission-item-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-submission-item-body-params.ts new file mode 100644 index 00000000000..0cb54d9de1e --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-submission-item-body-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UpdateSubmissionItemBodyParams + */ +export interface UpdateSubmissionItemBodyParams { + /** + * Boolean indicating whether the submission is completed. + * @type {boolean} + * @memberof UpdateSubmissionItemBodyParams + */ + 'completed': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-consent-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-consent-response.ts new file mode 100644 index 00000000000..44d898a7bfe --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-consent-response.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UserConsentResponse + */ +export interface UserConsentResponse { + /** + * + * @type {string} + * @memberof UserConsentResponse + */ + 'form': string; + /** + * + * @type {boolean} + * @memberof UserConsentResponse + */ + 'privacyConsent': boolean; + /** + * + * @type {boolean} + * @memberof UserConsentResponse + */ + 'termsOfUseConsent': boolean; + /** + * + * @type {string} + * @memberof UserConsentResponse + */ + 'dateOfPrivacyConsent': string; + /** + * + * @type {string} + * @memberof UserConsentResponse + */ + 'dateOfTermsOfUseConsent': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-data-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-data-response.ts new file mode 100644 index 00000000000..ede3e429f8e --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-data-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UserDataResponse + */ +export interface UserDataResponse { + /** + * + * @type {string} + * @memberof UserDataResponse + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof UserDataResponse + */ + 'lastName': string; + /** + * + * @type {string} + * @memberof UserDataResponse + */ + 'userId': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-info-response.ts new file mode 100644 index 00000000000..2f1f1faa8ab --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-info-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UserInfoResponse + */ +export interface UserInfoResponse { + /** + * The id of the User entity + * @type {string} + * @memberof UserInfoResponse + */ + 'id': string; + /** + * First name of the user + * @type {string} + * @memberof UserInfoResponse + */ + 'firstName'?: string; + /** + * Last name of the user + * @type {string} + * @memberof UserInfoResponse + */ + 'lastName'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-list-response.ts new file mode 100644 index 00000000000..8d968fa9f9c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-list-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { UserResponse } from './user-response'; + +/** + * + * @export + * @interface UserListResponse + */ +export interface UserListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof UserListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof UserListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof UserListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof UserListResponse + */ + 'limit': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-mandatory-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-mandatory-params.ts new file mode 100644 index 00000000000..f816840c05c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-mandatory-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UserLoginMigrationMandatoryParams + */ +export interface UserLoginMigrationMandatoryParams { + /** + * + * @type {boolean} + * @memberof UserLoginMigrationMandatoryParams + */ + 'mandatory': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-response.ts new file mode 100644 index 00000000000..7231b1e53f6 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-response.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UserLoginMigrationResponse + */ +export interface UserLoginMigrationResponse { + /** + * Id of the migration + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'id': string; + /** + * Id of the system which is the origin of the migration + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'sourceSystemId'?: string; + /** + * Id of the system which is the target of the migration + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'targetSystemId': string; + /** + * Date when the migration was marked as required + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'mandatorySince'?: string; + /** + * Date when the migration was started + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'startedAt': string; + /** + * Date when the migration was completed + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'closedAt'?: string; + /** + * Date when the migration was completed including the grace period + * @type {string} + * @memberof UserLoginMigrationResponse + */ + 'finishedAt'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-search-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-search-list-response.ts new file mode 100644 index 00000000000..17a477e3c01 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-search-list-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { UserLoginMigrationResponse } from './user-login-migration-response'; + +/** + * + * @export + * @interface UserLoginMigrationSearchListResponse + */ +export interface UserLoginMigrationSearchListResponse { + /** + * Contains user login migration responses + * @type {Array} + * @memberof UserLoginMigrationSearchListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof UserLoginMigrationSearchListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof UserLoginMigrationSearchListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof UserLoginMigrationSearchListResponse + */ + 'limit': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-list-response.ts new file mode 100644 index 00000000000..9a068bf483d --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-list-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { UserMatchResponse } from './user-match-response'; + +/** + * + * @export + * @interface UserMatchListResponse + */ +export interface UserMatchListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof UserMatchListResponse + */ + 'data': Array; + /** + * The total amount of items. + * @type {number} + * @memberof UserMatchListResponse + */ + 'total': number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof UserMatchListResponse + */ + 'skip': number; + /** + * The page size of the response. + * @type {number} + * @memberof UserMatchListResponse + */ + 'limit': number; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-response.ts new file mode 100644 index 00000000000..ffcf1557df7 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-response.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UserMatchResponse + */ +export interface UserMatchResponse { + /** + * local user id + * @type {string} + * @memberof UserMatchResponse + */ + 'userId': string; + /** + * login name of local user + * @type {string} + * @memberof UserMatchResponse + */ + 'loginName': string; + /** + * firstname of local user + * @type {string} + * @memberof UserMatchResponse + */ + 'firstName': string; + /** + * lastname of local user + * @type {string} + * @memberof UserMatchResponse + */ + 'lastName': string; + /** + * list of user roles from external system: student, teacher, admin + * @type {Array} + * @memberof UserMatchResponse + */ + 'roleNames': Array; + /** + * match type: admin (manual) or auto (set, when names match exactly for a single user + * @type {string} + * @memberof UserMatchResponse + */ + 'matchedBy'?: UserMatchResponseMatchedBy; +} + +export const UserMatchResponseRoleNames = { + STUDENT: 'student', + TEACHER: 'teacher', + ADMIN: 'admin' +} as const; + +export type UserMatchResponseRoleNames = typeof UserMatchResponseRoleNames[keyof typeof UserMatchResponseRoleNames]; +export const UserMatchResponseMatchedBy = { + AUTO: 'auto', + ADMIN: 'admin' +} as const; + +export type UserMatchResponseMatchedBy = typeof UserMatchResponseMatchedBy[keyof typeof UserMatchResponseMatchedBy]; + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-response.ts new file mode 100644 index 00000000000..027cf45b536 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-response.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ClassResponse } from './class-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { ConsentsResponse } from './consents-response'; + +/** + * + * @export + * @interface UserResponse + */ +export interface UserResponse { + /** + * + * @type {string} + * @memberof UserResponse + */ + '_id': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'lastName': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'email': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'createdAt': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'birthday': string; + /** + * + * @type {object} + * @memberof UserResponse + */ + 'preferences': object; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'consentStatus': string; + /** + * + * @type {ConsentsResponse} + * @memberof UserResponse + */ + 'consent': ConsentsResponse; + /** + * + * @type {Array} + * @memberof UserResponse + */ + 'classes': Array; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'importHash': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'lastLoginSystemChange': string; + /** + * + * @type {string} + * @memberof UserResponse + */ + 'outdatedSince': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/validation-error.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/validation-error.ts new file mode 100644 index 00000000000..c0b082f0f20 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/validation-error.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ValidationError + */ +export interface ValidationError { + /** + * The response status code. + * @type {number} + * @memberof ValidationError + */ + 'code': number; + /** + * The error type. + * @type {string} + * @memberof ValidationError + */ + 'type': string; + /** + * The error title. + * @type {string} + * @memberof ValidationError + */ + 'title': string; + /** + * The error message. + * @type {string} + * @memberof ValidationError + */ + 'message': string; + /** + * The error details. + * @type {object} + * @memberof ValidationError + */ + 'details'?: object; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-create-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-create-params.ts new file mode 100644 index 00000000000..6b0408ee11e --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-create-params.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface VideoConferenceCreateParams + */ +export interface VideoConferenceCreateParams { + /** + * + * @type {boolean} + * @memberof VideoConferenceCreateParams + */ + 'everyAttendeeJoinsMuted'?: boolean; + /** + * + * @type {boolean} + * @memberof VideoConferenceCreateParams + */ + 'everybodyJoinsAsModerator'?: boolean; + /** + * + * @type {boolean} + * @memberof VideoConferenceCreateParams + */ + 'moderatorMustApproveJoinRequests'?: boolean; + /** + * The URL that the BigBlueButton client will go to after users click the OK button on the ‘You have been logged out’ or ’This session was ended’ message. Has to be a URL from the same domain that the conference is started from. + * @type {string} + * @memberof VideoConferenceCreateParams + */ + 'logoutUrl'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-info-response.ts new file mode 100644 index 00000000000..0e6adac2bce --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-info-response.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { VideoConferenceOptionsResponse } from './video-conference-options-response'; +// May contain unused imports in some cases +// @ts-ignore +import type { VideoConferenceStateResponse } from './video-conference-state-response'; + +/** + * + * @export + * @interface VideoConferenceInfoResponse + */ +export interface VideoConferenceInfoResponse { + /** + * + * @type {VideoConferenceStateResponse} + * @memberof VideoConferenceInfoResponse + */ + 'state': VideoConferenceStateResponse; + /** + * The options for the video conference. + * @type {VideoConferenceOptionsResponse} + * @memberof VideoConferenceInfoResponse + */ + 'options': VideoConferenceOptionsResponse; +} + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-join-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-join-response.ts new file mode 100644 index 00000000000..0dc838bb9bf --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-join-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface VideoConferenceJoinResponse + */ +export interface VideoConferenceJoinResponse { + /** + * The URL to join the video conference. + * @type {string} + * @memberof VideoConferenceJoinResponse + */ + 'url': string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-options-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-options-response.ts new file mode 100644 index 00000000000..2b2a8922f5f --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-options-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface VideoConferenceOptionsResponse + */ +export interface VideoConferenceOptionsResponse { + /** + * Every attendee joins muted + * @type {boolean} + * @memberof VideoConferenceOptionsResponse + */ + 'everyAttendeeJoinsMuted': boolean; + /** + * Every attendee joins as a moderator + * @type {boolean} + * @memberof VideoConferenceOptionsResponse + */ + 'everybodyJoinsAsModerator': boolean; + /** + * Moderator must approve join requests + * @type {boolean} + * @memberof VideoConferenceOptionsResponse + */ + 'moderatorMustApproveJoinRequests': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-scope.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-scope.ts new file mode 100644 index 00000000000..d6f0c424099 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-scope.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const VideoConferenceScope = { + COURSE: 'course', + EVENT: 'event' +} as const; + +export type VideoConferenceScope = typeof VideoConferenceScope[keyof typeof VideoConferenceScope]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-state-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-state-response.ts new file mode 100644 index 00000000000..aff614ee03c --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-state-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const VideoConferenceStateResponse = { + NOT_STARTED: 'NOT_STARTED', + RUNNING: 'RUNNING', + FINISHED: 'FINISHED' +} as const; + +export type VideoConferenceStateResponse = typeof VideoConferenceStateResponse[keyof typeof VideoConferenceStateResponse]; + + + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-body-params.ts new file mode 100644 index 00000000000..0307c56dbba --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-body-params.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface VisibilityBodyParams + */ +export interface VisibilityBodyParams { + /** + * + * @type {boolean} + * @memberof VisibilityBodyParams + */ + 'isVisible': boolean; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-settings-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-settings-response.ts new file mode 100644 index 00000000000..777c7939e49 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-settings-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface VisibilitySettingsResponse + */ +export interface VisibilitySettingsResponse { + /** + * + * @type {string} + * @memberof VisibilitySettingsResponse + */ + 'publishedAt'?: string; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/years-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/years-response.ts new file mode 100644 index 00000000000..a4aa2c4fd16 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/years-response.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HPI Schul-Cloud Server API + * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * + * The version of the OpenAPI document: 3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { SchoolYearResponse } from './school-year-response'; + +/** + * + * @export + * @interface YearsResponse + */ +export interface YearsResponse { + /** + * + * @type {Array} + * @memberof YearsResponse + */ + 'schoolYears': Array; + /** + * + * @type {SchoolYearResponse} + * @memberof YearsResponse + */ + 'activeYear': SchoolYearResponse; + /** + * + * @type {SchoolYearResponse} + * @memberof YearsResponse + */ + 'lastYear': SchoolYearResponse; + /** + * + * @type {SchoolYearResponse} + * @memberof YearsResponse + */ + 'nextYear': SchoolYearResponse; +} + diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts new file mode 100644 index 00000000000..6400eb11d92 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -0,0 +1,29 @@ +import { Injectable } from '@nestjs/common'; +import { + AuthorizationApi, + AuthorizationBodyParams, + AuthorizationBodyParamsReferenceType, + AuthorizationContextParams, + AuthorizedReponse, +} from './authorization-api-client'; + +@Injectable() +export class AuthorizationClientAdapter { + constructor(private readonly authorizationApi: AuthorizationApi) {} + + public async checkPermissionByReferences( + context: AuthorizationContextParams, + referenceType: AuthorizationBodyParamsReferenceType, + referenceId: string + ): Promise { + const params: AuthorizationBodyParams = { + context, + referenceType, + referenceId, + }; + + const response = await this.authorizationApi.authorizationReferenceControllerAuthorizeByReference(params); + + return response.data; + } +} diff --git a/apps/server/src/infra/authorization-client/authorization-client.module.ts b/apps/server/src/infra/authorization-client/authorization-client.module.ts new file mode 100644 index 00000000000..3dc653f5503 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-client.module.ts @@ -0,0 +1,30 @@ +import { DynamicModule, Module } from '@nestjs/common'; +import { AuthorizationApi, Configuration, ConfigurationParameters } from './authorization-api-client'; +import { AuthorizationClientAdapter } from './authorization-client.adapter'; + +export interface AuthorizationClientConfig extends ConfigurationParameters { + apiKey?: string; + basePath?: string; +} + +@Module({}) +export class AuthorizationClientModule { + static register(config: AuthorizationClientConfig): DynamicModule { + const providers = [ + AuthorizationClientAdapter, + { + provide: AuthorizationApi, + useFactory: () => { + const configuration = new Configuration(config); + return new AuthorizationApi(configuration); + }, + }, + ]; + + return { + module: AuthorizationClientModule, + providers, + exports: [AuthorizationClientAdapter], + }; + } +} diff --git a/openapitools-config.json b/openapitools-config.json new file mode 100644 index 00000000000..3570d978fe3 --- /dev/null +++ b/openapitools-config.json @@ -0,0 +1,9 @@ +{ + "apiPackage": "api", + "enumNameSuffix": "", + "enumPropertyNaming": "UPPERCASE", + "modelPackage": "models", + "supportsES6": true, + "withInterfaces": true, + "withSeparateModelsAndApi": true +} diff --git a/openapitools.json b/openapitools.json index 779a497566a..97d49682b51 100644 --- a/openapitools.json +++ b/openapitools.json @@ -2,15 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "7.6.0", - "additionalProperties": { - "apiPackage": "api", - "enumNameSuffix": "", - "enumPropertyNaming": "UPPERCASE", - "modelPackage": "models", - "supportsES6": true, - "withInterfaces": true, - "withSeparateModelsAndApi": true - } + "version": "7.6.0" } } diff --git a/package.json b/package.json index 58b954e7f89..8a13a2fa19c 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "ensureIndexes": "npm run nest:start:console -- database sync-indexes", "schoolExport": "node ./scripts/schoolExport.js", "schoolImport": "node ./scripts/schoolImport.js", - "generate-client:authorization": "node ./scripts/generate-client.js -u 'http://localhost:3030/api/v3/docs-json/' -p 'apps/server/src/infra/authorization-client/authorization-api-client' -c 'openapitools.json' -f 'operationId:AuthorizationReferenceController_authorizeByReference'" + "generate-client:authorization": "node ./scripts/generate-client.js -u 'http://localhost:3030/api/v3/docs-json/' -p 'apps/server/src/infra/authorization-client/authorization-api-client' -c 'openapitools-config.json' -f 'operationId:AuthorizationReferenceController_authorizeByReference'" }, "dependencies": { "@aws-sdk/lib-storage": "^3.100.0", diff --git a/scripts/generate-client.js b/scripts/generate-client.js index 609bd87b182..bdf649cba51 100644 --- a/scripts/generate-client.js +++ b/scripts/generate-client.js @@ -55,7 +55,7 @@ const errorMessageContains = (includedString, error) => const getOpenApiCommand = (params) => { const { url, path, config, filter } = params; const configFile = config ? `-c ${config}` : ''; - const filterString = filter ? ` --openapi-normalizer FILTER="${filter}"` : ''; + const filterString = filter ? `--openapi-normalizer FILTER="${filter}"` : ''; const command = `openapi-generator-cli generate -i ${url} -g typescript-axios -o ${path} ${configFile} --skip-validate-spec ${filterString}`; return command; From bc66ea28e815aaf321d4625ee8b8300269edbecb Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Wed, 5 Jun 2024 14:16:10 +0200 Subject: [PATCH 04/40] BC-6453 - add tests for `AuthorizationClientAdapter` --- .../authorization-client.adapter.spec.ts | 84 +++++++++++++++++++ .../authorization-client.adapter.ts | 4 +- 2 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts new file mode 100644 index 00000000000..b9f74949951 --- /dev/null +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -0,0 +1,84 @@ +import { createMock, DeepMocked } from '@golevelup/ts-jest'; +import { Test, TestingModule } from '@nestjs/testing'; +import { + Action, + AuthorizationApi, + AuthorizationBodyParamsReferenceType, + AuthorizationContextParams, + AuthorizedReponse, +} from './authorization-api-client'; +import { AuthorizationClientAdapter } from './authorization-client.adapter'; + +describe(AuthorizationClientAdapter.name, () => { + let module: TestingModule; + let service: AuthorizationClientAdapter; + let authorizationApi: DeepMocked; + + beforeAll(async () => { + module = await Test.createTestingModule({ + providers: [ + AuthorizationClientAdapter, + { + provide: AuthorizationApi, + useValue: createMock(), + }, + ], + }).compile(); + + service = module.get(AuthorizationClientAdapter); + authorizationApi = module.get(AuthorizationApi); + }); + + afterAll(async () => { + await module.close(); + }); + + it('should be defined', () => { + expect(service).toBeDefined(); + }); + + describe('checkPermissionByReferences', () => { + it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { + const referenceType: AuthorizationBodyParamsReferenceType = AuthorizationBodyParamsReferenceType.COURSES; + const referenceId = 'someReferenceId'; + const context: AuthorizationContextParams = { + action: Action.READ, + requiredPermissions: [], + }; + + const expectedParams = { + context, + referenceType, + referenceId, + }; + + await service.checkPermissionByReferences(referenceType, referenceId, context); + + expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( + expectedParams + ); + }); + + it('should return the response data', async () => { + const response: AuthorizedReponse = { + isAuthorized: true, + userId: 'userId', + }; + + (authorizationApi.authorizationReferenceControllerAuthorizeByReference as jest.Mock).mockResolvedValueOnce({ + data: response, + }); + + const result = await service.checkPermissionByReferences( + AuthorizationBodyParamsReferenceType.COURSES, + 'someReferenceId', + { + action: Action.READ, + requiredPermissions: [], + } + ); + + expect(result).toEqual(response); + }); + }); +}); diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index 6400eb11d92..8f082ec5d1b 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -12,9 +12,9 @@ export class AuthorizationClientAdapter { constructor(private readonly authorizationApi: AuthorizationApi) {} public async checkPermissionByReferences( - context: AuthorizationContextParams, referenceType: AuthorizationBodyParamsReferenceType, - referenceId: string + referenceId: string, + context: AuthorizationContextParams ): Promise { const params: AuthorizationBodyParams = { context, From 417de23c915ac8a5b9a2780cca010958d942516e Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Thu, 6 Jun 2024 11:55:26 +0200 Subject: [PATCH 05/40] BC-6453 - remove unused OpenAPI generated models --- .../.openapi-generator-ignore | 6 + .../.openapi-generator/FILES | 256 ----------- .../models/account-by-id-body-params.ts | 42 -- .../models/account-response.ts | 54 --- .../models/account-search-list-response.ts | 51 --- .../models/alert-response.ts | 33 -- .../models/api-validation-error.ts | 54 --- .../models/basic-tool-config-params.ts | 36 -- .../models/board-context-response.ts | 41 -- .../models/board-element-response.ts | 45 -- .../models/board-external-reference-type.ts | 31 -- .../models/board-layout.ts | 31 -- .../models/board-parent-type.ts | 31 -- .../models/board-response.ts | 66 --- ...n-controller-create-element201-response.ts | 38 -- ...d-controller-create-element201-response.ts | 50 -- .../models/card-list-response.ts | 33 -- .../models/card-response-elements-inner.ts | 50 -- .../models/card-response.ts | 69 --- .../models/card-skeleton-response.ts | 36 -- .../models/change-language-params.ts | 35 -- .../models/class-info-response.ts | 89 ---- .../models/class-info-search-list-response.ts | 51 --- .../models/class-request-context.ts | 31 -- .../models/class-response.ts | 36 -- .../models/class-sort-by.ts | 34 -- ...laborative-text-editor-element-response.ts | 56 --- .../collaborative-text-editor-parent-type.ts | 30 -- .../collaborative-text-editor-response.ts | 30 -- .../models/collapsable-body-params.ts | 30 -- .../models/color-body-params.ts | 35 -- .../models/column-response.ts | 54 --- .../models/config-response.ts | 431 ------------------ .../models/consent-request-body.ts | 72 --- .../models/consent-response.ts | 108 ----- .../models/consent-session-response.ts | 42 -- .../models/consents-response.ts | 42 -- .../models/content-element-type.ts | 36 -- .../context-external-tool-body-params.ts | 41 -- ...rnal-tool-configuration-status-response.ts | 60 --- ...ol-configuration-template-list-response.ts | 33 -- ...al-tool-configuration-template-response.ts | 57 --- ...xternal-tool-count-per-context-response.ts | 36 -- .../context-external-tool-post-params.ts | 57 --- .../models/context-external-tool-response.ts | 78 ---- ...text-external-tool-search-list-response.ts | 33 -- .../models/copy-api-response.ts | 114 ----- .../models/county-response.ts | 48 -- .../models/course-export-body-params.ts | 42 -- .../models/course-info-response.ts | 36 -- .../models/course-metadata-list-response.ts | 51 --- .../models/course-metadata-response.ts | 66 --- .../models/create-board-body-params.ts | 56 --- .../models/create-board-response.ts | 30 -- .../models/create-card-body-params.ts | 43 -- .../create-content-element-body-params.ts | 41 -- .../create-media-element-body-params.ts | 42 -- .../models/create-news-params.ts | 63 --- .../create-submission-item-body-params.ts | 30 -- .../models/custom-parameter-entry-param.ts | 36 -- .../models/custom-parameter-entry-response.ts | 36 -- .../models/custom-parameter-post-params.ts | 90 ---- .../models/custom-parameter-response.ts | 118 ----- .../models/dashboard-grid-element-response.ts | 87 ---- .../dashboard-grid-sub-element-response.ts | 48 -- .../models/dashboard-response.ts | 39 -- .../models/drawing-content-body.ts | 30 -- .../models/drawing-element-content-body.ts | 44 -- .../models/drawing-element-content.ts | 30 -- .../models/drawing-element-response.ts | 59 --- .../models/entity-not-found-error.ts | 54 --- .../models/external-source-response.ts | 36 -- .../external-tool-bulk-create-params.ts | 33 -- .../models/external-tool-content-body.ts | 30 -- .../models/external-tool-create-params.ts | 102 ----- .../external-tool-element-content-body.ts | 44 -- .../models/external-tool-element-content.ts | 30 -- .../models/external-tool-element-response.ts | 59 --- .../models/external-tool-medium-params.ts | 42 -- .../models/external-tool-medium-response.ts | 42 -- .../models/external-tool-metadata-response.ts | 39 -- .../models/external-tool-response-config.ts | 39 -- .../models/external-tool-response.ts | 108 ----- .../external-tool-search-list-response.ts | 51 --- .../external-tool-update-params-config.ts | 39 -- .../models/external-tool-update-params.ts | 108 ----- .../models/federal-state-response.ts | 57 --- .../models/file-content-body.ts | 36 -- .../models/file-element-content-body.ts | 44 -- .../models/file-element-content.ts | 36 -- .../models/file-element-response.ts | 59 --- .../models/file-storage-type.ts | 30 -- .../models/forbidden-operation-error.ts | 54 --- .../models/get-meta-tag-data-body.ts | 30 -- .../models/group-list-response.ts | 51 --- .../models/group-response.ts | 75 --- .../models/group-user-response.ts | 53 --- .../models/import-user-list-response.ts | 51 --- .../models/import-user-response.ts | 84 ---- .../authorization-api-client/models/index.ts | 255 ----------- .../models/layout-body-params.ts | 35 -- .../models/ldap-authorization-body-params.ts | 48 -- .../models/lesson-content-response.ts | 73 --- .../models/lesson-copy-api-params.ts | 30 -- .../models/lesson-metadata-list-response.ts | 51 --- .../models/lesson-metadata-response.ts | 36 -- .../models/lesson-response.ts | 85 ---- .../models/link-content-body.ts | 48 -- .../models/link-element-content-body.ts | 44 -- .../models/link-element-content.ts | 48 -- .../models/link-element-response.ts | 59 --- .../models/local-authorization-body-params.ts | 36 -- .../models/login-request-body.ts | 66 --- .../models/login-response.ts | 87 ---- .../models/lti-message-type.ts | 30 -- .../models/lti-privacy-permission.ts | 34 -- .../models/lti11-tool-config-create-params.ts | 77 ---- .../models/lti11-tool-config-update-params.ts | 77 ---- .../models/material-response.ts | 72 --- .../models/me-account-response.ts | 30 -- .../models/me-response.ts | 77 ---- .../models/me-role-response.ts | 36 -- .../models/me-school-logo-response.ts | 36 -- .../models/me-school-response.ts | 45 -- .../models/me-user-response.ts | 48 -- .../media-available-line-element-response.ts | 48 -- .../models/media-available-line-response.ts | 50 -- .../models/media-board-colors.ts | 49 -- .../models/media-board-layout-type.ts | 31 -- .../models/media-board-response.ts | 59 --- .../media-external-tool-element-content.ts | 30 -- .../media-external-tool-element-response.ts | 48 -- .../models/media-line-response.ts | 71 --- .../models/message-origin.ts | 36 -- .../models/message.ts | 69 --- .../models/meta-tag-extractor-response.ts | 66 --- .../models/move-card-body-params.ts | 36 -- .../models/move-column-body-params.ts | 36 -- .../models/move-content-element-body.ts | 36 -- .../models/move-element-body-params.ts | 36 -- .../models/move-element-params.ts | 39 -- .../models/move-element-position-params.ts | 42 -- .../models/news-list-response.ts | 51 --- .../models/news-response.ts | 134 ------ .../models/news-target-model.ts | 32 -- .../models/oauth-client-body.ts | 84 ---- .../models/oauth-client-response.ts | 300 ------------ .../models/oauth-config-response.ts | 96 ---- .../models/oauth-token-dto.ts | 42 -- .../oauth2-authorization-body-params.ts | 42 -- .../models/oauth2-migration-params.ts | 42 -- .../oauth2-tool-config-create-params.ts | 78 ---- .../oauth2-tool-config-update-params.ts | 78 ---- .../models/oidc-context-response.ts | 54 --- .../models/parent-consent-response.ts | 60 --- .../models/patch-group-params.ts | 30 -- .../models/patch-my-account-params.ts | 54 --- .../models/patch-my-password-params.ts | 36 -- .../models/patch-order-params.ts | 30 -- .../models/patch-visibility-params.ts | 30 -- .../models/provider-config-response.ts | 30 -- .../models/pseudonym-response.ts | 42 -- .../models/public-system-list-response.ts | 33 -- .../public-system-response-oauth-config.ts | 27 -- .../models/public-system-response.ts | 57 --- .../models/redirect-response.ts | 30 -- .../models/rename-body-params.ts | 30 -- .../models/resolved-user-response.ts | 72 --- .../models/rich-text-content-body.ts | 36 -- .../models/rich-text-element-content-body.ts | 44 -- .../models/rich-text-element-content.ts | 36 -- .../models/rich-text-element-response.ts | 59 --- .../models/rich-text.ts | 46 -- .../models/role-name.ts | 48 -- ...er-get-provisioning-options200-response.ts | 26 -- .../models/school-exists-response.ts | 30 -- ...rnal-tool-configuration-status-response.ts | 36 -- ...ol-configuration-template-list-response.ts | 33 -- ...al-tool-configuration-template-response.ts | 51 --- .../school-external-tool-metadata-response.ts | 33 -- .../school-external-tool-post-params.ts | 51 --- .../models/school-external-tool-response.ts | 72 --- ...hool-external-tool-search-list-response.ts | 33 -- .../school-for-external-invite-response.ts | 36 -- .../models/school-for-ldap-login-response.ts | 45 -- .../models/school-info-response.ts | 36 -- .../models/school-logo.ts | 36 -- .../models/school-permissions-params.ts | 42 -- .../models/school-purpose.ts | 34 -- .../models/school-response.ts | 179 -------- .../models/school-system-response.ts | 57 --- .../models/school-update-body-params.ts | 97 ---- .../models/school-year-query-type.ts | 32 -- .../models/school-year-response.ts | 48 -- ...chul-conne-xprovisioning-options-params.ts | 48 -- ...ul-conne-xprovisioning-options-response.ts | 48 -- .../models/schulcloud-theme.ts | 33 -- .../models/set-height-body-params.ts | 30 -- .../models/share-token-body-params.ts | 58 --- .../models/share-token-import-body-params.ts | 36 -- .../models/share-token-info-response.ts | 52 --- .../models/share-token-payload-response.ts | 46 -- .../models/share-token-response.ts | 45 -- .../models/single-column-board-response.ts | 63 --- .../models/student-permission-params.ts | 30 -- .../submission-container-content-body.ts | 30 -- ...bmission-container-element-content-body.ts | 44 -- .../submission-container-element-content.ts | 30 -- .../submission-container-element-response.ts | 59 --- ...submission-item-response-elements-inner.ts | 38 -- .../models/submission-item-response.ts | 60 --- .../models/submission-status-list-response.ts | 33 -- .../models/submission-status-response.ts | 60 --- .../models/submissions-response.ts | 42 -- .../models/successful-response.ts | 30 -- .../models/system-for-ldap-login-response.ts | 42 -- .../models/target-info-response.ts | 36 -- .../models/task-copy-api-params.ts | 36 -- .../models/task-list-response.ts | 51 --- .../models/task-response.ts | 108 ----- .../models/task-status-response.ts | 60 --- .../models/teacher-permission-params.ts | 30 -- .../models/team-permissions-body.ts | 54 --- .../models/timestamps-response.ts | 42 -- .../models/timezone.ts | 30 -- .../models/tool-config-type.ts | 32 -- .../models/tool-context-type.ts | 32 -- .../tool-context-types-list-response.ts | 33 -- .../models/tool-launch-request-response.ts | 56 --- .../models/tool-reference-list-response.ts | 33 -- .../models/tool-reference-response.ts | 63 --- .../models/update-board-title-params.ts | 30 -- ...update-element-content-body-params-data.ts | 47 -- .../update-element-content-body-params.ts | 33 -- .../models/update-flag-params.ts | 30 -- .../models/update-match-params.ts | 30 -- .../models/update-news-params.ts | 42 -- .../update-submission-item-body-params.ts | 30 -- .../models/user-consent-response.ts | 54 --- .../models/user-data-response.ts | 42 -- .../models/user-info-response.ts | 42 -- .../models/user-list-response.ts | 51 --- .../user-login-migration-mandatory-params.ts | 30 -- .../models/user-login-migration-response.ts | 66 --- ...er-login-migration-search-list-response.ts | 51 --- .../models/user-match-list-response.ts | 51 --- .../models/user-match-response.ts | 75 --- .../models/user-response.ts | 108 ----- .../models/validation-error.ts | 54 --- .../models/video-conference-create-params.ts | 48 -- .../models/video-conference-info-response.ts | 44 -- .../models/video-conference-join-response.ts | 30 -- .../video-conference-options-response.ts | 42 -- .../models/video-conference-scope.ts | 31 -- .../models/video-conference-state-response.ts | 32 -- .../models/visibility-body-params.ts | 30 -- .../models/visibility-settings-response.ts | 30 -- .../models/years-response.ts | 51 --- .../authorization-client.adapter.ts | 35 +- .../src/infra/authorization-client/index.ts | 2 + 260 files changed, 21 insertions(+), 13573 deletions(-) delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/account-by-id-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/account-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/account-search-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/alert-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/api-validation-error.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/basic-tool-config-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-context-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-element-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-external-reference-type.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-layout.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-parent-type.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/board-submission-controller-create-element201-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/card-controller-create-element201-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/card-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/card-response-elements-inner.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/card-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/card-skeleton-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/change-language-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-search-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/class-request-context.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/class-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/class-sort-by.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-element-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-parent-type.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/collapsable-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/color-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/column-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/config-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/consent-request-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/consent-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/consent-session-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/consents-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/content-element-type.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-status-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-count-per-context-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-post-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-search-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/copy-api-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/county-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/course-export-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/course-info-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-card-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-content-element-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-media-element-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-news-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/create-submission-item-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-param.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-post-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-element-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-sub-element-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-content-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/entity-not-found-error.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-source-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-bulk-create-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-content-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-create-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-metadata-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response-config.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-search-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params-config.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/federal-state-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/file-content-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/file-storage-type.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/forbidden-operation-error.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/get-meta-tag-data-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/group-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/group-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/group-user-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/layout-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/ldap-authorization-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-content-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-copy-api-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/link-content-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/local-authorization-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/login-request-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/login-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lti-message-type.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lti-privacy-permission.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-create-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-update-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/material-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/me-account-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/me-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/me-role-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-logo-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/me-user-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-element-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-colors.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-layout-type.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-content.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/media-line-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/message-origin.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/message.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/meta-tag-extractor-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/move-card-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/move-column-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/move-content-element-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-position-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/news-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/news-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/news-target-model.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-config-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-token-dto.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-authorization-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-migration-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-create-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-update-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/oidc-context-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/parent-consent-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/patch-group-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-account-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-password-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/patch-order-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/patch-visibility-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/provider-config-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/pseudonym-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response-oauth-config.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/redirect-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/rename-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/resolved-user-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-content-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/role-name.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-controller-get-provisioning-options200-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-exists-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-status-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-metadata-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-post-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-search-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-external-invite-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-ldap-login-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-info-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-logo.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-permissions-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-purpose.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-system-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-update-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-query-type.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/schulcloud-theme.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/set-height-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-import-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-info-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-payload-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/single-column-board-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/student-permission-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-content-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response-elements-inner.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/submissions-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/successful-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/system-for-ldap-login-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/target-info-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/task-copy-api-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/task-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/task-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/task-status-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/teacher-permission-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/team-permissions-body.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/timestamps-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/timezone.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/tool-config-type.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-type.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-types-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/tool-launch-request-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-board-title-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params-data.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-flag-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-match-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-news-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/update-submission-item-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-consent-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-data-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-info-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-mandatory-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-search-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-list-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/user-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/validation-error.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-create-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-info-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-join-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-options-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-scope.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-state-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-body-params.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-settings-response.ts delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/models/years-response.ts create mode 100644 apps/server/src/infra/authorization-client/index.ts diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore index 7484ee590a3..c48ecddba99 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore +++ b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore @@ -21,3 +21,9 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md +models/* +!models/action.ts +!models/authorization-body-params.ts +!models/authorization-context-params.ts +!models/authorized-reponse.ts +!models/index.ts \ No newline at end of file diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES index f79fccf336a..72267ce3cc5 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES +++ b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES @@ -1,6 +1,5 @@ .gitignore .npmignore -.openapi-generator-ignore api.ts api/authorization-api.ts base.ts @@ -8,263 +7,8 @@ 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/board-submission-controller-create-element201-response.ts -models/card-controller-create-element201-response.ts -models/card-list-response.ts -models/card-response-elements-inner.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-by.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-config.ts -models/external-tool-response.ts -models/external-tool-search-list-response.ts -models/external-tool-update-params-config.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/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/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-body.ts -models/oauth-client-response.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/provider-config-response.ts -models/pseudonym-response.ts -models/public-system-list-response.ts -models/public-system-response-oauth-config.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-controller-get-provisioning-options200-response.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-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-elements-inner.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/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-data.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 diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/account-by-id-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/account-by-id-body-params.ts deleted file mode 100644 index beccd223f8d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/account-by-id-body-params.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface AccountByIdBodyParams - */ -export interface AccountByIdBodyParams { - /** - * The new user name for the user. - * @type {string} - * @memberof AccountByIdBodyParams - */ - 'username'?: string | null; - /** - * The new password for the user. - * @type {string} - * @memberof AccountByIdBodyParams - */ - 'password'?: string | null; - /** - * The new activation state of the user. - * @type {boolean} - * @memberof AccountByIdBodyParams - */ - 'activated'?: boolean | null; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/account-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/account-response.ts deleted file mode 100644 index 5bdc249fbdd..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/account-response.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface AccountResponse - */ -export interface AccountResponse { - /** - * - * @type {string} - * @memberof AccountResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof AccountResponse - */ - 'username': string; - /** - * - * @type {string} - * @memberof AccountResponse - */ - 'userId': string; - /** - * - * @type {boolean} - * @memberof AccountResponse - */ - 'activated': boolean; - /** - * - * @type {string} - * @memberof AccountResponse - */ - 'updatedAt': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/account-search-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/account-search-list-response.ts deleted file mode 100644 index f13242181c8..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/account-search-list-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { AccountResponse } from './account-response'; - -/** - * - * @export - * @interface AccountSearchListResponse - */ -export interface AccountSearchListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof AccountSearchListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof AccountSearchListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof AccountSearchListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof AccountSearchListResponse - */ - 'limit': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/alert-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/alert-response.ts deleted file mode 100644 index eaa35b3eafe..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/alert-response.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { Message } from './message'; - -/** - * - * @export - * @interface AlertResponse - */ -export interface AlertResponse { - /** - * - * @type {Array} - * @memberof AlertResponse - */ - 'data': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/api-validation-error.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/api-validation-error.ts deleted file mode 100644 index d5d948fc5f7..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/api-validation-error.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ApiValidationError - */ -export interface ApiValidationError { - /** - * The response status code. - * @type {number} - * @memberof ApiValidationError - */ - 'code': number; - /** - * The error type. - * @type {string} - * @memberof ApiValidationError - */ - 'type': string; - /** - * The error title. - * @type {string} - * @memberof ApiValidationError - */ - 'title': string; - /** - * The error message. - * @type {string} - * @memberof ApiValidationError - */ - 'message': string; - /** - * The error details. - * @type {object} - * @memberof ApiValidationError - */ - 'details'?: object; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/basic-tool-config-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/basic-tool-config-params.ts deleted file mode 100644 index 42546789c38..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/basic-tool-config-params.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface BasicToolConfigParams - */ -export interface BasicToolConfigParams { - /** - * - * @type {string} - * @memberof BasicToolConfigParams - */ - 'type': string; - /** - * - * @type {string} - * @memberof BasicToolConfigParams - */ - 'baseUrl': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-context-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-context-response.ts deleted file mode 100644 index 1ae652ec113..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-context-response.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { BoardExternalReferenceType } from './board-external-reference-type'; - -/** - * - * @export - * @interface BoardContextResponse - */ -export interface BoardContextResponse { - /** - * - * @type {string} - * @memberof BoardContextResponse - */ - 'id': string; - /** - * - * @type {BoardExternalReferenceType} - * @memberof BoardContextResponse - */ - 'type': BoardExternalReferenceType; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-element-response.ts deleted file mode 100644 index 7137c3b411a..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-element-response.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface BoardElementResponse - */ -export interface BoardElementResponse { - /** - * the type of the element in the content. For possible types, please refer to the enum - * @type {string} - * @memberof BoardElementResponse - */ - 'type': BoardElementResponseType; - /** - * Content of the Board, either: a task or a lesson specific for the board - * @type {object} - * @memberof BoardElementResponse - */ - 'content': object; -} - -export const BoardElementResponseType = { - TASK: 'task', - LESSON: 'lesson', - COLUMN_BOARD: 'column-board' -} as const; - -export type BoardElementResponseType = typeof BoardElementResponseType[keyof typeof BoardElementResponseType]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-external-reference-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-external-reference-type.ts deleted file mode 100644 index 10544700101..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-external-reference-type.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const BoardExternalReferenceType = { - COURSE: 'course', - USER: 'user' -} as const; - -export type BoardExternalReferenceType = typeof BoardExternalReferenceType[keyof typeof BoardExternalReferenceType]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-layout.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-layout.ts deleted file mode 100644 index ebd6867af7f..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-layout.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const BoardLayout = { - COLUMNS: 'columns', - LIST: 'list' -} as const; - -export type BoardLayout = typeof BoardLayout[keyof typeof BoardLayout]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-parent-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-parent-type.ts deleted file mode 100644 index 4498c9702b4..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-parent-type.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const BoardParentType = { - COURSE: 'course', - USER: 'user' -} as const; - -export type BoardParentType = typeof BoardParentType[keyof typeof BoardParentType]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-response.ts deleted file mode 100644 index 0b1d6b29a60..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-response.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ColumnResponse } from './column-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface BoardResponse - */ -export interface BoardResponse { - /** - * - * @type {string} - * @memberof BoardResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof BoardResponse - */ - 'title': string; - /** - * - * @type {Array} - * @memberof BoardResponse - */ - 'columns': Array; - /** - * - * @type {TimestampsResponse} - * @memberof BoardResponse - */ - 'timestamps': TimestampsResponse; - /** - * - * @type {boolean} - * @memberof BoardResponse - */ - 'isVisible': boolean; - /** - * - * @type {string} - * @memberof BoardResponse - */ - 'layout': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-submission-controller-create-element201-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/board-submission-controller-create-element201-response.ts deleted file mode 100644 index 2e5c5268ac6..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/board-submission-controller-create-element201-response.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { FileElementContent } from './file-element-content'; -// May contain unused imports in some cases -// @ts-ignore -import type { FileElementResponse } from './file-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { RichTextElementResponse } from './rich-text-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * @type BoardSubmissionControllerCreateElement201Response - * @export - */ -export type BoardSubmissionControllerCreateElement201Response = FileElementResponse | RichTextElementResponse; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-controller-create-element201-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-controller-create-element201-response.ts deleted file mode 100644 index 527db1e9adf..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-controller-create-element201-response.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { DrawingElementContent } from './drawing-element-content'; -// May contain unused imports in some cases -// @ts-ignore -import type { DrawingElementResponse } from './drawing-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolElementResponse } from './external-tool-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { FileElementResponse } from './file-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { LinkElementResponse } from './link-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { RichTextElementResponse } from './rich-text-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { SubmissionContainerElementResponse } from './submission-container-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * @type CardControllerCreateElement201Response - * @export - */ -export type CardControllerCreateElement201Response = DrawingElementResponse | ExternalToolElementResponse | FileElementResponse | LinkElementResponse | RichTextElementResponse | SubmissionContainerElementResponse; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-list-response.ts deleted file mode 100644 index 1e51d6278ee..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-list-response.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CardResponse } from './card-response'; - -/** - * - * @export - * @interface CardListResponse - */ -export interface CardListResponse { - /** - * - * @type {Array} - * @memberof CardListResponse - */ - 'data': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-response-elements-inner.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-response-elements-inner.ts deleted file mode 100644 index 66bfc786f9c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-response-elements-inner.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CollaborativeTextEditorElementResponse } from './collaborative-text-editor-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { DrawingElementResponse } from './drawing-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolElementResponse } from './external-tool-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { FileElementResponse } from './file-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { LinkElementResponse } from './link-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { RichTextElementResponse } from './rich-text-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { SubmissionContainerElementResponse } from './submission-container-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * @type CardResponseElementsInner - * @export - */ -export type CardResponseElementsInner = CollaborativeTextEditorElementResponse | DrawingElementResponse | ExternalToolElementResponse | FileElementResponse | LinkElementResponse | RichTextElementResponse | SubmissionContainerElementResponse; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-response.ts deleted file mode 100644 index 95d90a38a6e..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-response.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CardResponseElementsInner } from './card-response-elements-inner'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { VisibilitySettingsResponse } from './visibility-settings-response'; - -/** - * - * @export - * @interface CardResponse - */ -export interface CardResponse { - /** - * - * @type {string} - * @memberof CardResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof CardResponse - */ - 'title'?: string; - /** - * - * @type {number} - * @memberof CardResponse - */ - 'height': number; - /** - * - * @type {Array} - * @memberof CardResponse - */ - 'elements': Array; - /** - * - * @type {VisibilitySettingsResponse} - * @memberof CardResponse - */ - 'visibilitySettings': VisibilitySettingsResponse; - /** - * - * @type {TimestampsResponse} - * @memberof CardResponse - */ - 'timestamps': TimestampsResponse; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-skeleton-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/card-skeleton-response.ts deleted file mode 100644 index 07ce117d677..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/card-skeleton-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CardSkeletonResponse - */ -export interface CardSkeletonResponse { - /** - * - * @type {string} - * @memberof CardSkeletonResponse - */ - 'cardId': string; - /** - * The approximate height of the referenced card. Intended to be used for prerendering purposes. Note, that different devices can lead to this value not being precise - * @type {number} - * @memberof CardSkeletonResponse - */ - 'height': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/change-language-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/change-language-params.ts deleted file mode 100644 index 6fda6164735..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/change-language-params.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { LanguageType } from './language-type'; - -/** - * - * @export - * @interface ChangeLanguageParams - */ -export interface ChangeLanguageParams { - /** - * - * @type {LanguageType} - * @memberof ChangeLanguageParams - */ - 'language': LanguageType; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-response.ts deleted file mode 100644 index 25a096f0c99..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-response.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CourseInfoResponse } from './course-info-response'; - -/** - * - * @export - * @interface ClassInfoResponse - */ -export interface ClassInfoResponse { - /** - * - * @type {string} - * @memberof ClassInfoResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof ClassInfoResponse - */ - 'type': ClassInfoResponseType; - /** - * - * @type {string} - * @memberof ClassInfoResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof ClassInfoResponse - */ - 'externalSourceName'?: string; - /** - * - * @type {Array} - * @memberof ClassInfoResponse - */ - 'teacherNames': Array; - /** - * - * @type {string} - * @memberof ClassInfoResponse - */ - 'schoolYear'?: string; - /** - * - * @type {boolean} - * @memberof ClassInfoResponse - */ - 'isUpgradable'?: boolean; - /** - * - * @type {number} - * @memberof ClassInfoResponse - */ - 'studentCount': number; - /** - * - * @type {Array} - * @memberof ClassInfoResponse - */ - 'synchronizedCourses'?: Array; -} - -export const ClassInfoResponseType = { - CLASS: 'class', - GROUP: 'group' -} as const; - -export type ClassInfoResponseType = typeof ClassInfoResponseType[keyof typeof ClassInfoResponseType]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-search-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-search-list-response.ts deleted file mode 100644 index 2523d2f6d37..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-info-search-list-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ClassInfoResponse } from './class-info-response'; - -/** - * - * @export - * @interface ClassInfoSearchListResponse - */ -export interface ClassInfoSearchListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof ClassInfoSearchListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof ClassInfoSearchListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof ClassInfoSearchListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof ClassInfoSearchListResponse - */ - 'limit': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-request-context.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-request-context.ts deleted file mode 100644 index 485a0f25dcd..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-request-context.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const ClassRequestContext = { - COURSE: 'course', - CLASS_OVERVIEW: 'class-overview' -} as const; - -export type ClassRequestContext = typeof ClassRequestContext[keyof typeof ClassRequestContext]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-response.ts deleted file mode 100644 index 3212753a06d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ClassResponse - */ -export interface ClassResponse { - /** - * - * @type {string} - * @memberof ClassResponse - */ - 'name': string; - /** - * - * @type {number} - * @memberof ClassResponse - */ - 'gradeLevel': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-sort-by.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/class-sort-by.ts deleted file mode 100644 index ffae3ca02f4..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/class-sort-by.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const ClassSortBy = { - NAME: 'name', - EXTERNAL_SOURCE_NAME: 'externalSourceName', - SYNCHRONIZED_COURSES: 'synchronizedCourses', - STUDENT_COUNT: 'studentCount', - TEACHER_NAMES: 'teacherNames' -} as const; - -export type ClassSortBy = typeof ClassSortBy[keyof typeof ClassSortBy]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-element-response.ts deleted file mode 100644 index 57e4c49312c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-element-response.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface CollaborativeTextEditorElementResponse - */ -export interface CollaborativeTextEditorElementResponse { - /** - * - * @type {string} - * @memberof CollaborativeTextEditorElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof CollaborativeTextEditorElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {TimestampsResponse} - * @memberof CollaborativeTextEditorElementResponse - */ - 'timestamps': TimestampsResponse; - /** - * - * @type {object} - * @memberof CollaborativeTextEditorElementResponse - */ - 'content': object; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-parent-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-parent-type.ts deleted file mode 100644 index 22228c320ba..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-parent-type.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const CollaborativeTextEditorParentType = { - CONTENT_ELEMENT: 'content-element' -} as const; - -export type CollaborativeTextEditorParentType = typeof CollaborativeTextEditorParentType[keyof typeof CollaborativeTextEditorParentType]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-response.ts deleted file mode 100644 index fd4dd7d6018..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/collaborative-text-editor-response.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CollaborativeTextEditorResponse - */ -export interface CollaborativeTextEditorResponse { - /** - * - * @type {string} - * @memberof CollaborativeTextEditorResponse - */ - 'url': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/collapsable-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/collapsable-body-params.ts deleted file mode 100644 index ce3e5b2297f..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/collapsable-body-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CollapsableBodyParams - */ -export interface CollapsableBodyParams { - /** - * - * @type {boolean} - * @memberof CollapsableBodyParams - */ - 'collapsed': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/color-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/color-body-params.ts deleted file mode 100644 index 68626305f9e..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/color-body-params.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { MediaBoardColors } from './media-board-colors'; - -/** - * - * @export - * @interface ColorBodyParams - */ -export interface ColorBodyParams { - /** - * - * @type {MediaBoardColors} - * @memberof ColorBodyParams - */ - 'backgroundColor': MediaBoardColors; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/column-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/column-response.ts deleted file mode 100644 index b34180767e4..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/column-response.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CardSkeletonResponse } from './card-skeleton-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface ColumnResponse - */ -export interface ColumnResponse { - /** - * - * @type {string} - * @memberof ColumnResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof ColumnResponse - */ - 'title': string; - /** - * - * @type {Array} - * @memberof ColumnResponse - */ - 'cards': Array; - /** - * - * @type {TimestampsResponse} - * @memberof ColumnResponse - */ - 'timestamps': TimestampsResponse; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/config-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/config-response.ts deleted file mode 100644 index 4123a55bbaa..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/config-response.ts +++ /dev/null @@ -1,431 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { LanguageType } from './language-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { SchulcloudTheme } from './schulcloud-theme'; -// May contain unused imports in some cases -// @ts-ignore -import type { Timezone } from './timezone'; - -/** - * - * @export - * @interface ConfigResponse - */ -export interface ConfigResponse { - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'ACCESSIBILITY_REPORT_EMAIL': string; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_NEW_SCHOOL_ADMINISTRATION_PAGE_AS_DEFAULT_ENABLED': boolean; - /** - * - * @type {number} - * @memberof ConfigResponse - */ - 'MIGRATION_END_GRACE_PERIOD_MS': number; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_CTL_TOOLS_TAB_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_LTI_TOOLS_TAB_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SHOW_OUTDATED_USERS': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_ENABLE_LDAP_SYNC_DURING_MIGRATION': boolean; - /** - * - * @type {number} - * @memberof ConfigResponse - */ - 'CTL_TOOLS_RELOAD_TIME_MS': number; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SHOW_NEW_CLASS_VIEW_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_CTL_TOOLS_COPY_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SHOW_MIGRATION_WIZARD': boolean; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'MIGRATION_WIZARD_DOCUMENTATION_LINK'?: string; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_TLDRAW_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'TLDRAW__ASSETS_ENABLED': boolean; - /** - * - * @type {number} - * @memberof ConfigResponse - */ - 'TLDRAW__ASSETS_MAX_SIZE': number; - /** - * - * @type {Array} - * @memberof ConfigResponse - */ - 'TLDRAW__ASSETS_ALLOWED_MIME_TYPES_LIST': Array; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'ADMIN_TABLES_DISPLAY_CONSENT_COLUMN': boolean; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'ALERT_STATUS_URL': string | null; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_ES_COLLECTIONS_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_EXTENSIONS_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_TEAMS_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_LERNSTORE_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_ADMIN_TOGGLE_STUDENT_LERNSTORE_VIEW_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'TEACHER_STUDENT_VISIBILITY__IS_CONFIGURABLE': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'TEACHER_STUDENT_VISIBILITY__IS_ENABLED_BY_DEFAULT': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'TEACHER_STUDENT_VISIBILITY__IS_VISIBLE': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SCHOOL_POLICY_ENABLED_NEW': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SCHOOL_TERMS_OF_USE_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_NEXBOARD_COPY_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_VIDEOCONFERENCE_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_SUBMISSIONS_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_COLLABORATIVE_TEXT_EDITOR_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_LINK_ELEMENT_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_EXTERNAL_TOOLS_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_SHARE': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COLUMN_BOARD_SOCKET_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COURSE_SHARE': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_LOGIN_LINK_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_LESSON_SHARE': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_TASK_SHARE': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_BOARD_LAYOUT_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_USER_MIGRATION_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COPY_SERVICE_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_CONSENT_NECESSARY': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COMMON_CARTRIDGE_COURSE_EXPORT_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_COMMON_CARTRIDGE_COURSE_IMPORT_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SCHOOL_SANIS_USER_MIGRATION_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SCHULCONNEX_COURSE_SYNC_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_ALLOW_INSECURE_LDAP_URL_ENABLED': boolean; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'GHOST_BASE_URL': string; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'ROCKETCHAT_SERVICE_ENABLED': boolean; - /** - * - * @type {Array} - * @memberof ConfigResponse - */ - 'I18N__AVAILABLE_LANGUAGES': Array; - /** - * - * @type {LanguageType} - * @memberof ConfigResponse - */ - 'I18N__DEFAULT_LANGUAGE': LanguageType; - /** - * - * @type {LanguageType} - * @memberof ConfigResponse - */ - 'I18N__FALLBACK_LANGUAGE': LanguageType; - /** - * - * @type {Timezone} - * @memberof ConfigResponse - */ - 'I18N__DEFAULT_TIMEZONE': Timezone; - /** - * - * @type {number} - * @memberof ConfigResponse - */ - 'JWT_SHOW_TIMEOUT_WARNING_SECONDS': number; - /** - * - * @type {number} - * @memberof ConfigResponse - */ - 'JWT_TIMEOUT_SECONDS': number; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'NOT_AUTHENTICATED_REDIRECT_URL': string; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'DOCUMENT_BASE_DIR': string; - /** - * - * @type {SchulcloudTheme} - * @memberof ConfigResponse - */ - 'SC_THEME': SchulcloudTheme; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'SC_TITLE': string; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_MEDIA_SHELF_ENABLED': boolean; - /** - * - * @type {string} - * @memberof ConfigResponse - */ - 'BOARD_COLLABORATION_URI': string; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_NEW_LAYOUT_ENABLED': boolean; - /** - * - * @type {boolean} - * @memberof ConfigResponse - */ - 'FEATURE_SCHULCONNEX_MEDIA_LICENSE_ENABLED': boolean; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-request-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-request-body.ts deleted file mode 100644 index 4f19f9445f8..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-request-body.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ConsentRequestBody - */ -export interface ConsentRequestBody { - /** - * The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to request_denied. - * @type {string} - * @memberof ConsentRequestBody - */ - 'error'?: string; - /** - * Debug contains information to help resolve the problem as a developer. Usually not exposed to the public but only in the server logs. - * @type {string} - * @memberof ConsentRequestBody - */ - 'error_debug'?: string; - /** - * Description of the error in a human readable format. - * @type {string} - * @memberof ConsentRequestBody - */ - 'error_description'?: string; - /** - * Hint to help resolve the error. - * @type {string} - * @memberof ConsentRequestBody - */ - 'error_hint'?: string; - /** - * Represents the HTTP status code of the error (e.g. 401 or 403). Defaults to 400. - * @type {number} - * @memberof ConsentRequestBody - */ - 'status_code'?: number; - /** - * The Oauth2 client id. - * @type {Array} - * @memberof ConsentRequestBody - */ - 'grant_scope'?: Array; - /** - * Remember, if set to true, tells the oauth provider to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. - * @type {boolean} - * @memberof ConsentRequestBody - */ - 'remember'?: boolean; - /** - * RememberFor sets how long the consent authorization should be remembered for in seconds. If set to 0, the authorization will be remembered indefinitely. - * @type {number} - * @memberof ConsentRequestBody - */ - 'remember_for'?: number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-response.ts deleted file mode 100644 index 65e6d34eef0..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-response.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { OauthClientResponse } from './oauth-client-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { OidcContextResponse } from './oidc-context-response'; - -/** - * - * @export - * @interface ConsentResponse - */ -export interface ConsentResponse { - /** - * ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session - * @type {string} - * @memberof ConsentResponse - */ - 'acr': string; - /** - * - * @type {Array} - * @memberof ConsentResponse - */ - 'amr'?: Array; - /** - * Is the id/authorization challenge of the consent authorization request. It is used to identify the session. - * @type {object} - * @memberof ConsentResponse - */ - 'challenge': object; - /** - * - * @type {OauthClientResponse} - * @memberof ConsentResponse - */ - 'client': OauthClientResponse; - /** - * - * @type {object} - * @memberof ConsentResponse - */ - 'context': object; - /** - * LoginChallenge is the login challenge this consent challenge belongs to. - * @type {string} - * @memberof ConsentResponse - */ - 'login_challenge': string; - /** - * LoginSessionID is the login session ID. - * @type {string} - * @memberof ConsentResponse - */ - 'login_session_id': string; - /** - * - * @type {OidcContextResponse} - * @memberof ConsentResponse - */ - 'oidc_context': OidcContextResponse; - /** - * RequestUrl is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. - * @type {string} - * @memberof ConsentResponse - */ - 'request_url': string; - /** - * - * @type {Array} - * @memberof ConsentResponse - */ - 'requested_access_token_audience'?: Array; - /** - * The request scopes of the login request. - * @type {Array} - * @memberof ConsentResponse - */ - 'requested_scope'?: Array; - /** - * Skip, if true, implies that the client has requested the same scopes from the same user previously. - * @type {boolean} - * @memberof ConsentResponse - */ - 'skip': boolean; - /** - * Subject is the user id of the end-user that is authenticated. - * @type {string} - * @memberof ConsentResponse - */ - 'subject': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-session-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-session-response.ts deleted file mode 100644 index 8d95898f8aa..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/consent-session-response.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ConsentSessionResponse - */ -export interface ConsentSessionResponse { - /** - * The id of the client. - * @type {string} - * @memberof ConsentSessionResponse - */ - 'client_id': string; - /** - * The name of the client. - * @type {string} - * @memberof ConsentSessionResponse - */ - 'client_name': string; - /** - * The id/challenge of the consent authorization request. - * @type {string} - * @memberof ConsentSessionResponse - */ - 'challenge': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/consents-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/consents-response.ts deleted file mode 100644 index de183e95bff..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/consents-response.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ParentConsentResponse } from './parent-consent-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { UserConsentResponse } from './user-consent-response'; - -/** - * - * @export - * @interface ConsentsResponse - */ -export interface ConsentsResponse { - /** - * - * @type {UserConsentResponse} - * @memberof ConsentsResponse - */ - 'userConsent': UserConsentResponse; - /** - * - * @type {Array} - * @memberof ConsentsResponse - */ - 'parentConsents': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/content-element-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/content-element-type.ts deleted file mode 100644 index 57ee1f2323d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/content-element-type.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const ContentElementType = { - FILE: 'file', - DRAWING: 'drawing', - LINK: 'link', - RICH_TEXT: 'richText', - SUBMISSION_CONTAINER: 'submissionContainer', - EXTERNAL_TOOL: 'externalTool', - COLLABORATIVE_TEXT_EDITOR: 'collaborativeTextEditor' -} as const; - -export type ContentElementType = typeof ContentElementType[keyof typeof ContentElementType]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-body-params.ts deleted file mode 100644 index a79469bb211..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-body-params.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ToolContextType } from './tool-context-type'; - -/** - * - * @export - * @interface ContextExternalToolBodyParams - */ -export interface ContextExternalToolBodyParams { - /** - * - * @type {string} - * @memberof ContextExternalToolBodyParams - */ - 'contextId': string; - /** - * - * @type {ToolContextType} - * @memberof ContextExternalToolBodyParams - */ - 'contextType': ToolContextType; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-status-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-status-response.ts deleted file mode 100644 index b7cf5d152df..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-status-response.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ContextExternalToolConfigurationStatusResponse - */ -export interface ContextExternalToolConfigurationStatusResponse { - /** - * Is the tool outdated on school scope, because of non matching versions or required parameter changes on ExternalTool? - * @type {boolean} - * @memberof ContextExternalToolConfigurationStatusResponse - */ - 'isOutdatedOnScopeSchool': boolean; - /** - * Is the tool outdated on context scope, because of non matching versions or required parameter changes on SchoolExternalTool? - * @type {boolean} - * @memberof ContextExternalToolConfigurationStatusResponse - */ - 'isOutdatedOnScopeContext': boolean; - /** - * True, if a mandatory parameter on the context external tool is missing a value - * @type {boolean} - * @memberof ContextExternalToolConfigurationStatusResponse - */ - 'isIncompleteOnScopeContext': boolean; - /** - * True, if a optional parameter on the context external tool is missing a value. This is happening, when course is copied. - * @type {boolean} - * @memberof ContextExternalToolConfigurationStatusResponse - */ - 'isIncompleteOperationalOnScopeContext': boolean; - /** - * Is the tool deactivated, because of superhero or school administrator - * @type {boolean} - * @memberof ContextExternalToolConfigurationStatusResponse - */ - 'isDeactivated': boolean; - /** - * True if the tool is not licensed for user - * @type {boolean} - * @memberof ContextExternalToolConfigurationStatusResponse - */ - 'isNotLicensed': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-list-response.ts deleted file mode 100644 index 1bf717c10f6..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-list-response.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContextExternalToolConfigurationTemplateResponse } from './context-external-tool-configuration-template-response'; - -/** - * - * @export - * @interface ContextExternalToolConfigurationTemplateListResponse - */ -export interface ContextExternalToolConfigurationTemplateListResponse { - /** - * - * @type {Array} - * @memberof ContextExternalToolConfigurationTemplateListResponse - */ - 'data': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-response.ts deleted file mode 100644 index 75977e0c9b9..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-configuration-template-response.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CustomParameterResponse } from './custom-parameter-response'; - -/** - * - * @export - * @interface ContextExternalToolConfigurationTemplateResponse - */ -export interface ContextExternalToolConfigurationTemplateResponse { - /** - * - * @type {string} - * @memberof ContextExternalToolConfigurationTemplateResponse - */ - 'externalToolId': string; - /** - * - * @type {string} - * @memberof ContextExternalToolConfigurationTemplateResponse - */ - 'schoolExternalToolId': string; - /** - * - * @type {string} - * @memberof ContextExternalToolConfigurationTemplateResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof ContextExternalToolConfigurationTemplateResponse - */ - 'logoUrl'?: string; - /** - * - * @type {Array} - * @memberof ContextExternalToolConfigurationTemplateResponse - */ - 'parameters': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-count-per-context-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-count-per-context-response.ts deleted file mode 100644 index 16c76214122..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-count-per-context-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ContextExternalToolCountPerContextResponse - */ -export interface ContextExternalToolCountPerContextResponse { - /** - * - * @type {number} - * @memberof ContextExternalToolCountPerContextResponse - */ - 'course': number; - /** - * - * @type {number} - * @memberof ContextExternalToolCountPerContextResponse - */ - 'boardElement': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-post-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-post-params.ts deleted file mode 100644 index 62a74c6a49b..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-post-params.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CustomParameterEntryParam } from './custom-parameter-entry-param'; - -/** - * - * @export - * @interface ContextExternalToolPostParams - */ -export interface ContextExternalToolPostParams { - /** - * - * @type {string} - * @memberof ContextExternalToolPostParams - */ - 'schoolToolId': string; - /** - * - * @type {string} - * @memberof ContextExternalToolPostParams - */ - 'contextId': string; - /** - * - * @type {string} - * @memberof ContextExternalToolPostParams - */ - 'contextType': string; - /** - * - * @type {string} - * @memberof ContextExternalToolPostParams - */ - 'displayName'?: string; - /** - * - * @type {Array} - * @memberof ContextExternalToolPostParams - */ - 'parameters'?: Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-response.ts deleted file mode 100644 index e1a2d77c6e1..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-response.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CustomParameterEntryResponse } from './custom-parameter-entry-response'; - -/** - * - * @export - * @interface ContextExternalToolResponse - */ -export interface ContextExternalToolResponse { - /** - * - * @type {string} - * @memberof ContextExternalToolResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof ContextExternalToolResponse - */ - 'schoolToolId': string; - /** - * - * @type {string} - * @memberof ContextExternalToolResponse - */ - 'contextId': string; - /** - * - * @type {string} - * @memberof ContextExternalToolResponse - */ - 'contextType': ContextExternalToolResponseContextType; - /** - * - * @type {string} - * @memberof ContextExternalToolResponse - */ - 'displayName'?: string; - /** - * - * @type {Array} - * @memberof ContextExternalToolResponse - */ - 'parameters': Array; - /** - * - * @type {string} - * @memberof ContextExternalToolResponse - */ - 'logoUrl'?: string; -} - -export const ContextExternalToolResponseContextType = { - COURSE: 'course', - BOARD_ELEMENT: 'board-element', - MEDIA_BOARD: 'media-board' -} as const; - -export type ContextExternalToolResponseContextType = typeof ContextExternalToolResponseContextType[keyof typeof ContextExternalToolResponseContextType]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-search-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-search-list-response.ts deleted file mode 100644 index cbb6a165307..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/context-external-tool-search-list-response.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContextExternalToolResponse } from './context-external-tool-response'; - -/** - * - * @export - * @interface ContextExternalToolSearchListResponse - */ -export interface ContextExternalToolSearchListResponse { - /** - * - * @type {Array} - * @memberof ContextExternalToolSearchListResponse - */ - 'data': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/copy-api-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/copy-api-response.ts deleted file mode 100644 index dace5990eda..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/copy-api-response.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CopyApiResponse - */ -export interface CopyApiResponse { - /** - * Id of copied element - * @type {string} - * @memberof CopyApiResponse - */ - 'id'?: string; - /** - * Title of copied element - * @type {string} - * @memberof CopyApiResponse - */ - 'title'?: string; - /** - * Type of copied element - * @type {string} - * @memberof CopyApiResponse - */ - 'type': CopyApiResponseType; - /** - * Id of destination course - * @type {string} - * @memberof CopyApiResponse - */ - 'destinationCourseId'?: string; - /** - * Copy progress status of copied element - * @type {string} - * @memberof CopyApiResponse - */ - 'status': CopyApiResponseStatus; - /** - * List of included sub elements with recursive type structure - * @type {Array} - * @memberof CopyApiResponse - */ - 'elements'?: Array; -} - -export const CopyApiResponseType = { - BOARD: 'BOARD', - CARD: 'CARD', - COLLABORATIVE_TEXT_EDITOR_ELEMENT: 'COLLABORATIVE_TEXT_EDITOR_ELEMENT', - COLUMN: 'COLUMN', - COLUMNBOARD: 'COLUMNBOARD', - CONTENT: 'CONTENT', - COURSE: 'COURSE', - COURSEGROUP_GROUP: 'COURSEGROUP_GROUP', - EXTERNAL_TOOL: 'EXTERNAL_TOOL', - EXTERNAL_TOOL_ELEMENT: 'EXTERNAL_TOOL_ELEMENT', - FILE: 'FILE', - FILE_ELEMENT: 'FILE_ELEMENT', - DRAWING_ELEMENT: 'DRAWING_ELEMENT', - FILE_GROUP: 'FILE_GROUP', - LEAF: 'LEAF', - LESSON: 'LESSON', - LESSON_CONTENT_ETHERPAD: 'LESSON_CONTENT_ETHERPAD', - LESSON_CONTENT_GEOGEBRA: 'LESSON_CONTENT_GEOGEBRA', - LESSON_CONTENT_GROUP: 'LESSON_CONTENT_GROUP', - LESSON_CONTENT_LERNSTORE: 'LESSON_CONTENT_LERNSTORE', - LESSON_CONTENT_NEXBOARD: 'LESSON_CONTENT_NEXBOARD', - LESSON_CONTENT_TASK: 'LESSON_CONTENT_TASK', - LESSON_CONTENT_TEXT: 'LESSON_CONTENT_TEXT', - LERNSTORE_MATERIAL: 'LERNSTORE_MATERIAL', - LERNSTORE_MATERIAL_GROUP: 'LERNSTORE_MATERIAL_GROUP', - LINK_ELEMENT: 'LINK_ELEMENT', - LTITOOL_GROUP: 'LTITOOL_GROUP', - MEDIA_BOARD: 'MEDIA_BOARD', - MEDIA_LINE: 'MEDIA_LINE', - MEDIA_EXTERNAL_TOOL_ELEMENT: 'MEDIA_EXTERNAL_TOOL_ELEMENT', - METADATA: 'METADATA', - RICHTEXT_ELEMENT: 'RICHTEXT_ELEMENT', - SUBMISSION_CONTAINER_ELEMENT: 'SUBMISSION_CONTAINER_ELEMENT', - SUBMISSION_ITEM: 'SUBMISSION_ITEM', - SUBMISSION_GROUP: 'SUBMISSION_GROUP', - TASK: 'TASK', - TASK_GROUP: 'TASK_GROUP', - TIME_GROUP: 'TIME_GROUP', - USER_GROUP: 'USER_GROUP' -} as const; - -export type CopyApiResponseType = typeof CopyApiResponseType[keyof typeof CopyApiResponseType]; -export const CopyApiResponseStatus = { - SUCCESS: 'success', - FAILURE: 'failure', - NOT_DOING: 'not-doing', - NOT_IMPLEMENTED: 'not-implemented', - PARTIAL: 'partial' -} as const; - -export type CopyApiResponseStatus = typeof CopyApiResponseStatus[keyof typeof CopyApiResponseStatus]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/county-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/county-response.ts deleted file mode 100644 index 4c5bf982ff9..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/county-response.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CountyResponse - */ -export interface CountyResponse { - /** - * - * @type {string} - * @memberof CountyResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof CountyResponse - */ - 'name': string; - /** - * - * @type {number} - * @memberof CountyResponse - */ - 'countyId': number; - /** - * - * @type {string} - * @memberof CountyResponse - */ - 'antaresKey': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/course-export-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/course-export-body-params.ts deleted file mode 100644 index 991bd4ab40e..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/course-export-body-params.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CourseExportBodyParams - */ -export interface CourseExportBodyParams { - /** - * The list of ids of topics which should be exported. If empty no topics are exported. - * @type {Array} - * @memberof CourseExportBodyParams - */ - 'topics': Array; - /** - * The list of ids of tasks which should be exported. If empty no tasks are exported. - * @type {Array} - * @memberof CourseExportBodyParams - */ - 'tasks': Array; - /** - * The list of ids of column boards which should be exported. If empty no column boards are exported. - * @type {Array} - * @memberof CourseExportBodyParams - */ - 'columnBoards': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/course-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/course-info-response.ts deleted file mode 100644 index df10d76d5e3..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/course-info-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CourseInfoResponse - */ -export interface CourseInfoResponse { - /** - * - * @type {string} - * @memberof CourseInfoResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof CourseInfoResponse - */ - 'name': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-list-response.ts deleted file mode 100644 index 5fe38c668a7..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-list-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CourseMetadataResponse } from './course-metadata-response'; - -/** - * - * @export - * @interface CourseMetadataListResponse - */ -export interface CourseMetadataListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof CourseMetadataListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof CourseMetadataListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof CourseMetadataListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof CourseMetadataListResponse - */ - 'limit': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-response.ts deleted file mode 100644 index 58e5c20d01c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/course-metadata-response.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CourseMetadataResponse - */ -export interface CourseMetadataResponse { - /** - * The id of the Grid element - * @type {string} - * @memberof CourseMetadataResponse - */ - 'id': string; - /** - * Title of the Grid element - * @type {string} - * @memberof CourseMetadataResponse - */ - 'title': string; - /** - * Short title of the Grid element - * @type {string} - * @memberof CourseMetadataResponse - */ - 'shortTitle': string; - /** - * Color of the Grid element - * @type {string} - * @memberof CourseMetadataResponse - */ - 'displayColor': string; - /** - * Start date of the course - * @type {string} - * @memberof CourseMetadataResponse - */ - 'startDate'?: string; - /** - * End date of the course. After this the course counts as archived - * @type {string} - * @memberof CourseMetadataResponse - */ - 'untilDate'?: string; - /** - * Start of the copying process if it is still ongoing - otherwise property is not set. - * @type {string} - * @memberof CourseMetadataResponse - */ - 'copyingSince'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-body-params.ts deleted file mode 100644 index 7d423d0dd56..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-body-params.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { BoardLayout } from './board-layout'; -// May contain unused imports in some cases -// @ts-ignore -import type { BoardParentType } from './board-parent-type'; - -/** - * - * @export - * @interface CreateBoardBodyParams - */ -export interface CreateBoardBodyParams { - /** - * The title of the board - * @type {string} - * @memberof CreateBoardBodyParams - */ - 'title': string; - /** - * The id of the parent - * @type {string} - * @memberof CreateBoardBodyParams - */ - 'parentId': string; - /** - * - * @type {BoardParentType} - * @memberof CreateBoardBodyParams - */ - 'parentType': BoardParentType; - /** - * - * @type {BoardLayout} - * @memberof CreateBoardBodyParams - */ - 'layout': BoardLayout; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-response.ts deleted file mode 100644 index 9ab7bf89691..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-board-response.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CreateBoardResponse - */ -export interface CreateBoardResponse { - /** - * - * @type {string} - * @memberof CreateBoardResponse - */ - 'id': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-card-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-card-body-params.ts deleted file mode 100644 index 3e66e5455e7..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-card-body-params.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CreateCardBodyParams - */ -export interface CreateCardBodyParams { - /** - * - * @type {Array} - * @memberof CreateCardBodyParams - */ - 'requiredEmptyElements'?: Array; -} - -export const CreateCardBodyParamsRequiredEmptyElements = { - FILE: 'file', - DRAWING: 'drawing', - LINK: 'link', - RICH_TEXT: 'richText', - SUBMISSION_CONTAINER: 'submissionContainer', - EXTERNAL_TOOL: 'externalTool', - COLLABORATIVE_TEXT_EDITOR: 'collaborativeTextEditor' -} as const; - -export type CreateCardBodyParamsRequiredEmptyElements = typeof CreateCardBodyParamsRequiredEmptyElements[keyof typeof CreateCardBodyParamsRequiredEmptyElements]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-content-element-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-content-element-body-params.ts deleted file mode 100644 index 4c9a69910e6..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-content-element-body-params.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; - -/** - * - * @export - * @interface CreateContentElementBodyParams - */ -export interface CreateContentElementBodyParams { - /** - * - * @type {ContentElementType} - * @memberof CreateContentElementBodyParams - */ - 'type': ContentElementType; - /** - * to bring element to a specific position, default is last position - * @type {number} - * @memberof CreateContentElementBodyParams - */ - 'toPosition'?: number; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-media-element-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-media-element-body-params.ts deleted file mode 100644 index 7fb6219b68e..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-media-element-body-params.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CreateMediaElementBodyParams - */ -export interface CreateMediaElementBodyParams { - /** - * The id of the line where the element is created - * @type {string} - * @memberof CreateMediaElementBodyParams - */ - 'lineId': string; - /** - * The position where the element is created - * @type {number} - * @memberof CreateMediaElementBodyParams - */ - 'position': number; - /** - * The id of the school external tool - * @type {string} - * @memberof CreateMediaElementBodyParams - */ - 'schoolExternalToolId': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-news-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-news-params.ts deleted file mode 100644 index f848731470d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-news-params.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CreateNewsParams - */ -export interface CreateNewsParams { - /** - * Title of the News entity - * @type {string} - * @memberof CreateNewsParams - */ - 'title': string; - /** - * Content of the News entity - * @type {string} - * @memberof CreateNewsParams - */ - 'content': string; - /** - * The point in time from when the News entity schould be displayed. Defaults to now so that the news is published - * @type {string} - * @memberof CreateNewsParams - */ - 'displayAt'?: string; - /** - * Target model to which the News entity is related - * @type {string} - * @memberof CreateNewsParams - */ - 'targetModel': CreateNewsParamsTargetModel; - /** - * Specific target id to which the News entity is related - * @type {string} - * @memberof CreateNewsParams - */ - 'targetId': string; -} - -export const CreateNewsParamsTargetModel = { - SCHOOLS: 'schools', - COURSES: 'courses', - TEAMS: 'teams' -} as const; - -export type CreateNewsParamsTargetModel = typeof CreateNewsParamsTargetModel[keyof typeof CreateNewsParamsTargetModel]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-submission-item-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/create-submission-item-body-params.ts deleted file mode 100644 index fe86b43dd4d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/create-submission-item-body-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CreateSubmissionItemBodyParams - */ -export interface CreateSubmissionItemBodyParams { - /** - * Boolean indicating whether the submission is completed. - * @type {boolean} - * @memberof CreateSubmissionItemBodyParams - */ - 'completed': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-param.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-param.ts deleted file mode 100644 index 15ba133c340..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-param.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CustomParameterEntryParam - */ -export interface CustomParameterEntryParam { - /** - * - * @type {string} - * @memberof CustomParameterEntryParam - */ - 'name': string; - /** - * - * @type {string} - * @memberof CustomParameterEntryParam - */ - 'value'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-response.ts deleted file mode 100644 index 0e411e05b87..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-entry-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CustomParameterEntryResponse - */ -export interface CustomParameterEntryResponse { - /** - * - * @type {string} - * @memberof CustomParameterEntryResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof CustomParameterEntryResponse - */ - 'value'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-post-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-post-params.ts deleted file mode 100644 index f539fd14f14..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-post-params.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CustomParameterPostParams - */ -export interface CustomParameterPostParams { - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'name': string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'displayName': string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'defaultValue'?: string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'regex'?: string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'regexComment'?: string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'scope': string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'location': string; - /** - * - * @type {string} - * @memberof CustomParameterPostParams - */ - 'type': string; - /** - * - * @type {boolean} - * @memberof CustomParameterPostParams - */ - 'isOptional': boolean; - /** - * - * @type {boolean} - * @memberof CustomParameterPostParams - */ - 'isProtected': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-response.ts deleted file mode 100644 index 699324182ce..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/custom-parameter-response.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CustomParameterResponse - */ -export interface CustomParameterResponse { - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'displayName': string; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'defaultValue'?: string; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'regex'?: string; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'regexComment'?: string; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'scope': CustomParameterResponseScope; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'location': CustomParameterResponseLocation; - /** - * - * @type {string} - * @memberof CustomParameterResponse - */ - 'type': CustomParameterResponseType; - /** - * - * @type {boolean} - * @memberof CustomParameterResponse - */ - 'isOptional': boolean; - /** - * - * @type {boolean} - * @memberof CustomParameterResponse - */ - 'isProtected': boolean; -} - -export const CustomParameterResponseScope = { - GLOBAL: 'global', - SCHOOL: 'school', - CONTEXT: 'context' -} as const; - -export type CustomParameterResponseScope = typeof CustomParameterResponseScope[keyof typeof CustomParameterResponseScope]; -export const CustomParameterResponseLocation = { - PATH: 'path', - BODY: 'body', - QUERY: 'query' -} as const; - -export type CustomParameterResponseLocation = typeof CustomParameterResponseLocation[keyof typeof CustomParameterResponseLocation]; -export const CustomParameterResponseType = { - STRING: 'string', - NUMBER: 'number', - BOOLEAN: 'boolean', - AUTO_CONTEXTID: 'auto_contextid', - AUTO_CONTEXTNAME: 'auto_contextname', - AUTO_SCHOOLID: 'auto_schoolid', - AUTO_SCHOOLNUMBER: 'auto_schoolnumber', - AUTO_MEDIUMID: 'auto_mediumid' -} as const; - -export type CustomParameterResponseType = typeof CustomParameterResponseType[keyof typeof CustomParameterResponseType]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-element-response.ts deleted file mode 100644 index cfa56bf6b30..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-element-response.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { DashboardGridSubElementResponse } from './dashboard-grid-sub-element-response'; - -/** - * - * @export - * @interface DashboardGridElementResponse - */ -export interface DashboardGridElementResponse { - /** - * The id of the Grid element - * @type {string} - * @memberof DashboardGridElementResponse - */ - 'id': string; - /** - * Title of the Grid element - * @type {string} - * @memberof DashboardGridElementResponse - */ - 'title': string; - /** - * Short title of the Grid element - * @type {string} - * @memberof DashboardGridElementResponse - */ - 'shortTitle': string; - /** - * Color of the Grid element - * @type {string} - * @memberof DashboardGridElementResponse - */ - 'displayColor': string; - /** - * X position of the Grid element - * @type {number} - * @memberof DashboardGridElementResponse - */ - 'xPosition': number; - /** - * Y position of the Grid element - * @type {number} - * @memberof DashboardGridElementResponse - */ - 'yPosition': number; - /** - * The id of the group element - * @type {string} - * @memberof DashboardGridElementResponse - */ - 'groupId': string; - /** - * List of all subelements in the group - * @type {Array} - * @memberof DashboardGridElementResponse - */ - 'groupElements': Array; - /** - * Start of the copying process if it is still ongoing - otherwise property is not set. - * @type {string} - * @memberof DashboardGridElementResponse - */ - 'copyingSince': string; - /** - * Is the course synchronized with a group? - * @type {boolean} - * @memberof DashboardGridElementResponse - */ - 'isSynchronized': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-sub-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-sub-element-response.ts deleted file mode 100644 index e237c774df4..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-grid-sub-element-response.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface DashboardGridSubElementResponse - */ -export interface DashboardGridSubElementResponse { - /** - * The id of the Grid element - * @type {string} - * @memberof DashboardGridSubElementResponse - */ - 'id': string; - /** - * Title of the Grid element - * @type {string} - * @memberof DashboardGridSubElementResponse - */ - 'title': string; - /** - * Short title of the Grid element - * @type {string} - * @memberof DashboardGridSubElementResponse - */ - 'shortTitle': string; - /** - * Color of the Grid element - * @type {string} - * @memberof DashboardGridSubElementResponse - */ - 'displayColor': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-response.ts deleted file mode 100644 index e5e3def907d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/dashboard-response.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { DashboardGridElementResponse } from './dashboard-grid-element-response'; - -/** - * - * @export - * @interface DashboardResponse - */ -export interface DashboardResponse { - /** - * The id of the Dashboard entity - * @type {string} - * @memberof DashboardResponse - */ - 'id': string; - /** - * List of all elements visible on the dashboard - * @type {Array} - * @memberof DashboardResponse - */ - 'gridElements': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-content-body.ts deleted file mode 100644 index 02d80b65ee9..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-content-body.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface DrawingContentBody - */ -export interface DrawingContentBody { - /** - * - * @type {string} - * @memberof DrawingContentBody - */ - 'description': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content-body.ts deleted file mode 100644 index 6fd6abc2ade..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content-body.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { DrawingContentBody } from './drawing-content-body'; - -/** - * - * @export - * @interface DrawingElementContentBody - */ -export interface DrawingElementContentBody { - /** - * - * @type {ContentElementType} - * @memberof DrawingElementContentBody - */ - 'type': ContentElementType; - /** - * - * @type {DrawingContentBody} - * @memberof DrawingElementContentBody - */ - 'content': DrawingContentBody; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content.ts deleted file mode 100644 index 55d09d28782..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-content.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface DrawingElementContent - */ -export interface DrawingElementContent { - /** - * - * @type {string} - * @memberof DrawingElementContent - */ - 'description': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-response.ts deleted file mode 100644 index 9c0803671bc..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/drawing-element-response.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { DrawingElementContent } from './drawing-element-content'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface DrawingElementResponse - */ -export interface DrawingElementResponse { - /** - * - * @type {string} - * @memberof DrawingElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof DrawingElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {TimestampsResponse} - * @memberof DrawingElementResponse - */ - 'timestamps': TimestampsResponse; - /** - * - * @type {DrawingElementContent} - * @memberof DrawingElementResponse - */ - 'content': DrawingElementContent; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/entity-not-found-error.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/entity-not-found-error.ts deleted file mode 100644 index f7ba1ffef84..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/entity-not-found-error.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface EntityNotFoundError - */ -export interface EntityNotFoundError { - /** - * The response status code. - * @type {number} - * @memberof EntityNotFoundError - */ - 'code': number; - /** - * The error type. - * @type {string} - * @memberof EntityNotFoundError - */ - 'type': string; - /** - * The error title. - * @type {string} - * @memberof EntityNotFoundError - */ - 'title': string; - /** - * The error message. - * @type {string} - * @memberof EntityNotFoundError - */ - 'message': string; - /** - * The error details. - * @type {object} - * @memberof EntityNotFoundError - */ - 'details'?: object; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-source-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-source-response.ts deleted file mode 100644 index 49f3472a975..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-source-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ExternalSourceResponse - */ -export interface ExternalSourceResponse { - /** - * - * @type {string} - * @memberof ExternalSourceResponse - */ - 'externalId': string; - /** - * - * @type {string} - * @memberof ExternalSourceResponse - */ - 'systemId': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-bulk-create-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-bulk-create-params.ts deleted file mode 100644 index 1b4ec9c1d7a..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-bulk-create-params.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolCreateParams } from './external-tool-create-params'; - -/** - * - * @export - * @interface ExternalToolBulkCreateParams - */ -export interface ExternalToolBulkCreateParams { - /** - * List of external tools - * @type {Array} - * @memberof ExternalToolBulkCreateParams - */ - 'data': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-content-body.ts deleted file mode 100644 index f6097315cbf..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-content-body.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ExternalToolContentBody - */ -export interface ExternalToolContentBody { - /** - * - * @type {string} - * @memberof ExternalToolContentBody - */ - 'contextExternalToolId'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-create-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-create-params.ts deleted file mode 100644 index 58d10e68b74..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-create-params.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CustomParameterPostParams } from './custom-parameter-post-params'; -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolMediumParams } from './external-tool-medium-params'; -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolResponseConfig } from './external-tool-response-config'; -// May contain unused imports in some cases -// @ts-ignore -import type { ToolContextType } from './tool-context-type'; - -/** - * - * @export - * @interface ExternalToolCreateParams - */ -export interface ExternalToolCreateParams { - /** - * Name of the external tool - * @type {string} - * @memberof ExternalToolCreateParams - */ - 'name': string; - /** - * Description of the external tool - * @type {string} - * @memberof ExternalToolCreateParams - */ - 'description'?: string; - /** - * URL of the external tool - * @type {string} - * @memberof ExternalToolCreateParams - */ - 'url'?: string; - /** - * URL of the logo of the external tool - * @type {string} - * @memberof ExternalToolCreateParams - */ - 'logoUrl'?: string; - /** - * - * @type {ExternalToolResponseConfig} - * @memberof ExternalToolCreateParams - */ - 'config': ExternalToolResponseConfig; - /** - * Custom parameters of the external tool - * @type {Array} - * @memberof ExternalToolCreateParams - */ - 'parameters'?: Array; - /** - * Tool can be hidden, those tools cant be added to e.g. school, course or board - * @type {boolean} - * @memberof ExternalToolCreateParams - */ - 'isHidden': boolean; - /** - * Tool can be deactivated, related tools can not be added to e.g. school, course or board anymore - * @type {boolean} - * @memberof ExternalToolCreateParams - */ - 'isDeactivated': boolean; - /** - * Tool should be opened in a new tab - * @type {boolean} - * @memberof ExternalToolCreateParams - */ - 'openNewTab': boolean; - /** - * Restrict tools to specific contexts - * @type {Array} - * @memberof ExternalToolCreateParams - */ - 'restrictToContexts'?: Array; - /** - * Medium of the external tool - * @type {ExternalToolMediumParams} - * @memberof ExternalToolCreateParams - */ - 'medium'?: ExternalToolMediumParams; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content-body.ts deleted file mode 100644 index de3a37b0321..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content-body.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolContentBody } from './external-tool-content-body'; - -/** - * - * @export - * @interface ExternalToolElementContentBody - */ -export interface ExternalToolElementContentBody { - /** - * - * @type {ContentElementType} - * @memberof ExternalToolElementContentBody - */ - 'type': ContentElementType; - /** - * - * @type {ExternalToolContentBody} - * @memberof ExternalToolElementContentBody - */ - 'content': ExternalToolContentBody; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content.ts deleted file mode 100644 index 47003d5db9e..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-content.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ExternalToolElementContent - */ -export interface ExternalToolElementContent { - /** - * - * @type {string} - * @memberof ExternalToolElementContent - */ - 'contextExternalToolId': string | null; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-response.ts deleted file mode 100644 index 44d60edddd8..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-element-response.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolElementContent } from './external-tool-element-content'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface ExternalToolElementResponse - */ -export interface ExternalToolElementResponse { - /** - * - * @type {string} - * @memberof ExternalToolElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof ExternalToolElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {ExternalToolElementContent} - * @memberof ExternalToolElementResponse - */ - 'content': ExternalToolElementContent; - /** - * - * @type {TimestampsResponse} - * @memberof ExternalToolElementResponse - */ - 'timestamps': TimestampsResponse; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-params.ts deleted file mode 100644 index 8bf96ce003a..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-params.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ExternalToolMediumParams - */ -export interface ExternalToolMediumParams { - /** - * Id of the medium - * @type {string} - * @memberof ExternalToolMediumParams - */ - 'mediumId': string; - /** - * Publisher of the medium - * @type {string} - * @memberof ExternalToolMediumParams - */ - 'publisher'?: string; - /** - * The id of the media source - * @type {string} - * @memberof ExternalToolMediumParams - */ - 'mediaSourceId'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-response.ts deleted file mode 100644 index ec152173f7c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-medium-response.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ExternalToolMediumResponse - */ -export interface ExternalToolMediumResponse { - /** - * Id of the medium - * @type {string} - * @memberof ExternalToolMediumResponse - */ - 'mediumId': string; - /** - * Publisher of the medium - * @type {string} - * @memberof ExternalToolMediumResponse - */ - 'publisher'?: string; - /** - * The id of the media source - * @type {string} - * @memberof ExternalToolMediumResponse - */ - 'mediaSourceId'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-metadata-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-metadata-response.ts deleted file mode 100644 index 35d8ed722bb..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-metadata-response.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContextExternalToolCountPerContextResponse } from './context-external-tool-count-per-context-response'; - -/** - * - * @export - * @interface ExternalToolMetadataResponse - */ -export interface ExternalToolMetadataResponse { - /** - * - * @type {number} - * @memberof ExternalToolMetadataResponse - */ - 'schoolExternalToolCount': number; - /** - * - * @type {ContextExternalToolCountPerContextResponse} - * @memberof ExternalToolMetadataResponse - */ - 'contextExternalToolCountPerContext': ContextExternalToolCountPerContextResponse; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response-config.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response-config.ts deleted file mode 100644 index b31b4ea65d8..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response-config.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { BasicToolConfigParams } from './basic-tool-config-params'; -// May contain unused imports in some cases -// @ts-ignore -import type { Lti11ToolConfigCreateParams } from './lti11-tool-config-create-params'; -// May contain unused imports in some cases -// @ts-ignore -import type { LtiMessageType } from './lti-message-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { LtiPrivacyPermission } from './lti-privacy-permission'; -// May contain unused imports in some cases -// @ts-ignore -import type { Oauth2ToolConfigCreateParams } from './oauth2-tool-config-create-params'; - -/** - * @type ExternalToolResponseConfig - * Configuration of the external tool - * @export - */ -export type ExternalToolResponseConfig = BasicToolConfigParams | Lti11ToolConfigCreateParams | Oauth2ToolConfigCreateParams; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response.ts deleted file mode 100644 index fea92f8969a..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-response.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CustomParameterResponse } from './custom-parameter-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolMediumResponse } from './external-tool-medium-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolResponseConfig } from './external-tool-response-config'; -// May contain unused imports in some cases -// @ts-ignore -import type { ToolContextType } from './tool-context-type'; - -/** - * - * @export - * @interface ExternalToolResponse - */ -export interface ExternalToolResponse { - /** - * Id of the external tool - * @type {string} - * @memberof ExternalToolResponse - */ - 'id': string; - /** - * Name of the external tool - * @type {string} - * @memberof ExternalToolResponse - */ - 'name': string; - /** - * Description of the external tool - * @type {string} - * @memberof ExternalToolResponse - */ - 'description'?: string; - /** - * URL of the external tool - * @type {string} - * @memberof ExternalToolResponse - */ - 'url'?: string; - /** - * URL of the logo of the external tool - * @type {string} - * @memberof ExternalToolResponse - */ - 'logoUrl'?: string; - /** - * - * @type {ExternalToolResponseConfig} - * @memberof ExternalToolResponse - */ - 'config': ExternalToolResponseConfig; - /** - * Custom parameters of the external tool - * @type {Array} - * @memberof ExternalToolResponse - */ - 'parameters': Array; - /** - * Is the external tool hidden - * @type {boolean} - * @memberof ExternalToolResponse - */ - 'isHidden': boolean; - /** - * Is the external tool deactivated - * @type {boolean} - * @memberof ExternalToolResponse - */ - 'isDeactivated': boolean; - /** - * Should the external tool be opened in a new tab - * @type {boolean} - * @memberof ExternalToolResponse - */ - 'openNewTab': boolean; - /** - * Contexts in which the external tool is restricted - * @type {Array} - * @memberof ExternalToolResponse - */ - 'restrictToContexts'?: Array; - /** - * Medium of the external tool - * @type {ExternalToolMediumResponse} - * @memberof ExternalToolResponse - */ - 'medium'?: ExternalToolMediumResponse; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-search-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-search-list-response.ts deleted file mode 100644 index 447a819f416..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-search-list-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolResponse } from './external-tool-response'; - -/** - * - * @export - * @interface ExternalToolSearchListResponse - */ -export interface ExternalToolSearchListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof ExternalToolSearchListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof ExternalToolSearchListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof ExternalToolSearchListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof ExternalToolSearchListResponse - */ - 'limit': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params-config.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params-config.ts deleted file mode 100644 index 16112f4b2c2..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params-config.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { BasicToolConfigParams } from './basic-tool-config-params'; -// May contain unused imports in some cases -// @ts-ignore -import type { Lti11ToolConfigUpdateParams } from './lti11-tool-config-update-params'; -// May contain unused imports in some cases -// @ts-ignore -import type { LtiMessageType } from './lti-message-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { LtiPrivacyPermission } from './lti-privacy-permission'; -// May contain unused imports in some cases -// @ts-ignore -import type { Oauth2ToolConfigUpdateParams } from './oauth2-tool-config-update-params'; - -/** - * @type ExternalToolUpdateParamsConfig - * Configuration of the external tool - * @export - */ -export type ExternalToolUpdateParamsConfig = BasicToolConfigParams | Lti11ToolConfigUpdateParams | Oauth2ToolConfigUpdateParams; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params.ts deleted file mode 100644 index bfcd10db17d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/external-tool-update-params.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CustomParameterPostParams } from './custom-parameter-post-params'; -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolMediumParams } from './external-tool-medium-params'; -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolUpdateParamsConfig } from './external-tool-update-params-config'; -// May contain unused imports in some cases -// @ts-ignore -import type { ToolContextType } from './tool-context-type'; - -/** - * - * @export - * @interface ExternalToolUpdateParams - */ -export interface ExternalToolUpdateParams { - /** - * ID of the external tool - * @type {string} - * @memberof ExternalToolUpdateParams - */ - 'id': string; - /** - * - * @type {string} - * @memberof ExternalToolUpdateParams - */ - 'name': string; - /** - * Description of the external tool - * @type {string} - * @memberof ExternalToolUpdateParams - */ - 'description'?: string; - /** - * URL of the external tool - * @type {string} - * @memberof ExternalToolUpdateParams - */ - 'url'?: string; - /** - * URL of the logo of the external tool - * @type {string} - * @memberof ExternalToolUpdateParams - */ - 'logoUrl'?: string; - /** - * - * @type {ExternalToolUpdateParamsConfig} - * @memberof ExternalToolUpdateParams - */ - 'config': ExternalToolUpdateParamsConfig; - /** - * Custom parameters of the external tool - * @type {Array} - * @memberof ExternalToolUpdateParams - */ - 'parameters'?: Array; - /** - * - * @type {boolean} - * @memberof ExternalToolUpdateParams - */ - 'isHidden': boolean; - /** - * Tool can be deactivated, related tools can not be added to e.g. school, course or board anymore - * @type {boolean} - * @memberof ExternalToolUpdateParams - */ - 'isDeactivated': boolean; - /** - * Open the tool in a new tab - * @type {boolean} - * @memberof ExternalToolUpdateParams - */ - 'openNewTab': boolean; - /** - * Restrict the tool to certain contexts - * @type {Array} - * @memberof ExternalToolUpdateParams - */ - 'restrictToContexts'?: Array; - /** - * Medium of the external tool - * @type {ExternalToolMediumParams} - * @memberof ExternalToolUpdateParams - */ - 'medium'?: ExternalToolMediumParams; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/federal-state-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/federal-state-response.ts deleted file mode 100644 index f97afc8e9cb..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/federal-state-response.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CountyResponse } from './county-response'; - -/** - * - * @export - * @interface FederalStateResponse - */ -export interface FederalStateResponse { - /** - * - * @type {string} - * @memberof FederalStateResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof FederalStateResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof FederalStateResponse - */ - 'abbreviation': string; - /** - * - * @type {string} - * @memberof FederalStateResponse - */ - 'logoUrl': string; - /** - * - * @type {Array} - * @memberof FederalStateResponse - */ - 'counties': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-content-body.ts deleted file mode 100644 index 14751b17286..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-content-body.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface FileContentBody - */ -export interface FileContentBody { - /** - * - * @type {string} - * @memberof FileContentBody - */ - 'caption': string; - /** - * - * @type {string} - * @memberof FileContentBody - */ - 'alternativeText': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content-body.ts deleted file mode 100644 index 09558b83228..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content-body.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { FileContentBody } from './file-content-body'; - -/** - * - * @export - * @interface FileElementContentBody - */ -export interface FileElementContentBody { - /** - * - * @type {ContentElementType} - * @memberof FileElementContentBody - */ - 'type': ContentElementType; - /** - * - * @type {FileContentBody} - * @memberof FileElementContentBody - */ - 'content': FileContentBody; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content.ts deleted file mode 100644 index b589e2a6d56..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-content.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface FileElementContent - */ -export interface FileElementContent { - /** - * - * @type {string} - * @memberof FileElementContent - */ - 'caption': string; - /** - * - * @type {string} - * @memberof FileElementContent - */ - 'alternativeText': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-response.ts deleted file mode 100644 index 7da93dce121..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-element-response.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { FileElementContent } from './file-element-content'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface FileElementResponse - */ -export interface FileElementResponse { - /** - * - * @type {string} - * @memberof FileElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof FileElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {FileElementContent} - * @memberof FileElementResponse - */ - 'content': FileElementContent; - /** - * - * @type {TimestampsResponse} - * @memberof FileElementResponse - */ - 'timestamps': TimestampsResponse; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-storage-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/file-storage-type.ts deleted file mode 100644 index d6b25388317..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/file-storage-type.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const FileStorageType = { - AWS_S3: 'awsS3' -} as const; - -export type FileStorageType = typeof FileStorageType[keyof typeof FileStorageType]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/forbidden-operation-error.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/forbidden-operation-error.ts deleted file mode 100644 index 5b7768a2445..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/forbidden-operation-error.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ForbiddenOperationError - */ -export interface ForbiddenOperationError { - /** - * The response status code. - * @type {number} - * @memberof ForbiddenOperationError - */ - 'code': number; - /** - * The error type. - * @type {string} - * @memberof ForbiddenOperationError - */ - 'type': string; - /** - * The error title. - * @type {string} - * @memberof ForbiddenOperationError - */ - 'title': string; - /** - * The error message. - * @type {string} - * @memberof ForbiddenOperationError - */ - 'message': string; - /** - * The error details. - * @type {object} - * @memberof ForbiddenOperationError - */ - 'details'?: object; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/get-meta-tag-data-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/get-meta-tag-data-body.ts deleted file mode 100644 index 5a4d398024c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/get-meta-tag-data-body.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface GetMetaTagDataBody - */ -export interface GetMetaTagDataBody { - /** - * - * @type {string} - * @memberof GetMetaTagDataBody - */ - 'url': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/group-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/group-list-response.ts deleted file mode 100644 index 542cb612406..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/group-list-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { GroupResponse } from './group-response'; - -/** - * - * @export - * @interface GroupListResponse - */ -export interface GroupListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof GroupListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof GroupListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof GroupListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof GroupListResponse - */ - 'limit': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/group-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/group-response.ts deleted file mode 100644 index 12570dd6d39..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/group-response.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalSourceResponse } from './external-source-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { GroupUserResponse } from './group-user-response'; - -/** - * - * @export - * @interface GroupResponse - */ -export interface GroupResponse { - /** - * - * @type {string} - * @memberof GroupResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof GroupResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof GroupResponse - */ - 'type': GroupResponseType; - /** - * - * @type {Array} - * @memberof GroupResponse - */ - 'users': Array; - /** - * - * @type {ExternalSourceResponse} - * @memberof GroupResponse - */ - 'externalSource'?: ExternalSourceResponse; - /** - * - * @type {string} - * @memberof GroupResponse - */ - 'organizationId'?: string; -} - -export const GroupResponseType = { - CLASS: 'class', - COURSE: 'course', - OTHER: 'other' -} as const; - -export type GroupResponseType = typeof GroupResponseType[keyof typeof GroupResponseType]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/group-user-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/group-user-response.ts deleted file mode 100644 index d5d6dbb7d31..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/group-user-response.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { RoleName } from './role-name'; - -/** - * - * @export - * @interface GroupUserResponse - */ -export interface GroupUserResponse { - /** - * - * @type {string} - * @memberof GroupUserResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof GroupUserResponse - */ - 'firstName': string; - /** - * - * @type {string} - * @memberof GroupUserResponse - */ - 'lastName': string; - /** - * - * @type {RoleName} - * @memberof GroupUserResponse - */ - 'role': RoleName; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-list-response.ts deleted file mode 100644 index 4c120307216..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-list-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ImportUserResponse } from './import-user-response'; - -/** - * - * @export - * @interface ImportUserListResponse - */ -export interface ImportUserListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof ImportUserListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof ImportUserListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof ImportUserListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof ImportUserListResponse - */ - 'limit': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-response.ts deleted file mode 100644 index fb173af9b52..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/import-user-response.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { UserMatchResponse } from './user-match-response'; - -/** - * - * @export - * @interface ImportUserResponse - */ -export interface ImportUserResponse { - /** - * id reference to a import user - * @type {string} - * @memberof ImportUserResponse - */ - 'importUserId': string; - /** - * login name from external system - * @type {string} - * @memberof ImportUserResponse - */ - 'loginName': string; - /** - * external systems user firstname - * @type {string} - * @memberof ImportUserResponse - */ - 'firstName': string; - /** - * external systems user lastname - * @type {string} - * @memberof ImportUserResponse - */ - 'lastName': string; - /** - * list of user roles from external system: student, teacher, admin - * @type {Array} - * @memberof ImportUserResponse - */ - 'roleNames': Array; - /** - * names of classes the user attends from external system - * @type {Array} - * @memberof ImportUserResponse - */ - 'classNames': Array; - /** - * assignemnt to a local user account - * @type {UserMatchResponse} - * @memberof ImportUserResponse - */ - 'match'?: UserMatchResponse; - /** - * manual flag to apply it as filter - * @type {boolean} - * @memberof ImportUserResponse - */ - 'flagged': boolean; -} - -export const ImportUserResponseRoleNames = { - STUDENT: 'student', - TEACHER: 'teacher', - ADMIN: 'admin' -} as const; - -export type ImportUserResponseRoleNames = typeof ImportUserResponseRoleNames[keyof typeof ImportUserResponseRoleNames]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/index.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/index.ts index 0bf1b8a8a44..59dfc03282f 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/index.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/index.ts @@ -1,259 +1,4 @@ -export * from './account-by-id-body-params'; -export * from './account-response'; -export * from './account-search-list-response'; export * from './action'; -export * from './alert-response'; -export * from './api-validation-error'; export * from './authorization-body-params'; export * from './authorization-context-params'; export * from './authorized-reponse'; -export * from './basic-tool-config-params'; -export * from './board-context-response'; -export * from './board-element-response'; -export * from './board-external-reference-type'; -export * from './board-layout'; -export * from './board-parent-type'; -export * from './board-response'; -export * from './board-submission-controller-create-element201-response'; -export * from './card-controller-create-element201-response'; -export * from './card-list-response'; -export * from './card-response'; -export * from './card-response-elements-inner'; -export * from './card-skeleton-response'; -export * from './change-language-params'; -export * from './class-info-response'; -export * from './class-info-search-list-response'; -export * from './class-request-context'; -export * from './class-response'; -export * from './class-sort-by'; -export * from './collaborative-text-editor-element-response'; -export * from './collaborative-text-editor-parent-type'; -export * from './collaborative-text-editor-response'; -export * from './collapsable-body-params'; -export * from './color-body-params'; -export * from './column-response'; -export * from './config-response'; -export * from './consent-request-body'; -export * from './consent-response'; -export * from './consent-session-response'; -export * from './consents-response'; -export * from './content-element-type'; -export * from './context-external-tool-body-params'; -export * from './context-external-tool-configuration-status-response'; -export * from './context-external-tool-configuration-template-list-response'; -export * from './context-external-tool-configuration-template-response'; -export * from './context-external-tool-count-per-context-response'; -export * from './context-external-tool-post-params'; -export * from './context-external-tool-response'; -export * from './context-external-tool-search-list-response'; -export * from './copy-api-response'; -export * from './county-response'; -export * from './course-export-body-params'; -export * from './course-info-response'; -export * from './course-metadata-list-response'; -export * from './course-metadata-response'; -export * from './create-board-body-params'; -export * from './create-board-response'; -export * from './create-card-body-params'; -export * from './create-content-element-body-params'; -export * from './create-media-element-body-params'; -export * from './create-news-params'; -export * from './create-submission-item-body-params'; -export * from './custom-parameter-entry-param'; -export * from './custom-parameter-entry-response'; -export * from './custom-parameter-post-params'; -export * from './custom-parameter-response'; -export * from './dashboard-grid-element-response'; -export * from './dashboard-grid-sub-element-response'; -export * from './dashboard-response'; -export * from './drawing-content-body'; -export * from './drawing-element-content'; -export * from './drawing-element-content-body'; -export * from './drawing-element-response'; -export * from './entity-not-found-error'; -export * from './external-source-response'; -export * from './external-tool-bulk-create-params'; -export * from './external-tool-content-body'; -export * from './external-tool-create-params'; -export * from './external-tool-element-content'; -export * from './external-tool-element-content-body'; -export * from './external-tool-element-response'; -export * from './external-tool-medium-params'; -export * from './external-tool-medium-response'; -export * from './external-tool-metadata-response'; -export * from './external-tool-response'; -export * from './external-tool-response-config'; -export * from './external-tool-search-list-response'; -export * from './external-tool-update-params'; -export * from './external-tool-update-params-config'; -export * from './federal-state-response'; -export * from './file-content-body'; -export * from './file-element-content'; -export * from './file-element-content-body'; -export * from './file-element-response'; -export * from './file-storage-type'; -export * from './forbidden-operation-error'; -export * from './get-meta-tag-data-body'; -export * from './group-list-response'; -export * from './group-response'; -export * from './group-user-response'; -export * from './import-user-list-response'; -export * from './import-user-response'; -export * from './layout-body-params'; -export * from './ldap-authorization-body-params'; -export * from './lesson-content-response'; -export * from './lesson-copy-api-params'; -export * from './lesson-metadata-list-response'; -export * from './lesson-metadata-response'; -export * from './lesson-response'; -export * from './link-content-body'; -export * from './link-element-content'; -export * from './link-element-content-body'; -export * from './link-element-response'; -export * from './local-authorization-body-params'; -export * from './login-request-body'; -export * from './login-response'; -export * from './lti11-tool-config-create-params'; -export * from './lti11-tool-config-update-params'; -export * from './lti-message-type'; -export * from './lti-privacy-permission'; -export * from './material-response'; -export * from './me-account-response'; -export * from './me-response'; -export * from './me-role-response'; -export * from './me-school-logo-response'; -export * from './me-school-response'; -export * from './me-user-response'; -export * from './media-available-line-element-response'; -export * from './media-available-line-response'; -export * from './media-board-colors'; -export * from './media-board-layout-type'; -export * from './media-board-response'; -export * from './media-external-tool-element-content'; -export * from './media-external-tool-element-response'; -export * from './media-line-response'; -export * from './message'; -export * from './message-origin'; -export * from './meta-tag-extractor-response'; -export * from './move-card-body-params'; -export * from './move-column-body-params'; -export * from './move-content-element-body'; -export * from './move-element-body-params'; -export * from './move-element-params'; -export * from './move-element-position-params'; -export * from './news-list-response'; -export * from './news-response'; -export * from './news-target-model'; -export * from './oauth-token-dto'; -export * from './oauth2-authorization-body-params'; -export * from './oauth2-migration-params'; -export * from './oauth2-tool-config-create-params'; -export * from './oauth2-tool-config-update-params'; -export * from './oauth-client-body'; -export * from './oauth-client-response'; -export * from './oauth-config-response'; -export * from './oidc-context-response'; -export * from './parent-consent-response'; -export * from './patch-group-params'; -export * from './patch-my-account-params'; -export * from './patch-my-password-params'; -export * from './patch-order-params'; -export * from './patch-visibility-params'; -export * from './provider-config-response'; -export * from './pseudonym-response'; -export * from './public-system-list-response'; -export * from './public-system-response'; -export * from './public-system-response-oauth-config'; -export * from './redirect-response'; -export * from './rename-body-params'; -export * from './resolved-user-response'; -export * from './rich-text'; -export * from './rich-text-content-body'; -export * from './rich-text-element-content'; -export * from './rich-text-element-content-body'; -export * from './rich-text-element-response'; -export * from './role-name'; -export * from './school-controller-get-provisioning-options200-response'; -export * from './school-exists-response'; -export * from './school-external-tool-configuration-status-response'; -export * from './school-external-tool-configuration-template-list-response'; -export * from './school-external-tool-configuration-template-response'; -export * from './school-external-tool-metadata-response'; -export * from './school-external-tool-post-params'; -export * from './school-external-tool-response'; -export * from './school-external-tool-search-list-response'; -export * from './school-for-external-invite-response'; -export * from './school-for-ldap-login-response'; -export * from './school-info-response'; -export * from './school-logo'; -export * from './school-permissions-params'; -export * from './school-purpose'; -export * from './school-response'; -export * from './school-system-response'; -export * from './school-update-body-params'; -export * from './school-year-query-type'; -export * from './school-year-response'; -export * from './schul-conne-xprovisioning-options-params'; -export * from './schul-conne-xprovisioning-options-response'; -export * from './schulcloud-theme'; -export * from './set-height-body-params'; -export * from './share-token-body-params'; -export * from './share-token-import-body-params'; -export * from './share-token-info-response'; -export * from './share-token-payload-response'; -export * from './share-token-response'; -export * from './single-column-board-response'; -export * from './student-permission-params'; -export * from './submission-container-content-body'; -export * from './submission-container-element-content'; -export * from './submission-container-element-content-body'; -export * from './submission-container-element-response'; -export * from './submission-item-response'; -export * from './submission-item-response-elements-inner'; -export * from './submission-status-list-response'; -export * from './submission-status-response'; -export * from './submissions-response'; -export * from './successful-response'; -export * from './system-for-ldap-login-response'; -export * from './target-info-response'; -export * from './task-copy-api-params'; -export * from './task-list-response'; -export * from './task-response'; -export * from './task-status-response'; -export * from './teacher-permission-params'; -export * from './team-permissions-body'; -export * from './timestamps-response'; -export * from './timezone'; -export * from './tool-config-type'; -export * from './tool-context-type'; -export * from './tool-context-types-list-response'; -export * from './tool-launch-request-response'; -export * from './tool-reference-list-response'; -export * from './tool-reference-response'; -export * from './update-board-title-params'; -export * from './update-element-content-body-params'; -export * from './update-element-content-body-params-data'; -export * from './update-flag-params'; -export * from './update-match-params'; -export * from './update-news-params'; -export * from './update-submission-item-body-params'; -export * from './user-consent-response'; -export * from './user-data-response'; -export * from './user-info-response'; -export * from './user-list-response'; -export * from './user-login-migration-mandatory-params'; -export * from './user-login-migration-response'; -export * from './user-login-migration-search-list-response'; -export * from './user-match-list-response'; -export * from './user-match-response'; -export * from './user-response'; -export * from './validation-error'; -export * from './video-conference-create-params'; -export * from './video-conference-info-response'; -export * from './video-conference-join-response'; -export * from './video-conference-options-response'; -export * from './video-conference-scope'; -export * from './video-conference-state-response'; -export * from './visibility-body-params'; -export * from './visibility-settings-response'; -export * from './years-response'; diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/layout-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/layout-body-params.ts deleted file mode 100644 index 7b878f15ed3..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/layout-body-params.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { MediaBoardLayoutType } from './media-board-layout-type'; - -/** - * - * @export - * @interface LayoutBodyParams - */ -export interface LayoutBodyParams { - /** - * - * @type {MediaBoardLayoutType} - * @memberof LayoutBodyParams - */ - 'layout': MediaBoardLayoutType; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/ldap-authorization-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/ldap-authorization-body-params.ts deleted file mode 100644 index d1d7a408ce7..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/ldap-authorization-body-params.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface LdapAuthorizationBodyParams - */ -export interface LdapAuthorizationBodyParams { - /** - * - * @type {string} - * @memberof LdapAuthorizationBodyParams - */ - 'systemId': string; - /** - * - * @type {string} - * @memberof LdapAuthorizationBodyParams - */ - 'username': string; - /** - * - * @type {string} - * @memberof LdapAuthorizationBodyParams - */ - 'password': string; - /** - * - * @type {string} - * @memberof LdapAuthorizationBodyParams - */ - 'schoolId': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-content-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-content-response.ts deleted file mode 100644 index 0f3f4164f41..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-content-response.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface LessonContentResponse - */ -export interface LessonContentResponse { - /** - * - * @type {object} - * @memberof LessonContentResponse - */ - 'content': object; - /** - * The id of the Material entity - * @type {string} - * @memberof LessonContentResponse - * @deprecated - */ - '_id': string; - /** - * The id of the Material entity - * @type {string} - * @memberof LessonContentResponse - */ - 'id': string; - /** - * Title of the Material entity - * @type {string} - * @memberof LessonContentResponse - */ - 'title': string; - /** - * - * @type {string} - * @memberof LessonContentResponse - */ - 'component': LessonContentResponseComponent; - /** - * - * @type {boolean} - * @memberof LessonContentResponse - */ - 'hidden': boolean; -} - -export const LessonContentResponseComponent = { - ETHERPAD: 'Etherpad', - GEO_GEBRA: 'geoGebra', - INTERNAL: 'internal', - RESOURCES: 'resources', - TEXT: 'text', - NE_XBOARD: 'neXboard' -} as const; - -export type LessonContentResponseComponent = typeof LessonContentResponseComponent[keyof typeof LessonContentResponseComponent]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-copy-api-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-copy-api-params.ts deleted file mode 100644 index ffe582e2742..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-copy-api-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface LessonCopyApiParams - */ -export interface LessonCopyApiParams { - /** - * Destination course parent Id the lesson is copied to - * @type {string} - * @memberof LessonCopyApiParams - */ - 'courseId'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-list-response.ts deleted file mode 100644 index e93a9d8feb6..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-list-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { LessonMetadataResponse } from './lesson-metadata-response'; - -/** - * - * @export - * @interface LessonMetadataListResponse - */ -export interface LessonMetadataListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof LessonMetadataListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof LessonMetadataListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof LessonMetadataListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof LessonMetadataListResponse - */ - 'limit': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-response.ts deleted file mode 100644 index f1382273cf9..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-metadata-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface LessonMetadataResponse - */ -export interface LessonMetadataResponse { - /** - * The id of the Lesson entity - * @type {string} - * @memberof LessonMetadataResponse - */ - '_id': string; - /** - * Name of the Lesson entity - * @type {string} - * @memberof LessonMetadataResponse - */ - 'name': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-response.ts deleted file mode 100644 index a77cb88c1af..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/lesson-response.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { LessonContentResponse } from './lesson-content-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { MaterialResponse } from './material-response'; - -/** - * - * @export - * @interface LessonResponse - */ -export interface LessonResponse { - /** - * The id of the Lesson entity - * @type {string} - * @memberof LessonResponse - * @deprecated - */ - '_id': string; - /** - * The id of the Lesson entity - * @type {string} - * @memberof LessonResponse - */ - 'id': string; - /** - * Name of the Lesson entity - * @type {string} - * @memberof LessonResponse - */ - 'name': string; - /** - * The id of the Course entity - * @type {string} - * @memberof LessonResponse - */ - 'courseId'?: string; - /** - * The id of the Course-group entity - * @type {string} - * @memberof LessonResponse - */ - 'courseGroupId'?: string; - /** - * Hidden status of the Lesson entity - * @type {boolean} - * @memberof LessonResponse - */ - 'hidden': boolean; - /** - * Position of the Lesson entity - * @type {number} - * @memberof LessonResponse - */ - 'position': number; - /** - * Contents of the Lesson entity - * @type {Array} - * @memberof LessonResponse - */ - 'contents': Array; - /** - * Materials of the Lesson entity - * @type {Array} - * @memberof LessonResponse - */ - 'materials': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/link-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/link-content-body.ts deleted file mode 100644 index 3ff296bf3a5..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/link-content-body.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface LinkContentBody - */ -export interface LinkContentBody { - /** - * - * @type {string} - * @memberof LinkContentBody - */ - 'url': string; - /** - * - * @type {string} - * @memberof LinkContentBody - */ - 'title': string; - /** - * - * @type {string} - * @memberof LinkContentBody - */ - 'description': string; - /** - * - * @type {string} - * @memberof LinkContentBody - */ - 'imageUrl': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content-body.ts deleted file mode 100644 index 9a36e2c699a..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content-body.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { LinkContentBody } from './link-content-body'; - -/** - * - * @export - * @interface LinkElementContentBody - */ -export interface LinkElementContentBody { - /** - * - * @type {ContentElementType} - * @memberof LinkElementContentBody - */ - 'type': ContentElementType; - /** - * - * @type {LinkContentBody} - * @memberof LinkElementContentBody - */ - 'content': LinkContentBody; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content.ts deleted file mode 100644 index 55aa37a7b06..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-content.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface LinkElementContent - */ -export interface LinkElementContent { - /** - * - * @type {string} - * @memberof LinkElementContent - */ - 'url': string; - /** - * - * @type {string} - * @memberof LinkElementContent - */ - 'title': string; - /** - * - * @type {string} - * @memberof LinkElementContent - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof LinkElementContent - */ - 'imageUrl'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-response.ts deleted file mode 100644 index 0311f6e3575..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/link-element-response.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { LinkElementContent } from './link-element-content'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface LinkElementResponse - */ -export interface LinkElementResponse { - /** - * - * @type {string} - * @memberof LinkElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof LinkElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {LinkElementContent} - * @memberof LinkElementResponse - */ - 'content': LinkElementContent; - /** - * - * @type {TimestampsResponse} - * @memberof LinkElementResponse - */ - 'timestamps': TimestampsResponse; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/local-authorization-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/local-authorization-body-params.ts deleted file mode 100644 index eb393187706..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/local-authorization-body-params.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface LocalAuthorizationBodyParams - */ -export interface LocalAuthorizationBodyParams { - /** - * - * @type {string} - * @memberof LocalAuthorizationBodyParams - */ - 'username': string; - /** - * - * @type {string} - * @memberof LocalAuthorizationBodyParams - */ - 'password': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/login-request-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/login-request-body.ts deleted file mode 100644 index c2cd6676cc6..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/login-request-body.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface LoginRequestBody - */ -export interface LoginRequestBody { - /** - * The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to request_denied. - * @type {string} - * @memberof LoginRequestBody - */ - 'error'?: string; - /** - * Debug contains information to help resolve the problem as a developer. Usually not exposed to the public but only in the server logs. - * @type {string} - * @memberof LoginRequestBody - */ - 'error_debug'?: string; - /** - * Description of the error in a human readable format. - * @type {string} - * @memberof LoginRequestBody - */ - 'error_description'?: string; - /** - * Hint to help resolve the error. - * @type {string} - * @memberof LoginRequestBody - */ - 'error_hint'?: string; - /** - * Represents the HTTP status code of the error (e.g. 401 or 403). Defaults to 400. - * @type {number} - * @memberof LoginRequestBody - */ - 'status_code'?: number; - /** - * Remember, if set to true, tells the oauth provider to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. - * @type {boolean} - * @memberof LoginRequestBody - */ - 'remember'?: boolean; - /** - * RememberFor sets how long the consent authorization should be remembered for in seconds. If set to 0, the authorization will be remembered indefinitely. - * @type {number} - * @memberof LoginRequestBody - */ - 'remember_for'?: number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/login-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/login-response.ts deleted file mode 100644 index 33217e821a0..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/login-response.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { OidcContextResponse } from './oidc-context-response'; - -/** - * - * @export - * @interface LoginResponse - */ -export interface LoginResponse { - /** - * Id of the corresponding client. - * @type {string} - * @memberof LoginResponse - */ - 'client_id': string; - /** - * The id/challenge of the consent login request. - * @type {object} - * @memberof LoginResponse - */ - 'challenge': object; - /** - * - * @type {object} - * @memberof LoginResponse - */ - 'client': object; - /** - * - * @type {OidcContextResponse} - * @memberof LoginResponse - */ - 'oidc_context': OidcContextResponse; - /** - * The original oauth2.0 authorization url request by the client. - * @type {string} - * @memberof LoginResponse - */ - 'request_url': string; - /** - * - * @type {Array} - * @memberof LoginResponse - */ - 'requested_access_token_audience': Array; - /** - * The request scopes of the login request. - * @type {Array} - * @memberof LoginResponse - */ - 'requested_scope'?: Array; - /** - * The login session id. This parameter is used as sid for the oidc front-/backchannel logout. - * @type {string} - * @memberof LoginResponse - */ - 'session_id': string; - /** - * Skip, if true, implies that the client has requested the same scopes from the same user previously. - * @type {object} - * @memberof LoginResponse - */ - 'skip': object; - /** - * User id of the end-user that is authenticated. - * @type {object} - * @memberof LoginResponse - */ - 'subject': object; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lti-message-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lti-message-type.ts deleted file mode 100644 index 345f5f857c8..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/lti-message-type.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const LtiMessageType = { - BASIC_LTI_LAUNCH_REQUEST: 'basic-lti-launch-request' -} as const; - -export type LtiMessageType = typeof LtiMessageType[keyof typeof LtiMessageType]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lti-privacy-permission.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lti-privacy-permission.ts deleted file mode 100644 index ebd9fd70e30..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/lti-privacy-permission.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const LtiPrivacyPermission = { - ANONYMOUS: 'anonymous', - E_MAIL: 'e-mail', - NAME: 'name', - PUBLIC: 'public', - PSEUDONYMOUS: 'pseudonymous' -} as const; - -export type LtiPrivacyPermission = typeof LtiPrivacyPermission[keyof typeof LtiPrivacyPermission]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-create-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-create-params.ts deleted file mode 100644 index ab19387417d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-create-params.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { LtiMessageType } from './lti-message-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { LtiPrivacyPermission } from './lti-privacy-permission'; -// May contain unused imports in some cases -// @ts-ignore -import type { ToolConfigType } from './tool-config-type'; - -/** - * - * @export - * @interface Lti11ToolConfigCreateParams - */ -export interface Lti11ToolConfigCreateParams { - /** - * - * @type {ToolConfigType} - * @memberof Lti11ToolConfigCreateParams - */ - 'type': ToolConfigType; - /** - * - * @type {string} - * @memberof Lti11ToolConfigCreateParams - */ - 'baseUrl': string; - /** - * - * @type {string} - * @memberof Lti11ToolConfigCreateParams - */ - 'key': string; - /** - * - * @type {string} - * @memberof Lti11ToolConfigCreateParams - */ - 'secret': string; - /** - * - * @type {LtiMessageType} - * @memberof Lti11ToolConfigCreateParams - */ - 'lti_message_type': LtiMessageType; - /** - * - * @type {LtiPrivacyPermission} - * @memberof Lti11ToolConfigCreateParams - */ - 'privacy_permission': LtiPrivacyPermission; - /** - * - * @type {string} - * @memberof Lti11ToolConfigCreateParams - */ - 'launch_presentation_locale': string; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-update-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-update-params.ts deleted file mode 100644 index b2ca6817c09..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/lti11-tool-config-update-params.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { LtiMessageType } from './lti-message-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { LtiPrivacyPermission } from './lti-privacy-permission'; -// May contain unused imports in some cases -// @ts-ignore -import type { ToolConfigType } from './tool-config-type'; - -/** - * - * @export - * @interface Lti11ToolConfigUpdateParams - */ -export interface Lti11ToolConfigUpdateParams { - /** - * - * @type {ToolConfigType} - * @memberof Lti11ToolConfigUpdateParams - */ - 'type': ToolConfigType; - /** - * - * @type {string} - * @memberof Lti11ToolConfigUpdateParams - */ - 'baseUrl': string; - /** - * - * @type {string} - * @memberof Lti11ToolConfigUpdateParams - */ - 'key': string; - /** - * - * @type {string} - * @memberof Lti11ToolConfigUpdateParams - */ - 'secret'?: string; - /** - * - * @type {LtiMessageType} - * @memberof Lti11ToolConfigUpdateParams - */ - 'lti_message_type': LtiMessageType; - /** - * - * @type {LtiPrivacyPermission} - * @memberof Lti11ToolConfigUpdateParams - */ - 'privacy_permission': LtiPrivacyPermission; - /** - * - * @type {string} - * @memberof Lti11ToolConfigUpdateParams - */ - 'launch_presentation_locale': string; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/material-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/material-response.ts deleted file mode 100644 index dae92cdce6a..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/material-response.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MaterialResponse - */ -export interface MaterialResponse { - /** - * The id of the Material entity - * @type {string} - * @memberof MaterialResponse - */ - '_id': string; - /** - * The id of the Material entity - * @type {string} - * @memberof MaterialResponse - */ - 'id': string; - /** - * Title of the Material entity - * @type {string} - * @memberof MaterialResponse - */ - 'title': string; - /** - * ? - * @type {Array} - * @memberof MaterialResponse - */ - 'relatedResources': Array; - /** - * Url of the material - * @type {string} - * @memberof MaterialResponse - */ - 'url': string; - /** - * Position of the Lesson entity - * @type {string} - * @memberof MaterialResponse - */ - 'client': string; - /** - * Description of the material license - * @type {Array} - * @memberof MaterialResponse - */ - 'license': Array; - /** - * For material from Merlin, the Merlin reference - * @type {string} - * @memberof MaterialResponse - */ - 'merlinReference': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-account-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-account-response.ts deleted file mode 100644 index 9cc817bd0ca..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-account-response.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MeAccountResponse - */ -export interface MeAccountResponse { - /** - * - * @type {string} - * @memberof MeAccountResponse - */ - 'id': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-response.ts deleted file mode 100644 index 6e7cae2389e..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-response.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { LanguageType } from './language-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { MeAccountResponse } from './me-account-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { MeRoleResponse } from './me-role-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { MeSchoolResponse } from './me-school-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { MeUserResponse } from './me-user-response'; - -/** - * - * @export - * @interface MeResponse - */ -export interface MeResponse { - /** - * - * @type {MeSchoolResponse} - * @memberof MeResponse - */ - 'school': MeSchoolResponse; - /** - * - * @type {MeUserResponse} - * @memberof MeResponse - */ - 'user': MeUserResponse; - /** - * - * @type {Array} - * @memberof MeResponse - */ - 'roles': Array; - /** - * - * @type {Array} - * @memberof MeResponse - */ - 'permissions': Array; - /** - * - * @type {LanguageType} - * @memberof MeResponse - */ - 'language': LanguageType; - /** - * - * @type {MeAccountResponse} - * @memberof MeResponse - */ - 'account': MeAccountResponse; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-role-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-role-response.ts deleted file mode 100644 index b0b7da90eee..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-role-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MeRoleResponse - */ -export interface MeRoleResponse { - /** - * - * @type {string} - * @memberof MeRoleResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof MeRoleResponse - */ - 'name': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-logo-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-logo-response.ts deleted file mode 100644 index 9f926f9ab60..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-logo-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MeSchoolLogoResponse - */ -export interface MeSchoolLogoResponse { - /** - * - * @type {string} - * @memberof MeSchoolLogoResponse - */ - 'url'?: string; - /** - * - * @type {string} - * @memberof MeSchoolLogoResponse - */ - 'name'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-response.ts deleted file mode 100644 index ec3fad83c66..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-school-response.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { MeSchoolLogoResponse } from './me-school-logo-response'; - -/** - * - * @export - * @interface MeSchoolResponse - */ -export interface MeSchoolResponse { - /** - * - * @type {string} - * @memberof MeSchoolResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof MeSchoolResponse - */ - 'name': string; - /** - * - * @type {MeSchoolLogoResponse} - * @memberof MeSchoolResponse - */ - 'logo': MeSchoolLogoResponse; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-user-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/me-user-response.ts deleted file mode 100644 index 989c37d9dec..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/me-user-response.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MeUserResponse - */ -export interface MeUserResponse { - /** - * - * @type {string} - * @memberof MeUserResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof MeUserResponse - */ - 'firstName': string; - /** - * - * @type {string} - * @memberof MeUserResponse - */ - 'lastName': string; - /** - * - * @type {string} - * @memberof MeUserResponse - */ - 'customAvatarBackgroundColor'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-element-response.ts deleted file mode 100644 index e751162fb7c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-element-response.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MediaAvailableLineElementResponse - */ -export interface MediaAvailableLineElementResponse { - /** - * School External tool id of the media available line element - * @type {string} - * @memberof MediaAvailableLineElementResponse - */ - 'schoolExternalToolId': string; - /** - * Name of the media available line element - * @type {string} - * @memberof MediaAvailableLineElementResponse - */ - 'name': string; - /** - * Description of the media available line element - * @type {string} - * @memberof MediaAvailableLineElementResponse - */ - 'description'?: string; - /** - * Logo url of the media available line element - * @type {string} - * @memberof MediaAvailableLineElementResponse - */ - 'logoUrl'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-response.ts deleted file mode 100644 index 8793665a854..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-available-line-response.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { MediaAvailableLineElementResponse } from './media-available-line-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { MediaBoardColors } from './media-board-colors'; - -/** - * - * @export - * @interface MediaAvailableLineResponse - */ -export interface MediaAvailableLineResponse { - /** - * Available media elements in the line - * @type {Array} - * @memberof MediaAvailableLineResponse - */ - 'elements': Array; - /** - * - * @type {MediaBoardColors} - * @memberof MediaAvailableLineResponse - */ - 'backgroundColor': MediaBoardColors; - /** - * Collapse available media line - * @type {boolean} - * @memberof MediaAvailableLineResponse - */ - 'collapsed': boolean; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-colors.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-colors.ts deleted file mode 100644 index f751ae42b09..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-colors.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const MediaBoardColors = { - TRANSPARENT: 'transparent', - RED: 'red', - PINK: 'pink', - PURPLE: 'purple', - DEEP_PURPLE: 'deepPurple', - INDIGO: 'indigo', - BLUE: 'blue', - LIGHT_BLUE: 'lightBlue', - CYAN: 'cyan', - TEAL: 'teal', - GREEN: 'green', - LIGHT_GREEN: 'lightGreen', - LIME: 'lime', - YELLOW: 'yellow', - AMBER: 'amber', - ORANGE: 'orange', - DEEP_ORANGE: 'deepOrange', - BROWN: 'brown', - GREY: 'grey', - BLUE_GREY: 'blueGrey' -} as const; - -export type MediaBoardColors = typeof MediaBoardColors[keyof typeof MediaBoardColors]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-layout-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-layout-type.ts deleted file mode 100644 index 64fbae471a9..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-layout-type.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const MediaBoardLayoutType = { - GRID: 'grid', - LIST: 'list' -} as const; - -export type MediaBoardLayoutType = typeof MediaBoardLayoutType[keyof typeof MediaBoardLayoutType]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-response.ts deleted file mode 100644 index 002ddb653f8..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-board-response.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { MediaBoardLayoutType } from './media-board-layout-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { MediaLineResponse } from './media-line-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface MediaBoardResponse - */ -export interface MediaBoardResponse { - /** - * The id of the media board - * @type {string} - * @memberof MediaBoardResponse - */ - 'id': string; - /** - * The lines of the media board - * @type {Array} - * @memberof MediaBoardResponse - */ - 'lines': Array; - /** - * The timestamps of the media board - * @type {TimestampsResponse} - * @memberof MediaBoardResponse - */ - 'timestamps': TimestampsResponse; - /** - * - * @type {MediaBoardLayoutType} - * @memberof MediaBoardResponse - */ - 'layout': MediaBoardLayoutType; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-content.ts deleted file mode 100644 index 172329e136c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-content.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MediaExternalToolElementContent - */ -export interface MediaExternalToolElementContent { - /** - * The id of the context external tool - * @type {string} - * @memberof MediaExternalToolElementContent - */ - 'contextExternalToolId': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-response.ts deleted file mode 100644 index 488b9a727a0..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-external-tool-element-response.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { MediaExternalToolElementContent } from './media-external-tool-element-content'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface MediaExternalToolElementResponse - */ -export interface MediaExternalToolElementResponse { - /** - * The id of the media external tool element - * @type {string} - * @memberof MediaExternalToolElementResponse - */ - 'id': string; - /** - * The content of the media external tool element - * @type {MediaExternalToolElementContent} - * @memberof MediaExternalToolElementResponse - */ - 'content': MediaExternalToolElementContent; - /** - * The timestamps of the media external tool element - * @type {TimestampsResponse} - * @memberof MediaExternalToolElementResponse - */ - 'timestamps': TimestampsResponse; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-line-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/media-line-response.ts deleted file mode 100644 index ebfbee670c6..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/media-line-response.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { MediaBoardColors } from './media-board-colors'; -// May contain unused imports in some cases -// @ts-ignore -import type { MediaExternalToolElementResponse } from './media-external-tool-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface MediaLineResponse - */ -export interface MediaLineResponse { - /** - * The id of the media line - * @type {string} - * @memberof MediaLineResponse - */ - 'id': string; - /** - * The title of the media line - * @type {string} - * @memberof MediaLineResponse - */ - 'title': string; - /** - * The elements of the media line - * @type {Array} - * @memberof MediaLineResponse - */ - 'elements': Array; - /** - * The timestamps of the media line - * @type {TimestampsResponse} - * @memberof MediaLineResponse - */ - 'timestamps': TimestampsResponse; - /** - * - * @type {MediaBoardColors} - * @memberof MediaLineResponse - */ - 'backgroundColor': MediaBoardColors; - /** - * Collapse the media line - * @type {boolean} - * @memberof MediaLineResponse - */ - 'collapsed': boolean; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/message-origin.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/message-origin.ts deleted file mode 100644 index 119a105619e..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/message-origin.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MessageOrigin - */ -export interface MessageOrigin { - /** - * - * @type {number} - * @memberof MessageOrigin - */ - 'message_id': number; - /** - * - * @type {string} - * @memberof MessageOrigin - */ - 'page': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/message.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/message.ts deleted file mode 100644 index bb2920c3987..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/message.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { MessageOrigin } from './message-origin'; - -/** - * - * @export - * @interface Message - */ -export interface Message { - /** - * - * @type {string} - * @memberof Message - */ - 'title': string; - /** - * - * @type {string} - * @memberof Message - */ - 'text': string; - /** - * - * @type {string} - * @memberof Message - */ - 'timestamp': string; - /** - * - * @type {MessageOrigin} - * @memberof Message - */ - 'origin': MessageOrigin; - /** - * - * @type {string} - * @memberof Message - */ - 'url': string; - /** - * - * @type {string} - * @memberof Message - */ - 'status': string; - /** - * - * @type {string} - * @memberof Message - */ - 'createdAt': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/meta-tag-extractor-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/meta-tag-extractor-response.ts deleted file mode 100644 index 19f8a63da73..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/meta-tag-extractor-response.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MetaTagExtractorResponse - */ -export interface MetaTagExtractorResponse { - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'url': string; - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'title': string; - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'description': string; - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'imageUrl': string; - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'type': string; - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'parentTitle': string; - /** - * - * @type {string} - * @memberof MetaTagExtractorResponse - */ - 'parentType': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-card-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-card-body-params.ts deleted file mode 100644 index 45d20645563..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-card-body-params.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MoveCardBodyParams - */ -export interface MoveCardBodyParams { - /** - * - * @type {string} - * @memberof MoveCardBodyParams - */ - 'toColumnId': string; - /** - * - * @type {number} - * @memberof MoveCardBodyParams - */ - 'toPosition': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-column-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-column-body-params.ts deleted file mode 100644 index 0f207cf0c7a..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-column-body-params.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MoveColumnBodyParams - */ -export interface MoveColumnBodyParams { - /** - * The id of the target board - * @type {string} - * @memberof MoveColumnBodyParams - */ - 'toBoardId': string; - /** - * - * @type {number} - * @memberof MoveColumnBodyParams - */ - 'toPosition': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-content-element-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-content-element-body.ts deleted file mode 100644 index d02c346c8c6..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-content-element-body.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MoveContentElementBody - */ -export interface MoveContentElementBody { - /** - * - * @type {string} - * @memberof MoveContentElementBody - */ - 'toCardId': string; - /** - * - * @type {number} - * @memberof MoveContentElementBody - */ - 'toPosition': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-body-params.ts deleted file mode 100644 index f85bc628169..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-body-params.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MoveElementBodyParams - */ -export interface MoveElementBodyParams { - /** - * The id of the line where the element is moved to - * @type {string} - * @memberof MoveElementBodyParams - */ - 'toLineId': string; - /** - * The position where the element is moved to - * @type {number} - * @memberof MoveElementBodyParams - */ - 'toPosition': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-params.ts deleted file mode 100644 index 2c4a38fae19..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-params.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { MoveElementPositionParams } from './move-element-position-params'; - -/** - * - * @export - * @interface MoveElementParams - */ -export interface MoveElementParams { - /** - * - * @type {MoveElementPositionParams} - * @memberof MoveElementParams - */ - 'from': MoveElementPositionParams; - /** - * - * @type {MoveElementPositionParams} - * @memberof MoveElementParams - */ - 'to': MoveElementPositionParams; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-position-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-position-params.ts deleted file mode 100644 index 08f7416f559..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/move-element-position-params.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface MoveElementPositionParams - */ -export interface MoveElementPositionParams { - /** - * - * @type {number} - * @memberof MoveElementPositionParams - */ - 'x': number; - /** - * - * @type {number} - * @memberof MoveElementPositionParams - */ - 'y': number; - /** - * used to identify a position within a group. - * @type {number} - * @memberof MoveElementPositionParams - */ - 'groupIndex'?: number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/news-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/news-list-response.ts deleted file mode 100644 index 8f98f5184dd..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/news-list-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { NewsResponse } from './news-response'; - -/** - * - * @export - * @interface NewsListResponse - */ -export interface NewsListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof NewsListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof NewsListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof NewsListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof NewsListResponse - */ - 'limit': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/news-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/news-response.ts deleted file mode 100644 index 19fa5239851..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/news-response.ts +++ /dev/null @@ -1,134 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { NewsTargetModel } from './news-target-model'; -// May contain unused imports in some cases -// @ts-ignore -import type { SchoolInfoResponse } from './school-info-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { TargetInfoResponse } from './target-info-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { UserInfoResponse } from './user-info-response'; - -/** - * - * @export - * @interface NewsResponse - */ -export interface NewsResponse { - /** - * The id of the News entity - * @type {string} - * @memberof NewsResponse - */ - 'id': string; - /** - * Title of the News entity - * @type {string} - * @memberof NewsResponse - */ - 'title': string; - /** - * Content of the News entity - * @type {string} - * @memberof NewsResponse - */ - 'content': string; - /** - * The point in time from when the News entity schould be displayed - * @type {string} - * @memberof NewsResponse - */ - 'displayAt': string; - /** - * The type of source of the News entity - * @type {string} - * @memberof NewsResponse - */ - 'source'?: NewsResponseSource; - /** - * The source description of the News entity - * @type {string} - * @memberof NewsResponse - */ - 'sourceDescription'?: string; - /** - * - * @type {NewsTargetModel} - * @memberof NewsResponse - */ - 'targetModel': NewsTargetModel; - /** - * Specific target id to which the News entity is related - * @type {string} - * @memberof NewsResponse - */ - 'targetId': string; - /** - * The target object with id and name, could be the school, team, or course name - * @type {TargetInfoResponse} - * @memberof NewsResponse - */ - 'target': TargetInfoResponse; - /** - * The School ownership - * @type {SchoolInfoResponse} - * @memberof NewsResponse - */ - 'school': SchoolInfoResponse; - /** - * Reference to the User that created the News entity - * @type {UserInfoResponse} - * @memberof NewsResponse - */ - 'creator': UserInfoResponse; - /** - * Reference to the User that updated the News entity - * @type {UserInfoResponse} - * @memberof NewsResponse - */ - 'updater'?: UserInfoResponse; - /** - * The creation timestamp - * @type {string} - * @memberof NewsResponse - */ - 'createdAt': string; - /** - * The update timestamp - * @type {string} - * @memberof NewsResponse - */ - 'updatedAt': string; - /** - * List of permissions the current user has for the News entity - * @type {Array} - * @memberof NewsResponse - */ - 'permissions': Array; -} - -export const NewsResponseSource = { - INTERNAL: 'internal', - RSS: 'rss' -} as const; - -export type NewsResponseSource = typeof NewsResponseSource[keyof typeof NewsResponseSource]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/news-target-model.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/news-target-model.ts deleted file mode 100644 index 302adaeaee1..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/news-target-model.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const NewsTargetModel = { - SCHOOLS: 'schools', - COURSES: 'courses', - TEAMS: 'teams' -} as const; - -export type NewsTargetModel = typeof NewsTargetModel[keyof typeof NewsTargetModel]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-body.ts deleted file mode 100644 index 4fba05a5179..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-body.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface OauthClientBody - */ -export interface OauthClientBody { - /** - * The Oauth2 client id. - * @type {string} - * @memberof OauthClientBody - */ - 'client_id'?: string; - /** - * The Oauth2 client name. - * @type {string} - * @memberof OauthClientBody - */ - 'client_name'?: string; - /** - * The Oauth2 client secret. - * @type {string} - * @memberof OauthClientBody - */ - 'client_secret'?: string; - /** - * The allowed redirect urls of the Oauth2 client. - * @type {Array} - * @memberof OauthClientBody - */ - 'redirect_uris'?: Array; - /** - * Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none. - * @type {string} - * @memberof OauthClientBody - */ - 'token_endpoint_auth_method'?: string; - /** - * SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include pairwise and public. - * @type {string} - * @memberof OauthClientBody - */ - 'subject_type'?: string; - /** - * Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. - * @type {string} - * @memberof OauthClientBody - */ - 'scope'?: string; - /** - * Thr frontchannel logout uri. - * @type {string} - * @memberof OauthClientBody - */ - 'frontchannel_logout_uri'?: string; - /** - * The grant types of the Oauth2 client. - * @type {Array} - * @memberof OauthClientBody - */ - 'grant_types'?: Array; - /** - * The response types of the Oauth2 client. - * @type {Array} - * @memberof OauthClientBody - */ - 'response_types'?: Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-response.ts deleted file mode 100644 index d9cf3d0fd9b..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-client-response.ts +++ /dev/null @@ -1,300 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface OauthClientResponse - */ -export interface OauthClientResponse { - /** - * - * @type {Array} - * @memberof OauthClientResponse - */ - 'allowed_cors_origins'?: Array; - /** - * - * @type {Array} - * @memberof OauthClientResponse - */ - 'audience': Array; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'authorization_code_grant_access_token_lifespan': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'authorization_code_grant_id_token_lifespan': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'authorization_code_grant_refresh_token_lifespan': string; - /** - * Boolean value specifying whether the RP requires that a sid (session ID) Claim. - * @type {boolean} - * @memberof OauthClientResponse - */ - 'backchannel_logout_session_required': boolean; - /** - * RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. - * @type {string} - * @memberof OauthClientResponse - */ - 'backchannel_logout_uri': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'client_credentials_grant_access_token_lifespan': string; - /** - * Id of the client. - * @type {string} - * @memberof OauthClientResponse - */ - 'client_id': string; - /** - * Human-readable string name of the client presented to the end-user. - * @type {string} - * @memberof OauthClientResponse - */ - 'client_name': string; - /** - * SecretExpiresAt is an integer holding the time at which the client secret will expire or 0 if it will not expire. - * @type {number} - * @memberof OauthClientResponse - */ - 'client_secret_expires_at': number; - /** - * ClientUri is an URL string of a web page providing information about the client. - * @type {string} - * @memberof OauthClientResponse - */ - 'client_uri': string; - /** - * - * @type {Array} - * @memberof OauthClientResponse - */ - 'contacts'?: Array; - /** - * CreatedAt returns the timestamp of the clients creation. - * @type {string} - * @memberof OauthClientResponse - */ - 'created_at': string; - /** - * Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters. - * @type {boolean} - * @memberof OauthClientResponse - */ - 'frontchannel_logout_session_required': boolean; - /** - * RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. - * @type {string} - * @memberof OauthClientResponse - */ - 'frontchannel_logout_uri': string; - /** - * The grant types of the Oauth2 client. - * @type {Array} - * @memberof OauthClientResponse - */ - 'grant_types'?: Array; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'implicit_grant_access_token_lifespan': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'implicit_grant_id_token_lifespan': string; - /** - * - * @type {object} - * @memberof OauthClientResponse - */ - 'jwks': object; - /** - * URL for the clients JSON Web Key Set [JWK] document - * @type {string} - * @memberof OauthClientResponse - */ - 'jwks_uri': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'jwt_bearer_grant_access_token_lifespan': string; - /** - * LogoUri is an URL string that references a logo for the client. - * @type {string} - * @memberof OauthClientResponse - */ - 'logo_uri': string; - /** - * - * @type {object} - * @memberof OauthClientResponse - */ - 'metadata': object; - /** - * Owner is a string identifying the owner of the OAuth 2.0 Client. - * @type {string} - * @memberof OauthClientResponse - */ - 'owner': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'password_grant_access_token_lifespan': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'password_grant_refresh_token_lifespan': string; - /** - * PolicyUri is a URL string that points to a human-readable privacy policy document - * @type {string} - * @memberof OauthClientResponse - */ - 'policy_uri': string; - /** - * - * @type {Array} - * @memberof OauthClientResponse - */ - 'post_logout_redirect_uris'?: Array; - /** - * - * @type {Array} - * @memberof OauthClientResponse - */ - 'redirect_uris'?: Array; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'refresh_token_grant_access_token_lifespan': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'refresh_token_grant_id_token_lifespan': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'refresh_token_grant_refresh_token_lifespan': string; - /** - * RegistrationAccessToken can be used to update, get, or delete the OAuth2 Client. - * @type {string} - * @memberof OauthClientResponse - */ - 'registration_access_token': string; - /** - * RegistrationClientURI is the URL used to update, get, or delete the OAuth2 Client. - * @type {string} - * @memberof OauthClientResponse - */ - 'registration_client_uri': string; - /** - * JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. - * @type {string} - * @memberof OauthClientResponse - */ - 'request_object_signing_alg': string; - /** - * - * @type {Array} - * @memberof OauthClientResponse - */ - 'request_uris'?: Array; - /** - * The response types of the Oauth2 client. - * @type {Array} - * @memberof OauthClientResponse - */ - 'response_types'?: Array; - /** - * Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. - * @type {string} - * @memberof OauthClientResponse - */ - 'scope': string; - /** - * URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. - * @type {string} - * @memberof OauthClientResponse - */ - 'sector_identifier_uri': string; - /** - * SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include pairwise and public. - * @type {string} - * @memberof OauthClientResponse - */ - 'subject_type': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'token_endpoint_auth_method': string; - /** - * - * @type {string} - * @memberof OauthClientResponse - */ - 'token_endpoint_auth_signing_alg': string; - /** - * TermsOfServiceUri is a URL string that points to a human-readable terms of service document for the client. - * @type {string} - * @memberof OauthClientResponse - */ - 'tos_uri': string; - /** - * UpdatedAt returns the timestamp of the last update. - * @type {string} - * @memberof OauthClientResponse - */ - 'updated_at': string; - /** - * JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. - * @type {string} - * @memberof OauthClientResponse - */ - 'userinfo_signed_response_alg': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-config-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-config-response.ts deleted file mode 100644 index d7cde70af92..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-config-response.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface OauthConfigResponse - */ -export interface OauthConfigResponse { - /** - * Client id - * @type {string} - * @memberof OauthConfigResponse - */ - 'clientId': string; - /** - * Hint for idp redirects (optional) - * @type {string} - * @memberof OauthConfigResponse - */ - 'idpHint'?: string | null; - /** - * Redirect uri - * @type {string} - * @memberof OauthConfigResponse - */ - 'redirectUri': string; - /** - * Grant type - * @type {string} - * @memberof OauthConfigResponse - */ - 'grantType': string; - /** - * Token endpoint - * @type {string} - * @memberof OauthConfigResponse - */ - 'tokenEndpoint': string; - /** - * Auth endpoint - * @type {string} - * @memberof OauthConfigResponse - */ - 'authEndpoint': string; - /** - * Response type - * @type {string} - * @memberof OauthConfigResponse - */ - 'responseType': string; - /** - * Scope - * @type {string} - * @memberof OauthConfigResponse - */ - 'scope': string; - /** - * Provider - * @type {string} - * @memberof OauthConfigResponse - */ - 'provider': string; - /** - * Logout endpoint - * @type {string} - * @memberof OauthConfigResponse - */ - 'logoutEndpoint'?: string; - /** - * Issuer - * @type {string} - * @memberof OauthConfigResponse - */ - 'issuer': string; - /** - * Jwks endpoint - * @type {string} - * @memberof OauthConfigResponse - */ - 'jwksEndpoint': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-token-dto.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-token-dto.ts deleted file mode 100644 index 0be71975ec4..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth-token-dto.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface OAuthTokenDto - */ -export interface OAuthTokenDto { - /** - * - * @type {string} - * @memberof OAuthTokenDto - */ - 'idToken': string; - /** - * - * @type {string} - * @memberof OAuthTokenDto - */ - 'refreshToken': string; - /** - * - * @type {string} - * @memberof OAuthTokenDto - */ - 'accessToken': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-authorization-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-authorization-body-params.ts deleted file mode 100644 index fe8873c0691..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-authorization-body-params.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface Oauth2AuthorizationBodyParams - */ -export interface Oauth2AuthorizationBodyParams { - /** - * - * @type {string} - * @memberof Oauth2AuthorizationBodyParams - */ - 'redirectUri': string; - /** - * - * @type {string} - * @memberof Oauth2AuthorizationBodyParams - */ - 'code': string; - /** - * - * @type {string} - * @memberof Oauth2AuthorizationBodyParams - */ - 'systemId': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-migration-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-migration-params.ts deleted file mode 100644 index b74cd66c8e8..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-migration-params.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface Oauth2MigrationParams - */ -export interface Oauth2MigrationParams { - /** - * - * @type {string} - * @memberof Oauth2MigrationParams - */ - 'redirectUri': string; - /** - * - * @type {string} - * @memberof Oauth2MigrationParams - */ - 'code': string; - /** - * - * @type {string} - * @memberof Oauth2MigrationParams - */ - 'systemId': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-create-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-create-params.ts deleted file mode 100644 index 8deacd8d00e..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-create-params.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface Oauth2ToolConfigCreateParams - */ -export interface Oauth2ToolConfigCreateParams { - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'type': string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'baseUrl': string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'clientId': string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'clientSecret': string; - /** - * - * @type {boolean} - * @memberof Oauth2ToolConfigCreateParams - */ - 'skipConsent': boolean; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'frontchannelLogoutUri'?: string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'scope'?: string; - /** - * - * @type {Array} - * @memberof Oauth2ToolConfigCreateParams - */ - 'redirectUris': Array; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigCreateParams - */ - 'tokenEndpointAuthMethod': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-update-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-update-params.ts deleted file mode 100644 index 20a490e6cce..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/oauth2-tool-config-update-params.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface Oauth2ToolConfigUpdateParams - */ -export interface Oauth2ToolConfigUpdateParams { - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'type': string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'baseUrl': string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'clientId': string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'clientSecret'?: string; - /** - * - * @type {boolean} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'skipConsent': boolean; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'frontchannelLogoutUri'?: string; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'scope'?: string; - /** - * - * @type {Array} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'redirectUris': Array; - /** - * - * @type {string} - * @memberof Oauth2ToolConfigUpdateParams - */ - 'tokenEndpointAuthMethod': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/oidc-context-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/oidc-context-response.ts deleted file mode 100644 index a463081fe82..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/oidc-context-response.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface OidcContextResponse - */ -export interface OidcContextResponse { - /** - * - * @type {Array} - * @memberof OidcContextResponse - */ - 'acr_values': Array; - /** - * - * @type {string} - * @memberof OidcContextResponse - */ - 'display': string; - /** - * - * @type {object} - * @memberof OidcContextResponse - */ - 'id_token_hint_claims': object; - /** - * - * @type {string} - * @memberof OidcContextResponse - */ - 'login_hint': string; - /** - * - * @type {Array} - * @memberof OidcContextResponse - */ - 'ui_locales': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/parent-consent-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/parent-consent-response.ts deleted file mode 100644 index c3a8977a060..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/parent-consent-response.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ParentConsentResponse - */ -export interface ParentConsentResponse { - /** - * - * @type {string} - * @memberof ParentConsentResponse - */ - 'form': string; - /** - * - * @type {boolean} - * @memberof ParentConsentResponse - */ - 'privacyConsent': boolean; - /** - * - * @type {boolean} - * @memberof ParentConsentResponse - */ - 'termsOfUseConsent': boolean; - /** - * - * @type {string} - * @memberof ParentConsentResponse - */ - 'dateOfPrivacyConsent': string; - /** - * - * @type {string} - * @memberof ParentConsentResponse - */ - 'dateOfTermsOfUseConsent': string; - /** - * - * @type {string} - * @memberof ParentConsentResponse - */ - '_id': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-group-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-group-params.ts deleted file mode 100644 index ac6f16a4c0c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-group-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface PatchGroupParams - */ -export interface PatchGroupParams { - /** - * Title of the Group grid element - * @type {string} - * @memberof PatchGroupParams - */ - 'title': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-account-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-account-params.ts deleted file mode 100644 index 01537a514fa..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-account-params.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface PatchMyAccountParams - */ -export interface PatchMyAccountParams { - /** - * The current user password to authorize the update action. - * @type {string} - * @memberof PatchMyAccountParams - */ - 'passwordOld': string; - /** - * The new password for the current user. - * @type {string} - * @memberof PatchMyAccountParams - */ - 'passwordNew'?: string | null; - /** - * The new email address for the current user. - * @type {string} - * @memberof PatchMyAccountParams - */ - 'email'?: string | null; - /** - * The new first name for the current user. - * @type {string} - * @memberof PatchMyAccountParams - */ - 'firstName'?: string | null; - /** - * The new last name for the current user. - * @type {string} - * @memberof PatchMyAccountParams - */ - 'lastName'?: string | null; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-password-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-password-params.ts deleted file mode 100644 index 53ef68eb3c0..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-my-password-params.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface PatchMyPasswordParams - */ -export interface PatchMyPasswordParams { - /** - * The new user password. - * @type {string} - * @memberof PatchMyPasswordParams - */ - 'password': string; - /** - * The confirmed new user password. Must match the password field. - * @type {string} - * @memberof PatchMyPasswordParams - */ - 'confirmPassword': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-order-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-order-params.ts deleted file mode 100644 index dc92e556928..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-order-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface PatchOrderParams - */ -export interface PatchOrderParams { - /** - * Array ids determining the new order - * @type {Array} - * @memberof PatchOrderParams - */ - 'elements': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-visibility-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-visibility-params.ts deleted file mode 100644 index e0abecf0a60..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/patch-visibility-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface PatchVisibilityParams - */ -export interface PatchVisibilityParams { - /** - * true to publish the element, false to unpublish - * @type {boolean} - * @memberof PatchVisibilityParams - */ - 'visibility': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/provider-config-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/provider-config-response.ts deleted file mode 100644 index 7caf97a0f94..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/provider-config-response.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ProviderConfigResponse - */ -export interface ProviderConfigResponse { - /** - * - * @type {string} - * @memberof ProviderConfigResponse - */ - 'provider': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/pseudonym-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/pseudonym-response.ts deleted file mode 100644 index 218fbde7895..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/pseudonym-response.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface PseudonymResponse - */ -export interface PseudonymResponse { - /** - * - * @type {string} - * @memberof PseudonymResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof PseudonymResponse - */ - 'toolId': string; - /** - * - * @type {string} - * @memberof PseudonymResponse - */ - 'userId': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-list-response.ts deleted file mode 100644 index 44f745d9e2f..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-list-response.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { PublicSystemResponse } from './public-system-response'; - -/** - * - * @export - * @interface PublicSystemListResponse - */ -export interface PublicSystemListResponse { - /** - * - * @type {Array} - * @memberof PublicSystemListResponse - */ - 'data': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response-oauth-config.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response-oauth-config.ts deleted file mode 100644 index 94ccdb87016..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response-oauth-config.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { OauthConfigResponse } from './oauth-config-response'; - -/** - * @type PublicSystemResponseOauthConfig - * Oauth config of the system. - * @export - */ -export type PublicSystemResponseOauthConfig = OauthConfigResponse; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response.ts deleted file mode 100644 index cf80566ef11..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/public-system-response.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { PublicSystemResponseOauthConfig } from './public-system-response-oauth-config'; - -/** - * - * @export - * @interface PublicSystemResponse - */ -export interface PublicSystemResponse { - /** - * Id of the system. - * @type {string} - * @memberof PublicSystemResponse - */ - 'id': string; - /** - * Flag to request only systems with oauth-config. - * @type {string} - * @memberof PublicSystemResponse - */ - 'type'?: string | null; - /** - * Alias of the system. - * @type {string} - * @memberof PublicSystemResponse - */ - 'alias'?: string | null; - /** - * Display name of the system. - * @type {string} - * @memberof PublicSystemResponse - */ - 'displayName'?: string | null; - /** - * - * @type {PublicSystemResponseOauthConfig} - * @memberof PublicSystemResponse - */ - 'oauthConfig'?: PublicSystemResponseOauthConfig | null; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/redirect-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/redirect-response.ts deleted file mode 100644 index 1ba4cc04eb0..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/redirect-response.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface RedirectResponse - */ -export interface RedirectResponse { - /** - * RedirectURL is the URL which you should redirect the user to once the authentication process is completed. - * @type {string} - * @memberof RedirectResponse - */ - 'redirect_to': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/rename-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/rename-body-params.ts deleted file mode 100644 index 9a2880f6788..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/rename-body-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface RenameBodyParams - */ -export interface RenameBodyParams { - /** - * - * @type {string} - * @memberof RenameBodyParams - */ - 'title': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/resolved-user-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/resolved-user-response.ts deleted file mode 100644 index 0592dea68c6..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/resolved-user-response.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ResolvedUserResponse - */ -export interface ResolvedUserResponse { - /** - * - * @type {string} - * @memberof ResolvedUserResponse - */ - 'firstName': string; - /** - * - * @type {string} - * @memberof ResolvedUserResponse - */ - 'lastName': string; - /** - * - * @type {string} - * @memberof ResolvedUserResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof ResolvedUserResponse - */ - 'createdAt': string; - /** - * - * @type {string} - * @memberof ResolvedUserResponse - */ - 'updatedAt': string; - /** - * - * @type {Array} - * @memberof ResolvedUserResponse - */ - 'roles': Array; - /** - * - * @type {Array} - * @memberof ResolvedUserResponse - */ - 'permissions': Array; - /** - * - * @type {string} - * @memberof ResolvedUserResponse - */ - 'schoolId': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-content-body.ts deleted file mode 100644 index e1605efa5ac..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-content-body.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface RichTextContentBody - */ -export interface RichTextContentBody { - /** - * - * @type {string} - * @memberof RichTextContentBody - */ - 'text': string; - /** - * - * @type {string} - * @memberof RichTextContentBody - */ - 'inputFormat': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content-body.ts deleted file mode 100644 index 3212faf5406..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content-body.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { RichTextContentBody } from './rich-text-content-body'; - -/** - * - * @export - * @interface RichTextElementContentBody - */ -export interface RichTextElementContentBody { - /** - * - * @type {ContentElementType} - * @memberof RichTextElementContentBody - */ - 'type': ContentElementType; - /** - * - * @type {RichTextContentBody} - * @memberof RichTextElementContentBody - */ - 'content': RichTextContentBody; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content.ts deleted file mode 100644 index 334db30f7df..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-content.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface RichTextElementContent - */ -export interface RichTextElementContent { - /** - * - * @type {string} - * @memberof RichTextElementContent - */ - 'text': string; - /** - * - * @type {string} - * @memberof RichTextElementContent - */ - 'inputFormat': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-response.ts deleted file mode 100644 index 7d2c8f667e2..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text-element-response.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { RichTextElementContent } from './rich-text-element-content'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface RichTextElementResponse - */ -export interface RichTextElementResponse { - /** - * - * @type {string} - * @memberof RichTextElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof RichTextElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {RichTextElementContent} - * @memberof RichTextElementResponse - */ - 'content': RichTextElementContent; - /** - * - * @type {TimestampsResponse} - * @memberof RichTextElementResponse - */ - 'timestamps': TimestampsResponse; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text.ts deleted file mode 100644 index 69bae9f3946..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/rich-text.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface RichText - */ -export interface RichText { - /** - * Content of the rich text element - * @type {string} - * @memberof RichText - */ - 'content': string; - /** - * Input format of the rich text element - * @type {string} - * @memberof RichText - */ - 'type': RichTextType; -} - -export const RichTextType = { - PLAIN_TEXT: 'plainText', - RICH_TEXT_CK5_SIMPLE: 'richTextCk5Simple', - RICH_TEXT_CK4: 'richTextCk4', - RICH_TEXT_CK5: 'richTextCk5' -} as const; - -export type RichTextType = typeof RichTextType[keyof typeof RichTextType]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/role-name.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/role-name.ts deleted file mode 100644 index 861350c40ec..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/role-name.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const RoleName = { - ADMINISTRATOR: 'administrator', - COURSE_ADMINISTRATOR: 'courseAdministrator', - COURSE_STUDENT: 'courseStudent', - COURSE_SUBSTITUTION_TEACHER: 'courseSubstitutionTeacher', - COURSE_TEACHER: 'courseTeacher', - DEMO: 'demo', - DEMO_STUDENT: 'demoStudent', - DEMO_TEACHER: 'demoTeacher', - EXPERT: 'expert', - HELPDESK: 'helpdesk', - STUDENT: 'student', - SUPERHERO: 'superhero', - TEACHER: 'teacher', - TEAMADMINISTRATOR: 'teamadministrator', - TEAMEXPERT: 'teamexpert', - TEAMLEADER: 'teamleader', - TEAMMEMBER: 'teammember', - TEAMOWNER: 'teamowner', - USER: 'user' -} as const; - -export type RoleName = typeof RoleName[keyof typeof RoleName]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-controller-get-provisioning-options200-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-controller-get-provisioning-options200-response.ts deleted file mode 100644 index 4e6fc1a59e5..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-controller-get-provisioning-options200-response.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { SchulConneXProvisioningOptionsResponse } from './schul-conne-xprovisioning-options-response'; - -/** - * @type SchoolControllerGetProvisioningOptions200Response - * @export - */ -export type SchoolControllerGetProvisioningOptions200Response = SchulConneXProvisioningOptionsResponse; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-exists-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-exists-response.ts deleted file mode 100644 index bf258362dea..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-exists-response.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SchoolExistsResponse - */ -export interface SchoolExistsResponse { - /** - * - * @type {boolean} - * @memberof SchoolExistsResponse - */ - 'exists': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-status-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-status-response.ts deleted file mode 100644 index aa18ddd6b73..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-status-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SchoolExternalToolConfigurationStatusResponse - */ -export interface SchoolExternalToolConfigurationStatusResponse { - /** - * Is the tool outdated on school scope, because of non matching versions or required parameter changes on ExternalTool? - * @type {boolean} - * @memberof SchoolExternalToolConfigurationStatusResponse - */ - 'isOutdatedOnScopeSchool': boolean; - /** - * Is the tool deactivated, because of school administrator? - * @type {boolean} - * @memberof SchoolExternalToolConfigurationStatusResponse - */ - 'isDeactivated': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-list-response.ts deleted file mode 100644 index c8d4dfd0c0c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-list-response.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { SchoolExternalToolConfigurationTemplateResponse } from './school-external-tool-configuration-template-response'; - -/** - * - * @export - * @interface SchoolExternalToolConfigurationTemplateListResponse - */ -export interface SchoolExternalToolConfigurationTemplateListResponse { - /** - * - * @type {Array} - * @memberof SchoolExternalToolConfigurationTemplateListResponse - */ - 'data': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-response.ts deleted file mode 100644 index 2f229f16c54..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-configuration-template-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CustomParameterResponse } from './custom-parameter-response'; - -/** - * - * @export - * @interface SchoolExternalToolConfigurationTemplateResponse - */ -export interface SchoolExternalToolConfigurationTemplateResponse { - /** - * - * @type {string} - * @memberof SchoolExternalToolConfigurationTemplateResponse - */ - 'externalToolId': string; - /** - * - * @type {string} - * @memberof SchoolExternalToolConfigurationTemplateResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof SchoolExternalToolConfigurationTemplateResponse - */ - 'logoUrl'?: string; - /** - * - * @type {Array} - * @memberof SchoolExternalToolConfigurationTemplateResponse - */ - 'parameters': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-metadata-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-metadata-response.ts deleted file mode 100644 index 4328fe37eae..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-metadata-response.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContextExternalToolCountPerContextResponse } from './context-external-tool-count-per-context-response'; - -/** - * - * @export - * @interface SchoolExternalToolMetadataResponse - */ -export interface SchoolExternalToolMetadataResponse { - /** - * - * @type {ContextExternalToolCountPerContextResponse} - * @memberof SchoolExternalToolMetadataResponse - */ - 'contextExternalToolCountPerContext': ContextExternalToolCountPerContextResponse; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-post-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-post-params.ts deleted file mode 100644 index e2e6451177d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-post-params.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CustomParameterEntryParam } from './custom-parameter-entry-param'; - -/** - * - * @export - * @interface SchoolExternalToolPostParams - */ -export interface SchoolExternalToolPostParams { - /** - * - * @type {string} - * @memberof SchoolExternalToolPostParams - */ - 'toolId': string; - /** - * - * @type {string} - * @memberof SchoolExternalToolPostParams - */ - 'schoolId': string; - /** - * - * @type {Array} - * @memberof SchoolExternalToolPostParams - */ - 'parameters'?: Array; - /** - * Tool can be deactivated, related tools can not be added to e.g. course or board anymore - * @type {boolean} - * @memberof SchoolExternalToolPostParams - */ - 'isDeactivated': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-response.ts deleted file mode 100644 index 9fc14d43913..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-response.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CustomParameterEntryResponse } from './custom-parameter-entry-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { SchoolExternalToolConfigurationStatusResponse } from './school-external-tool-configuration-status-response'; - -/** - * - * @export - * @interface SchoolExternalToolResponse - */ -export interface SchoolExternalToolResponse { - /** - * - * @type {string} - * @memberof SchoolExternalToolResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SchoolExternalToolResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof SchoolExternalToolResponse - */ - 'toolId': string; - /** - * - * @type {string} - * @memberof SchoolExternalToolResponse - */ - 'schoolId': string; - /** - * - * @type {Array} - * @memberof SchoolExternalToolResponse - */ - 'parameters': Array; - /** - * - * @type {SchoolExternalToolConfigurationStatusResponse} - * @memberof SchoolExternalToolResponse - */ - 'status': SchoolExternalToolConfigurationStatusResponse; - /** - * - * @type {string} - * @memberof SchoolExternalToolResponse - */ - 'logoUrl'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-search-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-search-list-response.ts deleted file mode 100644 index a1d88c7fd6d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-external-tool-search-list-response.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { SchoolExternalToolResponse } from './school-external-tool-response'; - -/** - * - * @export - * @interface SchoolExternalToolSearchListResponse - */ -export interface SchoolExternalToolSearchListResponse { - /** - * - * @type {Array} - * @memberof SchoolExternalToolSearchListResponse - */ - 'data': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-external-invite-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-external-invite-response.ts deleted file mode 100644 index 704d3fd9f89..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-external-invite-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SchoolForExternalInviteResponse - */ -export interface SchoolForExternalInviteResponse { - /** - * - * @type {string} - * @memberof SchoolForExternalInviteResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SchoolForExternalInviteResponse - */ - 'name': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-ldap-login-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-ldap-login-response.ts deleted file mode 100644 index 4c09be5d499..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-for-ldap-login-response.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { SystemForLdapLoginResponse } from './system-for-ldap-login-response'; - -/** - * - * @export - * @interface SchoolForLdapLoginResponse - */ -export interface SchoolForLdapLoginResponse { - /** - * - * @type {string} - * @memberof SchoolForLdapLoginResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SchoolForLdapLoginResponse - */ - 'name': string; - /** - * - * @type {Array} - * @memberof SchoolForLdapLoginResponse - */ - 'systems': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-info-response.ts deleted file mode 100644 index 3d3daf711cc..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-info-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SchoolInfoResponse - */ -export interface SchoolInfoResponse { - /** - * The id of the School entity - * @type {string} - * @memberof SchoolInfoResponse - */ - 'id': string; - /** - * The name of the School entity - * @type {string} - * @memberof SchoolInfoResponse - */ - 'name': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-logo.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-logo.ts deleted file mode 100644 index 021830c29cf..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-logo.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SchoolLogo - */ -export interface SchoolLogo { - /** - * - * @type {string} - * @memberof SchoolLogo - */ - 'dataUrl'?: string; - /** - * - * @type {string} - * @memberof SchoolLogo - */ - 'name'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-permissions-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-permissions-params.ts deleted file mode 100644 index d4502a9ed1e..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-permissions-params.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { StudentPermissionParams } from './student-permission-params'; -// May contain unused imports in some cases -// @ts-ignore -import type { TeacherPermissionParams } from './teacher-permission-params'; - -/** - * - * @export - * @interface SchoolPermissionsParams - */ -export interface SchoolPermissionsParams { - /** - * - * @type {TeacherPermissionParams} - * @memberof SchoolPermissionsParams - */ - 'teacher'?: TeacherPermissionParams; - /** - * - * @type {StudentPermissionParams} - * @memberof SchoolPermissionsParams - */ - 'student'?: StudentPermissionParams; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-purpose.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-purpose.ts deleted file mode 100644 index b04a625adbd..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-purpose.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const SchoolPurpose = { - EXPERT: 'expert', - TOMBSTONE: 'tombstone', - DEMO: 'demo', - TEST: 'test', - MINT_EC: 'MINT-EC' -} as const; - -export type SchoolPurpose = typeof SchoolPurpose[keyof typeof SchoolPurpose]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-response.ts deleted file mode 100644 index 5bedf937315..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-response.ts +++ /dev/null @@ -1,179 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { CountyResponse } from './county-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { FederalStateResponse } from './federal-state-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { FileStorageType } from './file-storage-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { InstanceFeature } from './instance-feature'; -// May contain unused imports in some cases -// @ts-ignore -import type { SchoolFeature } from './school-feature'; -// May contain unused imports in some cases -// @ts-ignore -import type { SchoolLogo } from './school-logo'; -// May contain unused imports in some cases -// @ts-ignore -import type { SchoolPurpose } from './school-purpose'; -// May contain unused imports in some cases -// @ts-ignore -import type { SchoolYearResponse } from './school-year-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { YearsResponse } from './years-response'; - -/** - * - * @export - * @interface SchoolResponse - */ -export interface SchoolResponse { - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'createdAt': string; - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'updatedAt': string; - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'officialSchoolNumber'?: string; - /** - * - * @type {SchoolYearResponse} - * @memberof SchoolResponse - */ - 'currentYear'?: SchoolYearResponse; - /** - * - * @type {FederalStateResponse} - * @memberof SchoolResponse - */ - 'federalState': FederalStateResponse; - /** - * - * @type {CountyResponse} - * @memberof SchoolResponse - */ - 'county'?: CountyResponse; - /** - * - * @type {SchoolPurpose} - * @memberof SchoolResponse - */ - 'purpose'?: SchoolPurpose; - /** - * - * @type {Array} - * @memberof SchoolResponse - */ - 'features': Array; - /** - * - * @type {Array} - * @memberof SchoolResponse - */ - 'systemIds': Array; - /** - * - * @type {boolean} - * @memberof SchoolResponse - */ - 'inUserMigration'?: boolean; - /** - * - * @type {boolean} - * @memberof SchoolResponse - */ - 'inMaintenance': boolean; - /** - * - * @type {boolean} - * @memberof SchoolResponse - */ - 'isExternal': boolean; - /** - * - * @type {SchoolLogo} - * @memberof SchoolResponse - */ - 'logo'?: SchoolLogo; - /** - * - * @type {FileStorageType} - * @memberof SchoolResponse - */ - 'fileStorageType'?: FileStorageType; - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'language'?: string; - /** - * - * @type {string} - * @memberof SchoolResponse - */ - 'timezone'?: string; - /** - * - * @type {object} - * @memberof SchoolResponse - */ - 'permissions'?: object; - /** - * - * @type {YearsResponse} - * @memberof SchoolResponse - */ - 'years': YearsResponse; - /** - * - * @type {Array} - * @memberof SchoolResponse - */ - 'instanceFeatures': Array; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-system-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-system-response.ts deleted file mode 100644 index 2aab6d28c85..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-system-response.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ProviderConfigResponse } from './provider-config-response'; - -/** - * - * @export - * @interface SchoolSystemResponse - */ -export interface SchoolSystemResponse { - /** - * - * @type {string} - * @memberof SchoolSystemResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SchoolSystemResponse - */ - 'type': string; - /** - * - * @type {string} - * @memberof SchoolSystemResponse - */ - 'alias'?: string; - /** - * - * @type {ProviderConfigResponse} - * @memberof SchoolSystemResponse - */ - 'ldapConfig'?: ProviderConfigResponse; - /** - * - * @type {ProviderConfigResponse} - * @memberof SchoolSystemResponse - */ - 'oauthConfig'?: ProviderConfigResponse; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-update-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-update-body-params.ts deleted file mode 100644 index 77f430eb83b..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-update-body-params.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { LanguageType } from './language-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { SchoolFeature } from './school-feature'; -// May contain unused imports in some cases -// @ts-ignore -import type { SchoolLogo } from './school-logo'; -// May contain unused imports in some cases -// @ts-ignore -import type { SchoolPermissionsParams } from './school-permissions-params'; - -/** - * - * @export - * @interface SchoolUpdateBodyParams - */ -export interface SchoolUpdateBodyParams { - /** - * - * @type {string} - * @memberof SchoolUpdateBodyParams - */ - 'name'?: string; - /** - * - * @type {string} - * @memberof SchoolUpdateBodyParams - */ - 'officialSchoolNumber'?: string; - /** - * - * @type {SchoolLogo} - * @memberof SchoolUpdateBodyParams - */ - 'logo'?: SchoolLogo; - /** - * - * @type {string} - * @memberof SchoolUpdateBodyParams - */ - 'fileStorageType'?: SchoolUpdateBodyParamsFileStorageType; - /** - * - * @type {LanguageType} - * @memberof SchoolUpdateBodyParams - */ - 'language'?: LanguageType; - /** - * - * @type {Array} - * @memberof SchoolUpdateBodyParams - */ - 'features'?: Array; - /** - * - * @type {SchoolPermissionsParams} - * @memberof SchoolUpdateBodyParams - */ - 'permissions'?: SchoolPermissionsParams; - /** - * - * @type {string} - * @memberof SchoolUpdateBodyParams - */ - 'countyId'?: string; - /** - * - * @type {boolean} - * @memberof SchoolUpdateBodyParams - */ - 'enableStudentTeamCreation'?: boolean; -} - -export const SchoolUpdateBodyParamsFileStorageType = { - AWS_S3: 'awsS3' -} as const; - -export type SchoolUpdateBodyParamsFileStorageType = typeof SchoolUpdateBodyParamsFileStorageType[keyof typeof SchoolUpdateBodyParamsFileStorageType]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-query-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-query-type.ts deleted file mode 100644 index 1a342cdae85..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-query-type.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const SchoolYearQueryType = { - NEXT_YEAR: 'nextYear', - CURRENT_YEAR: 'currentYear', - PREVIOUS_YEARS: 'previousYears' -} as const; - -export type SchoolYearQueryType = typeof SchoolYearQueryType[keyof typeof SchoolYearQueryType]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-response.ts deleted file mode 100644 index 82da6c45aaf..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/school-year-response.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SchoolYearResponse - */ -export interface SchoolYearResponse { - /** - * - * @type {string} - * @memberof SchoolYearResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SchoolYearResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof SchoolYearResponse - */ - 'startDate': string; - /** - * - * @type {string} - * @memberof SchoolYearResponse - */ - 'endDate': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-params.ts deleted file mode 100644 index 238cf078c38..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-params.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SchulConneXProvisioningOptionsParams - */ -export interface SchulConneXProvisioningOptionsParams { - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsParams - */ - 'groupProvisioningClassesEnabled': boolean; - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsParams - */ - 'groupProvisioningCoursesEnabled': boolean; - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsParams - */ - 'groupProvisioningOtherEnabled': boolean; - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsParams - */ - 'schoolExternalToolProvisioningEnabled': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-response.ts deleted file mode 100644 index 75f742746fe..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/schul-conne-xprovisioning-options-response.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SchulConneXProvisioningOptionsResponse - */ -export interface SchulConneXProvisioningOptionsResponse { - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsResponse - */ - 'groupProvisioningClassesEnabled': boolean; - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsResponse - */ - 'groupProvisioningCoursesEnabled': boolean; - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsResponse - */ - 'groupProvisioningOtherEnabled': boolean; - /** - * - * @type {boolean} - * @memberof SchulConneXProvisioningOptionsResponse - */ - 'schoolExternalToolProvisioningEnabled': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/schulcloud-theme.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/schulcloud-theme.ts deleted file mode 100644 index 3234fe8ec1b..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/schulcloud-theme.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const SchulcloudTheme = { - BRB: 'brb', - DEFAULT: 'default', - N21: 'n21', - THR: 'thr' -} as const; - -export type SchulcloudTheme = typeof SchulcloudTheme[keyof typeof SchulcloudTheme]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/set-height-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/set-height-body-params.ts deleted file mode 100644 index e58eb48d1a7..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/set-height-body-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SetHeightBodyParams - */ -export interface SetHeightBodyParams { - /** - * - * @type {number} - * @memberof SetHeightBodyParams - */ - 'height': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-body-params.ts deleted file mode 100644 index fd1115f5585..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-body-params.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ShareTokenBodyParams - */ -export interface ShareTokenBodyParams { - /** - * the type of the object being shared - * @type {string} - * @memberof ShareTokenBodyParams - */ - 'parentType': ShareTokenBodyParamsParentType; - /** - * the id of the object being shared. - * @type {string} - * @memberof ShareTokenBodyParams - */ - 'parentId': string; - /** - * when defined, the sharetoken will expire after the given number of days. - * @type {number} - * @memberof ShareTokenBodyParams - */ - 'expiresInDays'?: number | null; - /** - * when defined, the sharetoken will be usable exclusively by members of the users school. - * @type {boolean} - * @memberof ShareTokenBodyParams - */ - 'schoolExclusive'?: boolean | null; -} - -export const ShareTokenBodyParamsParentType = { - COURSES: 'courses', - TASKS: 'tasks', - LESSONS: 'lessons', - COLUMN_BOARD: 'columnBoard' -} as const; - -export type ShareTokenBodyParamsParentType = typeof ShareTokenBodyParamsParentType[keyof typeof ShareTokenBodyParamsParentType]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-import-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-import-body-params.ts deleted file mode 100644 index dbb4a195ca2..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-import-body-params.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ShareTokenImportBodyParams - */ -export interface ShareTokenImportBodyParams { - /** - * the new name of the imported object. - * @type {string} - * @memberof ShareTokenImportBodyParams - */ - 'newName': string; - /** - * Id of the course to which the lesson/task will be added - * @type {string} - * @memberof ShareTokenImportBodyParams - */ - 'destinationCourseId'?: string | null; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-info-response.ts deleted file mode 100644 index 7cadae54854..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-info-response.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ShareTokenInfoResponse - */ -export interface ShareTokenInfoResponse { - /** - * - * @type {string} - * @memberof ShareTokenInfoResponse - */ - 'token': string; - /** - * - * @type {string} - * @memberof ShareTokenInfoResponse - */ - 'parentType': ShareTokenInfoResponseParentType; - /** - * - * @type {string} - * @memberof ShareTokenInfoResponse - */ - 'parentName': string; -} - -export const ShareTokenInfoResponseParentType = { - COURSES: 'courses', - TASKS: 'tasks', - LESSONS: 'lessons', - COLUMN_BOARD: 'columnBoard' -} as const; - -export type ShareTokenInfoResponseParentType = typeof ShareTokenInfoResponseParentType[keyof typeof ShareTokenInfoResponseParentType]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-payload-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-payload-response.ts deleted file mode 100644 index 9edf2a783e9..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-payload-response.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ShareTokenPayloadResponse - */ -export interface ShareTokenPayloadResponse { - /** - * - * @type {string} - * @memberof ShareTokenPayloadResponse - */ - 'parentType': ShareTokenPayloadResponseParentType; - /** - * - * @type {string} - * @memberof ShareTokenPayloadResponse - */ - 'parentId': string; -} - -export const ShareTokenPayloadResponseParentType = { - COURSES: 'courses', - TASKS: 'tasks', - LESSONS: 'lessons', - COLUMN_BOARD: 'columnBoard' -} as const; - -export type ShareTokenPayloadResponseParentType = typeof ShareTokenPayloadResponseParentType[keyof typeof ShareTokenPayloadResponseParentType]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-response.ts deleted file mode 100644 index 68ad83eb0e8..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/share-token-response.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ShareTokenPayloadResponse } from './share-token-payload-response'; - -/** - * - * @export - * @interface ShareTokenResponse - */ -export interface ShareTokenResponse { - /** - * - * @type {string} - * @memberof ShareTokenResponse - */ - 'token': string; - /** - * - * @type {ShareTokenPayloadResponse} - * @memberof ShareTokenResponse - */ - 'payload': ShareTokenPayloadResponse; - /** - * - * @type {string} - * @memberof ShareTokenResponse - */ - 'expiresAt'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/single-column-board-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/single-column-board-response.ts deleted file mode 100644 index b9409573716..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/single-column-board-response.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { BoardElementResponse } from './board-element-response'; - -/** - * - * @export - * @interface SingleColumnBoardResponse - */ -export interface SingleColumnBoardResponse { - /** - * The id of the room this board belongs to - * @type {string} - * @memberof SingleColumnBoardResponse - */ - 'roomId': string; - /** - * Title of the Board - * @type {string} - * @memberof SingleColumnBoardResponse - */ - 'title': string; - /** - * Color of the Board - * @type {string} - * @memberof SingleColumnBoardResponse - */ - 'displayColor': string; - /** - * Array of board specific tasks or lessons with matching type property - * @type {Array} - * @memberof SingleColumnBoardResponse - */ - 'elements': Array; - /** - * Boolean if the room this board belongs to is archived - * @type {boolean} - * @memberof SingleColumnBoardResponse - */ - 'isArchived': boolean; - /** - * Is the course synchronized with a group? - * @type {boolean} - * @memberof SingleColumnBoardResponse - */ - 'isSynchronized': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/student-permission-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/student-permission-params.ts deleted file mode 100644 index e3b5b66e6fe..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/student-permission-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface StudentPermissionParams - */ -export interface StudentPermissionParams { - /** - * - * @type {boolean} - * @memberof StudentPermissionParams - */ - 'LERNSTORE_VIEW'?: boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-content-body.ts deleted file mode 100644 index 4210ee50a22..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-content-body.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SubmissionContainerContentBody - */ -export interface SubmissionContainerContentBody { - /** - * The point in time until when a submission can be handed in. - * @type {string} - * @memberof SubmissionContainerContentBody - */ - 'dueDate'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content-body.ts deleted file mode 100644 index f508cd5585c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content-body.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { SubmissionContainerContentBody } from './submission-container-content-body'; - -/** - * - * @export - * @interface SubmissionContainerElementContentBody - */ -export interface SubmissionContainerElementContentBody { - /** - * - * @type {ContentElementType} - * @memberof SubmissionContainerElementContentBody - */ - 'type': ContentElementType; - /** - * - * @type {SubmissionContainerContentBody} - * @memberof SubmissionContainerElementContentBody - */ - 'content': SubmissionContainerContentBody; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content.ts deleted file mode 100644 index 821e4f26241..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-content.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SubmissionContainerElementContent - */ -export interface SubmissionContainerElementContent { - /** - * The dueDate as date string or null of not set - * @type {string} - * @memberof SubmissionContainerElementContent - */ - 'dueDate': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-response.ts deleted file mode 100644 index de4af08dea9..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-container-element-response.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { SubmissionContainerElementContent } from './submission-container-element-content'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface SubmissionContainerElementResponse - */ -export interface SubmissionContainerElementResponse { - /** - * - * @type {string} - * @memberof SubmissionContainerElementResponse - */ - 'id': string; - /** - * - * @type {ContentElementType} - * @memberof SubmissionContainerElementResponse - */ - 'type': ContentElementType; - /** - * - * @type {SubmissionContainerElementContent} - * @memberof SubmissionContainerElementResponse - */ - 'content': SubmissionContainerElementContent; - /** - * - * @type {TimestampsResponse} - * @memberof SubmissionContainerElementResponse - */ - 'timestamps': TimestampsResponse; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response-elements-inner.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response-elements-inner.ts deleted file mode 100644 index c599fe39d08..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response-elements-inner.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { FileElementResponse } from './file-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { RichTextElementContent } from './rich-text-element-content'; -// May contain unused imports in some cases -// @ts-ignore -import type { RichTextElementResponse } from './rich-text-element-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * @type SubmissionItemResponseElementsInner - * @export - */ -export type SubmissionItemResponseElementsInner = FileElementResponse | RichTextElementResponse; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response.ts deleted file mode 100644 index cb6ca9abb2d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-item-response.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { SubmissionItemResponseElementsInner } from './submission-item-response-elements-inner'; -// May contain unused imports in some cases -// @ts-ignore -import type { TimestampsResponse } from './timestamps-response'; - -/** - * - * @export - * @interface SubmissionItemResponse - */ -export interface SubmissionItemResponse { - /** - * - * @type {string} - * @memberof SubmissionItemResponse - */ - 'id': string; - /** - * - * @type {TimestampsResponse} - * @memberof SubmissionItemResponse - */ - 'timestamps': TimestampsResponse; - /** - * - * @type {boolean} - * @memberof SubmissionItemResponse - */ - 'completed': boolean; - /** - * - * @type {string} - * @memberof SubmissionItemResponse - */ - 'userId': string; - /** - * - * @type {Array} - * @memberof SubmissionItemResponse - */ - 'elements': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-list-response.ts deleted file mode 100644 index e1fb8145e15..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-list-response.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { SubmissionStatusResponse } from './submission-status-response'; - -/** - * - * @export - * @interface SubmissionStatusListResponse - */ -export interface SubmissionStatusListResponse { - /** - * - * @type {Array} - * @memberof SubmissionStatusListResponse - */ - 'data': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-response.ts deleted file mode 100644 index 547bc929b2a..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/submission-status-response.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SubmissionStatusResponse - */ -export interface SubmissionStatusResponse { - /** - * - * @type {string} - * @memberof SubmissionStatusResponse - */ - 'id': string; - /** - * - * @type {Array} - * @memberof SubmissionStatusResponse - */ - 'submitters': Array; - /** - * - * @type {boolean} - * @memberof SubmissionStatusResponse - */ - 'isSubmitted': boolean; - /** - * - * @type {number} - * @memberof SubmissionStatusResponse - */ - 'grade'?: number; - /** - * - * @type {boolean} - * @memberof SubmissionStatusResponse - */ - 'isGraded': boolean; - /** - * - * @type {string} - * @memberof SubmissionStatusResponse - */ - 'submittingCourseGroupName'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/submissions-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/submissions-response.ts deleted file mode 100644 index ebd6aca5701..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/submissions-response.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { SubmissionItemResponse } from './submission-item-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { UserDataResponse } from './user-data-response'; - -/** - * - * @export - * @interface SubmissionsResponse - */ -export interface SubmissionsResponse { - /** - * - * @type {Array} - * @memberof SubmissionsResponse - */ - 'submissionItemsResponse': Array; - /** - * - * @type {Array} - * @memberof SubmissionsResponse - */ - 'users': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/successful-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/successful-response.ts deleted file mode 100644 index d9efb008d6f..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/successful-response.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SuccessfulResponse - */ -export interface SuccessfulResponse { - /** - * - * @type {boolean} - * @memberof SuccessfulResponse - */ - 'successful': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/system-for-ldap-login-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/system-for-ldap-login-response.ts deleted file mode 100644 index a5e41dd35d6..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/system-for-ldap-login-response.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface SystemForLdapLoginResponse - */ -export interface SystemForLdapLoginResponse { - /** - * - * @type {string} - * @memberof SystemForLdapLoginResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof SystemForLdapLoginResponse - */ - 'type': string; - /** - * - * @type {string} - * @memberof SystemForLdapLoginResponse - */ - 'alias': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/target-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/target-info-response.ts deleted file mode 100644 index d442ce019aa..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/target-info-response.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface TargetInfoResponse - */ -export interface TargetInfoResponse { - /** - * The id of the Target entity - * @type {string} - * @memberof TargetInfoResponse - */ - 'id': string; - /** - * The name of the Target entity - * @type {string} - * @memberof TargetInfoResponse - */ - 'name': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/task-copy-api-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/task-copy-api-params.ts deleted file mode 100644 index 93c6e1ba3c0..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/task-copy-api-params.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface TaskCopyApiParams - */ -export interface TaskCopyApiParams { - /** - * Destination course parent Id the task is copied to - * @type {string} - * @memberof TaskCopyApiParams - */ - 'courseId'?: string; - /** - * Destination lesson parent Id the task is copied to - * @type {string} - * @memberof TaskCopyApiParams - */ - 'lessonId'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/task-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/task-list-response.ts deleted file mode 100644 index 0e50e444801..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/task-list-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { TaskResponse } from './task-response'; - -/** - * - * @export - * @interface TaskListResponse - */ -export interface TaskListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof TaskListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof TaskListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof TaskListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof TaskListResponse - */ - 'limit': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/task-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/task-response.ts deleted file mode 100644 index 6ac50bf39d8..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/task-response.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { RichText } from './rich-text'; -// May contain unused imports in some cases -// @ts-ignore -import type { TaskStatusResponse } from './task-status-response'; - -/** - * - * @export - * @interface TaskResponse - */ -export interface TaskResponse { - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'id': string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'name': string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'availableDate'?: string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'dueDate'?: string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'courseName': string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'lessonName'?: string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'courseId': string; - /** - * Task description object, with props content: string and type: input format types - * @type {RichText} - * @memberof TaskResponse - */ - 'description'?: RichText; - /** - * - * @type {boolean} - * @memberof TaskResponse - */ - 'lessonHidden': boolean; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'displayColor'?: string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'createdAt': string; - /** - * - * @type {string} - * @memberof TaskResponse - */ - 'updatedAt': string; - /** - * - * @type {TaskStatusResponse} - * @memberof TaskResponse - */ - 'status': TaskStatusResponse; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/task-status-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/task-status-response.ts deleted file mode 100644 index d7268557f02..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/task-status-response.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface TaskStatusResponse - */ -export interface TaskStatusResponse { - /** - * - * @type {number} - * @memberof TaskStatusResponse - */ - 'submitted': number; - /** - * - * @type {number} - * @memberof TaskStatusResponse - */ - 'maxSubmissions': number; - /** - * - * @type {number} - * @memberof TaskStatusResponse - */ - 'graded': number; - /** - * - * @type {boolean} - * @memberof TaskStatusResponse - */ - 'isDraft': boolean; - /** - * - * @type {boolean} - * @memberof TaskStatusResponse - */ - 'isSubstitutionTeacher': boolean; - /** - * - * @type {boolean} - * @memberof TaskStatusResponse - */ - 'isFinished': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/teacher-permission-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/teacher-permission-params.ts deleted file mode 100644 index 9c7be404b90..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/teacher-permission-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface TeacherPermissionParams - */ -export interface TeacherPermissionParams { - /** - * - * @type {boolean} - * @memberof TeacherPermissionParams - */ - 'STUDENT_LIST'?: boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/team-permissions-body.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/team-permissions-body.ts deleted file mode 100644 index 19bc1edd92c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/team-permissions-body.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface TeamPermissionsBody - */ -export interface TeamPermissionsBody { - /** - * - * @type {boolean} - * @memberof TeamPermissionsBody - */ - 'read': boolean; - /** - * - * @type {boolean} - * @memberof TeamPermissionsBody - */ - 'write': boolean; - /** - * - * @type {boolean} - * @memberof TeamPermissionsBody - */ - 'create': boolean; - /** - * - * @type {boolean} - * @memberof TeamPermissionsBody - */ - 'delete': boolean; - /** - * - * @type {boolean} - * @memberof TeamPermissionsBody - */ - 'share': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/timestamps-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/timestamps-response.ts deleted file mode 100644 index 5cb199ae39a..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/timestamps-response.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface TimestampsResponse - */ -export interface TimestampsResponse { - /** - * - * @type {string} - * @memberof TimestampsResponse - */ - 'lastUpdatedAt': string; - /** - * - * @type {string} - * @memberof TimestampsResponse - */ - 'createdAt': string; - /** - * - * @type {string} - * @memberof TimestampsResponse - */ - 'deletedAt'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/timezone.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/timezone.ts deleted file mode 100644 index bbd4c976d8b..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/timezone.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const Timezone = { - EUROPE_BERLIN: 'Europe/Berlin' -} as const; - -export type Timezone = typeof Timezone[keyof typeof Timezone]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-config-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-config-type.ts deleted file mode 100644 index b43aa7f739a..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-config-type.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const ToolConfigType = { - BASIC: 'basic', - OAUTH2: 'oauth2', - LTI11: 'lti11' -} as const; - -export type ToolConfigType = typeof ToolConfigType[keyof typeof ToolConfigType]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-type.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-type.ts deleted file mode 100644 index 8816e809a16..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-type.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const ToolContextType = { - COURSE: 'course', - BOARD_ELEMENT: 'board-element', - MEDIA_BOARD: 'media-board' -} as const; - -export type ToolContextType = typeof ToolContextType[keyof typeof ToolContextType]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-types-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-types-list-response.ts deleted file mode 100644 index c8eba96ed23..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-context-types-list-response.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ToolContextType } from './tool-context-type'; - -/** - * - * @export - * @interface ToolContextTypesListResponse - */ -export interface ToolContextTypesListResponse { - /** - * - * @type {Array} - * @memberof ToolContextTypesListResponse - */ - 'data': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-launch-request-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-launch-request-response.ts deleted file mode 100644 index 93c4bf5f7ca..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-launch-request-response.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ToolLaunchRequestResponse - */ -export interface ToolLaunchRequestResponse { - /** - * The Launch Request method (GET or POST) - * @type {string} - * @memberof ToolLaunchRequestResponse - */ - 'method': ToolLaunchRequestResponseMethod; - /** - * The URL for the Tool Launch Request - * @type {string} - * @memberof ToolLaunchRequestResponse - */ - 'url': string; - /** - * The payload for the Tool Launch Request (optional) - * @type {string} - * @memberof ToolLaunchRequestResponse - */ - 'payload'?: string; - /** - * Specifies whether the Tool should be launched in a new tab - * @type {boolean} - * @memberof ToolLaunchRequestResponse - */ - 'openNewTab'?: boolean; -} - -export const ToolLaunchRequestResponseMethod = { - GET: 'GET', - POST: 'POST' -} as const; - -export type ToolLaunchRequestResponseMethod = typeof ToolLaunchRequestResponseMethod[keyof typeof ToolLaunchRequestResponseMethod]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-list-response.ts deleted file mode 100644 index 9ca604d587c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-list-response.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ToolReferenceResponse } from './tool-reference-response'; - -/** - * - * @export - * @interface ToolReferenceListResponse - */ -export interface ToolReferenceListResponse { - /** - * - * @type {Array} - * @memberof ToolReferenceListResponse - */ - 'data': Array; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-response.ts deleted file mode 100644 index 235cdb637be..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/tool-reference-response.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContextExternalToolConfigurationStatusResponse } from './context-external-tool-configuration-status-response'; - -/** - * - * @export - * @interface ToolReferenceResponse - */ -export interface ToolReferenceResponse { - /** - * The id of the tool in the context - * @type {string} - * @memberof ToolReferenceResponse - */ - 'contextToolId': string; - /** - * The description of the tool - * @type {string} - * @memberof ToolReferenceResponse - */ - 'description'?: string; - /** - * The url of the logo which is stored in the db - * @type {string} - * @memberof ToolReferenceResponse - */ - 'logoUrl'?: string; - /** - * The display name of the tool - * @type {string} - * @memberof ToolReferenceResponse - */ - 'displayName': string; - /** - * Whether the tool should be opened in a new tab - * @type {boolean} - * @memberof ToolReferenceResponse - */ - 'openInNewTab': boolean; - /** - * The status of the tool - * @type {ContextExternalToolConfigurationStatusResponse} - * @memberof ToolReferenceResponse - */ - 'status': ContextExternalToolConfigurationStatusResponse; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-board-title-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-board-title-params.ts deleted file mode 100644 index 30eb491acef..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-board-title-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UpdateBoardTitleParams - */ -export interface UpdateBoardTitleParams { - /** - * - * @type {string} - * @memberof UpdateBoardTitleParams - */ - 'title': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params-data.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params-data.ts deleted file mode 100644 index af36224ef6d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params-data.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ContentElementType } from './content-element-type'; -// May contain unused imports in some cases -// @ts-ignore -import type { DrawingContentBody } from './drawing-content-body'; -// May contain unused imports in some cases -// @ts-ignore -import type { DrawingElementContentBody } from './drawing-element-content-body'; -// May contain unused imports in some cases -// @ts-ignore -import type { ExternalToolElementContentBody } from './external-tool-element-content-body'; -// May contain unused imports in some cases -// @ts-ignore -import type { FileElementContentBody } from './file-element-content-body'; -// May contain unused imports in some cases -// @ts-ignore -import type { LinkElementContentBody } from './link-element-content-body'; -// May contain unused imports in some cases -// @ts-ignore -import type { RichTextElementContentBody } from './rich-text-element-content-body'; -// May contain unused imports in some cases -// @ts-ignore -import type { SubmissionContainerElementContentBody } from './submission-container-element-content-body'; - -/** - * @type UpdateElementContentBodyParamsData - * @export - */ -export type UpdateElementContentBodyParamsData = DrawingElementContentBody | ExternalToolElementContentBody | FileElementContentBody | LinkElementContentBody | RichTextElementContentBody | SubmissionContainerElementContentBody; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params.ts deleted file mode 100644 index e07a1440a41..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-element-content-body-params.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { UpdateElementContentBodyParamsData } from './update-element-content-body-params-data'; - -/** - * - * @export - * @interface UpdateElementContentBodyParams - */ -export interface UpdateElementContentBodyParams { - /** - * - * @type {UpdateElementContentBodyParamsData} - * @memberof UpdateElementContentBodyParams - */ - 'data': UpdateElementContentBodyParamsData; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-flag-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-flag-params.ts deleted file mode 100644 index 86755a26686..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-flag-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UpdateFlagParams - */ -export interface UpdateFlagParams { - /** - * updates flag for an import user - * @type {boolean} - * @memberof UpdateFlagParams - */ - 'flagged': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-match-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-match-params.ts deleted file mode 100644 index 22dab934e12..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-match-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UpdateMatchParams - */ -export interface UpdateMatchParams { - /** - * updates local user reference for an import user - * @type {string} - * @memberof UpdateMatchParams - */ - 'userId': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-news-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-news-params.ts deleted file mode 100644 index 382085dc7b3..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-news-params.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UpdateNewsParams - */ -export interface UpdateNewsParams { - /** - * Title of the News entity - * @type {string} - * @memberof UpdateNewsParams - */ - 'title'?: string; - /** - * Content of the News entity - * @type {string} - * @memberof UpdateNewsParams - */ - 'content'?: string; - /** - * The point in time from when the News entity schould be displayed - * @type {string} - * @memberof UpdateNewsParams - */ - 'displayAt'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-submission-item-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/update-submission-item-body-params.ts deleted file mode 100644 index 0cb54d9de1e..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/update-submission-item-body-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UpdateSubmissionItemBodyParams - */ -export interface UpdateSubmissionItemBodyParams { - /** - * Boolean indicating whether the submission is completed. - * @type {boolean} - * @memberof UpdateSubmissionItemBodyParams - */ - 'completed': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-consent-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-consent-response.ts deleted file mode 100644 index 44d898a7bfe..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-consent-response.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UserConsentResponse - */ -export interface UserConsentResponse { - /** - * - * @type {string} - * @memberof UserConsentResponse - */ - 'form': string; - /** - * - * @type {boolean} - * @memberof UserConsentResponse - */ - 'privacyConsent': boolean; - /** - * - * @type {boolean} - * @memberof UserConsentResponse - */ - 'termsOfUseConsent': boolean; - /** - * - * @type {string} - * @memberof UserConsentResponse - */ - 'dateOfPrivacyConsent': string; - /** - * - * @type {string} - * @memberof UserConsentResponse - */ - 'dateOfTermsOfUseConsent': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-data-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-data-response.ts deleted file mode 100644 index ede3e429f8e..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-data-response.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UserDataResponse - */ -export interface UserDataResponse { - /** - * - * @type {string} - * @memberof UserDataResponse - */ - 'firstName': string; - /** - * - * @type {string} - * @memberof UserDataResponse - */ - 'lastName': string; - /** - * - * @type {string} - * @memberof UserDataResponse - */ - 'userId': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-info-response.ts deleted file mode 100644 index 2f1f1faa8ab..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-info-response.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UserInfoResponse - */ -export interface UserInfoResponse { - /** - * The id of the User entity - * @type {string} - * @memberof UserInfoResponse - */ - 'id': string; - /** - * First name of the user - * @type {string} - * @memberof UserInfoResponse - */ - 'firstName'?: string; - /** - * Last name of the user - * @type {string} - * @memberof UserInfoResponse - */ - 'lastName'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-list-response.ts deleted file mode 100644 index 8d968fa9f9c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-list-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { UserResponse } from './user-response'; - -/** - * - * @export - * @interface UserListResponse - */ -export interface UserListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof UserListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof UserListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof UserListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof UserListResponse - */ - 'limit': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-mandatory-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-mandatory-params.ts deleted file mode 100644 index f816840c05c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-mandatory-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UserLoginMigrationMandatoryParams - */ -export interface UserLoginMigrationMandatoryParams { - /** - * - * @type {boolean} - * @memberof UserLoginMigrationMandatoryParams - */ - 'mandatory': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-response.ts deleted file mode 100644 index 7231b1e53f6..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-response.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UserLoginMigrationResponse - */ -export interface UserLoginMigrationResponse { - /** - * Id of the migration - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'id': string; - /** - * Id of the system which is the origin of the migration - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'sourceSystemId'?: string; - /** - * Id of the system which is the target of the migration - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'targetSystemId': string; - /** - * Date when the migration was marked as required - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'mandatorySince'?: string; - /** - * Date when the migration was started - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'startedAt': string; - /** - * Date when the migration was completed - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'closedAt'?: string; - /** - * Date when the migration was completed including the grace period - * @type {string} - * @memberof UserLoginMigrationResponse - */ - 'finishedAt'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-search-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-search-list-response.ts deleted file mode 100644 index 17a477e3c01..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-login-migration-search-list-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { UserLoginMigrationResponse } from './user-login-migration-response'; - -/** - * - * @export - * @interface UserLoginMigrationSearchListResponse - */ -export interface UserLoginMigrationSearchListResponse { - /** - * Contains user login migration responses - * @type {Array} - * @memberof UserLoginMigrationSearchListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof UserLoginMigrationSearchListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof UserLoginMigrationSearchListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof UserLoginMigrationSearchListResponse - */ - 'limit': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-list-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-list-response.ts deleted file mode 100644 index 9a068bf483d..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-list-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { UserMatchResponse } from './user-match-response'; - -/** - * - * @export - * @interface UserMatchListResponse - */ -export interface UserMatchListResponse { - /** - * The items for the current page. - * @type {Array} - * @memberof UserMatchListResponse - */ - 'data': Array; - /** - * The total amount of items. - * @type {number} - * @memberof UserMatchListResponse - */ - 'total': number; - /** - * The amount of items skipped from the start. - * @type {number} - * @memberof UserMatchListResponse - */ - 'skip': number; - /** - * The page size of the response. - * @type {number} - * @memberof UserMatchListResponse - */ - 'limit': number; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-response.ts deleted file mode 100644 index ffcf1557df7..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-match-response.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UserMatchResponse - */ -export interface UserMatchResponse { - /** - * local user id - * @type {string} - * @memberof UserMatchResponse - */ - 'userId': string; - /** - * login name of local user - * @type {string} - * @memberof UserMatchResponse - */ - 'loginName': string; - /** - * firstname of local user - * @type {string} - * @memberof UserMatchResponse - */ - 'firstName': string; - /** - * lastname of local user - * @type {string} - * @memberof UserMatchResponse - */ - 'lastName': string; - /** - * list of user roles from external system: student, teacher, admin - * @type {Array} - * @memberof UserMatchResponse - */ - 'roleNames': Array; - /** - * match type: admin (manual) or auto (set, when names match exactly for a single user - * @type {string} - * @memberof UserMatchResponse - */ - 'matchedBy'?: UserMatchResponseMatchedBy; -} - -export const UserMatchResponseRoleNames = { - STUDENT: 'student', - TEACHER: 'teacher', - ADMIN: 'admin' -} as const; - -export type UserMatchResponseRoleNames = typeof UserMatchResponseRoleNames[keyof typeof UserMatchResponseRoleNames]; -export const UserMatchResponseMatchedBy = { - AUTO: 'auto', - ADMIN: 'admin' -} as const; - -export type UserMatchResponseMatchedBy = typeof UserMatchResponseMatchedBy[keyof typeof UserMatchResponseMatchedBy]; - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/user-response.ts deleted file mode 100644 index 027cf45b536..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/user-response.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { ClassResponse } from './class-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { ConsentsResponse } from './consents-response'; - -/** - * - * @export - * @interface UserResponse - */ -export interface UserResponse { - /** - * - * @type {string} - * @memberof UserResponse - */ - '_id': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'firstName': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'lastName': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'email': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'createdAt': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'birthday': string; - /** - * - * @type {object} - * @memberof UserResponse - */ - 'preferences': object; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'consentStatus': string; - /** - * - * @type {ConsentsResponse} - * @memberof UserResponse - */ - 'consent': ConsentsResponse; - /** - * - * @type {Array} - * @memberof UserResponse - */ - 'classes': Array; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'importHash': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'lastLoginSystemChange': string; - /** - * - * @type {string} - * @memberof UserResponse - */ - 'outdatedSince': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/validation-error.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/validation-error.ts deleted file mode 100644 index c0b082f0f20..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/validation-error.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ValidationError - */ -export interface ValidationError { - /** - * The response status code. - * @type {number} - * @memberof ValidationError - */ - 'code': number; - /** - * The error type. - * @type {string} - * @memberof ValidationError - */ - 'type': string; - /** - * The error title. - * @type {string} - * @memberof ValidationError - */ - 'title': string; - /** - * The error message. - * @type {string} - * @memberof ValidationError - */ - 'message': string; - /** - * The error details. - * @type {object} - * @memberof ValidationError - */ - 'details'?: object; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-create-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-create-params.ts deleted file mode 100644 index 6b0408ee11e..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-create-params.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface VideoConferenceCreateParams - */ -export interface VideoConferenceCreateParams { - /** - * - * @type {boolean} - * @memberof VideoConferenceCreateParams - */ - 'everyAttendeeJoinsMuted'?: boolean; - /** - * - * @type {boolean} - * @memberof VideoConferenceCreateParams - */ - 'everybodyJoinsAsModerator'?: boolean; - /** - * - * @type {boolean} - * @memberof VideoConferenceCreateParams - */ - 'moderatorMustApproveJoinRequests'?: boolean; - /** - * The URL that the BigBlueButton client will go to after users click the OK button on the ‘You have been logged out’ or ’This session was ended’ message. Has to be a URL from the same domain that the conference is started from. - * @type {string} - * @memberof VideoConferenceCreateParams - */ - 'logoutUrl'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-info-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-info-response.ts deleted file mode 100644 index 0e6adac2bce..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-info-response.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { VideoConferenceOptionsResponse } from './video-conference-options-response'; -// May contain unused imports in some cases -// @ts-ignore -import type { VideoConferenceStateResponse } from './video-conference-state-response'; - -/** - * - * @export - * @interface VideoConferenceInfoResponse - */ -export interface VideoConferenceInfoResponse { - /** - * - * @type {VideoConferenceStateResponse} - * @memberof VideoConferenceInfoResponse - */ - 'state': VideoConferenceStateResponse; - /** - * The options for the video conference. - * @type {VideoConferenceOptionsResponse} - * @memberof VideoConferenceInfoResponse - */ - 'options': VideoConferenceOptionsResponse; -} - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-join-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-join-response.ts deleted file mode 100644 index 0dc838bb9bf..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-join-response.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface VideoConferenceJoinResponse - */ -export interface VideoConferenceJoinResponse { - /** - * The URL to join the video conference. - * @type {string} - * @memberof VideoConferenceJoinResponse - */ - 'url': string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-options-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-options-response.ts deleted file mode 100644 index 2b2a8922f5f..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-options-response.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface VideoConferenceOptionsResponse - */ -export interface VideoConferenceOptionsResponse { - /** - * Every attendee joins muted - * @type {boolean} - * @memberof VideoConferenceOptionsResponse - */ - 'everyAttendeeJoinsMuted': boolean; - /** - * Every attendee joins as a moderator - * @type {boolean} - * @memberof VideoConferenceOptionsResponse - */ - 'everybodyJoinsAsModerator': boolean; - /** - * Moderator must approve join requests - * @type {boolean} - * @memberof VideoConferenceOptionsResponse - */ - 'moderatorMustApproveJoinRequests': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-scope.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-scope.ts deleted file mode 100644 index d6f0c424099..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-scope.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const VideoConferenceScope = { - COURSE: 'course', - EVENT: 'event' -} as const; - -export type VideoConferenceScope = typeof VideoConferenceScope[keyof typeof VideoConferenceScope]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-state-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-state-response.ts deleted file mode 100644 index aff614ee03c..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/video-conference-state-response.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ - -export const VideoConferenceStateResponse = { - NOT_STARTED: 'NOT_STARTED', - RUNNING: 'RUNNING', - FINISHED: 'FINISHED' -} as const; - -export type VideoConferenceStateResponse = typeof VideoConferenceStateResponse[keyof typeof VideoConferenceStateResponse]; - - - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-body-params.ts deleted file mode 100644 index 0307c56dbba..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-body-params.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface VisibilityBodyParams - */ -export interface VisibilityBodyParams { - /** - * - * @type {boolean} - * @memberof VisibilityBodyParams - */ - 'isVisible': boolean; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-settings-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-settings-response.ts deleted file mode 100644 index 777c7939e49..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/visibility-settings-response.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface VisibilitySettingsResponse - */ -export interface VisibilitySettingsResponse { - /** - * - * @type {string} - * @memberof VisibilitySettingsResponse - */ - 'publishedAt'?: string; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/years-response.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/years-response.ts deleted file mode 100644 index a4aa2c4fd16..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/years-response.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. - * - * The version of the OpenAPI document: 3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import type { SchoolYearResponse } from './school-year-response'; - -/** - * - * @export - * @interface YearsResponse - */ -export interface YearsResponse { - /** - * - * @type {Array} - * @memberof YearsResponse - */ - 'schoolYears': Array; - /** - * - * @type {SchoolYearResponse} - * @memberof YearsResponse - */ - 'activeYear': SchoolYearResponse; - /** - * - * @type {SchoolYearResponse} - * @memberof YearsResponse - */ - 'lastYear': SchoolYearResponse; - /** - * - * @type {SchoolYearResponse} - * @memberof YearsResponse - */ - 'nextYear': SchoolYearResponse; -} - diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index 8f082ec5d1b..e1586e21385 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -1,29 +1,20 @@ -import { Injectable } from '@nestjs/common'; -import { - AuthorizationApi, - AuthorizationBodyParams, - AuthorizationBodyParamsReferenceType, - AuthorizationContextParams, - AuthorizedReponse, -} from './authorization-api-client'; +import { Injectable, InternalServerErrorException } from '@nestjs/common'; +import { ErrorUtils } from '@src/core/error/utils'; +import { AuthorizationApi, AuthorizationBodyParams, AuthorizedReponse } from './authorization-api-client'; @Injectable() export class AuthorizationClientAdapter { constructor(private readonly authorizationApi: AuthorizationApi) {} - public async checkPermissionByReferences( - referenceType: AuthorizationBodyParamsReferenceType, - referenceId: string, - context: AuthorizationContextParams - ): Promise { - const params: AuthorizationBodyParams = { - context, - referenceType, - referenceId, - }; - - const response = await this.authorizationApi.authorizationReferenceControllerAuthorizeByReference(params); - - return response.data; + public async checkPermissionByReferences(params: AuthorizationBodyParams): Promise { + try { + const response = await this.authorizationApi.authorizationReferenceControllerAuthorizeByReference(params); + return response.data; + } catch (err) { + throw new InternalServerErrorException( + 'AuthorizationClientAdapter:checkPermissionByReferences', + ErrorUtils.createHttpExceptionOptions(err) + ); + } } } diff --git a/apps/server/src/infra/authorization-client/index.ts b/apps/server/src/infra/authorization-client/index.ts new file mode 100644 index 00000000000..28293d9f14a --- /dev/null +++ b/apps/server/src/infra/authorization-client/index.ts @@ -0,0 +1,2 @@ +export * from './authorization-client.adapter'; +export * from './authorization-client.module'; From eaf8756800f9a07e8ba23d1f137fc4ad48ac327d Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Thu, 6 Jun 2024 12:03:03 +0200 Subject: [PATCH 06/40] BC-6453 - add some comments to `apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore` --- .../authorization-api-client/.openapi-generator-ignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore index c48ecddba99..b83a6e36fc0 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore +++ b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore @@ -21,7 +21,11 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md + +# ignore all files in the "models" folder models/* + +# list of allowed files in the "models" folder !models/action.ts !models/authorization-body-params.ts !models/authorization-context-params.ts From dcdb14aa51629599f0102729c111720a307ca906 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Fri, 7 Jun 2024 08:27:44 +0200 Subject: [PATCH 07/40] BC-6453 - extend unit tests and remove generated `AuthorizationApi` from sonarcloud --- .../authorization-client.adapter.spec.ts | 99 ++++++++++++------- sonar-project.properties | 4 +- 2 files changed, 64 insertions(+), 39 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index b9f74949951..951dcfd787f 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -1,10 +1,12 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest'; +import { InternalServerErrorException } from '@nestjs/common'; import { Test, TestingModule } from '@nestjs/testing'; +import { ErrorUtils } from '@src/core/error/utils'; +import { AxiosResponse } from 'axios'; import { Action, AuthorizationApi, AuthorizationBodyParamsReferenceType, - AuthorizationContextParams, AuthorizedReponse, } from './authorization-api-client'; import { AuthorizationClientAdapter } from './authorization-client.adapter'; @@ -38,47 +40,70 @@ describe(AuthorizationClientAdapter.name, () => { }); describe('checkPermissionByReferences', () => { - it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { - const referenceType: AuthorizationBodyParamsReferenceType = AuthorizationBodyParamsReferenceType.COURSES; - const referenceId = 'someReferenceId'; - const context: AuthorizationContextParams = { - action: Action.READ, - requiredPermissions: [], - }; - - const expectedParams = { - context, - referenceType, - referenceId, - }; - - await service.checkPermissionByReferences(referenceType, referenceId, context); - - expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( - expectedParams - ); - }); + describe('when client returns response', () => { + it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; - it('should return the response data', async () => { - const response: AuthorizedReponse = { - isAuthorized: true, - userId: 'userId', - }; + await service.checkPermissionByReferences(params); - (authorizationApi.authorizationReferenceControllerAuthorizeByReference as jest.Mock).mockResolvedValueOnce({ - data: response, + expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith(params); }); - const result = await service.checkPermissionByReferences( - AuthorizationBodyParamsReferenceType.COURSES, - 'someReferenceId', - { - action: Action.READ, - requiredPermissions: [], - } - ); + it('should return the response data', async () => { + const response = createMock>({ + data: { + isAuthorized: true, + userId: 'userId', + }, + }); + + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); + + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const result = await service.checkPermissionByReferences(params); + + expect(result).toEqual(response.data); + }); + }); + + describe('when client throws error', () => { + it('should throw error', async () => { + const error = new Error('testError'); + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); - expect(result).toEqual(response); + const expectedError = new InternalServerErrorException( + 'AuthorizationClientAdapter:checkPermissionByReferences', + ErrorUtils.createHttpExceptionOptions(error) + ); + + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + await expect(service.checkPermissionByReferences(params)).rejects.toThrowError(expectedError); + }); }); }); }); diff --git a/sonar-project.properties b/sonar-project.properties index 18a0ed51fb0..b7be9f713c3 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -3,8 +3,8 @@ sonar.projectKey=hpi-schul-cloud_schulcloud-server sonar.sources=. sonar.tests=. sonar.test.inclusions=**/*.spec.ts -sonar.exclusions=**/*.js,jest.config.ts,globalSetup.ts,globalTeardown.ts,**/*.app.ts,**/seed-data/*.ts,**/migrations/mikro-orm/*.ts,**/etherpad-api-client/**/*.ts -sonar.coverage.exclusions=**/board-management.uc.ts,**/*.module.ts,**/*.factory.ts,**/migrations/mikro-orm/*.ts,**/globalSetup.ts,**/globalTeardown.ts,**/etherpad-api-client/**/*.ts +sonar.exclusions=**/*.js,jest.config.ts,globalSetup.ts,globalTeardown.ts,**/*.app.ts,**/seed-data/*.ts,**/migrations/mikro-orm/*.ts,**/etherpad-api-client/**/*.ts,**/authorization-api-client/**/*.ts +sonar.coverage.exclusions=**/board-management.uc.ts,**/*.module.ts,**/*.factory.ts,**/migrations/mikro-orm/*.ts,**/globalSetup.ts,**/globalTeardown.ts,**/etherpad-api-client/**/*.ts,**/authorization-api-client/**/*.ts sonar.cpd.exclusions=**/controller/dto/*.ts sonar.javascript.lcov.reportPaths=merged-lcov.info sonar.typescript.tsconfigPaths=tsconfig.json,src/apps/server/tsconfig.app.json From e4437139df0613bd2be8d8bb7156fb3f4625238f Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Fri, 7 Jun 2024 08:54:55 +0200 Subject: [PATCH 08/40] BC-6453 - fix package.json error --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3f625db83de..39fed51defd 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "ensureIndexes": "npm run nest:start:console -- database sync-indexes", "schoolExport": "node ./scripts/schoolExport.js", "schoolImport": "node ./scripts/schoolImport.js", - "generate-client:authorization": "node ./scripts/generate-client.js -u 'http://localhost:3030/api/v3/docs-json/' -p 'apps/server/src/infra/authorization-client/authorization-api-client' -c 'openapitools-config.json' -f 'operationId:AuthorizationReferenceController_authorizeByReference'" + "generate-client:authorization": "node ./scripts/generate-client.js -u 'http://localhost:3030/api/v3/docs-json/' -p 'apps/server/src/infra/authorization-client/authorization-api-client' -c 'openapitools-config.json' -f 'operationId:AuthorizationReferenceController_authorizeByReference'", "generate-client:etherpad": "node ./scripts/generate-client.js -u 'http://localhost:9001/api/openapi.json' -p 'apps/server/src/infra/etherpad-client/etherpad-api-client' -c 'openapitools-config.json'" }, "dependencies": { From d1fc4933b8ead75ffdd370c003617407761a8366 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Fri, 7 Jun 2024 09:22:56 +0200 Subject: [PATCH 09/40] BC-6453 - fix `package-lock.json` issue --- package-lock.json | 421 +++++++++++++++++++--------------------------- 1 file changed, 175 insertions(+), 246 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5bf1bac0a35..4a56211fc78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -670,13 +670,33 @@ "@aws-sdk/xml-builder": "3.310.0", "@smithy/protocol-http": "^1.0.1", "@smithy/types": "^1.0.0", - "fast-xml-parser": "4.2.5", + "fast-xml-parser": "4.2.4", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, + "node_modules/@aws-sdk/client-s3/node_modules/fast-xml-parser": { + "version": "4.2.4", + "funding": [ + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + }, + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "license": "MIT", + "dependencies": { + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, "node_modules/@aws-sdk/client-sso": { "version": "3.352.0", "license": "Apache-2.0", @@ -758,13 +778,33 @@ "@aws-sdk/util-utf8": "3.310.0", "@smithy/protocol-http": "^1.0.1", "@smithy/types": "^1.0.0", - "fast-xml-parser": "4.2.5", + "fast-xml-parser": "4.2.4", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, + "node_modules/@aws-sdk/client-sts/node_modules/fast-xml-parser": { + "version": "4.2.4", + "funding": [ + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + }, + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "license": "MIT", + "dependencies": { + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, "node_modules/@aws-sdk/config-resolver": { "version": "3.347.0", "license": "Apache-2.0", @@ -2367,21 +2407,6 @@ "kuler": "^2.0.0" } }, - "node_modules/@esbuild/win32-x64": { - "version": "0.17.10", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/@eslint/eslintrc": { "version": "1.4.0", "dev": true, @@ -3973,8 +3998,7 @@ }, "node_modules/@mikro-orm/cli": { "version": "5.6.16", - "resolved": "https://registry.npmjs.org/@mikro-orm/cli/-/cli-5.6.16.tgz", - "integrity": "sha512-ebYoSEf2fr4j2W6a/3zUW+Umi9abj6qOwuxSuKcCk6Uj9zJaC86urypHmnEbrMED0VbYeU9xX+rRpy3OdvaIPQ==", + "license": "MIT", "dependencies": { "@jercle/yargonaut": "1.1.5", "@mikro-orm/core": "~5.6.16", @@ -4037,8 +4061,7 @@ }, "node_modules/@mikro-orm/cli/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -4051,8 +4074,7 @@ }, "node_modules/@mikro-orm/cli/node_modules/cliui": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", @@ -4061,8 +4083,7 @@ }, "node_modules/@mikro-orm/cli/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -4072,8 +4093,7 @@ }, "node_modules/@mikro-orm/cli/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "license": "MIT" }, "node_modules/@mikro-orm/cli/node_modules/fs-extra": { "version": "11.1.1", @@ -4089,8 +4109,7 @@ }, "node_modules/@mikro-orm/cli/node_modules/wrap-ansi": { "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -4102,13 +4121,11 @@ }, "node_modules/@mikro-orm/cli/node_modules/y18n": { "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + "license": "ISC" }, "node_modules/@mikro-orm/cli/node_modules/yargs": { "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "license": "MIT", "dependencies": { "cliui": "^6.0.0", "decamelize": "^1.2.0", @@ -4128,8 +4145,7 @@ }, "node_modules/@mikro-orm/cli/node_modules/yargs-parser": { "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "license": "ISC", "dependencies": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" @@ -4140,8 +4156,7 @@ }, "node_modules/@mikro-orm/core": { "version": "5.6.16", - "resolved": "https://registry.npmjs.org/@mikro-orm/core/-/core-5.6.16.tgz", - "integrity": "sha512-JTrVS4Rb5uVKbf/d26Ni/YgJjMyoHapPEUklr4H+4c+6xlRXbfpPDN6o4ESWNXTc4ubwRGLMI1haMXg0bh6uVQ==", + "license": "MIT", "dependencies": { "acorn-loose": "8.3.0", "acorn-walk": "8.2.0", @@ -4227,8 +4242,7 @@ }, "node_modules/@mikro-orm/knex": { "version": "5.6.16", - "resolved": "https://registry.npmjs.org/@mikro-orm/knex/-/knex-5.6.16.tgz", - "integrity": "sha512-uPrRUmRBOsjj4Px7h4vgikitlJsnnIrJRrhsD1zKiGiK3KZGdSkQOrpdwTKdcWSo7bUiJxPabM8AzITlrJBBqQ==", + "license": "MIT", "dependencies": { "fs-extra": "11.1.1", "knex": "2.4.2", @@ -4277,8 +4291,7 @@ }, "node_modules/@mikro-orm/knex/node_modules/fs-extra": { "version": "11.1.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", - "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "license": "MIT", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", @@ -4290,8 +4303,7 @@ }, "node_modules/@mikro-orm/migrations-mongodb": { "version": "5.6.16", - "resolved": "https://registry.npmjs.org/@mikro-orm/migrations-mongodb/-/migrations-mongodb-5.6.16.tgz", - "integrity": "sha512-c1/sKAvX2WZH/Wiq+CAfuB4Fv0A1rw9vslkPEB043/Kpvb3fn4lbV3/2O/hlaH4juzvfDC9kF+o72zQ69uu05A==", + "license": "MIT", "dependencies": { "@mikro-orm/mongodb": "~5.6.16", "fs-extra": "11.1.1", @@ -4319,8 +4331,7 @@ }, "node_modules/@mikro-orm/migrations-mongodb/node_modules/mongodb": { "version": "4.13.0", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.13.0.tgz", - "integrity": "sha512-+taZ/bV8d1pYuHL4U+gSwkhmDrwkWbH1l4aah4YpmpscMwgFBkufIKxgP/G7m87/NUuQzc2Z75ZTI7ZOyqZLbw==", + "license": "Apache-2.0", "dependencies": { "bson": "^4.7.0", "mongodb-connection-string-url": "^2.5.4", @@ -4336,8 +4347,7 @@ }, "node_modules/@mikro-orm/mongodb": { "version": "5.6.16", - "resolved": "https://registry.npmjs.org/@mikro-orm/mongodb/-/mongodb-5.6.16.tgz", - "integrity": "sha512-MH7B4+OkQedLkv+ecTDRD41La8255LfpCuuwHNOnE8+XjF0tCXiD1XO4Cpcau98ubLR959HRs88OtulQwzgCQw==", + "license": "MIT", "dependencies": { "bson": "^4.7.0", "mongodb": "4.13.0" @@ -4369,8 +4379,7 @@ }, "node_modules/@mikro-orm/mongodb/node_modules/mongodb": { "version": "4.13.0", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.13.0.tgz", - "integrity": "sha512-+taZ/bV8d1pYuHL4U+gSwkhmDrwkWbH1l4aah4YpmpscMwgFBkufIKxgP/G7m87/NUuQzc2Z75ZTI7ZOyqZLbw==", + "license": "Apache-2.0", "dependencies": { "bson": "^4.7.0", "mongodb-connection-string-url": "^2.5.4", @@ -4406,8 +4415,7 @@ }, "node_modules/@nestjs/axios": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@nestjs/axios/-/axios-3.0.2.tgz", - "integrity": "sha512-Z6GuOUdNQjP7FX+OuV2Ybyamse+/e0BFdTWBX5JxpBDKA+YkdLynDgG6HTF04zy6e9zPa19UX0WA2VDoehwhXQ==", + "license": "MIT", "peerDependencies": { "@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0", "axios": "^1.3.1", @@ -4652,8 +4660,7 @@ }, "node_modules/@nestjs/common": { "version": "10.3.0", - "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-10.3.0.tgz", - "integrity": "sha512-DGv34UHsZBxCM3H5QGE2XE/+oLJzz5+714JQjBhjD9VccFlQs3LRxo/epso4l7nJIiNlZkPyIUC8WzfU/5RTsQ==", + "license": "MIT", "dependencies": { "iterare": "1.2.1", "tslib": "2.6.2", @@ -4711,9 +4718,8 @@ }, "node_modules/@nestjs/core": { "version": "10.3.0", - "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-10.3.0.tgz", - "integrity": "sha512-N06P5ncknW/Pm8bj964WvLIZn2gNhHliCBoAO1LeBvNImYkecqKcrmLbY49Fa1rmMfEM3MuBHeDys3edeuYAOA==", "hasInstallScript": true, + "license": "MIT", "dependencies": { "@nuxtjs/opencollective": "0.3.2", "fast-safe-stringify": "2.1.1", @@ -4748,8 +4754,7 @@ }, "node_modules/@nestjs/cqrs": { "version": "10.2.7", - "resolved": "https://registry.npmjs.org/@nestjs/cqrs/-/cqrs-10.2.7.tgz", - "integrity": "sha512-RXhgQOfuT+KzvkueR4S++SB6+6333PL71pOtCzbJAAU/DY3KY56yTCncWRsIdorKfDX5AEwTiQHHJi69XJWdkA==", + "license": "MIT", "dependencies": { "uuid": "9.0.1" }, @@ -4762,12 +4767,11 @@ }, "node_modules/@nestjs/cqrs/node_modules/uuid": { "version": "9.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", - "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], + "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } @@ -4886,8 +4890,7 @@ }, "node_modules/@nestjs/platform-socket.io": { "version": "10.3.7", - "resolved": "https://registry.npmjs.org/@nestjs/platform-socket.io/-/platform-socket.io-10.3.7.tgz", - "integrity": "sha512-T9VbVgEUnbid/RiywN9/8YQ8pAGDP++0nX73l4kIWeDWkz5DEh4aLB7O/JvLA3/xRHdjTZ4RiRZazwqSWi1Sog==", + "license": "MIT", "dependencies": { "socket.io": "4.7.5", "tslib": "2.6.2" @@ -5071,8 +5074,7 @@ }, "node_modules/@nestjs/websockets": { "version": "10.3.7", - "resolved": "https://registry.npmjs.org/@nestjs/websockets/-/websockets-10.3.7.tgz", - "integrity": "sha512-iYdsWiRNPUy0XzPoW44bx2MW1griuraTr5fNhoe2rUSNO0mEW1aeXp4v56KeZDLAss31WbeckC5P3N223Fys5g==", + "license": "MIT", "dependencies": { "iterare": "1.2.1", "object-hash": "3.0.0", @@ -5189,10 +5191,9 @@ }, "node_modules/@openapitools/openapi-generator-cli": { "version": "2.13.4", - "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.4.tgz", - "integrity": "sha512-4JKyrk55ohQK2FcuZbPdNvxdyXD14jjOIvE8hYjJ+E1cHbRbfXQXbYnjTODFE52Gx8eAxz8C9icuhDYDLn7nww==", "dev": true, "hasInstallScript": true, + "license": "Apache-2.0", "dependencies": { "@nestjs/axios": "3.0.2", "@nestjs/common": "10.3.0", @@ -5226,9 +5227,8 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/agent-base": { "version": "7.1.1", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", - "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^4.3.4" }, @@ -5238,9 +5238,8 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -5253,9 +5252,8 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -5269,9 +5267,8 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -5281,15 +5278,13 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@openapitools/openapi-generator-cli/node_modules/debug": { "version": "4.3.5", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", - "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", "dev": true, + "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -5304,10 +5299,8 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/glob": { "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -5325,9 +5318,8 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/https-proxy-agent": { "version": "7.0.4", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz", - "integrity": "sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==", "dev": true, + "license": "MIT", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -5338,9 +5330,8 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/inquirer": { "version": "8.2.6", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.6.tgz", - "integrity": "sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==", "dev": true, + "license": "MIT", "dependencies": { "ansi-escapes": "^4.2.1", "chalk": "^4.1.1", @@ -5364,9 +5355,8 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -5376,9 +5366,8 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/wrap-ansi": { "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -5559,13 +5548,11 @@ }, "node_modules/@socket.io/component-emitter": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", - "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==" + "license": "MIT" }, "node_modules/@socket.io/mongo-adapter": { "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@socket.io/mongo-adapter/-/mongo-adapter-0.3.2.tgz", - "integrity": "sha512-PcVlNuMJgAwDC+iVXmEDvmSik3TqzLqeBJz9uj18+FGApa5WEc35LgEnU0jCZPqZjvPQ2/i6sB/sAMsr58rHfA==", + "license": "MIT", "dependencies": { "debug": "~4.3.1", "mongodb": "*" @@ -6805,6 +6792,7 @@ }, "node_modules/ansi-escapes": { "version": "4.3.2", + "dev": true, "license": "MIT", "dependencies": { "type-fest": "^0.21.3" @@ -7349,8 +7337,7 @@ }, "node_modules/axios": { "version": "1.6.8", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", - "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -7375,8 +7362,7 @@ }, "node_modules/b4a": { "version": "1.6.6", - "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.6.tgz", - "integrity": "sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==" + "license": "Apache-2.0" }, "node_modules/babel-plugin-istanbul": { "version": "6.1.1", @@ -7431,8 +7417,7 @@ }, "node_modules/bare-events": { "version": "2.2.2", - "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.2.2.tgz", - "integrity": "sha512-h7z00dWdG0PYOQEvChhOSWvOfkIKsdZGkWr083FgN/HyoQuebSew/cgirYqh9SCuy/hRvxc5Vy6Fw8xAmYHLkQ==", + "license": "Apache-2.0", "optional": true }, "node_modules/base64-js": { @@ -7455,8 +7440,7 @@ }, "node_modules/base64id": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", - "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", + "license": "MIT", "engines": { "node": "^4.5.0 || >= 5.9" } @@ -7749,8 +7733,7 @@ }, "node_modules/bson": { "version": "4.7.2", - "resolved": "https://registry.npmjs.org/bson/-/bson-4.7.2.tgz", - "integrity": "sha512-Ry9wCtIZ5kGqkJoi6aD8KjxFZEx78guTQDnpXWiNthsxzrxAK/i8E6pCHAIZTbaEFWcOCvbecMukfK7XUvyLpQ==", + "license": "Apache-2.0", "dependencies": { "buffer": "^5.6.0" }, @@ -7760,8 +7743,6 @@ }, "node_modules/bson/node_modules/buffer": { "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "funding": [ { "type": "github", @@ -7776,6 +7757,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" @@ -8088,6 +8070,7 @@ }, "node_modules/chardet": { "version": "0.7.0", + "dev": true, "license": "MIT" }, "node_modules/charenc": { @@ -8333,6 +8316,7 @@ }, "node_modules/cli-cursor": { "version": "3.1.0", + "dev": true, "license": "MIT", "dependencies": { "restore-cursor": "^3.1.0" @@ -8343,6 +8327,7 @@ }, "node_modules/cli-spinners": { "version": "2.6.1", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -8367,6 +8352,7 @@ }, "node_modules/cli-width": { "version": "3.0.0", + "dev": true, "license": "ISC", "engines": { "node": ">= 10" @@ -8666,8 +8652,7 @@ }, "node_modules/colorette": { "version": "2.0.19", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", - "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==" + "license": "MIT" }, "node_modules/colorspace": { "version": "1.1.4", @@ -8733,9 +8718,8 @@ }, "node_modules/compare-versions": { "version": "4.1.4", - "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-4.1.4.tgz", - "integrity": "sha512-FemMreK9xNyL8gQevsdRMrvO4lFCkQP7qbuktn1q8ndcNk1+0mz7lgE7b/sNvbhVgY4w6tMN1FDp6aADjqw2rw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/component-emitter": { "version": "1.3.0", @@ -8970,9 +8954,8 @@ }, "node_modules/console.table": { "version": "0.10.0", - "resolved": "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz", - "integrity": "sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g==", "dev": true, + "license": "MIT", "dependencies": { "easy-table": "1.1.0" }, @@ -9435,6 +9418,7 @@ }, "node_modules/defaults": { "version": "1.0.3", + "dev": true, "license": "MIT", "dependencies": { "clone": "^1.0.2" @@ -9730,9 +9714,8 @@ }, "node_modules/easy-table": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz", - "integrity": "sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA==", "dev": true, + "license": "MIT", "optionalDependencies": { "wcwidth": ">=1.0.1" } @@ -9798,8 +9781,7 @@ }, "node_modules/engine.io": { "version": "6.5.4", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.5.4.tgz", - "integrity": "sha512-KdVSDKhVKyOi+r5uEabrDLZw2qXStVvCsEB/LN3mw4WFi6Gx50jTyuxYVCwAAC0U46FdnzP/ScKRBTXb/NiEOg==", + "license": "MIT", "dependencies": { "@types/cookie": "^0.4.1", "@types/cors": "^2.8.12", @@ -9818,9 +9800,8 @@ }, "node_modules/engine.io-client": { "version": "6.5.3", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.5.3.tgz", - "integrity": "sha512-9Z0qLB0NIisTRt1DZ/8U2k12RJn8yls/nXMZLn+/N8hANT3TcYjKFKcwbw5zFQiN4NTde3TSY9zb79e1ij6j9Q==", "dev": true, + "license": "MIT", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1", @@ -9831,9 +9812,8 @@ }, "node_modules/engine.io-client/node_modules/ws": { "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", "dev": true, + "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -9852,24 +9832,21 @@ }, "node_modules/engine.io-parser": { "version": "5.2.2", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.2.tgz", - "integrity": "sha512-RcyUFKA93/CXH20l4SoVvzZfrSDMOTUS3bWVpTt2FuFP+XYrL8i8oonHP7WInRyVHXh0n/ORtoeiE1os+8qkSw==", + "license": "MIT", "engines": { "node": ">=10.0.0" } }, "node_modules/engine.io/node_modules/cookie": { "version": "0.4.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", + "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/engine.io/node_modules/ws": { "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -10208,21 +10185,6 @@ "node": ">=8.17.0" } }, - "node_modules/esbuild-windows-64": { - "version": "0.14.54", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/escalade": { "version": "3.1.1", "license": "MIT", @@ -10960,8 +10922,7 @@ }, "node_modules/esm": { "version": "3.2.25", - "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", - "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", + "license": "MIT", "engines": { "node": ">=6" } @@ -11415,6 +11376,7 @@ }, "node_modules/external-editor": { "version": "3.1.0", + "dev": true, "license": "MIT", "dependencies": { "chardet": "^0.7.0", @@ -11443,8 +11405,7 @@ }, "node_modules/fast-fifo": { "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", - "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==" + "license": "MIT" }, "node_modules/fast-glob": { "version": "3.2.11", @@ -11472,27 +11433,6 @@ "version": "2.1.1", "license": "MIT" }, - "node_modules/fast-xml-parser": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", - "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", - "funding": [ - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }, - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, "node_modules/fastestsmallesttextencoderdecoder": { "version": "1.0.22", "license": "CC0-1.0", @@ -11598,6 +11538,7 @@ }, "node_modules/figures": { "version": "3.2.0", + "dev": true, "license": "MIT", "dependencies": { "escape-string-regexp": "^1.0.5" @@ -11611,6 +11552,7 @@ }, "node_modules/figures/node_modules/escape-string-regexp": { "version": "1.0.5", + "dev": true, "license": "MIT", "engines": { "node": ">=0.8.0" @@ -11728,14 +11670,13 @@ }, "node_modules/follow-redirects": { "version": "1.15.6", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", - "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "funding": [ { "type": "individual", "url": "https://github.com/sponsors/RubenVerborgh" } ], + "license": "MIT", "engines": { "node": ">=4.0" }, @@ -12145,8 +12086,7 @@ }, "node_modules/getopts": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/getopts/-/getopts-2.3.0.tgz", - "integrity": "sha512-5eDf9fuSXwxBL6q5HX+dhDj+dslFGWzU5thZ9kNKUkcPtaPdatmUFKwHFrLb/uf/WpA4BHET+AX3Scl56cAjpA==" + "license": "MIT" }, "node_modules/getpass": { "version": "0.1.7", @@ -13132,6 +13072,7 @@ }, "node_modules/is-interactive": { "version": "1.0.0", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -13291,6 +13232,7 @@ }, "node_modules/is-unicode-supported": { "version": "0.1.0", + "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -15707,8 +15649,7 @@ }, "node_modules/knex": { "version": "2.4.2", - "resolved": "https://registry.npmjs.org/knex/-/knex-2.4.2.tgz", - "integrity": "sha512-tMI1M7a+xwHhPxjbl/H9K1kHX+VncEYcvCx5K00M16bWvpYPKAZd6QrCu68PtHAdIZNQPWZn0GVhqVBEthGWCg==", + "license": "MIT", "dependencies": { "colorette": "2.0.19", "commander": "^9.1.0", @@ -15757,16 +15698,14 @@ }, "node_modules/knex/node_modules/commander": { "version": "9.5.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", - "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "license": "MIT", "engines": { "node": "^12.20.0 || >=14" } }, "node_modules/knex/node_modules/debug": { "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -15781,16 +15720,14 @@ }, "node_modules/knex/node_modules/interpret": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", - "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "license": "MIT", "engines": { "node": ">= 0.10" } }, "node_modules/knex/node_modules/rechoir": { "version": "0.8.0", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", - "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", + "license": "MIT", "dependencies": { "resolve": "^1.20.0" }, @@ -15800,8 +15737,7 @@ }, "node_modules/knex/node_modules/resolve-from": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "license": "MIT", "engines": { "node": ">=8" } @@ -16084,6 +16020,7 @@ }, "node_modules/log-symbols": { "version": "4.1.0", + "dev": true, "license": "MIT", "dependencies": { "chalk": "^4.1.0", @@ -16098,6 +16035,7 @@ }, "node_modules/log-symbols/node_modules/ansi-styles": { "version": "4.3.0", + "dev": true, "license": "MIT", "dependencies": { "color-convert": "^2.0.1" @@ -16111,6 +16049,7 @@ }, "node_modules/log-symbols/node_modules/chalk": { "version": "4.1.2", + "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", @@ -16125,6 +16064,7 @@ }, "node_modules/log-symbols/node_modules/color-convert": { "version": "2.0.1", + "dev": true, "license": "MIT", "dependencies": { "color-name": "~1.1.4" @@ -16135,10 +16075,12 @@ }, "node_modules/log-symbols/node_modules/color-name": { "version": "1.1.4", + "dev": true, "license": "MIT" }, "node_modules/log-symbols/node_modules/supports-color": { "version": "7.2.0", + "dev": true, "license": "MIT", "dependencies": { "has-flag": "^4.0.0" @@ -16453,8 +16395,7 @@ }, "node_modules/mikro-orm": { "version": "5.6.16", - "resolved": "https://registry.npmjs.org/mikro-orm/-/mikro-orm-5.6.16.tgz", - "integrity": "sha512-HgG079qA5hWgGWlq9u3BjgE3ynGnDFsGRtvFhgo6W3Itkz46SsQ4oeQxRcAetd8mj/qM4SOLuy0k71pI6h0PkQ==", + "license": "MIT", "engines": { "node": ">= 14.0.0" } @@ -16488,6 +16429,7 @@ }, "node_modules/mimic-fn": { "version": "2.1.0", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -16742,8 +16684,7 @@ }, "node_modules/mongodb": { "version": "5.9.2", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.9.2.tgz", - "integrity": "sha512-H60HecKO4Bc+7dhOv4sJlgvenK4fQNqqUIlXxZYQNbfEWSALGAwGoyJd/0Qwk4TttFXUOHJ2ZJQe/52ScaUwtQ==", + "license": "Apache-2.0", "dependencies": { "bson": "^5.5.0", "mongodb-connection-string-url": "^2.6.0", @@ -16790,9 +16731,8 @@ }, "node_modules/mongodb-memory-server-global": { "version": "9.1.8", - "resolved": "https://registry.npmjs.org/mongodb-memory-server-global/-/mongodb-memory-server-global-9.1.8.tgz", - "integrity": "sha512-mmKCZNq1szkdo2ki3mx/MWAEPrBdO1aYNKDm1hPeTdUQjepdMPBVOgNl94Jw0QdElsHGTVV2wwY53A90eUuYpA==", "hasInstallScript": true, + "license": "MIT", "dependencies": { "mongodb-memory-server-core": "9.1.8", "tslib": "^2.6.2" @@ -16803,8 +16743,7 @@ }, "node_modules/mongodb-memory-server-global/node_modules/agent-base": { "version": "7.1.1", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", - "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", + "license": "MIT", "dependencies": { "debug": "^4.3.4" }, @@ -16814,8 +16753,7 @@ }, "node_modules/mongodb-memory-server-global/node_modules/camelcase": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "license": "MIT", "engines": { "node": ">=10" }, @@ -16825,8 +16763,7 @@ }, "node_modules/mongodb-memory-server-global/node_modules/debug": { "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -16841,8 +16778,7 @@ }, "node_modules/mongodb-memory-server-global/node_modules/https-proxy-agent": { "version": "7.0.4", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz", - "integrity": "sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==", + "license": "MIT", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -16853,8 +16789,7 @@ }, "node_modules/mongodb-memory-server-global/node_modules/mongodb-memory-server-core": { "version": "9.1.8", - "resolved": "https://registry.npmjs.org/mongodb-memory-server-core/-/mongodb-memory-server-core-9.1.8.tgz", - "integrity": "sha512-iCWwaP7De4lm1lRCUKB2ffUYr6GB0I/cj6fK0NV9dgwc9fA3xapHTTT/cPYRNx29M5gmAOSaOpUgjP7i2GZ/LQ==", + "license": "MIT", "dependencies": { "async-mutex": "^0.4.0", "camelcase": "^6.3.0", @@ -16875,8 +16810,7 @@ }, "node_modules/mongodb-memory-server-global/node_modules/tar-stream": { "version": "3.1.7", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", - "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", + "license": "MIT", "dependencies": { "b4a": "^1.6.4", "fast-fifo": "^1.2.0", @@ -16892,8 +16826,7 @@ }, "node_modules/mongodb/node_modules/bson": { "version": "5.5.1", - "resolved": "https://registry.npmjs.org/bson/-/bson-5.5.1.tgz", - "integrity": "sha512-ix0EwukN2EpC0SRWIj/7B5+A6uQMQy6KMREI9qQqvgpkV2frH63T0UDVd1SYedL6dNCmDBYB3QtXi4ISk9YT+g==", + "license": "Apache-2.0", "engines": { "node": ">=14.20.1" } @@ -17253,6 +17186,7 @@ }, "node_modules/mute-stream": { "version": "0.0.8", + "dev": true, "license": "ISC" }, "node_modules/mv": { @@ -18009,6 +17943,7 @@ }, "node_modules/onetime": { "version": "5.1.2", + "dev": true, "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" @@ -18078,6 +18013,7 @@ }, "node_modules/ora": { "version": "5.4.1", + "dev": true, "license": "MIT", "dependencies": { "bl": "^4.1.0", @@ -18099,6 +18035,7 @@ }, "node_modules/ora/node_modules/ansi-styles": { "version": "4.3.0", + "dev": true, "license": "MIT", "dependencies": { "color-convert": "^2.0.1" @@ -18112,6 +18049,7 @@ }, "node_modules/ora/node_modules/bl": { "version": "4.1.0", + "dev": true, "license": "MIT", "dependencies": { "buffer": "^5.5.0", @@ -18121,6 +18059,7 @@ }, "node_modules/ora/node_modules/buffer": { "version": "5.7.1", + "dev": true, "funding": [ { "type": "github", @@ -18143,6 +18082,7 @@ }, "node_modules/ora/node_modules/chalk": { "version": "4.1.2", + "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", @@ -18157,6 +18097,7 @@ }, "node_modules/ora/node_modules/color-convert": { "version": "2.0.1", + "dev": true, "license": "MIT", "dependencies": { "color-name": "~1.1.4" @@ -18167,10 +18108,12 @@ }, "node_modules/ora/node_modules/color-name": { "version": "1.1.4", + "dev": true, "license": "MIT" }, "node_modules/ora/node_modules/readable-stream": { "version": "3.6.0", + "dev": true, "license": "MIT", "dependencies": { "inherits": "^2.0.3", @@ -18183,6 +18126,7 @@ }, "node_modules/ora/node_modules/string_decoder": { "version": "1.3.0", + "dev": true, "license": "MIT", "dependencies": { "safe-buffer": "~5.2.0" @@ -18190,6 +18134,7 @@ }, "node_modules/ora/node_modules/supports-color": { "version": "7.2.0", + "dev": true, "license": "MIT", "dependencies": { "has-flag": "^4.0.0" @@ -18227,6 +18172,7 @@ }, "node_modules/os-tmpdir": { "version": "1.0.2", + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -18583,8 +18529,7 @@ }, "node_modules/pg-connection-string": { "version": "2.5.0", - "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.5.0.tgz", - "integrity": "sha512-r5o/V/ORTA6TmUnyWZR9nCj1klXCO2CEKNRlVuJptZe85QuhFayC7WeMic7ndayT5IRIR0S0xFxFi2ousartlQ==" + "license": "MIT" }, "node_modules/picocolors": { "version": "1.0.0", @@ -19383,8 +19328,7 @@ }, "node_modules/queue-tick": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", - "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==" + "license": "MIT" }, "node_modules/quote-stream": { "version": "1.0.2", @@ -19808,8 +19752,7 @@ }, "node_modules/require-main-filename": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + "license": "ISC" }, "node_modules/require-relative": { "version": "0.8.7", @@ -19883,6 +19826,7 @@ }, "node_modules/restore-cursor": { "version": "3.1.0", + "dev": true, "license": "MIT", "dependencies": { "onetime": "^5.1.0", @@ -20395,6 +20339,7 @@ }, "node_modules/run-async": { "version": "2.4.1", + "dev": true, "license": "MIT", "engines": { "node": ">=0.12.0" @@ -20496,8 +20441,7 @@ }, "node_modules/sanitize-html": { "version": "2.12.1", - "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.12.1.tgz", - "integrity": "sha512-Plh+JAn0UVDpBRP/xEjsk+xDCoOvMBwQUf/K+/cBAVuTbtX8bj2VB7S1sL1dssVpykqp0/KPSesHrqXtokVBpA==", + "license": "MIT", "dependencies": { "deepmerge": "^4.2.2", "escape-string-regexp": "^4.0.0", @@ -20509,8 +20453,7 @@ }, "node_modules/sanitize-html/node_modules/dom-serializer": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", - "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "license": "MIT", "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.2", @@ -20522,8 +20465,7 @@ }, "node_modules/sanitize-html/node_modules/domhandler": { "version": "5.0.3", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", - "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "license": "BSD-2-Clause", "dependencies": { "domelementtype": "^2.3.0" }, @@ -20536,8 +20478,7 @@ }, "node_modules/sanitize-html/node_modules/domutils": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", - "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", + "license": "BSD-2-Clause", "dependencies": { "dom-serializer": "^2.0.0", "domelementtype": "^2.3.0", @@ -20549,8 +20490,7 @@ }, "node_modules/sanitize-html/node_modules/entities": { "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "license": "BSD-2-Clause", "engines": { "node": ">=0.12" }, @@ -20560,8 +20500,6 @@ }, "node_modules/sanitize-html/node_modules/htmlparser2": { "version": "8.0.2", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", - "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", "funding": [ "https://github.com/fb55/htmlparser2?sponsor=1", { @@ -20569,6 +20507,7 @@ "url": "https://github.com/sponsors/fb55" } ], + "license": "MIT", "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", @@ -20932,6 +20871,7 @@ }, "node_modules/signal-exit": { "version": "3.0.7", + "dev": true, "license": "ISC" }, "node_modules/simple-oauth2": { @@ -21080,8 +21020,7 @@ }, "node_modules/socket.io": { "version": "4.7.5", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.7.5.tgz", - "integrity": "sha512-DmeAkF6cwM9jSfmp6Dr/5/mfMwb5Z5qRrSXLpo3Fq5SqyU8CMF15jIN4ZhfSwu35ksM1qmHZDQ/DK5XTccSTvA==", + "license": "MIT", "dependencies": { "accepts": "~1.3.4", "base64id": "~2.0.0", @@ -21097,8 +21036,7 @@ }, "node_modules/socket.io-adapter": { "version": "2.5.4", - "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.5.4.tgz", - "integrity": "sha512-wDNHGXGewWAjQPt3pyeYBtpWSq9cLE5UW1ZUPL/2eGK9jtse/FpXib7epSTsz0Q0m+6sg6Y4KtcFTlah1bdOVg==", + "license": "MIT", "dependencies": { "debug": "~4.3.4", "ws": "~8.11.0" @@ -21106,8 +21044,7 @@ }, "node_modules/socket.io-adapter/node_modules/debug": { "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -21122,8 +21059,7 @@ }, "node_modules/socket.io-adapter/node_modules/ws": { "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -21142,9 +21078,8 @@ }, "node_modules/socket.io-client": { "version": "4.7.5", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.5.tgz", - "integrity": "sha512-sJ/tqHOCe7Z50JCBCXrsY3I2k03iOiUe+tj1OmKeD2lXPiGH/RUCdTZFoqVyN7l1MnpIzPrGtLcijffmeouNlQ==", "dev": true, + "license": "MIT", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.2", @@ -21157,8 +21092,7 @@ }, "node_modules/socket.io-parser": { "version": "4.2.4", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", - "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", + "license": "MIT", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1" @@ -21295,8 +21229,7 @@ }, "node_modules/sqlstring": { "version": "2.3.3", - "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", - "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -21506,8 +21439,7 @@ }, "node_modules/streamx": { "version": "2.16.1", - "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.16.1.tgz", - "integrity": "sha512-m9QYj6WygWyWa3H1YY69amr4nVgy61xfjys7xO7kviL5rfIEc2naf+ewFiOA+aEJD7y0JO3h2GoiUv4TDwEGzQ==", + "license": "MIT", "dependencies": { "fast-fifo": "^1.1.0", "queue-tick": "^1.0.1" @@ -21946,8 +21878,7 @@ }, "node_modules/tarn": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/tarn/-/tarn-3.0.2.tgz", - "integrity": "sha512-51LAVKUSZSVfI05vjPESNc5vwqqZpbXCsU+/+wxlOrUjk2SnFTt97v9ZgQrD4YmxYW1Px6w2KjaDitCfkvgxMQ==", + "license": "MIT", "engines": { "node": ">=8.0.0" } @@ -22116,8 +22047,7 @@ }, "node_modules/tildify": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/tildify/-/tildify-2.0.0.tgz", - "integrity": "sha512-Cc+OraorugtXNfs50hU9KS369rFXCfgGLpfCfvlc+Ud5u6VWmUQsOAa9HbTvheQdYnrdJqqv1e5oIqXppMYnSw==", + "license": "MIT", "engines": { "node": ">=8" } @@ -22152,6 +22082,7 @@ }, "node_modules/tmp": { "version": "0.0.33", + "dev": true, "license": "MIT", "dependencies": { "os-tmpdir": "~1.0.2" @@ -22778,6 +22709,7 @@ }, "node_modules/type-fest": { "version": "0.21.3", + "dev": true, "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" @@ -23334,6 +23266,7 @@ }, "node_modules/wcwidth": { "version": "1.0.1", + "dev": true, "license": "MIT", "dependencies": { "defaults": "^1.0.3" @@ -23491,8 +23424,7 @@ }, "node_modules/which-module": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", - "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" + "license": "ISC" }, "node_modules/which-typed-array": { "version": "1.1.13", @@ -23756,8 +23688,7 @@ }, "node_modules/ws": { "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", + "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -23823,8 +23754,6 @@ }, "node_modules/xmlhttprequest-ssl": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz", - "integrity": "sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==", "dev": true, "engines": { "node": ">=0.4.0" From 127eb4a2373a32445c090dd78ca60a72afc6e7e4 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Fri, 7 Jun 2024 13:35:46 +0200 Subject: [PATCH 10/40] BC-6453 - update API title and description for swagger to use Schulcloud-Verbund-Software instead of HPI Schul-Cloud --- src/swagger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/swagger.js b/src/swagger.js index c81cc1af3c0..9f96009881f 100644 --- a/src/swagger.js +++ b/src/swagger.js @@ -11,8 +11,8 @@ module.exports = function swaggerSetup(app) { security: [{ jwtBearer: [] }], schemes: ['http', 'https'], info: { - title: 'HPI Schul-Cloud API', - description: 'This is the HPI Schul-Cloud API.', + title: 'Schulcloud-Verbund-Software API', + description: 'This is the Schulcloud-Verbund-Software API.', termsOfServiceUrl: 'https://github.com/hpi-schul-cloud/schulcloud-server/blob/master/LICENSE', contact: { name: 'support', From 499febbd8592cb805a2f22ef19d9876e60d90640 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Fri, 7 Jun 2024 13:36:33 +0200 Subject: [PATCH 11/40] BC-6453 - remove redundant npm package `@openapitools/openapi-generator-cli` --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 39fed51defd..2b67a87f720 100644 --- a/package.json +++ b/package.json @@ -157,7 +157,6 @@ "@nestjs/platform-ws": "^10.3.0", "@nestjs/swagger": "^7.1.10", "@nestjs/websockets": "^10.3.7", - "@openapitools/openapi-generator-cli": "^2.13.4", "@socket.io/mongo-adapter": "^0.3.2", "@types/gm": "^1.25.1", "@types/ldapjs": "^2.2.5", From c8eca1521b0965475491ff09a465c6bda72fa1fe Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Fri, 7 Jun 2024 13:40:01 +0200 Subject: [PATCH 12/40] BC-6453 - revert `package-lock.json` to `main` --- package-lock.json | 385 +++++++++++++++++++++++++++++----------------- 1 file changed, 246 insertions(+), 139 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4a56211fc78..0d4bcc30648 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,7 +41,6 @@ "@nestjs/platform-ws": "^10.3.0", "@nestjs/swagger": "^7.1.10", "@nestjs/websockets": "^10.3.7", - "@openapitools/openapi-generator-cli": "^2.13.4", "@socket.io/mongo-adapter": "^0.3.2", "@types/gm": "^1.25.1", "@types/ldapjs": "^2.2.5", @@ -670,33 +669,13 @@ "@aws-sdk/xml-builder": "3.310.0", "@smithy/protocol-http": "^1.0.1", "@smithy/types": "^1.0.0", - "fast-xml-parser": "4.2.4", + "fast-xml-parser": "4.2.5", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/fast-xml-parser": { - "version": "4.2.4", - "funding": [ - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }, - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "license": "MIT", - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, "node_modules/@aws-sdk/client-sso": { "version": "3.352.0", "license": "Apache-2.0", @@ -778,33 +757,13 @@ "@aws-sdk/util-utf8": "3.310.0", "@smithy/protocol-http": "^1.0.1", "@smithy/types": "^1.0.0", - "fast-xml-parser": "4.2.4", + "fast-xml-parser": "4.2.5", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-sts/node_modules/fast-xml-parser": { - "version": "4.2.4", - "funding": [ - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }, - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "license": "MIT", - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, "node_modules/@aws-sdk/config-resolver": { "version": "3.347.0", "license": "Apache-2.0", @@ -2407,6 +2366,21 @@ "kuler": "^2.0.0" } }, + "node_modules/@esbuild/win32-x64": { + "version": "0.17.10", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@eslint/eslintrc": { "version": "1.4.0", "dev": true, @@ -3998,7 +3972,8 @@ }, "node_modules/@mikro-orm/cli": { "version": "5.6.16", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@mikro-orm/cli/-/cli-5.6.16.tgz", + "integrity": "sha512-ebYoSEf2fr4j2W6a/3zUW+Umi9abj6qOwuxSuKcCk6Uj9zJaC86urypHmnEbrMED0VbYeU9xX+rRpy3OdvaIPQ==", "dependencies": { "@jercle/yargonaut": "1.1.5", "@mikro-orm/core": "~5.6.16", @@ -4061,7 +4036,8 @@ }, "node_modules/@mikro-orm/cli/node_modules/ansi-styles": { "version": "4.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { "color-convert": "^2.0.1" }, @@ -4074,7 +4050,8 @@ }, "node_modules/@mikro-orm/cli/node_modules/cliui": { "version": "6.0.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", @@ -4083,7 +4060,8 @@ }, "node_modules/@mikro-orm/cli/node_modules/color-convert": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { "color-name": "~1.1.4" }, @@ -4093,7 +4071,8 @@ }, "node_modules/@mikro-orm/cli/node_modules/color-name": { "version": "1.1.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/@mikro-orm/cli/node_modules/fs-extra": { "version": "11.1.1", @@ -4109,7 +4088,8 @@ }, "node_modules/@mikro-orm/cli/node_modules/wrap-ansi": { "version": "6.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -4121,11 +4101,13 @@ }, "node_modules/@mikro-orm/cli/node_modules/y18n": { "version": "4.0.3", - "license": "ISC" + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" }, "node_modules/@mikro-orm/cli/node_modules/yargs": { "version": "15.4.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dependencies": { "cliui": "^6.0.0", "decamelize": "^1.2.0", @@ -4145,7 +4127,8 @@ }, "node_modules/@mikro-orm/cli/node_modules/yargs-parser": { "version": "18.1.3", - "license": "ISC", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "dependencies": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" @@ -4156,7 +4139,8 @@ }, "node_modules/@mikro-orm/core": { "version": "5.6.16", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@mikro-orm/core/-/core-5.6.16.tgz", + "integrity": "sha512-JTrVS4Rb5uVKbf/d26Ni/YgJjMyoHapPEUklr4H+4c+6xlRXbfpPDN6o4ESWNXTc4ubwRGLMI1haMXg0bh6uVQ==", "dependencies": { "acorn-loose": "8.3.0", "acorn-walk": "8.2.0", @@ -4242,7 +4226,8 @@ }, "node_modules/@mikro-orm/knex": { "version": "5.6.16", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@mikro-orm/knex/-/knex-5.6.16.tgz", + "integrity": "sha512-uPrRUmRBOsjj4Px7h4vgikitlJsnnIrJRrhsD1zKiGiK3KZGdSkQOrpdwTKdcWSo7bUiJxPabM8AzITlrJBBqQ==", "dependencies": { "fs-extra": "11.1.1", "knex": "2.4.2", @@ -4291,7 +4276,8 @@ }, "node_modules/@mikro-orm/knex/node_modules/fs-extra": { "version": "11.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", + "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", @@ -4303,7 +4289,8 @@ }, "node_modules/@mikro-orm/migrations-mongodb": { "version": "5.6.16", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@mikro-orm/migrations-mongodb/-/migrations-mongodb-5.6.16.tgz", + "integrity": "sha512-c1/sKAvX2WZH/Wiq+CAfuB4Fv0A1rw9vslkPEB043/Kpvb3fn4lbV3/2O/hlaH4juzvfDC9kF+o72zQ69uu05A==", "dependencies": { "@mikro-orm/mongodb": "~5.6.16", "fs-extra": "11.1.1", @@ -4331,7 +4318,8 @@ }, "node_modules/@mikro-orm/migrations-mongodb/node_modules/mongodb": { "version": "4.13.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.13.0.tgz", + "integrity": "sha512-+taZ/bV8d1pYuHL4U+gSwkhmDrwkWbH1l4aah4YpmpscMwgFBkufIKxgP/G7m87/NUuQzc2Z75ZTI7ZOyqZLbw==", "dependencies": { "bson": "^4.7.0", "mongodb-connection-string-url": "^2.5.4", @@ -4347,7 +4335,8 @@ }, "node_modules/@mikro-orm/mongodb": { "version": "5.6.16", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@mikro-orm/mongodb/-/mongodb-5.6.16.tgz", + "integrity": "sha512-MH7B4+OkQedLkv+ecTDRD41La8255LfpCuuwHNOnE8+XjF0tCXiD1XO4Cpcau98ubLR959HRs88OtulQwzgCQw==", "dependencies": { "bson": "^4.7.0", "mongodb": "4.13.0" @@ -4379,7 +4368,8 @@ }, "node_modules/@mikro-orm/mongodb/node_modules/mongodb": { "version": "4.13.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.13.0.tgz", + "integrity": "sha512-+taZ/bV8d1pYuHL4U+gSwkhmDrwkWbH1l4aah4YpmpscMwgFBkufIKxgP/G7m87/NUuQzc2Z75ZTI7ZOyqZLbw==", "dependencies": { "bson": "^4.7.0", "mongodb-connection-string-url": "^2.5.4", @@ -4415,7 +4405,8 @@ }, "node_modules/@nestjs/axios": { "version": "3.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@nestjs/axios/-/axios-3.0.2.tgz", + "integrity": "sha512-Z6GuOUdNQjP7FX+OuV2Ybyamse+/e0BFdTWBX5JxpBDKA+YkdLynDgG6HTF04zy6e9zPa19UX0WA2VDoehwhXQ==", "peerDependencies": { "@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0", "axios": "^1.3.1", @@ -4660,7 +4651,8 @@ }, "node_modules/@nestjs/common": { "version": "10.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-10.3.0.tgz", + "integrity": "sha512-DGv34UHsZBxCM3H5QGE2XE/+oLJzz5+714JQjBhjD9VccFlQs3LRxo/epso4l7nJIiNlZkPyIUC8WzfU/5RTsQ==", "dependencies": { "iterare": "1.2.1", "tslib": "2.6.2", @@ -4718,8 +4710,9 @@ }, "node_modules/@nestjs/core": { "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-10.3.0.tgz", + "integrity": "sha512-N06P5ncknW/Pm8bj964WvLIZn2gNhHliCBoAO1LeBvNImYkecqKcrmLbY49Fa1rmMfEM3MuBHeDys3edeuYAOA==", "hasInstallScript": true, - "license": "MIT", "dependencies": { "@nuxtjs/opencollective": "0.3.2", "fast-safe-stringify": "2.1.1", @@ -4754,7 +4747,8 @@ }, "node_modules/@nestjs/cqrs": { "version": "10.2.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@nestjs/cqrs/-/cqrs-10.2.7.tgz", + "integrity": "sha512-RXhgQOfuT+KzvkueR4S++SB6+6333PL71pOtCzbJAAU/DY3KY56yTCncWRsIdorKfDX5AEwTiQHHJi69XJWdkA==", "dependencies": { "uuid": "9.0.1" }, @@ -4767,11 +4761,12 @@ }, "node_modules/@nestjs/cqrs/node_modules/uuid": { "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], - "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } @@ -4890,7 +4885,8 @@ }, "node_modules/@nestjs/platform-socket.io": { "version": "10.3.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@nestjs/platform-socket.io/-/platform-socket.io-10.3.7.tgz", + "integrity": "sha512-T9VbVgEUnbid/RiywN9/8YQ8pAGDP++0nX73l4kIWeDWkz5DEh4aLB7O/JvLA3/xRHdjTZ4RiRZazwqSWi1Sog==", "dependencies": { "socket.io": "4.7.5", "tslib": "2.6.2" @@ -5074,7 +5070,8 @@ }, "node_modules/@nestjs/websockets": { "version": "10.3.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@nestjs/websockets/-/websockets-10.3.7.tgz", + "integrity": "sha512-iYdsWiRNPUy0XzPoW44bx2MW1griuraTr5fNhoe2rUSNO0mEW1aeXp4v56KeZDLAss31WbeckC5P3N223Fys5g==", "dependencies": { "iterare": "1.2.1", "object-hash": "3.0.0", @@ -5191,9 +5188,10 @@ }, "node_modules/@openapitools/openapi-generator-cli": { "version": "2.13.4", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.4.tgz", + "integrity": "sha512-4JKyrk55ohQK2FcuZbPdNvxdyXD14jjOIvE8hYjJ+E1cHbRbfXQXbYnjTODFE52Gx8eAxz8C9icuhDYDLn7nww==", "dev": true, "hasInstallScript": true, - "license": "Apache-2.0", "dependencies": { "@nestjs/axios": "3.0.2", "@nestjs/common": "10.3.0", @@ -5227,8 +5225,9 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/agent-base": { "version": "7.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", + "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", "dev": true, - "license": "MIT", "dependencies": { "debug": "^4.3.4" }, @@ -5238,8 +5237,9 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/ansi-styles": { "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -5252,8 +5252,9 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/chalk": { "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -5267,8 +5268,9 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/color-convert": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -5278,13 +5280,15 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/color-name": { "version": "1.1.4", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, "node_modules/@openapitools/openapi-generator-cli/node_modules/debug": { "version": "4.3.5", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", + "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", "dev": true, - "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -5299,8 +5303,10 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/glob": { "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -5318,8 +5324,9 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/https-proxy-agent": { "version": "7.0.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz", + "integrity": "sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==", "dev": true, - "license": "MIT", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -5330,8 +5337,9 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/inquirer": { "version": "8.2.6", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.6.tgz", + "integrity": "sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==", "dev": true, - "license": "MIT", "dependencies": { "ansi-escapes": "^4.2.1", "chalk": "^4.1.1", @@ -5355,8 +5363,9 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/supports-color": { "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -5366,8 +5375,9 @@ }, "node_modules/@openapitools/openapi-generator-cli/node_modules/wrap-ansi": { "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -5548,11 +5558,13 @@ }, "node_modules/@socket.io/component-emitter": { "version": "3.1.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", + "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==" }, "node_modules/@socket.io/mongo-adapter": { "version": "0.3.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@socket.io/mongo-adapter/-/mongo-adapter-0.3.2.tgz", + "integrity": "sha512-PcVlNuMJgAwDC+iVXmEDvmSik3TqzLqeBJz9uj18+FGApa5WEc35LgEnU0jCZPqZjvPQ2/i6sB/sAMsr58rHfA==", "dependencies": { "debug": "~4.3.1", "mongodb": "*" @@ -7337,7 +7349,8 @@ }, "node_modules/axios": { "version": "1.6.8", - "license": "MIT", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", + "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -7362,7 +7375,8 @@ }, "node_modules/b4a": { "version": "1.6.6", - "license": "Apache-2.0" + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.6.tgz", + "integrity": "sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==" }, "node_modules/babel-plugin-istanbul": { "version": "6.1.1", @@ -7417,7 +7431,8 @@ }, "node_modules/bare-events": { "version": "2.2.2", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.2.2.tgz", + "integrity": "sha512-h7z00dWdG0PYOQEvChhOSWvOfkIKsdZGkWr083FgN/HyoQuebSew/cgirYqh9SCuy/hRvxc5Vy6Fw8xAmYHLkQ==", "optional": true }, "node_modules/base64-js": { @@ -7440,7 +7455,8 @@ }, "node_modules/base64id": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", + "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", "engines": { "node": "^4.5.0 || >= 5.9" } @@ -7733,7 +7749,8 @@ }, "node_modules/bson": { "version": "4.7.2", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/bson/-/bson-4.7.2.tgz", + "integrity": "sha512-Ry9wCtIZ5kGqkJoi6aD8KjxFZEx78guTQDnpXWiNthsxzrxAK/i8E6pCHAIZTbaEFWcOCvbecMukfK7XUvyLpQ==", "dependencies": { "buffer": "^5.6.0" }, @@ -7743,6 +7760,8 @@ }, "node_modules/bson/node_modules/buffer": { "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "funding": [ { "type": "github", @@ -7757,7 +7776,6 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" @@ -8652,7 +8670,8 @@ }, "node_modules/colorette": { "version": "2.0.19", - "license": "MIT" + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", + "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==" }, "node_modules/colorspace": { "version": "1.1.4", @@ -8718,8 +8737,9 @@ }, "node_modules/compare-versions": { "version": "4.1.4", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-4.1.4.tgz", + "integrity": "sha512-FemMreK9xNyL8gQevsdRMrvO4lFCkQP7qbuktn1q8ndcNk1+0mz7lgE7b/sNvbhVgY4w6tMN1FDp6aADjqw2rw==", + "dev": true }, "node_modules/component-emitter": { "version": "1.3.0", @@ -8954,8 +8974,9 @@ }, "node_modules/console.table": { "version": "0.10.0", + "resolved": "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz", + "integrity": "sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g==", "dev": true, - "license": "MIT", "dependencies": { "easy-table": "1.1.0" }, @@ -9714,8 +9735,9 @@ }, "node_modules/easy-table": { "version": "1.1.0", + "resolved": "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz", + "integrity": "sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA==", "dev": true, - "license": "MIT", "optionalDependencies": { "wcwidth": ">=1.0.1" } @@ -9781,7 +9803,8 @@ }, "node_modules/engine.io": { "version": "6.5.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.5.4.tgz", + "integrity": "sha512-KdVSDKhVKyOi+r5uEabrDLZw2qXStVvCsEB/LN3mw4WFi6Gx50jTyuxYVCwAAC0U46FdnzP/ScKRBTXb/NiEOg==", "dependencies": { "@types/cookie": "^0.4.1", "@types/cors": "^2.8.12", @@ -9800,8 +9823,9 @@ }, "node_modules/engine.io-client": { "version": "6.5.3", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.5.3.tgz", + "integrity": "sha512-9Z0qLB0NIisTRt1DZ/8U2k12RJn8yls/nXMZLn+/N8hANT3TcYjKFKcwbw5zFQiN4NTde3TSY9zb79e1ij6j9Q==", "dev": true, - "license": "MIT", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1", @@ -9812,8 +9836,9 @@ }, "node_modules/engine.io-client/node_modules/ws": { "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -9832,21 +9857,24 @@ }, "node_modules/engine.io-parser": { "version": "5.2.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.2.tgz", + "integrity": "sha512-RcyUFKA93/CXH20l4SoVvzZfrSDMOTUS3bWVpTt2FuFP+XYrL8i8oonHP7WInRyVHXh0n/ORtoeiE1os+8qkSw==", "engines": { "node": ">=10.0.0" } }, "node_modules/engine.io/node_modules/cookie": { "version": "0.4.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", "engines": { "node": ">= 0.6" } }, "node_modules/engine.io/node_modules/ws": { "version": "8.11.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", "engines": { "node": ">=10.0.0" }, @@ -10185,6 +10213,21 @@ "node": ">=8.17.0" } }, + "node_modules/esbuild-windows-64": { + "version": "0.14.54", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/escalade": { "version": "3.1.1", "license": "MIT", @@ -10922,7 +10965,8 @@ }, "node_modules/esm": { "version": "3.2.25", - "license": "MIT", + "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", + "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", "engines": { "node": ">=6" } @@ -11405,7 +11449,8 @@ }, "node_modules/fast-fifo": { "version": "1.3.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==" }, "node_modules/fast-glob": { "version": "3.2.11", @@ -11433,6 +11478,27 @@ "version": "2.1.1", "license": "MIT" }, + "node_modules/fast-xml-parser": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", + "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", + "funding": [ + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + }, + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "dependencies": { + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, "node_modules/fastestsmallesttextencoderdecoder": { "version": "1.0.22", "license": "CC0-1.0", @@ -11670,13 +11736,14 @@ }, "node_modules/follow-redirects": { "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "funding": [ { "type": "individual", "url": "https://github.com/sponsors/RubenVerborgh" } ], - "license": "MIT", "engines": { "node": ">=4.0" }, @@ -12086,7 +12153,8 @@ }, "node_modules/getopts": { "version": "2.3.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/getopts/-/getopts-2.3.0.tgz", + "integrity": "sha512-5eDf9fuSXwxBL6q5HX+dhDj+dslFGWzU5thZ9kNKUkcPtaPdatmUFKwHFrLb/uf/WpA4BHET+AX3Scl56cAjpA==" }, "node_modules/getpass": { "version": "0.1.7", @@ -15649,7 +15717,8 @@ }, "node_modules/knex": { "version": "2.4.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/knex/-/knex-2.4.2.tgz", + "integrity": "sha512-tMI1M7a+xwHhPxjbl/H9K1kHX+VncEYcvCx5K00M16bWvpYPKAZd6QrCu68PtHAdIZNQPWZn0GVhqVBEthGWCg==", "dependencies": { "colorette": "2.0.19", "commander": "^9.1.0", @@ -15698,14 +15767,16 @@ }, "node_modules/knex/node_modules/commander": { "version": "9.5.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", "engines": { "node": "^12.20.0 || >=14" } }, "node_modules/knex/node_modules/debug": { "version": "4.3.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dependencies": { "ms": "2.1.2" }, @@ -15720,14 +15791,16 @@ }, "node_modules/knex/node_modules/interpret": { "version": "2.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", "engines": { "node": ">= 0.10" } }, "node_modules/knex/node_modules/rechoir": { "version": "0.8.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", + "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", "dependencies": { "resolve": "^1.20.0" }, @@ -15737,7 +15810,8 @@ }, "node_modules/knex/node_modules/resolve-from": { "version": "5.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "engines": { "node": ">=8" } @@ -16395,7 +16469,8 @@ }, "node_modules/mikro-orm": { "version": "5.6.16", - "license": "MIT", + "resolved": "https://registry.npmjs.org/mikro-orm/-/mikro-orm-5.6.16.tgz", + "integrity": "sha512-HgG079qA5hWgGWlq9u3BjgE3ynGnDFsGRtvFhgo6W3Itkz46SsQ4oeQxRcAetd8mj/qM4SOLuy0k71pI6h0PkQ==", "engines": { "node": ">= 14.0.0" } @@ -16684,7 +16759,8 @@ }, "node_modules/mongodb": { "version": "5.9.2", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.9.2.tgz", + "integrity": "sha512-H60HecKO4Bc+7dhOv4sJlgvenK4fQNqqUIlXxZYQNbfEWSALGAwGoyJd/0Qwk4TttFXUOHJ2ZJQe/52ScaUwtQ==", "dependencies": { "bson": "^5.5.0", "mongodb-connection-string-url": "^2.6.0", @@ -16731,8 +16807,9 @@ }, "node_modules/mongodb-memory-server-global": { "version": "9.1.8", + "resolved": "https://registry.npmjs.org/mongodb-memory-server-global/-/mongodb-memory-server-global-9.1.8.tgz", + "integrity": "sha512-mmKCZNq1szkdo2ki3mx/MWAEPrBdO1aYNKDm1hPeTdUQjepdMPBVOgNl94Jw0QdElsHGTVV2wwY53A90eUuYpA==", "hasInstallScript": true, - "license": "MIT", "dependencies": { "mongodb-memory-server-core": "9.1.8", "tslib": "^2.6.2" @@ -16743,7 +16820,8 @@ }, "node_modules/mongodb-memory-server-global/node_modules/agent-base": { "version": "7.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", + "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", "dependencies": { "debug": "^4.3.4" }, @@ -16753,7 +16831,8 @@ }, "node_modules/mongodb-memory-server-global/node_modules/camelcase": { "version": "6.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "engines": { "node": ">=10" }, @@ -16763,7 +16842,8 @@ }, "node_modules/mongodb-memory-server-global/node_modules/debug": { "version": "4.3.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dependencies": { "ms": "2.1.2" }, @@ -16778,7 +16858,8 @@ }, "node_modules/mongodb-memory-server-global/node_modules/https-proxy-agent": { "version": "7.0.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz", + "integrity": "sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -16789,7 +16870,8 @@ }, "node_modules/mongodb-memory-server-global/node_modules/mongodb-memory-server-core": { "version": "9.1.8", - "license": "MIT", + "resolved": "https://registry.npmjs.org/mongodb-memory-server-core/-/mongodb-memory-server-core-9.1.8.tgz", + "integrity": "sha512-iCWwaP7De4lm1lRCUKB2ffUYr6GB0I/cj6fK0NV9dgwc9fA3xapHTTT/cPYRNx29M5gmAOSaOpUgjP7i2GZ/LQ==", "dependencies": { "async-mutex": "^0.4.0", "camelcase": "^6.3.0", @@ -16810,7 +16892,8 @@ }, "node_modules/mongodb-memory-server-global/node_modules/tar-stream": { "version": "3.1.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", + "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", "dependencies": { "b4a": "^1.6.4", "fast-fifo": "^1.2.0", @@ -16826,7 +16909,8 @@ }, "node_modules/mongodb/node_modules/bson": { "version": "5.5.1", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/bson/-/bson-5.5.1.tgz", + "integrity": "sha512-ix0EwukN2EpC0SRWIj/7B5+A6uQMQy6KMREI9qQqvgpkV2frH63T0UDVd1SYedL6dNCmDBYB3QtXi4ISk9YT+g==", "engines": { "node": ">=14.20.1" } @@ -18529,7 +18613,8 @@ }, "node_modules/pg-connection-string": { "version": "2.5.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.5.0.tgz", + "integrity": "sha512-r5o/V/ORTA6TmUnyWZR9nCj1klXCO2CEKNRlVuJptZe85QuhFayC7WeMic7ndayT5IRIR0S0xFxFi2ousartlQ==" }, "node_modules/picocolors": { "version": "1.0.0", @@ -19328,7 +19413,8 @@ }, "node_modules/queue-tick": { "version": "1.0.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", + "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==" }, "node_modules/quote-stream": { "version": "1.0.2", @@ -19752,7 +19838,8 @@ }, "node_modules/require-main-filename": { "version": "2.0.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" }, "node_modules/require-relative": { "version": "0.8.7", @@ -20441,7 +20528,8 @@ }, "node_modules/sanitize-html": { "version": "2.12.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.12.1.tgz", + "integrity": "sha512-Plh+JAn0UVDpBRP/xEjsk+xDCoOvMBwQUf/K+/cBAVuTbtX8bj2VB7S1sL1dssVpykqp0/KPSesHrqXtokVBpA==", "dependencies": { "deepmerge": "^4.2.2", "escape-string-regexp": "^4.0.0", @@ -20453,7 +20541,8 @@ }, "node_modules/sanitize-html/node_modules/dom-serializer": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.2", @@ -20465,7 +20554,8 @@ }, "node_modules/sanitize-html/node_modules/domhandler": { "version": "5.0.3", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", "dependencies": { "domelementtype": "^2.3.0" }, @@ -20478,7 +20568,8 @@ }, "node_modules/sanitize-html/node_modules/domutils": { "version": "3.1.0", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", + "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", "dependencies": { "dom-serializer": "^2.0.0", "domelementtype": "^2.3.0", @@ -20490,7 +20581,8 @@ }, "node_modules/sanitize-html/node_modules/entities": { "version": "4.5.0", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", "engines": { "node": ">=0.12" }, @@ -20500,6 +20592,8 @@ }, "node_modules/sanitize-html/node_modules/htmlparser2": { "version": "8.0.2", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", + "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", "funding": [ "https://github.com/fb55/htmlparser2?sponsor=1", { @@ -20507,7 +20601,6 @@ "url": "https://github.com/sponsors/fb55" } ], - "license": "MIT", "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", @@ -21020,7 +21113,8 @@ }, "node_modules/socket.io": { "version": "4.7.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.7.5.tgz", + "integrity": "sha512-DmeAkF6cwM9jSfmp6Dr/5/mfMwb5Z5qRrSXLpo3Fq5SqyU8CMF15jIN4ZhfSwu35ksM1qmHZDQ/DK5XTccSTvA==", "dependencies": { "accepts": "~1.3.4", "base64id": "~2.0.0", @@ -21036,7 +21130,8 @@ }, "node_modules/socket.io-adapter": { "version": "2.5.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.5.4.tgz", + "integrity": "sha512-wDNHGXGewWAjQPt3pyeYBtpWSq9cLE5UW1ZUPL/2eGK9jtse/FpXib7epSTsz0Q0m+6sg6Y4KtcFTlah1bdOVg==", "dependencies": { "debug": "~4.3.4", "ws": "~8.11.0" @@ -21044,7 +21139,8 @@ }, "node_modules/socket.io-adapter/node_modules/debug": { "version": "4.3.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dependencies": { "ms": "2.1.2" }, @@ -21059,7 +21155,8 @@ }, "node_modules/socket.io-adapter/node_modules/ws": { "version": "8.11.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", "engines": { "node": ">=10.0.0" }, @@ -21078,8 +21175,9 @@ }, "node_modules/socket.io-client": { "version": "4.7.5", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.5.tgz", + "integrity": "sha512-sJ/tqHOCe7Z50JCBCXrsY3I2k03iOiUe+tj1OmKeD2lXPiGH/RUCdTZFoqVyN7l1MnpIzPrGtLcijffmeouNlQ==", "dev": true, - "license": "MIT", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.2", @@ -21092,7 +21190,8 @@ }, "node_modules/socket.io-parser": { "version": "4.2.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1" @@ -21229,7 +21328,8 @@ }, "node_modules/sqlstring": { "version": "2.3.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", + "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", "engines": { "node": ">= 0.6" } @@ -21439,7 +21539,8 @@ }, "node_modules/streamx": { "version": "2.16.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.16.1.tgz", + "integrity": "sha512-m9QYj6WygWyWa3H1YY69amr4nVgy61xfjys7xO7kviL5rfIEc2naf+ewFiOA+aEJD7y0JO3h2GoiUv4TDwEGzQ==", "dependencies": { "fast-fifo": "^1.1.0", "queue-tick": "^1.0.1" @@ -21878,7 +21979,8 @@ }, "node_modules/tarn": { "version": "3.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/tarn/-/tarn-3.0.2.tgz", + "integrity": "sha512-51LAVKUSZSVfI05vjPESNc5vwqqZpbXCsU+/+wxlOrUjk2SnFTt97v9ZgQrD4YmxYW1Px6w2KjaDitCfkvgxMQ==", "engines": { "node": ">=8.0.0" } @@ -22047,7 +22149,8 @@ }, "node_modules/tildify": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/tildify/-/tildify-2.0.0.tgz", + "integrity": "sha512-Cc+OraorugtXNfs50hU9KS369rFXCfgGLpfCfvlc+Ud5u6VWmUQsOAa9HbTvheQdYnrdJqqv1e5oIqXppMYnSw==", "engines": { "node": ">=8" } @@ -23424,7 +23527,8 @@ }, "node_modules/which-module": { "version": "2.0.1", - "license": "ISC" + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" }, "node_modules/which-typed-array": { "version": "1.1.13", @@ -23688,7 +23792,8 @@ }, "node_modules/ws": { "version": "8.16.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", + "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", "engines": { "node": ">=10.0.0" }, @@ -23754,6 +23859,8 @@ }, "node_modules/xmlhttprequest-ssl": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz", + "integrity": "sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==", "dev": true, "engines": { "node": ">=0.4.0" From c43f99f2c9eb5a4c4c2fc85c887be5848ef793ae Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Fri, 7 Jun 2024 13:52:32 +0200 Subject: [PATCH 13/40] BC-6453 - apply renaming of `HPI Schul-Cloud` to `Schulcloud-Verbund-Software` also for NestJS --- .../authorization-client/authorization-api-client/api.ts | 4 ++-- .../authorization-api-client/api/authorization-api.ts | 4 ++-- .../authorization-client/authorization-api-client/base.ts | 4 ++-- .../authorization-client/authorization-api-client/common.ts | 4 ++-- .../authorization-api-client/configuration.ts | 4 ++-- .../authorization-client/authorization-api-client/index.ts | 4 ++-- .../authorization-api-client/models/action.ts | 4 ++-- .../models/authorization-body-params.ts | 4 ++-- .../models/authorization-context-params.ts | 4 ++-- .../authorization-api-client/models/authorized-reponse.ts | 4 ++-- apps/server/src/shared/controller/swagger.spec.ts | 6 +++--- apps/server/src/shared/controller/swagger.ts | 4 ++-- 12 files changed, 25 insertions(+), 25 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/api.ts b/apps/server/src/infra/authorization-client/authorization-api-client/api.ts index a9da9347c42..fc2c3721af2 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/api.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/api.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * Schulcloud-Verbund-Software Server API + * This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1. * * The version of the OpenAPI document: 3.0 * diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/api/authorization-api.ts b/apps/server/src/infra/authorization-client/authorization-api-client/api/authorization-api.ts index adf2db910e7..73e22786fca 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/api/authorization-api.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/api/authorization-api.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * Schulcloud-Verbund-Software Server API + * This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1. * * The version of the OpenAPI document: 3.0 * diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/base.ts b/apps/server/src/infra/authorization-client/authorization-api-client/base.ts index a30fff92848..5bcf014a72f 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/base.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/base.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * Schulcloud-Verbund-Software Server API + * This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1. * * The version of the OpenAPI document: 3.0 * diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/common.ts b/apps/server/src/infra/authorization-client/authorization-api-client/common.ts index ce83449d1c9..6c119efb60d 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/common.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/common.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * Schulcloud-Verbund-Software Server API + * This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1. * * The version of the OpenAPI document: 3.0 * diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/configuration.ts b/apps/server/src/infra/authorization-client/authorization-api-client/configuration.ts index 768d04811a2..8c97d307cf4 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/configuration.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/configuration.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * Schulcloud-Verbund-Software Server API + * This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1. * * The version of the OpenAPI document: 3.0 * diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/index.ts b/apps/server/src/infra/authorization-client/authorization-api-client/index.ts index 9ba67e6bce2..8b762df664e 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/index.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/index.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * Schulcloud-Verbund-Software Server API + * This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1. * * The version of the OpenAPI document: 3.0 * diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/action.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/action.ts index 7c03adfc6a2..c74334d322b 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/action.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/action.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * Schulcloud-Verbund-Software Server API + * This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1. * * The version of the OpenAPI document: 3.0 * diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-body-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-body-params.ts index 806b7999505..1bf892fbe0f 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-body-params.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-body-params.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * Schulcloud-Verbund-Software Server API + * This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1. * * The version of the OpenAPI document: 3.0 * diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-context-params.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-context-params.ts index c4b8d3b77ad..055adfae85a 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-context-params.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/authorization-context-params.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * Schulcloud-Verbund-Software Server API + * This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1. * * The version of the OpenAPI document: 3.0 * diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/models/authorized-reponse.ts b/apps/server/src/infra/authorization-client/authorization-api-client/models/authorized-reponse.ts index 2b764e092bc..b69c757a07a 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/models/authorized-reponse.ts +++ b/apps/server/src/infra/authorization-client/authorization-api-client/models/authorized-reponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * HPI Schul-Cloud Server API - * This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1. + * Schulcloud-Verbund-Software Server API + * This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1. * * The version of the OpenAPI document: 3.0 * diff --git a/apps/server/src/shared/controller/swagger.spec.ts b/apps/server/src/shared/controller/swagger.spec.ts index 413a3fa3a9c..9b8e23f3108 100644 --- a/apps/server/src/shared/controller/swagger.spec.ts +++ b/apps/server/src/shared/controller/swagger.spec.ts @@ -1,6 +1,6 @@ +import { ServerTestModule } from '@modules/server'; import { INestApplication } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; -import { ServerTestModule } from '@modules/server'; import request from 'supertest'; import { enableOpenApiDocs } from './swagger'; @@ -33,8 +33,8 @@ describe('swagger setup', () => { // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access expect(response.body.info).toEqual({ contact: {}, - description: 'This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1.', - title: 'HPI Schul-Cloud Server API', + description: 'This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1.', + title: 'Schulcloud-Verbund-Software Server API', // care about api changes when version changes version: '3.0', }); diff --git a/apps/server/src/shared/controller/swagger.ts b/apps/server/src/shared/controller/swagger.ts index e27605b23d5..8207598976e 100644 --- a/apps/server/src/shared/controller/swagger.ts +++ b/apps/server/src/shared/controller/swagger.ts @@ -13,8 +13,8 @@ import { DocumentBuilder, SwaggerDocumentOptions, SwaggerModule } from '@nestjs/ // DTO's and Entity properties have to use @ApiProperty decorator to add their properties const config = new DocumentBuilder() .addServer('/api/v3/') // add default path as server to have correct urls ald let 'try out' work - .setTitle('HPI Schul-Cloud Server API') - .setDescription('This is v3 of HPI Schul-Cloud Server. Checkout /docs for v1.') + .setTitle('Schulcloud-Verbund-Software Server API') + .setDescription('This is v3 of Schulcloud-Verbund-Software Server. Checkout /docs for v1.') .setVersion('3.0') /** set authentication for all routes enabled by default */ .addBearerAuth({ type: 'http', scheme: 'bearer', bearerFormat: 'JWT' }) From 60fe578b775e7eede0f9de5b42d596f07a04d00b Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Fri, 7 Jun 2024 14:45:29 +0200 Subject: [PATCH 14/40] BC-6453 - make barrel file `apps/server/src/infra/authorization-client/index.ts` explicit --- apps/server/src/infra/authorization-client/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/infra/authorization-client/index.ts b/apps/server/src/infra/authorization-client/index.ts index 28293d9f14a..d67234adb75 100644 --- a/apps/server/src/infra/authorization-client/index.ts +++ b/apps/server/src/infra/authorization-client/index.ts @@ -1,2 +1,2 @@ -export * from './authorization-client.adapter'; -export * from './authorization-client.module'; +export { AuthorizationClientAdapter } from './authorization-client.adapter'; +export { AuthorizationClientModule } from './authorization-client.module'; From ddd78d1439834a41bdf7612811f5dd60e389092b Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Mon, 10 Jun 2024 08:49:54 +0200 Subject: [PATCH 15/40] BC-6453 - extract jwt from request and remove `apiKey` --- .../authorization-client.adapter.spec.ts | 12 +++++++- .../authorization-client.adapter.ts | 29 ++++++++++++++----- .../authorization-client.module.ts | 1 - 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index 951dcfd787f..cd0a841b3b0 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -1,8 +1,10 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest'; import { InternalServerErrorException } from '@nestjs/common'; +import { REQUEST } from '@nestjs/core'; import { Test, TestingModule } from '@nestjs/testing'; import { ErrorUtils } from '@src/core/error/utils'; import { AxiosResponse } from 'axios'; +import { Request } from 'express'; import { Action, AuthorizationApi, @@ -24,6 +26,10 @@ describe(AuthorizationClientAdapter.name, () => { provide: AuthorizationApi, useValue: createMock(), }, + { + provide: REQUEST, + useValue: createMock(), + }, ], }).compile(); @@ -50,10 +56,14 @@ describe(AuthorizationClientAdapter.name, () => { referenceType: AuthorizationBodyParamsReferenceType.COURSES, referenceId: 'someReferenceId', }; + const expectedOptions = { headers: { Authorization: 'Bearer ' } }; await service.checkPermissionByReferences(params); - expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith(params); + expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( + params, + expectedOptions + ); }); it('should return the response data', async () => { diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index e1586e21385..45ad467145a 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -1,18 +1,33 @@ -import { Injectable, InternalServerErrorException } from '@nestjs/common'; +import { ForbiddenException, Inject, Injectable, InternalServerErrorException } from '@nestjs/common'; +import { REQUEST } from '@nestjs/core'; import { ErrorUtils } from '@src/core/error/utils'; -import { AuthorizationApi, AuthorizationBodyParams, AuthorizedReponse } from './authorization-api-client'; +import { Request } from 'express'; +import { AuthorizationApi, AuthorizationBodyParams } from './authorization-api-client'; @Injectable() export class AuthorizationClientAdapter { - constructor(private readonly authorizationApi: AuthorizationApi) {} + constructor(private readonly authorizationApi: AuthorizationApi, @Inject(REQUEST) private request: Request) {} - public async checkPermissionByReferences(params: AuthorizationBodyParams): Promise { + public async checkPermissionByReferences(params: AuthorizationBodyParams): Promise { + if (!(await this.hasPermissionByReferences(params))) { + throw new ForbiddenException('AuthorizationClientAdapter:checkPermissionByReferences'); + } + } + + public async hasPermissionByReferences(params: AuthorizationBodyParams): Promise { try { - const response = await this.authorizationApi.authorizationReferenceControllerAuthorizeByReference(params); - return response.data; + const tokenStr = this.request.headers.authorization || ''; + + const response = await this.authorizationApi.authorizationReferenceControllerAuthorizeByReference(params, { + headers: { Authorization: `Bearer ${tokenStr}` }, + }); + + const hasPermission = response.data.isAuthorized; + + return hasPermission; } catch (err) { throw new InternalServerErrorException( - 'AuthorizationClientAdapter:checkPermissionByReferences', + 'AuthorizationClientAdapter:hasPermissionByReferences', ErrorUtils.createHttpExceptionOptions(err) ); } diff --git a/apps/server/src/infra/authorization-client/authorization-client.module.ts b/apps/server/src/infra/authorization-client/authorization-client.module.ts index 3dc653f5503..fdd6beebaaf 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.module.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.module.ts @@ -3,7 +3,6 @@ import { AuthorizationApi, Configuration, ConfigurationParameters } from './auth import { AuthorizationClientAdapter } from './authorization-client.adapter'; export interface AuthorizationClientConfig extends ConfigurationParameters { - apiKey?: string; basePath?: string; } From 2d400cba0e47f04c335135594961fb82424f80a4 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Mon, 10 Jun 2024 09:04:18 +0200 Subject: [PATCH 16/40] BC-6453 - add unit tests for `hasPermissionByReferences` --- .../authorization-client.adapter.spec.ts | 95 ++++++++++++++++--- 1 file changed, 84 insertions(+), 11 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index cd0a841b3b0..7c8c34babd8 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -45,9 +45,24 @@ describe(AuthorizationClientAdapter.name, () => { expect(service).toBeDefined(); }); + const setup = () => { + const response = createMock>({ + data: { + isAuthorized: true, + userId: 'userId', + }, + }); + + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); + + return { response }; + }; + describe('checkPermissionByReferences', () => { describe('when client returns response', () => { it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { + setup(); + const params = { context: { action: Action.READ, @@ -66,15 +81,33 @@ describe(AuthorizationClientAdapter.name, () => { ); }); - it('should return the response data', async () => { - const response = createMock>({ - data: { - isAuthorized: true, - userId: 'userId', + it('should return', async () => { + setup(); + + const params = { + context: { + action: Action.READ, + requiredPermissions: [], }, - }); + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + await service.checkPermissionByReferences(params); + }); + }); + + describe('when client throws error', () => { + it('should throw error', async () => { + const error = new Error('testError'); + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); - authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); + const expectedError = new InternalServerErrorException( + 'AuthorizationClientAdapter:hasPermissionByReferences', + ErrorUtils.createHttpExceptionOptions(error) + ); const params = { context: { @@ -85,9 +118,49 @@ describe(AuthorizationClientAdapter.name, () => { referenceId: 'someReferenceId', }; - const result = await service.checkPermissionByReferences(params); + await expect(service.checkPermissionByReferences(params)).rejects.toThrowError(expectedError); + }); + }); + }); - expect(result).toEqual(response.data); + describe('hasPermissionByReferences', () => { + describe('when client returns response', () => { + it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { + setup(); + + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + const expectedOptions = { headers: { Authorization: 'Bearer ' } }; + + await service.hasPermissionByReferences(params); + + expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( + params, + expectedOptions + ); + }); + + it('should return isAuthorized', async () => { + const { response } = setup(); + + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const result = await service.hasPermissionByReferences(params); + + expect(result).toEqual(response.data.isAuthorized); }); }); @@ -99,7 +172,7 @@ describe(AuthorizationClientAdapter.name, () => { authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); const expectedError = new InternalServerErrorException( - 'AuthorizationClientAdapter:checkPermissionByReferences', + 'AuthorizationClientAdapter:hasPermissionByReferences', ErrorUtils.createHttpExceptionOptions(error) ); @@ -112,7 +185,7 @@ describe(AuthorizationClientAdapter.name, () => { referenceId: 'someReferenceId', }; - await expect(service.checkPermissionByReferences(params)).rejects.toThrowError(expectedError); + await expect(service.hasPermissionByReferences(params)).rejects.toThrowError(expectedError); }); }); }); From be14363e274864deead5d368893605900190fa2a Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Mon, 10 Jun 2024 09:28:43 +0200 Subject: [PATCH 17/40] BC-6453 - fix `authorization` handling --- .../authorization-client.adapter.spec.ts | 12 +++++++++--- .../authorization-client.adapter.ts | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index 7c8c34babd8..2bf6201d35b 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -13,6 +13,8 @@ import { } from './authorization-api-client'; import { AuthorizationClientAdapter } from './authorization-client.adapter'; +const jwtToken = 'Bearer someJwtToken'; + describe(AuthorizationClientAdapter.name, () => { let module: TestingModule; let service: AuthorizationClientAdapter; @@ -28,7 +30,11 @@ describe(AuthorizationClientAdapter.name, () => { }, { provide: REQUEST, - useValue: createMock(), + useValue: createMock({ + headers: { + authorization: jwtToken, + }, + }), }, ], }).compile(); @@ -71,7 +77,7 @@ describe(AuthorizationClientAdapter.name, () => { referenceType: AuthorizationBodyParamsReferenceType.COURSES, referenceId: 'someReferenceId', }; - const expectedOptions = { headers: { Authorization: 'Bearer ' } }; + const expectedOptions = { headers: { authorization: jwtToken } }; await service.checkPermissionByReferences(params); @@ -136,7 +142,7 @@ describe(AuthorizationClientAdapter.name, () => { referenceType: AuthorizationBodyParamsReferenceType.COURSES, referenceId: 'someReferenceId', }; - const expectedOptions = { headers: { Authorization: 'Bearer ' } }; + const expectedOptions = { headers: { authorization: jwtToken } }; await service.hasPermissionByReferences(params); diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index 45ad467145a..38b63e7e97e 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -19,7 +19,7 @@ export class AuthorizationClientAdapter { const tokenStr = this.request.headers.authorization || ''; const response = await this.authorizationApi.authorizationReferenceControllerAuthorizeByReference(params, { - headers: { Authorization: `Bearer ${tokenStr}` }, + headers: { authorization: `${tokenStr}` }, }); const hasPermission = response.data.isAuthorized; From f11958637bef24a1f90562e8f3e381f3423ef5b0 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Mon, 10 Jun 2024 11:20:08 +0200 Subject: [PATCH 18/40] BC-6453 - add "own" loggable as well as extend unit tests --- .../authorization-client.adapter.spec.ts | 102 ++++++++++-------- .../authorization-client.adapter.ts | 13 +-- .../authorization-error.loggable-exception.ts | 26 +++++ ...horization-forbidden.loggable-exception.ts | 25 +++++ .../infra/authorization-client/error/index.ts | 2 + 5 files changed, 115 insertions(+), 53 deletions(-) create mode 100644 apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.ts create mode 100644 apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.ts create mode 100644 apps/server/src/infra/authorization-client/error/index.ts diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index 2bf6201d35b..b36c1e21650 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -1,8 +1,6 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest'; -import { InternalServerErrorException } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; import { Test, TestingModule } from '@nestjs/testing'; -import { ErrorUtils } from '@src/core/error/utils'; import { AxiosResponse } from 'axios'; import { Request } from 'express'; import { @@ -12,6 +10,7 @@ import { AuthorizedReponse, } from './authorization-api-client'; import { AuthorizationClientAdapter } from './authorization-client.adapter'; +import { AuthorizationErrorLoggableException, AuthorizationForbiddenLoggableException } from './error'; const jwtToken = 'Bearer someJwtToken'; @@ -51,10 +50,10 @@ describe(AuthorizationClientAdapter.name, () => { expect(service).toBeDefined(); }); - const setup = () => { + const setup = (isAuthorized = true) => { const response = createMock>({ data: { - isAuthorized: true, + isAuthorized, userId: 'userId', }, }); @@ -65,8 +64,29 @@ describe(AuthorizationClientAdapter.name, () => { }; describe('checkPermissionByReferences', () => { - describe('when client returns response', () => { - it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { + it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { + setup(); + + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + const expectedOptions = { headers: { authorization: jwtToken } }; + + await service.checkPermissionByReferences(params); + + expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( + params, + expectedOptions + ); + }); + + describe('when permission is granted', () => { + it('should return', async () => { setup(); const params = { @@ -77,18 +97,14 @@ describe(AuthorizationClientAdapter.name, () => { referenceType: AuthorizationBodyParamsReferenceType.COURSES, referenceId: 'someReferenceId', }; - const expectedOptions = { headers: { authorization: jwtToken } }; await service.checkPermissionByReferences(params); - - expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( - params, - expectedOptions - ); }); + }); - it('should return', async () => { - setup(); + describe('when permission is denied', () => { + it('should throw AuthorizationForbiddenLoggableException', async () => { + setup(false); const params = { context: { @@ -99,22 +115,19 @@ describe(AuthorizationClientAdapter.name, () => { referenceId: 'someReferenceId', }; - await service.checkPermissionByReferences(params); + const expectedError = new AuthorizationForbiddenLoggableException(params); + + await expect(service.checkPermissionByReferences(params)).rejects.toThrowError(expectedError); }); }); describe('when client throws error', () => { - it('should throw error', async () => { + it('should throw AuthorizationErrorLoggableException', async () => { const error = new Error('testError'); // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); - const expectedError = new InternalServerErrorException( - 'AuthorizationClientAdapter:hasPermissionByReferences', - ErrorUtils.createHttpExceptionOptions(error) - ); - const params = { context: { action: Action.READ, @@ -124,34 +137,36 @@ describe(AuthorizationClientAdapter.name, () => { referenceId: 'someReferenceId', }; + const expectedError = new AuthorizationErrorLoggableException(error, params); + await expect(service.checkPermissionByReferences(params)).rejects.toThrowError(expectedError); }); }); }); describe('hasPermissionByReferences', () => { - describe('when client returns response', () => { - it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { - setup(); + it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { + setup(); - const params = { - context: { - action: Action.READ, - requiredPermissions: [], - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; - const expectedOptions = { headers: { authorization: jwtToken } }; + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + const expectedOptions = { headers: { authorization: jwtToken } }; - await service.hasPermissionByReferences(params); + await service.hasPermissionByReferences(params); - expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( - params, - expectedOptions - ); - }); + expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( + params, + expectedOptions + ); + }); + describe('when client returns response', () => { it('should return isAuthorized', async () => { const { response } = setup(); @@ -171,17 +186,12 @@ describe(AuthorizationClientAdapter.name, () => { }); describe('when client throws error', () => { - it('should throw error', async () => { + it('should throw AuthorizationErrorLoggableException', async () => { const error = new Error('testError'); // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); - const expectedError = new InternalServerErrorException( - 'AuthorizationClientAdapter:hasPermissionByReferences', - ErrorUtils.createHttpExceptionOptions(error) - ); - const params = { context: { action: Action.READ, @@ -191,6 +201,8 @@ describe(AuthorizationClientAdapter.name, () => { referenceId: 'someReferenceId', }; + const expectedError = new AuthorizationErrorLoggableException(error, params); + await expect(service.hasPermissionByReferences(params)).rejects.toThrowError(expectedError); }); }); diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index 38b63e7e97e..67d9abcae2f 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -1,8 +1,8 @@ -import { ForbiddenException, Inject, Injectable, InternalServerErrorException } from '@nestjs/common'; +import { Inject, Injectable } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; -import { ErrorUtils } from '@src/core/error/utils'; import { Request } from 'express'; import { AuthorizationApi, AuthorizationBodyParams } from './authorization-api-client'; +import { AuthorizationErrorLoggableException, AuthorizationForbiddenLoggableException } from './error'; @Injectable() export class AuthorizationClientAdapter { @@ -10,7 +10,7 @@ export class AuthorizationClientAdapter { public async checkPermissionByReferences(params: AuthorizationBodyParams): Promise { if (!(await this.hasPermissionByReferences(params))) { - throw new ForbiddenException('AuthorizationClientAdapter:checkPermissionByReferences'); + throw new AuthorizationForbiddenLoggableException(params); } } @@ -25,11 +25,8 @@ export class AuthorizationClientAdapter { const hasPermission = response.data.isAuthorized; return hasPermission; - } catch (err) { - throw new InternalServerErrorException( - 'AuthorizationClientAdapter:hasPermissionByReferences', - ErrorUtils.createHttpExceptionOptions(err) - ); + } catch (error) { + throw new AuthorizationErrorLoggableException(error as Error, params); } } } diff --git a/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.ts b/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.ts new file mode 100644 index 00000000000..0e622d28271 --- /dev/null +++ b/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.ts @@ -0,0 +1,26 @@ +import { ForbiddenException } from '@nestjs/common'; +import { Loggable } from '@src/core/logger/interfaces'; +import { ErrorLogMessage } from '@src/core/logger/types'; +import { AuthorizationBodyParams } from '../authorization-api-client'; + +export class AuthorizationErrorLoggableException extends ForbiddenException implements Loggable { + constructor(private readonly error: Error, private readonly params: AuthorizationBodyParams) { + super(); + } + + getLogMessage(): ErrorLogMessage { + const message: ErrorLogMessage = { + type: 'INTERNAL_SERVER_ERROR', + error: this.error, + stack: this.stack, + data: { + action: this.params.context.action, + referenceId: this.params.referenceId, + referenceType: this.params.referenceType, + requiredPermissions: this.params.context.requiredPermissions.join(','), + }, + }; + + return message; + } +} diff --git a/apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.ts b/apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.ts new file mode 100644 index 00000000000..ffd44125976 --- /dev/null +++ b/apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.ts @@ -0,0 +1,25 @@ +import { ForbiddenException } from '@nestjs/common'; +import { Loggable } from '@src/core/logger/interfaces'; +import { ErrorLogMessage } from '@src/core/logger/types'; +import { AuthorizationBodyParams } from '../authorization-api-client'; + +export class AuthorizationForbiddenLoggableException extends ForbiddenException implements Loggable { + constructor(private readonly params: AuthorizationBodyParams) { + super(); + } + + getLogMessage(): ErrorLogMessage { + const message: ErrorLogMessage = { + type: 'FORBIDDEN_EXCEPTION', + stack: this.stack, + data: { + action: this.params.context.action, + referenceId: this.params.referenceId, + referenceType: this.params.referenceType, + requiredPermissions: this.params.context.requiredPermissions.join(','), + }, + }; + + return message; + } +} diff --git a/apps/server/src/infra/authorization-client/error/index.ts b/apps/server/src/infra/authorization-client/error/index.ts new file mode 100644 index 00000000000..439c65fe445 --- /dev/null +++ b/apps/server/src/infra/authorization-client/error/index.ts @@ -0,0 +1,2 @@ +export * from './authorization-error.loggable-exception'; +export * from './authorization-forbidden.loggable-exception'; From e89b3e4222bcfb226a384b252f391bf52af2ac7f Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Mon, 10 Jun 2024 11:32:08 +0200 Subject: [PATCH 19/40] BC-6453 - add unit tests for loggables --- ...orization-error.loggable-exception.spec.ts | 45 +++++++++++++++++++ ...ation-forbidden.loggable-exception.spec.ts | 41 +++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts create mode 100644 apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.spec.ts diff --git a/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts b/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts new file mode 100644 index 00000000000..40831a5212a --- /dev/null +++ b/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts @@ -0,0 +1,45 @@ +import { Action, AuthorizationBodyParamsReferenceType } from '../authorization-api-client'; +import { AuthorizationErrorLoggableException } from './authorization-error.loggable-exception'; + +describe('AuthorizationErrorLoggableException', () => { + describe('getLogMessage', () => { + const setup = () => { + const error = new Error('testError'); + + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const exception = new AuthorizationErrorLoggableException(error, params); + + return { + error, + exception, + params, + }; + }; + + it('should log the correct message', () => { + const { error, exception, params } = setup(); + + const result = exception.getLogMessage(); + + expect(result).toEqual({ + type: 'INTERNAL_SERVER_ERROR', + error, + stack: expect.any(String), + data: { + action: params.context.action, + referenceId: params.referenceId, + referenceType: params.referenceType, + requiredPermissions: params.context.requiredPermissions.join(','), + }, + }); + }); + }); +}); diff --git a/apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.spec.ts b/apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.spec.ts new file mode 100644 index 00000000000..75b19806969 --- /dev/null +++ b/apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.spec.ts @@ -0,0 +1,41 @@ +import { AuthorizationForbiddenLoggableException } from './authorization-forbidden.loggable-exception'; +import { Action, AuthorizationBodyParamsReferenceType } from '../authorization-api-client'; + +describe('AuthorizationForbiddenLoggableException', () => { + describe('getLogMessage', () => { + const setup = () => { + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const exception = new AuthorizationForbiddenLoggableException(params); + + return { + exception, + params, + }; + }; + + it('should log the correct message', () => { + const { exception, params } = setup(); + + const result = exception.getLogMessage(); + + expect(result).toEqual({ + type: 'FORBIDDEN_EXCEPTION', + stack: expect.any(String), + data: { + action: params.context.action, + referenceId: params.referenceId, + referenceType: params.referenceType, + requiredPermissions: params.context.requiredPermissions.join(','), + }, + }); + }); + }); +}); From 0ce6d8640a542782789d2fa37972f3aa4f832b46 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Mon, 10 Jun 2024 15:33:15 +0200 Subject: [PATCH 20/40] BC-6453 - update JWT extraction and handling in AuthorizationClientAdapter --- .../authorization-client.adapter.ts | 37 ++++++++++++++++--- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index 67d9abcae2f..115b3dbd51c 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -1,6 +1,8 @@ -import { Inject, Injectable } from '@nestjs/common'; +import { Inject, Injectable, UnauthorizedException } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; +import cookie from 'cookie'; import { Request } from 'express'; +import { ExtractJwt, JwtFromRequestFunction } from 'passport-jwt'; import { AuthorizationApi, AuthorizationBodyParams } from './authorization-api-client'; import { AuthorizationErrorLoggableException, AuthorizationForbiddenLoggableException } from './error'; @@ -9,17 +11,18 @@ export class AuthorizationClientAdapter { constructor(private readonly authorizationApi: AuthorizationApi, @Inject(REQUEST) private request: Request) {} public async checkPermissionByReferences(params: AuthorizationBodyParams): Promise { - if (!(await this.hasPermissionByReferences(params))) { + const hasPermission = await this.hasPermissionByReferences(params); + if (!hasPermission) { throw new AuthorizationForbiddenLoggableException(params); } } public async hasPermissionByReferences(params: AuthorizationBodyParams): Promise { - try { - const tokenStr = this.request.headers.authorization || ''; + const jwt = this.getJWT(); + try { const response = await this.authorizationApi.authorizationReferenceControllerAuthorizeByReference(params, { - headers: { authorization: `${tokenStr}` }, + headers: { authorization: `${jwt}` }, }); const hasPermission = response.data.isAuthorized; @@ -29,4 +32,28 @@ export class AuthorizationClientAdapter { throw new AuthorizationErrorLoggableException(error as Error, params); } } + + private getJWT(): string { + const getJWT = ExtractJwt.fromExtractors([ExtractJwt.fromAuthHeaderAsBearerToken(), this.fromCookie('jwt')]); + const jwt = getJWT(this.request) || this.request.headers.authorization; + + if (!jwt) { + throw new UnauthorizedException('Authentication is required.'); + } + + return jwt; + } + + private fromCookie(name: string): JwtFromRequestFunction { + return (request: Request) => { + let token: string | null = null; + const cookies = cookie.parse(request.headers.cookie || ''); + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + if (cookies && cookies[name]) { + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access + token = cookies[name]; + } + return token; + }; + } } From e0db97e45ead6826e476e9af1a8a3299c4ea711c Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Mon, 10 Jun 2024 15:45:57 +0200 Subject: [PATCH 21/40] BC-6453 - fix currently broken unit tests --- .../infra/authorization-client/authorization-client.adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index 115b3dbd51c..46ac9eafd2d 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -22,7 +22,7 @@ export class AuthorizationClientAdapter { try { const response = await this.authorizationApi.authorizationReferenceControllerAuthorizeByReference(params, { - headers: { authorization: `${jwt}` }, + headers: { authorization: `Bearer ${jwt}` }, }); const hasPermission = response.data.isAuthorized; From 7d7f51cb3afd8c88a0c616b88c8be9fefc2f0e4c Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Tue, 11 Jun 2024 08:53:37 +0200 Subject: [PATCH 22/40] BC-6453 - make jwt extraction more general --- .../authorization-client/authorization-client.adapter.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index 46ac9eafd2d..b4442cdbef4 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -35,7 +35,10 @@ export class AuthorizationClientAdapter { private getJWT(): string { const getJWT = ExtractJwt.fromExtractors([ExtractJwt.fromAuthHeaderAsBearerToken(), this.fromCookie('jwt')]); - const jwt = getJWT(this.request) || this.request.headers.authorization; + let jwt = getJWT(this.request) || this.request.headers.authorization; + if (jwt?.toLowerCase()?.startsWith('bearer ')) { + [, jwt] = jwt.split(' '); + } if (!jwt) { throw new UnauthorizedException('Authentication is required.'); From a7453b9c5389e2b1698f9ea0513b5107a184f44b Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Tue, 11 Jun 2024 10:06:06 +0200 Subject: [PATCH 23/40] BC-6453 - extend unit tests for jwt and cookie handling --- .../authorization-client.adapter.spec.ts | 57 +++++++++++++++++-- 1 file changed, 53 insertions(+), 4 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index b36c1e21650..b71d0325692 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -1,4 +1,5 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest'; +import { UnauthorizedException } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; import { Test, TestingModule } from '@nestjs/testing'; import { AxiosResponse } from 'axios'; @@ -12,7 +13,7 @@ import { import { AuthorizationClientAdapter } from './authorization-client.adapter'; import { AuthorizationErrorLoggableException, AuthorizationForbiddenLoggableException } from './error'; -const jwtToken = 'Bearer someJwtToken'; +const jwtToken = 'someJwtToken'; describe(AuthorizationClientAdapter.name, () => { let module: TestingModule; @@ -31,7 +32,7 @@ describe(AuthorizationClientAdapter.name, () => { provide: REQUEST, useValue: createMock({ headers: { - authorization: jwtToken, + authorization: `Bearer ${jwtToken}`, }, }), }, @@ -75,7 +76,7 @@ describe(AuthorizationClientAdapter.name, () => { referenceType: AuthorizationBodyParamsReferenceType.COURSES, referenceId: 'someReferenceId', }; - const expectedOptions = { headers: { authorization: jwtToken } }; + const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; await service.checkPermissionByReferences(params); @@ -156,7 +157,7 @@ describe(AuthorizationClientAdapter.name, () => { referenceType: AuthorizationBodyParamsReferenceType.COURSES, referenceId: 'someReferenceId', }; - const expectedOptions = { headers: { authorization: jwtToken } }; + const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; await service.hasPermissionByReferences(params); @@ -166,6 +167,54 @@ describe(AuthorizationClientAdapter.name, () => { ); }); + it('should forward the JWT token from the "jwt" cookie', async () => { + setup(); + + const request = createMock({ + headers: { + cookie: `jwt=${jwtToken}`, + }, + }); + + const adapter = new AuthorizationClientAdapter(authorizationApi, request); + + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; + + await adapter.hasPermissionByReferences(params); + + expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( + params, + expectedOptions + ); + }); + + it('should throw an UnauthorizedException if no JWT token is found', async () => { + const request = createMock({ + headers: {}, + }); + + const adapter = new AuthorizationClientAdapter(authorizationApi, request); + + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + await expect(adapter.hasPermissionByReferences(params)).rejects.toThrowError(UnauthorizedException); + }); + describe('when client returns response', () => { it('should return isAuthorized', async () => { const { response } = setup(); From f5880195c7db259061458abe265aebd307e3b15f Mon Sep 17 00:00:00 2001 From: bergatco <129839305+bergatco@users.noreply.github.com> Date: Tue, 11 Jun 2024 14:27:27 +0200 Subject: [PATCH 24/40] BC-6453 - remove some more unnecessary file from generated api Co-authored-by: Sergej Hoffmann <97111299+SevenWaysDP@users.noreply.github.com> --- .../authorization-api-client/.openapi-generator-ignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore index b83a6e36fc0..b2e1af97eea 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore +++ b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore @@ -21,7 +21,9 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md - +.gitignore +.npmignore +git_push.sh # ignore all files in the "models" folder models/* From 8f1a7de78056e42bed3fdf25dc0162060d12cb85 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Tue, 11 Jun 2024 14:31:20 +0200 Subject: [PATCH 25/40] BC-6453 - remove files to be ignored --- .../authorization-api-client/.gitignore | 4 -- .../authorization-api-client/.npmignore | 1 - .../.openapi-generator-ignore | 3 + .../.openapi-generator/FILES | 3 - .../authorization-api-client/git_push.sh | 57 ------------------- 5 files changed, 3 insertions(+), 65 deletions(-) delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/.gitignore delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/.npmignore delete mode 100644 apps/server/src/infra/authorization-client/authorization-api-client/git_push.sh diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/.gitignore b/apps/server/src/infra/authorization-client/authorization-api-client/.gitignore deleted file mode 100644 index 149b5765472..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -wwwroot/*.js -node_modules -typings -dist diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/.npmignore b/apps/server/src/infra/authorization-client/authorization-api-client/.npmignore deleted file mode 100644 index 999d88df693..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/.npmignore +++ /dev/null @@ -1 +0,0 @@ -# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore index b2e1af97eea..bbc533d699f 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore +++ b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator-ignore @@ -21,9 +21,12 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md + +# ignore some general files .gitignore .npmignore git_push.sh + # ignore all files in the "models" folder models/* diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES index 72267ce3cc5..b0b81500e3f 100644 --- a/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES +++ b/apps/server/src/infra/authorization-client/authorization-api-client/.openapi-generator/FILES @@ -1,11 +1,8 @@ -.gitignore -.npmignore api.ts api/authorization-api.ts base.ts common.ts configuration.ts -git_push.sh index.ts models/action.ts models/authorization-body-params.ts diff --git a/apps/server/src/infra/authorization-client/authorization-api-client/git_push.sh b/apps/server/src/infra/authorization-client/authorization-api-client/git_push.sh deleted file mode 100644 index f53a75d4fab..00000000000 --- a/apps/server/src/infra/authorization-client/authorization-api-client/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' From a18eeed15afd39d08a282544b81bf0f631496308 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Tue, 11 Jun 2024 15:00:56 +0200 Subject: [PATCH 26/40] BC-6453 - add `resetAllMocks` after each unit test --- .../authorization-client/authorization-client.adapter.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index b71d0325692..032e5b78e63 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -47,6 +47,10 @@ describe(AuthorizationClientAdapter.name, () => { await module.close(); }); + afterEach(() => { + jest.resetAllMocks(); + }); + it('should be defined', () => { expect(service).toBeDefined(); }); From ee2b0e8acdb0019c74712640dec0d9bd65d2db56 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Tue, 11 Jun 2024 15:12:56 +0200 Subject: [PATCH 27/40] BC-6453 - allow also ONLY jwt in authorization header --- .../authorization-client.adapter.spec.ts | 29 +++++++++++++++++++ .../authorization-client.adapter.ts | 5 +--- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index 032e5b78e63..fa3aa9ff70b 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -200,6 +200,35 @@ describe(AuthorizationClientAdapter.name, () => { ); }); + it('should forward the JWT token from authorization header even without Bearer token', async () => { + setup(); + + const request = createMock({ + headers: { + authorization: jwtToken, + }, + }); + + const adapter = new AuthorizationClientAdapter(authorizationApi, request); + + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; + + await adapter.hasPermissionByReferences(params); + + expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( + params, + expectedOptions + ); + }); + it('should throw an UnauthorizedException if no JWT token is found', async () => { const request = createMock({ headers: {}, diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index b4442cdbef4..46ac9eafd2d 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -35,10 +35,7 @@ export class AuthorizationClientAdapter { private getJWT(): string { const getJWT = ExtractJwt.fromExtractors([ExtractJwt.fromAuthHeaderAsBearerToken(), this.fromCookie('jwt')]); - let jwt = getJWT(this.request) || this.request.headers.authorization; - if (jwt?.toLowerCase()?.startsWith('bearer ')) { - [, jwt] = jwt.split(' '); - } + const jwt = getJWT(this.request) || this.request.headers.authorization; if (!jwt) { throw new UnauthorizedException('Authentication is required.'); From 50317aade6f61663face7ef213a6b683417747ab Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Tue, 11 Jun 2024 15:58:53 +0200 Subject: [PATCH 28/40] BC-6453 - remove unnecessary comments, improve unit test structure plus some syntactical sugar --- .../authorization-client.adapter.spec.ts | 202 ++++++++---------- .../authorization-client.adapter.ts | 3 +- 2 files changed, 89 insertions(+), 116 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index fa3aa9ff70b..1fd25918235 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -14,6 +14,7 @@ import { AuthorizationClientAdapter } from './authorization-client.adapter'; import { AuthorizationErrorLoggableException, AuthorizationForbiddenLoggableException } from './error'; const jwtToken = 'someJwtToken'; +const requiredPermissions = ['somePermissionA', 'somePermissionB']; describe(AuthorizationClientAdapter.name, () => { let module: TestingModule; @@ -55,31 +56,32 @@ describe(AuthorizationClientAdapter.name, () => { expect(service).toBeDefined(); }); - const setup = (isAuthorized = true) => { - const response = createMock>({ - data: { - isAuthorized, - userId: 'userId', - }, - }); - - authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); - - return { response }; - }; - describe('checkPermissionByReferences', () => { - it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { - setup(); - + const setup = (props: { isAuthorized: boolean }) => { const params = { context: { action: Action.READ, - requiredPermissions: [], + requiredPermissions, }, referenceType: AuthorizationBodyParamsReferenceType.COURSES, referenceId: 'someReferenceId', }; + + const response = createMock>({ + data: { + isAuthorized: props.isAuthorized, + userId: 'userId', + }, + }); + + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); + + return { params, response }; + }; + + it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { + const { params } = setup({ isAuthorized: true }); + const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; await service.checkPermissionByReferences(params); @@ -92,33 +94,15 @@ describe(AuthorizationClientAdapter.name, () => { describe('when permission is granted', () => { it('should return', async () => { - setup(); + const { params } = setup({ isAuthorized: true }); - const params = { - context: { - action: Action.READ, - requiredPermissions: [], - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; - - await service.checkPermissionByReferences(params); + await expect(service.checkPermissionByReferences(params)).resolves.toBeUndefined(); }); }); describe('when permission is denied', () => { it('should throw AuthorizationForbiddenLoggableException', async () => { - setup(false); - - const params = { - context: { - action: Action.READ, - requiredPermissions: [], - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; + const { params } = setup({ isAuthorized: false }); const expectedError = new AuthorizationForbiddenLoggableException(params); @@ -129,14 +113,12 @@ describe(AuthorizationClientAdapter.name, () => { describe('when client throws error', () => { it('should throw AuthorizationErrorLoggableException', async () => { const error = new Error('testError'); - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); const params = { context: { action: Action.READ, - requiredPermissions: [], + requiredPermissions, }, referenceType: AuthorizationBodyParamsReferenceType.COURSES, referenceId: 'someReferenceId', @@ -150,49 +132,34 @@ describe(AuthorizationClientAdapter.name, () => { }); describe('hasPermissionByReferences', () => { - it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { - setup(); - + const setup = (props: { isAuthorized: boolean }) => { const params = { context: { action: Action.READ, - requiredPermissions: [], + requiredPermissions, }, referenceType: AuthorizationBodyParamsReferenceType.COURSES, referenceId: 'someReferenceId', }; - const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; - - await service.hasPermissionByReferences(params); - expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( - params, - expectedOptions - ); - }); - - it('should forward the JWT token from the "jwt" cookie', async () => { - setup(); - - const request = createMock({ - headers: { - cookie: `jwt=${jwtToken}`, + const response = createMock>({ + data: { + isAuthorized: props.isAuthorized, + userId: 'userId', }, }); - const adapter = new AuthorizationClientAdapter(authorizationApi, request); + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); + + return { params, response }; + }; + + it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { + const { params } = setup({ isAuthorized: true }); - const params = { - context: { - action: Action.READ, - requiredPermissions: [], - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; - await adapter.hasPermissionByReferences(params); + await service.hasPermissionByReferences(params); expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( params, @@ -200,67 +167,76 @@ describe(AuthorizationClientAdapter.name, () => { ); }); - it('should forward the JWT token from authorization header even without Bearer token', async () => { - setup(); + describe('when cookie header contains JWT token', () => { + it('should forward the JWT as bearer token', async () => { + const { params } = setup({ isAuthorized: true }); - const request = createMock({ - headers: { - authorization: jwtToken, - }, - }); + const request = createMock({ + headers: { + cookie: `jwt=${jwtToken}`, + }, + }); + const adapter = new AuthorizationClientAdapter(authorizationApi, request); - const adapter = new AuthorizationClientAdapter(authorizationApi, request); + const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; - const params = { - context: { - action: Action.READ, - requiredPermissions: [], - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; - const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; + await adapter.hasPermissionByReferences(params); - await adapter.hasPermissionByReferences(params); - - expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( - params, - expectedOptions - ); + expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( + params, + expectedOptions + ); + }); }); - it('should throw an UnauthorizedException if no JWT token is found', async () => { - const request = createMock({ - headers: {}, - }); + describe('when authorization header does not contain Bearer token', () => { + it('should forward the JWT as bearer token', async () => { + const { params } = setup({ isAuthorized: true }); - const adapter = new AuthorizationClientAdapter(authorizationApi, request); + const request = createMock({ + headers: { + authorization: jwtToken, + }, + }); - const params = { - context: { - action: Action.READ, - requiredPermissions: [], - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; + const adapter = new AuthorizationClientAdapter(authorizationApi, request); + + const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; - await expect(adapter.hasPermissionByReferences(params)).rejects.toThrowError(UnauthorizedException); + await adapter.hasPermissionByReferences(params); + + expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( + params, + expectedOptions + ); + }); }); - describe('when client returns response', () => { - it('should return isAuthorized', async () => { - const { response } = setup(); + describe('when no JWT token is found', () => { + it('should throw an UnauthorizedException', async () => { + const request = createMock({ + headers: {}, + }); + + const adapter = new AuthorizationClientAdapter(authorizationApi, request); const params = { context: { action: Action.READ, - requiredPermissions: [], + requiredPermissions, }, referenceType: AuthorizationBodyParamsReferenceType.COURSES, referenceId: 'someReferenceId', }; + await expect(adapter.hasPermissionByReferences(params)).rejects.toThrowError(UnauthorizedException); + }); + }); + + describe('when client returns response', () => { + it('should return isAuthorized', async () => { + const { response, params } = setup({ isAuthorized: true }); + const result = await service.hasPermissionByReferences(params); expect(result).toEqual(response.data.isAuthorized); @@ -270,14 +246,12 @@ describe(AuthorizationClientAdapter.name, () => { describe('when client throws error', () => { it('should throw AuthorizationErrorLoggableException', async () => { const error = new Error('testError'); - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); const params = { context: { action: Action.READ, - requiredPermissions: [], + requiredPermissions, }, referenceType: AuthorizationBodyParamsReferenceType.COURSES, referenceId: 'someReferenceId', diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index 46ac9eafd2d..06fa17af377 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -48,11 +48,10 @@ export class AuthorizationClientAdapter { return (request: Request) => { let token: string | null = null; const cookies = cookie.parse(request.headers.cookie || ''); - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access if (cookies && cookies[name]) { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access token = cookies[name]; } + return token; }; } From 0a0626fa299cfc942649eb51cceba6f970e405d4 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Tue, 11 Jun 2024 20:42:59 +0200 Subject: [PATCH 29/40] BC-6453 - improve unit tests structure --- .../authorization-client.adapter.spec.ts | 242 +++++++++++------- 1 file changed, 154 insertions(+), 88 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index 1fd25918235..a0bb61391c9 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -57,61 +57,62 @@ describe(AuthorizationClientAdapter.name, () => { }); describe('checkPermissionByReferences', () => { - const setup = (props: { isAuthorized: boolean }) => { - const params = { - context: { - action: Action.READ, - requiredPermissions, - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; - - const response = createMock>({ - data: { - isAuthorized: props.isAuthorized, - userId: 'userId', - }, - }); + describe('when authorizationReferenceControllerAuthorizeByReference resolves successful', () => { + const setup = (props: { isAuthorized: boolean }) => { + const params = { + context: { + action: Action.READ, + requiredPermissions, + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; - authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); + const response = createMock>({ + data: { + isAuthorized: props.isAuthorized, + userId: 'userId', + }, + }); + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); - return { params, response }; - }; + return { params }; + }; - it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { - const { params } = setup({ isAuthorized: true }); + it('should call authorizationReferenceControllerAuthorizeByReference with correct params', async () => { + const { params } = setup({ isAuthorized: true }); - const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; + const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; - await service.checkPermissionByReferences(params); + await service.checkPermissionByReferences(params); - expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( - params, - expectedOptions - ); - }); + expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( + params, + expectedOptions + ); + }); - describe('when permission is granted', () => { - it('should return', async () => { - const { params } = setup({ isAuthorized: true }); + describe('when permission is granted', () => { + it('should return', async () => { + const { params } = setup({ isAuthorized: true }); - await expect(service.checkPermissionByReferences(params)).resolves.toBeUndefined(); + await expect(service.checkPermissionByReferences(params)).resolves.toBeUndefined(); + }); }); - }); - describe('when permission is denied', () => { - it('should throw AuthorizationForbiddenLoggableException', async () => { - const { params } = setup({ isAuthorized: false }); + describe('when permission is denied', () => { + it('should throw AuthorizationForbiddenLoggableException', async () => { + const { params } = setup({ isAuthorized: false }); - const expectedError = new AuthorizationForbiddenLoggableException(params); + const expectedError = new AuthorizationForbiddenLoggableException(params); - await expect(service.checkPermissionByReferences(params)).rejects.toThrowError(expectedError); + await expect(service.checkPermissionByReferences(params)).rejects.toThrowError(expectedError); + }); }); }); - describe('when client throws error', () => { - it('should throw AuthorizationErrorLoggableException', async () => { + describe('when authorizationReferenceControllerAuthorizeByReference returns error', () => { + const setup = () => { const error = new Error('testError'); authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); @@ -124,6 +125,12 @@ describe(AuthorizationClientAdapter.name, () => { referenceId: 'someReferenceId', }; + return { params, error }; + }; + + it('should throw AuthorizationErrorLoggableException', async () => { + const { params, error } = setup(); + const expectedError = new AuthorizationErrorLoggableException(error, params); await expect(service.checkPermissionByReferences(params)).rejects.toThrowError(expectedError); @@ -132,44 +139,68 @@ describe(AuthorizationClientAdapter.name, () => { }); describe('hasPermissionByReferences', () => { - const setup = (props: { isAuthorized: boolean }) => { - const params = { - context: { - action: Action.READ, - requiredPermissions, - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', + describe('when authorizationReferenceControllerAuthorizeByReference resolves successful', () => { + const setup = (props: { isAuthorized: boolean }) => { + const params = { + context: { + action: Action.READ, + requiredPermissions, + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const response = createMock>({ + data: { + isAuthorized: props.isAuthorized, + userId: 'userId', + }, + }); + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); + + return { params, response }; }; - const response = createMock>({ - data: { - isAuthorized: props.isAuthorized, - userId: 'userId', - }, - }); + it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { + const { params } = setup({ isAuthorized: true }); - authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); + const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; - return { params, response }; - }; + await service.hasPermissionByReferences(params); - it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { - const { params } = setup({ isAuthorized: true }); + expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( + params, + expectedOptions + ); + }); - const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; + it('should return isAuthorized', async () => { + const { params, response } = setup({ isAuthorized: true }); - await service.hasPermissionByReferences(params); + const result = await service.hasPermissionByReferences(params); - expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( - params, - expectedOptions - ); + expect(result).toEqual(response.data.isAuthorized); + }); }); describe('when cookie header contains JWT token', () => { - it('should forward the JWT as bearer token', async () => { - const { params } = setup({ isAuthorized: true }); + const setup = (props: { isAuthorized: boolean }) => { + const params = { + context: { + action: Action.READ, + requiredPermissions, + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const response = createMock>({ + data: { + isAuthorized: props.isAuthorized, + userId: 'userId', + }, + }); + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); const request = createMock({ headers: { @@ -178,6 +209,12 @@ describe(AuthorizationClientAdapter.name, () => { }); const adapter = new AuthorizationClientAdapter(authorizationApi, request); + return { params, adapter }; + }; + + it('should forward the JWT as bearer token', async () => { + const { params, adapter } = setup({ isAuthorized: true }); + const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; await adapter.hasPermissionByReferences(params); @@ -189,18 +226,38 @@ describe(AuthorizationClientAdapter.name, () => { }); }); - describe('when authorization header does not contain Bearer token', () => { - it('should forward the JWT as bearer token', async () => { - const { params } = setup({ isAuthorized: true }); + describe('when authorization header is without "Bearer " at the start', () => { + const setup = (props: { isAuthorized: boolean }) => { + const params = { + context: { + action: Action.READ, + requiredPermissions, + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const response = createMock>({ + data: { + isAuthorized: props.isAuthorized, + userId: 'userId', + }, + }); + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); const request = createMock({ headers: { authorization: jwtToken, }, }); - const adapter = new AuthorizationClientAdapter(authorizationApi, request); + return { params, adapter }; + }; + + it('should forward the JWT as bearer token', async () => { + const { params, adapter } = setup({ isAuthorized: true }); + const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; await adapter.hasPermissionByReferences(params); @@ -213,13 +270,7 @@ describe(AuthorizationClientAdapter.name, () => { }); describe('when no JWT token is found', () => { - it('should throw an UnauthorizedException', async () => { - const request = createMock({ - headers: {}, - }); - - const adapter = new AuthorizationClientAdapter(authorizationApi, request); - + const setup = (props: { isAuthorized: boolean }) => { const params = { context: { action: Action.READ, @@ -229,22 +280,31 @@ describe(AuthorizationClientAdapter.name, () => { referenceId: 'someReferenceId', }; - await expect(adapter.hasPermissionByReferences(params)).rejects.toThrowError(UnauthorizedException); - }); - }); + const response = createMock>({ + data: { + isAuthorized: props.isAuthorized, + userId: 'userId', + }, + }); + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); - describe('when client returns response', () => { - it('should return isAuthorized', async () => { - const { response, params } = setup({ isAuthorized: true }); + const request = createMock({ + headers: {}, + }); + const adapter = new AuthorizationClientAdapter(authorizationApi, request); - const result = await service.hasPermissionByReferences(params); + return { params, adapter }; + }; - expect(result).toEqual(response.data.isAuthorized); + it('should throw an UnauthorizedException', async () => { + const { params, adapter } = setup({ isAuthorized: true }); + + await expect(adapter.hasPermissionByReferences(params)).rejects.toThrowError(UnauthorizedException); }); }); - describe('when client throws error', () => { - it('should throw AuthorizationErrorLoggableException', async () => { + describe('when authorizationReferenceControllerAuthorizeByReference returns error', () => { + const setup = () => { const error = new Error('testError'); authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); @@ -257,6 +317,12 @@ describe(AuthorizationClientAdapter.name, () => { referenceId: 'someReferenceId', }; + return { params, error }; + }; + + it('should throw AuthorizationErrorLoggableException', async () => { + const { params, error } = setup(); + const expectedError = new AuthorizationErrorLoggableException(error, params); await expect(service.hasPermissionByReferences(params)).rejects.toThrowError(expectedError); From 82060cfc72704c60a1f291c66bb02300ead0e726 Mon Sep 17 00:00:00 2001 From: bergatco <129839305+bergatco@users.noreply.github.com> Date: Wed, 12 Jun 2024 09:25:41 +0200 Subject: [PATCH 30/40] BC-6453 - fix wording in one unit tests Co-authored-by: Max Bischof <106820326+bischofmax@users.noreply.github.com> --- .../authorization-client/authorization-client.adapter.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index a0bb61391c9..19a2559bad8 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -93,7 +93,7 @@ describe(AuthorizationClientAdapter.name, () => { }); describe('when permission is granted', () => { - it('should return', async () => { + it('should resolve', async () => { const { params } = setup({ isAuthorized: true }); await expect(service.checkPermissionByReferences(params)).resolves.toBeUndefined(); From 69d8a78207dcf3a13cde8bb416d17a398e55cf61 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Wed, 12 Jun 2024 10:18:59 +0200 Subject: [PATCH 31/40] BC-6453 - further improve unit tests structure --- .../authorization-client.adapter.spec.ts | 32 +++++++------------ 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index 19a2559bad8..d13142389a4 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -140,7 +140,7 @@ describe(AuthorizationClientAdapter.name, () => { describe('hasPermissionByReferences', () => { describe('when authorizationReferenceControllerAuthorizeByReference resolves successful', () => { - const setup = (props: { isAuthorized: boolean }) => { + const setup = () => { const params = { context: { action: Action.READ, @@ -152,7 +152,7 @@ describe(AuthorizationClientAdapter.name, () => { const response = createMock>({ data: { - isAuthorized: props.isAuthorized, + isAuthorized: true, userId: 'userId', }, }); @@ -162,7 +162,7 @@ describe(AuthorizationClientAdapter.name, () => { }; it('should call authorizationReferenceControllerAuthorizeByReference with the correct params', async () => { - const { params } = setup({ isAuthorized: true }); + const { params } = setup(); const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; @@ -175,7 +175,7 @@ describe(AuthorizationClientAdapter.name, () => { }); it('should return isAuthorized', async () => { - const { params, response } = setup({ isAuthorized: true }); + const { params, response } = setup(); const result = await service.hasPermissionByReferences(params); @@ -184,7 +184,7 @@ describe(AuthorizationClientAdapter.name, () => { }); describe('when cookie header contains JWT token', () => { - const setup = (props: { isAuthorized: boolean }) => { + const setup = () => { const params = { context: { action: Action.READ, @@ -196,7 +196,7 @@ describe(AuthorizationClientAdapter.name, () => { const response = createMock>({ data: { - isAuthorized: props.isAuthorized, + isAuthorized: true, userId: 'userId', }, }); @@ -213,7 +213,7 @@ describe(AuthorizationClientAdapter.name, () => { }; it('should forward the JWT as bearer token', async () => { - const { params, adapter } = setup({ isAuthorized: true }); + const { params, adapter } = setup(); const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; @@ -227,7 +227,7 @@ describe(AuthorizationClientAdapter.name, () => { }); describe('when authorization header is without "Bearer " at the start', () => { - const setup = (props: { isAuthorized: boolean }) => { + const setup = () => { const params = { context: { action: Action.READ, @@ -239,7 +239,7 @@ describe(AuthorizationClientAdapter.name, () => { const response = createMock>({ data: { - isAuthorized: props.isAuthorized, + isAuthorized: true, userId: 'userId', }, }); @@ -256,7 +256,7 @@ describe(AuthorizationClientAdapter.name, () => { }; it('should forward the JWT as bearer token', async () => { - const { params, adapter } = setup({ isAuthorized: true }); + const { params, adapter } = setup(); const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; @@ -270,7 +270,7 @@ describe(AuthorizationClientAdapter.name, () => { }); describe('when no JWT token is found', () => { - const setup = (props: { isAuthorized: boolean }) => { + const setup = () => { const params = { context: { action: Action.READ, @@ -280,14 +280,6 @@ describe(AuthorizationClientAdapter.name, () => { referenceId: 'someReferenceId', }; - const response = createMock>({ - data: { - isAuthorized: props.isAuthorized, - userId: 'userId', - }, - }); - authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockResolvedValueOnce(response); - const request = createMock({ headers: {}, }); @@ -297,7 +289,7 @@ describe(AuthorizationClientAdapter.name, () => { }; it('should throw an UnauthorizedException', async () => { - const { params, adapter } = setup({ isAuthorized: true }); + const { params, adapter } = setup(); await expect(adapter.hasPermissionByReferences(params)).rejects.toThrowError(UnauthorizedException); }); From eacdd8b8b02de6570b248547f043d7ddb153667a Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Wed, 12 Jun 2024 11:52:36 +0200 Subject: [PATCH 32/40] BC-6453 - rename functions - `checkPermissionByReferences` to `checkPermissionsByReference` - `hasPermissionByReferences` to `hasPermissionsByReference` --- .../authorization-client.adapter.spec.ts | 24 +++++++++---------- .../authorization-client.adapter.ts | 6 ++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index d13142389a4..6951173a165 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -56,7 +56,7 @@ describe(AuthorizationClientAdapter.name, () => { expect(service).toBeDefined(); }); - describe('checkPermissionByReferences', () => { + describe('checkPermissionsByReference', () => { describe('when authorizationReferenceControllerAuthorizeByReference resolves successful', () => { const setup = (props: { isAuthorized: boolean }) => { const params = { @@ -84,7 +84,7 @@ describe(AuthorizationClientAdapter.name, () => { const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; - await service.checkPermissionByReferences(params); + await service.checkPermissionsByReference(params); expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( params, @@ -96,7 +96,7 @@ describe(AuthorizationClientAdapter.name, () => { it('should resolve', async () => { const { params } = setup({ isAuthorized: true }); - await expect(service.checkPermissionByReferences(params)).resolves.toBeUndefined(); + await expect(service.checkPermissionsByReference(params)).resolves.toBeUndefined(); }); }); @@ -106,7 +106,7 @@ describe(AuthorizationClientAdapter.name, () => { const expectedError = new AuthorizationForbiddenLoggableException(params); - await expect(service.checkPermissionByReferences(params)).rejects.toThrowError(expectedError); + await expect(service.checkPermissionsByReference(params)).rejects.toThrowError(expectedError); }); }); }); @@ -133,12 +133,12 @@ describe(AuthorizationClientAdapter.name, () => { const expectedError = new AuthorizationErrorLoggableException(error, params); - await expect(service.checkPermissionByReferences(params)).rejects.toThrowError(expectedError); + await expect(service.checkPermissionsByReference(params)).rejects.toThrowError(expectedError); }); }); }); - describe('hasPermissionByReferences', () => { + describe('hasPermissionsByReference', () => { describe('when authorizationReferenceControllerAuthorizeByReference resolves successful', () => { const setup = () => { const params = { @@ -166,7 +166,7 @@ describe(AuthorizationClientAdapter.name, () => { const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; - await service.hasPermissionByReferences(params); + await service.hasPermissionsByReference(params); expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( params, @@ -177,7 +177,7 @@ describe(AuthorizationClientAdapter.name, () => { it('should return isAuthorized', async () => { const { params, response } = setup(); - const result = await service.hasPermissionByReferences(params); + const result = await service.hasPermissionsByReference(params); expect(result).toEqual(response.data.isAuthorized); }); @@ -217,7 +217,7 @@ describe(AuthorizationClientAdapter.name, () => { const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; - await adapter.hasPermissionByReferences(params); + await adapter.hasPermissionsByReference(params); expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( params, @@ -260,7 +260,7 @@ describe(AuthorizationClientAdapter.name, () => { const expectedOptions = { headers: { authorization: `Bearer ${jwtToken}` } }; - await adapter.hasPermissionByReferences(params); + await adapter.hasPermissionsByReference(params); expect(authorizationApi.authorizationReferenceControllerAuthorizeByReference).toHaveBeenCalledWith( params, @@ -291,7 +291,7 @@ describe(AuthorizationClientAdapter.name, () => { it('should throw an UnauthorizedException', async () => { const { params, adapter } = setup(); - await expect(adapter.hasPermissionByReferences(params)).rejects.toThrowError(UnauthorizedException); + await expect(adapter.hasPermissionsByReference(params)).rejects.toThrowError(UnauthorizedException); }); }); @@ -317,7 +317,7 @@ describe(AuthorizationClientAdapter.name, () => { const expectedError = new AuthorizationErrorLoggableException(error, params); - await expect(service.hasPermissionByReferences(params)).rejects.toThrowError(expectedError); + await expect(service.hasPermissionsByReference(params)).rejects.toThrowError(expectedError); }); }); }); diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index 06fa17af377..3cf31935dcc 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -10,14 +10,14 @@ import { AuthorizationErrorLoggableException, AuthorizationForbiddenLoggableExce export class AuthorizationClientAdapter { constructor(private readonly authorizationApi: AuthorizationApi, @Inject(REQUEST) private request: Request) {} - public async checkPermissionByReferences(params: AuthorizationBodyParams): Promise { - const hasPermission = await this.hasPermissionByReferences(params); + public async checkPermissionsByReference(params: AuthorizationBodyParams): Promise { + const hasPermission = await this.hasPermissionsByReference(params); if (!hasPermission) { throw new AuthorizationForbiddenLoggableException(params); } } - public async hasPermissionByReferences(params: AuthorizationBodyParams): Promise { + public async hasPermissionsByReference(params: AuthorizationBodyParams): Promise { const jwt = this.getJWT(); try { From 0d07a81771986e01a5346ff87999ca9147dd102a Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Wed, 12 Jun 2024 14:34:43 +0200 Subject: [PATCH 33/40] BC-6453 - move auth header creation to separate function `createOptionParams` --- .../authorization-client.adapter.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index 3cf31935dcc..3c6e625ddcc 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -1,5 +1,6 @@ import { Inject, Injectable, UnauthorizedException } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; +import { RawAxiosRequestConfig } from 'axios'; import cookie from 'cookie'; import { Request } from 'express'; import { ExtractJwt, JwtFromRequestFunction } from 'passport-jwt'; @@ -18,12 +19,13 @@ export class AuthorizationClientAdapter { } public async hasPermissionsByReference(params: AuthorizationBodyParams): Promise { - const jwt = this.getJWT(); + const options = this.createOptionParams(); try { - const response = await this.authorizationApi.authorizationReferenceControllerAuthorizeByReference(params, { - headers: { authorization: `Bearer ${jwt}` }, - }); + const response = await this.authorizationApi.authorizationReferenceControllerAuthorizeByReference( + params, + options + ); const hasPermission = response.data.isAuthorized; @@ -33,6 +35,13 @@ export class AuthorizationClientAdapter { } } + private createOptionParams(): RawAxiosRequestConfig { + const jwt = this.getJWT(); + const options: RawAxiosRequestConfig = { headers: { authorization: `Bearer ${jwt}` } }; + + return options; + } + private getJWT(): string { const getJWT = ExtractJwt.fromExtractors([ExtractJwt.fromAuthHeaderAsBearerToken(), this.fromCookie('jwt')]); const jwt = getJWT(this.request) || this.request.headers.authorization; From ca37249c075c0db7e7c653d13d42ae1df3376306 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Wed, 12 Jun 2024 14:37:17 +0200 Subject: [PATCH 34/40] BC-6453 - remove loggable tests --- ...orization-error.loggable-exception.spec.ts | 45 ------------------- ...ation-forbidden.loggable-exception.spec.ts | 41 ----------------- 2 files changed, 86 deletions(-) delete mode 100644 apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts delete mode 100644 apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.spec.ts diff --git a/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts b/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts deleted file mode 100644 index 40831a5212a..00000000000 --- a/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Action, AuthorizationBodyParamsReferenceType } from '../authorization-api-client'; -import { AuthorizationErrorLoggableException } from './authorization-error.loggable-exception'; - -describe('AuthorizationErrorLoggableException', () => { - describe('getLogMessage', () => { - const setup = () => { - const error = new Error('testError'); - - const params = { - context: { - action: Action.READ, - requiredPermissions: [], - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; - - const exception = new AuthorizationErrorLoggableException(error, params); - - return { - error, - exception, - params, - }; - }; - - it('should log the correct message', () => { - const { error, exception, params } = setup(); - - const result = exception.getLogMessage(); - - expect(result).toEqual({ - type: 'INTERNAL_SERVER_ERROR', - error, - stack: expect.any(String), - data: { - action: params.context.action, - referenceId: params.referenceId, - referenceType: params.referenceType, - requiredPermissions: params.context.requiredPermissions.join(','), - }, - }); - }); - }); -}); diff --git a/apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.spec.ts b/apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.spec.ts deleted file mode 100644 index 75b19806969..00000000000 --- a/apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.spec.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { AuthorizationForbiddenLoggableException } from './authorization-forbidden.loggable-exception'; -import { Action, AuthorizationBodyParamsReferenceType } from '../authorization-api-client'; - -describe('AuthorizationForbiddenLoggableException', () => { - describe('getLogMessage', () => { - const setup = () => { - const params = { - context: { - action: Action.READ, - requiredPermissions: [], - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; - - const exception = new AuthorizationForbiddenLoggableException(params); - - return { - exception, - params, - }; - }; - - it('should log the correct message', () => { - const { exception, params } = setup(); - - const result = exception.getLogMessage(); - - expect(result).toEqual({ - type: 'FORBIDDEN_EXCEPTION', - stack: expect.any(String), - data: { - action: params.context.action, - referenceId: params.referenceId, - referenceType: params.referenceType, - requiredPermissions: params.context.requiredPermissions.join(','), - }, - }); - }); - }); -}); From eeb78a523b3ec3185b2e988a5090e61030f35788 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Thu, 13 Jun 2024 08:56:56 +0200 Subject: [PATCH 35/40] BC-6453 - replace `UnauthorizedException` with `AuthorizationErrorLoggableException` --- .../authorization-client.adapter.spec.ts | 17 ++++++++++------- .../authorization-client.adapter.ts | 14 +++++++------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index 6951173a165..7bf0ba5ba81 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -1,5 +1,4 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest'; -import { UnauthorizedException } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; import { Test, TestingModule } from '@nestjs/testing'; import { AxiosResponse } from 'axios'; @@ -285,21 +284,22 @@ describe(AuthorizationClientAdapter.name, () => { }); const adapter = new AuthorizationClientAdapter(authorizationApi, request); - return { params, adapter }; + const error = new Error('Authentication is required.'); + + return { params, adapter, error }; }; it('should throw an UnauthorizedException', async () => { - const { params, adapter } = setup(); + const { params, adapter, error } = setup(); - await expect(adapter.hasPermissionsByReference(params)).rejects.toThrowError(UnauthorizedException); + const expectedError = new AuthorizationErrorLoggableException(error, params); + + await expect(adapter.hasPermissionsByReference(params)).rejects.toThrowError(expectedError); }); }); describe('when authorizationReferenceControllerAuthorizeByReference returns error', () => { const setup = () => { - const error = new Error('testError'); - authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); - const params = { context: { action: Action.READ, @@ -309,6 +309,9 @@ describe(AuthorizationClientAdapter.name, () => { referenceId: 'someReferenceId', }; + const error = new Error('testError'); + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); + return { params, error }; }; diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index 3c6e625ddcc..157aec77f34 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -1,4 +1,4 @@ -import { Inject, Injectable, UnauthorizedException } from '@nestjs/common'; +import { Inject, Injectable } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; import { RawAxiosRequestConfig } from 'axios'; import cookie from 'cookie'; @@ -19,14 +19,13 @@ export class AuthorizationClientAdapter { } public async hasPermissionsByReference(params: AuthorizationBodyParams): Promise { - const options = this.createOptionParams(); + const options = this.createOptionParams(params); try { const response = await this.authorizationApi.authorizationReferenceControllerAuthorizeByReference( params, options ); - const hasPermission = response.data.isAuthorized; return hasPermission; @@ -35,19 +34,20 @@ export class AuthorizationClientAdapter { } } - private createOptionParams(): RawAxiosRequestConfig { - const jwt = this.getJWT(); + private createOptionParams(params: AuthorizationBodyParams): RawAxiosRequestConfig { + const jwt = this.getJWT(params); const options: RawAxiosRequestConfig = { headers: { authorization: `Bearer ${jwt}` } }; return options; } - private getJWT(): string { + private getJWT(params: AuthorizationBodyParams): string { const getJWT = ExtractJwt.fromExtractors([ExtractJwt.fromAuthHeaderAsBearerToken(), this.fromCookie('jwt')]); const jwt = getJWT(this.request) || this.request.headers.authorization; if (!jwt) { - throw new UnauthorizedException('Authentication is required.'); + const error = new Error('Authentication is required.'); + throw new AuthorizationErrorLoggableException(error, params); } return jwt; From 75117415a950095e9c03cb2efe9d967182a69d28 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Thu, 13 Jun 2024 09:03:54 +0200 Subject: [PATCH 36/40] BC-6453 - fix naming of unit test --- .../authorization-client/authorization-client.adapter.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index 7bf0ba5ba81..4929ebb0762 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -289,7 +289,7 @@ describe(AuthorizationClientAdapter.name, () => { return { params, adapter, error }; }; - it('should throw an UnauthorizedException', async () => { + it('should throw an AuthorizationErrorLoggableException', async () => { const { params, adapter, error } = setup(); const expectedError = new AuthorizationErrorLoggableException(error, params); From 1ebdf2efadaa95b84cde4f20d63063f0547633b2 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Thu, 13 Jun 2024 09:58:54 +0200 Subject: [PATCH 37/40] BC-6453 - extend error handling in `AuthorizationErrorLoggableException` --- .../authorization-client/authorization-client.adapter.ts | 2 +- .../error/authorization-error.loggable-exception.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts index 157aec77f34..daf155fdf14 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.ts @@ -30,7 +30,7 @@ export class AuthorizationClientAdapter { return hasPermission; } catch (error) { - throw new AuthorizationErrorLoggableException(error as Error, params); + throw new AuthorizationErrorLoggableException(error, params); } } diff --git a/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.ts b/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.ts index 0e622d28271..2d35d90f7dc 100644 --- a/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.ts +++ b/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.ts @@ -4,14 +4,15 @@ import { ErrorLogMessage } from '@src/core/logger/types'; import { AuthorizationBodyParams } from '../authorization-api-client'; export class AuthorizationErrorLoggableException extends ForbiddenException implements Loggable { - constructor(private readonly error: Error, private readonly params: AuthorizationBodyParams) { + constructor(private readonly error: unknown, private readonly params: AuthorizationBodyParams) { super(); } getLogMessage(): ErrorLogMessage { + const error = this.error instanceof Error ? this.error : new Error(JSON.stringify(this.error)); const message: ErrorLogMessage = { type: 'INTERNAL_SERVER_ERROR', - error: this.error, + error, stack: this.stack, data: { action: this.params.context.action, From ec9ddddd025d7a5b0b43fb4a4e50392402898355 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Thu, 13 Jun 2024 11:41:18 +0200 Subject: [PATCH 38/40] BC-6453 - extend unit tests for `AuthorizationClientAdapter` to include loggables --- .../authorization-client.adapter.spec.ts | 275 ++++++++++++++++-- 1 file changed, 243 insertions(+), 32 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index 4929ebb0762..d9339e0f22a 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -107,32 +107,137 @@ describe(AuthorizationClientAdapter.name, () => { await expect(service.checkPermissionsByReference(params)).rejects.toThrowError(expectedError); }); + + it('should have correct log message', async () => { + const { params } = setup({ isAuthorized: false }); + + const expectedLogMessage = { + type: 'FORBIDDEN_EXCEPTION', + stack: expect.any(String), + data: { + action: params.context.action, + referenceId: params.referenceId, + referenceType: params.referenceType, + requiredPermissions: params.context.requiredPermissions.join(','), + }, + }; + + try { + await service.checkPermissionsByReference(params); + // Fail test if above expression doesn't throw anything. + expect(true).toBe(false); + } catch (e) { + const logMessage = (e as AuthorizationForbiddenLoggableException).getLogMessage(); + + expect(logMessage).toEqual(expectedLogMessage); + } + }); }); }); describe('when authorizationReferenceControllerAuthorizeByReference returns error', () => { - const setup = () => { - const error = new Error('testError'); - authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); + describe('when error is instance of Error', () => { + const setup = () => { + const error = new Error('testError'); + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); + + const params = { + context: { + action: Action.READ, + requiredPermissions, + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; - const params = { - context: { - action: Action.READ, - requiredPermissions, - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', + return { params, error }; }; - return { params, error }; - }; + it('should throw AuthorizationErrorLoggableException', async () => { + const { params, error } = setup(); - it('should throw AuthorizationErrorLoggableException', async () => { - const { params, error } = setup(); + const expectedError = new AuthorizationErrorLoggableException(error, params); - const expectedError = new AuthorizationErrorLoggableException(error, params); + await expect(service.checkPermissionsByReference(params)).rejects.toThrowError(expectedError); + }); - await expect(service.checkPermissionsByReference(params)).rejects.toThrowError(expectedError); + it('should have correct log message', async () => { + const { params, error } = setup(); + + const expectedLogMessage = { + type: 'INTERNAL_SERVER_ERROR', + error, + stack: expect.any(String), + data: { + action: params.context.action, + referenceId: params.referenceId, + referenceType: params.referenceType, + requiredPermissions: params.context.requiredPermissions.join(','), + }, + }; + + try { + await service.hasPermissionsByReference(params); + // Fail test if above expression doesn't throw anything. + expect(true).toBe(false); + } catch (e) { + const logMessage = (e as AuthorizationErrorLoggableException).getLogMessage(); + + expect(logMessage).toEqual(expectedLogMessage); + } + }); + }); + + describe('when error is NOT instance of Error', () => { + const setup = () => { + const params = { + context: { + action: Action.READ, + requiredPermissions, + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const error = { code: '123', message: 'testError' }; + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); + + return { params, error }; + }; + + it('should throw AuthorizationErrorLoggableException', async () => { + const { params, error } = setup(); + + const expectedError = new AuthorizationErrorLoggableException(error, params); + + await expect(service.hasPermissionsByReference(params)).rejects.toThrowError(expectedError); + }); + + it('should have correct log message', async () => { + const { params, error } = setup(); + + const expectedLogMessage = { + type: 'INTERNAL_SERVER_ERROR', + error: new Error(JSON.stringify(error)), + stack: expect.any(String), + data: { + action: params.context.action, + referenceId: params.referenceId, + referenceType: params.referenceType, + requiredPermissions: params.context.requiredPermissions.join(','), + }, + }; + + try { + await service.hasPermissionsByReference(params); + // Fail test if above expression doesn't throw anything. + expect(true).toBe(false); + } catch (e) { + const logMessage = (e as AuthorizationErrorLoggableException).getLogMessage(); + + expect(logMessage).toEqual(expectedLogMessage); + } + }); }); }); }); @@ -296,31 +401,137 @@ describe(AuthorizationClientAdapter.name, () => { await expect(adapter.hasPermissionsByReference(params)).rejects.toThrowError(expectedError); }); + + it('should have correct log message', async () => { + const { params, adapter, error } = setup(); + + const expectedLogMessage = { + type: 'INTERNAL_SERVER_ERROR', + error, + stack: expect.any(String), + data: { + action: params.context.action, + referenceId: params.referenceId, + referenceType: params.referenceType, + requiredPermissions: params.context.requiredPermissions.join(','), + }, + }; + + try { + await adapter.hasPermissionsByReference(params); + // Fail test if above expression doesn't throw anything. + expect(true).toBe(false); + } catch (e) { + const logMessage = (e as AuthorizationErrorLoggableException).getLogMessage(); + + expect(logMessage).toEqual(expectedLogMessage); + } + }); }); describe('when authorizationReferenceControllerAuthorizeByReference returns error', () => { - const setup = () => { - const params = { - context: { - action: Action.READ, - requiredPermissions, - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', + describe('when error is instance of Error', () => { + const setup = () => { + const params = { + context: { + action: Action.READ, + requiredPermissions, + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const error = new Error('testError'); + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); + + return { params, error }; }; - const error = new Error('testError'); - authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); + it('should throw AuthorizationErrorLoggableException', async () => { + const { params, error } = setup(); - return { params, error }; - }; + const expectedError = new AuthorizationErrorLoggableException(error, params); - it('should throw AuthorizationErrorLoggableException', async () => { - const { params, error } = setup(); + await expect(service.hasPermissionsByReference(params)).rejects.toThrowError(expectedError); + }); - const expectedError = new AuthorizationErrorLoggableException(error, params); + it('should have correct log message', async () => { + const { params, error } = setup(); + + const expectedLogMessage = { + type: 'INTERNAL_SERVER_ERROR', + error, + stack: expect.any(String), + data: { + action: params.context.action, + referenceId: params.referenceId, + referenceType: params.referenceType, + requiredPermissions: params.context.requiredPermissions.join(','), + }, + }; + + try { + await service.hasPermissionsByReference(params); + // Fail test if above expression doesn't throw anything. + expect(true).toBe(false); + } catch (e) { + const logMessage = (e as AuthorizationErrorLoggableException).getLogMessage(); + + expect(logMessage).toEqual(expectedLogMessage); + } + }); + }); + + describe('when error is NOT instance of Error', () => { + const setup = () => { + const params = { + context: { + action: Action.READ, + requiredPermissions, + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const error = { code: '123', message: 'testError' }; + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); - await expect(service.hasPermissionsByReference(params)).rejects.toThrowError(expectedError); + return { params, error }; + }; + + it('should throw AuthorizationErrorLoggableException', async () => { + const { params, error } = setup(); + + const expectedError = new AuthorizationErrorLoggableException(error, params); + + await expect(service.hasPermissionsByReference(params)).rejects.toThrowError(expectedError); + }); + + it('should have correct log message', async () => { + const { params, error } = setup(); + + const expectedLogMessage = { + type: 'INTERNAL_SERVER_ERROR', + error: new Error(JSON.stringify(error)), + stack: expect.any(String), + data: { + action: params.context.action, + referenceId: params.referenceId, + referenceType: params.referenceType, + requiredPermissions: params.context.requiredPermissions.join(','), + }, + }; + + try { + await service.hasPermissionsByReference(params); + // Fail test if above expression doesn't throw anything. + expect(true).toBe(false); + } catch (e) { + const logMessage = (e as AuthorizationErrorLoggableException).getLogMessage(); + + expect(logMessage).toEqual(expectedLogMessage); + } + }); }); }); }); From 50698182dfb7abbfbf5040f39c26b19c843fd0fd Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Thu, 13 Jun 2024 13:13:09 +0200 Subject: [PATCH 39/40] BC-6453 - re-add loggable tests --- ...orization-error.loggable-exception.spec.ts | 45 +++++++++++++++++++ ...ation-forbidden.loggable-exception.spec.ts | 41 +++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts create mode 100644 apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.spec.ts diff --git a/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts b/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts new file mode 100644 index 00000000000..40831a5212a --- /dev/null +++ b/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts @@ -0,0 +1,45 @@ +import { Action, AuthorizationBodyParamsReferenceType } from '../authorization-api-client'; +import { AuthorizationErrorLoggableException } from './authorization-error.loggable-exception'; + +describe('AuthorizationErrorLoggableException', () => { + describe('getLogMessage', () => { + const setup = () => { + const error = new Error('testError'); + + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const exception = new AuthorizationErrorLoggableException(error, params); + + return { + error, + exception, + params, + }; + }; + + it('should log the correct message', () => { + const { error, exception, params } = setup(); + + const result = exception.getLogMessage(); + + expect(result).toEqual({ + type: 'INTERNAL_SERVER_ERROR', + error, + stack: expect.any(String), + data: { + action: params.context.action, + referenceId: params.referenceId, + referenceType: params.referenceType, + requiredPermissions: params.context.requiredPermissions.join(','), + }, + }); + }); + }); +}); diff --git a/apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.spec.ts b/apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.spec.ts new file mode 100644 index 00000000000..75b19806969 --- /dev/null +++ b/apps/server/src/infra/authorization-client/error/authorization-forbidden.loggable-exception.spec.ts @@ -0,0 +1,41 @@ +import { AuthorizationForbiddenLoggableException } from './authorization-forbidden.loggable-exception'; +import { Action, AuthorizationBodyParamsReferenceType } from '../authorization-api-client'; + +describe('AuthorizationForbiddenLoggableException', () => { + describe('getLogMessage', () => { + const setup = () => { + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const exception = new AuthorizationForbiddenLoggableException(params); + + return { + exception, + params, + }; + }; + + it('should log the correct message', () => { + const { exception, params } = setup(); + + const result = exception.getLogMessage(); + + expect(result).toEqual({ + type: 'FORBIDDEN_EXCEPTION', + stack: expect.any(String), + data: { + action: params.context.action, + referenceId: params.referenceId, + referenceType: params.referenceType, + requiredPermissions: params.context.requiredPermissions.join(','), + }, + }); + }); + }); +}); From 558bae8da41dde396db354db3278eaa55d7117c8 Mon Sep 17 00:00:00 2001 From: Constantin Bergatt Date: Thu, 13 Jun 2024 13:25:53 +0200 Subject: [PATCH 40/40] BC-6453 - remove loggable tests from `AuthorizationClientAdapter` unit tests and extend own unit tests --- .../authorization-client.adapter.spec.ts | 275 ++---------------- ...orization-error.loggable-exception.spec.ts | 109 ++++--- 2 files changed, 108 insertions(+), 276 deletions(-) diff --git a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts index d9339e0f22a..35d08e38221 100644 --- a/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts +++ b/apps/server/src/infra/authorization-client/authorization-client.adapter.spec.ts @@ -107,137 +107,32 @@ describe(AuthorizationClientAdapter.name, () => { await expect(service.checkPermissionsByReference(params)).rejects.toThrowError(expectedError); }); - - it('should have correct log message', async () => { - const { params } = setup({ isAuthorized: false }); - - const expectedLogMessage = { - type: 'FORBIDDEN_EXCEPTION', - stack: expect.any(String), - data: { - action: params.context.action, - referenceId: params.referenceId, - referenceType: params.referenceType, - requiredPermissions: params.context.requiredPermissions.join(','), - }, - }; - - try { - await service.checkPermissionsByReference(params); - // Fail test if above expression doesn't throw anything. - expect(true).toBe(false); - } catch (e) { - const logMessage = (e as AuthorizationForbiddenLoggableException).getLogMessage(); - - expect(logMessage).toEqual(expectedLogMessage); - } - }); }); }); describe('when authorizationReferenceControllerAuthorizeByReference returns error', () => { - describe('when error is instance of Error', () => { - const setup = () => { - const error = new Error('testError'); - authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); - - const params = { - context: { - action: Action.READ, - requiredPermissions, - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; - - return { params, error }; - }; - - it('should throw AuthorizationErrorLoggableException', async () => { - const { params, error } = setup(); - - const expectedError = new AuthorizationErrorLoggableException(error, params); - - await expect(service.checkPermissionsByReference(params)).rejects.toThrowError(expectedError); - }); - - it('should have correct log message', async () => { - const { params, error } = setup(); - - const expectedLogMessage = { - type: 'INTERNAL_SERVER_ERROR', - error, - stack: expect.any(String), - data: { - action: params.context.action, - referenceId: params.referenceId, - referenceType: params.referenceType, - requiredPermissions: params.context.requiredPermissions.join(','), - }, - }; - - try { - await service.hasPermissionsByReference(params); - // Fail test if above expression doesn't throw anything. - expect(true).toBe(false); - } catch (e) { - const logMessage = (e as AuthorizationErrorLoggableException).getLogMessage(); - - expect(logMessage).toEqual(expectedLogMessage); - } - }); - }); - - describe('when error is NOT instance of Error', () => { - const setup = () => { - const params = { - context: { - action: Action.READ, - requiredPermissions, - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; - - const error = { code: '123', message: 'testError' }; - authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); - - return { params, error }; + const setup = () => { + const params = { + context: { + action: Action.READ, + requiredPermissions, + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', }; - it('should throw AuthorizationErrorLoggableException', async () => { - const { params, error } = setup(); + const error = new Error('testError'); + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); - const expectedError = new AuthorizationErrorLoggableException(error, params); - - await expect(service.hasPermissionsByReference(params)).rejects.toThrowError(expectedError); - }); + return { params, error }; + }; - it('should have correct log message', async () => { - const { params, error } = setup(); - - const expectedLogMessage = { - type: 'INTERNAL_SERVER_ERROR', - error: new Error(JSON.stringify(error)), - stack: expect.any(String), - data: { - action: params.context.action, - referenceId: params.referenceId, - referenceType: params.referenceType, - requiredPermissions: params.context.requiredPermissions.join(','), - }, - }; + it('should throw AuthorizationErrorLoggableException', async () => { + const { params, error } = setup(); - try { - await service.hasPermissionsByReference(params); - // Fail test if above expression doesn't throw anything. - expect(true).toBe(false); - } catch (e) { - const logMessage = (e as AuthorizationErrorLoggableException).getLogMessage(); + const expectedError = new AuthorizationErrorLoggableException(error, params); - expect(logMessage).toEqual(expectedLogMessage); - } - }); + await expect(service.checkPermissionsByReference(params)).rejects.toThrowError(expectedError); }); }); }); @@ -401,137 +296,31 @@ describe(AuthorizationClientAdapter.name, () => { await expect(adapter.hasPermissionsByReference(params)).rejects.toThrowError(expectedError); }); - - it('should have correct log message', async () => { - const { params, adapter, error } = setup(); - - const expectedLogMessage = { - type: 'INTERNAL_SERVER_ERROR', - error, - stack: expect.any(String), - data: { - action: params.context.action, - referenceId: params.referenceId, - referenceType: params.referenceType, - requiredPermissions: params.context.requiredPermissions.join(','), - }, - }; - - try { - await adapter.hasPermissionsByReference(params); - // Fail test if above expression doesn't throw anything. - expect(true).toBe(false); - } catch (e) { - const logMessage = (e as AuthorizationErrorLoggableException).getLogMessage(); - - expect(logMessage).toEqual(expectedLogMessage); - } - }); }); describe('when authorizationReferenceControllerAuthorizeByReference returns error', () => { - describe('when error is instance of Error', () => { - const setup = () => { - const params = { - context: { - action: Action.READ, - requiredPermissions, - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; - - const error = new Error('testError'); - authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); - - return { params, error }; - }; - - it('should throw AuthorizationErrorLoggableException', async () => { - const { params, error } = setup(); - - const expectedError = new AuthorizationErrorLoggableException(error, params); - - await expect(service.hasPermissionsByReference(params)).rejects.toThrowError(expectedError); - }); - - it('should have correct log message', async () => { - const { params, error } = setup(); - - const expectedLogMessage = { - type: 'INTERNAL_SERVER_ERROR', - error, - stack: expect.any(String), - data: { - action: params.context.action, - referenceId: params.referenceId, - referenceType: params.referenceType, - requiredPermissions: params.context.requiredPermissions.join(','), - }, - }; - - try { - await service.hasPermissionsByReference(params); - // Fail test if above expression doesn't throw anything. - expect(true).toBe(false); - } catch (e) { - const logMessage = (e as AuthorizationErrorLoggableException).getLogMessage(); - - expect(logMessage).toEqual(expectedLogMessage); - } - }); - }); - - describe('when error is NOT instance of Error', () => { - const setup = () => { - const params = { - context: { - action: Action.READ, - requiredPermissions, - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', - }; - - const error = { code: '123', message: 'testError' }; - authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); - - return { params, error }; + const setup = () => { + const params = { + context: { + action: Action.READ, + requiredPermissions, + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', }; - it('should throw AuthorizationErrorLoggableException', async () => { - const { params, error } = setup(); - - const expectedError = new AuthorizationErrorLoggableException(error, params); + const error = new Error('testError'); + authorizationApi.authorizationReferenceControllerAuthorizeByReference.mockRejectedValueOnce(error); - await expect(service.hasPermissionsByReference(params)).rejects.toThrowError(expectedError); - }); + return { params, error }; + }; - it('should have correct log message', async () => { - const { params, error } = setup(); - - const expectedLogMessage = { - type: 'INTERNAL_SERVER_ERROR', - error: new Error(JSON.stringify(error)), - stack: expect.any(String), - data: { - action: params.context.action, - referenceId: params.referenceId, - referenceType: params.referenceType, - requiredPermissions: params.context.requiredPermissions.join(','), - }, - }; + it('should throw AuthorizationErrorLoggableException', async () => { + const { params, error } = setup(); - try { - await service.hasPermissionsByReference(params); - // Fail test if above expression doesn't throw anything. - expect(true).toBe(false); - } catch (e) { - const logMessage = (e as AuthorizationErrorLoggableException).getLogMessage(); + const expectedError = new AuthorizationErrorLoggableException(error, params); - expect(logMessage).toEqual(expectedLogMessage); - } - }); + await expect(service.hasPermissionsByReference(params)).rejects.toThrowError(expectedError); }); }); }); diff --git a/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts b/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts index 40831a5212a..601cad990fc 100644 --- a/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts +++ b/apps/server/src/infra/authorization-client/error/authorization-error.loggable-exception.spec.ts @@ -2,43 +2,86 @@ import { Action, AuthorizationBodyParamsReferenceType } from '../authorization-a import { AuthorizationErrorLoggableException } from './authorization-error.loggable-exception'; describe('AuthorizationErrorLoggableException', () => { - describe('getLogMessage', () => { - const setup = () => { - const error = new Error('testError'); - - const params = { - context: { - action: Action.READ, - requiredPermissions: [], - }, - referenceType: AuthorizationBodyParamsReferenceType.COURSES, - referenceId: 'someReferenceId', + describe('when error is instance of Error', () => { + describe('getLogMessage', () => { + const setup = () => { + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const error = new Error('testError'); + const exception = new AuthorizationErrorLoggableException(error, params); + + return { + params, + error, + exception, + }; }; - const exception = new AuthorizationErrorLoggableException(error, params); + it('should log the correct message', () => { + const { params, error, exception } = setup(); + + const result = exception.getLogMessage(); + + expect(result).toEqual({ + type: 'INTERNAL_SERVER_ERROR', + error, + stack: expect.any(String), + data: { + action: params.context.action, + referenceId: params.referenceId, + referenceType: params.referenceType, + requiredPermissions: params.context.requiredPermissions.join(','), + }, + }); + }); + }); + }); + + describe('when error is NOT instance of Error', () => { + describe('getLogMessage', () => { + const setup = () => { + const params = { + context: { + action: Action.READ, + requiredPermissions: [], + }, + referenceType: AuthorizationBodyParamsReferenceType.COURSES, + referenceId: 'someReferenceId', + }; + + const error = { code: '123', message: 'testError' }; + const exception = new AuthorizationErrorLoggableException(error, params); - return { - error, - exception, - params, + return { + params, + error, + exception, + }; }; - }; - - it('should log the correct message', () => { - const { error, exception, params } = setup(); - - const result = exception.getLogMessage(); - - expect(result).toEqual({ - type: 'INTERNAL_SERVER_ERROR', - error, - stack: expect.any(String), - data: { - action: params.context.action, - referenceId: params.referenceId, - referenceType: params.referenceType, - requiredPermissions: params.context.requiredPermissions.join(','), - }, + + it('should log the correct message', () => { + const { params, error, exception } = setup(); + + const result = exception.getLogMessage(); + + expect(result).toEqual({ + type: 'INTERNAL_SERVER_ERROR', + error: new Error(JSON.stringify(error)), + stack: expect.any(String), + data: { + action: params.context.action, + referenceId: params.referenceId, + referenceType: params.referenceType, + requiredPermissions: params.context.requiredPermissions.join(','), + }, + }); }); }); });