From 21d8cb91d9a10a6eb6100571a1b1643d56d16573 Mon Sep 17 00:00:00 2001 From: Sergej Hoffmann <97111299+SevenWaysDP@users.noreply.github.com> Date: Fri, 24 Jan 2025 10:18:13 +0100 Subject: [PATCH] BC-8823 - Generate Schulcloud-Server ApiClient (#3521) --- src/serverApi/v3/api.ts | 717 +++++++++++++++++++------------ src/store/env-config-defaults.ts | 1 + src/store/env-config.ts | 8 +- src/store/env-config.unit.ts | 12 +- 4 files changed, 458 insertions(+), 280 deletions(-) diff --git a/src/serverApi/v3/api.ts b/src/serverApi/v3/api.ts index f10d2a9af8..f477dd1211 100644 --- a/src/serverApi/v3/api.ts +++ b/src/serverApi/v3/api.ts @@ -32,19 +32,19 @@ export interface AccountByIdBodyParams { * @type {string} * @memberof AccountByIdBodyParams */ - username?: string | null; + username?: string; /** * The new password for the user. * @type {string} * @memberof AccountByIdBodyParams */ - password?: string | null; + password?: string; /** * The new activation state of the user. * @type {boolean} * @memberof AccountByIdBodyParams */ - activated?: boolean | null; + activated?: boolean; } /** * @@ -1703,6 +1703,12 @@ export interface ConfigResponse { * @memberof ConfigResponse */ FEATURE_EXTERNAL_SYSTEM_LOGOUT_ENABLED: boolean; + /** + * + * @type {boolean} + * @memberof ConfigResponse + */ + FEATURE_VIDIS_MEDIA_ACTIVATIONS_ENABLED: boolean; } /** * @@ -2535,13 +2541,13 @@ export interface CreateBoardBodyParams { */ parentId: string; /** - * + * The type of the parent * @type {BoardParentType} * @memberof CreateBoardBodyParams */ parentType: BoardParentType; /** - * + * The layout of the board * @type {BoardLayout} * @memberof CreateBoardBodyParams */ @@ -2597,7 +2603,7 @@ export enum CreateCardBodyParamsRequiredEmptyElementsEnum { */ export interface CreateContentElementBodyParams { /** - * + * The type of element * @type {ContentElementType} * @memberof CreateContentElementBodyParams */ @@ -2708,7 +2714,7 @@ export interface CreateRoomBodyParams { */ name: string; /** - * + * The display color of the room * @type {RoomColor} * @memberof CreateRoomBodyParams */ @@ -3164,7 +3170,7 @@ export interface DrawingElementContent { */ export interface DrawingElementContentBody { /** - * + * the type of the updated element * @type {ContentElementType} * @memberof DrawingElementContentBody */ @@ -3400,7 +3406,7 @@ export interface ExternalToolElementContent { */ export interface ExternalToolElementContentBody { /** - * + * the type of the updated element * @type {ContentElementType} * @memberof ExternalToolElementContentBody */ @@ -3819,7 +3825,7 @@ export interface FileElementContent { */ export interface FileElementContentBody { /** - * + * the type of the updated element * @type {ContentElementType} * @memberof FileElementContentBody */ @@ -4610,7 +4616,7 @@ export interface LinkElementContent { */ export interface LinkElementContentBody { /** - * + * the type of the updated element * @type {ContentElementType} * @memberof LinkElementContentBody */ @@ -5355,7 +5361,7 @@ export interface MediaAvailableLineResponse { */ elements: Array; /** - * + * Background color of available media line * @type {MediaBoardColors} * @memberof MediaAvailableLineResponse */ @@ -5420,7 +5426,7 @@ export interface MediaBoardResponse { */ timestamps: TimestampsResponse; /** - * + * Layout of media board * @type {BoardLayout} * @memberof MediaBoardResponse */ @@ -5495,7 +5501,7 @@ export interface MediaLineResponse { */ timestamps: TimestampsResponse; /** - * + * The background color of the media line * @type {MediaBoardColors} * @memberof MediaLineResponse */ @@ -5824,7 +5830,7 @@ export interface NewsResponse { */ sourceDescription?: string; /** - * + * Target model to which the News entity is related * @type {NewsTargetModel} * @memberof NewsResponse */ @@ -6782,25 +6788,25 @@ export interface PatchMyAccountParams { * @type {string} * @memberof PatchMyAccountParams */ - passwordNew?: string | null; + passwordNew?: string; /** * The new email address for the current user. * @type {string} * @memberof PatchMyAccountParams */ - email?: string | null; + email?: string; /** * The new first name for the current user. * @type {string} * @memberof PatchMyAccountParams */ - firstName?: string | null; + firstName?: string; /** * The new last name for the current user. * @type {string} * @memberof PatchMyAccountParams */ - lastName?: string | null; + lastName?: string; } /** * @@ -7339,7 +7345,7 @@ export interface RichTextElementContent { */ export interface RichTextElementContentBody { /** - * + * the type of the updated element * @type {ContentElementType} * @memberof RichTextElementContentBody */ @@ -8696,7 +8702,7 @@ export interface SubmissionContainerElementContent { */ export interface SubmissionContainerElementContentBody { /** - * + * the type of the updated element * @type {ContentElementType} * @memberof SubmissionContainerElementContentBody */ @@ -9267,7 +9273,7 @@ export interface ToolLaunchRequestResponse { */ openNewTab?: boolean; /** - * + * Specifies the underlying type of the request * @type {LaunchType} * @memberof ToolLaunchRequestResponse */ @@ -9447,7 +9453,7 @@ export interface UpdateRoomBodyParams { */ name: string; /** - * + * The display color of the room * @type {RoomColor} * @memberof UpdateRoomBodyParams */ @@ -9968,7 +9974,7 @@ export interface VideoConferenceElementContent { */ export interface VideoConferenceElementContentBody { /** - * + * the type of the updated element * @type {ContentElementType} * @memberof VideoConferenceElementContentBody */ @@ -10018,7 +10024,7 @@ export interface VideoConferenceElementResponse { */ export interface VideoConferenceInfoResponse { /** - * + * The state of the video conference. * @type {VideoConferenceStateResponse} * @memberof VideoConferenceInfoResponse */ @@ -10778,13 +10784,18 @@ export const AdminStudentsApiAxiosParamCreator = function (configuration?: Confi * @param {number} [limit] Page limit, defaults to 10. * @param {number} [$limit] Page limit, defaults to 25. * @param {number} [$skip] Number of elements (not pages) to be skipped + * @param {object} [$sort] Sort parameter. + * @param {object} [consentStatus] * @param {Array} [classes] + * @param {object} [createdAt] + * @param {object} [lastLoginSystemChange] + * @param {object} [outdatedSince] * @param {string} [searchQuery] * @param {Array} [users] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - adminApiStudentsControllerSearchStudents: async (skip?: number, limit?: number, $limit?: number, $skip?: number, classes?: Array, searchQuery?: string, users?: Array, options: any = {}): Promise => { + adminApiStudentsControllerSearchStudents: async (skip?: number, limit?: number, $limit?: number, $skip?: number, $sort?: object, consentStatus?: object, classes?: Array, createdAt?: object, lastLoginSystemChange?: object, outdatedSince?: object, searchQuery?: string, users?: Array, options: any = {}): Promise => { const localVarPath = `/users/admin/students`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -10817,10 +10828,30 @@ export const AdminStudentsApiAxiosParamCreator = function (configuration?: Confi localVarQueryParameter['$skip'] = $skip; } + if ($sort !== undefined) { + localVarQueryParameter['$sort'] = $sort; + } + + if (consentStatus !== undefined) { + localVarQueryParameter['consentStatus'] = consentStatus; + } + if (classes) { localVarQueryParameter['classes'] = classes; } + if (createdAt !== undefined) { + localVarQueryParameter['createdAt'] = createdAt; + } + + if (lastLoginSystemChange !== undefined) { + localVarQueryParameter['lastLoginSystemChange'] = lastLoginSystemChange; + } + + if (outdatedSince !== undefined) { + localVarQueryParameter['outdatedSince'] = outdatedSince; + } + if (searchQuery !== undefined) { localVarQueryParameter['searchQuery'] = searchQuery; } @@ -10868,14 +10899,19 @@ export const AdminStudentsApiFp = function(configuration?: Configuration) { * @param {number} [limit] Page limit, defaults to 10. * @param {number} [$limit] Page limit, defaults to 25. * @param {number} [$skip] Number of elements (not pages) to be skipped + * @param {object} [$sort] Sort parameter. + * @param {object} [consentStatus] * @param {Array} [classes] + * @param {object} [createdAt] + * @param {object} [lastLoginSystemChange] + * @param {object} [outdatedSince] * @param {string} [searchQuery] * @param {Array} [users] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async adminApiStudentsControllerSearchStudents(skip?: number, limit?: number, $limit?: number, $skip?: number, classes?: Array, searchQuery?: string, users?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.adminApiStudentsControllerSearchStudents(skip, limit, $limit, $skip, classes, searchQuery, users, options); + async adminApiStudentsControllerSearchStudents(skip?: number, limit?: number, $limit?: number, $skip?: number, $sort?: object, consentStatus?: object, classes?: Array, createdAt?: object, lastLoginSystemChange?: object, outdatedSince?: object, searchQuery?: string, users?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.adminApiStudentsControllerSearchStudents(skip, limit, $limit, $skip, $sort, consentStatus, classes, createdAt, lastLoginSystemChange, outdatedSince, searchQuery, users, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } @@ -10905,14 +10941,19 @@ export const AdminStudentsApiFactory = function (configuration?: Configuration, * @param {number} [limit] Page limit, defaults to 10. * @param {number} [$limit] Page limit, defaults to 25. * @param {number} [$skip] Number of elements (not pages) to be skipped + * @param {object} [$sort] Sort parameter. + * @param {object} [consentStatus] * @param {Array} [classes] + * @param {object} [createdAt] + * @param {object} [lastLoginSystemChange] + * @param {object} [outdatedSince] * @param {string} [searchQuery] * @param {Array} [users] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - adminApiStudentsControllerSearchStudents(skip?: number, limit?: number, $limit?: number, $skip?: number, classes?: Array, searchQuery?: string, users?: Array, options?: any): AxiosPromise { - return localVarFp.adminApiStudentsControllerSearchStudents(skip, limit, $limit, $skip, classes, searchQuery, users, options).then((request) => request(axios, basePath)); + adminApiStudentsControllerSearchStudents(skip?: number, limit?: number, $limit?: number, $skip?: number, $sort?: object, consentStatus?: object, classes?: Array, createdAt?: object, lastLoginSystemChange?: object, outdatedSince?: object, searchQuery?: string, users?: Array, options?: any): AxiosPromise { + return localVarFp.adminApiStudentsControllerSearchStudents(skip, limit, $limit, $skip, $sort, consentStatus, classes, createdAt, lastLoginSystemChange, outdatedSince, searchQuery, users, options).then((request) => request(axios, basePath)); }, }; }; @@ -10940,14 +10981,19 @@ export interface AdminStudentsApiInterface { * @param {number} [limit] Page limit, defaults to 10. * @param {number} [$limit] Page limit, defaults to 25. * @param {number} [$skip] Number of elements (not pages) to be skipped + * @param {object} [$sort] Sort parameter. + * @param {object} [consentStatus] * @param {Array} [classes] + * @param {object} [createdAt] + * @param {object} [lastLoginSystemChange] + * @param {object} [outdatedSince] * @param {string} [searchQuery] * @param {Array} [users] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AdminStudentsApiInterface */ - adminApiStudentsControllerSearchStudents(skip?: number, limit?: number, $limit?: number, $skip?: number, classes?: Array, searchQuery?: string, users?: Array, options?: any): AxiosPromise; + adminApiStudentsControllerSearchStudents(skip?: number, limit?: number, $limit?: number, $skip?: number, $sort?: object, consentStatus?: object, classes?: Array, createdAt?: object, lastLoginSystemChange?: object, outdatedSince?: object, searchQuery?: string, users?: Array, options?: any): AxiosPromise; } @@ -10977,15 +11023,20 @@ export class AdminStudentsApi extends BaseAPI implements AdminStudentsApiInterfa * @param {number} [limit] Page limit, defaults to 10. * @param {number} [$limit] Page limit, defaults to 25. * @param {number} [$skip] Number of elements (not pages) to be skipped + * @param {object} [$sort] Sort parameter. + * @param {object} [consentStatus] * @param {Array} [classes] + * @param {object} [createdAt] + * @param {object} [lastLoginSystemChange] + * @param {object} [outdatedSince] * @param {string} [searchQuery] * @param {Array} [users] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AdminStudentsApi */ - public adminApiStudentsControllerSearchStudents(skip?: number, limit?: number, $limit?: number, $skip?: number, classes?: Array, searchQuery?: string, users?: Array, options?: any) { - return AdminStudentsApiFp(this.configuration).adminApiStudentsControllerSearchStudents(skip, limit, $limit, $skip, classes, searchQuery, users, options).then((request) => request(this.axios, this.basePath)); + public adminApiStudentsControllerSearchStudents(skip?: number, limit?: number, $limit?: number, $skip?: number, $sort?: object, consentStatus?: object, classes?: Array, createdAt?: object, lastLoginSystemChange?: object, outdatedSince?: object, searchQuery?: string, users?: Array, options?: any) { + return AdminStudentsApiFp(this.configuration).adminApiStudentsControllerSearchStudents(skip, limit, $limit, $skip, $sort, consentStatus, classes, createdAt, lastLoginSystemChange, outdatedSince, searchQuery, users, options).then((request) => request(this.axios, this.basePath)); } } @@ -11041,13 +11092,18 @@ export const AdminTeachersApiAxiosParamCreator = function (configuration?: Confi * @param {number} [limit] Page limit, defaults to 10. * @param {number} [$limit] Page limit, defaults to 25. * @param {number} [$skip] Number of elements (not pages) to be skipped + * @param {object} [$sort] Sort parameter. + * @param {object} [consentStatus] * @param {Array} [classes] + * @param {object} [createdAt] + * @param {object} [lastLoginSystemChange] + * @param {object} [outdatedSince] * @param {string} [searchQuery] * @param {Array} [users] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - adminApiTeachersControllerSearchTeachers: async (skip?: number, limit?: number, $limit?: number, $skip?: number, classes?: Array, searchQuery?: string, users?: Array, options: any = {}): Promise => { + adminApiTeachersControllerSearchTeachers: async (skip?: number, limit?: number, $limit?: number, $skip?: number, $sort?: object, consentStatus?: object, classes?: Array, createdAt?: object, lastLoginSystemChange?: object, outdatedSince?: object, searchQuery?: string, users?: Array, options: any = {}): Promise => { const localVarPath = `/users/admin/teachers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -11080,10 +11136,30 @@ export const AdminTeachersApiAxiosParamCreator = function (configuration?: Confi localVarQueryParameter['$skip'] = $skip; } + if ($sort !== undefined) { + localVarQueryParameter['$sort'] = $sort; + } + + if (consentStatus !== undefined) { + localVarQueryParameter['consentStatus'] = consentStatus; + } + if (classes) { localVarQueryParameter['classes'] = classes; } + if (createdAt !== undefined) { + localVarQueryParameter['createdAt'] = createdAt; + } + + if (lastLoginSystemChange !== undefined) { + localVarQueryParameter['lastLoginSystemChange'] = lastLoginSystemChange; + } + + if (outdatedSince !== undefined) { + localVarQueryParameter['outdatedSince'] = outdatedSince; + } + if (searchQuery !== undefined) { localVarQueryParameter['searchQuery'] = searchQuery; } @@ -11131,14 +11207,19 @@ export const AdminTeachersApiFp = function(configuration?: Configuration) { * @param {number} [limit] Page limit, defaults to 10. * @param {number} [$limit] Page limit, defaults to 25. * @param {number} [$skip] Number of elements (not pages) to be skipped + * @param {object} [$sort] Sort parameter. + * @param {object} [consentStatus] * @param {Array} [classes] + * @param {object} [createdAt] + * @param {object} [lastLoginSystemChange] + * @param {object} [outdatedSince] * @param {string} [searchQuery] * @param {Array} [users] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async adminApiTeachersControllerSearchTeachers(skip?: number, limit?: number, $limit?: number, $skip?: number, classes?: Array, searchQuery?: string, users?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.adminApiTeachersControllerSearchTeachers(skip, limit, $limit, $skip, classes, searchQuery, users, options); + async adminApiTeachersControllerSearchTeachers(skip?: number, limit?: number, $limit?: number, $skip?: number, $sort?: object, consentStatus?: object, classes?: Array, createdAt?: object, lastLoginSystemChange?: object, outdatedSince?: object, searchQuery?: string, users?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.adminApiTeachersControllerSearchTeachers(skip, limit, $limit, $skip, $sort, consentStatus, classes, createdAt, lastLoginSystemChange, outdatedSince, searchQuery, users, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } @@ -11168,14 +11249,19 @@ export const AdminTeachersApiFactory = function (configuration?: Configuration, * @param {number} [limit] Page limit, defaults to 10. * @param {number} [$limit] Page limit, defaults to 25. * @param {number} [$skip] Number of elements (not pages) to be skipped + * @param {object} [$sort] Sort parameter. + * @param {object} [consentStatus] * @param {Array} [classes] + * @param {object} [createdAt] + * @param {object} [lastLoginSystemChange] + * @param {object} [outdatedSince] * @param {string} [searchQuery] * @param {Array} [users] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - adminApiTeachersControllerSearchTeachers(skip?: number, limit?: number, $limit?: number, $skip?: number, classes?: Array, searchQuery?: string, users?: Array, options?: any): AxiosPromise { - return localVarFp.adminApiTeachersControllerSearchTeachers(skip, limit, $limit, $skip, classes, searchQuery, users, options).then((request) => request(axios, basePath)); + adminApiTeachersControllerSearchTeachers(skip?: number, limit?: number, $limit?: number, $skip?: number, $sort?: object, consentStatus?: object, classes?: Array, createdAt?: object, lastLoginSystemChange?: object, outdatedSince?: object, searchQuery?: string, users?: Array, options?: any): AxiosPromise { + return localVarFp.adminApiTeachersControllerSearchTeachers(skip, limit, $limit, $skip, $sort, consentStatus, classes, createdAt, lastLoginSystemChange, outdatedSince, searchQuery, users, options).then((request) => request(axios, basePath)); }, }; }; @@ -11203,14 +11289,19 @@ export interface AdminTeachersApiInterface { * @param {number} [limit] Page limit, defaults to 10. * @param {number} [$limit] Page limit, defaults to 25. * @param {number} [$skip] Number of elements (not pages) to be skipped + * @param {object} [$sort] Sort parameter. + * @param {object} [consentStatus] * @param {Array} [classes] + * @param {object} [createdAt] + * @param {object} [lastLoginSystemChange] + * @param {object} [outdatedSince] * @param {string} [searchQuery] * @param {Array} [users] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AdminTeachersApiInterface */ - adminApiTeachersControllerSearchTeachers(skip?: number, limit?: number, $limit?: number, $skip?: number, classes?: Array, searchQuery?: string, users?: Array, options?: any): AxiosPromise; + adminApiTeachersControllerSearchTeachers(skip?: number, limit?: number, $limit?: number, $skip?: number, $sort?: object, consentStatus?: object, classes?: Array, createdAt?: object, lastLoginSystemChange?: object, outdatedSince?: object, searchQuery?: string, users?: Array, options?: any): AxiosPromise; } @@ -11240,15 +11331,20 @@ export class AdminTeachersApi extends BaseAPI implements AdminTeachersApiInterfa * @param {number} [limit] Page limit, defaults to 10. * @param {number} [$limit] Page limit, defaults to 25. * @param {number} [$skip] Number of elements (not pages) to be skipped + * @param {object} [$sort] Sort parameter. + * @param {object} [consentStatus] * @param {Array} [classes] + * @param {object} [createdAt] + * @param {object} [lastLoginSystemChange] + * @param {object} [outdatedSince] * @param {string} [searchQuery] * @param {Array} [users] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AdminTeachersApi */ - public adminApiTeachersControllerSearchTeachers(skip?: number, limit?: number, $limit?: number, $skip?: number, classes?: Array, searchQuery?: string, users?: Array, options?: any) { - return AdminTeachersApiFp(this.configuration).adminApiTeachersControllerSearchTeachers(skip, limit, $limit, $skip, classes, searchQuery, users, options).then((request) => request(this.axios, this.basePath)); + public adminApiTeachersControllerSearchTeachers(skip?: number, limit?: number, $limit?: number, $skip?: number, $sort?: object, consentStatus?: object, classes?: Array, createdAt?: object, lastLoginSystemChange?: object, outdatedSince?: object, searchQuery?: string, users?: Array, options?: any) { + return AdminTeachersApiFp(this.configuration).adminApiTeachersControllerSearchTeachers(skip, limit, $limit, $skip, $sort, consentStatus, classes, createdAt, lastLoginSystemChange, outdatedSince, searchQuery, users, options).then((request) => request(this.axios, this.basePath)); } } @@ -14663,7 +14759,8 @@ export class BoardSubmissionApi extends BaseAPI implements BoardSubmissionApiInt export const CollaborativeStorageApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * Updates the CRUD Permissions(+Share) for a specific Role in a Team + * + * @summary Updates the CRUD Permissions(+Share) for a specific Role in a Team * @param {string} teamId * @param {string} roleId * @param {TeamPermissionsBody} teamPermissionsBody @@ -14720,7 +14817,8 @@ export const CollaborativeStorageApiFp = function(configuration?: Configuration) const localVarAxiosParamCreator = CollaborativeStorageApiAxiosParamCreator(configuration) return { /** - * Updates the CRUD Permissions(+Share) for a specific Role in a Team + * + * @summary Updates the CRUD Permissions(+Share) for a specific Role in a Team * @param {string} teamId * @param {string} roleId * @param {TeamPermissionsBody} teamPermissionsBody @@ -14742,7 +14840,8 @@ export const CollaborativeStorageApiFactory = function (configuration?: Configur const localVarFp = CollaborativeStorageApiFp(configuration) return { /** - * Updates the CRUD Permissions(+Share) for a specific Role in a Team + * + * @summary Updates the CRUD Permissions(+Share) for a specific Role in a Team * @param {string} teamId * @param {string} roleId * @param {TeamPermissionsBody} teamPermissionsBody @@ -14762,7 +14861,8 @@ export const CollaborativeStorageApiFactory = function (configuration?: Configur */ export interface CollaborativeStorageApiInterface { /** - * Updates the CRUD Permissions(+Share) for a specific Role in a Team + * + * @summary Updates the CRUD Permissions(+Share) for a specific Role in a Team * @param {string} teamId * @param {string} roleId * @param {TeamPermissionsBody} teamPermissionsBody @@ -14782,7 +14882,8 @@ export interface CollaborativeStorageApiInterface { */ export class CollaborativeStorageApi extends BaseAPI implements CollaborativeStorageApiInterface { /** - * Updates the CRUD Permissions(+Share) for a specific Role in a Team + * + * @summary Updates the CRUD Permissions(+Share) for a specific Role in a Team * @param {string} teamId * @param {string} roleId * @param {TeamPermissionsBody} teamPermissionsBody @@ -16577,190 +16678,6 @@ export class DashboardApi extends BaseAPI implements DashboardApiInterface { } -/** - * DefaultApi - axios parameter creator - * @export - */ -export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Useable configuration for clients - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - serverConfigControllerPublicConfig: async (options: any = {}): Promise => { - const localVarPath = `/config/public`; - // 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: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Default route to test public access - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - serverControllerGetHello: async (options: any = {}): Promise => { - const localVarPath = `/`; - // 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: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * DefaultApi - functional programming interface - * @export - */ -export const DefaultApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration) - return { - /** - * - * @summary Useable configuration for clients - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async serverConfigControllerPublicConfig(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.serverConfigControllerPublicConfig(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @summary Default route to test public access - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async serverControllerGetHello(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.serverControllerGetHello(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * DefaultApi - factory interface - * @export - */ -export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = DefaultApiFp(configuration) - return { - /** - * - * @summary Useable configuration for clients - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - serverConfigControllerPublicConfig(options?: any): AxiosPromise { - return localVarFp.serverConfigControllerPublicConfig(options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Default route to test public access - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - serverControllerGetHello(options?: any): AxiosPromise { - return localVarFp.serverControllerGetHello(options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * DefaultApi - interface - * @export - * @interface DefaultApi - */ -export interface DefaultApiInterface { - /** - * - * @summary Useable configuration for clients - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DefaultApiInterface - */ - serverConfigControllerPublicConfig(options?: any): AxiosPromise; - - /** - * - * @summary Default route to test public access - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DefaultApiInterface - */ - serverControllerGetHello(options?: any): AxiosPromise; - -} - -/** - * DefaultApi - object-oriented interface - * @export - * @class DefaultApi - * @extends {BaseAPI} - */ -export class DefaultApi extends BaseAPI implements DefaultApiInterface { - /** - * - * @summary Useable configuration for clients - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DefaultApi - */ - public serverConfigControllerPublicConfig(options?: any) { - return DefaultApiFp(this.configuration).serverConfigControllerPublicConfig(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Default route to test public access - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DefaultApi - */ - public serverControllerGetHello(options?: any) { - return DefaultApiFp(this.configuration).serverControllerGetHello(options).then((request) => request(this.axios, this.basePath)); - } -} - - /** * GroupApi - axios parameter creator * @export @@ -19066,7 +18983,8 @@ export class MetaTagExtractorApi extends BaseAPI implements MetaTagExtractorApiI export const NewsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * Create a news by a user in a given scope (school or team). + * + * @summary Create a news by a user in a given scope (school or team). * @param {CreateNewsParams} createNewsParams * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19105,7 +19023,8 @@ export const NewsApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * Delete a news. + * + * @summary Delete a news. * @param {string} newsId The id of the news. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19142,7 +19061,8 @@ export const NewsApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * Responds with all news for a user. + * + * @summary Responds with all news for a user. * @param {'schools' | 'courses' | 'teams'} [targetModel] Target model to which the news are related * @param {string} [targetId] Specific target id to which the news are related (works only together with targetModel) * @param {boolean} [unpublished] Flag that filters if the news should be published or not @@ -19200,7 +19120,8 @@ export const NewsApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * Retrieve a specific news entry by id. A user may only read news of scopes he has the read permission. The news entity has school and user names populated. + * + * @summary Retrieve a specific news entry by id. A user may only read news of scopes he has the read permission. The news entity has school and user names populated. * @param {string} newsId The id of the news. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19237,7 +19158,8 @@ export const NewsApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * Update properties of a news. + * + * @summary Update properties of a news. * @param {string} newsId The id of the news. * @param {UpdateNewsParams} updateNewsParams * @param {*} [options] Override http request option. @@ -19280,7 +19202,8 @@ export const NewsApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * Responds with news of a given team for a user. + * + * @summary Responds with news of a given team for a user. * @param {string} teamId The id of the team. * @param {'schools' | 'courses' | 'teams'} [targetModel] Target model to which the news are related * @param {string} [targetId] Specific target id to which the news are related (works only together with targetModel) @@ -19352,7 +19275,8 @@ export const NewsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = NewsApiAxiosParamCreator(configuration) return { /** - * Create a news by a user in a given scope (school or team). + * + * @summary Create a news by a user in a given scope (school or team). * @param {CreateNewsParams} createNewsParams * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19362,7 +19286,8 @@ export const NewsApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * Delete a news. + * + * @summary Delete a news. * @param {string} newsId The id of the news. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19372,7 +19297,8 @@ export const NewsApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * Responds with all news for a user. + * + * @summary Responds with all news for a user. * @param {'schools' | 'courses' | 'teams'} [targetModel] Target model to which the news are related * @param {string} [targetId] Specific target id to which the news are related (works only together with targetModel) * @param {boolean} [unpublished] Flag that filters if the news should be published or not @@ -19386,7 +19312,8 @@ export const NewsApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * Retrieve a specific news entry by id. A user may only read news of scopes he has the read permission. The news entity has school and user names populated. + * + * @summary Retrieve a specific news entry by id. A user may only read news of scopes he has the read permission. The news entity has school and user names populated. * @param {string} newsId The id of the news. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19396,7 +19323,8 @@ export const NewsApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * Update properties of a news. + * + * @summary Update properties of a news. * @param {string} newsId The id of the news. * @param {UpdateNewsParams} updateNewsParams * @param {*} [options] Override http request option. @@ -19407,7 +19335,8 @@ export const NewsApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * Responds with news of a given team for a user. + * + * @summary Responds with news of a given team for a user. * @param {string} teamId The id of the team. * @param {'schools' | 'courses' | 'teams'} [targetModel] Target model to which the news are related * @param {string} [targetId] Specific target id to which the news are related (works only together with targetModel) @@ -19432,7 +19361,8 @@ export const NewsApiFactory = function (configuration?: Configuration, basePath? const localVarFp = NewsApiFp(configuration) return { /** - * Create a news by a user in a given scope (school or team). + * + * @summary Create a news by a user in a given scope (school or team). * @param {CreateNewsParams} createNewsParams * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19441,7 +19371,8 @@ export const NewsApiFactory = function (configuration?: Configuration, basePath? return localVarFp.newsControllerCreate(createNewsParams, options).then((request) => request(axios, basePath)); }, /** - * Delete a news. + * + * @summary Delete a news. * @param {string} newsId The id of the news. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19450,7 +19381,8 @@ export const NewsApiFactory = function (configuration?: Configuration, basePath? return localVarFp.newsControllerDelete(newsId, options).then((request) => request(axios, basePath)); }, /** - * Responds with all news for a user. + * + * @summary Responds with all news for a user. * @param {'schools' | 'courses' | 'teams'} [targetModel] Target model to which the news are related * @param {string} [targetId] Specific target id to which the news are related (works only together with targetModel) * @param {boolean} [unpublished] Flag that filters if the news should be published or not @@ -19463,7 +19395,8 @@ export const NewsApiFactory = function (configuration?: Configuration, basePath? return localVarFp.newsControllerFindAll(targetModel, targetId, unpublished, skip, limit, options).then((request) => request(axios, basePath)); }, /** - * Retrieve a specific news entry by id. A user may only read news of scopes he has the read permission. The news entity has school and user names populated. + * + * @summary Retrieve a specific news entry by id. A user may only read news of scopes he has the read permission. The news entity has school and user names populated. * @param {string} newsId The id of the news. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19472,7 +19405,8 @@ export const NewsApiFactory = function (configuration?: Configuration, basePath? return localVarFp.newsControllerFindOne(newsId, options).then((request) => request(axios, basePath)); }, /** - * Update properties of a news. + * + * @summary Update properties of a news. * @param {string} newsId The id of the news. * @param {UpdateNewsParams} updateNewsParams * @param {*} [options] Override http request option. @@ -19482,7 +19416,8 @@ export const NewsApiFactory = function (configuration?: Configuration, basePath? return localVarFp.newsControllerUpdate(newsId, updateNewsParams, options).then((request) => request(axios, basePath)); }, /** - * Responds with news of a given team for a user. + * + * @summary Responds with news of a given team for a user. * @param {string} teamId The id of the team. * @param {'schools' | 'courses' | 'teams'} [targetModel] Target model to which the news are related * @param {string} [targetId] Specific target id to which the news are related (works only together with targetModel) @@ -19505,7 +19440,8 @@ export const NewsApiFactory = function (configuration?: Configuration, basePath? */ export interface NewsApiInterface { /** - * Create a news by a user in a given scope (school or team). + * + * @summary Create a news by a user in a given scope (school or team). * @param {CreateNewsParams} createNewsParams * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19514,7 +19450,8 @@ export interface NewsApiInterface { newsControllerCreate(createNewsParams: CreateNewsParams, options?: any): AxiosPromise; /** - * Delete a news. + * + * @summary Delete a news. * @param {string} newsId The id of the news. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19523,7 +19460,8 @@ export interface NewsApiInterface { newsControllerDelete(newsId: string, options?: any): AxiosPromise; /** - * Responds with all news for a user. + * + * @summary Responds with all news for a user. * @param {'schools' | 'courses' | 'teams'} [targetModel] Target model to which the news are related * @param {string} [targetId] Specific target id to which the news are related (works only together with targetModel) * @param {boolean} [unpublished] Flag that filters if the news should be published or not @@ -19536,7 +19474,8 @@ export interface NewsApiInterface { newsControllerFindAll(targetModel?: 'schools' | 'courses' | 'teams', targetId?: string, unpublished?: boolean, skip?: number, limit?: number, options?: any): AxiosPromise; /** - * Retrieve a specific news entry by id. A user may only read news of scopes he has the read permission. The news entity has school and user names populated. + * + * @summary Retrieve a specific news entry by id. A user may only read news of scopes he has the read permission. The news entity has school and user names populated. * @param {string} newsId The id of the news. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19545,7 +19484,8 @@ export interface NewsApiInterface { newsControllerFindOne(newsId: string, options?: any): AxiosPromise; /** - * Update properties of a news. + * + * @summary Update properties of a news. * @param {string} newsId The id of the news. * @param {UpdateNewsParams} updateNewsParams * @param {*} [options] Override http request option. @@ -19555,7 +19495,8 @@ export interface NewsApiInterface { newsControllerUpdate(newsId: string, updateNewsParams: UpdateNewsParams, options?: any): AxiosPromise; /** - * Responds with news of a given team for a user. + * + * @summary Responds with news of a given team for a user. * @param {string} teamId The id of the team. * @param {'schools' | 'courses' | 'teams'} [targetModel] Target model to which the news are related * @param {string} [targetId] Specific target id to which the news are related (works only together with targetModel) @@ -19578,7 +19519,8 @@ export interface NewsApiInterface { */ export class NewsApi extends BaseAPI implements NewsApiInterface { /** - * Create a news by a user in a given scope (school or team). + * + * @summary Create a news by a user in a given scope (school or team). * @param {CreateNewsParams} createNewsParams * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19589,7 +19531,8 @@ export class NewsApi extends BaseAPI implements NewsApiInterface { } /** - * Delete a news. + * + * @summary Delete a news. * @param {string} newsId The id of the news. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19600,7 +19543,8 @@ export class NewsApi extends BaseAPI implements NewsApiInterface { } /** - * Responds with all news for a user. + * + * @summary Responds with all news for a user. * @param {'schools' | 'courses' | 'teams'} [targetModel] Target model to which the news are related * @param {string} [targetId] Specific target id to which the news are related (works only together with targetModel) * @param {boolean} [unpublished] Flag that filters if the news should be published or not @@ -19615,7 +19559,8 @@ export class NewsApi extends BaseAPI implements NewsApiInterface { } /** - * Retrieve a specific news entry by id. A user may only read news of scopes he has the read permission. The news entity has school and user names populated. + * + * @summary Retrieve a specific news entry by id. A user may only read news of scopes he has the read permission. The news entity has school and user names populated. * @param {string} newsId The id of the news. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -19626,7 +19571,8 @@ export class NewsApi extends BaseAPI implements NewsApiInterface { } /** - * Update properties of a news. + * + * @summary Update properties of a news. * @param {string} newsId The id of the news. * @param {UpdateNewsParams} updateNewsParams * @param {*} [options] Override http request option. @@ -19638,7 +19584,8 @@ export class NewsApi extends BaseAPI implements NewsApiInterface { } /** - * Responds with news of a given team for a user. + * + * @summary Responds with news of a given team for a user. * @param {string} teamId The id of the team. * @param {'schools' | 'courses' | 'teams'} [targetModel] Target model to which the news are related * @param {string} [targetId] Specific target id to which the news are related (works only together with targetModel) @@ -22665,6 +22612,236 @@ export class SchoolApi extends BaseAPI implements SchoolApiInterface { } +/** + * ServerApi - axios parameter creator + * @export + */ +export const ServerApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Default route to test public access + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + serverControllerGetHello: async (options: any = {}): Promise => { + const localVarPath = `/`; + // 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: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * ServerApi - functional programming interface + * @export + */ +export const ServerApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ServerApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Default route to test public access + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async serverControllerGetHello(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.serverControllerGetHello(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ServerApi - factory interface + * @export + */ +export const ServerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ServerApiFp(configuration) + return { + /** + * + * @summary Default route to test public access + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + serverControllerGetHello(options?: any): AxiosPromise { + return localVarFp.serverControllerGetHello(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ServerApi - interface + * @export + * @interface ServerApi + */ +export interface ServerApiInterface { + /** + * + * @summary Default route to test public access + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerApiInterface + */ + serverControllerGetHello(options?: any): AxiosPromise; + +} + +/** + * ServerApi - object-oriented interface + * @export + * @class ServerApi + * @extends {BaseAPI} + */ +export class ServerApi extends BaseAPI implements ServerApiInterface { + /** + * + * @summary Default route to test public access + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerApi + */ + public serverControllerGetHello(options?: any) { + return ServerApiFp(this.configuration).serverControllerGetHello(options).then((request) => request(this.axios, this.basePath)); + } +} + + +/** + * ServerConfigApi - axios parameter creator + * @export + */ +export const ServerConfigApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Useable configuration for clients + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + serverConfigControllerPublicConfig: async (options: any = {}): Promise => { + const localVarPath = `/config/public`; + // 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: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * ServerConfigApi - functional programming interface + * @export + */ +export const ServerConfigApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ServerConfigApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Useable configuration for clients + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async serverConfigControllerPublicConfig(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.serverConfigControllerPublicConfig(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ServerConfigApi - factory interface + * @export + */ +export const ServerConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ServerConfigApiFp(configuration) + return { + /** + * + * @summary Useable configuration for clients + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + serverConfigControllerPublicConfig(options?: any): AxiosPromise { + return localVarFp.serverConfigControllerPublicConfig(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ServerConfigApi - interface + * @export + * @interface ServerConfigApi + */ +export interface ServerConfigApiInterface { + /** + * + * @summary Useable configuration for clients + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerConfigApiInterface + */ + serverConfigControllerPublicConfig(options?: any): AxiosPromise; + +} + +/** + * ServerConfigApi - object-oriented interface + * @export + * @class ServerConfigApi + * @extends {BaseAPI} + */ +export class ServerConfigApi extends BaseAPI implements ServerConfigApiInterface { + /** + * + * @summary Useable configuration for clients + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ServerConfigApi + */ + public serverConfigControllerPublicConfig(options?: any) { + return ServerConfigApiFp(this.configuration).serverConfigControllerPublicConfig(options).then((request) => request(this.axios, this.basePath)); + } +} + + /** * ShareTokenApi - axios parameter creator * @export @@ -23338,7 +23515,7 @@ export const SystemsApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * This endpoint is used to show users the possible login systems that exist. No sensible data should be returned! + * * @summary Finds all publicly available systems. * @param {SystemType} [types] The type of the system. * @param {*} [options] Override http request option. @@ -23373,7 +23550,7 @@ export const SystemsApiAxiosParamCreator = function (configuration?: Configurati }; }, /** - * This endpoint is used to get information about a possible login systems. No sensible data should be returned! + * * @summary Finds a publicly available system. * @param {string} systemId * @param {*} [options] Override http request option. @@ -23428,7 +23605,7 @@ export const SystemsApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * This endpoint is used to show users the possible login systems that exist. No sensible data should be returned! + * * @summary Finds all publicly available systems. * @param {SystemType} [types] The type of the system. * @param {*} [options] Override http request option. @@ -23439,7 +23616,7 @@ export const SystemsApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * This endpoint is used to get information about a possible login systems. No sensible data should be returned! + * * @summary Finds a publicly available system. * @param {string} systemId * @param {*} [options] Override http request option. @@ -23470,7 +23647,7 @@ export const SystemsApiFactory = function (configuration?: Configuration, basePa return localVarFp.systemControllerDeleteSystem(systemId, options).then((request) => request(axios, basePath)); }, /** - * This endpoint is used to show users the possible login systems that exist. No sensible data should be returned! + * * @summary Finds all publicly available systems. * @param {SystemType} [types] The type of the system. * @param {*} [options] Override http request option. @@ -23480,7 +23657,7 @@ export const SystemsApiFactory = function (configuration?: Configuration, basePa return localVarFp.systemControllerFind(types, options).then((request) => request(axios, basePath)); }, /** - * This endpoint is used to get information about a possible login systems. No sensible data should be returned! + * * @summary Finds a publicly available system. * @param {string} systemId * @param {*} [options] Override http request option. @@ -23509,7 +23686,7 @@ export interface SystemsApiInterface { systemControllerDeleteSystem(systemId: string, options?: any): AxiosPromise; /** - * This endpoint is used to show users the possible login systems that exist. No sensible data should be returned! + * * @summary Finds all publicly available systems. * @param {SystemType} [types] The type of the system. * @param {*} [options] Override http request option. @@ -23519,7 +23696,7 @@ export interface SystemsApiInterface { systemControllerFind(types?: SystemType, options?: any): AxiosPromise; /** - * This endpoint is used to get information about a possible login systems. No sensible data should be returned! + * * @summary Finds a publicly available system. * @param {string} systemId * @param {*} [options] Override http request option. @@ -23550,7 +23727,7 @@ export class SystemsApi extends BaseAPI implements SystemsApiInterface { } /** - * This endpoint is used to show users the possible login systems that exist. No sensible data should be returned! + * * @summary Finds all publicly available systems. * @param {SystemType} [types] The type of the system. * @param {*} [options] Override http request option. @@ -23562,7 +23739,7 @@ export class SystemsApi extends BaseAPI implements SystemsApiInterface { } /** - * This endpoint is used to get information about a possible login systems. No sensible data should be returned! + * * @summary Finds a publicly available system. * @param {string} systemId * @param {*} [options] Override http request option. diff --git a/src/store/env-config-defaults.ts b/src/store/env-config-defaults.ts index 6e90163d73..498c537038 100644 --- a/src/store/env-config-defaults.ts +++ b/src/store/env-config-defaults.ts @@ -77,4 +77,5 @@ export const defaultConfigEnvs: ConfigResponse = { CALENDAR_SERVICE_ENABLED: false, FEATURE_PREFERRED_CTL_TOOLS_ENABLED: false, FEATURE_EXTERNAL_SYSTEM_LOGOUT_ENABLED: false, + FEATURE_VIDIS_MEDIA_ACTIVATIONS_ENABLED: false, }; diff --git a/src/store/env-config.ts b/src/store/env-config.ts index 2c489ea253..dfc41e5bd8 100644 --- a/src/store/env-config.ts +++ b/src/store/env-config.ts @@ -5,10 +5,10 @@ import { } from "@/fileStorageApi/v3"; import { ConfigResponse, - DefaultApiFactory, - DefaultApiInterface, LanguageType, SchulcloudTheme, + ServerConfigApiFactory, + ServerConfigApiInterface, Timezone, } from "@/serverApi/v3"; import { @@ -184,8 +184,8 @@ export default class EnvConfigModule extends VuexModule { return this.env.FEATURE_SHOW_NEW_CLASS_VIEW_ENABLED; } - private get serverApi(): DefaultApiInterface { - const serverApi = DefaultApiFactory(undefined, "/v3", $axios); + private get serverApi(): ServerConfigApiInterface { + const serverApi = ServerConfigApiFactory(undefined, "/v3", $axios); return serverApi; } diff --git a/src/store/env-config.unit.ts b/src/store/env-config.unit.ts index 9a8a69a872..399b8e6e3f 100644 --- a/src/store/env-config.unit.ts +++ b/src/store/env-config.unit.ts @@ -55,9 +55,9 @@ describe("env-config module", () => { data: mockFileEnvs, }); - const defaultApi = createMock(); + const defaultApi = createMock(); jest - .spyOn(serverApi, "DefaultApiFactory") + .spyOn(serverApi, "ServerConfigApiFactory") .mockReturnValue(defaultApi); defaultApi.serverConfigControllerPublicConfig.mockResolvedValueOnce( serverConfigresponse @@ -160,9 +160,9 @@ describe("env-config module", () => { }); const error = new Error("testError"); - const defaultApi = createMock(); + const defaultApi = createMock(); jest - .spyOn(serverApi, "DefaultApiFactory") + .spyOn(serverApi, "ServerConfigApiFactory") .mockReturnValue(defaultApi); defaultApi.serverConfigControllerPublicConfig.mockResolvedValueOnce( serverConfigresponse @@ -280,9 +280,9 @@ describe("env-config module", () => { }); const error = new Error("testError"); - const defaultApi = createMock(); + const defaultApi = createMock(); jest - .spyOn(serverApi, "DefaultApiFactory") + .spyOn(serverApi, "ServerConfigApiFactory") .mockReturnValue(defaultApi); defaultApi.serverConfigControllerPublicConfig.mockRejectedValueOnce( error