@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,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PutHostedScormStatus interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPutHostedScormStatus(value) {
|
|
18
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PutHostedScormStatusFromJSON(json) {
|
|
23
|
+
return PutHostedScormStatusFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PutHostedScormStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'active': json['active'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PutHostedScormStatusToJSON(json) {
|
|
34
|
+
return PutHostedScormStatusToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PutHostedScormStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'active': value['active'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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.
|
|
@@ -19,6 +19,10 @@ export function instanceOfScormGetValueResponse(value) {
|
|
|
19
19
|
return false;
|
|
20
20
|
if (!('value' in value) || value['value'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('diagnostic' in value) || value['diagnostic'] === undefined)
|
|
25
|
+
return false;
|
|
22
26
|
return true;
|
|
23
27
|
}
|
|
24
28
|
export function ScormGetValueResponseFromJSON(json) {
|
|
@@ -31,6 +35,8 @@ export function ScormGetValueResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
35
|
return {
|
|
32
36
|
'success': json['success'],
|
|
33
37
|
'value': json['value'],
|
|
38
|
+
'errorCode': json['error_code'],
|
|
39
|
+
'diagnostic': json['diagnostic'],
|
|
34
40
|
};
|
|
35
41
|
}
|
|
36
42
|
export function ScormGetValueResponseToJSON(json) {
|
|
@@ -43,5 +49,7 @@ export function ScormGetValueResponseToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
43
49
|
return {
|
|
44
50
|
'success': value['success'],
|
|
45
51
|
'value': value['value'],
|
|
52
|
+
'error_code': value['errorCode'],
|
|
53
|
+
'diagnostic': value['diagnostic'],
|
|
46
54
|
};
|
|
47
55
|
}
|
|
@@ -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,66 @@
|
|
|
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 ScormNavigationDeliveryActivityTypeEnum = {
|
|
18
|
+
Sco: 'sco',
|
|
19
|
+
Asset: 'asset'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ScormNavigationDelivery interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfScormNavigationDelivery(value) {
|
|
25
|
+
if (!('activityIdentifier' in value) || value['activityIdentifier'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('trackingUuid' in value) || value['trackingUuid'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('activityType' in value) || value['activityType'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function ScormNavigationDeliveryFromJSON(json) {
|
|
38
|
+
return ScormNavigationDeliveryFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ScormNavigationDeliveryFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'activityIdentifier': json['activity_identifier'],
|
|
46
|
+
'trackingUuid': json['tracking_uuid'],
|
|
47
|
+
'launchUrl': json['launch_url'],
|
|
48
|
+
'title': json['title'],
|
|
49
|
+
'activityType': json['activity_type'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function ScormNavigationDeliveryToJSON(json) {
|
|
53
|
+
return ScormNavigationDeliveryToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function ScormNavigationDeliveryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'activity_identifier': value['activityIdentifier'],
|
|
61
|
+
'tracking_uuid': value['trackingUuid'],
|
|
62
|
+
'launch_url': value['launchUrl'],
|
|
63
|
+
'title': value['title'],
|
|
64
|
+
'activity_type': value['activityType'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -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,61 @@
|
|
|
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 ScormNavigationRequestRequestEnum = {
|
|
18
|
+
Start: 'start',
|
|
19
|
+
ResumeAll: 'resume_all',
|
|
20
|
+
Continue: 'continue',
|
|
21
|
+
Previous: 'previous',
|
|
22
|
+
Choice: 'choice',
|
|
23
|
+
Jump: 'jump',
|
|
24
|
+
Exit: 'exit',
|
|
25
|
+
ExitAll: 'exit_all',
|
|
26
|
+
Abandon: 'abandon',
|
|
27
|
+
AbandonAll: 'abandon_all',
|
|
28
|
+
SuspendAll: 'suspend_all'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ScormNavigationRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfScormNavigationRequest(value) {
|
|
34
|
+
if (!('request' in value) || value['request'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
export function ScormNavigationRequestFromJSON(json) {
|
|
39
|
+
return ScormNavigationRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ScormNavigationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'request': json['request'],
|
|
47
|
+
'targetIdentifier': json['target_identifier'] == null ? undefined : json['target_identifier'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function ScormNavigationRequestToJSON(json) {
|
|
51
|
+
return ScormNavigationRequestToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function ScormNavigationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'request': value['request'],
|
|
59
|
+
'target_identifier': value['targetIdentifier'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -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,67 @@
|
|
|
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
|
+
import { ScormNavigationValidityFromJSON, ScormNavigationValidityToJSON, } from './ScormNavigationValidity';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the ScormNavigationResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfScormNavigationResponse(value) {
|
|
20
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('sequencingEnded' in value) || value['sequencingEnded'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('suspended' in value) || value['suspended'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('valid' in value) || value['valid'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('diagnostic' in value) || value['diagnostic'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ScormNavigationResponseFromJSON(json) {
|
|
35
|
+
return ScormNavigationResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ScormNavigationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'success': json['success'],
|
|
43
|
+
'delivery': json['delivery'] == null ? undefined : ScormNavigationDeliveryFromJSON(json['delivery']),
|
|
44
|
+
'sequencingEnded': json['sequencing_ended'],
|
|
45
|
+
'suspended': json['suspended'],
|
|
46
|
+
'valid': ScormNavigationValidityFromJSON(json['valid']),
|
|
47
|
+
'errorCode': json['error_code'],
|
|
48
|
+
'diagnostic': json['diagnostic'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function ScormNavigationResponseToJSON(json) {
|
|
52
|
+
return ScormNavigationResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function ScormNavigationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'success': value['success'],
|
|
60
|
+
'delivery': ScormNavigationDeliveryToJSON(value['delivery']),
|
|
61
|
+
'sequencing_ended': value['sequencingEnded'],
|
|
62
|
+
'suspended': value['suspended'],
|
|
63
|
+
'valid': ScormNavigationValidityToJSON(value['valid']),
|
|
64
|
+
'error_code': value['errorCode'],
|
|
65
|
+
'diagnostic': value['diagnostic'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,83 @@
|
|
|
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 ScormNavigationValidity interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfScormNavigationValidity(value) {
|
|
18
|
+
if (!('start' in value) || value['start'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('resumeAll' in value) || value['resumeAll'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('_continue' in value) || value['_continue'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('previous' in value) || value['previous'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('exit' in value) || value['exit'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('exitAll' in value) || value['exitAll'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('abandon' in value) || value['abandon'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('abandonAll' in value) || value['abandonAll'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('suspendAll' in value) || value['suspendAll'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('choiceTargets' in value) || value['choiceTargets'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('jumpTargets' in value) || value['jumpTargets'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
export function ScormNavigationValidityFromJSON(json) {
|
|
43
|
+
return ScormNavigationValidityFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ScormNavigationValidityFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'start': json['start'],
|
|
51
|
+
'resumeAll': json['resume_all'],
|
|
52
|
+
'_continue': json['continue'],
|
|
53
|
+
'previous': json['previous'],
|
|
54
|
+
'exit': json['exit'],
|
|
55
|
+
'exitAll': json['exit_all'],
|
|
56
|
+
'abandon': json['abandon'],
|
|
57
|
+
'abandonAll': json['abandon_all'],
|
|
58
|
+
'suspendAll': json['suspend_all'],
|
|
59
|
+
'choiceTargets': json['choice_targets'],
|
|
60
|
+
'jumpTargets': json['jump_targets'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function ScormNavigationValidityToJSON(json) {
|
|
64
|
+
return ScormNavigationValidityToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
export function ScormNavigationValidityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'start': value['start'],
|
|
72
|
+
'resume_all': value['resumeAll'],
|
|
73
|
+
'continue': value['_continue'],
|
|
74
|
+
'previous': value['previous'],
|
|
75
|
+
'exit': value['exit'],
|
|
76
|
+
'exit_all': value['exitAll'],
|
|
77
|
+
'abandon': value['abandon'],
|
|
78
|
+
'abandon_all': value['abandonAll'],
|
|
79
|
+
'suspend_all': value['suspendAll'],
|
|
80
|
+
'choice_targets': value['choiceTargets'],
|
|
81
|
+
'jump_targets': value['jumpTargets'],
|
|
82
|
+
};
|
|
83
|
+
}
|