@easyedu/js-lsm-api 1.67.0 → 1.68.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 +8 -0
- package/README.md +8 -2
- package/dist/apis/ContentApi.d.ts +56 -0
- package/dist/apis/ContentApi.js +121 -1
- package/dist/esm/apis/ContentApi.d.ts +56 -0
- package/dist/esm/apis/ContentApi.js +120 -0
- package/dist/esm/models/ContentAttemptItem.d.ts +69 -0
- package/dist/esm/models/ContentAttemptItem.js +68 -0
- package/dist/esm/models/ContentAttemptRollupScore.d.ts +38 -0
- package/dist/esm/models/ContentAttemptRollupScore.js +47 -0
- package/dist/esm/models/ContentAttemptScore.d.ts +50 -0
- package/dist/esm/models/ContentAttemptScore.js +47 -0
- package/dist/esm/models/GetContentAttempts.d.ts +90 -0
- package/dist/esm/models/GetContentAttempts.js +84 -0
- package/dist/esm/models/GetContentSession.d.ts +12 -0
- package/dist/esm/models/GetContentSession.js +8 -0
- package/dist/esm/models/GetContentSessionDetail.d.ts +12 -0
- package/dist/esm/models/GetContentSessionDetail.js +8 -0
- package/dist/esm/models/GetContentSessionListItem.d.ts +24 -0
- package/dist/esm/models/GetContentSessionListItem.js +16 -0
- package/dist/esm/models/PostContentSession.d.ts +12 -0
- package/dist/esm/models/PostContentSession.js +8 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/ContentAttemptItem.d.ts +69 -0
- package/dist/models/ContentAttemptItem.js +75 -0
- package/dist/models/ContentAttemptRollupScore.d.ts +38 -0
- package/dist/models/ContentAttemptRollupScore.js +54 -0
- package/dist/models/ContentAttemptScore.d.ts +50 -0
- package/dist/models/ContentAttemptScore.js +54 -0
- package/dist/models/GetContentAttempts.d.ts +90 -0
- package/dist/models/GetContentAttempts.js +92 -0
- package/dist/models/GetContentSession.d.ts +12 -0
- package/dist/models/GetContentSession.js +8 -0
- package/dist/models/GetContentSessionDetail.d.ts +12 -0
- package/dist/models/GetContentSessionDetail.js +8 -0
- package/dist/models/GetContentSessionListItem.d.ts +24 -0
- package/dist/models/GetContentSessionListItem.js +16 -0
- package/dist/models/PostContentSession.d.ts +12 -0
- package/dist/models/PostContentSession.js +8 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/ContentApi.md +159 -0
- package/docs/ContentAttemptItem.md +47 -0
- package/docs/ContentAttemptRollupScore.md +37 -0
- package/docs/ContentAttemptScore.md +41 -0
- package/docs/GetContentAttempts.md +51 -0
- package/docs/GetContentSession.md +4 -0
- package/docs/GetContentSessionDetail.md +4 -0
- package/docs/GetContentSessionListItem.md +8 -0
- package/docs/PostContentSession.md +4 -0
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +172 -0
- package/src/models/ContentAttemptItem.ts +128 -0
- package/src/models/ContentAttemptRollupScore.ts +75 -0
- package/src/models/ContentAttemptScore.ts +89 -0
- package/src/models/GetContentAttempts.ts +164 -0
- package/src/models/GetContentSession.ts +18 -0
- package/src/models/GetContentSessionDetail.ts +18 -0
- package/src/models/GetContentSessionListItem.ts +36 -0
- package/src/models/PostContentSession.ts +18 -0
- package/src/models/index.ts +4 -0
|
@@ -55,6 +55,18 @@ export interface GetContentSession {
|
|
|
55
55
|
* @memberof GetContentSession
|
|
56
56
|
*/
|
|
57
57
|
gradeStatus: string;
|
|
58
|
+
/**
|
|
59
|
+
* The learner attempt number for this content session
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof GetContentSession
|
|
62
|
+
*/
|
|
63
|
+
attemptNumber: number;
|
|
64
|
+
/**
|
|
65
|
+
* Whether this is the current attempt used for learner progress display
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof GetContentSession
|
|
68
|
+
*/
|
|
69
|
+
isCurrent: boolean;
|
|
58
70
|
}
|
|
59
71
|
|
|
60
72
|
/**
|
|
@@ -67,6 +79,8 @@ export function instanceOfGetContentSession(value: object): value is GetContentS
|
|
|
67
79
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
68
80
|
if (!('completionStatus' in value) || value['completionStatus'] === undefined) return false;
|
|
69
81
|
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined) return false;
|
|
82
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined) return false;
|
|
83
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined) return false;
|
|
70
84
|
return true;
|
|
71
85
|
}
|
|
72
86
|
|
|
@@ -86,6 +100,8 @@ export function GetContentSessionFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
86
100
|
'updatedAt': json['updated_at'],
|
|
87
101
|
'completionStatus': json['completion_status'],
|
|
88
102
|
'gradeStatus': json['grade_status'],
|
|
103
|
+
'attemptNumber': json['attempt_number'],
|
|
104
|
+
'isCurrent': json['is_current'],
|
|
89
105
|
};
|
|
90
106
|
}
|
|
91
107
|
|
|
@@ -106,6 +122,8 @@ export function GetContentSessionToJSONTyped(value?: GetContentSession | null, i
|
|
|
106
122
|
'updated_at': value['updatedAt'],
|
|
107
123
|
'completion_status': value['completionStatus'],
|
|
108
124
|
'grade_status': value['gradeStatus'],
|
|
125
|
+
'attempt_number': value['attemptNumber'],
|
|
126
|
+
'is_current': value['isCurrent'],
|
|
109
127
|
};
|
|
110
128
|
}
|
|
111
129
|
|
|
@@ -76,6 +76,18 @@ export interface GetContentSessionDetail {
|
|
|
76
76
|
* @memberof GetContentSessionDetail
|
|
77
77
|
*/
|
|
78
78
|
durationInSeconds: number;
|
|
79
|
+
/**
|
|
80
|
+
* The learner attempt number for this content session
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof GetContentSessionDetail
|
|
83
|
+
*/
|
|
84
|
+
attemptNumber: number;
|
|
85
|
+
/**
|
|
86
|
+
* Whether this is the current attempt used for learner progress display
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof GetContentSessionDetail
|
|
89
|
+
*/
|
|
90
|
+
isCurrent: boolean;
|
|
79
91
|
/**
|
|
80
92
|
*
|
|
81
93
|
* @type {GetContentSessionDetailUserData}
|
|
@@ -126,6 +138,8 @@ export function instanceOfGetContentSessionDetail(value: object): value is GetCo
|
|
|
126
138
|
if (!('completionStatus' in value) || value['completionStatus'] === undefined) return false;
|
|
127
139
|
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined) return false;
|
|
128
140
|
if (!('durationInSeconds' in value) || value['durationInSeconds'] === undefined) return false;
|
|
141
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined) return false;
|
|
142
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined) return false;
|
|
129
143
|
if (!('userData' in value) || value['userData'] === undefined) return false;
|
|
130
144
|
if (!('scormSessionData' in value) || value['scormSessionData'] === undefined) return false;
|
|
131
145
|
return true;
|
|
@@ -148,6 +162,8 @@ export function GetContentSessionDetailFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
148
162
|
'completionStatus': json['completion_status'],
|
|
149
163
|
'gradeStatus': json['grade_status'],
|
|
150
164
|
'durationInSeconds': json['duration_in_seconds'],
|
|
165
|
+
'attemptNumber': json['attempt_number'],
|
|
166
|
+
'isCurrent': json['is_current'],
|
|
151
167
|
'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
|
|
152
168
|
'scormSessionData': (json['scorm_session_data'] == null ? null : (json['scorm_session_data'] as Array<any>).map(GetContentSessionDetailScormSessionDataInnerFromJSON)),
|
|
153
169
|
};
|
|
@@ -171,6 +187,8 @@ export function GetContentSessionDetailToJSONTyped(value?: GetContentSessionDeta
|
|
|
171
187
|
'completion_status': value['completionStatus'],
|
|
172
188
|
'grade_status': value['gradeStatus'],
|
|
173
189
|
'duration_in_seconds': value['durationInSeconds'],
|
|
190
|
+
'attempt_number': value['attemptNumber'],
|
|
191
|
+
'is_current': value['isCurrent'],
|
|
174
192
|
'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
|
|
175
193
|
'scorm_session_data': (value['scormSessionData'] == null ? null : (value['scormSessionData'] as Array<any>).map(GetContentSessionDetailScormSessionDataInnerToJSON)),
|
|
176
194
|
};
|
|
@@ -58,6 +58,30 @@ export interface GetContentSessionListItem {
|
|
|
58
58
|
* @memberof GetContentSessionListItem
|
|
59
59
|
*/
|
|
60
60
|
contentId: string;
|
|
61
|
+
/**
|
|
62
|
+
* The completion status of the content session
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof GetContentSessionListItem
|
|
65
|
+
*/
|
|
66
|
+
completionStatus: string;
|
|
67
|
+
/**
|
|
68
|
+
* The grade status of the content session
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof GetContentSessionListItem
|
|
71
|
+
*/
|
|
72
|
+
gradeStatus: string;
|
|
73
|
+
/**
|
|
74
|
+
* The learner attempt number for this content session
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof GetContentSessionListItem
|
|
77
|
+
*/
|
|
78
|
+
attemptNumber: number;
|
|
79
|
+
/**
|
|
80
|
+
* Whether this is the current attempt used for learner progress display
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof GetContentSessionListItem
|
|
83
|
+
*/
|
|
84
|
+
isCurrent: boolean;
|
|
61
85
|
/**
|
|
62
86
|
*
|
|
63
87
|
* @type {GetContentSessionDetailUserData}
|
|
@@ -80,6 +104,10 @@ export function instanceOfGetContentSessionListItem(value: object): value is Get
|
|
|
80
104
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
81
105
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
82
106
|
if (!('contentId' in value) || value['contentId'] === undefined) return false;
|
|
107
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined) return false;
|
|
108
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined) return false;
|
|
109
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined) return false;
|
|
110
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined) return false;
|
|
83
111
|
if (!('userData' in value) || value['userData'] === undefined) return false;
|
|
84
112
|
if (!('scormSessionData' in value) || value['scormSessionData'] === undefined) return false;
|
|
85
113
|
return true;
|
|
@@ -99,6 +127,10 @@ export function GetContentSessionListItemFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
99
127
|
'createdAt': json['created_at'],
|
|
100
128
|
'updatedAt': json['updated_at'],
|
|
101
129
|
'contentId': json['content_id'],
|
|
130
|
+
'completionStatus': json['completion_status'],
|
|
131
|
+
'gradeStatus': json['grade_status'],
|
|
132
|
+
'attemptNumber': json['attempt_number'],
|
|
133
|
+
'isCurrent': json['is_current'],
|
|
102
134
|
'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
|
|
103
135
|
'scormSessionData': GetContentSessionListItemScormSessionDataFromJSON(json['scorm_session_data']),
|
|
104
136
|
};
|
|
@@ -119,6 +151,10 @@ export function GetContentSessionListItemToJSONTyped(value?: GetContentSessionLi
|
|
|
119
151
|
'created_at': value['createdAt'],
|
|
120
152
|
'updated_at': value['updatedAt'],
|
|
121
153
|
'content_id': value['contentId'],
|
|
154
|
+
'completion_status': value['completionStatus'],
|
|
155
|
+
'grade_status': value['gradeStatus'],
|
|
156
|
+
'attempt_number': value['attemptNumber'],
|
|
157
|
+
'is_current': value['isCurrent'],
|
|
122
158
|
'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
|
|
123
159
|
'scorm_session_data': GetContentSessionListItemScormSessionDataToJSON(value['scormSessionData']),
|
|
124
160
|
};
|
|
@@ -63,6 +63,18 @@ export interface PostContentSession {
|
|
|
63
63
|
* @memberof PostContentSession
|
|
64
64
|
*/
|
|
65
65
|
playerSessionId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* The learner attempt number for this content session
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof PostContentSession
|
|
70
|
+
*/
|
|
71
|
+
attemptNumber: number;
|
|
72
|
+
/**
|
|
73
|
+
* Whether this is the current attempt used for learner progress display
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof PostContentSession
|
|
76
|
+
*/
|
|
77
|
+
isCurrent: boolean;
|
|
66
78
|
}
|
|
67
79
|
|
|
68
80
|
|
|
@@ -76,6 +88,8 @@ export function instanceOfPostContentSession(value: object): value is PostConten
|
|
|
76
88
|
if (!('launchUrl' in value) || value['launchUrl'] === undefined) return false;
|
|
77
89
|
if (!('launchMode' in value) || value['launchMode'] === undefined) return false;
|
|
78
90
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
91
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined) return false;
|
|
92
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined) return false;
|
|
79
93
|
return true;
|
|
80
94
|
}
|
|
81
95
|
|
|
@@ -95,6 +109,8 @@ export function PostContentSessionFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
95
109
|
'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
|
|
96
110
|
'createdAt': json['created_at'],
|
|
97
111
|
'playerSessionId': json['player_session_id'] == null ? undefined : json['player_session_id'],
|
|
112
|
+
'attemptNumber': json['attempt_number'],
|
|
113
|
+
'isCurrent': json['is_current'],
|
|
98
114
|
};
|
|
99
115
|
}
|
|
100
116
|
|
|
@@ -115,6 +131,8 @@ export function PostContentSessionToJSONTyped(value?: PostContentSession | null,
|
|
|
115
131
|
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
116
132
|
'created_at': value['createdAt'],
|
|
117
133
|
'player_session_id': value['playerSessionId'],
|
|
134
|
+
'attempt_number': value['attemptNumber'],
|
|
135
|
+
'is_current': value['isCurrent'],
|
|
118
136
|
};
|
|
119
137
|
}
|
|
120
138
|
|
package/src/models/index.ts
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
export * from './Certificate';
|
|
4
4
|
export * from './CertificateConfig';
|
|
5
5
|
export * from './CertificatePublic';
|
|
6
|
+
export * from './ContentAttemptItem';
|
|
7
|
+
export * from './ContentAttemptRollupScore';
|
|
8
|
+
export * from './ContentAttemptScore';
|
|
6
9
|
export * from './ContentLaunchMode';
|
|
7
10
|
export * from './CourseCatalog';
|
|
8
11
|
export * from './CourseShare';
|
|
@@ -18,6 +21,7 @@ export * from './GetCertificateConfigList';
|
|
|
18
21
|
export * from './GetCertificateList';
|
|
19
22
|
export * from './GetChatMessage';
|
|
20
23
|
export * from './GetContent';
|
|
24
|
+
export * from './GetContentAttempts';
|
|
21
25
|
export * from './GetContentContentData';
|
|
22
26
|
export * from './GetContentGradeDetail';
|
|
23
27
|
export * from './GetContentGrades';
|