@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,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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutHostedScormStatus
|
|
16
|
+
*/
|
|
17
|
+
export interface PutHostedScormStatus {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PutHostedScormStatus
|
|
22
|
+
*/
|
|
23
|
+
active: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutHostedScormStatus interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutHostedScormStatus(value: object): value is PutHostedScormStatus;
|
|
29
|
+
export declare function PutHostedScormStatusFromJSON(json: any): PutHostedScormStatus;
|
|
30
|
+
export declare function PutHostedScormStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutHostedScormStatus;
|
|
31
|
+
export declare function PutHostedScormStatusToJSON(json: any): PutHostedScormStatus;
|
|
32
|
+
export declare function PutHostedScormStatusToJSONTyped(value?: PutHostedScormStatus | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPutHostedScormStatus = instanceOfPutHostedScormStatus;
|
|
17
|
+
exports.PutHostedScormStatusFromJSON = PutHostedScormStatusFromJSON;
|
|
18
|
+
exports.PutHostedScormStatusFromJSONTyped = PutHostedScormStatusFromJSONTyped;
|
|
19
|
+
exports.PutHostedScormStatusToJSON = PutHostedScormStatusToJSON;
|
|
20
|
+
exports.PutHostedScormStatusToJSONTyped = PutHostedScormStatusToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutHostedScormStatus interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutHostedScormStatus(value) {
|
|
25
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PutHostedScormStatusFromJSON(json) {
|
|
30
|
+
return PutHostedScormStatusFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PutHostedScormStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'active': json['active'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PutHostedScormStatusToJSON(json) {
|
|
41
|
+
return PutHostedScormStatusToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PutHostedScormStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'active': value['active'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -27,6 +27,18 @@ export interface ScormGetValueResponse {
|
|
|
27
27
|
* @memberof ScormGetValueResponse
|
|
28
28
|
*/
|
|
29
29
|
value: string;
|
|
30
|
+
/**
|
|
31
|
+
* Exact SCORM runtime error code for this API call
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ScormGetValueResponse
|
|
34
|
+
*/
|
|
35
|
+
errorCode: string;
|
|
36
|
+
/**
|
|
37
|
+
* Diagnostic detail for the error code, empty on success
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ScormGetValueResponse
|
|
40
|
+
*/
|
|
41
|
+
diagnostic: string;
|
|
30
42
|
}
|
|
31
43
|
/**
|
|
32
44
|
* Check if a given object implements the ScormGetValueResponse interface.
|
|
@@ -26,6 +26,10 @@ function instanceOfScormGetValueResponse(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('value' in value) || value['value'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('diagnostic' in value) || value['diagnostic'] === undefined)
|
|
32
|
+
return false;
|
|
29
33
|
return true;
|
|
30
34
|
}
|
|
31
35
|
function ScormGetValueResponseFromJSON(json) {
|
|
@@ -38,6 +42,8 @@ function ScormGetValueResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
42
|
return {
|
|
39
43
|
'success': json['success'],
|
|
40
44
|
'value': json['value'],
|
|
45
|
+
'errorCode': json['error_code'],
|
|
46
|
+
'diagnostic': json['diagnostic'],
|
|
41
47
|
};
|
|
42
48
|
}
|
|
43
49
|
function ScormGetValueResponseToJSON(json) {
|
|
@@ -50,5 +56,7 @@ function ScormGetValueResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
56
|
return {
|
|
51
57
|
'success': value['success'],
|
|
52
58
|
'value': value['value'],
|
|
59
|
+
'error_code': value['errorCode'],
|
|
60
|
+
'diagnostic': value['diagnostic'],
|
|
53
61
|
};
|
|
54
62
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
* Activity selected exclusively by the sequencing engine
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ScormNavigationDelivery
|
|
16
|
+
*/
|
|
17
|
+
export interface ScormNavigationDelivery {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ScormNavigationDelivery
|
|
22
|
+
*/
|
|
23
|
+
activityIdentifier: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ScormNavigationDelivery
|
|
28
|
+
*/
|
|
29
|
+
trackingUuid: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ScormNavigationDelivery
|
|
34
|
+
*/
|
|
35
|
+
launchUrl: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ScormNavigationDelivery
|
|
40
|
+
*/
|
|
41
|
+
title: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ScormNavigationDeliveryActivityTypeEnum}
|
|
45
|
+
* @memberof ScormNavigationDelivery
|
|
46
|
+
*/
|
|
47
|
+
activityType: ScormNavigationDeliveryActivityTypeEnum;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const ScormNavigationDeliveryActivityTypeEnum: {
|
|
53
|
+
readonly Sco: "sco";
|
|
54
|
+
readonly Asset: "asset";
|
|
55
|
+
};
|
|
56
|
+
export type ScormNavigationDeliveryActivityTypeEnum = typeof ScormNavigationDeliveryActivityTypeEnum[keyof typeof ScormNavigationDeliveryActivityTypeEnum];
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the ScormNavigationDelivery interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfScormNavigationDelivery(value: object): value is ScormNavigationDelivery;
|
|
61
|
+
export declare function ScormNavigationDeliveryFromJSON(json: any): ScormNavigationDelivery;
|
|
62
|
+
export declare function ScormNavigationDeliveryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormNavigationDelivery;
|
|
63
|
+
export declare function ScormNavigationDeliveryToJSON(json: any): ScormNavigationDelivery;
|
|
64
|
+
export declare function ScormNavigationDeliveryToJSONTyped(value?: ScormNavigationDelivery | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.ScormNavigationDeliveryActivityTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfScormNavigationDelivery = instanceOfScormNavigationDelivery;
|
|
18
|
+
exports.ScormNavigationDeliveryFromJSON = ScormNavigationDeliveryFromJSON;
|
|
19
|
+
exports.ScormNavigationDeliveryFromJSONTyped = ScormNavigationDeliveryFromJSONTyped;
|
|
20
|
+
exports.ScormNavigationDeliveryToJSON = ScormNavigationDeliveryToJSON;
|
|
21
|
+
exports.ScormNavigationDeliveryToJSONTyped = ScormNavigationDeliveryToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ScormNavigationDeliveryActivityTypeEnum = {
|
|
26
|
+
Sco: 'sco',
|
|
27
|
+
Asset: 'asset'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ScormNavigationDelivery interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfScormNavigationDelivery(value) {
|
|
33
|
+
if (!('activityIdentifier' in value) || value['activityIdentifier'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('trackingUuid' in value) || value['trackingUuid'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('activityType' in value) || value['activityType'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function ScormNavigationDeliveryFromJSON(json) {
|
|
46
|
+
return ScormNavigationDeliveryFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function ScormNavigationDeliveryFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'activityIdentifier': json['activity_identifier'],
|
|
54
|
+
'trackingUuid': json['tracking_uuid'],
|
|
55
|
+
'launchUrl': json['launch_url'],
|
|
56
|
+
'title': json['title'],
|
|
57
|
+
'activityType': json['activity_type'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function ScormNavigationDeliveryToJSON(json) {
|
|
61
|
+
return ScormNavigationDeliveryToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function ScormNavigationDeliveryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'activity_identifier': value['activityIdentifier'],
|
|
69
|
+
'tracking_uuid': value['trackingUuid'],
|
|
70
|
+
'launch_url': value['launchUrl'],
|
|
71
|
+
'title': value['title'],
|
|
72
|
+
'activity_type': value['activityType'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
* A SCORM 2004 navigation request
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ScormNavigationRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ScormNavigationRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {ScormNavigationRequestRequestEnum}
|
|
21
|
+
* @memberof ScormNavigationRequest
|
|
22
|
+
*/
|
|
23
|
+
request: ScormNavigationRequestRequestEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Required for choice and jump; forbidden for other requests
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ScormNavigationRequest
|
|
28
|
+
*/
|
|
29
|
+
targetIdentifier?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ScormNavigationRequestRequestEnum: {
|
|
35
|
+
readonly Start: "start";
|
|
36
|
+
readonly ResumeAll: "resume_all";
|
|
37
|
+
readonly Continue: "continue";
|
|
38
|
+
readonly Previous: "previous";
|
|
39
|
+
readonly Choice: "choice";
|
|
40
|
+
readonly Jump: "jump";
|
|
41
|
+
readonly Exit: "exit";
|
|
42
|
+
readonly ExitAll: "exit_all";
|
|
43
|
+
readonly Abandon: "abandon";
|
|
44
|
+
readonly AbandonAll: "abandon_all";
|
|
45
|
+
readonly SuspendAll: "suspend_all";
|
|
46
|
+
};
|
|
47
|
+
export type ScormNavigationRequestRequestEnum = typeof ScormNavigationRequestRequestEnum[keyof typeof ScormNavigationRequestRequestEnum];
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ScormNavigationRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfScormNavigationRequest(value: object): value is ScormNavigationRequest;
|
|
52
|
+
export declare function ScormNavigationRequestFromJSON(json: any): ScormNavigationRequest;
|
|
53
|
+
export declare function ScormNavigationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormNavigationRequest;
|
|
54
|
+
export declare function ScormNavigationRequestToJSON(json: any): ScormNavigationRequest;
|
|
55
|
+
export declare function ScormNavigationRequestToJSONTyped(value?: ScormNavigationRequest | 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.ScormNavigationRequestRequestEnum = void 0;
|
|
17
|
+
exports.instanceOfScormNavigationRequest = instanceOfScormNavigationRequest;
|
|
18
|
+
exports.ScormNavigationRequestFromJSON = ScormNavigationRequestFromJSON;
|
|
19
|
+
exports.ScormNavigationRequestFromJSONTyped = ScormNavigationRequestFromJSONTyped;
|
|
20
|
+
exports.ScormNavigationRequestToJSON = ScormNavigationRequestToJSON;
|
|
21
|
+
exports.ScormNavigationRequestToJSONTyped = ScormNavigationRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ScormNavigationRequestRequestEnum = {
|
|
26
|
+
Start: 'start',
|
|
27
|
+
ResumeAll: 'resume_all',
|
|
28
|
+
Continue: 'continue',
|
|
29
|
+
Previous: 'previous',
|
|
30
|
+
Choice: 'choice',
|
|
31
|
+
Jump: 'jump',
|
|
32
|
+
Exit: 'exit',
|
|
33
|
+
ExitAll: 'exit_all',
|
|
34
|
+
Abandon: 'abandon',
|
|
35
|
+
AbandonAll: 'abandon_all',
|
|
36
|
+
SuspendAll: 'suspend_all'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ScormNavigationRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfScormNavigationRequest(value) {
|
|
42
|
+
if (!('request' in value) || value['request'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function ScormNavigationRequestFromJSON(json) {
|
|
47
|
+
return ScormNavigationRequestFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ScormNavigationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'request': json['request'],
|
|
55
|
+
'targetIdentifier': json['target_identifier'] == null ? undefined : json['target_identifier'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function ScormNavigationRequestToJSON(json) {
|
|
59
|
+
return ScormNavigationRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function ScormNavigationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'request': value['request'],
|
|
67
|
+
'target_identifier': value['targetIdentifier'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
import type { ScormNavigationValidity } from './ScormNavigationValidity';
|
|
14
|
+
/**
|
|
15
|
+
* Result of a SCORM 2004 sequencing transition
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ScormNavigationResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface ScormNavigationResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof ScormNavigationResponse
|
|
24
|
+
*/
|
|
25
|
+
success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ScormNavigationDelivery}
|
|
29
|
+
* @memberof ScormNavigationResponse
|
|
30
|
+
*/
|
|
31
|
+
delivery?: ScormNavigationDelivery;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof ScormNavigationResponse
|
|
36
|
+
*/
|
|
37
|
+
sequencingEnded: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof ScormNavigationResponse
|
|
42
|
+
*/
|
|
43
|
+
suspended: boolean;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ScormNavigationValidity}
|
|
47
|
+
* @memberof ScormNavigationResponse
|
|
48
|
+
*/
|
|
49
|
+
valid: ScormNavigationValidity;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ScormNavigationResponse
|
|
54
|
+
*/
|
|
55
|
+
errorCode: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ScormNavigationResponse
|
|
60
|
+
*/
|
|
61
|
+
diagnostic: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the ScormNavigationResponse interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfScormNavigationResponse(value: object): value is ScormNavigationResponse;
|
|
67
|
+
export declare function ScormNavigationResponseFromJSON(json: any): ScormNavigationResponse;
|
|
68
|
+
export declare function ScormNavigationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormNavigationResponse;
|
|
69
|
+
export declare function ScormNavigationResponseToJSON(json: any): ScormNavigationResponse;
|
|
70
|
+
export declare function ScormNavigationResponseToJSONTyped(value?: ScormNavigationResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfScormNavigationResponse = instanceOfScormNavigationResponse;
|
|
17
|
+
exports.ScormNavigationResponseFromJSON = ScormNavigationResponseFromJSON;
|
|
18
|
+
exports.ScormNavigationResponseFromJSONTyped = ScormNavigationResponseFromJSONTyped;
|
|
19
|
+
exports.ScormNavigationResponseToJSON = ScormNavigationResponseToJSON;
|
|
20
|
+
exports.ScormNavigationResponseToJSONTyped = ScormNavigationResponseToJSONTyped;
|
|
21
|
+
const ScormNavigationDelivery_1 = require("./ScormNavigationDelivery");
|
|
22
|
+
const ScormNavigationValidity_1 = require("./ScormNavigationValidity");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ScormNavigationResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfScormNavigationResponse(value) {
|
|
27
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('sequencingEnded' in value) || value['sequencingEnded'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('suspended' in value) || value['suspended'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('valid' in value) || value['valid'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('diagnostic' in value) || value['diagnostic'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function ScormNavigationResponseFromJSON(json) {
|
|
42
|
+
return ScormNavigationResponseFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ScormNavigationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': json['success'],
|
|
50
|
+
'delivery': json['delivery'] == null ? undefined : (0, ScormNavigationDelivery_1.ScormNavigationDeliveryFromJSON)(json['delivery']),
|
|
51
|
+
'sequencingEnded': json['sequencing_ended'],
|
|
52
|
+
'suspended': json['suspended'],
|
|
53
|
+
'valid': (0, ScormNavigationValidity_1.ScormNavigationValidityFromJSON)(json['valid']),
|
|
54
|
+
'errorCode': json['error_code'],
|
|
55
|
+
'diagnostic': json['diagnostic'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function ScormNavigationResponseToJSON(json) {
|
|
59
|
+
return ScormNavigationResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function ScormNavigationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'success': value['success'],
|
|
67
|
+
'delivery': (0, ScormNavigationDelivery_1.ScormNavigationDeliveryToJSON)(value['delivery']),
|
|
68
|
+
'sequencing_ended': value['sequencingEnded'],
|
|
69
|
+
'suspended': value['suspended'],
|
|
70
|
+
'valid': (0, ScormNavigationValidity_1.ScormNavigationValidityToJSON)(value['valid']),
|
|
71
|
+
'error_code': value['errorCode'],
|
|
72
|
+
'diagnostic': value['diagnostic'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
* Navigation requests valid in the resulting sequencing state
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ScormNavigationValidity
|
|
16
|
+
*/
|
|
17
|
+
export interface ScormNavigationValidity {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ScormNavigationValidity
|
|
22
|
+
*/
|
|
23
|
+
start: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ScormNavigationValidity
|
|
28
|
+
*/
|
|
29
|
+
resumeAll: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ScormNavigationValidity
|
|
34
|
+
*/
|
|
35
|
+
_continue: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof ScormNavigationValidity
|
|
40
|
+
*/
|
|
41
|
+
previous: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof ScormNavigationValidity
|
|
46
|
+
*/
|
|
47
|
+
exit: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof ScormNavigationValidity
|
|
52
|
+
*/
|
|
53
|
+
exitAll: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof ScormNavigationValidity
|
|
58
|
+
*/
|
|
59
|
+
abandon: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof ScormNavigationValidity
|
|
64
|
+
*/
|
|
65
|
+
abandonAll: boolean;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof ScormNavigationValidity
|
|
70
|
+
*/
|
|
71
|
+
suspendAll: boolean;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof ScormNavigationValidity
|
|
76
|
+
*/
|
|
77
|
+
choiceTargets: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof ScormNavigationValidity
|
|
82
|
+
*/
|
|
83
|
+
jumpTargets: Array<string>;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the ScormNavigationValidity interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfScormNavigationValidity(value: object): value is ScormNavigationValidity;
|
|
89
|
+
export declare function ScormNavigationValidityFromJSON(json: any): ScormNavigationValidity;
|
|
90
|
+
export declare function ScormNavigationValidityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormNavigationValidity;
|
|
91
|
+
export declare function ScormNavigationValidityToJSON(json: any): ScormNavigationValidity;
|
|
92
|
+
export declare function ScormNavigationValidityToJSONTyped(value?: ScormNavigationValidity | null, ignoreDiscriminator?: boolean): any;
|