-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
promotion: preprod to prod
- Loading branch information
Showing
13 changed files
with
432 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* HEI Admin API | ||
* _Programmatically connect to a computer programming [school](https://hei.school)._ After [joining us](mailto:[email protected]), you can get an identification token from our [dev](https://dev-hei-admin.auth.eu-west-3.amazoncognito.com/oauth2/authorize?client_id=5s8cg50doahmu855rlc8fr6qmp&response_type=token&scope=email+openid&redirect_uri=https%3A%2F%2Fapi-dev.hei.school%2Fwhoami) or [prod](https://prod-hei-admin.auth.eu-west-3.amazoncognito.com/oauth2/authorize?client_id=i8bg538jpfu6mqmqb61m26trd&response_type=token&scope=email+openid&redirect_uri=https%3A%2F%2Fapi-prod.hei.school%2Fwhoami) authentication service. Then, start playing with our system! The implementation of our API is [publicly disclosed](https://github.com/hei-school/hei-admin-api). You are welcome to try and compromise it. Happy hacking! | ||
* | ||
* The version of the OpenAPI document: 1.0 | ||
* The version of the OpenAPI document: latest | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -454,7 +454,7 @@ export interface CreateGroup { | |
* @type {Array<string>} | ||
* @memberof CreateGroup | ||
*/ | ||
students?: Array<string> | ||
studentsToAdd?: Array<string> | ||
/** | ||
* | ||
* @type {string} | ||
|
@@ -537,9 +537,16 @@ export interface CreatePayment { | |
* @memberof CreatePayment | ||
*/ | ||
comment?: string | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof CreatePayment | ||
*/ | ||
creation_datetime?: string | ||
} | ||
|
||
export const CreatePaymentTypeEnum = { | ||
BankTransfer: 'BANK_TRANSFER', | ||
Cash: 'CASH', | ||
MobileMoney: 'MOBILE_MONEY', | ||
Scholarship: 'SCHOLARSHIP', | ||
|
@@ -1057,6 +1064,7 @@ export interface Payment { | |
} | ||
|
||
export const PaymentTypeEnum = { | ||
BankTransfer: 'BANK_TRANSFER', | ||
Cash: 'CASH', | ||
MobileMoney: 'MOBILE_MONEY', | ||
Scholarship: 'SCHOLARSHIP', | ||
|
@@ -3053,6 +3061,64 @@ export const TeachingApiAxiosParamCreator = function (configuration?: Configurat | |
options: localVarRequestOptions | ||
} | ||
}, | ||
/** | ||
* | ||
* @summary Get all awarded_courses | ||
* @param {string} [teacherId] | ||
* @param {string} [courseId] | ||
* @param {number} [page] Set value to 1 by default if null is provided | ||
* @param {number} [pageSize] Set value to 15 by default if null is provided | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getAllAwardedCourseByCriteria: async ( | ||
teacherId?: string, | ||
courseId?: string, | ||
page?: number, | ||
pageSize?: number, | ||
options: AxiosRequestConfig = {} | ||
): Promise<RequestArgs> => { | ||
const localVarPath = `/awarded_courses` | ||
// 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 BearerAuth required | ||
// http bearer authentication required | ||
await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
|
||
if (teacherId !== undefined) { | ||
localVarQueryParameter['teacher_id'] = teacherId | ||
} | ||
|
||
if (courseId !== undefined) { | ||
localVarQueryParameter['course_id'] = courseId | ||
} | ||
|
||
if (page !== undefined) { | ||
localVarQueryParameter['page'] = page | ||
} | ||
|
||
if (pageSize !== undefined) { | ||
localVarQueryParameter['page_size'] = pageSize | ||
} | ||
|
||
setSearchParams(localVarUrlObj, localVarQueryParameter) | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {} | ||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers } | ||
|
||
return { | ||
url: toPathString(localVarUrlObj), | ||
options: localVarRequestOptions | ||
} | ||
}, | ||
/** | ||
* | ||
* @summary Get all group awarded_courses | ||
|
@@ -3775,6 +3841,26 @@ export const TeachingApiFp = function (configuration?: Configuration) { | |
const localVarAxiosArgs = await localVarAxiosParamCreator.createStudentExamGrade(groupId, awardedCourseId, examId, createGrade, options) | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) | ||
}, | ||
/** | ||
* | ||
* @summary Get all awarded_courses | ||
* @param {string} [teacherId] | ||
* @param {string} [courseId] | ||
* @param {number} [page] Set value to 1 by default if null is provided | ||
* @param {number} [pageSize] Set value to 15 by default if null is provided | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async getAllAwardedCourseByCriteria( | ||
teacherId?: string, | ||
courseId?: string, | ||
page?: number, | ||
pageSize?: number, | ||
options?: AxiosRequestConfig | ||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AwardedCourse>>> { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAwardedCourseByCriteria(teacherId, courseId, page, pageSize, options) | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) | ||
}, | ||
/** | ||
* | ||
* @summary Get all group awarded_courses | ||
|
@@ -3823,7 +3909,7 @@ export const TeachingApiFp = function (configuration?: Configuration) { | |
groupId: string, | ||
awardedCourseId: string, | ||
options?: AxiosRequestConfig | ||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ExamInfo>>> { | ||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AwardedCourse>> { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getAwardedCoursesByIdAndGroupId(groupId, awardedCourseId, options) | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration) | ||
}, | ||
|
@@ -4092,6 +4178,19 @@ export const TeachingApiFactory = function (configuration?: Configuration, baseP | |
): AxiosPromise<Array<ExamDetail>> { | ||
return localVarFp.createStudentExamGrade(groupId, awardedCourseId, examId, createGrade, options).then(request => request(axios, basePath)) | ||
}, | ||
/** | ||
* | ||
* @summary Get all awarded_courses | ||
* @param {string} [teacherId] | ||
* @param {string} [courseId] | ||
* @param {number} [page] Set value to 1 by default if null is provided | ||
* @param {number} [pageSize] Set value to 15 by default if null is provided | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getAllAwardedCourseByCriteria(teacherId?: string, courseId?: string, page?: number, pageSize?: number, options?: any): AxiosPromise<Array<AwardedCourse>> { | ||
return localVarFp.getAllAwardedCourseByCriteria(teacherId, courseId, page, pageSize, options).then(request => request(axios, basePath)) | ||
}, | ||
/** | ||
* | ||
* @summary Get all group awarded_courses | ||
|
@@ -4124,7 +4223,7 @@ export const TeachingApiFactory = function (configuration?: Configuration, baseP | |
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getAwardedCoursesByIdAndGroupId(groupId: string, awardedCourseId: string, options?: any): AxiosPromise<Array<ExamInfo>> { | ||
getAwardedCoursesByIdAndGroupId(groupId: string, awardedCourseId: string, options?: any): AxiosPromise<AwardedCourse> { | ||
return localVarFp.getAwardedCoursesByIdAndGroupId(groupId, awardedCourseId, options).then(request => request(axios, basePath)) | ||
}, | ||
/** | ||
|
@@ -4356,6 +4455,23 @@ export class TeachingApi extends BaseAPI { | |
.then(request => request(this.axios, this.basePath)) | ||
} | ||
|
||
/** | ||
* | ||
* @summary Get all awarded_courses | ||
* @param {string} [teacherId] | ||
* @param {string} [courseId] | ||
* @param {number} [page] Set value to 1 by default if null is provided | ||
* @param {number} [pageSize] Set value to 15 by default if null is provided | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof TeachingApi | ||
*/ | ||
public getAllAwardedCourseByCriteria(teacherId?: string, courseId?: string, page?: number, pageSize?: number, options?: AxiosRequestConfig) { | ||
return TeachingApiFp(this.configuration) | ||
.getAllAwardedCourseByCriteria(teacherId, courseId, page, pageSize, options) | ||
.then(request => request(this.axios, this.basePath)) | ||
} | ||
|
||
/** | ||
* | ||
* @summary Get all group awarded_courses | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* HEI Admin API | ||
* _Programmatically connect to a computer programming [school](https://hei.school)._ After [joining us](mailto:[email protected]), you can get an identification token from our [dev](https://dev-hei-admin.auth.eu-west-3.amazoncognito.com/oauth2/authorize?client_id=5s8cg50doahmu855rlc8fr6qmp&response_type=token&scope=email+openid&redirect_uri=https%3A%2F%2Fapi-dev.hei.school%2Fwhoami) or [prod](https://prod-hei-admin.auth.eu-west-3.amazoncognito.com/oauth2/authorize?client_id=i8bg538jpfu6mqmqb61m26trd&response_type=token&scope=email+openid&redirect_uri=https%3A%2F%2Fapi-prod.hei.school%2Fwhoami) authentication service. Then, start playing with our system! The implementation of our API is [publicly disclosed](https://github.com/hei-school/hei-admin-api). You are welcome to try and compromise it. Happy hacking! | ||
* | ||
* The version of the OpenAPI document: 1.0 | ||
* The version of the OpenAPI document: latest | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* HEI Admin API | ||
* _Programmatically connect to a computer programming [school](https://hei.school)._ After [joining us](mailto:[email protected]), you can get an identification token from our [dev](https://dev-hei-admin.auth.eu-west-3.amazoncognito.com/oauth2/authorize?client_id=5s8cg50doahmu855rlc8fr6qmp&response_type=token&scope=email+openid&redirect_uri=https%3A%2F%2Fapi-dev.hei.school%2Fwhoami) or [prod](https://prod-hei-admin.auth.eu-west-3.amazoncognito.com/oauth2/authorize?client_id=i8bg538jpfu6mqmqb61m26trd&response_type=token&scope=email+openid&redirect_uri=https%3A%2F%2Fapi-prod.hei.school%2Fwhoami) authentication service. Then, start playing with our system! The implementation of our API is [publicly disclosed](https://github.com/hei-school/hei-admin-api). You are welcome to try and compromise it. Happy hacking! | ||
* | ||
* The version of the OpenAPI document: 1.0 | ||
* The version of the OpenAPI document: latest | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* HEI Admin API | ||
* _Programmatically connect to a computer programming [school](https://hei.school)._ After [joining us](mailto:[email protected]), you can get an identification token from our [dev](https://dev-hei-admin.auth.eu-west-3.amazoncognito.com/oauth2/authorize?client_id=5s8cg50doahmu855rlc8fr6qmp&response_type=token&scope=email+openid&redirect_uri=https%3A%2F%2Fapi-dev.hei.school%2Fwhoami) or [prod](https://prod-hei-admin.auth.eu-west-3.amazoncognito.com/oauth2/authorize?client_id=i8bg538jpfu6mqmqb61m26trd&response_type=token&scope=email+openid&redirect_uri=https%3A%2F%2Fapi-prod.hei.school%2Fwhoami) authentication service. Then, start playing with our system! The implementation of our API is [publicly disclosed](https://github.com/hei-school/hei-admin-api). You are welcome to try and compromise it. Happy hacking! | ||
* | ||
* The version of the OpenAPI document: 1.0 | ||
* The version of the OpenAPI document: latest | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* HEI Admin API | ||
* _Programmatically connect to a computer programming [school](https://hei.school)._ After [joining us](mailto:[email protected]), you can get an identification token from our [dev](https://dev-hei-admin.auth.eu-west-3.amazoncognito.com/oauth2/authorize?client_id=5s8cg50doahmu855rlc8fr6qmp&response_type=token&scope=email+openid&redirect_uri=https%3A%2F%2Fapi-dev.hei.school%2Fwhoami) or [prod](https://prod-hei-admin.auth.eu-west-3.amazoncognito.com/oauth2/authorize?client_id=i8bg538jpfu6mqmqb61m26trd&response_type=token&scope=email+openid&redirect_uri=https%3A%2F%2Fapi-prod.hei.school%2Fwhoami) authentication service. Then, start playing with our system! The implementation of our API is [publicly disclosed](https://github.com/hei-school/hei-admin-api). You are welcome to try and compromise it. Happy hacking! | ||
* | ||
* The version of the OpenAPI document: 1.0 | ||
* The version of the OpenAPI document: latest | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
Oops, something went wrong.