@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,44 @@
|
|
|
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 GetContentUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentUpload {
|
|
18
|
+
/**
|
|
19
|
+
* The title of the uploaded content
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentUpload
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the uploaded content
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetContentUpload
|
|
28
|
+
*/
|
|
29
|
+
contentId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The URL to upload the content
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetContentUpload
|
|
34
|
+
*/
|
|
35
|
+
uploadUrl: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetContentUpload interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGetContentUpload(value: object): value is GetContentUpload;
|
|
41
|
+
export declare function GetContentUploadFromJSON(json: any): GetContentUpload;
|
|
42
|
+
export declare function GetContentUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentUpload;
|
|
43
|
+
export declare function GetContentUploadToJSON(json: any): GetContentUpload;
|
|
44
|
+
export declare function GetContentUploadToJSONTyped(value?: GetContentUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetContentUpload = instanceOfGetContentUpload;
|
|
17
|
+
exports.GetContentUploadFromJSON = GetContentUploadFromJSON;
|
|
18
|
+
exports.GetContentUploadFromJSONTyped = GetContentUploadFromJSONTyped;
|
|
19
|
+
exports.GetContentUploadToJSON = GetContentUploadToJSON;
|
|
20
|
+
exports.GetContentUploadToJSONTyped = GetContentUploadToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetContentUpload interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetContentUpload(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('uploadUrl' in value) || value['uploadUrl'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GetContentUploadFromJSON(json) {
|
|
34
|
+
return GetContentUploadFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetContentUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'contentId': json['content_id'],
|
|
43
|
+
'uploadUrl': json['upload_url'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function GetContentUploadToJSON(json) {
|
|
47
|
+
return GetContentUploadToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function GetContentUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'content_id': value['contentId'],
|
|
56
|
+
'upload_url': value['uploadUrl'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetCourse = instanceOfGetCourse;
|
|
17
|
+
exports.GetCourseFromJSON = GetCourseFromJSON;
|
|
18
|
+
exports.GetCourseFromJSONTyped = GetCourseFromJSONTyped;
|
|
19
|
+
exports.GetCourseToJSON = GetCourseToJSON;
|
|
20
|
+
exports.GetCourseToJSONTyped = GetCourseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetCourse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetCourse(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GetCourseFromJSON(json) {
|
|
34
|
+
return GetCourseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'description': json['description'],
|
|
44
|
+
'instructor': json['instructor'] == null ? undefined : json['instructor'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function GetCourseToJSON(json) {
|
|
48
|
+
return GetCourseToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function GetCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'description': value['description'],
|
|
57
|
+
'instructor': value['instructor'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GetCourseEnrollmentStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfGetCourseEnrollment = instanceOfGetCourseEnrollment;
|
|
18
|
+
exports.GetCourseEnrollmentFromJSON = GetCourseEnrollmentFromJSON;
|
|
19
|
+
exports.GetCourseEnrollmentFromJSONTyped = GetCourseEnrollmentFromJSONTyped;
|
|
20
|
+
exports.GetCourseEnrollmentToJSON = GetCourseEnrollmentToJSON;
|
|
21
|
+
exports.GetCourseEnrollmentToJSONTyped = GetCourseEnrollmentToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetCourseEnrollmentStatusEnum = {
|
|
26
|
+
Enrolled: 'Enrolled',
|
|
27
|
+
Dropped: 'Dropped',
|
|
28
|
+
Completed: 'Completed',
|
|
29
|
+
Waitlisted: 'Waitlisted',
|
|
30
|
+
Unknown: 'Unknown'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the GetCourseEnrollment interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfGetCourseEnrollment(value) {
|
|
36
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('notes' in value) || value['notes'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('completionDate' in value) || value['completionDate'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function GetCourseEnrollmentFromJSON(json) {
|
|
53
|
+
return GetCourseEnrollmentFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function GetCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'courseId': json['course_id'],
|
|
61
|
+
'userId': json['user_id'],
|
|
62
|
+
'enrollmentDateStart': json['enrollment_date_start'],
|
|
63
|
+
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
64
|
+
'notes': json['notes'],
|
|
65
|
+
'status': json['status'],
|
|
66
|
+
'completionDate': json['completion_date'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function GetCourseEnrollmentToJSON(json) {
|
|
70
|
+
return GetCourseEnrollmentToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function GetCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'course_id': value['courseId'],
|
|
78
|
+
'user_id': value['userId'],
|
|
79
|
+
'enrollment_date_start': value['enrollmentDateStart'],
|
|
80
|
+
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
81
|
+
'notes': value['notes'],
|
|
82
|
+
'status': value['status'],
|
|
83
|
+
'completion_date': value['completionDate'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -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,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetCourseEnrollmentList = instanceOfGetCourseEnrollmentList;
|
|
17
|
+
exports.GetCourseEnrollmentListFromJSON = GetCourseEnrollmentListFromJSON;
|
|
18
|
+
exports.GetCourseEnrollmentListFromJSONTyped = GetCourseEnrollmentListFromJSONTyped;
|
|
19
|
+
exports.GetCourseEnrollmentListToJSON = GetCourseEnrollmentListToJSON;
|
|
20
|
+
exports.GetCourseEnrollmentListToJSONTyped = GetCourseEnrollmentListToJSONTyped;
|
|
21
|
+
const GetCourseEnrollment_1 = require("./GetCourseEnrollment");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetCourseEnrollmentList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetCourseEnrollmentList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetCourseEnrollmentListFromJSON(json) {
|
|
39
|
+
return GetCourseEnrollmentListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetCourseEnrollmentListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['pageSize'],
|
|
48
|
+
'totalPages': json['totalPages'],
|
|
49
|
+
'totalItems': json['totalItems'],
|
|
50
|
+
'items': (json['items'].map(GetCourseEnrollment_1.GetCourseEnrollmentFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetCourseEnrollmentListToJSON(json) {
|
|
54
|
+
return GetCourseEnrollmentListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetCourseEnrollmentListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'pageSize': value['pageSize'],
|
|
63
|
+
'totalPages': value['totalPages'],
|
|
64
|
+
'totalItems': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(GetCourseEnrollment_1.GetCourseEnrollmentToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetCourseList = instanceOfGetCourseList;
|
|
17
|
+
exports.GetCourseListFromJSON = GetCourseListFromJSON;
|
|
18
|
+
exports.GetCourseListFromJSONTyped = GetCourseListFromJSONTyped;
|
|
19
|
+
exports.GetCourseListToJSON = GetCourseListToJSON;
|
|
20
|
+
exports.GetCourseListToJSONTyped = GetCourseListToJSONTyped;
|
|
21
|
+
const GetCourse_1 = require("./GetCourse");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetCourseList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetCourseList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetCourseListFromJSON(json) {
|
|
39
|
+
return GetCourseListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetCourseListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['pageSize'],
|
|
48
|
+
'totalPages': json['totalPages'],
|
|
49
|
+
'totalItems': json['totalItems'],
|
|
50
|
+
'items': (json['items'].map(GetCourse_1.GetCourseFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetCourseListToJSON(json) {
|
|
54
|
+
return GetCourseListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetCourseListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'pageSize': value['pageSize'],
|
|
63
|
+
'totalPages': value['totalPages'],
|
|
64
|
+
'totalItems': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(GetCourse_1.GetCourseToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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;
|