diff --git a/src/serverApi/v3/api.ts b/src/serverApi/v3/api.ts index 7332b8ff11..3a0e3cbb2d 100644 --- a/src/serverApi/v3/api.ts +++ b/src/serverApi/v3/api.ts @@ -6171,6 +6171,7 @@ export enum Permission { SchoolChatManage = 'SCHOOL_CHAT_MANAGE', SchoolCreate = 'SCHOOL_CREATE', SchoolEdit = 'SCHOOL_EDIT', + SchoolEditAll = 'SCHOOL_EDIT_ALL', SchoolLogoManage = 'SCHOOL_LOGO_MANAGE', SchoolNewsEdit = 'SCHOOL_NEWS_EDIT', SchoolPermissionChange = 'SCHOOL_PERMISSION_CHANGE', @@ -7259,6 +7260,62 @@ export enum SchoolUpdateBodyParamsFileStorageTypeEnum { AwsS3 = 'awsS3' } +/** + * + * @export + * @interface SchoolUserListResponse + */ +export interface SchoolUserListResponse { + /** + * The items for the current page. + * @type {Array} + * @memberof SchoolUserListResponse + */ + data: Array; + /** + * The total amount of items. + * @type {number} + * @memberof SchoolUserListResponse + */ + total: number; + /** + * The amount of items skipped from the start. + * @type {number} + * @memberof SchoolUserListResponse + */ + skip: number; + /** + * The page size of the response. + * @type {number} + * @memberof SchoolUserListResponse + */ + limit: number; +} +/** + * + * @export + * @interface SchoolUserResponse + */ +export interface SchoolUserResponse { + /** + * + * @type {string} + * @memberof SchoolUserResponse + */ + firstName: string; + /** + * + * @type {string} + * @memberof SchoolUserResponse + */ + lastName: string; + /** + * + * @type {string} + * @memberof SchoolUserResponse + */ + id: string; +} /** * * @export @@ -20236,6 +20293,53 @@ export const SchoolApiAxiosParamCreator = function (configuration?: Configuratio + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} schoolId + * @param {number} [skip] Number of elements (not pages) to be skipped + * @param {number} [limit] Page limit, defaults to 10. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + schoolControllerGetTeachers: async (schoolId: string, skip?: number, limit?: number, options: any = {}): Promise => { + // verify required parameter 'schoolId' is not null or undefined + assertParamExists('schoolControllerGetTeachers', 'schoolId', schoolId) + const localVarPath = `/school/{schoolId}/teachers` + .replace(`{${"schoolId"}}`, encodeURIComponent(String(schoolId))); + // 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; + + // authentication bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (skip !== undefined) { + localVarQueryParameter['skip'] = skip; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -20448,6 +20552,18 @@ export const SchoolApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.schoolControllerGetSchoolSystems(schoolId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * + * @param {string} schoolId + * @param {number} [skip] Number of elements (not pages) to be skipped + * @param {number} [limit] Page limit, defaults to 10. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async schoolControllerGetTeachers(schoolId: string, skip?: number, limit?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.schoolControllerGetTeachers(schoolId, skip, limit, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * * @param {string} schoolId @@ -20548,6 +20664,17 @@ export const SchoolApiFactory = function (configuration?: Configuration, basePat schoolControllerGetSchoolSystems(schoolId: string, options?: any): AxiosPromise> { return localVarFp.schoolControllerGetSchoolSystems(schoolId, options).then((request) => request(axios, basePath)); }, + /** + * + * @param {string} schoolId + * @param {number} [skip] Number of elements (not pages) to be skipped + * @param {number} [limit] Page limit, defaults to 10. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + schoolControllerGetTeachers(schoolId: string, skip?: number, limit?: number, options?: any): AxiosPromise { + return localVarFp.schoolControllerGetTeachers(schoolId, skip, limit, options).then((request) => request(axios, basePath)); + }, /** * * @param {string} schoolId @@ -20644,6 +20771,17 @@ export interface SchoolApiInterface { */ schoolControllerGetSchoolSystems(schoolId: string, options?: any): AxiosPromise>; + /** + * + * @param {string} schoolId + * @param {number} [skip] Number of elements (not pages) to be skipped + * @param {number} [limit] Page limit, defaults to 10. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchoolApiInterface + */ + schoolControllerGetTeachers(schoolId: string, skip?: number, limit?: number, options?: any): AxiosPromise; + /** * * @param {string} schoolId @@ -20752,6 +20890,19 @@ export class SchoolApi extends BaseAPI implements SchoolApiInterface { return SchoolApiFp(this.configuration).schoolControllerGetSchoolSystems(schoolId, options).then((request) => request(this.axios, this.basePath)); } + /** + * + * @param {string} schoolId + * @param {number} [skip] Number of elements (not pages) to be skipped + * @param {number} [limit] Page limit, defaults to 10. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchoolApi + */ + public schoolControllerGetTeachers(schoolId: string, skip?: number, limit?: number, options?: any) { + return SchoolApiFp(this.configuration).schoolControllerGetTeachers(schoolId, skip, limit, options).then((request) => request(this.axios, this.basePath)); + } + /** * * @param {string} schoolId