@easyedu/js-lsm-api 1.79.0 → 1.80.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 +12 -0
- package/README.md +9 -2
- package/dist/apis/UserApi.d.ts +42 -0
- package/dist/apis/UserApi.js +79 -1
- package/dist/esm/apis/UserApi.d.ts +42 -0
- package/dist/esm/apis/UserApi.js +78 -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/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -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/index.d.ts +6 -0
- package/dist/models/index.js +6 -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/UserApi.md +90 -0
- package/package.json +1 -1
- package/src/apis/UserApi.ts +108 -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/index.ts +6 -0
|
@@ -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;
|
|
@@ -0,0 +1,105 @@
|
|
|
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 GetUserCourseListItemEnrollmentStatusEnum = {
|
|
18
|
+
Enrolled: 'Enrolled',
|
|
19
|
+
InProgress: 'InProgress',
|
|
20
|
+
Completed: 'Completed',
|
|
21
|
+
Failed: 'Failed',
|
|
22
|
+
Expired: 'Expired',
|
|
23
|
+
Withdrawn: 'Withdrawn',
|
|
24
|
+
Removed: 'Removed',
|
|
25
|
+
Archived: 'Archived',
|
|
26
|
+
Suspended: 'Suspended'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const GetUserCourseListItemEnrollmentAccessStateEnum = {
|
|
32
|
+
Active: 'active',
|
|
33
|
+
CompletedReview: 'completed_review',
|
|
34
|
+
Expired: 'expired',
|
|
35
|
+
Suspended: 'suspended',
|
|
36
|
+
Failed: 'failed',
|
|
37
|
+
Withdrawn: 'withdrawn',
|
|
38
|
+
Removed: 'removed',
|
|
39
|
+
Archived: 'archived'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export const GetUserCourseListItemEnrollmentUserTypeEnum = {
|
|
45
|
+
Student: 'Student',
|
|
46
|
+
Instructor: 'Instructor'
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the GetUserCourseListItemEnrollment interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfGetUserCourseListItemEnrollment(value) {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('accessState' in value) || value['accessState'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('daysUntilExpiry' in value) || value['daysUntilExpiry'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('userType' in value) || value['userType'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('completionDate' in value) || value['completionDate'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
export function GetUserCourseListItemEnrollmentFromJSON(json) {
|
|
71
|
+
return GetUserCourseListItemEnrollmentFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
export function GetUserCourseListItemEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'id': json['id'],
|
|
79
|
+
'status': json['status'],
|
|
80
|
+
'accessState': json['access_state'],
|
|
81
|
+
'daysUntilExpiry': json['days_until_expiry'],
|
|
82
|
+
'userType': json['user_type'],
|
|
83
|
+
'enrollmentDateStart': json['enrollment_date_start'],
|
|
84
|
+
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
85
|
+
'completionDate': json['completion_date'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export function GetUserCourseListItemEnrollmentToJSON(json) {
|
|
89
|
+
return GetUserCourseListItemEnrollmentToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
export function GetUserCourseListItemEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
'id': value['id'],
|
|
97
|
+
'status': value['status'],
|
|
98
|
+
'access_state': value['accessState'],
|
|
99
|
+
'days_until_expiry': value['daysUntilExpiry'],
|
|
100
|
+
'user_type': value['userType'],
|
|
101
|
+
'enrollment_date_start': value['enrollmentDateStart'],
|
|
102
|
+
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
103
|
+
'completion_date': value['completionDate'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -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
|
+
* Learner progress for an enrolled user's course list item.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetUserCourseListItemProgress
|
|
16
|
+
*/
|
|
17
|
+
export interface GetUserCourseListItemProgress {
|
|
18
|
+
/**
|
|
19
|
+
* Completed visible content divided by total visible content. Null when total content count is zero.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetUserCourseListItemProgress
|
|
22
|
+
*/
|
|
23
|
+
completionPercentage: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetUserCourseListItemProgress
|
|
28
|
+
*/
|
|
29
|
+
completedContentCount: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetUserCourseListItemProgress
|
|
34
|
+
*/
|
|
35
|
+
totalContentCount: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetUserCourseListItemProgress interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGetUserCourseListItemProgress(value: object): value is GetUserCourseListItemProgress;
|
|
41
|
+
export declare function GetUserCourseListItemProgressFromJSON(json: any): GetUserCourseListItemProgress;
|
|
42
|
+
export declare function GetUserCourseListItemProgressFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserCourseListItemProgress;
|
|
43
|
+
export declare function GetUserCourseListItemProgressToJSON(json: any): GetUserCourseListItemProgress;
|
|
44
|
+
export declare function GetUserCourseListItemProgressToJSONTyped(value?: GetUserCourseListItemProgress | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 GetUserCourseListItemProgress interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetUserCourseListItemProgress(value) {
|
|
18
|
+
if (!('completionPercentage' in value) || value['completionPercentage'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('completedContentCount' in value) || value['completedContentCount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('totalContentCount' in value) || value['totalContentCount'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GetUserCourseListItemProgressFromJSON(json) {
|
|
27
|
+
return GetUserCourseListItemProgressFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GetUserCourseListItemProgressFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'completionPercentage': json['completion_percentage'],
|
|
35
|
+
'completedContentCount': json['completed_content_count'],
|
|
36
|
+
'totalContentCount': json['total_content_count'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function GetUserCourseListItemProgressToJSON(json) {
|
|
40
|
+
return GetUserCourseListItemProgressToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function GetUserCourseListItemProgressToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'completion_percentage': value['completionPercentage'],
|
|
48
|
+
'completed_content_count': value['completedContentCount'],
|
|
49
|
+
'total_content_count': value['totalContentCount'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -153,6 +153,12 @@ export * from './GetSystemBillingList';
|
|
|
153
153
|
export * from './GetSystemMetrics';
|
|
154
154
|
export * from './GetUser';
|
|
155
155
|
export * from './GetUserAvatarUpload';
|
|
156
|
+
export * from './GetUserCourseList';
|
|
157
|
+
export * from './GetUserCourseListItem';
|
|
158
|
+
export * from './GetUserCourseListItemCertificate';
|
|
159
|
+
export * from './GetUserCourseListItemCourse';
|
|
160
|
+
export * from './GetUserCourseListItemEnrollment';
|
|
161
|
+
export * from './GetUserCourseListItemProgress';
|
|
156
162
|
export * from './GetUserQuizAttempts';
|
|
157
163
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
158
164
|
export * from './GetUserQuizAttemptsAllOfFilters';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -155,6 +155,12 @@ export * from './GetSystemBillingList';
|
|
|
155
155
|
export * from './GetSystemMetrics';
|
|
156
156
|
export * from './GetUser';
|
|
157
157
|
export * from './GetUserAvatarUpload';
|
|
158
|
+
export * from './GetUserCourseList';
|
|
159
|
+
export * from './GetUserCourseListItem';
|
|
160
|
+
export * from './GetUserCourseListItemCertificate';
|
|
161
|
+
export * from './GetUserCourseListItemCourse';
|
|
162
|
+
export * from './GetUserCourseListItemEnrollment';
|
|
163
|
+
export * from './GetUserCourseListItemProgress';
|
|
158
164
|
export * from './GetUserQuizAttempts';
|
|
159
165
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
160
166
|
export * from './GetUserQuizAttemptsAllOfFilters';
|