@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,65 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostDispatchItemLaunch
|
|
20
|
+
*/
|
|
21
|
+
export interface PostDispatchItemLaunch {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof PostDispatchItemLaunch
|
|
26
|
+
*/
|
|
27
|
+
retake?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostDispatchItemLaunch interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostDispatchItemLaunch(value: object): value is PostDispatchItemLaunch {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function PostDispatchItemLaunchFromJSON(json: any): PostDispatchItemLaunch {
|
|
38
|
+
return PostDispatchItemLaunchFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function PostDispatchItemLaunchFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchItemLaunch {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'retake': json['retake'] == null ? undefined : json['retake'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PostDispatchItemLaunchToJSON(json: any): PostDispatchItemLaunch {
|
|
52
|
+
return PostDispatchItemLaunchToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PostDispatchItemLaunchToJSONTyped(value?: PostDispatchItemLaunch | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'retake': value['retake'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostDispatchItemLaunchResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface PostDispatchItemLaunchResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostDispatchItemLaunchResponse
|
|
26
|
+
*/
|
|
27
|
+
itemId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {PostDispatchItemLaunchResponseKindEnum}
|
|
31
|
+
* @memberof PostDispatchItemLaunchResponse
|
|
32
|
+
*/
|
|
33
|
+
kind: PostDispatchItemLaunchResponseKindEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PostDispatchItemLaunchResponse
|
|
38
|
+
*/
|
|
39
|
+
sessionId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PostDispatchItemLaunchResponse
|
|
44
|
+
*/
|
|
45
|
+
attemptNumber: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PostDispatchItemLaunchResponse
|
|
50
|
+
*/
|
|
51
|
+
launchUrl: string | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const PostDispatchItemLaunchResponseKindEnum = {
|
|
59
|
+
Resource: 'RESOURCE',
|
|
60
|
+
Quiz: 'QUIZ'
|
|
61
|
+
} as const;
|
|
62
|
+
export type PostDispatchItemLaunchResponseKindEnum = typeof PostDispatchItemLaunchResponseKindEnum[keyof typeof PostDispatchItemLaunchResponseKindEnum];
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the PostDispatchItemLaunchResponse interface.
|
|
67
|
+
*/
|
|
68
|
+
export function instanceOfPostDispatchItemLaunchResponse(value: object): value is PostDispatchItemLaunchResponse {
|
|
69
|
+
if (!('itemId' in value) || value['itemId'] === undefined) return false;
|
|
70
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
71
|
+
if (!('sessionId' in value) || value['sessionId'] === undefined) return false;
|
|
72
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined) return false;
|
|
73
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PostDispatchItemLaunchResponseFromJSON(json: any): PostDispatchItemLaunchResponse {
|
|
78
|
+
return PostDispatchItemLaunchResponseFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function PostDispatchItemLaunchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchItemLaunchResponse {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'itemId': json['item_id'],
|
|
88
|
+
'kind': json['kind'],
|
|
89
|
+
'sessionId': json['session_id'],
|
|
90
|
+
'attemptNumber': json['attempt_number'],
|
|
91
|
+
'launchUrl': json['launch_url'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function PostDispatchItemLaunchResponseToJSON(json: any): PostDispatchItemLaunchResponse {
|
|
96
|
+
return PostDispatchItemLaunchResponseToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function PostDispatchItemLaunchResponseToJSONTyped(value?: PostDispatchItemLaunchResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'item_id': value['itemId'],
|
|
107
|
+
'kind': value['kind'],
|
|
108
|
+
'session_id': value['sessionId'],
|
|
109
|
+
'attempt_number': value['attemptNumber'],
|
|
110
|
+
'launch_url': value['launchUrl'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostDispatchLaunch
|
|
20
|
+
*/
|
|
21
|
+
export interface PostDispatchLaunch {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostDispatchLaunch
|
|
26
|
+
*/
|
|
27
|
+
dispatchId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostDispatchLaunch
|
|
32
|
+
*/
|
|
33
|
+
learnerId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PostDispatchLaunch
|
|
38
|
+
*/
|
|
39
|
+
learnerName: string;
|
|
40
|
+
/**
|
|
41
|
+
* Legacy multi-SCO placement identifier.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PostDispatchLaunch
|
|
44
|
+
*/
|
|
45
|
+
itemId?: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the PostDispatchLaunch interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfPostDispatchLaunch(value: object): value is PostDispatchLaunch {
|
|
52
|
+
if (!('dispatchId' in value) || value['dispatchId'] === undefined) return false;
|
|
53
|
+
if (!('learnerId' in value) || value['learnerId'] === undefined) return false;
|
|
54
|
+
if (!('learnerName' in value) || value['learnerName'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PostDispatchLaunchFromJSON(json: any): PostDispatchLaunch {
|
|
59
|
+
return PostDispatchLaunchFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PostDispatchLaunchFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchLaunch {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'dispatchId': json['dispatch_id'],
|
|
69
|
+
'learnerId': json['learner_id'],
|
|
70
|
+
'learnerName': json['learner_name'],
|
|
71
|
+
'itemId': json['item_id'] == null ? undefined : json['item_id'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PostDispatchLaunchToJSON(json: any): PostDispatchLaunch {
|
|
76
|
+
return PostDispatchLaunchToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PostDispatchLaunchToJSONTyped(value?: PostDispatchLaunch | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'dispatch_id': value['dispatchId'],
|
|
87
|
+
'learner_id': value['learnerId'],
|
|
88
|
+
'learner_name': value['learnerName'],
|
|
89
|
+
'item_id': value['itemId'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostDispatchLaunchResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface PostDispatchLaunchResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {PostDispatchLaunchResponseRuntimeModeEnum}
|
|
25
|
+
* @memberof PostDispatchLaunchResponse
|
|
26
|
+
*/
|
|
27
|
+
runtimeMode: PostDispatchLaunchResponseRuntimeModeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostDispatchLaunchResponse
|
|
32
|
+
*/
|
|
33
|
+
launchUrl: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PostDispatchLaunchResponse
|
|
38
|
+
*/
|
|
39
|
+
token: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PostDispatchLaunchResponse
|
|
44
|
+
*/
|
|
45
|
+
launchCode: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PostDispatchLaunchResponse
|
|
50
|
+
*/
|
|
51
|
+
registrationId: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof PostDispatchLaunchResponse
|
|
56
|
+
*/
|
|
57
|
+
expiresAt: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const PostDispatchLaunchResponseRuntimeModeEnum = {
|
|
65
|
+
LegacyMultiSco: 'LEGACY_MULTI_SCO',
|
|
66
|
+
HostedCourseV1: 'HOSTED_COURSE_V1'
|
|
67
|
+
} as const;
|
|
68
|
+
export type PostDispatchLaunchResponseRuntimeModeEnum = typeof PostDispatchLaunchResponseRuntimeModeEnum[keyof typeof PostDispatchLaunchResponseRuntimeModeEnum];
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the PostDispatchLaunchResponse interface.
|
|
73
|
+
*/
|
|
74
|
+
export function instanceOfPostDispatchLaunchResponse(value: object): value is PostDispatchLaunchResponse {
|
|
75
|
+
if (!('runtimeMode' in value) || value['runtimeMode'] === undefined) return false;
|
|
76
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined) return false;
|
|
77
|
+
if (!('token' in value) || value['token'] === undefined) return false;
|
|
78
|
+
if (!('launchCode' in value) || value['launchCode'] === undefined) return false;
|
|
79
|
+
if (!('registrationId' in value) || value['registrationId'] === undefined) return false;
|
|
80
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PostDispatchLaunchResponseFromJSON(json: any): PostDispatchLaunchResponse {
|
|
85
|
+
return PostDispatchLaunchResponseFromJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PostDispatchLaunchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchLaunchResponse {
|
|
89
|
+
if (json == null) {
|
|
90
|
+
return json;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'runtimeMode': json['runtime_mode'],
|
|
95
|
+
'launchUrl': json['launch_url'],
|
|
96
|
+
'token': json['token'],
|
|
97
|
+
'launchCode': json['launch_code'],
|
|
98
|
+
'registrationId': json['registration_id'],
|
|
99
|
+
'expiresAt': json['expires_at'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function PostDispatchLaunchResponseToJSON(json: any): PostDispatchLaunchResponse {
|
|
104
|
+
return PostDispatchLaunchResponseToJSONTyped(json, false);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function PostDispatchLaunchResponseToJSONTyped(value?: PostDispatchLaunchResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
108
|
+
if (value == null) {
|
|
109
|
+
return value;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'runtime_mode': value['runtimeMode'],
|
|
115
|
+
'launch_url': value['launchUrl'],
|
|
116
|
+
'token': value['token'],
|
|
117
|
+
'launch_code': value['launchCode'],
|
|
118
|
+
'registration_id': value['registrationId'],
|
|
119
|
+
'expires_at': value['expiresAt'],
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
@@ -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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostDispatchTokenExchange
|
|
20
|
+
*/
|
|
21
|
+
export interface PostDispatchTokenExchange {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostDispatchTokenExchange
|
|
26
|
+
*/
|
|
27
|
+
code: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostDispatchTokenExchange interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostDispatchTokenExchange(value: object): value is PostDispatchTokenExchange {
|
|
34
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PostDispatchTokenExchangeFromJSON(json: any): PostDispatchTokenExchange {
|
|
39
|
+
return PostDispatchTokenExchangeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PostDispatchTokenExchangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchTokenExchange {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'code': json['code'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PostDispatchTokenExchangeToJSON(json: any): PostDispatchTokenExchange {
|
|
53
|
+
return PostDispatchTokenExchangeToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PostDispatchTokenExchangeToJSONTyped(value?: PostDispatchTokenExchange | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'code': value['code'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutHostedScormStatus
|
|
20
|
+
*/
|
|
21
|
+
export interface PutHostedScormStatus {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof PutHostedScormStatus
|
|
26
|
+
*/
|
|
27
|
+
active: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PutHostedScormStatus interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPutHostedScormStatus(value: object): value is PutHostedScormStatus {
|
|
34
|
+
if (!('active' in value) || value['active'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PutHostedScormStatusFromJSON(json: any): PutHostedScormStatus {
|
|
39
|
+
return PutHostedScormStatusFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PutHostedScormStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutHostedScormStatus {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'active': json['active'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PutHostedScormStatusToJSON(json: any): PutHostedScormStatus {
|
|
53
|
+
return PutHostedScormStatusToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PutHostedScormStatusToJSONTyped(value?: PutHostedScormStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'active': value['active'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -31,6 +31,18 @@ export interface ScormGetValueResponse {
|
|
|
31
31
|
* @memberof ScormGetValueResponse
|
|
32
32
|
*/
|
|
33
33
|
value: string;
|
|
34
|
+
/**
|
|
35
|
+
* Exact SCORM runtime error code for this API call
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ScormGetValueResponse
|
|
38
|
+
*/
|
|
39
|
+
errorCode: string;
|
|
40
|
+
/**
|
|
41
|
+
* Diagnostic detail for the error code, empty on success
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ScormGetValueResponse
|
|
44
|
+
*/
|
|
45
|
+
diagnostic: string;
|
|
34
46
|
}
|
|
35
47
|
|
|
36
48
|
/**
|
|
@@ -39,6 +51,8 @@ export interface ScormGetValueResponse {
|
|
|
39
51
|
export function instanceOfScormGetValueResponse(value: object): value is ScormGetValueResponse {
|
|
40
52
|
if (!('success' in value) || value['success'] === undefined) return false;
|
|
41
53
|
if (!('value' in value) || value['value'] === undefined) return false;
|
|
54
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined) return false;
|
|
55
|
+
if (!('diagnostic' in value) || value['diagnostic'] === undefined) return false;
|
|
42
56
|
return true;
|
|
43
57
|
}
|
|
44
58
|
|
|
@@ -54,6 +68,8 @@ export function ScormGetValueResponseFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
54
68
|
|
|
55
69
|
'success': json['success'],
|
|
56
70
|
'value': json['value'],
|
|
71
|
+
'errorCode': json['error_code'],
|
|
72
|
+
'diagnostic': json['diagnostic'],
|
|
57
73
|
};
|
|
58
74
|
}
|
|
59
75
|
|
|
@@ -70,6 +86,8 @@ export function ScormGetValueResponseToJSONTyped(value?: ScormGetValueResponse |
|
|
|
70
86
|
|
|
71
87
|
'success': value['success'],
|
|
72
88
|
'value': value['value'],
|
|
89
|
+
'error_code': value['errorCode'],
|
|
90
|
+
'diagnostic': value['diagnostic'],
|
|
73
91
|
};
|
|
74
92
|
}
|
|
75
93
|
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Activity selected exclusively by the sequencing engine
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ScormNavigationDelivery
|
|
20
|
+
*/
|
|
21
|
+
export interface ScormNavigationDelivery {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ScormNavigationDelivery
|
|
26
|
+
*/
|
|
27
|
+
activityIdentifier: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ScormNavigationDelivery
|
|
32
|
+
*/
|
|
33
|
+
trackingUuid: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ScormNavigationDelivery
|
|
38
|
+
*/
|
|
39
|
+
launchUrl: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ScormNavigationDelivery
|
|
44
|
+
*/
|
|
45
|
+
title: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {ScormNavigationDeliveryActivityTypeEnum}
|
|
49
|
+
* @memberof ScormNavigationDelivery
|
|
50
|
+
*/
|
|
51
|
+
activityType: ScormNavigationDeliveryActivityTypeEnum;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const ScormNavigationDeliveryActivityTypeEnum = {
|
|
59
|
+
Sco: 'sco',
|
|
60
|
+
Asset: 'asset'
|
|
61
|
+
} as const;
|
|
62
|
+
export type ScormNavigationDeliveryActivityTypeEnum = typeof ScormNavigationDeliveryActivityTypeEnum[keyof typeof ScormNavigationDeliveryActivityTypeEnum];
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the ScormNavigationDelivery interface.
|
|
67
|
+
*/
|
|
68
|
+
export function instanceOfScormNavigationDelivery(value: object): value is ScormNavigationDelivery {
|
|
69
|
+
if (!('activityIdentifier' in value) || value['activityIdentifier'] === undefined) return false;
|
|
70
|
+
if (!('trackingUuid' in value) || value['trackingUuid'] === undefined) return false;
|
|
71
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined) return false;
|
|
72
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
73
|
+
if (!('activityType' in value) || value['activityType'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ScormNavigationDeliveryFromJSON(json: any): ScormNavigationDelivery {
|
|
78
|
+
return ScormNavigationDeliveryFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function ScormNavigationDeliveryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormNavigationDelivery {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'activityIdentifier': json['activity_identifier'],
|
|
88
|
+
'trackingUuid': json['tracking_uuid'],
|
|
89
|
+
'launchUrl': json['launch_url'],
|
|
90
|
+
'title': json['title'],
|
|
91
|
+
'activityType': json['activity_type'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function ScormNavigationDeliveryToJSON(json: any): ScormNavigationDelivery {
|
|
96
|
+
return ScormNavigationDeliveryToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ScormNavigationDeliveryToJSONTyped(value?: ScormNavigationDelivery | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'activity_identifier': value['activityIdentifier'],
|
|
107
|
+
'tracking_uuid': value['trackingUuid'],
|
|
108
|
+
'launch_url': value['launchUrl'],
|
|
109
|
+
'title': value['title'],
|
|
110
|
+
'activity_type': value['activityType'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|