@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
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* Typed result of a SCORM runtime API operation
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ScormRuntimeResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface ScormRuntimeResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ScormRuntimeResponse
|
|
22
|
+
*/
|
|
23
|
+
success: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Exact SCORM runtime error code for this API call
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ScormRuntimeResponse
|
|
28
|
+
*/
|
|
29
|
+
errorCode: string;
|
|
30
|
+
/**
|
|
31
|
+
* Diagnostic detail for the error code, empty on success
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ScormRuntimeResponse
|
|
34
|
+
*/
|
|
35
|
+
diagnostic: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ScormRuntimeResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfScormRuntimeResponse(value: object): value is ScormRuntimeResponse;
|
|
41
|
+
export declare function ScormRuntimeResponseFromJSON(json: any): ScormRuntimeResponse;
|
|
42
|
+
export declare function ScormRuntimeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormRuntimeResponse;
|
|
43
|
+
export declare function ScormRuntimeResponseToJSON(json: any): ScormRuntimeResponse;
|
|
44
|
+
export declare function ScormRuntimeResponseToJSONTyped(value?: ScormRuntimeResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 ScormRuntimeResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfScormRuntimeResponse(value) {
|
|
18
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('diagnostic' in value) || value['diagnostic'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function ScormRuntimeResponseFromJSON(json) {
|
|
27
|
+
return ScormRuntimeResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function ScormRuntimeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'success': json['success'],
|
|
35
|
+
'errorCode': json['error_code'],
|
|
36
|
+
'diagnostic': json['diagnostic'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function ScormRuntimeResponseToJSON(json) {
|
|
40
|
+
return ScormRuntimeResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ScormRuntimeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'success': value['success'],
|
|
48
|
+
'error_code': value['errorCode'],
|
|
49
|
+
'diagnostic': value['diagnostic'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -21,6 +21,18 @@ export interface ScormSetValueResponse {
|
|
|
21
21
|
* @memberof ScormSetValueResponse
|
|
22
22
|
*/
|
|
23
23
|
success: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Exact SCORM runtime error code for this API call
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ScormSetValueResponse
|
|
28
|
+
*/
|
|
29
|
+
errorCode: string;
|
|
30
|
+
/**
|
|
31
|
+
* Diagnostic detail for the error code, empty on success
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ScormSetValueResponse
|
|
34
|
+
*/
|
|
35
|
+
diagnostic: string;
|
|
24
36
|
}
|
|
25
37
|
/**
|
|
26
38
|
* Check if a given object implements the ScormSetValueResponse interface.
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
export function instanceOfScormSetValueResponse(value) {
|
|
18
18
|
if (!('success' in value) || value['success'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('diagnostic' in value) || value['diagnostic'] === undefined)
|
|
23
|
+
return false;
|
|
20
24
|
return true;
|
|
21
25
|
}
|
|
22
26
|
export function ScormSetValueResponseFromJSON(json) {
|
|
@@ -28,6 +32,8 @@ export function ScormSetValueResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
32
|
}
|
|
29
33
|
return {
|
|
30
34
|
'success': json['success'],
|
|
35
|
+
'errorCode': json['error_code'],
|
|
36
|
+
'diagnostic': json['diagnostic'],
|
|
31
37
|
};
|
|
32
38
|
}
|
|
33
39
|
export function ScormSetValueResponseToJSON(json) {
|
|
@@ -39,5 +45,7 @@ export function ScormSetValueResponseToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
39
45
|
}
|
|
40
46
|
return {
|
|
41
47
|
'success': value['success'],
|
|
48
|
+
'error_code': value['errorCode'],
|
|
49
|
+
'diagnostic': value['diagnostic'],
|
|
42
50
|
};
|
|
43
51
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { ScormNavigationDelivery } from './ScormNavigationDelivery';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScormTerminateResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ScormTerminateResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ScormTerminateResponse
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Exact SCORM runtime error code for this API call
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ScormTerminateResponse
|
|
29
|
+
*/
|
|
30
|
+
errorCode: string;
|
|
31
|
+
/**
|
|
32
|
+
* Diagnostic detail for the error code, empty on success
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ScormTerminateResponse
|
|
35
|
+
*/
|
|
36
|
+
diagnostic: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ScormNavigationDelivery}
|
|
40
|
+
* @memberof ScormTerminateResponse
|
|
41
|
+
*/
|
|
42
|
+
delivery?: ScormNavigationDelivery;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof ScormTerminateResponse
|
|
47
|
+
*/
|
|
48
|
+
sequencingEnded: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof ScormTerminateResponse
|
|
53
|
+
*/
|
|
54
|
+
suspended: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ScormTerminateResponse interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfScormTerminateResponse(value: object): value is ScormTerminateResponse;
|
|
60
|
+
export declare function ScormTerminateResponseFromJSON(json: any): ScormTerminateResponse;
|
|
61
|
+
export declare function ScormTerminateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormTerminateResponse;
|
|
62
|
+
export declare function ScormTerminateResponseToJSON(json: any): ScormTerminateResponse;
|
|
63
|
+
export declare function ScormTerminateResponseToJSONTyped(value?: ScormTerminateResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { ScormNavigationDeliveryFromJSON, ScormNavigationDeliveryToJSON, } from './ScormNavigationDelivery';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ScormTerminateResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfScormTerminateResponse(value) {
|
|
19
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('diagnostic' in value) || value['diagnostic'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('sequencingEnded' in value) || value['sequencingEnded'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('suspended' in value) || value['suspended'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function ScormTerminateResponseFromJSON(json) {
|
|
32
|
+
return ScormTerminateResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ScormTerminateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'success': json['success'],
|
|
40
|
+
'errorCode': json['error_code'],
|
|
41
|
+
'diagnostic': json['diagnostic'],
|
|
42
|
+
'delivery': json['delivery'] == null ? undefined : ScormNavigationDeliveryFromJSON(json['delivery']),
|
|
43
|
+
'sequencingEnded': json['sequencing_ended'],
|
|
44
|
+
'suspended': json['suspended'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function ScormTerminateResponseToJSON(json) {
|
|
48
|
+
return ScormTerminateResponseToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function ScormTerminateResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'success': value['success'],
|
|
56
|
+
'error_code': value['errorCode'],
|
|
57
|
+
'diagnostic': value['diagnostic'],
|
|
58
|
+
'delivery': ScormNavigationDeliveryToJSON(value['delivery']),
|
|
59
|
+
'sequencing_ended': value['sequencingEnded'],
|
|
60
|
+
'suspended': value['suspended'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -41,6 +41,7 @@ export * from './CourseProgressionMode';
|
|
|
41
41
|
export * from './CourseShare';
|
|
42
42
|
export * from './CourseShareAcceptError';
|
|
43
43
|
export * from './CustomWebhookIntegration';
|
|
44
|
+
export * from './DispatchTokenResponse';
|
|
44
45
|
export * from './EffectiveCertificateConfig';
|
|
45
46
|
export * from './EmailTemplateDefinition';
|
|
46
47
|
export * from './EmailTemplateScope';
|
|
@@ -85,6 +86,8 @@ export * from './GetCourseVersionSection';
|
|
|
85
86
|
export * from './GetCourseVersionSectionChild';
|
|
86
87
|
export * from './GetCourseVersionSectionProgression';
|
|
87
88
|
export * from './GetCourseVersionSectionReporting';
|
|
89
|
+
export * from './GetDispatchCourse';
|
|
90
|
+
export * from './GetDispatchRollup';
|
|
88
91
|
export * from './GetEffectiveLearnerExperience';
|
|
89
92
|
export * from './GetEmailAssetUpload';
|
|
90
93
|
export * from './GetEmailDelivery';
|
|
@@ -92,6 +95,8 @@ export * from './GetEmailDeliveryList';
|
|
|
92
95
|
export * from './GetEmailTemplate';
|
|
93
96
|
export * from './GetEmailTemplateList';
|
|
94
97
|
export * from './GetEmailTemplatePreview';
|
|
98
|
+
export * from './GetHostedScormRegistration';
|
|
99
|
+
export * from './GetHostedScormRegistrationList';
|
|
95
100
|
export * from './GetLearnerDashboard';
|
|
96
101
|
export * from './GetLearnerDashboardCourseList';
|
|
97
102
|
export * from './GetLearnerDashboardSummary';
|
|
@@ -165,6 +170,10 @@ export * from './GetZapierMe';
|
|
|
165
170
|
export * from './GetZapierSetup';
|
|
166
171
|
export * from './GetZapierShopifyCourseMappings';
|
|
167
172
|
export * from './GetZapierUsers';
|
|
173
|
+
export * from './HostedScormAccessPolicy';
|
|
174
|
+
export * from './HostedScormOutlineEntry';
|
|
175
|
+
export * from './HostedScormRollupPolicy';
|
|
176
|
+
export * from './HostedScormScoreItem';
|
|
168
177
|
export * from './IntegrationEvent';
|
|
169
178
|
export * from './IntegrationEventCertificate';
|
|
170
179
|
export * from './IntegrationEventCourse';
|
|
@@ -226,6 +235,11 @@ export * from './PostCourseVersionPublish';
|
|
|
226
235
|
export * from './PostCourseVersionSection';
|
|
227
236
|
export * from './PostCourseVersionSectionDuplicate';
|
|
228
237
|
export * from './PostCustomWebhookIntegration';
|
|
238
|
+
export * from './PostDispatchItemLaunch';
|
|
239
|
+
export * from './PostDispatchItemLaunchResponse';
|
|
240
|
+
export * from './PostDispatchLaunch';
|
|
241
|
+
export * from './PostDispatchLaunchResponse';
|
|
242
|
+
export * from './PostDispatchTokenExchange';
|
|
229
243
|
export * from './PostDuplicate';
|
|
230
244
|
export * from './PostEmailAssetComplete';
|
|
231
245
|
export * from './PostEmailAssetUpload';
|
|
@@ -292,6 +306,7 @@ export * from './PutCourseVersionOutlineEntryMove';
|
|
|
292
306
|
export * from './PutCourseVersionSection';
|
|
293
307
|
export * from './PutCustomWebhookIntegration';
|
|
294
308
|
export * from './PutEmailTemplateDraft';
|
|
309
|
+
export * from './PutHostedScormStatus';
|
|
295
310
|
export * from './PutLearnerExperienceDraft';
|
|
296
311
|
export * from './PutLibraryQuiz';
|
|
297
312
|
export * from './PutLibraryQuizCriteria';
|
|
@@ -327,8 +342,14 @@ export * from './RichTextAsset';
|
|
|
327
342
|
export * from './RichTextDocument';
|
|
328
343
|
export * from './RichTextInput';
|
|
329
344
|
export * from './ScormGetValueResponse';
|
|
345
|
+
export * from './ScormNavigationDelivery';
|
|
346
|
+
export * from './ScormNavigationRequest';
|
|
347
|
+
export * from './ScormNavigationResponse';
|
|
348
|
+
export * from './ScormNavigationValidity';
|
|
349
|
+
export * from './ScormRuntimeResponse';
|
|
330
350
|
export * from './ScormSetValueRequest';
|
|
331
351
|
export * from './ScormSetValueResponse';
|
|
352
|
+
export * from './ScormTerminateResponse';
|
|
332
353
|
export * from './SupportTicketUser';
|
|
333
354
|
export * from './UpdateSelectedPortalResponse';
|
|
334
355
|
export * from './UpdateSelectedPortalResponseHostPortal';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -43,6 +43,7 @@ export * from './CourseProgressionMode';
|
|
|
43
43
|
export * from './CourseShare';
|
|
44
44
|
export * from './CourseShareAcceptError';
|
|
45
45
|
export * from './CustomWebhookIntegration';
|
|
46
|
+
export * from './DispatchTokenResponse';
|
|
46
47
|
export * from './EffectiveCertificateConfig';
|
|
47
48
|
export * from './EmailTemplateDefinition';
|
|
48
49
|
export * from './EmailTemplateScope';
|
|
@@ -87,6 +88,8 @@ export * from './GetCourseVersionSection';
|
|
|
87
88
|
export * from './GetCourseVersionSectionChild';
|
|
88
89
|
export * from './GetCourseVersionSectionProgression';
|
|
89
90
|
export * from './GetCourseVersionSectionReporting';
|
|
91
|
+
export * from './GetDispatchCourse';
|
|
92
|
+
export * from './GetDispatchRollup';
|
|
90
93
|
export * from './GetEffectiveLearnerExperience';
|
|
91
94
|
export * from './GetEmailAssetUpload';
|
|
92
95
|
export * from './GetEmailDelivery';
|
|
@@ -94,6 +97,8 @@ export * from './GetEmailDeliveryList';
|
|
|
94
97
|
export * from './GetEmailTemplate';
|
|
95
98
|
export * from './GetEmailTemplateList';
|
|
96
99
|
export * from './GetEmailTemplatePreview';
|
|
100
|
+
export * from './GetHostedScormRegistration';
|
|
101
|
+
export * from './GetHostedScormRegistrationList';
|
|
97
102
|
export * from './GetLearnerDashboard';
|
|
98
103
|
export * from './GetLearnerDashboardCourseList';
|
|
99
104
|
export * from './GetLearnerDashboardSummary';
|
|
@@ -167,6 +172,10 @@ export * from './GetZapierMe';
|
|
|
167
172
|
export * from './GetZapierSetup';
|
|
168
173
|
export * from './GetZapierShopifyCourseMappings';
|
|
169
174
|
export * from './GetZapierUsers';
|
|
175
|
+
export * from './HostedScormAccessPolicy';
|
|
176
|
+
export * from './HostedScormOutlineEntry';
|
|
177
|
+
export * from './HostedScormRollupPolicy';
|
|
178
|
+
export * from './HostedScormScoreItem';
|
|
170
179
|
export * from './IntegrationEvent';
|
|
171
180
|
export * from './IntegrationEventCertificate';
|
|
172
181
|
export * from './IntegrationEventCourse';
|
|
@@ -228,6 +237,11 @@ export * from './PostCourseVersionPublish';
|
|
|
228
237
|
export * from './PostCourseVersionSection';
|
|
229
238
|
export * from './PostCourseVersionSectionDuplicate';
|
|
230
239
|
export * from './PostCustomWebhookIntegration';
|
|
240
|
+
export * from './PostDispatchItemLaunch';
|
|
241
|
+
export * from './PostDispatchItemLaunchResponse';
|
|
242
|
+
export * from './PostDispatchLaunch';
|
|
243
|
+
export * from './PostDispatchLaunchResponse';
|
|
244
|
+
export * from './PostDispatchTokenExchange';
|
|
231
245
|
export * from './PostDuplicate';
|
|
232
246
|
export * from './PostEmailAssetComplete';
|
|
233
247
|
export * from './PostEmailAssetUpload';
|
|
@@ -294,6 +308,7 @@ export * from './PutCourseVersionOutlineEntryMove';
|
|
|
294
308
|
export * from './PutCourseVersionSection';
|
|
295
309
|
export * from './PutCustomWebhookIntegration';
|
|
296
310
|
export * from './PutEmailTemplateDraft';
|
|
311
|
+
export * from './PutHostedScormStatus';
|
|
297
312
|
export * from './PutLearnerExperienceDraft';
|
|
298
313
|
export * from './PutLibraryQuiz';
|
|
299
314
|
export * from './PutLibraryQuizCriteria';
|
|
@@ -329,8 +344,14 @@ export * from './RichTextAsset';
|
|
|
329
344
|
export * from './RichTextDocument';
|
|
330
345
|
export * from './RichTextInput';
|
|
331
346
|
export * from './ScormGetValueResponse';
|
|
347
|
+
export * from './ScormNavigationDelivery';
|
|
348
|
+
export * from './ScormNavigationRequest';
|
|
349
|
+
export * from './ScormNavigationResponse';
|
|
350
|
+
export * from './ScormNavigationValidity';
|
|
351
|
+
export * from './ScormRuntimeResponse';
|
|
332
352
|
export * from './ScormSetValueRequest';
|
|
333
353
|
export * from './ScormSetValueResponse';
|
|
354
|
+
export * from './ScormTerminateResponse';
|
|
334
355
|
export * from './SupportTicketUser';
|
|
335
356
|
export * from './UpdateSelectedPortalResponse';
|
|
336
357
|
export * from './UpdateSelectedPortalResponseHostPortal';
|
|
@@ -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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DispatchTokenResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface DispatchTokenResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DispatchTokenResponse
|
|
22
|
+
*/
|
|
23
|
+
accessToken: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {DispatchTokenResponseTokenTypeEnum}
|
|
27
|
+
* @memberof DispatchTokenResponse
|
|
28
|
+
*/
|
|
29
|
+
tokenType: DispatchTokenResponseTokenTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DispatchTokenResponse
|
|
34
|
+
*/
|
|
35
|
+
registrationId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof DispatchTokenResponse
|
|
40
|
+
*/
|
|
41
|
+
expiresAt: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const DispatchTokenResponseTokenTypeEnum: {
|
|
47
|
+
readonly Dispatch: "Dispatch";
|
|
48
|
+
};
|
|
49
|
+
export type DispatchTokenResponseTokenTypeEnum = typeof DispatchTokenResponseTokenTypeEnum[keyof typeof DispatchTokenResponseTokenTypeEnum];
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the DispatchTokenResponse interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfDispatchTokenResponse(value: object): value is DispatchTokenResponse;
|
|
54
|
+
export declare function DispatchTokenResponseFromJSON(json: any): DispatchTokenResponse;
|
|
55
|
+
export declare function DispatchTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DispatchTokenResponse;
|
|
56
|
+
export declare function DispatchTokenResponseToJSON(json: any): DispatchTokenResponse;
|
|
57
|
+
export declare function DispatchTokenResponseToJSONTyped(value?: DispatchTokenResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DispatchTokenResponseTokenTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfDispatchTokenResponse = instanceOfDispatchTokenResponse;
|
|
18
|
+
exports.DispatchTokenResponseFromJSON = DispatchTokenResponseFromJSON;
|
|
19
|
+
exports.DispatchTokenResponseFromJSONTyped = DispatchTokenResponseFromJSONTyped;
|
|
20
|
+
exports.DispatchTokenResponseToJSON = DispatchTokenResponseToJSON;
|
|
21
|
+
exports.DispatchTokenResponseToJSONTyped = DispatchTokenResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.DispatchTokenResponseTokenTypeEnum = {
|
|
26
|
+
Dispatch: 'Dispatch'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the DispatchTokenResponse interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfDispatchTokenResponse(value) {
|
|
32
|
+
if (!('accessToken' in value) || value['accessToken'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('tokenType' in value) || value['tokenType'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('registrationId' in value) || value['registrationId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function DispatchTokenResponseFromJSON(json) {
|
|
43
|
+
return DispatchTokenResponseFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function DispatchTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'accessToken': json['access_token'],
|
|
51
|
+
'tokenType': json['token_type'],
|
|
52
|
+
'registrationId': json['registration_id'],
|
|
53
|
+
'expiresAt': json['expires_at'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function DispatchTokenResponseToJSON(json) {
|
|
57
|
+
return DispatchTokenResponseToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function DispatchTokenResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'access_token': value['accessToken'],
|
|
65
|
+
'token_type': value['tokenType'],
|
|
66
|
+
'registration_id': value['registrationId'],
|
|
67
|
+
'expires_at': value['expiresAt'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -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
|
*/
|