@easyedu/js-lsm-api 1.118.0 → 1.119.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 +147 -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 +147 -0
- package/dist/esm/apis/DispatchApi.d.ts +121 -5
- package/dist/esm/apis/DispatchApi.js +303 -8
- package/dist/esm/apis/PlayerApi.d.ts +26 -6
- package/dist/esm/apis/PlayerApi.js +57 -6
- package/dist/esm/models/DispatchTokenResponse.d.ts +57 -0
- package/dist/esm/models/DispatchTokenResponse.js +61 -0
- package/dist/esm/models/GetCourseExport.d.ts +62 -0
- package/dist/esm/models/GetCourseExport.js +44 -0
- package/dist/esm/models/GetDispatchCourse.d.ts +82 -0
- package/dist/esm/models/GetDispatchCourse.js +77 -0
- package/dist/esm/models/GetDispatchRollup.d.ts +104 -0
- package/dist/esm/models/GetDispatchRollup.js +95 -0
- package/dist/esm/models/GetHostedScormRegistration.d.ts +80 -0
- package/dist/esm/models/GetHostedScormRegistration.js +71 -0
- package/dist/esm/models/GetHostedScormRegistrationList.d.ts +57 -0
- package/dist/esm/models/GetHostedScormRegistrationList.js +60 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +8 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.js +2 -0
- package/dist/esm/models/HostedScormAccessPolicy.d.ts +50 -0
- package/dist/esm/models/HostedScormAccessPolicy.js +55 -0
- package/dist/esm/models/HostedScormOutlineEntry.d.ts +108 -0
- package/dist/esm/models/HostedScormOutlineEntry.js +97 -0
- package/dist/esm/models/HostedScormRollupPolicy.d.ts +69 -0
- package/dist/esm/models/HostedScormRollupPolicy.js +72 -0
- package/dist/esm/models/HostedScormScoreItem.d.ts +38 -0
- package/dist/esm/models/HostedScormScoreItem.js +47 -0
- package/dist/esm/models/PostCourseExport.d.ts +28 -0
- package/dist/esm/models/PostCourseExport.js +15 -0
- package/dist/esm/models/PostDispatchItemLaunch.d.ts +32 -0
- package/dist/esm/models/PostDispatchItemLaunch.js +41 -0
- package/dist/esm/models/PostDispatchItemLaunchResponse.d.ts +64 -0
- package/dist/esm/models/PostDispatchItemLaunchResponse.js +66 -0
- package/dist/esm/models/PostDispatchLaunch.d.ts +50 -0
- package/dist/esm/models/PostDispatchLaunch.js +53 -0
- package/dist/esm/models/PostDispatchLaunchResponse.d.ts +70 -0
- package/dist/esm/models/PostDispatchLaunchResponse.js +70 -0
- package/dist/esm/models/PostDispatchTokenExchange.d.ts +32 -0
- package/dist/esm/models/PostDispatchTokenExchange.js +43 -0
- package/dist/esm/models/PutHostedScormStatus.d.ts +32 -0
- package/dist/esm/models/PutHostedScormStatus.js +43 -0
- package/dist/esm/models/ScormGetValueResponse.d.ts +12 -0
- package/dist/esm/models/ScormGetValueResponse.js +8 -0
- package/dist/esm/models/ScormNavigationDelivery.d.ts +64 -0
- package/dist/esm/models/ScormNavigationDelivery.js +66 -0
- package/dist/esm/models/ScormNavigationRequest.d.ts +55 -0
- package/dist/esm/models/ScormNavigationRequest.js +61 -0
- package/dist/esm/models/ScormNavigationResponse.d.ts +70 -0
- package/dist/esm/models/ScormNavigationResponse.js +67 -0
- package/dist/esm/models/ScormNavigationValidity.d.ts +92 -0
- package/dist/esm/models/ScormNavigationValidity.js +83 -0
- package/dist/esm/models/ScormRuntimeResponse.d.ts +44 -0
- package/dist/esm/models/ScormRuntimeResponse.js +51 -0
- package/dist/esm/models/ScormSetValueResponse.d.ts +12 -0
- package/dist/esm/models/ScormSetValueResponse.js +8 -0
- package/dist/esm/models/ScormTerminateResponse.d.ts +63 -0
- package/dist/esm/models/ScormTerminateResponse.js +62 -0
- package/dist/esm/models/index.d.ts +21 -0
- package/dist/esm/models/index.js +21 -0
- package/dist/models/DispatchTokenResponse.d.ts +57 -0
- package/dist/models/DispatchTokenResponse.js +69 -0
- package/dist/models/GetCourseExport.d.ts +62 -0
- package/dist/models/GetCourseExport.js +45 -1
- package/dist/models/GetDispatchCourse.d.ts +82 -0
- package/dist/models/GetDispatchCourse.js +84 -0
- package/dist/models/GetDispatchRollup.d.ts +104 -0
- package/dist/models/GetDispatchRollup.js +103 -0
- package/dist/models/GetHostedScormRegistration.d.ts +80 -0
- package/dist/models/GetHostedScormRegistration.js +78 -0
- package/dist/models/GetHostedScormRegistrationList.d.ts +57 -0
- package/dist/models/GetHostedScormRegistrationList.js +67 -0
- package/dist/models/GetResourceSessionDiagnostics.d.ts +8 -0
- package/dist/models/GetResourceSessionDiagnostics.js +2 -0
- package/dist/models/HostedScormAccessPolicy.d.ts +50 -0
- package/dist/models/HostedScormAccessPolicy.js +62 -0
- package/dist/models/HostedScormOutlineEntry.d.ts +108 -0
- package/dist/models/HostedScormOutlineEntry.js +105 -0
- package/dist/models/HostedScormRollupPolicy.d.ts +69 -0
- package/dist/models/HostedScormRollupPolicy.js +80 -0
- package/dist/models/HostedScormScoreItem.d.ts +38 -0
- package/dist/models/HostedScormScoreItem.js +54 -0
- package/dist/models/PostCourseExport.d.ts +28 -0
- package/dist/models/PostCourseExport.js +16 -1
- package/dist/models/PostDispatchItemLaunch.d.ts +32 -0
- package/dist/models/PostDispatchItemLaunch.js +48 -0
- package/dist/models/PostDispatchItemLaunchResponse.d.ts +64 -0
- package/dist/models/PostDispatchItemLaunchResponse.js +74 -0
- package/dist/models/PostDispatchLaunch.d.ts +50 -0
- package/dist/models/PostDispatchLaunch.js +60 -0
- package/dist/models/PostDispatchLaunchResponse.d.ts +70 -0
- package/dist/models/PostDispatchLaunchResponse.js +78 -0
- package/dist/models/PostDispatchTokenExchange.d.ts +32 -0
- package/dist/models/PostDispatchTokenExchange.js +50 -0
- package/dist/models/PutHostedScormStatus.d.ts +32 -0
- package/dist/models/PutHostedScormStatus.js +50 -0
- package/dist/models/ScormGetValueResponse.d.ts +12 -0
- package/dist/models/ScormGetValueResponse.js +8 -0
- package/dist/models/ScormNavigationDelivery.d.ts +64 -0
- package/dist/models/ScormNavigationDelivery.js +74 -0
- package/dist/models/ScormNavigationRequest.d.ts +55 -0
- package/dist/models/ScormNavigationRequest.js +69 -0
- package/dist/models/ScormNavigationResponse.d.ts +70 -0
- package/dist/models/ScormNavigationResponse.js +74 -0
- package/dist/models/ScormNavigationValidity.d.ts +92 -0
- package/dist/models/ScormNavigationValidity.js +90 -0
- package/dist/models/ScormRuntimeResponse.d.ts +44 -0
- package/dist/models/ScormRuntimeResponse.js +58 -0
- package/dist/models/ScormSetValueResponse.d.ts +12 -0
- package/dist/models/ScormSetValueResponse.js +8 -0
- package/dist/models/ScormTerminateResponse.d.ts +63 -0
- package/dist/models/ScormTerminateResponse.js +69 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +21 -0
- package/docs/CourseApi.md +225 -0
- package/docs/DispatchApi.md +480 -9
- package/docs/DispatchTokenResponse.md +40 -0
- package/docs/GetCourseExport.md +14 -0
- package/docs/GetDispatchCourse.md +50 -0
- package/docs/GetDispatchRollup.md +52 -0
- package/docs/GetHostedScormRegistration.md +50 -0
- package/docs/GetHostedScormRegistrationList.md +42 -0
- package/docs/GetResourceSessionDiagnostics.md +2 -0
- package/docs/HostedScormAccessPolicy.md +41 -0
- package/docs/HostedScormOutlineEntry.md +54 -0
- package/docs/HostedScormRollupPolicy.md +41 -0
- package/docs/HostedScormScoreItem.md +36 -0
- package/docs/PlayerApi.md +80 -9
- package/docs/PostCourseExport.md +6 -0
- package/docs/PostDispatchItemLaunch.md +34 -0
- package/docs/PostDispatchItemLaunchResponse.md +42 -0
- package/docs/PostDispatchLaunch.md +40 -0
- package/docs/PostDispatchLaunchResponse.md +44 -0
- package/docs/PostDispatchTokenExchange.md +34 -0
- package/docs/PutHostedScormStatus.md +34 -0
- package/docs/ScormGetValueResponse.md +4 -0
- package/docs/ScormNavigationDelivery.md +43 -0
- package/docs/ScormNavigationRequest.md +37 -0
- package/docs/ScormNavigationResponse.md +47 -0
- package/docs/ScormNavigationValidity.md +55 -0
- package/docs/ScormRuntimeResponse.md +39 -0
- package/docs/ScormSetValueResponse.md +4 -0
- package/docs/ScormTerminateResponse.md +44 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +221 -0
- package/src/apis/DispatchApi.ts +426 -10
- package/src/apis/PlayerApi.ts +95 -12
- package/src/models/DispatchTokenResponse.ts +103 -0
- package/src/models/GetCourseExport.ts +97 -0
- package/src/models/GetDispatchCourse.ts +153 -0
- package/src/models/GetDispatchRollup.ts +169 -0
- package/src/models/GetHostedScormRegistration.ts +136 -0
- package/src/models/GetHostedScormRegistrationList.ts +110 -0
- package/src/models/GetResourceSessionDiagnostics.ts +8 -0
- package/src/models/HostedScormAccessPolicy.ts +93 -0
- package/src/models/HostedScormOutlineEntry.ts +176 -0
- package/src/models/HostedScormRollupPolicy.ts +123 -0
- package/src/models/HostedScormScoreItem.ts +75 -0
- package/src/models/PostCourseExport.ts +48 -0
- package/src/models/PostDispatchItemLaunch.ts +65 -0
- package/src/models/PostDispatchItemLaunchResponse.ts +113 -0
- package/src/models/PostDispatchLaunch.ts +92 -0
- package/src/models/PostDispatchLaunchResponse.ts +122 -0
- package/src/models/PostDispatchTokenExchange.ts +66 -0
- package/src/models/PutHostedScormStatus.ts +66 -0
- package/src/models/ScormGetValueResponse.ts +18 -0
- package/src/models/ScormNavigationDelivery.ts +113 -0
- package/src/models/ScormNavigationRequest.ts +94 -0
- package/src/models/ScormNavigationResponse.ts +134 -0
- package/src/models/ScormNavigationValidity.ts +156 -0
- package/src/models/ScormRuntimeResponse.ts +84 -0
- package/src/models/ScormSetValueResponse.ts +18 -0
- package/src/models/ScormTerminateResponse.ts +118 -0
- package/src/models/index.ts +21 -0
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { HostedScormRollupPolicy } from './HostedScormRollupPolicy';
|
|
13
|
+
import type { HostedScormAccessPolicy } from './HostedScormAccessPolicy';
|
|
12
14
|
/**
|
|
13
15
|
* Request to create a new export for a course
|
|
14
16
|
* @export
|
|
@@ -33,6 +35,24 @@ export interface PostCourseExport {
|
|
|
33
35
|
* @memberof PostCourseExport
|
|
34
36
|
*/
|
|
35
37
|
sectionIds: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Hosted course mode is an additive backend preview until its player is deployed.
|
|
40
|
+
* @type {PostCourseExportDeliveryModeEnum}
|
|
41
|
+
* @memberof PostCourseExport
|
|
42
|
+
*/
|
|
43
|
+
deliveryMode?: PostCourseExportDeliveryModeEnum;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {HostedScormRollupPolicy}
|
|
47
|
+
* @memberof PostCourseExport
|
|
48
|
+
*/
|
|
49
|
+
rollupPolicy?: HostedScormRollupPolicy;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {HostedScormAccessPolicy}
|
|
53
|
+
* @memberof PostCourseExport
|
|
54
|
+
*/
|
|
55
|
+
accessPolicy?: HostedScormAccessPolicy;
|
|
36
56
|
}
|
|
37
57
|
/**
|
|
38
58
|
* @export
|
|
@@ -43,6 +63,14 @@ export declare const PostCourseExportExportTypeEnum: {
|
|
|
43
63
|
readonly Scorm20044ThEdition: "SCORM_2004_4TH_EDITION";
|
|
44
64
|
};
|
|
45
65
|
export type PostCourseExportExportTypeEnum = typeof PostCourseExportExportTypeEnum[keyof typeof PostCourseExportExportTypeEnum];
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
export declare const PostCourseExportDeliveryModeEnum: {
|
|
70
|
+
readonly LegacyMultiSco: "LEGACY_MULTI_SCO";
|
|
71
|
+
readonly HostedCourseV1: "HOSTED_COURSE_V1";
|
|
72
|
+
};
|
|
73
|
+
export type PostCourseExportDeliveryModeEnum = typeof PostCourseExportDeliveryModeEnum[keyof typeof PostCourseExportDeliveryModeEnum];
|
|
46
74
|
/**
|
|
47
75
|
* Check if a given object implements the PostCourseExport interface.
|
|
48
76
|
*/
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { HostedScormRollupPolicyFromJSON, HostedScormRollupPolicyToJSON, } from './HostedScormRollupPolicy';
|
|
15
|
+
import { HostedScormAccessPolicyFromJSON, HostedScormAccessPolicyToJSON, } from './HostedScormAccessPolicy';
|
|
14
16
|
/**
|
|
15
17
|
* @export
|
|
16
18
|
*/
|
|
@@ -19,6 +21,13 @@ export const PostCourseExportExportTypeEnum = {
|
|
|
19
21
|
Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
|
|
20
22
|
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
|
|
21
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export const PostCourseExportDeliveryModeEnum = {
|
|
28
|
+
LegacyMultiSco: 'LEGACY_MULTI_SCO',
|
|
29
|
+
HostedCourseV1: 'HOSTED_COURSE_V1'
|
|
30
|
+
};
|
|
22
31
|
/**
|
|
23
32
|
* Check if a given object implements the PostCourseExport interface.
|
|
24
33
|
*/
|
|
@@ -42,6 +51,9 @@ export function PostCourseExportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
51
|
'courseVersionId': json['course_version_id'],
|
|
43
52
|
'exportType': json['export_type'],
|
|
44
53
|
'sectionIds': json['section_ids'],
|
|
54
|
+
'deliveryMode': json['delivery_mode'] == null ? undefined : json['delivery_mode'],
|
|
55
|
+
'rollupPolicy': json['rollup_policy'] == null ? undefined : HostedScormRollupPolicyFromJSON(json['rollup_policy']),
|
|
56
|
+
'accessPolicy': json['access_policy'] == null ? undefined : HostedScormAccessPolicyFromJSON(json['access_policy']),
|
|
45
57
|
};
|
|
46
58
|
}
|
|
47
59
|
export function PostCourseExportToJSON(json) {
|
|
@@ -55,5 +67,8 @@ export function PostCourseExportToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
55
67
|
'course_version_id': value['courseVersionId'],
|
|
56
68
|
'export_type': value['exportType'],
|
|
57
69
|
'section_ids': value['sectionIds'],
|
|
70
|
+
'delivery_mode': value['deliveryMode'],
|
|
71
|
+
'rollup_policy': HostedScormRollupPolicyToJSON(value['rollupPolicy']),
|
|
72
|
+
'access_policy': HostedScormAccessPolicyToJSON(value['accessPolicy']),
|
|
58
73
|
};
|
|
59
74
|
}
|
|
@@ -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 PostDispatchItemLaunch
|
|
16
|
+
*/
|
|
17
|
+
export interface PostDispatchItemLaunch {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PostDispatchItemLaunch
|
|
22
|
+
*/
|
|
23
|
+
retake?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostDispatchItemLaunch interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostDispatchItemLaunch(value: object): value is PostDispatchItemLaunch;
|
|
29
|
+
export declare function PostDispatchItemLaunchFromJSON(json: any): PostDispatchItemLaunch;
|
|
30
|
+
export declare function PostDispatchItemLaunchFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchItemLaunch;
|
|
31
|
+
export declare function PostDispatchItemLaunchToJSON(json: any): PostDispatchItemLaunch;
|
|
32
|
+
export declare function PostDispatchItemLaunchToJSONTyped(value?: PostDispatchItemLaunch | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 PostDispatchItemLaunch interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostDispatchItemLaunch(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PostDispatchItemLaunchFromJSON(json) {
|
|
21
|
+
return PostDispatchItemLaunchFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PostDispatchItemLaunchFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'retake': json['retake'] == null ? undefined : json['retake'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function PostDispatchItemLaunchToJSON(json) {
|
|
32
|
+
return PostDispatchItemLaunchToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function PostDispatchItemLaunchToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'retake': value['retake'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostDispatchItemLaunchResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface PostDispatchItemLaunchResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostDispatchItemLaunchResponse
|
|
22
|
+
*/
|
|
23
|
+
itemId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {PostDispatchItemLaunchResponseKindEnum}
|
|
27
|
+
* @memberof PostDispatchItemLaunchResponse
|
|
28
|
+
*/
|
|
29
|
+
kind: PostDispatchItemLaunchResponseKindEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostDispatchItemLaunchResponse
|
|
34
|
+
*/
|
|
35
|
+
sessionId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PostDispatchItemLaunchResponse
|
|
40
|
+
*/
|
|
41
|
+
attemptNumber: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PostDispatchItemLaunchResponse
|
|
46
|
+
*/
|
|
47
|
+
launchUrl: string | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const PostDispatchItemLaunchResponseKindEnum: {
|
|
53
|
+
readonly Resource: "RESOURCE";
|
|
54
|
+
readonly Quiz: "QUIZ";
|
|
55
|
+
};
|
|
56
|
+
export type PostDispatchItemLaunchResponseKindEnum = typeof PostDispatchItemLaunchResponseKindEnum[keyof typeof PostDispatchItemLaunchResponseKindEnum];
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the PostDispatchItemLaunchResponse interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfPostDispatchItemLaunchResponse(value: object): value is PostDispatchItemLaunchResponse;
|
|
61
|
+
export declare function PostDispatchItemLaunchResponseFromJSON(json: any): PostDispatchItemLaunchResponse;
|
|
62
|
+
export declare function PostDispatchItemLaunchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchItemLaunchResponse;
|
|
63
|
+
export declare function PostDispatchItemLaunchResponseToJSON(json: any): PostDispatchItemLaunchResponse;
|
|
64
|
+
export declare function PostDispatchItemLaunchResponseToJSONTyped(value?: PostDispatchItemLaunchResponse | 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 PostDispatchItemLaunchResponseKindEnum = {
|
|
18
|
+
Resource: 'RESOURCE',
|
|
19
|
+
Quiz: 'QUIZ'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostDispatchItemLaunchResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfPostDispatchItemLaunchResponse(value) {
|
|
25
|
+
if (!('itemId' in value) || value['itemId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('sessionId' in value) || value['sessionId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function PostDispatchItemLaunchResponseFromJSON(json) {
|
|
38
|
+
return PostDispatchItemLaunchResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function PostDispatchItemLaunchResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'itemId': json['item_id'],
|
|
46
|
+
'kind': json['kind'],
|
|
47
|
+
'sessionId': json['session_id'],
|
|
48
|
+
'attemptNumber': json['attempt_number'],
|
|
49
|
+
'launchUrl': json['launch_url'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function PostDispatchItemLaunchResponseToJSON(json) {
|
|
53
|
+
return PostDispatchItemLaunchResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function PostDispatchItemLaunchResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'item_id': value['itemId'],
|
|
61
|
+
'kind': value['kind'],
|
|
62
|
+
'session_id': value['sessionId'],
|
|
63
|
+
'attempt_number': value['attemptNumber'],
|
|
64
|
+
'launch_url': value['launchUrl'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 PostDispatchLaunch
|
|
16
|
+
*/
|
|
17
|
+
export interface PostDispatchLaunch {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostDispatchLaunch
|
|
22
|
+
*/
|
|
23
|
+
dispatchId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostDispatchLaunch
|
|
28
|
+
*/
|
|
29
|
+
learnerId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostDispatchLaunch
|
|
34
|
+
*/
|
|
35
|
+
learnerName: string;
|
|
36
|
+
/**
|
|
37
|
+
* Legacy multi-SCO placement identifier.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostDispatchLaunch
|
|
40
|
+
*/
|
|
41
|
+
itemId?: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PostDispatchLaunch interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPostDispatchLaunch(value: object): value is PostDispatchLaunch;
|
|
47
|
+
export declare function PostDispatchLaunchFromJSON(json: any): PostDispatchLaunch;
|
|
48
|
+
export declare function PostDispatchLaunchFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchLaunch;
|
|
49
|
+
export declare function PostDispatchLaunchToJSON(json: any): PostDispatchLaunch;
|
|
50
|
+
export declare function PostDispatchLaunchToJSONTyped(value?: PostDispatchLaunch | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 PostDispatchLaunch interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostDispatchLaunch(value) {
|
|
18
|
+
if (!('dispatchId' in value) || value['dispatchId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('learnerId' in value) || value['learnerId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('learnerName' in value) || value['learnerName'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function PostDispatchLaunchFromJSON(json) {
|
|
27
|
+
return PostDispatchLaunchFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function PostDispatchLaunchFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'dispatchId': json['dispatch_id'],
|
|
35
|
+
'learnerId': json['learner_id'],
|
|
36
|
+
'learnerName': json['learner_name'],
|
|
37
|
+
'itemId': json['item_id'] == null ? undefined : json['item_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function PostDispatchLaunchToJSON(json) {
|
|
41
|
+
return PostDispatchLaunchToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function PostDispatchLaunchToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'dispatch_id': value['dispatchId'],
|
|
49
|
+
'learner_id': value['learnerId'],
|
|
50
|
+
'learner_name': value['learnerName'],
|
|
51
|
+
'item_id': value['itemId'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostDispatchLaunchResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface PostDispatchLaunchResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {PostDispatchLaunchResponseRuntimeModeEnum}
|
|
21
|
+
* @memberof PostDispatchLaunchResponse
|
|
22
|
+
*/
|
|
23
|
+
runtimeMode: PostDispatchLaunchResponseRuntimeModeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostDispatchLaunchResponse
|
|
28
|
+
*/
|
|
29
|
+
launchUrl: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostDispatchLaunchResponse
|
|
34
|
+
*/
|
|
35
|
+
token: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostDispatchLaunchResponse
|
|
40
|
+
*/
|
|
41
|
+
launchCode: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PostDispatchLaunchResponse
|
|
46
|
+
*/
|
|
47
|
+
registrationId: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PostDispatchLaunchResponse
|
|
52
|
+
*/
|
|
53
|
+
expiresAt: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const PostDispatchLaunchResponseRuntimeModeEnum: {
|
|
59
|
+
readonly LegacyMultiSco: "LEGACY_MULTI_SCO";
|
|
60
|
+
readonly HostedCourseV1: "HOSTED_COURSE_V1";
|
|
61
|
+
};
|
|
62
|
+
export type PostDispatchLaunchResponseRuntimeModeEnum = typeof PostDispatchLaunchResponseRuntimeModeEnum[keyof typeof PostDispatchLaunchResponseRuntimeModeEnum];
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the PostDispatchLaunchResponse interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfPostDispatchLaunchResponse(value: object): value is PostDispatchLaunchResponse;
|
|
67
|
+
export declare function PostDispatchLaunchResponseFromJSON(json: any): PostDispatchLaunchResponse;
|
|
68
|
+
export declare function PostDispatchLaunchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchLaunchResponse;
|
|
69
|
+
export declare function PostDispatchLaunchResponseToJSON(json: any): PostDispatchLaunchResponse;
|
|
70
|
+
export declare function PostDispatchLaunchResponseToJSONTyped(value?: PostDispatchLaunchResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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 PostDispatchLaunchResponseRuntimeModeEnum = {
|
|
18
|
+
LegacyMultiSco: 'LEGACY_MULTI_SCO',
|
|
19
|
+
HostedCourseV1: 'HOSTED_COURSE_V1'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostDispatchLaunchResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfPostDispatchLaunchResponse(value) {
|
|
25
|
+
if (!('runtimeMode' in value) || value['runtimeMode'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('launchCode' in value) || value['launchCode'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('registrationId' in value) || value['registrationId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function PostDispatchLaunchResponseFromJSON(json) {
|
|
40
|
+
return PostDispatchLaunchResponseFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function PostDispatchLaunchResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'runtimeMode': json['runtime_mode'],
|
|
48
|
+
'launchUrl': json['launch_url'],
|
|
49
|
+
'token': json['token'],
|
|
50
|
+
'launchCode': json['launch_code'],
|
|
51
|
+
'registrationId': json['registration_id'],
|
|
52
|
+
'expiresAt': json['expires_at'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export function PostDispatchLaunchResponseToJSON(json) {
|
|
56
|
+
return PostDispatchLaunchResponseToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
export function PostDispatchLaunchResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'runtime_mode': value['runtimeMode'],
|
|
64
|
+
'launch_url': value['launchUrl'],
|
|
65
|
+
'token': value['token'],
|
|
66
|
+
'launch_code': value['launchCode'],
|
|
67
|
+
'registration_id': value['registrationId'],
|
|
68
|
+
'expires_at': value['expiresAt'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -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 PostDispatchTokenExchange
|
|
16
|
+
*/
|
|
17
|
+
export interface PostDispatchTokenExchange {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostDispatchTokenExchange
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostDispatchTokenExchange interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostDispatchTokenExchange(value: object): value is PostDispatchTokenExchange;
|
|
29
|
+
export declare function PostDispatchTokenExchangeFromJSON(json: any): PostDispatchTokenExchange;
|
|
30
|
+
export declare function PostDispatchTokenExchangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchTokenExchange;
|
|
31
|
+
export declare function PostDispatchTokenExchangeToJSON(json: any): PostDispatchTokenExchange;
|
|
32
|
+
export declare function PostDispatchTokenExchangeToJSONTyped(value?: PostDispatchTokenExchange | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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 PostDispatchTokenExchange interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostDispatchTokenExchange(value) {
|
|
18
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostDispatchTokenExchangeFromJSON(json) {
|
|
23
|
+
return PostDispatchTokenExchangeFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostDispatchTokenExchangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'code': json['code'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PostDispatchTokenExchangeToJSON(json) {
|
|
34
|
+
return PostDispatchTokenExchangeToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PostDispatchTokenExchangeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'code': value['code'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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;
|