@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,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,113 @@
|
|
|
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.GetUserCourseListItemEnrollmentUserTypeEnum = exports.GetUserCourseListItemEnrollmentAccessStateEnum = exports.GetUserCourseListItemEnrollmentStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfGetUserCourseListItemEnrollment = instanceOfGetUserCourseListItemEnrollment;
|
|
18
|
+
exports.GetUserCourseListItemEnrollmentFromJSON = GetUserCourseListItemEnrollmentFromJSON;
|
|
19
|
+
exports.GetUserCourseListItemEnrollmentFromJSONTyped = GetUserCourseListItemEnrollmentFromJSONTyped;
|
|
20
|
+
exports.GetUserCourseListItemEnrollmentToJSON = GetUserCourseListItemEnrollmentToJSON;
|
|
21
|
+
exports.GetUserCourseListItemEnrollmentToJSONTyped = GetUserCourseListItemEnrollmentToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetUserCourseListItemEnrollmentStatusEnum = {
|
|
26
|
+
Enrolled: 'Enrolled',
|
|
27
|
+
InProgress: 'InProgress',
|
|
28
|
+
Completed: 'Completed',
|
|
29
|
+
Failed: 'Failed',
|
|
30
|
+
Expired: 'Expired',
|
|
31
|
+
Withdrawn: 'Withdrawn',
|
|
32
|
+
Removed: 'Removed',
|
|
33
|
+
Archived: 'Archived',
|
|
34
|
+
Suspended: 'Suspended'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
exports.GetUserCourseListItemEnrollmentAccessStateEnum = {
|
|
40
|
+
Active: 'active',
|
|
41
|
+
CompletedReview: 'completed_review',
|
|
42
|
+
Expired: 'expired',
|
|
43
|
+
Suspended: 'suspended',
|
|
44
|
+
Failed: 'failed',
|
|
45
|
+
Withdrawn: 'withdrawn',
|
|
46
|
+
Removed: 'removed',
|
|
47
|
+
Archived: 'archived'
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
exports.GetUserCourseListItemEnrollmentUserTypeEnum = {
|
|
53
|
+
Student: 'Student',
|
|
54
|
+
Instructor: 'Instructor'
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the GetUserCourseListItemEnrollment interface.
|
|
58
|
+
*/
|
|
59
|
+
function instanceOfGetUserCourseListItemEnrollment(value) {
|
|
60
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('accessState' in value) || value['accessState'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('daysUntilExpiry' in value) || value['daysUntilExpiry'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('userType' in value) || value['userType'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('completionDate' in value) || value['completionDate'] === undefined)
|
|
75
|
+
return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
function GetUserCourseListItemEnrollmentFromJSON(json) {
|
|
79
|
+
return GetUserCourseListItemEnrollmentFromJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function GetUserCourseListItemEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
'id': json['id'],
|
|
87
|
+
'status': json['status'],
|
|
88
|
+
'accessState': json['access_state'],
|
|
89
|
+
'daysUntilExpiry': json['days_until_expiry'],
|
|
90
|
+
'userType': json['user_type'],
|
|
91
|
+
'enrollmentDateStart': json['enrollment_date_start'],
|
|
92
|
+
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
93
|
+
'completionDate': json['completion_date'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function GetUserCourseListItemEnrollmentToJSON(json) {
|
|
97
|
+
return GetUserCourseListItemEnrollmentToJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
function GetUserCourseListItemEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
'id': value['id'],
|
|
105
|
+
'status': value['status'],
|
|
106
|
+
'access_state': value['accessState'],
|
|
107
|
+
'days_until_expiry': value['daysUntilExpiry'],
|
|
108
|
+
'user_type': value['userType'],
|
|
109
|
+
'enrollment_date_start': value['enrollmentDateStart'],
|
|
110
|
+
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
111
|
+
'completion_date': value['completionDate'],
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -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,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.instanceOfGetUserCourseListItemProgress = instanceOfGetUserCourseListItemProgress;
|
|
17
|
+
exports.GetUserCourseListItemProgressFromJSON = GetUserCourseListItemProgressFromJSON;
|
|
18
|
+
exports.GetUserCourseListItemProgressFromJSONTyped = GetUserCourseListItemProgressFromJSONTyped;
|
|
19
|
+
exports.GetUserCourseListItemProgressToJSON = GetUserCourseListItemProgressToJSON;
|
|
20
|
+
exports.GetUserCourseListItemProgressToJSONTyped = GetUserCourseListItemProgressToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetUserCourseListItemProgress interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetUserCourseListItemProgress(value) {
|
|
25
|
+
if (!('completionPercentage' in value) || value['completionPercentage'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('completedContentCount' in value) || value['completedContentCount'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('totalContentCount' in value) || value['totalContentCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GetUserCourseListItemProgressFromJSON(json) {
|
|
34
|
+
return GetUserCourseListItemProgressFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetUserCourseListItemProgressFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'completionPercentage': json['completion_percentage'],
|
|
42
|
+
'completedContentCount': json['completed_content_count'],
|
|
43
|
+
'totalContentCount': json['total_content_count'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function GetUserCourseListItemProgressToJSON(json) {
|
|
47
|
+
return GetUserCourseListItemProgressToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function GetUserCourseListItemProgressToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'completion_percentage': value['completionPercentage'],
|
|
55
|
+
'completed_content_count': value['completedContentCount'],
|
|
56
|
+
'total_content_count': value['totalContentCount'],
|
|
57
|
+
};
|
|
58
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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/models/index.js
CHANGED
|
@@ -171,6 +171,12 @@ __exportStar(require("./GetSystemBillingList"), exports);
|
|
|
171
171
|
__exportStar(require("./GetSystemMetrics"), exports);
|
|
172
172
|
__exportStar(require("./GetUser"), exports);
|
|
173
173
|
__exportStar(require("./GetUserAvatarUpload"), exports);
|
|
174
|
+
__exportStar(require("./GetUserCourseList"), exports);
|
|
175
|
+
__exportStar(require("./GetUserCourseListItem"), exports);
|
|
176
|
+
__exportStar(require("./GetUserCourseListItemCertificate"), exports);
|
|
177
|
+
__exportStar(require("./GetUserCourseListItemCourse"), exports);
|
|
178
|
+
__exportStar(require("./GetUserCourseListItemEnrollment"), exports);
|
|
179
|
+
__exportStar(require("./GetUserCourseListItemProgress"), exports);
|
|
174
180
|
__exportStar(require("./GetUserQuizAttempts"), exports);
|
|
175
181
|
__exportStar(require("./GetUserQuizAttemptsAllOfAttempts"), exports);
|
|
176
182
|
__exportStar(require("./GetUserQuizAttemptsAllOfFilters"), exports);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
# GetUserCourseList
|
|
3
|
+
|
|
4
|
+
A paginated list of courses the target user is enrolled in.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`page` | number
|
|
11
|
+
`pageSize` | number
|
|
12
|
+
`totalPages` | number
|
|
13
|
+
`totalItems` | number
|
|
14
|
+
`items` | [Array<GetUserCourseListItem>](GetUserCourseListItem.md)
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { GetUserCourseList } from '@easyedu/js-lsm-api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"page": null,
|
|
24
|
+
"pageSize": null,
|
|
25
|
+
"totalPages": null,
|
|
26
|
+
"totalItems": null,
|
|
27
|
+
"items": null,
|
|
28
|
+
} satisfies GetUserCourseList
|
|
29
|
+
|
|
30
|
+
console.log(example)
|
|
31
|
+
|
|
32
|
+
// Convert the instance to a JSON string
|
|
33
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
34
|
+
console.log(exampleJSON)
|
|
35
|
+
|
|
36
|
+
// Parse the JSON string back to an object
|
|
37
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetUserCourseList
|
|
38
|
+
console.log(exampleParsed)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
42
|
+
|
|
43
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# GetUserCourseListItem
|
|
3
|
+
|
|
4
|
+
A course the target user is enrolled in, grouped by course and selected enrollment.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`course` | [GetUserCourseListItemCourse](GetUserCourseListItemCourse.md)
|
|
11
|
+
`enrollment` | [GetUserCourseListItemEnrollment](GetUserCourseListItemEnrollment.md)
|
|
12
|
+
`progress` | [GetUserCourseListItemProgress](GetUserCourseListItemProgress.md)
|
|
13
|
+
`certificate` | [GetUserCourseListItemCertificate](GetUserCourseListItemCertificate.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { GetUserCourseListItem } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"course": null,
|
|
23
|
+
"enrollment": null,
|
|
24
|
+
"progress": null,
|
|
25
|
+
"certificate": null,
|
|
26
|
+
} satisfies GetUserCourseListItem
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetUserCourseListItem
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
40
|
+
|
|
41
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
# GetUserCourseListItemCertificate
|
|
3
|
+
|
|
4
|
+
Latest certificate for the learner and course, if one exists.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`status` | string
|
|
12
|
+
`issuedAt` | number
|
|
13
|
+
`expiresAt` | number
|
|
14
|
+
`issuanceReason` | string
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { GetUserCourseListItemCertificate } from '@easyedu/js-lsm-api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"id": null,
|
|
24
|
+
"status": null,
|
|
25
|
+
"issuedAt": null,
|
|
26
|
+
"expiresAt": null,
|
|
27
|
+
"issuanceReason": null,
|
|
28
|
+
} satisfies GetUserCourseListItemCertificate
|
|
29
|
+
|
|
30
|
+
console.log(example)
|
|
31
|
+
|
|
32
|
+
// Convert the instance to a JSON string
|
|
33
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
34
|
+
console.log(exampleJSON)
|
|
35
|
+
|
|
36
|
+
// Parse the JSON string back to an object
|
|
37
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetUserCourseListItemCertificate
|
|
38
|
+
console.log(exampleParsed)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
42
|
+
|
|
43
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
# GetUserCourseListItemCourse
|
|
3
|
+
|
|
4
|
+
Course fields for an enrolled user\'s course list item.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`description` | string
|
|
13
|
+
`imageUrl` | string
|
|
14
|
+
`published` | boolean
|
|
15
|
+
`createdAt` | number
|
|
16
|
+
`accessPolicyType` | string
|
|
17
|
+
`accessDurationDays` | number
|
|
18
|
+
`accessFixedEndAt` | number
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { GetUserCourseListItemCourse } from '@easyedu/js-lsm-api'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"id": null,
|
|
28
|
+
"name": null,
|
|
29
|
+
"description": null,
|
|
30
|
+
"imageUrl": null,
|
|
31
|
+
"published": null,
|
|
32
|
+
"createdAt": null,
|
|
33
|
+
"accessPolicyType": null,
|
|
34
|
+
"accessDurationDays": null,
|
|
35
|
+
"accessFixedEndAt": null,
|
|
36
|
+
} satisfies GetUserCourseListItemCourse
|
|
37
|
+
|
|
38
|
+
console.log(example)
|
|
39
|
+
|
|
40
|
+
// Convert the instance to a JSON string
|
|
41
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
42
|
+
console.log(exampleJSON)
|
|
43
|
+
|
|
44
|
+
// Parse the JSON string back to an object
|
|
45
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetUserCourseListItemCourse
|
|
46
|
+
console.log(exampleParsed)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
50
|
+
|
|
51
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+
# GetUserCourseListItemEnrollment
|
|
3
|
+
|
|
4
|
+
Selected enrollment fields for an enrolled user\'s course list item.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`status` | string
|
|
12
|
+
`accessState` | string
|
|
13
|
+
`daysUntilExpiry` | number
|
|
14
|
+
`userType` | string
|
|
15
|
+
`enrollmentDateStart` | number
|
|
16
|
+
`enrollmentDateEnd` | number
|
|
17
|
+
`completionDate` | number
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { GetUserCourseListItemEnrollment } from '@easyedu/js-lsm-api'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"status": null,
|
|
28
|
+
"accessState": null,
|
|
29
|
+
"daysUntilExpiry": null,
|
|
30
|
+
"userType": null,
|
|
31
|
+
"enrollmentDateStart": null,
|
|
32
|
+
"enrollmentDateEnd": null,
|
|
33
|
+
"completionDate": null,
|
|
34
|
+
} satisfies GetUserCourseListItemEnrollment
|
|
35
|
+
|
|
36
|
+
console.log(example)
|
|
37
|
+
|
|
38
|
+
// Convert the instance to a JSON string
|
|
39
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
40
|
+
console.log(exampleJSON)
|
|
41
|
+
|
|
42
|
+
// Parse the JSON string back to an object
|
|
43
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetUserCourseListItemEnrollment
|
|
44
|
+
console.log(exampleParsed)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
48
|
+
|
|
49
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
# GetUserCourseListItemProgress
|
|
3
|
+
|
|
4
|
+
Learner progress for an enrolled user\'s course list item.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`completionPercentage` | number
|
|
11
|
+
`completedContentCount` | number
|
|
12
|
+
`totalContentCount` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { GetUserCourseListItemProgress } from '@easyedu/js-lsm-api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"completionPercentage": null,
|
|
22
|
+
"completedContentCount": null,
|
|
23
|
+
"totalContentCount": null,
|
|
24
|
+
} satisfies GetUserCourseListItemProgress
|
|
25
|
+
|
|
26
|
+
console.log(example)
|
|
27
|
+
|
|
28
|
+
// Convert the instance to a JSON string
|
|
29
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
30
|
+
console.log(exampleJSON)
|
|
31
|
+
|
|
32
|
+
// Parse the JSON string back to an object
|
|
33
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetUserCourseListItemProgress
|
|
34
|
+
console.log(exampleParsed)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
38
|
+
|
|
39
|
+
|