Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BC-8096 - update api #3423

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 151 additions & 0 deletions src/serverApi/v3/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -7259,6 +7260,62 @@ export enum SchoolUpdateBodyParamsFileStorageTypeEnum {
AwsS3 = 'awsS3'
}

/**
*
* @export
* @interface SchoolUserListResponse
*/
export interface SchoolUserListResponse {
/**
* The items for the current page.
* @type {Array<SchoolUserResponse>}
* @memberof SchoolUserListResponse
*/
data: Array<SchoolUserResponse>;
/**
* 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
Expand Down Expand Up @@ -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<RequestArgs> => {
// 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};
Expand Down Expand Up @@ -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<SchoolUserListResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.schoolControllerGetTeachers(schoolId, skip, limit, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @param {string} schoolId
Expand Down Expand Up @@ -20548,6 +20664,17 @@ export const SchoolApiFactory = function (configuration?: Configuration, basePat
schoolControllerGetSchoolSystems(schoolId: string, options?: any): AxiosPromise<Array<SchoolSystemResponse>> {
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<SchoolUserListResponse> {
return localVarFp.schoolControllerGetTeachers(schoolId, skip, limit, options).then((request) => request(axios, basePath));
},
/**
*
* @param {string} schoolId
Expand Down Expand Up @@ -20644,6 +20771,17 @@ export interface SchoolApiInterface {
*/
schoolControllerGetSchoolSystems(schoolId: string, options?: any): AxiosPromise<Array<SchoolSystemResponse>>;

/**
*
* @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<SchoolUserListResponse>;

/**
*
* @param {string} schoolId
Expand Down Expand Up @@ -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
Expand Down
Loading