@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
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ResourceSessionEnvironmentFromJSON, ResourceSessionEnvironmentToJSON, } from './ResourceSessionEnvironment';
|
|
14
15
|
import { ResourceTypeFromJSON, ResourceTypeToJSON, } from './ResourceType';
|
|
15
16
|
import { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLaunchMode';
|
|
16
17
|
/**
|
|
@@ -19,6 +20,8 @@ import { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLa
|
|
|
19
20
|
export function instanceOfGetCourseVersionItemSession(value) {
|
|
20
21
|
if (!('id' in value) || value['id'] === undefined)
|
|
21
22
|
return false;
|
|
23
|
+
if (!('environment' in value) || value['environment'] === undefined)
|
|
24
|
+
return false;
|
|
22
25
|
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
|
|
23
26
|
return false;
|
|
24
27
|
if (!('itemId' in value) || value['itemId'] === undefined)
|
|
@@ -56,6 +59,7 @@ export function GetCourseVersionItemSessionFromJSONTyped(json, ignoreDiscriminat
|
|
|
56
59
|
}
|
|
57
60
|
return {
|
|
58
61
|
'id': json['id'],
|
|
62
|
+
'environment': ResourceSessionEnvironmentFromJSON(json['environment']),
|
|
59
63
|
'courseVersionId': json['course_version_id'],
|
|
60
64
|
'itemId': json['item_id'],
|
|
61
65
|
'contentLibraryItemId': json['content_library_item_id'],
|
|
@@ -82,6 +86,7 @@ export function GetCourseVersionItemSessionToJSONTyped(value, ignoreDiscriminato
|
|
|
82
86
|
}
|
|
83
87
|
return {
|
|
84
88
|
'id': value['id'],
|
|
89
|
+
'environment': ResourceSessionEnvironmentToJSON(value['environment']),
|
|
85
90
|
'course_version_id': value['courseVersionId'],
|
|
86
91
|
'item_id': value['itemId'],
|
|
87
92
|
'content_library_item_id': value['contentLibraryItemId'],
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ResourceSessionEnvironment } from './ResourceSessionEnvironment';
|
|
13
|
+
import type { ResourceType } from './ResourceType';
|
|
14
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
15
|
+
/**
|
|
16
|
+
* A user-owned session pinned to an immutable Content Library resource version.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetResourceSession
|
|
19
|
+
*/
|
|
20
|
+
export interface GetResourceSession {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof GetResourceSession
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof GetResourceSession
|
|
31
|
+
*/
|
|
32
|
+
userId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof GetResourceSession
|
|
37
|
+
*/
|
|
38
|
+
userName: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {ResourceSessionEnvironment}
|
|
42
|
+
* @memberof GetResourceSession
|
|
43
|
+
*/
|
|
44
|
+
environment: ResourceSessionEnvironment;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof GetResourceSession
|
|
49
|
+
*/
|
|
50
|
+
courseId?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof GetResourceSession
|
|
55
|
+
*/
|
|
56
|
+
courseName?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof GetResourceSession
|
|
61
|
+
*/
|
|
62
|
+
courseVersionId?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof GetResourceSession
|
|
67
|
+
*/
|
|
68
|
+
courseVersionNumber?: number | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof GetResourceSession
|
|
73
|
+
*/
|
|
74
|
+
itemId?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof GetResourceSession
|
|
79
|
+
*/
|
|
80
|
+
contentLibraryItemId: string;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof GetResourceSession
|
|
85
|
+
*/
|
|
86
|
+
contentLibraryVersionId: string;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {number}
|
|
90
|
+
* @memberof GetResourceSession
|
|
91
|
+
*/
|
|
92
|
+
contentLibraryVersionNumber: number;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof GetResourceSession
|
|
97
|
+
*/
|
|
98
|
+
contentLibraryVersionStatus: string;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof GetResourceSession
|
|
103
|
+
*/
|
|
104
|
+
resourceName: string;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {ResourceType}
|
|
108
|
+
* @memberof GetResourceSession
|
|
109
|
+
*/
|
|
110
|
+
resourceType: ResourceType;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {ContentLaunchMode}
|
|
114
|
+
* @memberof GetResourceSession
|
|
115
|
+
*/
|
|
116
|
+
launchMode?: ContentLaunchMode | null;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof GetResourceSession
|
|
121
|
+
*/
|
|
122
|
+
launchUrl?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {number}
|
|
126
|
+
* @memberof GetResourceSession
|
|
127
|
+
*/
|
|
128
|
+
attemptNumber: number;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {boolean}
|
|
132
|
+
* @memberof GetResourceSession
|
|
133
|
+
*/
|
|
134
|
+
isCurrent: boolean;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof GetResourceSession
|
|
139
|
+
*/
|
|
140
|
+
completionStatus: string;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof GetResourceSession
|
|
145
|
+
*/
|
|
146
|
+
gradeStatus: string;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {number}
|
|
150
|
+
* @memberof GetResourceSession
|
|
151
|
+
*/
|
|
152
|
+
scoreRaw?: number | null;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {number}
|
|
156
|
+
* @memberof GetResourceSession
|
|
157
|
+
*/
|
|
158
|
+
initializedAt?: number | null;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {number}
|
|
162
|
+
* @memberof GetResourceSession
|
|
163
|
+
*/
|
|
164
|
+
terminatedAt?: number | null;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {number}
|
|
168
|
+
* @memberof GetResourceSession
|
|
169
|
+
*/
|
|
170
|
+
createdAt: number;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {number}
|
|
174
|
+
* @memberof GetResourceSession
|
|
175
|
+
*/
|
|
176
|
+
updatedAt: number;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @type {number}
|
|
180
|
+
* @memberof GetResourceSession
|
|
181
|
+
*/
|
|
182
|
+
completedAt?: number | null;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Check if a given object implements the GetResourceSession interface.
|
|
186
|
+
*/
|
|
187
|
+
export declare function instanceOfGetResourceSession(value: object): value is GetResourceSession;
|
|
188
|
+
export declare function GetResourceSessionFromJSON(json: any): GetResourceSession;
|
|
189
|
+
export declare function GetResourceSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSession;
|
|
190
|
+
export declare function GetResourceSessionToJSON(json: any): GetResourceSession;
|
|
191
|
+
export declare function GetResourceSessionToJSONTyped(value?: GetResourceSession | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ResourceSessionEnvironmentFromJSON, ResourceSessionEnvironmentToJSON, } from './ResourceSessionEnvironment';
|
|
15
|
+
import { ResourceTypeFromJSON, ResourceTypeToJSON, } from './ResourceType';
|
|
16
|
+
import { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLaunchMode';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the GetResourceSession interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfGetResourceSession(value) {
|
|
21
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('userName' in value) || value['userName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('environment' in value) || value['environment'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('contentLibraryVersionId' in value) || value['contentLibraryVersionId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('contentLibraryVersionNumber' in value) || value['contentLibraryVersionNumber'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('contentLibraryVersionStatus' in value) || value['contentLibraryVersionStatus'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('resourceName' in value) || value['resourceName'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('resourceType' in value) || value['resourceType'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
export function GetResourceSessionFromJSON(json) {
|
|
56
|
+
return GetResourceSessionFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
export function GetResourceSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': json['id'],
|
|
64
|
+
'userId': json['user_id'],
|
|
65
|
+
'userName': json['user_name'],
|
|
66
|
+
'environment': ResourceSessionEnvironmentFromJSON(json['environment']),
|
|
67
|
+
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
68
|
+
'courseName': json['course_name'] == null ? undefined : json['course_name'],
|
|
69
|
+
'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
|
|
70
|
+
'courseVersionNumber': json['course_version_number'] == null ? undefined : json['course_version_number'],
|
|
71
|
+
'itemId': json['item_id'] == null ? undefined : json['item_id'],
|
|
72
|
+
'contentLibraryItemId': json['content_library_item_id'],
|
|
73
|
+
'contentLibraryVersionId': json['content_library_version_id'],
|
|
74
|
+
'contentLibraryVersionNumber': json['content_library_version_number'],
|
|
75
|
+
'contentLibraryVersionStatus': json['content_library_version_status'],
|
|
76
|
+
'resourceName': json['resource_name'],
|
|
77
|
+
'resourceType': ResourceTypeFromJSON(json['resource_type']),
|
|
78
|
+
'launchMode': json['launch_mode'] == null ? undefined : ContentLaunchModeFromJSON(json['launch_mode']),
|
|
79
|
+
'launchUrl': json['launch_url'] == null ? undefined : json['launch_url'],
|
|
80
|
+
'attemptNumber': json['attempt_number'],
|
|
81
|
+
'isCurrent': json['is_current'],
|
|
82
|
+
'completionStatus': json['completion_status'],
|
|
83
|
+
'gradeStatus': json['grade_status'],
|
|
84
|
+
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
85
|
+
'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
|
|
86
|
+
'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
|
|
87
|
+
'createdAt': json['created_at'],
|
|
88
|
+
'updatedAt': json['updated_at'],
|
|
89
|
+
'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
export function GetResourceSessionToJSON(json) {
|
|
93
|
+
return GetResourceSessionToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
export function GetResourceSessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
'id': value['id'],
|
|
101
|
+
'user_id': value['userId'],
|
|
102
|
+
'user_name': value['userName'],
|
|
103
|
+
'environment': ResourceSessionEnvironmentToJSON(value['environment']),
|
|
104
|
+
'course_id': value['courseId'],
|
|
105
|
+
'course_name': value['courseName'],
|
|
106
|
+
'course_version_id': value['courseVersionId'],
|
|
107
|
+
'course_version_number': value['courseVersionNumber'],
|
|
108
|
+
'item_id': value['itemId'],
|
|
109
|
+
'content_library_item_id': value['contentLibraryItemId'],
|
|
110
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
111
|
+
'content_library_version_number': value['contentLibraryVersionNumber'],
|
|
112
|
+
'content_library_version_status': value['contentLibraryVersionStatus'],
|
|
113
|
+
'resource_name': value['resourceName'],
|
|
114
|
+
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
115
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
116
|
+
'launch_url': value['launchUrl'],
|
|
117
|
+
'attempt_number': value['attemptNumber'],
|
|
118
|
+
'is_current': value['isCurrent'],
|
|
119
|
+
'completion_status': value['completionStatus'],
|
|
120
|
+
'grade_status': value['gradeStatus'],
|
|
121
|
+
'score_raw': value['scoreRaw'],
|
|
122
|
+
'initialized_at': value['initializedAt'],
|
|
123
|
+
'terminated_at': value['terminatedAt'],
|
|
124
|
+
'created_at': value['createdAt'],
|
|
125
|
+
'updated_at': value['updatedAt'],
|
|
126
|
+
'completed_at': value['completedAt'],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetResourceSessionDiagnosticsResource } from './GetResourceSessionDiagnosticsResource';
|
|
13
|
+
import type { GetResourceSessionDiagnosticsScormSummary } from './GetResourceSessionDiagnosticsScormSummary';
|
|
14
|
+
import type { GetResourceSessionDiagnosticsUser } from './GetResourceSessionDiagnosticsUser';
|
|
15
|
+
import type { GetResourceSession } from './GetResourceSession';
|
|
16
|
+
import type { GetResourceSessionDiagnosticsCourseContext } from './GetResourceSessionDiagnosticsCourseContext';
|
|
17
|
+
import type { GetResourceSessionDiagnosticsVersion } from './GetResourceSessionDiagnosticsVersion';
|
|
18
|
+
/**
|
|
19
|
+
* Administrator diagnostics for a resource session and its exact resource-version pin.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetResourceSessionDiagnostics
|
|
22
|
+
*/
|
|
23
|
+
export interface GetResourceSessionDiagnostics {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {GetResourceSession}
|
|
27
|
+
* @memberof GetResourceSessionDiagnostics
|
|
28
|
+
*/
|
|
29
|
+
session: GetResourceSession;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {{ [key: string]: any; }}
|
|
33
|
+
* @memberof GetResourceSessionDiagnostics
|
|
34
|
+
*/
|
|
35
|
+
sessionData: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {GetResourceSessionDiagnosticsUser}
|
|
41
|
+
* @memberof GetResourceSessionDiagnostics
|
|
42
|
+
*/
|
|
43
|
+
user: GetResourceSessionDiagnosticsUser;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {GetResourceSessionDiagnosticsResource}
|
|
47
|
+
* @memberof GetResourceSessionDiagnostics
|
|
48
|
+
*/
|
|
49
|
+
resource: GetResourceSessionDiagnosticsResource;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {GetResourceSessionDiagnosticsVersion}
|
|
53
|
+
* @memberof GetResourceSessionDiagnostics
|
|
54
|
+
*/
|
|
55
|
+
version: GetResourceSessionDiagnosticsVersion;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {GetResourceSessionDiagnosticsCourseContext}
|
|
59
|
+
* @memberof GetResourceSessionDiagnostics
|
|
60
|
+
*/
|
|
61
|
+
courseContext?: GetResourceSessionDiagnosticsCourseContext | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {GetResourceSessionDiagnosticsScormSummary}
|
|
65
|
+
* @memberof GetResourceSessionDiagnostics
|
|
66
|
+
*/
|
|
67
|
+
scormSummary?: GetResourceSessionDiagnosticsScormSummary | null;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the GetResourceSessionDiagnostics interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfGetResourceSessionDiagnostics(value: object): value is GetResourceSessionDiagnostics;
|
|
73
|
+
export declare function GetResourceSessionDiagnosticsFromJSON(json: any): GetResourceSessionDiagnostics;
|
|
74
|
+
export declare function GetResourceSessionDiagnosticsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnostics;
|
|
75
|
+
export declare function GetResourceSessionDiagnosticsToJSON(json: any): GetResourceSessionDiagnostics;
|
|
76
|
+
export declare function GetResourceSessionDiagnosticsToJSONTyped(value?: GetResourceSessionDiagnostics | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { GetResourceSessionDiagnosticsResourceFromJSON, GetResourceSessionDiagnosticsResourceToJSON, } from './GetResourceSessionDiagnosticsResource';
|
|
15
|
+
import { GetResourceSessionDiagnosticsScormSummaryFromJSON, GetResourceSessionDiagnosticsScormSummaryToJSON, } from './GetResourceSessionDiagnosticsScormSummary';
|
|
16
|
+
import { GetResourceSessionDiagnosticsUserFromJSON, GetResourceSessionDiagnosticsUserToJSON, } from './GetResourceSessionDiagnosticsUser';
|
|
17
|
+
import { GetResourceSessionFromJSON, GetResourceSessionToJSON, } from './GetResourceSession';
|
|
18
|
+
import { GetResourceSessionDiagnosticsCourseContextFromJSON, GetResourceSessionDiagnosticsCourseContextToJSON, } from './GetResourceSessionDiagnosticsCourseContext';
|
|
19
|
+
import { GetResourceSessionDiagnosticsVersionFromJSON, GetResourceSessionDiagnosticsVersionToJSON, } from './GetResourceSessionDiagnosticsVersion';
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the GetResourceSessionDiagnostics interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfGetResourceSessionDiagnostics(value) {
|
|
24
|
+
if (!('session' in value) || value['session'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('sessionData' in value) || value['sessionData'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('resource' in value) || value['resource'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function GetResourceSessionDiagnosticsFromJSON(json) {
|
|
37
|
+
return GetResourceSessionDiagnosticsFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function GetResourceSessionDiagnosticsFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'session': GetResourceSessionFromJSON(json['session']),
|
|
45
|
+
'sessionData': json['session_data'],
|
|
46
|
+
'user': GetResourceSessionDiagnosticsUserFromJSON(json['user']),
|
|
47
|
+
'resource': GetResourceSessionDiagnosticsResourceFromJSON(json['resource']),
|
|
48
|
+
'version': GetResourceSessionDiagnosticsVersionFromJSON(json['version']),
|
|
49
|
+
'courseContext': json['course_context'] == null ? undefined : GetResourceSessionDiagnosticsCourseContextFromJSON(json['course_context']),
|
|
50
|
+
'scormSummary': json['scorm_summary'] == null ? undefined : GetResourceSessionDiagnosticsScormSummaryFromJSON(json['scorm_summary']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function GetResourceSessionDiagnosticsToJSON(json) {
|
|
54
|
+
return GetResourceSessionDiagnosticsToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
export function GetResourceSessionDiagnosticsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'session': GetResourceSessionToJSON(value['session']),
|
|
62
|
+
'session_data': value['sessionData'],
|
|
63
|
+
'user': GetResourceSessionDiagnosticsUserToJSON(value['user']),
|
|
64
|
+
'resource': GetResourceSessionDiagnosticsResourceToJSON(value['resource']),
|
|
65
|
+
'version': GetResourceSessionDiagnosticsVersionToJSON(value['version']),
|
|
66
|
+
'course_context': GetResourceSessionDiagnosticsCourseContextToJSON(value['courseContext']),
|
|
67
|
+
'scorm_summary': GetResourceSessionDiagnosticsScormSummaryToJSON(value['scormSummary']),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetResourceSessionDiagnosticsCourseContext
|
|
17
|
+
*/
|
|
18
|
+
export interface GetResourceSessionDiagnosticsCourseContext {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
23
|
+
*/
|
|
24
|
+
courseId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
29
|
+
*/
|
|
30
|
+
courseName: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
35
|
+
*/
|
|
36
|
+
courseVersionId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
41
|
+
*/
|
|
42
|
+
courseVersionNumber: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
47
|
+
*/
|
|
48
|
+
itemId: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
53
|
+
*/
|
|
54
|
+
displayName: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {ContentLaunchMode}
|
|
58
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
59
|
+
*/
|
|
60
|
+
launchMode: ContentLaunchMode;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
65
|
+
*/
|
|
66
|
+
maxAttempts: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof GetResourceSessionDiagnosticsCourseContext
|
|
71
|
+
*/
|
|
72
|
+
scoreRollupStrategy: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the GetResourceSessionDiagnosticsCourseContext interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfGetResourceSessionDiagnosticsCourseContext(value: object): value is GetResourceSessionDiagnosticsCourseContext;
|
|
78
|
+
export declare function GetResourceSessionDiagnosticsCourseContextFromJSON(json: any): GetResourceSessionDiagnosticsCourseContext;
|
|
79
|
+
export declare function GetResourceSessionDiagnosticsCourseContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnosticsCourseContext;
|
|
80
|
+
export declare function GetResourceSessionDiagnosticsCourseContextToJSON(json: any): GetResourceSessionDiagnosticsCourseContext;
|
|
81
|
+
export declare function GetResourceSessionDiagnosticsCourseContextToJSONTyped(value?: GetResourceSessionDiagnosticsCourseContext | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLaunchMode';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetResourceSessionDiagnosticsCourseContext interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetResourceSessionDiagnosticsCourseContext(value) {
|
|
19
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('courseName' in value) || value['courseName'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('courseVersionNumber' in value) || value['courseVersionNumber'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('itemId' in value) || value['itemId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('launchMode' in value) || value['launchMode'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('scoreRollupStrategy' in value) || value['scoreRollupStrategy'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function GetResourceSessionDiagnosticsCourseContextFromJSON(json) {
|
|
40
|
+
return GetResourceSessionDiagnosticsCourseContextFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function GetResourceSessionDiagnosticsCourseContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'courseId': json['course_id'],
|
|
48
|
+
'courseName': json['course_name'],
|
|
49
|
+
'courseVersionId': json['course_version_id'],
|
|
50
|
+
'courseVersionNumber': json['course_version_number'],
|
|
51
|
+
'itemId': json['item_id'],
|
|
52
|
+
'displayName': json['display_name'],
|
|
53
|
+
'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
|
|
54
|
+
'maxAttempts': json['max_attempts'],
|
|
55
|
+
'scoreRollupStrategy': json['score_rollup_strategy'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function GetResourceSessionDiagnosticsCourseContextToJSON(json) {
|
|
59
|
+
return GetResourceSessionDiagnosticsCourseContextToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function GetResourceSessionDiagnosticsCourseContextToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'course_id': value['courseId'],
|
|
67
|
+
'course_name': value['courseName'],
|
|
68
|
+
'course_version_id': value['courseVersionId'],
|
|
69
|
+
'course_version_number': value['courseVersionNumber'],
|
|
70
|
+
'item_id': value['itemId'],
|
|
71
|
+
'display_name': value['displayName'],
|
|
72
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
73
|
+
'max_attempts': value['maxAttempts'],
|
|
74
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
75
|
+
};
|
|
76
|
+
}
|