@@ -3407,6 +3407,111 @@ export interface ExpelStatusDto {
34073407 */
34083408 'expellingReason': string;
34093409}
3410+ /**
3411+ *
3412+ * @export
3413+ * @interface ExpelledCourseDto
3414+ */
3415+ export interface ExpelledCourseDto {
3416+ /**
3417+ *
3418+ * @type {number}
3419+ * @memberof ExpelledCourseDto
3420+ */
3421+ 'id': number;
3422+ /**
3423+ *
3424+ * @type {string}
3425+ * @memberof ExpelledCourseDto
3426+ */
3427+ 'name': string;
3428+ /**
3429+ *
3430+ * @type {string}
3431+ * @memberof ExpelledCourseDto
3432+ */
3433+ 'fullName': string;
3434+ /**
3435+ *
3436+ * @type {string}
3437+ * @memberof ExpelledCourseDto
3438+ */
3439+ 'alias': string;
3440+ /**
3441+ *
3442+ * @type {string}
3443+ * @memberof ExpelledCourseDto
3444+ */
3445+ 'description': string;
3446+ /**
3447+ *
3448+ * @type {string}
3449+ * @memberof ExpelledCourseDto
3450+ */
3451+ 'logo': string;
3452+ }
3453+ /**
3454+ *
3455+ * @export
3456+ * @interface ExpelledStatsDto
3457+ */
3458+ export interface ExpelledStatsDto {
3459+ /**
3460+ *
3461+ * @type {string}
3462+ * @memberof ExpelledStatsDto
3463+ */
3464+ 'id': string;
3465+ /**
3466+ *
3467+ * @type {ExpelledCourseDto}
3468+ * @memberof ExpelledStatsDto
3469+ */
3470+ 'course': ExpelledCourseDto;
3471+ /**
3472+ *
3473+ * @type {ExpelledUserDto}
3474+ * @memberof ExpelledStatsDto
3475+ */
3476+ 'user': ExpelledUserDto;
3477+ /**
3478+ *
3479+ * @type {Array<string>}
3480+ * @memberof ExpelledStatsDto
3481+ */
3482+ 'reasonForLeaving'?: Array<string>;
3483+ /**
3484+ *
3485+ * @type {string}
3486+ * @memberof ExpelledStatsDto
3487+ */
3488+ 'otherComment': string;
3489+ /**
3490+ *
3491+ * @type {string}
3492+ * @memberof ExpelledStatsDto
3493+ */
3494+ 'submittedAt': string;
3495+ }
3496+ /**
3497+ *
3498+ * @export
3499+ * @interface ExpelledUserDto
3500+ */
3501+ export interface ExpelledUserDto {
3502+ /**
3503+ *
3504+ * @type {number}
3505+ * @memberof ExpelledUserDto
3506+ */
3507+ 'id': number;
3508+ /**
3509+ *
3510+ * @type {string}
3511+ * @memberof ExpelledUserDto
3512+ */
3513+ 'githubId': string;
3514+ }
34103515/**
34113516 *
34123517 * @export
@@ -10249,6 +10354,39 @@ export const CourseStatsApiAxiosParamCreator = function (configuration?: Configu
1024910354
1025010355
1025110356
10357+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10358+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10359+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10360+
10361+ return {
10362+ url: toPathString(localVarUrlObj),
10363+ options: localVarRequestOptions,
10364+ };
10365+ },
10366+ /**
10367+ *
10368+ * @param {number} courseId
10369+ * @param {*} [options] Override http request option.
10370+ * @throws {RequiredError}
10371+ */
10372+ getCourseExpelledStats: async (courseId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10373+ // verify required parameter 'courseId' is not null or undefined
10374+ assertParamExists('getCourseExpelledStats', 'courseId', courseId)
10375+ const localVarPath = `/courses/{courseId}/stats/expelled`
10376+ .replace(`{${"courseId"}}`, encodeURIComponent(String(courseId)));
10377+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10378+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10379+ let baseOptions;
10380+ if (configuration) {
10381+ baseOptions = configuration.baseOptions;
10382+ }
10383+
10384+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10385+ const localVarHeaderParameter = {} as any;
10386+ const localVarQueryParameter = {} as any;
10387+
10388+
10389+
1025210390 setSearchParams(localVarUrlObj, localVarQueryParameter);
1025310391 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1025410392 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -10552,6 +10690,16 @@ export const CourseStatsApiFp = function(configuration?: Configuration) {
1055210690 const localVarAxiosArgs = await localVarAxiosParamCreator.deleteExpelledStat(id, options);
1055310691 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1055410692 },
10693+ /**
10694+ *
10695+ * @param {number} courseId
10696+ * @param {*} [options] Override http request option.
10697+ * @throws {RequiredError}
10698+ */
10699+ async getCourseExpelledStats(courseId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ExpelledStatsDto>>> {
10700+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCourseExpelledStats(courseId, options);
10701+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10702+ },
1055510703 /**
1055610704 *
1055710705 * @param {number} courseId
@@ -10618,7 +10766,7 @@ export const CourseStatsApiFp = function(configuration?: Configuration) {
1061810766 * @param {*} [options] Override http request option.
1061910767 * @throws {RequiredError}
1062010768 */
10621- async getExpelledStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CourseStatsDto >>> {
10769+ async getExpelledStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ExpelledStatsDto >>> {
1062210770 const localVarAxiosArgs = await localVarAxiosParamCreator.getExpelledStats(options);
1062310771 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1062410772 },
@@ -10652,6 +10800,15 @@ export const CourseStatsApiFactory = function (configuration?: Configuration, ba
1065210800 deleteExpelledStat(id: string, options?: any): AxiosPromise<string> {
1065310801 return localVarFp.deleteExpelledStat(id, options).then((request) => request(axios, basePath));
1065410802 },
10803+ /**
10804+ *
10805+ * @param {number} courseId
10806+ * @param {*} [options] Override http request option.
10807+ * @throws {RequiredError}
10808+ */
10809+ getCourseExpelledStats(courseId: number, options?: any): AxiosPromise<Array<ExpelledStatsDto>> {
10810+ return localVarFp.getCourseExpelledStats(courseId, options).then((request) => request(axios, basePath));
10811+ },
1065510812 /**
1065610813 *
1065710814 * @param {number} courseId
@@ -10712,7 +10869,7 @@ export const CourseStatsApiFactory = function (configuration?: Configuration, ba
1071210869 * @param {*} [options] Override http request option.
1071310870 * @throws {RequiredError}
1071410871 */
10715- getExpelledStats(options?: any): AxiosPromise<Array<CourseStatsDto >> {
10872+ getExpelledStats(options?: any): AxiosPromise<Array<ExpelledStatsDto >> {
1071610873 return localVarFp.getExpelledStats(options).then((request) => request(axios, basePath));
1071710874 },
1071810875 /**
@@ -10746,6 +10903,17 @@ export class CourseStatsApi extends BaseAPI {
1074610903 return CourseStatsApiFp(this.configuration).deleteExpelledStat(id, options).then((request) => request(this.axios, this.basePath));
1074710904 }
1074810905
10906+ /**
10907+ *
10908+ * @param {number} courseId
10909+ * @param {*} [options] Override http request option.
10910+ * @throws {RequiredError}
10911+ * @memberof CourseStatsApi
10912+ */
10913+ public getCourseExpelledStats(courseId: number, options?: AxiosRequestConfig) {
10914+ return CourseStatsApiFp(this.configuration).getCourseExpelledStats(courseId, options).then((request) => request(this.axios, this.basePath));
10915+ }
10916+
1074910917 /**
1075010918 *
1075110919 * @param {number} courseId
0 commit comments