Skip to content

Commit

Permalink
update generated api
Browse files Browse the repository at this point in the history
  • Loading branch information
muratmerdoglu-dp committed Jan 14, 2025
1 parent 2804b63 commit bdd1b3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 29 deletions.
4 changes: 1 addition & 3 deletions src/modules/data/room/roomMembers/roomMembers.composable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ export const useRoomMembers = (roomId: string) => {
try {
const result = (
await schoolApi.schoolControllerGetTeachers(
payload.schoolId ?? ownSchool.id,
0,
100 // should not be paginated
payload.schoolId ?? ownSchool.id
)
).data;

Expand Down
34 changes: 8 additions & 26 deletions src/serverApi/v3/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21949,12 +21949,10 @@ export const SchoolApiAxiosParamCreator = function (configuration?: Configuratio
/**
*
* @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> => {
schoolControllerGetTeachers: async (schoolId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'schoolId' is not null or undefined
assertParamExists('schoolControllerGetTeachers', 'schoolId', schoolId)
const localVarPath = `/school/{schoolId}/teachers`
Expand All @@ -21974,14 +21972,6 @@ export const SchoolApiAxiosParamCreator = function (configuration?: Configuratio
// 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);
Expand Down Expand Up @@ -22199,13 +22189,11 @@ export const SchoolApiFp = function(configuration?: 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);
async schoolControllerGetTeachers(schoolId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SchoolUserListResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.schoolControllerGetTeachers(schoolId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
Expand Down Expand Up @@ -22311,13 +22299,11 @@ export const SchoolApiFactory = function (configuration?: Configuration, basePat
/**
*
* @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));
schoolControllerGetTeachers(schoolId: string, options?: any): AxiosPromise<SchoolUserListResponse> {
return localVarFp.schoolControllerGetTeachers(schoolId, options).then((request) => request(axios, basePath));
},
/**
*
Expand Down Expand Up @@ -22418,13 +22404,11 @@ export interface SchoolApiInterface {
/**
*
* @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>;
schoolControllerGetTeachers(schoolId: string, options?: any): AxiosPromise<SchoolUserListResponse>;

/**
*
Expand Down Expand Up @@ -22537,14 +22521,12 @@ export class SchoolApi extends BaseAPI implements SchoolApiInterface {
/**
*
* @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));
public schoolControllerGetTeachers(schoolId: string, options?: any) {
return SchoolApiFp(this.configuration).schoolControllerGetTeachers(schoolId, options).then((request) => request(this.axios, this.basePath));
}

/**
Expand Down

0 comments on commit bdd1b3b

Please sign in to comment.