@easyedu/js-lsm-api 1.88.0 → 1.90.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 +11 -2
- package/dist/apis/ContentLibraryApi.d.ts +19 -0
- package/dist/apis/ContentLibraryApi.js +47 -0
- package/dist/apis/PlayerApi.d.ts +73 -0
- package/dist/apis/PlayerApi.js +188 -0
- package/dist/esm/apis/ContentLibraryApi.d.ts +19 -0
- package/dist/esm/apis/ContentLibraryApi.js +47 -0
- package/dist/esm/apis/PlayerApi.d.ts +73 -0
- package/dist/esm/apis/PlayerApi.js +188 -0
- package/dist/esm/models/CertificateCanvasImageElement.d.ts +0 -13
- package/dist/esm/models/CertificateCanvasImageElement.js +0 -10
- package/dist/esm/models/CertificateCanvasLineElement.d.ts +0 -13
- package/dist/esm/models/CertificateCanvasLineElement.js +0 -10
- package/dist/esm/models/CertificateCanvasPortalLogoElement.d.ts +0 -13
- package/dist/esm/models/CertificateCanvasPortalLogoElement.js +0 -10
- package/dist/esm/models/CertificateCanvasShapeElement.d.ts +0 -13
- package/dist/esm/models/CertificateCanvasShapeElement.js +0 -10
- package/dist/esm/models/CertificateCanvasTextElement.d.ts +0 -13
- package/dist/esm/models/CertificateCanvasTextElement.js +0 -10
- package/dist/esm/models/CertificateCanvasVerificationQrElement.d.ts +0 -13
- package/dist/esm/models/CertificateCanvasVerificationQrElement.js +0 -10
- package/dist/esm/models/GetCourseVersionItemSession.d.ts +7 -0
- package/dist/esm/models/GetCourseVersionItemSession.js +5 -0
- package/dist/esm/models/GetResourceSession.d.ts +161 -0
- package/dist/esm/models/GetResourceSession.js +112 -0
- package/dist/esm/models/GetResourceSessionList.d.ts +57 -0
- package/dist/esm/models/GetResourceSessionList.js +60 -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/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/CertificateCanvasImageElement.d.ts +0 -13
- package/dist/models/CertificateCanvasImageElement.js +1 -11
- package/dist/models/CertificateCanvasLineElement.d.ts +0 -13
- package/dist/models/CertificateCanvasLineElement.js +0 -11
- package/dist/models/CertificateCanvasPortalLogoElement.d.ts +0 -13
- package/dist/models/CertificateCanvasPortalLogoElement.js +0 -11
- package/dist/models/CertificateCanvasShapeElement.d.ts +0 -13
- package/dist/models/CertificateCanvasShapeElement.js +0 -11
- package/dist/models/CertificateCanvasTextElement.d.ts +0 -13
- package/dist/models/CertificateCanvasTextElement.js +1 -11
- package/dist/models/CertificateCanvasVerificationQrElement.d.ts +0 -13
- package/dist/models/CertificateCanvasVerificationQrElement.js +0 -11
- package/dist/models/GetCourseVersionItemSession.d.ts +7 -0
- package/dist/models/GetCourseVersionItemSession.js +5 -0
- package/dist/models/GetResourceSession.d.ts +161 -0
- package/dist/models/GetResourceSession.js +119 -0
- package/dist/models/GetResourceSessionList.d.ts +57 -0
- package/dist/models/GetResourceSessionList.js +67 -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/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/CertificateCanvasElement.md +2 -2
- package/docs/CertificateCanvasImageElement.md +0 -2
- package/docs/CertificateCanvasLineElement.md +0 -2
- package/docs/CertificateCanvasPortalLogoElement.md +0 -2
- package/docs/CertificateCanvasShapeElement.md +0 -2
- package/docs/CertificateCanvasTextElement.md +0 -2
- package/docs/CertificateCanvasVerificationQrElement.md +0 -2
- package/docs/ContentLibraryApi.md +73 -0
- package/docs/GetCourseVersionItemSession.md +2 -0
- package/docs/GetResourceSession.md +77 -0
- package/docs/GetResourceSessionList.md +43 -0
- package/docs/PlayerApi.md +296 -0
- package/docs/PostResourceVersionSession.md +35 -0
- package/docs/ResourceSessionEnvironment.md +33 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +72 -0
- package/src/apis/PlayerApi.ts +261 -0
- package/src/models/CertificateCanvasImageElement.ts +0 -17
- package/src/models/CertificateCanvasLineElement.ts +0 -19
- package/src/models/CertificateCanvasPortalLogoElement.ts +0 -19
- package/src/models/CertificateCanvasShapeElement.ts +0 -19
- package/src/models/CertificateCanvasTextElement.ts +0 -17
- package/src/models/CertificateCanvasVerificationQrElement.ts +0 -19
- package/src/models/GetCourseVersionItemSession.ts +16 -0
- package/src/models/GetResourceSession.ts +270 -0
- package/src/models/GetResourceSessionList.ts +110 -0
- package/src/models/PostResourceVersionSession.ts +65 -0
- package/src/models/ResourceSessionEnvironment.ts +53 -0
- package/src/models/index.ts +4 -0
|
@@ -11,20 +11,12 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
/**
|
|
15
|
-
* @export
|
|
16
|
-
*/
|
|
17
|
-
export const CertificateCanvasVerificationQrElementTypeEnum = {
|
|
18
|
-
VerificationQr: 'verification_qr'
|
|
19
|
-
};
|
|
20
14
|
/**
|
|
21
15
|
* Check if a given object implements the CertificateCanvasVerificationQrElement interface.
|
|
22
16
|
*/
|
|
23
17
|
export function instanceOfCertificateCanvasVerificationQrElement(value) {
|
|
24
18
|
if (!('id' in value) || value['id'] === undefined)
|
|
25
19
|
return false;
|
|
26
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
-
return false;
|
|
28
20
|
if (!('x' in value) || value['x'] === undefined)
|
|
29
21
|
return false;
|
|
30
22
|
if (!('y' in value) || value['y'] === undefined)
|
|
@@ -44,7 +36,6 @@ export function CertificateCanvasVerificationQrElementFromJSONTyped(json, ignore
|
|
|
44
36
|
}
|
|
45
37
|
return {
|
|
46
38
|
'id': json['id'],
|
|
47
|
-
'type': json['type'],
|
|
48
39
|
'x': json['x'],
|
|
49
40
|
'y': json['y'],
|
|
50
41
|
'width': json['width'],
|
|
@@ -60,7 +51,6 @@ export function CertificateCanvasVerificationQrElementToJSONTyped(value, ignoreD
|
|
|
60
51
|
}
|
|
61
52
|
return {
|
|
62
53
|
'id': value['id'],
|
|
63
|
-
'type': value['type'],
|
|
64
54
|
'x': value['x'],
|
|
65
55
|
'y': value['y'],
|
|
66
56
|
'width': value['width'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ResourceSessionEnvironment } from './ResourceSessionEnvironment';
|
|
12
13
|
import type { ResourceType } from './ResourceType';
|
|
13
14
|
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
14
15
|
/**
|
|
@@ -23,6 +24,12 @@ export interface GetCourseVersionItemSession {
|
|
|
23
24
|
* @memberof GetCourseVersionItemSession
|
|
24
25
|
*/
|
|
25
26
|
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {ResourceSessionEnvironment}
|
|
30
|
+
* @memberof GetCourseVersionItemSession
|
|
31
|
+
*/
|
|
32
|
+
environment: ResourceSessionEnvironment;
|
|
26
33
|
/**
|
|
27
34
|
*
|
|
28
35
|
* @type {string}
|
|
@@ -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,161 @@
|
|
|
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 {ResourceSessionEnvironment}
|
|
36
|
+
* @memberof GetResourceSession
|
|
37
|
+
*/
|
|
38
|
+
environment: ResourceSessionEnvironment;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof GetResourceSession
|
|
43
|
+
*/
|
|
44
|
+
courseId?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof GetResourceSession
|
|
49
|
+
*/
|
|
50
|
+
courseVersionId?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof GetResourceSession
|
|
55
|
+
*/
|
|
56
|
+
itemId?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof GetResourceSession
|
|
61
|
+
*/
|
|
62
|
+
contentLibraryItemId: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof GetResourceSession
|
|
67
|
+
*/
|
|
68
|
+
contentLibraryVersionId: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof GetResourceSession
|
|
73
|
+
*/
|
|
74
|
+
resourceName: string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {ResourceType}
|
|
78
|
+
* @memberof GetResourceSession
|
|
79
|
+
*/
|
|
80
|
+
resourceType: ResourceType;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {ContentLaunchMode}
|
|
84
|
+
* @memberof GetResourceSession
|
|
85
|
+
*/
|
|
86
|
+
launchMode?: ContentLaunchMode | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof GetResourceSession
|
|
91
|
+
*/
|
|
92
|
+
launchUrl?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @memberof GetResourceSession
|
|
97
|
+
*/
|
|
98
|
+
attemptNumber: number;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {boolean}
|
|
102
|
+
* @memberof GetResourceSession
|
|
103
|
+
*/
|
|
104
|
+
isCurrent: boolean;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof GetResourceSession
|
|
109
|
+
*/
|
|
110
|
+
completionStatus: string;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof GetResourceSession
|
|
115
|
+
*/
|
|
116
|
+
gradeStatus: string;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof GetResourceSession
|
|
121
|
+
*/
|
|
122
|
+
scoreRaw?: number | null;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {number}
|
|
126
|
+
* @memberof GetResourceSession
|
|
127
|
+
*/
|
|
128
|
+
initializedAt?: number | null;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {number}
|
|
132
|
+
* @memberof GetResourceSession
|
|
133
|
+
*/
|
|
134
|
+
terminatedAt?: number | null;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {number}
|
|
138
|
+
* @memberof GetResourceSession
|
|
139
|
+
*/
|
|
140
|
+
createdAt: number;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {number}
|
|
144
|
+
* @memberof GetResourceSession
|
|
145
|
+
*/
|
|
146
|
+
updatedAt: number;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {number}
|
|
150
|
+
* @memberof GetResourceSession
|
|
151
|
+
*/
|
|
152
|
+
completedAt?: number | null;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Check if a given object implements the GetResourceSession interface.
|
|
156
|
+
*/
|
|
157
|
+
export declare function instanceOfGetResourceSession(value: object): value is GetResourceSession;
|
|
158
|
+
export declare function GetResourceSessionFromJSON(json: any): GetResourceSession;
|
|
159
|
+
export declare function GetResourceSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSession;
|
|
160
|
+
export declare function GetResourceSessionToJSON(json: any): GetResourceSession;
|
|
161
|
+
export declare function GetResourceSessionToJSONTyped(value?: GetResourceSession | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,112 @@
|
|
|
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 (!('environment' in value) || value['environment'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('contentLibraryVersionId' in value) || value['contentLibraryVersionId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('resourceName' in value) || value['resourceName'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('resourceType' in value) || value['resourceType'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
export function GetResourceSessionFromJSON(json) {
|
|
50
|
+
return GetResourceSessionFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function GetResourceSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'userId': json['user_id'],
|
|
59
|
+
'environment': ResourceSessionEnvironmentFromJSON(json['environment']),
|
|
60
|
+
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
61
|
+
'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
|
|
62
|
+
'itemId': json['item_id'] == null ? undefined : json['item_id'],
|
|
63
|
+
'contentLibraryItemId': json['content_library_item_id'],
|
|
64
|
+
'contentLibraryVersionId': json['content_library_version_id'],
|
|
65
|
+
'resourceName': json['resource_name'],
|
|
66
|
+
'resourceType': ResourceTypeFromJSON(json['resource_type']),
|
|
67
|
+
'launchMode': json['launch_mode'] == null ? undefined : ContentLaunchModeFromJSON(json['launch_mode']),
|
|
68
|
+
'launchUrl': json['launch_url'] == null ? undefined : json['launch_url'],
|
|
69
|
+
'attemptNumber': json['attempt_number'],
|
|
70
|
+
'isCurrent': json['is_current'],
|
|
71
|
+
'completionStatus': json['completion_status'],
|
|
72
|
+
'gradeStatus': json['grade_status'],
|
|
73
|
+
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
74
|
+
'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
|
|
75
|
+
'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
|
|
76
|
+
'createdAt': json['created_at'],
|
|
77
|
+
'updatedAt': json['updated_at'],
|
|
78
|
+
'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export function GetResourceSessionToJSON(json) {
|
|
82
|
+
return GetResourceSessionToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
export function GetResourceSessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
'id': value['id'],
|
|
90
|
+
'user_id': value['userId'],
|
|
91
|
+
'environment': ResourceSessionEnvironmentToJSON(value['environment']),
|
|
92
|
+
'course_id': value['courseId'],
|
|
93
|
+
'course_version_id': value['courseVersionId'],
|
|
94
|
+
'item_id': value['itemId'],
|
|
95
|
+
'content_library_item_id': value['contentLibraryItemId'],
|
|
96
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
97
|
+
'resource_name': value['resourceName'],
|
|
98
|
+
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
99
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
100
|
+
'launch_url': value['launchUrl'],
|
|
101
|
+
'attempt_number': value['attemptNumber'],
|
|
102
|
+
'is_current': value['isCurrent'],
|
|
103
|
+
'completion_status': value['completionStatus'],
|
|
104
|
+
'grade_status': value['gradeStatus'],
|
|
105
|
+
'score_raw': value['scoreRaw'],
|
|
106
|
+
'initialized_at': value['initializedAt'],
|
|
107
|
+
'terminated_at': value['terminatedAt'],
|
|
108
|
+
'created_at': value['createdAt'],
|
|
109
|
+
'updated_at': value['updatedAt'],
|
|
110
|
+
'completed_at': value['completedAt'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { GetResourceSession } from './GetResourceSession';
|
|
13
|
+
/**
|
|
14
|
+
* A filtered page of resource sessions.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetResourceSessionList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetResourceSessionList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetResourceSessionList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetResourceSessionList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetResourceSessionList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetResourceSessionList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetResourceSession>}
|
|
46
|
+
* @memberof GetResourceSessionList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetResourceSession>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetResourceSessionList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetResourceSessionList(value: object): value is GetResourceSessionList;
|
|
54
|
+
export declare function GetResourceSessionListFromJSON(json: any): GetResourceSessionList;
|
|
55
|
+
export declare function GetResourceSessionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionList;
|
|
56
|
+
export declare function GetResourceSessionListToJSON(json: any): GetResourceSessionList;
|
|
57
|
+
export declare function GetResourceSessionListToJSONTyped(value?: GetResourceSessionList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { GetResourceSessionFromJSON, GetResourceSessionToJSON, } from './GetResourceSession';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetResourceSessionList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetResourceSessionList(value) {
|
|
19
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function GetResourceSessionListFromJSON(json) {
|
|
32
|
+
return GetResourceSessionListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetResourceSessionListFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'page': json['page'],
|
|
40
|
+
'pageSize': json['pageSize'],
|
|
41
|
+
'totalPages': json['totalPages'],
|
|
42
|
+
'totalItems': json['totalItems'],
|
|
43
|
+
'items': (json['items'].map(GetResourceSessionFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetResourceSessionListToJSON(json) {
|
|
47
|
+
return GetResourceSessionListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetResourceSessionListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'page': value['page'],
|
|
55
|
+
'pageSize': value['pageSize'],
|
|
56
|
+
'totalPages': value['totalPages'],
|
|
57
|
+
'totalItems': value['totalItems'],
|
|
58
|
+
'items': (value['items'].map(GetResourceSessionToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* Start or resume an isolated demo session for an exact resource version.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostResourceVersionSession
|
|
16
|
+
*/
|
|
17
|
+
export interface PostResourceVersionSession {
|
|
18
|
+
/**
|
|
19
|
+
* Create a clean demo attempt instead of resuming the current demo session.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PostResourceVersionSession
|
|
22
|
+
*/
|
|
23
|
+
restart?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostResourceVersionSession interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostResourceVersionSession(value: object): value is PostResourceVersionSession;
|
|
29
|
+
export declare function PostResourceVersionSessionFromJSON(json: any): PostResourceVersionSession;
|
|
30
|
+
export declare function PostResourceVersionSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionSession;
|
|
31
|
+
export declare function PostResourceVersionSessionToJSON(json: any): PostResourceVersionSession;
|
|
32
|
+
export declare function PostResourceVersionSessionToJSONTyped(value?: PostResourceVersionSession | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PostResourceVersionSession interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostResourceVersionSession(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PostResourceVersionSessionFromJSON(json) {
|
|
21
|
+
return PostResourceVersionSessionFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PostResourceVersionSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'restart': json['restart'] == null ? undefined : json['restart'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function PostResourceVersionSessionToJSON(json) {
|
|
32
|
+
return PostResourceVersionSessionToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function PostResourceVersionSessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'restart': value['restart'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Whether the session contributes to learner activity or is isolated administrator testing.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ResourceSessionEnvironment: {
|
|
17
|
+
readonly Live: "live";
|
|
18
|
+
readonly Demo: "demo";
|
|
19
|
+
};
|
|
20
|
+
export type ResourceSessionEnvironment = typeof ResourceSessionEnvironment[keyof typeof ResourceSessionEnvironment];
|
|
21
|
+
export declare function instanceOfResourceSessionEnvironment(value: any): boolean;
|
|
22
|
+
export declare function ResourceSessionEnvironmentFromJSON(json: any): ResourceSessionEnvironment;
|
|
23
|
+
export declare function ResourceSessionEnvironmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceSessionEnvironment;
|
|
24
|
+
export declare function ResourceSessionEnvironmentToJSON(value?: ResourceSessionEnvironment | null): any;
|
|
25
|
+
export declare function ResourceSessionEnvironmentToJSONTyped(value: any, ignoreDiscriminator: boolean): ResourceSessionEnvironment;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Whether the session contributes to learner activity or is isolated administrator testing.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ResourceSessionEnvironment = {
|
|
19
|
+
Live: 'live',
|
|
20
|
+
Demo: 'demo'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfResourceSessionEnvironment(value) {
|
|
23
|
+
for (const key in ResourceSessionEnvironment) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(ResourceSessionEnvironment, key)) {
|
|
25
|
+
if (ResourceSessionEnvironment[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function ResourceSessionEnvironmentFromJSON(json) {
|
|
33
|
+
return ResourceSessionEnvironmentFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ResourceSessionEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function ResourceSessionEnvironmentToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function ResourceSessionEnvironmentToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -180,6 +180,8 @@ export * from './GetQuizResultsTiming';
|
|
|
180
180
|
export * from './GetQuizStatistics';
|
|
181
181
|
export * from './GetResource';
|
|
182
182
|
export * from './GetResourceList';
|
|
183
|
+
export * from './GetResourceSession';
|
|
184
|
+
export * from './GetResourceSessionList';
|
|
183
185
|
export * from './GetResourceUsage';
|
|
184
186
|
export * from './GetResourceUsageCoursesInner';
|
|
185
187
|
export * from './GetResourceVersionUpload';
|
|
@@ -297,6 +299,7 @@ export * from './PostResetPassword';
|
|
|
297
299
|
export * from './PostResource';
|
|
298
300
|
export * from './PostResourceVersion';
|
|
299
301
|
export * from './PostResourceVersionComplete';
|
|
302
|
+
export * from './PostResourceVersionSession';
|
|
300
303
|
export * from './PostResourceVersionUpload';
|
|
301
304
|
export * from './PostRevokeCertificate';
|
|
302
305
|
export * from './PostRichTextAssetComplete';
|
|
@@ -348,6 +351,7 @@ export * from './PutUser';
|
|
|
348
351
|
export * from './QuizContent';
|
|
349
352
|
export * from './QuizContentAssignment';
|
|
350
353
|
export * from './QuizContentSettings';
|
|
354
|
+
export * from './ResourceSessionEnvironment';
|
|
351
355
|
export * from './ResourceType';
|
|
352
356
|
export * from './RichTextAsset';
|
|
353
357
|
export * from './RichTextDocument';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -182,6 +182,8 @@ export * from './GetQuizResultsTiming';
|
|
|
182
182
|
export * from './GetQuizStatistics';
|
|
183
183
|
export * from './GetResource';
|
|
184
184
|
export * from './GetResourceList';
|
|
185
|
+
export * from './GetResourceSession';
|
|
186
|
+
export * from './GetResourceSessionList';
|
|
185
187
|
export * from './GetResourceUsage';
|
|
186
188
|
export * from './GetResourceUsageCoursesInner';
|
|
187
189
|
export * from './GetResourceVersionUpload';
|
|
@@ -299,6 +301,7 @@ export * from './PostResetPassword';
|
|
|
299
301
|
export * from './PostResource';
|
|
300
302
|
export * from './PostResourceVersion';
|
|
301
303
|
export * from './PostResourceVersionComplete';
|
|
304
|
+
export * from './PostResourceVersionSession';
|
|
302
305
|
export * from './PostResourceVersionUpload';
|
|
303
306
|
export * from './PostRevokeCertificate';
|
|
304
307
|
export * from './PostRichTextAssetComplete';
|
|
@@ -350,6 +353,7 @@ export * from './PutUser';
|
|
|
350
353
|
export * from './QuizContent';
|
|
351
354
|
export * from './QuizContentAssignment';
|
|
352
355
|
export * from './QuizContentSettings';
|
|
356
|
+
export * from './ResourceSessionEnvironment';
|
|
353
357
|
export * from './ResourceType';
|
|
354
358
|
export * from './RichTextAsset';
|
|
355
359
|
export * from './RichTextDocument';
|