@easyedu/js-lsm-api 1.0.0-677fab496294ee48248fd8a03fee59e3bf0dcf02
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +35 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/ContentApi.d.ts +82 -0
- package/dist/apis/ContentApi.js +204 -0
- package/dist/apis/CourseApi.d.ts +71 -0
- package/dist/apis/CourseApi.js +177 -0
- package/dist/apis/ModuleApi.d.ts +53 -0
- package/dist/apis/ModuleApi.js +125 -0
- package/dist/apis/OtherApi.d.ts +25 -0
- package/dist/apis/OtherApi.js +56 -0
- package/dist/apis/UserApi.d.ts +51 -0
- package/dist/apis/UserApi.js +121 -0
- package/dist/apis/index.d.ts +5 -0
- package/dist/apis/index.js +23 -0
- package/dist/esm/apis/ContentApi.d.ts +82 -0
- package/dist/esm/apis/ContentApi.js +200 -0
- package/dist/esm/apis/CourseApi.d.ts +71 -0
- package/dist/esm/apis/CourseApi.js +173 -0
- package/dist/esm/apis/ModuleApi.d.ts +53 -0
- package/dist/esm/apis/ModuleApi.js +121 -0
- package/dist/esm/apis/OtherApi.d.ts +25 -0
- package/dist/esm/apis/OtherApi.js +52 -0
- package/dist/esm/apis/UserApi.d.ts +51 -0
- package/dist/esm/apis/UserApi.js +117 -0
- package/dist/esm/apis/index.d.ts +5 -0
- package/dist/esm/apis/index.js +7 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/GetContent.d.ts +44 -0
- package/dist/esm/models/GetContent.js +50 -0
- package/dist/esm/models/GetContentList.d.ts +57 -0
- package/dist/esm/models/GetContentList.js +60 -0
- package/dist/esm/models/GetContentSession.d.ts +50 -0
- package/dist/esm/models/GetContentSession.js +55 -0
- package/dist/esm/models/GetContentUpload.d.ts +44 -0
- package/dist/esm/models/GetContentUpload.js +51 -0
- package/dist/esm/models/GetCourse.d.ts +50 -0
- package/dist/esm/models/GetCourse.js +52 -0
- package/dist/esm/models/GetCourseEnrollment.d.ts +79 -0
- package/dist/esm/models/GetCourseEnrollment.js +77 -0
- package/dist/esm/models/GetCourseEnrollmentList.d.ts +57 -0
- package/dist/esm/models/GetCourseEnrollmentList.js +60 -0
- package/dist/esm/models/GetCourseList.d.ts +57 -0
- package/dist/esm/models/GetCourseList.js +60 -0
- package/dist/esm/models/GetModule.d.ts +62 -0
- package/dist/esm/models/GetModule.js +61 -0
- package/dist/esm/models/GetModuleList.d.ts +57 -0
- package/dist/esm/models/GetModuleList.js +60 -0
- package/dist/esm/models/GetUser.d.ts +50 -0
- package/dist/esm/models/GetUser.js +54 -0
- package/dist/esm/models/LoginRes.d.ts +32 -0
- package/dist/esm/models/LoginRes.js +43 -0
- package/dist/esm/models/PostContentScorm.d.ts +38 -0
- package/dist/esm/models/PostContentScorm.js +47 -0
- package/dist/esm/models/PostContentUpload.d.ts +50 -0
- package/dist/esm/models/PostContentUpload.js +58 -0
- package/dist/esm/models/PostCourse.d.ts +44 -0
- package/dist/esm/models/PostCourse.js +51 -0
- package/dist/esm/models/PostCourseEnrollment.d.ts +44 -0
- package/dist/esm/models/PostCourseEnrollment.js +51 -0
- package/dist/esm/models/PostLogin.d.ts +38 -0
- package/dist/esm/models/PostLogin.js +47 -0
- package/dist/esm/models/PostModule.d.ts +44 -0
- package/dist/esm/models/PostModule.js +51 -0
- package/dist/esm/models/PostUser.d.ts +44 -0
- package/dist/esm/models/PostUser.js +51 -0
- package/dist/esm/models/index.d.ts +19 -0
- package/dist/esm/models/index.js +21 -0
- package/dist/esm/runtime.d.ts +182 -0
- package/dist/esm/runtime.js +330 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/GetContent.d.ts +44 -0
- package/dist/models/GetContent.js +57 -0
- package/dist/models/GetContentList.d.ts +57 -0
- package/dist/models/GetContentList.js +67 -0
- package/dist/models/GetContentSession.d.ts +50 -0
- package/dist/models/GetContentSession.js +62 -0
- package/dist/models/GetContentUpload.d.ts +44 -0
- package/dist/models/GetContentUpload.js +58 -0
- package/dist/models/GetCourse.d.ts +50 -0
- package/dist/models/GetCourse.js +59 -0
- package/dist/models/GetCourseEnrollment.d.ts +79 -0
- package/dist/models/GetCourseEnrollment.js +85 -0
- package/dist/models/GetCourseEnrollmentList.d.ts +57 -0
- package/dist/models/GetCourseEnrollmentList.js +67 -0
- package/dist/models/GetCourseList.d.ts +57 -0
- package/dist/models/GetCourseList.js +67 -0
- package/dist/models/GetModule.d.ts +62 -0
- package/dist/models/GetModule.js +68 -0
- package/dist/models/GetModuleList.d.ts +57 -0
- package/dist/models/GetModuleList.js +67 -0
- package/dist/models/GetUser.d.ts +50 -0
- package/dist/models/GetUser.js +61 -0
- package/dist/models/LoginRes.d.ts +32 -0
- package/dist/models/LoginRes.js +50 -0
- package/dist/models/PostContentScorm.d.ts +38 -0
- package/dist/models/PostContentScorm.js +54 -0
- package/dist/models/PostContentUpload.d.ts +50 -0
- package/dist/models/PostContentUpload.js +66 -0
- package/dist/models/PostCourse.d.ts +44 -0
- package/dist/models/PostCourse.js +58 -0
- package/dist/models/PostCourseEnrollment.d.ts +44 -0
- package/dist/models/PostCourseEnrollment.js +58 -0
- package/dist/models/PostLogin.d.ts +38 -0
- package/dist/models/PostLogin.js +54 -0
- package/dist/models/PostModule.d.ts +44 -0
- package/dist/models/PostModule.js +58 -0
- package/dist/models/PostUser.d.ts +44 -0
- package/dist/models/PostUser.js +58 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +37 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +346 -0
- package/package.json +21 -0
- package/src/apis/ContentApi.ts +308 -0
- package/src/apis/CourseApi.ts +233 -0
- package/src/apis/ModuleApi.ts +166 -0
- package/src/apis/OtherApi.ts +48 -0
- package/src/apis/UserApi.ts +156 -0
- package/src/apis/index.ts +7 -0
- package/src/index.ts +5 -0
- package/src/models/GetContent.ts +83 -0
- package/src/models/GetContentList.ts +110 -0
- package/src/models/GetContentSession.ts +93 -0
- package/src/models/GetContentUpload.ts +84 -0
- package/src/models/GetCourse.ts +91 -0
- package/src/models/GetCourseEnrollment.ts +134 -0
- package/src/models/GetCourseEnrollmentList.ts +110 -0
- package/src/models/GetCourseList.ts +110 -0
- package/src/models/GetModule.ts +109 -0
- package/src/models/GetModuleList.ts +110 -0
- package/src/models/GetUser.ts +92 -0
- package/src/models/LoginRes.ts +66 -0
- package/src/models/PostContentScorm.ts +75 -0
- package/src/models/PostContentUpload.ts +90 -0
- package/src/models/PostCourse.ts +84 -0
- package/src/models/PostCourseEnrollment.ts +84 -0
- package/src/models/PostLogin.ts +75 -0
- package/src/models/PostModule.ts +84 -0
- package/src/models/PostUser.ts +84 -0
- package/src/models/index.ts +21 -0
- package/src/runtime.ts +431 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetCourse
|
|
16
|
+
*/
|
|
17
|
+
export interface GetCourse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetCourse
|
|
22
|
+
*/
|
|
23
|
+
readonly id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetCourse
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetCourse
|
|
34
|
+
*/
|
|
35
|
+
description: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetCourse
|
|
40
|
+
*/
|
|
41
|
+
instructor?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the GetCourse interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfGetCourse(value: object): value is GetCourse;
|
|
47
|
+
export declare function GetCourseFromJSON(json: any): GetCourse;
|
|
48
|
+
export declare function GetCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourse;
|
|
49
|
+
export declare function GetCourseToJSON(json: any): GetCourse;
|
|
50
|
+
export declare function GetCourseToJSONTyped(value?: Omit<GetCourse, 'id'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the GetCourse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetCourse(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GetCourseFromJSON(json) {
|
|
27
|
+
return GetCourseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GetCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': json['id'],
|
|
35
|
+
'name': json['name'],
|
|
36
|
+
'description': json['description'],
|
|
37
|
+
'instructor': json['instructor'] == null ? undefined : json['instructor'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function GetCourseToJSON(json) {
|
|
41
|
+
return GetCourseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function GetCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
'description': value['description'],
|
|
50
|
+
'instructor': value['instructor'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A course enrollment
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetCourseEnrollment
|
|
16
|
+
*/
|
|
17
|
+
export interface GetCourseEnrollment {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the course
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetCourseEnrollment
|
|
22
|
+
*/
|
|
23
|
+
courseId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the enrolled user
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetCourseEnrollment
|
|
28
|
+
*/
|
|
29
|
+
userId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Start date of the enrollment (Unix timestamp)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetCourseEnrollment
|
|
34
|
+
*/
|
|
35
|
+
enrollmentDateStart: number;
|
|
36
|
+
/**
|
|
37
|
+
* End date of the enrollment (Unix timestamp)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetCourseEnrollment
|
|
40
|
+
*/
|
|
41
|
+
enrollmentDateEnd: number;
|
|
42
|
+
/**
|
|
43
|
+
* Optional notes about the enrollment
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetCourseEnrollment
|
|
46
|
+
*/
|
|
47
|
+
notes: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Current status of the enrollment
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GetCourseEnrollment
|
|
52
|
+
*/
|
|
53
|
+
status: GetCourseEnrollmentStatusEnum;
|
|
54
|
+
/**
|
|
55
|
+
* Date the course was completed (Unix timestamp)
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GetCourseEnrollment
|
|
58
|
+
*/
|
|
59
|
+
completionDate: number | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const GetCourseEnrollmentStatusEnum: {
|
|
65
|
+
readonly Enrolled: "Enrolled";
|
|
66
|
+
readonly Dropped: "Dropped";
|
|
67
|
+
readonly Completed: "Completed";
|
|
68
|
+
readonly Waitlisted: "Waitlisted";
|
|
69
|
+
readonly Unknown: "Unknown";
|
|
70
|
+
};
|
|
71
|
+
export type GetCourseEnrollmentStatusEnum = typeof GetCourseEnrollmentStatusEnum[keyof typeof GetCourseEnrollmentStatusEnum];
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the GetCourseEnrollment interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfGetCourseEnrollment(value: object): value is GetCourseEnrollment;
|
|
76
|
+
export declare function GetCourseEnrollmentFromJSON(json: any): GetCourseEnrollment;
|
|
77
|
+
export declare function GetCourseEnrollmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseEnrollment;
|
|
78
|
+
export declare function GetCourseEnrollmentToJSON(json: any): GetCourseEnrollment;
|
|
79
|
+
export declare function GetCourseEnrollmentToJSONTyped(value?: GetCourseEnrollment | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const GetCourseEnrollmentStatusEnum = {
|
|
18
|
+
Enrolled: 'Enrolled',
|
|
19
|
+
Dropped: 'Dropped',
|
|
20
|
+
Completed: 'Completed',
|
|
21
|
+
Waitlisted: 'Waitlisted',
|
|
22
|
+
Unknown: 'Unknown'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetCourseEnrollment interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfGetCourseEnrollment(value) {
|
|
28
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('notes' in value) || value['notes'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('completionDate' in value) || value['completionDate'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
export function GetCourseEnrollmentFromJSON(json) {
|
|
45
|
+
return GetCourseEnrollmentFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function GetCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'courseId': json['course_id'],
|
|
53
|
+
'userId': json['user_id'],
|
|
54
|
+
'enrollmentDateStart': json['enrollment_date_start'],
|
|
55
|
+
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
56
|
+
'notes': json['notes'],
|
|
57
|
+
'status': json['status'],
|
|
58
|
+
'completionDate': json['completion_date'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export function GetCourseEnrollmentToJSON(json) {
|
|
62
|
+
return GetCourseEnrollmentToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
export function GetCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'course_id': value['courseId'],
|
|
70
|
+
'user_id': value['userId'],
|
|
71
|
+
'enrollment_date_start': value['enrollmentDateStart'],
|
|
72
|
+
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
73
|
+
'notes': value['notes'],
|
|
74
|
+
'status': value['status'],
|
|
75
|
+
'completion_date': value['completionDate'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetCourseEnrollment } from './GetCourseEnrollment';
|
|
13
|
+
/**
|
|
14
|
+
* A list of course enrollments with pagination information
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCourseEnrollmentList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCourseEnrollmentList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetCourseEnrollmentList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetCourseEnrollmentList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetCourseEnrollmentList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetCourseEnrollmentList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetCourseEnrollment>}
|
|
46
|
+
* @memberof GetCourseEnrollmentList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetCourseEnrollment>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetCourseEnrollmentList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetCourseEnrollmentList(value: object): value is GetCourseEnrollmentList;
|
|
54
|
+
export declare function GetCourseEnrollmentListFromJSON(json: any): GetCourseEnrollmentList;
|
|
55
|
+
export declare function GetCourseEnrollmentListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseEnrollmentList;
|
|
56
|
+
export declare function GetCourseEnrollmentListToJSON(json: any): GetCourseEnrollmentList;
|
|
57
|
+
export declare function GetCourseEnrollmentListToJSONTyped(value?: GetCourseEnrollmentList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { GetCourseEnrollmentFromJSON, GetCourseEnrollmentToJSON, } from './GetCourseEnrollment';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetCourseEnrollmentList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetCourseEnrollmentList(value) {
|
|
19
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function GetCourseEnrollmentListFromJSON(json) {
|
|
32
|
+
return GetCourseEnrollmentListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetCourseEnrollmentListFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'page': json['page'],
|
|
40
|
+
'pageSize': json['pageSize'],
|
|
41
|
+
'totalPages': json['totalPages'],
|
|
42
|
+
'totalItems': json['totalItems'],
|
|
43
|
+
'items': (json['items'].map(GetCourseEnrollmentFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetCourseEnrollmentListToJSON(json) {
|
|
47
|
+
return GetCourseEnrollmentListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetCourseEnrollmentListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'page': value['page'],
|
|
55
|
+
'pageSize': value['pageSize'],
|
|
56
|
+
'totalPages': value['totalPages'],
|
|
57
|
+
'totalItems': value['totalItems'],
|
|
58
|
+
'items': (value['items'].map(GetCourseEnrollmentToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetCourse } from './GetCourse';
|
|
13
|
+
/**
|
|
14
|
+
* A list of courses with pagination information
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCourseList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCourseList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetCourseList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetCourseList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetCourseList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetCourseList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetCourse>}
|
|
46
|
+
* @memberof GetCourseList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetCourse>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetCourseList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetCourseList(value: object): value is GetCourseList;
|
|
54
|
+
export declare function GetCourseListFromJSON(json: any): GetCourseList;
|
|
55
|
+
export declare function GetCourseListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseList;
|
|
56
|
+
export declare function GetCourseListToJSON(json: any): GetCourseList;
|
|
57
|
+
export declare function GetCourseListToJSONTyped(value?: GetCourseList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { GetCourseFromJSON, GetCourseToJSON, } from './GetCourse';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetCourseList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetCourseList(value) {
|
|
19
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function GetCourseListFromJSON(json) {
|
|
32
|
+
return GetCourseListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetCourseListFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'page': json['page'],
|
|
40
|
+
'pageSize': json['pageSize'],
|
|
41
|
+
'totalPages': json['totalPages'],
|
|
42
|
+
'totalItems': json['totalItems'],
|
|
43
|
+
'items': (json['items'].map(GetCourseFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetCourseListToJSON(json) {
|
|
47
|
+
return GetCourseListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetCourseListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'page': value['page'],
|
|
55
|
+
'pageSize': value['pageSize'],
|
|
56
|
+
'totalPages': value['totalPages'],
|
|
57
|
+
'totalItems': value['totalItems'],
|
|
58
|
+
'items': (value['items'].map(GetCourseToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetModule
|
|
16
|
+
*/
|
|
17
|
+
export interface GetModule {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetModule
|
|
22
|
+
*/
|
|
23
|
+
readonly id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetModule
|
|
28
|
+
*/
|
|
29
|
+
readonly courseId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetModule
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetModule
|
|
40
|
+
*/
|
|
41
|
+
description: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetModule
|
|
46
|
+
*/
|
|
47
|
+
order: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GetModule
|
|
52
|
+
*/
|
|
53
|
+
lastUpdated: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the GetModule interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfGetModule(value: object): value is GetModule;
|
|
59
|
+
export declare function GetModuleFromJSON(json: any): GetModule;
|
|
60
|
+
export declare function GetModuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModule;
|
|
61
|
+
export declare function GetModuleToJSON(json: any): GetModule;
|
|
62
|
+
export declare function GetModuleToJSONTyped(value?: Omit<GetModule, 'id' | 'course_id'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the GetModule interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetModule(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('order' in value) || value['order'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function GetModuleFromJSON(json) {
|
|
33
|
+
return GetModuleFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function GetModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'courseId': json['course_id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'description': json['description'],
|
|
44
|
+
'order': json['order'],
|
|
45
|
+
'lastUpdated': json['last_updated'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function GetModuleToJSON(json) {
|
|
49
|
+
return GetModuleToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function GetModuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'description': value['description'],
|
|
58
|
+
'order': value['order'],
|
|
59
|
+
'last_updated': value['lastUpdated'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetModule } from './GetModule';
|
|
13
|
+
/**
|
|
14
|
+
* A list of modules with pagination information
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetModuleList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetModuleList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetModuleList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetModuleList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetModuleList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetModuleList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetModule>}
|
|
46
|
+
* @memberof GetModuleList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetModule>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetModuleList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetModuleList(value: object): value is GetModuleList;
|
|
54
|
+
export declare function GetModuleListFromJSON(json: any): GetModuleList;
|
|
55
|
+
export declare function GetModuleListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModuleList;
|
|
56
|
+
export declare function GetModuleListToJSON(json: any): GetModuleList;
|
|
57
|
+
export declare function GetModuleListToJSONTyped(value?: GetModuleList | null, ignoreDiscriminator?: boolean): any;
|