@easyedu/js-lsm-api 1.79.0 → 1.81.0
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 +26 -0
- package/README.md +18 -2
- package/dist/apis/RichTextApi.d.ts +67 -0
- package/dist/apis/RichTextApi.js +158 -0
- package/dist/apis/UserApi.d.ts +42 -0
- package/dist/apis/UserApi.js +79 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/RichTextApi.d.ts +67 -0
- package/dist/esm/apis/RichTextApi.js +154 -0
- package/dist/esm/apis/UserApi.d.ts +42 -0
- package/dist/esm/apis/UserApi.js +78 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetQuestion.d.ts +7 -6
- package/dist/esm/models/GetQuestion.js +5 -4
- package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/esm/models/GetQuestionAnswerChoicesInner.js +3 -2
- package/dist/esm/models/GetRichTextAssetUpload.d.ts +50 -0
- package/dist/esm/models/GetRichTextAssetUpload.js +55 -0
- package/dist/esm/models/GetUserCourseList.d.ts +57 -0
- package/dist/esm/models/GetUserCourseList.js +60 -0
- package/dist/esm/models/GetUserCourseListItem.d.ts +54 -0
- package/dist/esm/models/GetUserCourseListItem.js +59 -0
- package/dist/esm/models/GetUserCourseListItemCertificate.d.ts +74 -0
- package/dist/esm/models/GetUserCourseListItemCertificate.js +75 -0
- package/dist/esm/models/GetUserCourseListItemCourse.d.ts +89 -0
- package/dist/esm/models/GetUserCourseListItemCourse.js +82 -0
- package/dist/esm/models/GetUserCourseListItemEnrollment.d.ts +111 -0
- package/dist/esm/models/GetUserCourseListItemEnrollment.js +105 -0
- package/dist/esm/models/GetUserCourseListItemProgress.d.ts +44 -0
- package/dist/esm/models/GetUserCourseListItemProgress.js +51 -0
- package/dist/esm/models/PostQuestion.d.ts +7 -6
- package/dist/esm/models/PostQuestion.js +5 -4
- package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/esm/models/PostQuestionAnswerChoicesInner.js +3 -2
- package/dist/esm/models/PostRichTextAssetComplete.d.ts +44 -0
- package/dist/esm/models/PostRichTextAssetComplete.js +47 -0
- package/dist/esm/models/PostRichTextAssetUpload.d.ts +69 -0
- package/dist/esm/models/PostRichTextAssetUpload.js +65 -0
- package/dist/esm/models/PutQuestion.d.ts +7 -6
- package/dist/esm/models/PutQuestion.js +5 -4
- package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/esm/models/PutQuestionAnswerChoicesInner.js +3 -2
- package/dist/esm/models/RichTextAsset.d.ts +62 -0
- package/dist/esm/models/RichTextAsset.js +59 -0
- package/dist/esm/models/RichTextDocument.d.ts +60 -0
- package/dist/esm/models/RichTextDocument.js +62 -0
- package/dist/esm/models/RichTextInput.d.ts +47 -0
- package/dist/esm/models/RichTextInput.js +53 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/GetQuestion.d.ts +7 -6
- package/dist/models/GetQuestion.js +5 -4
- package/dist/models/GetQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/models/GetQuestionAnswerChoicesInner.js +3 -2
- package/dist/models/GetRichTextAssetUpload.d.ts +50 -0
- package/dist/models/GetRichTextAssetUpload.js +62 -0
- package/dist/models/GetUserCourseList.d.ts +57 -0
- package/dist/models/GetUserCourseList.js +67 -0
- package/dist/models/GetUserCourseListItem.d.ts +54 -0
- package/dist/models/GetUserCourseListItem.js +66 -0
- package/dist/models/GetUserCourseListItemCertificate.d.ts +74 -0
- package/dist/models/GetUserCourseListItemCertificate.js +83 -0
- package/dist/models/GetUserCourseListItemCourse.d.ts +89 -0
- package/dist/models/GetUserCourseListItemCourse.js +90 -0
- package/dist/models/GetUserCourseListItemEnrollment.d.ts +111 -0
- package/dist/models/GetUserCourseListItemEnrollment.js +113 -0
- package/dist/models/GetUserCourseListItemProgress.d.ts +44 -0
- package/dist/models/GetUserCourseListItemProgress.js +58 -0
- package/dist/models/PostQuestion.d.ts +7 -6
- package/dist/models/PostQuestion.js +5 -4
- package/dist/models/PostQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/models/PostQuestionAnswerChoicesInner.js +3 -2
- package/dist/models/PostRichTextAssetComplete.d.ts +44 -0
- package/dist/models/PostRichTextAssetComplete.js +54 -0
- package/dist/models/PostRichTextAssetUpload.d.ts +69 -0
- package/dist/models/PostRichTextAssetUpload.js +73 -0
- package/dist/models/PutQuestion.d.ts +7 -6
- package/dist/models/PutQuestion.js +5 -4
- package/dist/models/PutQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/models/PutQuestionAnswerChoicesInner.js +3 -2
- package/dist/models/RichTextAsset.d.ts +62 -0
- package/dist/models/RichTextAsset.js +66 -0
- package/dist/models/RichTextDocument.d.ts +60 -0
- package/dist/models/RichTextDocument.js +70 -0
- package/dist/models/RichTextInput.d.ts +47 -0
- package/dist/models/RichTextInput.js +61 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/docs/GetQuestion.md +2 -2
- package/docs/GetQuestionAnswerChoicesInner.md +1 -1
- package/docs/GetRichTextAssetUpload.md +40 -0
- package/docs/GetUserCourseList.md +43 -0
- package/docs/GetUserCourseListItem.md +41 -0
- package/docs/GetUserCourseListItemCertificate.md +43 -0
- package/docs/GetUserCourseListItemCourse.md +51 -0
- package/docs/GetUserCourseListItemEnrollment.md +49 -0
- package/docs/GetUserCourseListItemProgress.md +39 -0
- package/docs/PostQuestion.md +2 -2
- package/docs/PostQuestionAnswerChoicesInner.md +1 -1
- package/docs/PostRichTextAssetComplete.md +38 -0
- package/docs/PostRichTextAssetUpload.md +44 -0
- package/docs/PutQuestion.md +2 -2
- package/docs/PutQuestionAnswerChoicesInner.md +1 -1
- package/docs/RichTextApi.md +212 -0
- package/docs/RichTextAsset.md +44 -0
- package/docs/RichTextDocument.md +40 -0
- package/docs/RichTextInput.md +36 -0
- package/docs/UserApi.md +90 -0
- package/package.json +1 -1
- package/src/apis/RichTextApi.ts +201 -0
- package/src/apis/UserApi.ts +108 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetQuestion.ts +17 -10
- package/src/models/GetQuestionAnswerChoicesInner.ts +12 -4
- package/src/models/GetRichTextAssetUpload.ts +93 -0
- package/src/models/GetUserCourseList.ts +110 -0
- package/src/models/GetUserCourseListItem.ts +122 -0
- package/src/models/GetUserCourseListItemCertificate.ts +124 -0
- package/src/models/GetUserCourseListItemCourse.ts +149 -0
- package/src/models/GetUserCourseListItemEnrollment.ts +171 -0
- package/src/models/GetUserCourseListItemProgress.ts +84 -0
- package/src/models/PostQuestion.ts +17 -10
- package/src/models/PostQuestionAnswerChoicesInner.ts +12 -4
- package/src/models/PostRichTextAssetComplete.ts +82 -0
- package/src/models/PostRichTextAssetUpload.ts +119 -0
- package/src/models/PutQuestion.ts +17 -10
- package/src/models/PutQuestionAnswerChoicesInner.ts +12 -4
- package/src/models/RichTextAsset.ts +109 -0
- package/src/models/RichTextDocument.ts +111 -0
- package/src/models/RichTextInput.ts +85 -0
- package/src/models/index.ts +12 -0
|
@@ -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 { GetUserCourseListItemFromJSON, GetUserCourseListItemToJSON, } from './GetUserCourseListItem';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetUserCourseList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetUserCourseList(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 GetUserCourseListFromJSON(json) {
|
|
32
|
+
return GetUserCourseListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetUserCourseListFromJSONTyped(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(GetUserCourseListItemFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetUserCourseListToJSON(json) {
|
|
47
|
+
return GetUserCourseListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetUserCourseListToJSONTyped(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(GetUserCourseListItemToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { GetUserCourseListItemCourse } from './GetUserCourseListItemCourse';
|
|
13
|
+
import type { GetUserCourseListItemEnrollment } from './GetUserCourseListItemEnrollment';
|
|
14
|
+
import type { GetUserCourseListItemCertificate } from './GetUserCourseListItemCertificate';
|
|
15
|
+
import type { GetUserCourseListItemProgress } from './GetUserCourseListItemProgress';
|
|
16
|
+
/**
|
|
17
|
+
* A course the target user is enrolled in, grouped by course and selected enrollment.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetUserCourseListItem
|
|
20
|
+
*/
|
|
21
|
+
export interface GetUserCourseListItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {GetUserCourseListItemCourse}
|
|
25
|
+
* @memberof GetUserCourseListItem
|
|
26
|
+
*/
|
|
27
|
+
course: GetUserCourseListItemCourse;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {GetUserCourseListItemEnrollment}
|
|
31
|
+
* @memberof GetUserCourseListItem
|
|
32
|
+
*/
|
|
33
|
+
enrollment: GetUserCourseListItemEnrollment;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {GetUserCourseListItemProgress}
|
|
37
|
+
* @memberof GetUserCourseListItem
|
|
38
|
+
*/
|
|
39
|
+
progress: GetUserCourseListItemProgress;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {GetUserCourseListItemCertificate}
|
|
43
|
+
* @memberof GetUserCourseListItem
|
|
44
|
+
*/
|
|
45
|
+
certificate: GetUserCourseListItemCertificate | null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the GetUserCourseListItem interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfGetUserCourseListItem(value: object): value is GetUserCourseListItem;
|
|
51
|
+
export declare function GetUserCourseListItemFromJSON(json: any): GetUserCourseListItem;
|
|
52
|
+
export declare function GetUserCourseListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserCourseListItem;
|
|
53
|
+
export declare function GetUserCourseListItemToJSON(json: any): GetUserCourseListItem;
|
|
54
|
+
export declare function GetUserCourseListItemToJSONTyped(value?: GetUserCourseListItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { GetUserCourseListItemCourseFromJSON, GetUserCourseListItemCourseToJSON, } from './GetUserCourseListItemCourse';
|
|
15
|
+
import { GetUserCourseListItemEnrollmentFromJSON, GetUserCourseListItemEnrollmentToJSON, } from './GetUserCourseListItemEnrollment';
|
|
16
|
+
import { GetUserCourseListItemCertificateFromJSON, GetUserCourseListItemCertificateToJSON, } from './GetUserCourseListItemCertificate';
|
|
17
|
+
import { GetUserCourseListItemProgressFromJSON, GetUserCourseListItemProgressToJSON, } from './GetUserCourseListItemProgress';
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the GetUserCourseListItem interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfGetUserCourseListItem(value) {
|
|
22
|
+
if (!('course' in value) || value['course'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('enrollment' in value) || value['enrollment'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('progress' in value) || value['progress'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('certificate' in value) || value['certificate'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function GetUserCourseListItemFromJSON(json) {
|
|
33
|
+
return GetUserCourseListItemFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function GetUserCourseListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'course': GetUserCourseListItemCourseFromJSON(json['course']),
|
|
41
|
+
'enrollment': GetUserCourseListItemEnrollmentFromJSON(json['enrollment']),
|
|
42
|
+
'progress': GetUserCourseListItemProgressFromJSON(json['progress']),
|
|
43
|
+
'certificate': GetUserCourseListItemCertificateFromJSON(json['certificate']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetUserCourseListItemToJSON(json) {
|
|
47
|
+
return GetUserCourseListItemToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetUserCourseListItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'course': GetUserCourseListItemCourseToJSON(value['course']),
|
|
55
|
+
'enrollment': GetUserCourseListItemEnrollmentToJSON(value['enrollment']),
|
|
56
|
+
'progress': GetUserCourseListItemProgressToJSON(value['progress']),
|
|
57
|
+
'certificate': GetUserCourseListItemCertificateToJSON(value['certificate']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
* Latest certificate for the learner and course, if one exists.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetUserCourseListItemCertificate
|
|
16
|
+
*/
|
|
17
|
+
export interface GetUserCourseListItemCertificate {
|
|
18
|
+
/**
|
|
19
|
+
* The external ID of the certificate.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetUserCourseListItemCertificate
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Derived certificate status. Active certificates with expires_at in the past are returned as expired.
|
|
26
|
+
* @type {GetUserCourseListItemCertificateStatusEnum}
|
|
27
|
+
* @memberof GetUserCourseListItemCertificate
|
|
28
|
+
*/
|
|
29
|
+
status: GetUserCourseListItemCertificateStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetUserCourseListItemCertificate
|
|
34
|
+
*/
|
|
35
|
+
issuedAt: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetUserCourseListItemCertificate
|
|
40
|
+
*/
|
|
41
|
+
expiresAt: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {GetUserCourseListItemCertificateIssuanceReasonEnum}
|
|
45
|
+
* @memberof GetUserCourseListItemCertificate
|
|
46
|
+
*/
|
|
47
|
+
issuanceReason: GetUserCourseListItemCertificateIssuanceReasonEnum;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const GetUserCourseListItemCertificateStatusEnum: {
|
|
53
|
+
readonly Active: "active";
|
|
54
|
+
readonly Expired: "expired";
|
|
55
|
+
readonly Revoked: "revoked";
|
|
56
|
+
};
|
|
57
|
+
export type GetUserCourseListItemCertificateStatusEnum = typeof GetUserCourseListItemCertificateStatusEnum[keyof typeof GetUserCourseListItemCertificateStatusEnum];
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export declare const GetUserCourseListItemCertificateIssuanceReasonEnum: {
|
|
62
|
+
readonly CourseCompletion: "course_completion";
|
|
63
|
+
readonly QuizPassed: "quiz_passed";
|
|
64
|
+
readonly Manual: "manual";
|
|
65
|
+
};
|
|
66
|
+
export type GetUserCourseListItemCertificateIssuanceReasonEnum = typeof GetUserCourseListItemCertificateIssuanceReasonEnum[keyof typeof GetUserCourseListItemCertificateIssuanceReasonEnum];
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the GetUserCourseListItemCertificate interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfGetUserCourseListItemCertificate(value: object): value is GetUserCourseListItemCertificate;
|
|
71
|
+
export declare function GetUserCourseListItemCertificateFromJSON(json: any): GetUserCourseListItemCertificate;
|
|
72
|
+
export declare function GetUserCourseListItemCertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserCourseListItemCertificate;
|
|
73
|
+
export declare function GetUserCourseListItemCertificateToJSON(json: any): GetUserCourseListItemCertificate;
|
|
74
|
+
export declare function GetUserCourseListItemCertificateToJSONTyped(value?: GetUserCourseListItemCertificate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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 GetUserCourseListItemCertificateStatusEnum = {
|
|
18
|
+
Active: 'active',
|
|
19
|
+
Expired: 'expired',
|
|
20
|
+
Revoked: 'revoked'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const GetUserCourseListItemCertificateIssuanceReasonEnum = {
|
|
26
|
+
CourseCompletion: 'course_completion',
|
|
27
|
+
QuizPassed: 'quiz_passed',
|
|
28
|
+
Manual: 'manual'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetUserCourseListItemCertificate interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfGetUserCourseListItemCertificate(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('issuedAt' in value) || value['issuedAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('issuanceReason' in value) || value['issuanceReason'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
export function GetUserCourseListItemCertificateFromJSON(json) {
|
|
47
|
+
return GetUserCourseListItemCertificateFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetUserCourseListItemCertificateFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'status': json['status'],
|
|
56
|
+
'issuedAt': json['issued_at'],
|
|
57
|
+
'expiresAt': json['expires_at'],
|
|
58
|
+
'issuanceReason': json['issuance_reason'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export function GetUserCourseListItemCertificateToJSON(json) {
|
|
62
|
+
return GetUserCourseListItemCertificateToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
export function GetUserCourseListItemCertificateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'status': value['status'],
|
|
71
|
+
'issued_at': value['issuedAt'],
|
|
72
|
+
'expires_at': value['expiresAt'],
|
|
73
|
+
'issuance_reason': value['issuanceReason'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
* Course fields for an enrolled user's course list item.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetUserCourseListItemCourse
|
|
16
|
+
*/
|
|
17
|
+
export interface GetUserCourseListItemCourse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetUserCourseListItemCourse
|
|
22
|
+
*/
|
|
23
|
+
readonly id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetUserCourseListItemCourse
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetUserCourseListItemCourse
|
|
34
|
+
*/
|
|
35
|
+
description: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetUserCourseListItemCourse
|
|
40
|
+
*/
|
|
41
|
+
imageUrl: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof GetUserCourseListItemCourse
|
|
46
|
+
*/
|
|
47
|
+
published: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetUserCourseListItemCourse
|
|
52
|
+
*/
|
|
53
|
+
createdAt: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {GetUserCourseListItemCourseAccessPolicyTypeEnum}
|
|
57
|
+
* @memberof GetUserCourseListItemCourse
|
|
58
|
+
*/
|
|
59
|
+
accessPolicyType: GetUserCourseListItemCourseAccessPolicyTypeEnum;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GetUserCourseListItemCourse
|
|
64
|
+
*/
|
|
65
|
+
accessDurationDays: number | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof GetUserCourseListItemCourse
|
|
70
|
+
*/
|
|
71
|
+
accessFixedEndAt: number | null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const GetUserCourseListItemCourseAccessPolicyTypeEnum: {
|
|
77
|
+
readonly DurationDays: "duration_days";
|
|
78
|
+
readonly FixedEndDate: "fixed_end_date";
|
|
79
|
+
readonly NeverExpires: "never_expires";
|
|
80
|
+
};
|
|
81
|
+
export type GetUserCourseListItemCourseAccessPolicyTypeEnum = typeof GetUserCourseListItemCourseAccessPolicyTypeEnum[keyof typeof GetUserCourseListItemCourseAccessPolicyTypeEnum];
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the GetUserCourseListItemCourse interface.
|
|
84
|
+
*/
|
|
85
|
+
export declare function instanceOfGetUserCourseListItemCourse(value: object): value is GetUserCourseListItemCourse;
|
|
86
|
+
export declare function GetUserCourseListItemCourseFromJSON(json: any): GetUserCourseListItemCourse;
|
|
87
|
+
export declare function GetUserCourseListItemCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserCourseListItemCourse;
|
|
88
|
+
export declare function GetUserCourseListItemCourseToJSON(json: any): GetUserCourseListItemCourse;
|
|
89
|
+
export declare function GetUserCourseListItemCourseToJSONTyped(value?: Omit<GetUserCourseListItemCourse, 'id'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
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 GetUserCourseListItemCourseAccessPolicyTypeEnum = {
|
|
18
|
+
DurationDays: 'duration_days',
|
|
19
|
+
FixedEndDate: 'fixed_end_date',
|
|
20
|
+
NeverExpires: 'never_expires'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetUserCourseListItemCourse interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfGetUserCourseListItemCourse(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('imageUrl' in value) || value['imageUrl'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('published' in value) || value['published'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('accessPolicyType' in value) || value['accessPolicyType'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('accessDurationDays' in value) || value['accessDurationDays'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('accessFixedEndAt' in value) || value['accessFixedEndAt'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
export function GetUserCourseListItemCourseFromJSON(json) {
|
|
47
|
+
return GetUserCourseListItemCourseFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetUserCourseListItemCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'description': json['description'],
|
|
57
|
+
'imageUrl': json['image_url'],
|
|
58
|
+
'published': json['published'],
|
|
59
|
+
'createdAt': json['created_at'],
|
|
60
|
+
'accessPolicyType': json['access_policy_type'],
|
|
61
|
+
'accessDurationDays': json['access_duration_days'],
|
|
62
|
+
'accessFixedEndAt': json['access_fixed_end_at'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export function GetUserCourseListItemCourseToJSON(json) {
|
|
66
|
+
return GetUserCourseListItemCourseToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
export function GetUserCourseListItemCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'name': value['name'],
|
|
74
|
+
'description': value['description'],
|
|
75
|
+
'image_url': value['imageUrl'],
|
|
76
|
+
'published': value['published'],
|
|
77
|
+
'created_at': value['createdAt'],
|
|
78
|
+
'access_policy_type': value['accessPolicyType'],
|
|
79
|
+
'access_duration_days': value['accessDurationDays'],
|
|
80
|
+
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
* Selected enrollment fields for an enrolled user's course list item.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetUserCourseListItemEnrollment
|
|
16
|
+
*/
|
|
17
|
+
export interface GetUserCourseListItemEnrollment {
|
|
18
|
+
/**
|
|
19
|
+
* The external ID of the selected enrollment.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetUserCourseListItemEnrollment
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {GetUserCourseListItemEnrollmentStatusEnum}
|
|
27
|
+
* @memberof GetUserCourseListItemEnrollment
|
|
28
|
+
*/
|
|
29
|
+
status: GetUserCourseListItemEnrollmentStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {GetUserCourseListItemEnrollmentAccessStateEnum}
|
|
33
|
+
* @memberof GetUserCourseListItemEnrollment
|
|
34
|
+
*/
|
|
35
|
+
accessState: GetUserCourseListItemEnrollmentAccessStateEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetUserCourseListItemEnrollment
|
|
40
|
+
*/
|
|
41
|
+
daysUntilExpiry: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {GetUserCourseListItemEnrollmentUserTypeEnum}
|
|
45
|
+
* @memberof GetUserCourseListItemEnrollment
|
|
46
|
+
*/
|
|
47
|
+
userType: GetUserCourseListItemEnrollmentUserTypeEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetUserCourseListItemEnrollment
|
|
52
|
+
*/
|
|
53
|
+
enrollmentDateStart: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GetUserCourseListItemEnrollment
|
|
58
|
+
*/
|
|
59
|
+
enrollmentDateEnd: number | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GetUserCourseListItemEnrollment
|
|
64
|
+
*/
|
|
65
|
+
completionDate: number | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const GetUserCourseListItemEnrollmentStatusEnum: {
|
|
71
|
+
readonly Enrolled: "Enrolled";
|
|
72
|
+
readonly InProgress: "InProgress";
|
|
73
|
+
readonly Completed: "Completed";
|
|
74
|
+
readonly Failed: "Failed";
|
|
75
|
+
readonly Expired: "Expired";
|
|
76
|
+
readonly Withdrawn: "Withdrawn";
|
|
77
|
+
readonly Removed: "Removed";
|
|
78
|
+
readonly Archived: "Archived";
|
|
79
|
+
readonly Suspended: "Suspended";
|
|
80
|
+
};
|
|
81
|
+
export type GetUserCourseListItemEnrollmentStatusEnum = typeof GetUserCourseListItemEnrollmentStatusEnum[keyof typeof GetUserCourseListItemEnrollmentStatusEnum];
|
|
82
|
+
/**
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export declare const GetUserCourseListItemEnrollmentAccessStateEnum: {
|
|
86
|
+
readonly Active: "active";
|
|
87
|
+
readonly CompletedReview: "completed_review";
|
|
88
|
+
readonly Expired: "expired";
|
|
89
|
+
readonly Suspended: "suspended";
|
|
90
|
+
readonly Failed: "failed";
|
|
91
|
+
readonly Withdrawn: "withdrawn";
|
|
92
|
+
readonly Removed: "removed";
|
|
93
|
+
readonly Archived: "archived";
|
|
94
|
+
};
|
|
95
|
+
export type GetUserCourseListItemEnrollmentAccessStateEnum = typeof GetUserCourseListItemEnrollmentAccessStateEnum[keyof typeof GetUserCourseListItemEnrollmentAccessStateEnum];
|
|
96
|
+
/**
|
|
97
|
+
* @export
|
|
98
|
+
*/
|
|
99
|
+
export declare const GetUserCourseListItemEnrollmentUserTypeEnum: {
|
|
100
|
+
readonly Student: "Student";
|
|
101
|
+
readonly Instructor: "Instructor";
|
|
102
|
+
};
|
|
103
|
+
export type GetUserCourseListItemEnrollmentUserTypeEnum = typeof GetUserCourseListItemEnrollmentUserTypeEnum[keyof typeof GetUserCourseListItemEnrollmentUserTypeEnum];
|
|
104
|
+
/**
|
|
105
|
+
* Check if a given object implements the GetUserCourseListItemEnrollment interface.
|
|
106
|
+
*/
|
|
107
|
+
export declare function instanceOfGetUserCourseListItemEnrollment(value: object): value is GetUserCourseListItemEnrollment;
|
|
108
|
+
export declare function GetUserCourseListItemEnrollmentFromJSON(json: any): GetUserCourseListItemEnrollment;
|
|
109
|
+
export declare function GetUserCourseListItemEnrollmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserCourseListItemEnrollment;
|
|
110
|
+
export declare function GetUserCourseListItemEnrollmentToJSON(json: any): GetUserCourseListItemEnrollment;
|
|
111
|
+
export declare function GetUserCourseListItemEnrollmentToJSONTyped(value?: GetUserCourseListItemEnrollment | null, ignoreDiscriminator?: boolean): any;
|