@easyedu/js-lsm-api 1.89.0 → 1.91.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 +28 -0
- package/README.md +24 -2
- package/dist/apis/ContentLibraryApi.d.ts +19 -0
- package/dist/apis/ContentLibraryApi.js +47 -0
- package/dist/apis/PlayerApi.d.ts +187 -0
- package/dist/apis/PlayerApi.js +401 -1
- package/dist/esm/apis/ContentLibraryApi.d.ts +19 -0
- package/dist/esm/apis/ContentLibraryApi.js +47 -0
- package/dist/esm/apis/PlayerApi.d.ts +187 -0
- package/dist/esm/apis/PlayerApi.js +400 -0
- package/dist/esm/models/GetCourseVersionItemSession.d.ts +7 -0
- package/dist/esm/models/GetCourseVersionItemSession.js +5 -0
- package/dist/esm/models/GetResourceSession.d.ts +191 -0
- package/dist/esm/models/GetResourceSession.js +128 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +76 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.js +69 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.js +76 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsResource.js +56 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.js +59 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsUser.js +47 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsVersion.js +67 -0
- package/dist/esm/models/GetResourceSessionList.d.ts +57 -0
- package/dist/esm/models/GetResourceSessionList.js +60 -0
- package/dist/esm/models/GetResourceSessionScormApiLogs.d.ts +57 -0
- package/dist/esm/models/GetResourceSessionScormApiLogs.js +60 -0
- package/dist/esm/models/GetResourceSessionScormData.d.ts +77 -0
- package/dist/esm/models/GetResourceSessionScormData.js +66 -0
- package/dist/esm/models/GetResourceSessionScormDataActivity.d.ts +44 -0
- package/dist/esm/models/GetResourceSessionScormDataActivity.js +45 -0
- package/dist/esm/models/PostResourceVersionSession.d.ts +32 -0
- package/dist/esm/models/PostResourceVersionSession.js +41 -0
- package/dist/esm/models/ResourceSessionEnvironment.d.ts +25 -0
- package/dist/esm/models/ResourceSessionEnvironment.js +43 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.js +73 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/GetCourseVersionItemSession.d.ts +7 -0
- package/dist/models/GetCourseVersionItemSession.js +5 -0
- package/dist/models/GetResourceSession.d.ts +191 -0
- package/dist/models/GetResourceSession.js +135 -0
- package/dist/models/GetResourceSessionDiagnostics.d.ts +76 -0
- package/dist/models/GetResourceSessionDiagnostics.js +76 -0
- package/dist/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
- package/dist/models/GetResourceSessionDiagnosticsCourseContext.js +83 -0
- package/dist/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
- package/dist/models/GetResourceSessionDiagnosticsResource.js +63 -0
- package/dist/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
- package/dist/models/GetResourceSessionDiagnosticsScormSummary.js +66 -0
- package/dist/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
- package/dist/models/GetResourceSessionDiagnosticsUser.js +54 -0
- package/dist/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
- package/dist/models/GetResourceSessionDiagnosticsVersion.js +74 -0
- package/dist/models/GetResourceSessionList.d.ts +57 -0
- package/dist/models/GetResourceSessionList.js +67 -0
- package/dist/models/GetResourceSessionScormApiLogs.d.ts +57 -0
- package/dist/models/GetResourceSessionScormApiLogs.js +67 -0
- package/dist/models/GetResourceSessionScormData.d.ts +77 -0
- package/dist/models/GetResourceSessionScormData.js +73 -0
- package/dist/models/GetResourceSessionScormDataActivity.d.ts +44 -0
- package/dist/models/GetResourceSessionScormDataActivity.js +52 -0
- package/dist/models/PostResourceVersionSession.d.ts +32 -0
- package/dist/models/PostResourceVersionSession.js +48 -0
- package/dist/models/ResourceSessionEnvironment.d.ts +25 -0
- package/dist/models/ResourceSessionEnvironment.js +51 -0
- package/dist/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/ContentLibraryApi.md +73 -0
- package/docs/GetCourseVersionItemSession.md +2 -0
- package/docs/GetResourceSession.md +87 -0
- package/docs/GetResourceSessionDiagnostics.md +47 -0
- package/docs/GetResourceSessionDiagnosticsCourseContext.md +50 -0
- package/docs/GetResourceSessionDiagnosticsResource.md +40 -0
- package/docs/GetResourceSessionDiagnosticsScormSummary.md +48 -0
- package/docs/GetResourceSessionDiagnosticsUser.md +36 -0
- package/docs/GetResourceSessionDiagnosticsVersion.md +52 -0
- package/docs/GetResourceSessionList.md +43 -0
- package/docs/GetResourceSessionScormApiLogs.md +43 -0
- package/docs/GetResourceSessionScormData.md +49 -0
- package/docs/GetResourceSessionScormDataActivity.md +38 -0
- package/docs/PlayerApi.md +547 -0
- package/docs/PostResourceVersionSession.md +35 -0
- package/docs/ResourceSessionEnvironment.md +33 -0
- package/docs/ResourceSessionScormApiLogItem.md +47 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +72 -0
- package/src/apis/PlayerApi.ts +558 -0
- package/src/models/GetCourseVersionItemSession.ts +16 -0
- package/src/models/GetResourceSession.ts +313 -0
- package/src/models/GetResourceSessionDiagnostics.ts +161 -0
- package/src/models/GetResourceSessionDiagnosticsCourseContext.ts +148 -0
- package/src/models/GetResourceSessionDiagnosticsResource.ts +103 -0
- package/src/models/GetResourceSessionDiagnosticsScormSummary.ts +123 -0
- package/src/models/GetResourceSessionDiagnosticsUser.ts +75 -0
- package/src/models/GetResourceSessionDiagnosticsVersion.ts +141 -0
- package/src/models/GetResourceSessionList.ts +110 -0
- package/src/models/GetResourceSessionScormApiLogs.ts +110 -0
- package/src/models/GetResourceSessionScormData.ts +134 -0
- package/src/models/GetResourceSessionScormDataActivity.ts +81 -0
- package/src/models/PostResourceVersionSession.ts +65 -0
- package/src/models/ResourceSessionEnvironment.ts +53 -0
- package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
- package/src/models/index.ts +14 -0
|
@@ -0,0 +1,313 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ResourceSessionEnvironment } from './ResourceSessionEnvironment';
|
|
17
|
+
import {
|
|
18
|
+
ResourceSessionEnvironmentFromJSON,
|
|
19
|
+
ResourceSessionEnvironmentFromJSONTyped,
|
|
20
|
+
ResourceSessionEnvironmentToJSON,
|
|
21
|
+
ResourceSessionEnvironmentToJSONTyped,
|
|
22
|
+
} from './ResourceSessionEnvironment';
|
|
23
|
+
import type { ResourceType } from './ResourceType';
|
|
24
|
+
import {
|
|
25
|
+
ResourceTypeFromJSON,
|
|
26
|
+
ResourceTypeFromJSONTyped,
|
|
27
|
+
ResourceTypeToJSON,
|
|
28
|
+
ResourceTypeToJSONTyped,
|
|
29
|
+
} from './ResourceType';
|
|
30
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
31
|
+
import {
|
|
32
|
+
ContentLaunchModeFromJSON,
|
|
33
|
+
ContentLaunchModeFromJSONTyped,
|
|
34
|
+
ContentLaunchModeToJSON,
|
|
35
|
+
ContentLaunchModeToJSONTyped,
|
|
36
|
+
} from './ContentLaunchMode';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* A user-owned session pinned to an immutable Content Library resource version.
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetResourceSession
|
|
42
|
+
*/
|
|
43
|
+
export interface GetResourceSession {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof GetResourceSession
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof GetResourceSession
|
|
54
|
+
*/
|
|
55
|
+
userId: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof GetResourceSession
|
|
60
|
+
*/
|
|
61
|
+
userName: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {ResourceSessionEnvironment}
|
|
65
|
+
* @memberof GetResourceSession
|
|
66
|
+
*/
|
|
67
|
+
environment: ResourceSessionEnvironment;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof GetResourceSession
|
|
72
|
+
*/
|
|
73
|
+
courseId?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof GetResourceSession
|
|
78
|
+
*/
|
|
79
|
+
courseName?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof GetResourceSession
|
|
84
|
+
*/
|
|
85
|
+
courseVersionId?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof GetResourceSession
|
|
90
|
+
*/
|
|
91
|
+
courseVersionNumber?: number | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof GetResourceSession
|
|
96
|
+
*/
|
|
97
|
+
itemId?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof GetResourceSession
|
|
102
|
+
*/
|
|
103
|
+
contentLibraryItemId: string;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof GetResourceSession
|
|
108
|
+
*/
|
|
109
|
+
contentLibraryVersionId: string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {number}
|
|
113
|
+
* @memberof GetResourceSession
|
|
114
|
+
*/
|
|
115
|
+
contentLibraryVersionNumber: number;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof GetResourceSession
|
|
120
|
+
*/
|
|
121
|
+
contentLibraryVersionStatus: string;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof GetResourceSession
|
|
126
|
+
*/
|
|
127
|
+
resourceName: string;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {ResourceType}
|
|
131
|
+
* @memberof GetResourceSession
|
|
132
|
+
*/
|
|
133
|
+
resourceType: ResourceType;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {ContentLaunchMode}
|
|
137
|
+
* @memberof GetResourceSession
|
|
138
|
+
*/
|
|
139
|
+
launchMode?: ContentLaunchMode | null;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof GetResourceSession
|
|
144
|
+
*/
|
|
145
|
+
launchUrl?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {number}
|
|
149
|
+
* @memberof GetResourceSession
|
|
150
|
+
*/
|
|
151
|
+
attemptNumber: number;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {boolean}
|
|
155
|
+
* @memberof GetResourceSession
|
|
156
|
+
*/
|
|
157
|
+
isCurrent: boolean;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @type {string}
|
|
161
|
+
* @memberof GetResourceSession
|
|
162
|
+
*/
|
|
163
|
+
completionStatus: string;
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @type {string}
|
|
167
|
+
* @memberof GetResourceSession
|
|
168
|
+
*/
|
|
169
|
+
gradeStatus: string;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @type {number}
|
|
173
|
+
* @memberof GetResourceSession
|
|
174
|
+
*/
|
|
175
|
+
scoreRaw?: number | null;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @type {number}
|
|
179
|
+
* @memberof GetResourceSession
|
|
180
|
+
*/
|
|
181
|
+
initializedAt?: number | null;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @type {number}
|
|
185
|
+
* @memberof GetResourceSession
|
|
186
|
+
*/
|
|
187
|
+
terminatedAt?: number | null;
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @type {number}
|
|
191
|
+
* @memberof GetResourceSession
|
|
192
|
+
*/
|
|
193
|
+
createdAt: number;
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @type {number}
|
|
197
|
+
* @memberof GetResourceSession
|
|
198
|
+
*/
|
|
199
|
+
updatedAt: number;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @type {number}
|
|
203
|
+
* @memberof GetResourceSession
|
|
204
|
+
*/
|
|
205
|
+
completedAt?: number | null;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Check if a given object implements the GetResourceSession interface.
|
|
212
|
+
*/
|
|
213
|
+
export function instanceOfGetResourceSession(value: object): value is GetResourceSession {
|
|
214
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
215
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
216
|
+
if (!('userName' in value) || value['userName'] === undefined) return false;
|
|
217
|
+
if (!('environment' in value) || value['environment'] === undefined) return false;
|
|
218
|
+
if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined) return false;
|
|
219
|
+
if (!('contentLibraryVersionId' in value) || value['contentLibraryVersionId'] === undefined) return false;
|
|
220
|
+
if (!('contentLibraryVersionNumber' in value) || value['contentLibraryVersionNumber'] === undefined) return false;
|
|
221
|
+
if (!('contentLibraryVersionStatus' in value) || value['contentLibraryVersionStatus'] === undefined) return false;
|
|
222
|
+
if (!('resourceName' in value) || value['resourceName'] === undefined) return false;
|
|
223
|
+
if (!('resourceType' in value) || value['resourceType'] === undefined) return false;
|
|
224
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined) return false;
|
|
225
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined) return false;
|
|
226
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined) return false;
|
|
227
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined) return false;
|
|
228
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
229
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
230
|
+
return true;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export function GetResourceSessionFromJSON(json: any): GetResourceSession {
|
|
234
|
+
return GetResourceSessionFromJSONTyped(json, false);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export function GetResourceSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSession {
|
|
238
|
+
if (json == null) {
|
|
239
|
+
return json;
|
|
240
|
+
}
|
|
241
|
+
return {
|
|
242
|
+
|
|
243
|
+
'id': json['id'],
|
|
244
|
+
'userId': json['user_id'],
|
|
245
|
+
'userName': json['user_name'],
|
|
246
|
+
'environment': ResourceSessionEnvironmentFromJSON(json['environment']),
|
|
247
|
+
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
248
|
+
'courseName': json['course_name'] == null ? undefined : json['course_name'],
|
|
249
|
+
'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
|
|
250
|
+
'courseVersionNumber': json['course_version_number'] == null ? undefined : json['course_version_number'],
|
|
251
|
+
'itemId': json['item_id'] == null ? undefined : json['item_id'],
|
|
252
|
+
'contentLibraryItemId': json['content_library_item_id'],
|
|
253
|
+
'contentLibraryVersionId': json['content_library_version_id'],
|
|
254
|
+
'contentLibraryVersionNumber': json['content_library_version_number'],
|
|
255
|
+
'contentLibraryVersionStatus': json['content_library_version_status'],
|
|
256
|
+
'resourceName': json['resource_name'],
|
|
257
|
+
'resourceType': ResourceTypeFromJSON(json['resource_type']),
|
|
258
|
+
'launchMode': json['launch_mode'] == null ? undefined : ContentLaunchModeFromJSON(json['launch_mode']),
|
|
259
|
+
'launchUrl': json['launch_url'] == null ? undefined : json['launch_url'],
|
|
260
|
+
'attemptNumber': json['attempt_number'],
|
|
261
|
+
'isCurrent': json['is_current'],
|
|
262
|
+
'completionStatus': json['completion_status'],
|
|
263
|
+
'gradeStatus': json['grade_status'],
|
|
264
|
+
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
265
|
+
'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
|
|
266
|
+
'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
|
|
267
|
+
'createdAt': json['created_at'],
|
|
268
|
+
'updatedAt': json['updated_at'],
|
|
269
|
+
'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function GetResourceSessionToJSON(json: any): GetResourceSession {
|
|
274
|
+
return GetResourceSessionToJSONTyped(json, false);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export function GetResourceSessionToJSONTyped(value?: GetResourceSession | null, ignoreDiscriminator: boolean = false): any {
|
|
278
|
+
if (value == null) {
|
|
279
|
+
return value;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
return {
|
|
283
|
+
|
|
284
|
+
'id': value['id'],
|
|
285
|
+
'user_id': value['userId'],
|
|
286
|
+
'user_name': value['userName'],
|
|
287
|
+
'environment': ResourceSessionEnvironmentToJSON(value['environment']),
|
|
288
|
+
'course_id': value['courseId'],
|
|
289
|
+
'course_name': value['courseName'],
|
|
290
|
+
'course_version_id': value['courseVersionId'],
|
|
291
|
+
'course_version_number': value['courseVersionNumber'],
|
|
292
|
+
'item_id': value['itemId'],
|
|
293
|
+
'content_library_item_id': value['contentLibraryItemId'],
|
|
294
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
295
|
+
'content_library_version_number': value['contentLibraryVersionNumber'],
|
|
296
|
+
'content_library_version_status': value['contentLibraryVersionStatus'],
|
|
297
|
+
'resource_name': value['resourceName'],
|
|
298
|
+
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
299
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
300
|
+
'launch_url': value['launchUrl'],
|
|
301
|
+
'attempt_number': value['attemptNumber'],
|
|
302
|
+
'is_current': value['isCurrent'],
|
|
303
|
+
'completion_status': value['completionStatus'],
|
|
304
|
+
'grade_status': value['gradeStatus'],
|
|
305
|
+
'score_raw': value['scoreRaw'],
|
|
306
|
+
'initialized_at': value['initializedAt'],
|
|
307
|
+
'terminated_at': value['terminatedAt'],
|
|
308
|
+
'created_at': value['createdAt'],
|
|
309
|
+
'updated_at': value['updatedAt'],
|
|
310
|
+
'completed_at': value['completedAt'],
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
|
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetResourceSessionDiagnosticsResource } from './GetResourceSessionDiagnosticsResource';
|
|
17
|
+
import {
|
|
18
|
+
GetResourceSessionDiagnosticsResourceFromJSON,
|
|
19
|
+
GetResourceSessionDiagnosticsResourceFromJSONTyped,
|
|
20
|
+
GetResourceSessionDiagnosticsResourceToJSON,
|
|
21
|
+
GetResourceSessionDiagnosticsResourceToJSONTyped,
|
|
22
|
+
} from './GetResourceSessionDiagnosticsResource';
|
|
23
|
+
import type { GetResourceSessionDiagnosticsScormSummary } from './GetResourceSessionDiagnosticsScormSummary';
|
|
24
|
+
import {
|
|
25
|
+
GetResourceSessionDiagnosticsScormSummaryFromJSON,
|
|
26
|
+
GetResourceSessionDiagnosticsScormSummaryFromJSONTyped,
|
|
27
|
+
GetResourceSessionDiagnosticsScormSummaryToJSON,
|
|
28
|
+
GetResourceSessionDiagnosticsScormSummaryToJSONTyped,
|
|
29
|
+
} from './GetResourceSessionDiagnosticsScormSummary';
|
|
30
|
+
import type { GetResourceSessionDiagnosticsUser } from './GetResourceSessionDiagnosticsUser';
|
|
31
|
+
import {
|
|
32
|
+
GetResourceSessionDiagnosticsUserFromJSON,
|
|
33
|
+
GetResourceSessionDiagnosticsUserFromJSONTyped,
|
|
34
|
+
GetResourceSessionDiagnosticsUserToJSON,
|
|
35
|
+
GetResourceSessionDiagnosticsUserToJSONTyped,
|
|
36
|
+
} from './GetResourceSessionDiagnosticsUser';
|
|
37
|
+
import type { GetResourceSession } from './GetResourceSession';
|
|
38
|
+
import {
|
|
39
|
+
GetResourceSessionFromJSON,
|
|
40
|
+
GetResourceSessionFromJSONTyped,
|
|
41
|
+
GetResourceSessionToJSON,
|
|
42
|
+
GetResourceSessionToJSONTyped,
|
|
43
|
+
} from './GetResourceSession';
|
|
44
|
+
import type { GetResourceSessionDiagnosticsCourseContext } from './GetResourceSessionDiagnosticsCourseContext';
|
|
45
|
+
import {
|
|
46
|
+
GetResourceSessionDiagnosticsCourseContextFromJSON,
|
|
47
|
+
GetResourceSessionDiagnosticsCourseContextFromJSONTyped,
|
|
48
|
+
GetResourceSessionDiagnosticsCourseContextToJSON,
|
|
49
|
+
GetResourceSessionDiagnosticsCourseContextToJSONTyped,
|
|
50
|
+
} from './GetResourceSessionDiagnosticsCourseContext';
|
|
51
|
+
import type { GetResourceSessionDiagnosticsVersion } from './GetResourceSessionDiagnosticsVersion';
|
|
52
|
+
import {
|
|
53
|
+
GetResourceSessionDiagnosticsVersionFromJSON,
|
|
54
|
+
GetResourceSessionDiagnosticsVersionFromJSONTyped,
|
|
55
|
+
GetResourceSessionDiagnosticsVersionToJSON,
|
|
56
|
+
GetResourceSessionDiagnosticsVersionToJSONTyped,
|
|
57
|
+
} from './GetResourceSessionDiagnosticsVersion';
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Administrator diagnostics for a resource session and its exact resource-version pin.
|
|
61
|
+
* @export
|
|
62
|
+
* @interface GetResourceSessionDiagnostics
|
|
63
|
+
*/
|
|
64
|
+
export interface GetResourceSessionDiagnostics {
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {GetResourceSession}
|
|
68
|
+
* @memberof GetResourceSessionDiagnostics
|
|
69
|
+
*/
|
|
70
|
+
session: GetResourceSession;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {{ [key: string]: any; }}
|
|
74
|
+
* @memberof GetResourceSessionDiagnostics
|
|
75
|
+
*/
|
|
76
|
+
sessionData: { [key: string]: any; };
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {GetResourceSessionDiagnosticsUser}
|
|
80
|
+
* @memberof GetResourceSessionDiagnostics
|
|
81
|
+
*/
|
|
82
|
+
user: GetResourceSessionDiagnosticsUser;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {GetResourceSessionDiagnosticsResource}
|
|
86
|
+
* @memberof GetResourceSessionDiagnostics
|
|
87
|
+
*/
|
|
88
|
+
resource: GetResourceSessionDiagnosticsResource;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {GetResourceSessionDiagnosticsVersion}
|
|
92
|
+
* @memberof GetResourceSessionDiagnostics
|
|
93
|
+
*/
|
|
94
|
+
version: GetResourceSessionDiagnosticsVersion;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {GetResourceSessionDiagnosticsCourseContext}
|
|
98
|
+
* @memberof GetResourceSessionDiagnostics
|
|
99
|
+
*/
|
|
100
|
+
courseContext?: GetResourceSessionDiagnosticsCourseContext | null;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {GetResourceSessionDiagnosticsScormSummary}
|
|
104
|
+
* @memberof GetResourceSessionDiagnostics
|
|
105
|
+
*/
|
|
106
|
+
scormSummary?: GetResourceSessionDiagnosticsScormSummary | null;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the GetResourceSessionDiagnostics interface.
|
|
111
|
+
*/
|
|
112
|
+
export function instanceOfGetResourceSessionDiagnostics(value: object): value is GetResourceSessionDiagnostics {
|
|
113
|
+
if (!('session' in value) || value['session'] === undefined) return false;
|
|
114
|
+
if (!('sessionData' in value) || value['sessionData'] === undefined) return false;
|
|
115
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
116
|
+
if (!('resource' in value) || value['resource'] === undefined) return false;
|
|
117
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function GetResourceSessionDiagnosticsFromJSON(json: any): GetResourceSessionDiagnostics {
|
|
122
|
+
return GetResourceSessionDiagnosticsFromJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function GetResourceSessionDiagnosticsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnostics {
|
|
126
|
+
if (json == null) {
|
|
127
|
+
return json;
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'session': GetResourceSessionFromJSON(json['session']),
|
|
132
|
+
'sessionData': json['session_data'],
|
|
133
|
+
'user': GetResourceSessionDiagnosticsUserFromJSON(json['user']),
|
|
134
|
+
'resource': GetResourceSessionDiagnosticsResourceFromJSON(json['resource']),
|
|
135
|
+
'version': GetResourceSessionDiagnosticsVersionFromJSON(json['version']),
|
|
136
|
+
'courseContext': json['course_context'] == null ? undefined : GetResourceSessionDiagnosticsCourseContextFromJSON(json['course_context']),
|
|
137
|
+
'scormSummary': json['scorm_summary'] == null ? undefined : GetResourceSessionDiagnosticsScormSummaryFromJSON(json['scorm_summary']),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function GetResourceSessionDiagnosticsToJSON(json: any): GetResourceSessionDiagnostics {
|
|
142
|
+
return GetResourceSessionDiagnosticsToJSONTyped(json, false);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function GetResourceSessionDiagnosticsToJSONTyped(value?: GetResourceSessionDiagnostics | null, ignoreDiscriminator: boolean = false): any {
|
|
146
|
+
if (value == null) {
|
|
147
|
+
return value;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return {
|
|
151
|
+
|
|
152
|
+
'session': GetResourceSessionToJSON(value['session']),
|
|
153
|
+
'session_data': value['sessionData'],
|
|
154
|
+
'user': GetResourceSessionDiagnosticsUserToJSON(value['user']),
|
|
155
|
+
'resource': GetResourceSessionDiagnosticsResourceToJSON(value['resource']),
|
|
156
|
+
'version': GetResourceSessionDiagnosticsVersionToJSON(value['version']),
|
|
157
|
+
'course_context': GetResourceSessionDiagnosticsCourseContextToJSON(value['courseContext']),
|
|
158
|
+
'scorm_summary': GetResourceSessionDiagnosticsScormSummaryToJSON(value['scormSummary']),
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
@@ -0,0 +1,148 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
17
|
+
import {
|
|
18
|
+
ContentLaunchModeFromJSON,
|
|
19
|
+
ContentLaunchModeFromJSONTyped,
|
|
20
|
+
ContentLaunchModeToJSON,
|
|
21
|
+
ContentLaunchModeToJSONTyped,
|
|
22
|
+
} from './ContentLaunchMode';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetResourceSessionDiagnosticsCourseContext
|
|
28
|
+
*/
|
|
29
|
+
export interface GetResourceSessionDiagnosticsCourseContext {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
34
|
+
*/
|
|
35
|
+
courseId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
40
|
+
*/
|
|
41
|
+
courseName: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
46
|
+
*/
|
|
47
|
+
courseVersionId: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
52
|
+
*/
|
|
53
|
+
courseVersionNumber: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
58
|
+
*/
|
|
59
|
+
itemId: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
64
|
+
*/
|
|
65
|
+
displayName: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {ContentLaunchMode}
|
|
69
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
70
|
+
*/
|
|
71
|
+
launchMode: ContentLaunchMode;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
76
|
+
*/
|
|
77
|
+
maxAttempts: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
82
|
+
*/
|
|
83
|
+
scoreRollupStrategy: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the GetResourceSessionDiagnosticsCourseContext interface.
|
|
90
|
+
*/
|
|
91
|
+
export function instanceOfGetResourceSessionDiagnosticsCourseContext(value: object): value is GetResourceSessionDiagnosticsCourseContext {
|
|
92
|
+
if (!('courseId' in value) || value['courseId'] === undefined) return false;
|
|
93
|
+
if (!('courseName' in value) || value['courseName'] === undefined) return false;
|
|
94
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined) return false;
|
|
95
|
+
if (!('courseVersionNumber' in value) || value['courseVersionNumber'] === undefined) return false;
|
|
96
|
+
if (!('itemId' in value) || value['itemId'] === undefined) return false;
|
|
97
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
98
|
+
if (!('launchMode' in value) || value['launchMode'] === undefined) return false;
|
|
99
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined) return false;
|
|
100
|
+
if (!('scoreRollupStrategy' in value) || value['scoreRollupStrategy'] === undefined) return false;
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function GetResourceSessionDiagnosticsCourseContextFromJSON(json: any): GetResourceSessionDiagnosticsCourseContext {
|
|
105
|
+
return GetResourceSessionDiagnosticsCourseContextFromJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function GetResourceSessionDiagnosticsCourseContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnosticsCourseContext {
|
|
109
|
+
if (json == null) {
|
|
110
|
+
return json;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'courseId': json['course_id'],
|
|
115
|
+
'courseName': json['course_name'],
|
|
116
|
+
'courseVersionId': json['course_version_id'],
|
|
117
|
+
'courseVersionNumber': json['course_version_number'],
|
|
118
|
+
'itemId': json['item_id'],
|
|
119
|
+
'displayName': json['display_name'],
|
|
120
|
+
'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
|
|
121
|
+
'maxAttempts': json['max_attempts'],
|
|
122
|
+
'scoreRollupStrategy': json['score_rollup_strategy'],
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function GetResourceSessionDiagnosticsCourseContextToJSON(json: any): GetResourceSessionDiagnosticsCourseContext {
|
|
127
|
+
return GetResourceSessionDiagnosticsCourseContextToJSONTyped(json, false);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function GetResourceSessionDiagnosticsCourseContextToJSONTyped(value?: GetResourceSessionDiagnosticsCourseContext | null, ignoreDiscriminator: boolean = false): any {
|
|
131
|
+
if (value == null) {
|
|
132
|
+
return value;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return {
|
|
136
|
+
|
|
137
|
+
'course_id': value['courseId'],
|
|
138
|
+
'course_name': value['courseName'],
|
|
139
|
+
'course_version_id': value['courseVersionId'],
|
|
140
|
+
'course_version_number': value['courseVersionNumber'],
|
|
141
|
+
'item_id': value['itemId'],
|
|
142
|
+
'display_name': value['displayName'],
|
|
143
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
144
|
+
'max_attempts': value['maxAttempts'],
|
|
145
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|