@easyedu/js-lsm-api 1.118.0 → 1.120.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 +42 -0
- package/README.md +34 -2
- package/dist/apis/CourseApi.d.ts +55 -0
- package/dist/apis/CourseApi.js +148 -0
- package/dist/apis/DispatchApi.d.ts +121 -5
- package/dist/apis/DispatchApi.js +303 -8
- package/dist/apis/PlayerApi.d.ts +26 -6
- package/dist/apis/PlayerApi.js +57 -6
- package/dist/esm/apis/CourseApi.d.ts +55 -0
- package/dist/esm/apis/CourseApi.js +148 -0
- package/dist/esm/apis/DispatchApi.d.ts +121 -5
- package/dist/esm/apis/DispatchApi.js +303 -8
- package/dist/esm/apis/PlayerApi.d.ts +26 -6
- package/dist/esm/apis/PlayerApi.js +57 -6
- package/dist/esm/models/DispatchTokenResponse.d.ts +57 -0
- package/dist/esm/models/DispatchTokenResponse.js +61 -0
- package/dist/esm/models/GetCourseExport.d.ts +62 -0
- package/dist/esm/models/GetCourseExport.js +44 -0
- package/dist/esm/models/GetDispatchCourse.d.ts +82 -0
- package/dist/esm/models/GetDispatchCourse.js +77 -0
- package/dist/esm/models/GetDispatchRollup.d.ts +104 -0
- package/dist/esm/models/GetDispatchRollup.js +95 -0
- package/dist/esm/models/GetHostedScormRegistration.d.ts +80 -0
- package/dist/esm/models/GetHostedScormRegistration.js +71 -0
- package/dist/esm/models/GetHostedScormRegistrationList.d.ts +57 -0
- package/dist/esm/models/GetHostedScormRegistrationList.js +60 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +8 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.js +2 -0
- package/dist/esm/models/HostedScormAccessPolicy.d.ts +50 -0
- package/dist/esm/models/HostedScormAccessPolicy.js +55 -0
- package/dist/esm/models/HostedScormOutlineEntry.d.ts +108 -0
- package/dist/esm/models/HostedScormOutlineEntry.js +97 -0
- package/dist/esm/models/HostedScormRollupPolicy.d.ts +69 -0
- package/dist/esm/models/HostedScormRollupPolicy.js +72 -0
- package/dist/esm/models/HostedScormScoreItem.d.ts +38 -0
- package/dist/esm/models/HostedScormScoreItem.js +47 -0
- package/dist/esm/models/PostCourseExport.d.ts +28 -0
- package/dist/esm/models/PostCourseExport.js +15 -0
- package/dist/esm/models/PostDispatchItemLaunch.d.ts +32 -0
- package/dist/esm/models/PostDispatchItemLaunch.js +41 -0
- package/dist/esm/models/PostDispatchItemLaunchResponse.d.ts +64 -0
- package/dist/esm/models/PostDispatchItemLaunchResponse.js +66 -0
- package/dist/esm/models/PostDispatchLaunch.d.ts +50 -0
- package/dist/esm/models/PostDispatchLaunch.js +53 -0
- package/dist/esm/models/PostDispatchLaunchResponse.d.ts +70 -0
- package/dist/esm/models/PostDispatchLaunchResponse.js +70 -0
- package/dist/esm/models/PostDispatchTokenExchange.d.ts +32 -0
- package/dist/esm/models/PostDispatchTokenExchange.js +43 -0
- package/dist/esm/models/PutHostedScormStatus.d.ts +32 -0
- package/dist/esm/models/PutHostedScormStatus.js +43 -0
- package/dist/esm/models/ScormGetValueResponse.d.ts +12 -0
- package/dist/esm/models/ScormGetValueResponse.js +8 -0
- package/dist/esm/models/ScormNavigationDelivery.d.ts +64 -0
- package/dist/esm/models/ScormNavigationDelivery.js +66 -0
- package/dist/esm/models/ScormNavigationRequest.d.ts +55 -0
- package/dist/esm/models/ScormNavigationRequest.js +61 -0
- package/dist/esm/models/ScormNavigationResponse.d.ts +70 -0
- package/dist/esm/models/ScormNavigationResponse.js +67 -0
- package/dist/esm/models/ScormNavigationValidity.d.ts +92 -0
- package/dist/esm/models/ScormNavigationValidity.js +83 -0
- package/dist/esm/models/ScormRuntimeResponse.d.ts +44 -0
- package/dist/esm/models/ScormRuntimeResponse.js +51 -0
- package/dist/esm/models/ScormSetValueResponse.d.ts +12 -0
- package/dist/esm/models/ScormSetValueResponse.js +8 -0
- package/dist/esm/models/ScormTerminateResponse.d.ts +63 -0
- package/dist/esm/models/ScormTerminateResponse.js +62 -0
- package/dist/esm/models/index.d.ts +21 -0
- package/dist/esm/models/index.js +21 -0
- package/dist/models/DispatchTokenResponse.d.ts +57 -0
- package/dist/models/DispatchTokenResponse.js +69 -0
- package/dist/models/GetCourseExport.d.ts +62 -0
- package/dist/models/GetCourseExport.js +45 -1
- package/dist/models/GetDispatchCourse.d.ts +82 -0
- package/dist/models/GetDispatchCourse.js +84 -0
- package/dist/models/GetDispatchRollup.d.ts +104 -0
- package/dist/models/GetDispatchRollup.js +103 -0
- package/dist/models/GetHostedScormRegistration.d.ts +80 -0
- package/dist/models/GetHostedScormRegistration.js +78 -0
- package/dist/models/GetHostedScormRegistrationList.d.ts +57 -0
- package/dist/models/GetHostedScormRegistrationList.js +67 -0
- package/dist/models/GetResourceSessionDiagnostics.d.ts +8 -0
- package/dist/models/GetResourceSessionDiagnostics.js +2 -0
- package/dist/models/HostedScormAccessPolicy.d.ts +50 -0
- package/dist/models/HostedScormAccessPolicy.js +62 -0
- package/dist/models/HostedScormOutlineEntry.d.ts +108 -0
- package/dist/models/HostedScormOutlineEntry.js +105 -0
- package/dist/models/HostedScormRollupPolicy.d.ts +69 -0
- package/dist/models/HostedScormRollupPolicy.js +80 -0
- package/dist/models/HostedScormScoreItem.d.ts +38 -0
- package/dist/models/HostedScormScoreItem.js +54 -0
- package/dist/models/PostCourseExport.d.ts +28 -0
- package/dist/models/PostCourseExport.js +16 -1
- package/dist/models/PostDispatchItemLaunch.d.ts +32 -0
- package/dist/models/PostDispatchItemLaunch.js +48 -0
- package/dist/models/PostDispatchItemLaunchResponse.d.ts +64 -0
- package/dist/models/PostDispatchItemLaunchResponse.js +74 -0
- package/dist/models/PostDispatchLaunch.d.ts +50 -0
- package/dist/models/PostDispatchLaunch.js +60 -0
- package/dist/models/PostDispatchLaunchResponse.d.ts +70 -0
- package/dist/models/PostDispatchLaunchResponse.js +78 -0
- package/dist/models/PostDispatchTokenExchange.d.ts +32 -0
- package/dist/models/PostDispatchTokenExchange.js +50 -0
- package/dist/models/PutHostedScormStatus.d.ts +32 -0
- package/dist/models/PutHostedScormStatus.js +50 -0
- package/dist/models/ScormGetValueResponse.d.ts +12 -0
- package/dist/models/ScormGetValueResponse.js +8 -0
- package/dist/models/ScormNavigationDelivery.d.ts +64 -0
- package/dist/models/ScormNavigationDelivery.js +74 -0
- package/dist/models/ScormNavigationRequest.d.ts +55 -0
- package/dist/models/ScormNavigationRequest.js +69 -0
- package/dist/models/ScormNavigationResponse.d.ts +70 -0
- package/dist/models/ScormNavigationResponse.js +74 -0
- package/dist/models/ScormNavigationValidity.d.ts +92 -0
- package/dist/models/ScormNavigationValidity.js +90 -0
- package/dist/models/ScormRuntimeResponse.d.ts +44 -0
- package/dist/models/ScormRuntimeResponse.js +58 -0
- package/dist/models/ScormSetValueResponse.d.ts +12 -0
- package/dist/models/ScormSetValueResponse.js +8 -0
- package/dist/models/ScormTerminateResponse.d.ts +63 -0
- package/dist/models/ScormTerminateResponse.js +69 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +21 -0
- package/docs/CourseApi.md +225 -0
- package/docs/DispatchApi.md +480 -9
- package/docs/DispatchTokenResponse.md +40 -0
- package/docs/GetCourseExport.md +14 -0
- package/docs/GetDispatchCourse.md +50 -0
- package/docs/GetDispatchRollup.md +52 -0
- package/docs/GetHostedScormRegistration.md +50 -0
- package/docs/GetHostedScormRegistrationList.md +42 -0
- package/docs/GetResourceSessionDiagnostics.md +2 -0
- package/docs/HostedScormAccessPolicy.md +41 -0
- package/docs/HostedScormOutlineEntry.md +54 -0
- package/docs/HostedScormRollupPolicy.md +41 -0
- package/docs/HostedScormScoreItem.md +36 -0
- package/docs/PlayerApi.md +80 -9
- package/docs/PostCourseExport.md +6 -0
- package/docs/PostDispatchItemLaunch.md +34 -0
- package/docs/PostDispatchItemLaunchResponse.md +42 -0
- package/docs/PostDispatchLaunch.md +40 -0
- package/docs/PostDispatchLaunchResponse.md +44 -0
- package/docs/PostDispatchTokenExchange.md +34 -0
- package/docs/PutHostedScormStatus.md +34 -0
- package/docs/ScormGetValueResponse.md +4 -0
- package/docs/ScormNavigationDelivery.md +43 -0
- package/docs/ScormNavigationRequest.md +37 -0
- package/docs/ScormNavigationResponse.md +47 -0
- package/docs/ScormNavigationValidity.md +55 -0
- package/docs/ScormRuntimeResponse.md +39 -0
- package/docs/ScormSetValueResponse.md +4 -0
- package/docs/ScormTerminateResponse.md +44 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +221 -0
- package/src/apis/DispatchApi.ts +426 -10
- package/src/apis/PlayerApi.ts +95 -12
- package/src/models/DispatchTokenResponse.ts +103 -0
- package/src/models/GetCourseExport.ts +97 -0
- package/src/models/GetDispatchCourse.ts +153 -0
- package/src/models/GetDispatchRollup.ts +169 -0
- package/src/models/GetHostedScormRegistration.ts +136 -0
- package/src/models/GetHostedScormRegistrationList.ts +110 -0
- package/src/models/GetResourceSessionDiagnostics.ts +8 -0
- package/src/models/HostedScormAccessPolicy.ts +93 -0
- package/src/models/HostedScormOutlineEntry.ts +176 -0
- package/src/models/HostedScormRollupPolicy.ts +123 -0
- package/src/models/HostedScormScoreItem.ts +75 -0
- package/src/models/PostCourseExport.ts +48 -0
- package/src/models/PostDispatchItemLaunch.ts +65 -0
- package/src/models/PostDispatchItemLaunchResponse.ts +113 -0
- package/src/models/PostDispatchLaunch.ts +92 -0
- package/src/models/PostDispatchLaunchResponse.ts +122 -0
- package/src/models/PostDispatchTokenExchange.ts +66 -0
- package/src/models/PutHostedScormStatus.ts +66 -0
- package/src/models/ScormGetValueResponse.ts +18 -0
- package/src/models/ScormNavigationDelivery.ts +113 -0
- package/src/models/ScormNavigationRequest.ts +94 -0
- package/src/models/ScormNavigationResponse.ts +134 -0
- package/src/models/ScormNavigationValidity.ts +156 -0
- package/src/models/ScormRuntimeResponse.ts +84 -0
- package/src/models/ScormSetValueResponse.ts +18 -0
- package/src/models/ScormTerminateResponse.ts +118 -0
- package/src/models/index.ts +21 -0
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { HostedScormRollupPolicy } from './HostedScormRollupPolicy';
|
|
13
|
+
import type { HostedScormAccessPolicy } from './HostedScormAccessPolicy';
|
|
12
14
|
/**
|
|
13
15
|
* Details of a course export
|
|
14
16
|
* @export
|
|
@@ -87,6 +89,48 @@ export interface GetCourseExport {
|
|
|
87
89
|
* @memberof GetCourseExport
|
|
88
90
|
*/
|
|
89
91
|
createdAt: number;
|
|
92
|
+
/**
|
|
93
|
+
* Runtime package shape used by this export.
|
|
94
|
+
* @type {GetCourseExportDeliveryModeEnum}
|
|
95
|
+
* @memberof GetCourseExport
|
|
96
|
+
*/
|
|
97
|
+
deliveryMode: GetCourseExportDeliveryModeEnum;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {HostedScormRollupPolicy}
|
|
101
|
+
* @memberof GetCourseExport
|
|
102
|
+
*/
|
|
103
|
+
rollupPolicy: HostedScormRollupPolicy;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {HostedScormAccessPolicy}
|
|
107
|
+
* @memberof GetCourseExport
|
|
108
|
+
*/
|
|
109
|
+
accessPolicy: HostedScormAccessPolicy;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {GetCourseExportRuntimeStatusEnum}
|
|
113
|
+
* @memberof GetCourseExport
|
|
114
|
+
*/
|
|
115
|
+
runtimeStatus: GetCourseExportRuntimeStatusEnum;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {number}
|
|
119
|
+
* @memberof GetCourseExport
|
|
120
|
+
*/
|
|
121
|
+
registeredLearners: number;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {number}
|
|
125
|
+
* @memberof GetCourseExport
|
|
126
|
+
*/
|
|
127
|
+
totalLaunches: number;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {number}
|
|
131
|
+
* @memberof GetCourseExport
|
|
132
|
+
*/
|
|
133
|
+
lastLaunchAt?: number | null;
|
|
90
134
|
}
|
|
91
135
|
/**
|
|
92
136
|
* @export
|
|
@@ -107,6 +151,24 @@ export declare const GetCourseExportStatusEnum: {
|
|
|
107
151
|
readonly Failed: "FAILED";
|
|
108
152
|
};
|
|
109
153
|
export type GetCourseExportStatusEnum = typeof GetCourseExportStatusEnum[keyof typeof GetCourseExportStatusEnum];
|
|
154
|
+
/**
|
|
155
|
+
* @export
|
|
156
|
+
*/
|
|
157
|
+
export declare const GetCourseExportDeliveryModeEnum: {
|
|
158
|
+
readonly LegacyMultiSco: "LEGACY_MULTI_SCO";
|
|
159
|
+
readonly HostedCourseV1: "HOSTED_COURSE_V1";
|
|
160
|
+
};
|
|
161
|
+
export type GetCourseExportDeliveryModeEnum = typeof GetCourseExportDeliveryModeEnum[keyof typeof GetCourseExportDeliveryModeEnum];
|
|
162
|
+
/**
|
|
163
|
+
* @export
|
|
164
|
+
*/
|
|
165
|
+
export declare const GetCourseExportRuntimeStatusEnum: {
|
|
166
|
+
readonly LegacyActive: "LEGACY_ACTIVE";
|
|
167
|
+
readonly BackendReady: "BACKEND_READY";
|
|
168
|
+
readonly PlayerUnavailable: "PLAYER_UNAVAILABLE";
|
|
169
|
+
readonly Revoked: "REVOKED";
|
|
170
|
+
};
|
|
171
|
+
export type GetCourseExportRuntimeStatusEnum = typeof GetCourseExportRuntimeStatusEnum[keyof typeof GetCourseExportRuntimeStatusEnum];
|
|
110
172
|
/**
|
|
111
173
|
* Check if a given object implements the GetCourseExport interface.
|
|
112
174
|
*/
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { HostedScormRollupPolicyFromJSON, HostedScormRollupPolicyToJSON, } from './HostedScormRollupPolicy';
|
|
15
|
+
import { HostedScormAccessPolicyFromJSON, HostedScormAccessPolicyToJSON, } from './HostedScormAccessPolicy';
|
|
14
16
|
/**
|
|
15
17
|
* @export
|
|
16
18
|
*/
|
|
@@ -28,6 +30,22 @@ export const GetCourseExportStatusEnum = {
|
|
|
28
30
|
Completed: 'COMPLETED',
|
|
29
31
|
Failed: 'FAILED'
|
|
30
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export const GetCourseExportDeliveryModeEnum = {
|
|
37
|
+
LegacyMultiSco: 'LEGACY_MULTI_SCO',
|
|
38
|
+
HostedCourseV1: 'HOSTED_COURSE_V1'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export const GetCourseExportRuntimeStatusEnum = {
|
|
44
|
+
LegacyActive: 'LEGACY_ACTIVE',
|
|
45
|
+
BackendReady: 'BACKEND_READY',
|
|
46
|
+
PlayerUnavailable: 'PLAYER_UNAVAILABLE',
|
|
47
|
+
Revoked: 'REVOKED'
|
|
48
|
+
};
|
|
31
49
|
/**
|
|
32
50
|
* Check if a given object implements the GetCourseExport interface.
|
|
33
51
|
*/
|
|
@@ -48,6 +66,18 @@ export function instanceOfGetCourseExport(value) {
|
|
|
48
66
|
return false;
|
|
49
67
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
50
68
|
return false;
|
|
69
|
+
if (!('deliveryMode' in value) || value['deliveryMode'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('rollupPolicy' in value) || value['rollupPolicy'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('accessPolicy' in value) || value['accessPolicy'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('runtimeStatus' in value) || value['runtimeStatus'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('registeredLearners' in value) || value['registeredLearners'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
if (!('totalLaunches' in value) || value['totalLaunches'] === undefined)
|
|
80
|
+
return false;
|
|
51
81
|
return true;
|
|
52
82
|
}
|
|
53
83
|
export function GetCourseExportFromJSON(json) {
|
|
@@ -70,6 +100,13 @@ export function GetCourseExportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
100
|
'fileSize': json['file_size'] == null ? undefined : json['file_size'],
|
|
71
101
|
'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
|
|
72
102
|
'createdAt': json['created_at'],
|
|
103
|
+
'deliveryMode': json['delivery_mode'],
|
|
104
|
+
'rollupPolicy': HostedScormRollupPolicyFromJSON(json['rollup_policy']),
|
|
105
|
+
'accessPolicy': HostedScormAccessPolicyFromJSON(json['access_policy']),
|
|
106
|
+
'runtimeStatus': json['runtime_status'],
|
|
107
|
+
'registeredLearners': json['registered_learners'],
|
|
108
|
+
'totalLaunches': json['total_launches'],
|
|
109
|
+
'lastLaunchAt': json['last_launch_at'] == null ? undefined : json['last_launch_at'],
|
|
73
110
|
};
|
|
74
111
|
}
|
|
75
112
|
export function GetCourseExportToJSON(json) {
|
|
@@ -92,5 +129,12 @@ export function GetCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
92
129
|
'file_size': value['fileSize'],
|
|
93
130
|
'error_message': value['errorMessage'],
|
|
94
131
|
'created_at': value['createdAt'],
|
|
132
|
+
'delivery_mode': value['deliveryMode'],
|
|
133
|
+
'rollup_policy': HostedScormRollupPolicyToJSON(value['rollupPolicy']),
|
|
134
|
+
'access_policy': HostedScormAccessPolicyToJSON(value['accessPolicy']),
|
|
135
|
+
'runtime_status': value['runtimeStatus'],
|
|
136
|
+
'registered_learners': value['registeredLearners'],
|
|
137
|
+
'total_launches': value['totalLaunches'],
|
|
138
|
+
'last_launch_at': value['lastLaunchAt'],
|
|
95
139
|
};
|
|
96
140
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { HostedScormOutlineEntry } from './HostedScormOutlineEntry';
|
|
13
|
+
import type { GetDispatchRollup } from './GetDispatchRollup';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetDispatchCourse
|
|
18
|
+
*/
|
|
19
|
+
export interface GetDispatchCourse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetDispatchCourse
|
|
24
|
+
*/
|
|
25
|
+
dispatchId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GetDispatchCourse
|
|
30
|
+
*/
|
|
31
|
+
registrationId: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GetDispatchCourse
|
|
36
|
+
*/
|
|
37
|
+
courseId: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof GetDispatchCourse
|
|
42
|
+
*/
|
|
43
|
+
courseVersionId: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof GetDispatchCourse
|
|
48
|
+
*/
|
|
49
|
+
title: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof GetDispatchCourse
|
|
54
|
+
*/
|
|
55
|
+
progressionMode: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof GetDispatchCourse
|
|
60
|
+
*/
|
|
61
|
+
currentItemId: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<HostedScormOutlineEntry>}
|
|
65
|
+
* @memberof GetDispatchCourse
|
|
66
|
+
*/
|
|
67
|
+
outline: Array<HostedScormOutlineEntry>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {GetDispatchRollup}
|
|
71
|
+
* @memberof GetDispatchCourse
|
|
72
|
+
*/
|
|
73
|
+
rollup: GetDispatchRollup;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the GetDispatchCourse interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfGetDispatchCourse(value: object): value is GetDispatchCourse;
|
|
79
|
+
export declare function GetDispatchCourseFromJSON(json: any): GetDispatchCourse;
|
|
80
|
+
export declare function GetDispatchCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDispatchCourse;
|
|
81
|
+
export declare function GetDispatchCourseToJSON(json: any): GetDispatchCourse;
|
|
82
|
+
export declare function GetDispatchCourseToJSONTyped(value?: GetDispatchCourse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { HostedScormOutlineEntryFromJSON, HostedScormOutlineEntryToJSON, } from './HostedScormOutlineEntry';
|
|
15
|
+
import { GetDispatchRollupFromJSON, GetDispatchRollupToJSON, } from './GetDispatchRollup';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the GetDispatchCourse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfGetDispatchCourse(value) {
|
|
20
|
+
if (!('dispatchId' in value) || value['dispatchId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('registrationId' in value) || value['registrationId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('progressionMode' in value) || value['progressionMode'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('currentItemId' in value) || value['currentItemId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('outline' in value) || value['outline'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('rollup' in value) || value['rollup'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
export function GetDispatchCourseFromJSON(json) {
|
|
41
|
+
return GetDispatchCourseFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function GetDispatchCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'dispatchId': json['dispatch_id'],
|
|
49
|
+
'registrationId': json['registration_id'],
|
|
50
|
+
'courseId': json['course_id'],
|
|
51
|
+
'courseVersionId': json['course_version_id'],
|
|
52
|
+
'title': json['title'],
|
|
53
|
+
'progressionMode': json['progression_mode'],
|
|
54
|
+
'currentItemId': json['current_item_id'],
|
|
55
|
+
'outline': (json['outline'].map(HostedScormOutlineEntryFromJSON)),
|
|
56
|
+
'rollup': GetDispatchRollupFromJSON(json['rollup']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export function GetDispatchCourseToJSON(json) {
|
|
60
|
+
return GetDispatchCourseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
export function GetDispatchCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'dispatch_id': value['dispatchId'],
|
|
68
|
+
'registration_id': value['registrationId'],
|
|
69
|
+
'course_id': value['courseId'],
|
|
70
|
+
'course_version_id': value['courseVersionId'],
|
|
71
|
+
'title': value['title'],
|
|
72
|
+
'progression_mode': value['progressionMode'],
|
|
73
|
+
'current_item_id': value['currentItemId'],
|
|
74
|
+
'outline': (value['outline'].map(HostedScormOutlineEntryToJSON)),
|
|
75
|
+
'rollup': GetDispatchRollupToJSON(value['rollup']),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetDispatchRollup
|
|
16
|
+
*/
|
|
17
|
+
export interface GetDispatchRollup {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {GetDispatchRollupCompletionStatusEnum}
|
|
21
|
+
* @memberof GetDispatchRollup
|
|
22
|
+
*/
|
|
23
|
+
completionStatus: GetDispatchRollupCompletionStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {GetDispatchRollupSuccessStatusEnum}
|
|
27
|
+
* @memberof GetDispatchRollup
|
|
28
|
+
*/
|
|
29
|
+
successStatus: GetDispatchRollupSuccessStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetDispatchRollup
|
|
34
|
+
*/
|
|
35
|
+
scoreRaw: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetDispatchRollup
|
|
40
|
+
*/
|
|
41
|
+
scoreScaled: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetDispatchRollup
|
|
46
|
+
*/
|
|
47
|
+
progressMeasure: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetDispatchRollup
|
|
52
|
+
*/
|
|
53
|
+
totalItems: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GetDispatchRollup
|
|
58
|
+
*/
|
|
59
|
+
completedItems: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GetDispatchRollup
|
|
64
|
+
*/
|
|
65
|
+
requiredItems: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof GetDispatchRollup
|
|
70
|
+
*/
|
|
71
|
+
completedRequiredItems: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof GetDispatchRollup
|
|
76
|
+
*/
|
|
77
|
+
pendingManualGrading: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const GetDispatchRollupCompletionStatusEnum: {
|
|
83
|
+
readonly NotAttempted: "not_attempted";
|
|
84
|
+
readonly Incomplete: "incomplete";
|
|
85
|
+
readonly Completed: "completed";
|
|
86
|
+
};
|
|
87
|
+
export type GetDispatchRollupCompletionStatusEnum = typeof GetDispatchRollupCompletionStatusEnum[keyof typeof GetDispatchRollupCompletionStatusEnum];
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const GetDispatchRollupSuccessStatusEnum: {
|
|
92
|
+
readonly Unknown: "unknown";
|
|
93
|
+
readonly Passed: "passed";
|
|
94
|
+
readonly Failed: "failed";
|
|
95
|
+
};
|
|
96
|
+
export type GetDispatchRollupSuccessStatusEnum = typeof GetDispatchRollupSuccessStatusEnum[keyof typeof GetDispatchRollupSuccessStatusEnum];
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the GetDispatchRollup interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfGetDispatchRollup(value: object): value is GetDispatchRollup;
|
|
101
|
+
export declare function GetDispatchRollupFromJSON(json: any): GetDispatchRollup;
|
|
102
|
+
export declare function GetDispatchRollupFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDispatchRollup;
|
|
103
|
+
export declare function GetDispatchRollupToJSON(json: any): GetDispatchRollup;
|
|
104
|
+
export declare function GetDispatchRollupToJSONTyped(value?: GetDispatchRollup | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const GetDispatchRollupCompletionStatusEnum = {
|
|
18
|
+
NotAttempted: 'not_attempted',
|
|
19
|
+
Incomplete: 'incomplete',
|
|
20
|
+
Completed: 'completed'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const GetDispatchRollupSuccessStatusEnum = {
|
|
26
|
+
Unknown: 'unknown',
|
|
27
|
+
Passed: 'passed',
|
|
28
|
+
Failed: 'failed'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetDispatchRollup interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfGetDispatchRollup(value) {
|
|
34
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('successStatus' in value) || value['successStatus'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('scoreRaw' in value) || value['scoreRaw'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('scoreScaled' in value) || value['scoreScaled'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('progressMeasure' in value) || value['progressMeasure'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('completedItems' in value) || value['completedItems'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('requiredItems' in value) || value['requiredItems'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('completedRequiredItems' in value) || value['completedRequiredItems'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('pendingManualGrading' in value) || value['pendingManualGrading'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
export function GetDispatchRollupFromJSON(json) {
|
|
57
|
+
return GetDispatchRollupFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function GetDispatchRollupFromJSONTyped(json, ignoreDiscriminator) {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'completionStatus': json['completion_status'],
|
|
65
|
+
'successStatus': json['success_status'],
|
|
66
|
+
'scoreRaw': json['score_raw'],
|
|
67
|
+
'scoreScaled': json['score_scaled'],
|
|
68
|
+
'progressMeasure': json['progress_measure'],
|
|
69
|
+
'totalItems': json['total_items'],
|
|
70
|
+
'completedItems': json['completed_items'],
|
|
71
|
+
'requiredItems': json['required_items'],
|
|
72
|
+
'completedRequiredItems': json['completed_required_items'],
|
|
73
|
+
'pendingManualGrading': json['pending_manual_grading'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export function GetDispatchRollupToJSON(json) {
|
|
77
|
+
return GetDispatchRollupToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
export function GetDispatchRollupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'completion_status': value['completionStatus'],
|
|
85
|
+
'success_status': value['successStatus'],
|
|
86
|
+
'score_raw': value['scoreRaw'],
|
|
87
|
+
'score_scaled': value['scoreScaled'],
|
|
88
|
+
'progress_measure': value['progressMeasure'],
|
|
89
|
+
'total_items': value['totalItems'],
|
|
90
|
+
'completed_items': value['completedItems'],
|
|
91
|
+
'required_items': value['requiredItems'],
|
|
92
|
+
'completed_required_items': value['completedRequiredItems'],
|
|
93
|
+
'pending_manual_grading': value['pendingManualGrading'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetHostedScormRegistration
|
|
16
|
+
*/
|
|
17
|
+
export interface GetHostedScormRegistration {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetHostedScormRegistration
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetHostedScormRegistration
|
|
28
|
+
*/
|
|
29
|
+
learnerId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetHostedScormRegistration
|
|
34
|
+
*/
|
|
35
|
+
learnerName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof GetHostedScormRegistration
|
|
40
|
+
*/
|
|
41
|
+
active: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetHostedScormRegistration
|
|
46
|
+
*/
|
|
47
|
+
launchCount: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetHostedScormRegistration
|
|
52
|
+
*/
|
|
53
|
+
firstLaunchAt: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GetHostedScormRegistration
|
|
58
|
+
*/
|
|
59
|
+
lastLaunchAt: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof GetHostedScormRegistration
|
|
64
|
+
*/
|
|
65
|
+
lastOrigin?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof GetHostedScormRegistration
|
|
70
|
+
*/
|
|
71
|
+
lastItemId?: string | null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the GetHostedScormRegistration interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfGetHostedScormRegistration(value: object): value is GetHostedScormRegistration;
|
|
77
|
+
export declare function GetHostedScormRegistrationFromJSON(json: any): GetHostedScormRegistration;
|
|
78
|
+
export declare function GetHostedScormRegistrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHostedScormRegistration;
|
|
79
|
+
export declare function GetHostedScormRegistrationToJSON(json: any): GetHostedScormRegistration;
|
|
80
|
+
export declare function GetHostedScormRegistrationToJSONTyped(value?: GetHostedScormRegistration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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 GetHostedScormRegistration interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetHostedScormRegistration(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('learnerId' in value) || value['learnerId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('learnerName' in value) || value['learnerName'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('launchCount' in value) || value['launchCount'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('firstLaunchAt' in value) || value['firstLaunchAt'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('lastLaunchAt' in value) || value['lastLaunchAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function GetHostedScormRegistrationFromJSON(json) {
|
|
35
|
+
return GetHostedScormRegistrationFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function GetHostedScormRegistrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'learnerId': json['learner_id'],
|
|
44
|
+
'learnerName': json['learner_name'],
|
|
45
|
+
'active': json['active'],
|
|
46
|
+
'launchCount': json['launch_count'],
|
|
47
|
+
'firstLaunchAt': json['first_launch_at'],
|
|
48
|
+
'lastLaunchAt': json['last_launch_at'],
|
|
49
|
+
'lastOrigin': json['last_origin'] == null ? undefined : json['last_origin'],
|
|
50
|
+
'lastItemId': json['last_item_id'] == null ? undefined : json['last_item_id'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function GetHostedScormRegistrationToJSON(json) {
|
|
54
|
+
return GetHostedScormRegistrationToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
export function GetHostedScormRegistrationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'learner_id': value['learnerId'],
|
|
63
|
+
'learner_name': value['learnerName'],
|
|
64
|
+
'active': value['active'],
|
|
65
|
+
'launch_count': value['launchCount'],
|
|
66
|
+
'first_launch_at': value['firstLaunchAt'],
|
|
67
|
+
'last_launch_at': value['lastLaunchAt'],
|
|
68
|
+
'last_origin': value['lastOrigin'],
|
|
69
|
+
'last_item_id': value['lastItemId'],
|
|
70
|
+
};
|
|
71
|
+
}
|