@easyedu/js-lsm-api 1.117.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 +46 -0
- package/README.md +36 -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/IntegrationApi.d.ts +2 -0
- package/dist/apis/IntegrationApi.js +3 -1
- 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/IntegrationApi.d.ts +2 -0
- package/dist/esm/apis/IntegrationApi.js +3 -1
- package/dist/esm/apis/PlayerApi.d.ts +26 -6
- package/dist/esm/apis/PlayerApi.js +57 -6
- package/dist/esm/models/CustomWebhookIntegration.d.ts +2 -0
- package/dist/esm/models/CustomWebhookIntegration.js +3 -1
- 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/IntegrationEvent.d.ts +2 -0
- package/dist/esm/models/IntegrationEvent.js +3 -1
- package/dist/esm/models/IntegrationEventData.d.ts +16 -2
- package/dist/esm/models/IntegrationEventData.js +10 -0
- package/dist/esm/models/IntegrationEventInvitation.d.ts +71 -0
- package/dist/esm/models/IntegrationEventInvitation.js +71 -0
- package/dist/esm/models/IntegrationEventUser.d.ts +50 -0
- package/dist/esm/models/IntegrationEventUser.js +55 -0
- package/dist/esm/models/PostCourseExport.d.ts +28 -0
- package/dist/esm/models/PostCourseExport.js +15 -0
- package/dist/esm/models/PostCustomWebhookIntegration.d.ts +2 -0
- package/dist/esm/models/PostCustomWebhookIntegration.js +3 -1
- 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/PostZapierSubscription.d.ts +2 -0
- package/dist/esm/models/PostZapierSubscription.js +3 -1
- package/dist/esm/models/PutCustomWebhookIntegration.d.ts +2 -0
- package/dist/esm/models/PutCustomWebhookIntegration.js +3 -1
- 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/ZapierSubscription.d.ts +2 -0
- package/dist/esm/models/ZapierSubscription.js +3 -1
- package/dist/esm/models/index.d.ts +23 -0
- package/dist/esm/models/index.js +23 -0
- package/dist/models/CustomWebhookIntegration.d.ts +2 -0
- package/dist/models/CustomWebhookIntegration.js +3 -1
- 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/IntegrationEvent.d.ts +2 -0
- package/dist/models/IntegrationEvent.js +3 -1
- package/dist/models/IntegrationEventData.d.ts +16 -2
- package/dist/models/IntegrationEventData.js +10 -0
- package/dist/models/IntegrationEventInvitation.d.ts +71 -0
- package/dist/models/IntegrationEventInvitation.js +79 -0
- package/dist/models/IntegrationEventUser.d.ts +50 -0
- package/dist/models/IntegrationEventUser.js +62 -0
- package/dist/models/PostCourseExport.d.ts +28 -0
- package/dist/models/PostCourseExport.js +16 -1
- package/dist/models/PostCustomWebhookIntegration.d.ts +2 -0
- package/dist/models/PostCustomWebhookIntegration.js +3 -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/PostZapierSubscription.d.ts +2 -0
- package/dist/models/PostZapierSubscription.js +3 -1
- package/dist/models/PutCustomWebhookIntegration.d.ts +2 -0
- package/dist/models/PutCustomWebhookIntegration.js +3 -1
- 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/ZapierSubscription.d.ts +2 -0
- package/dist/models/ZapierSubscription.js +3 -1
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +23 -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/IntegrationApi.md +2 -2
- package/docs/IntegrationEventData.md +4 -0
- package/docs/IntegrationEventInvitation.md +45 -0
- package/docs/IntegrationEventUser.md +41 -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/IntegrationApi.ts +3 -1
- package/src/apis/PlayerApi.ts +95 -12
- package/src/models/CustomWebhookIntegration.ts +3 -1
- 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/IntegrationEvent.ts +3 -1
- package/src/models/IntegrationEventData.ts +34 -2
- package/src/models/IntegrationEventInvitation.ts +130 -0
- package/src/models/IntegrationEventUser.ts +93 -0
- package/src/models/PostCourseExport.ts +48 -0
- package/src/models/PostCustomWebhookIntegration.ts +3 -1
- 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/PostZapierSubscription.ts +3 -1
- package/src/models/PutCustomWebhookIntegration.ts +3 -1
- 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/ZapierSubscription.ts +3 -1
- package/src/models/index.ts +23 -0
|
@@ -76,7 +76,9 @@ export interface CustomWebhookIntegration {
|
|
|
76
76
|
export const CustomWebhookIntegrationEventTypesEnum = {
|
|
77
77
|
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
78
78
|
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
79
|
-
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
|
|
79
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
|
|
80
|
+
ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
|
|
81
|
+
ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
|
|
80
82
|
} as const;
|
|
81
83
|
export type CustomWebhookIntegrationEventTypesEnum = typeof CustomWebhookIntegrationEventTypesEnum[keyof typeof CustomWebhookIntegrationEventTypesEnum];
|
|
82
84
|
|
|
@@ -0,0 +1,103 @@
|
|
|
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 DispatchTokenResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface DispatchTokenResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DispatchTokenResponse
|
|
26
|
+
*/
|
|
27
|
+
accessToken: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {DispatchTokenResponseTokenTypeEnum}
|
|
31
|
+
* @memberof DispatchTokenResponse
|
|
32
|
+
*/
|
|
33
|
+
tokenType: DispatchTokenResponseTokenTypeEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DispatchTokenResponse
|
|
38
|
+
*/
|
|
39
|
+
registrationId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof DispatchTokenResponse
|
|
44
|
+
*/
|
|
45
|
+
expiresAt: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const DispatchTokenResponseTokenTypeEnum = {
|
|
53
|
+
Dispatch: 'Dispatch'
|
|
54
|
+
} as const;
|
|
55
|
+
export type DispatchTokenResponseTokenTypeEnum = typeof DispatchTokenResponseTokenTypeEnum[keyof typeof DispatchTokenResponseTokenTypeEnum];
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the DispatchTokenResponse interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfDispatchTokenResponse(value: object): value is DispatchTokenResponse {
|
|
62
|
+
if (!('accessToken' in value) || value['accessToken'] === undefined) return false;
|
|
63
|
+
if (!('tokenType' in value) || value['tokenType'] === undefined) return false;
|
|
64
|
+
if (!('registrationId' in value) || value['registrationId'] === undefined) return false;
|
|
65
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function DispatchTokenResponseFromJSON(json: any): DispatchTokenResponse {
|
|
70
|
+
return DispatchTokenResponseFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function DispatchTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DispatchTokenResponse {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'accessToken': json['access_token'],
|
|
80
|
+
'tokenType': json['token_type'],
|
|
81
|
+
'registrationId': json['registration_id'],
|
|
82
|
+
'expiresAt': json['expires_at'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function DispatchTokenResponseToJSON(json: any): DispatchTokenResponse {
|
|
87
|
+
return DispatchTokenResponseToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function DispatchTokenResponseToJSONTyped(value?: DispatchTokenResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'access_token': value['accessToken'],
|
|
98
|
+
'token_type': value['tokenType'],
|
|
99
|
+
'registration_id': value['registrationId'],
|
|
100
|
+
'expires_at': value['expiresAt'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { HostedScormRollupPolicy } from './HostedScormRollupPolicy';
|
|
17
|
+
import {
|
|
18
|
+
HostedScormRollupPolicyFromJSON,
|
|
19
|
+
HostedScormRollupPolicyFromJSONTyped,
|
|
20
|
+
HostedScormRollupPolicyToJSON,
|
|
21
|
+
HostedScormRollupPolicyToJSONTyped,
|
|
22
|
+
} from './HostedScormRollupPolicy';
|
|
23
|
+
import type { HostedScormAccessPolicy } from './HostedScormAccessPolicy';
|
|
24
|
+
import {
|
|
25
|
+
HostedScormAccessPolicyFromJSON,
|
|
26
|
+
HostedScormAccessPolicyFromJSONTyped,
|
|
27
|
+
HostedScormAccessPolicyToJSON,
|
|
28
|
+
HostedScormAccessPolicyToJSONTyped,
|
|
29
|
+
} from './HostedScormAccessPolicy';
|
|
30
|
+
|
|
16
31
|
/**
|
|
17
32
|
* Details of a course export
|
|
18
33
|
* @export
|
|
@@ -91,6 +106,48 @@ export interface GetCourseExport {
|
|
|
91
106
|
* @memberof GetCourseExport
|
|
92
107
|
*/
|
|
93
108
|
createdAt: number;
|
|
109
|
+
/**
|
|
110
|
+
* Runtime package shape used by this export.
|
|
111
|
+
* @type {GetCourseExportDeliveryModeEnum}
|
|
112
|
+
* @memberof GetCourseExport
|
|
113
|
+
*/
|
|
114
|
+
deliveryMode: GetCourseExportDeliveryModeEnum;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {HostedScormRollupPolicy}
|
|
118
|
+
* @memberof GetCourseExport
|
|
119
|
+
*/
|
|
120
|
+
rollupPolicy: HostedScormRollupPolicy;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {HostedScormAccessPolicy}
|
|
124
|
+
* @memberof GetCourseExport
|
|
125
|
+
*/
|
|
126
|
+
accessPolicy: HostedScormAccessPolicy;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {GetCourseExportRuntimeStatusEnum}
|
|
130
|
+
* @memberof GetCourseExport
|
|
131
|
+
*/
|
|
132
|
+
runtimeStatus: GetCourseExportRuntimeStatusEnum;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {number}
|
|
136
|
+
* @memberof GetCourseExport
|
|
137
|
+
*/
|
|
138
|
+
registeredLearners: number;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @type {number}
|
|
142
|
+
* @memberof GetCourseExport
|
|
143
|
+
*/
|
|
144
|
+
totalLaunches: number;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @type {number}
|
|
148
|
+
* @memberof GetCourseExport
|
|
149
|
+
*/
|
|
150
|
+
lastLaunchAt?: number | null;
|
|
94
151
|
}
|
|
95
152
|
|
|
96
153
|
|
|
@@ -115,6 +172,26 @@ export const GetCourseExportStatusEnum = {
|
|
|
115
172
|
} as const;
|
|
116
173
|
export type GetCourseExportStatusEnum = typeof GetCourseExportStatusEnum[keyof typeof GetCourseExportStatusEnum];
|
|
117
174
|
|
|
175
|
+
/**
|
|
176
|
+
* @export
|
|
177
|
+
*/
|
|
178
|
+
export const GetCourseExportDeliveryModeEnum = {
|
|
179
|
+
LegacyMultiSco: 'LEGACY_MULTI_SCO',
|
|
180
|
+
HostedCourseV1: 'HOSTED_COURSE_V1'
|
|
181
|
+
} as const;
|
|
182
|
+
export type GetCourseExportDeliveryModeEnum = typeof GetCourseExportDeliveryModeEnum[keyof typeof GetCourseExportDeliveryModeEnum];
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @export
|
|
186
|
+
*/
|
|
187
|
+
export const GetCourseExportRuntimeStatusEnum = {
|
|
188
|
+
LegacyActive: 'LEGACY_ACTIVE',
|
|
189
|
+
BackendReady: 'BACKEND_READY',
|
|
190
|
+
PlayerUnavailable: 'PLAYER_UNAVAILABLE',
|
|
191
|
+
Revoked: 'REVOKED'
|
|
192
|
+
} as const;
|
|
193
|
+
export type GetCourseExportRuntimeStatusEnum = typeof GetCourseExportRuntimeStatusEnum[keyof typeof GetCourseExportRuntimeStatusEnum];
|
|
194
|
+
|
|
118
195
|
|
|
119
196
|
/**
|
|
120
197
|
* Check if a given object implements the GetCourseExport interface.
|
|
@@ -128,6 +205,12 @@ export function instanceOfGetCourseExport(value: object): value is GetCourseExpo
|
|
|
128
205
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
129
206
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
130
207
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
208
|
+
if (!('deliveryMode' in value) || value['deliveryMode'] === undefined) return false;
|
|
209
|
+
if (!('rollupPolicy' in value) || value['rollupPolicy'] === undefined) return false;
|
|
210
|
+
if (!('accessPolicy' in value) || value['accessPolicy'] === undefined) return false;
|
|
211
|
+
if (!('runtimeStatus' in value) || value['runtimeStatus'] === undefined) return false;
|
|
212
|
+
if (!('registeredLearners' in value) || value['registeredLearners'] === undefined) return false;
|
|
213
|
+
if (!('totalLaunches' in value) || value['totalLaunches'] === undefined) return false;
|
|
131
214
|
return true;
|
|
132
215
|
}
|
|
133
216
|
|
|
@@ -153,6 +236,13 @@ export function GetCourseExportFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
153
236
|
'fileSize': json['file_size'] == null ? undefined : json['file_size'],
|
|
154
237
|
'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
|
|
155
238
|
'createdAt': json['created_at'],
|
|
239
|
+
'deliveryMode': json['delivery_mode'],
|
|
240
|
+
'rollupPolicy': HostedScormRollupPolicyFromJSON(json['rollup_policy']),
|
|
241
|
+
'accessPolicy': HostedScormAccessPolicyFromJSON(json['access_policy']),
|
|
242
|
+
'runtimeStatus': json['runtime_status'],
|
|
243
|
+
'registeredLearners': json['registered_learners'],
|
|
244
|
+
'totalLaunches': json['total_launches'],
|
|
245
|
+
'lastLaunchAt': json['last_launch_at'] == null ? undefined : json['last_launch_at'],
|
|
156
246
|
};
|
|
157
247
|
}
|
|
158
248
|
|
|
@@ -179,6 +269,13 @@ export function GetCourseExportToJSONTyped(value?: GetCourseExport | null, ignor
|
|
|
179
269
|
'file_size': value['fileSize'],
|
|
180
270
|
'error_message': value['errorMessage'],
|
|
181
271
|
'created_at': value['createdAt'],
|
|
272
|
+
'delivery_mode': value['deliveryMode'],
|
|
273
|
+
'rollup_policy': HostedScormRollupPolicyToJSON(value['rollupPolicy']),
|
|
274
|
+
'access_policy': HostedScormAccessPolicyToJSON(value['accessPolicy']),
|
|
275
|
+
'runtime_status': value['runtimeStatus'],
|
|
276
|
+
'registered_learners': value['registeredLearners'],
|
|
277
|
+
'total_launches': value['totalLaunches'],
|
|
278
|
+
'last_launch_at': value['lastLaunchAt'],
|
|
182
279
|
};
|
|
183
280
|
}
|
|
184
281
|
|
|
@@ -0,0 +1,153 @@
|
|
|
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
|
+
import type { HostedScormOutlineEntry } from './HostedScormOutlineEntry';
|
|
17
|
+
import {
|
|
18
|
+
HostedScormOutlineEntryFromJSON,
|
|
19
|
+
HostedScormOutlineEntryFromJSONTyped,
|
|
20
|
+
HostedScormOutlineEntryToJSON,
|
|
21
|
+
HostedScormOutlineEntryToJSONTyped,
|
|
22
|
+
} from './HostedScormOutlineEntry';
|
|
23
|
+
import type { GetDispatchRollup } from './GetDispatchRollup';
|
|
24
|
+
import {
|
|
25
|
+
GetDispatchRollupFromJSON,
|
|
26
|
+
GetDispatchRollupFromJSONTyped,
|
|
27
|
+
GetDispatchRollupToJSON,
|
|
28
|
+
GetDispatchRollupToJSONTyped,
|
|
29
|
+
} from './GetDispatchRollup';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetDispatchCourse
|
|
35
|
+
*/
|
|
36
|
+
export interface GetDispatchCourse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetDispatchCourse
|
|
41
|
+
*/
|
|
42
|
+
dispatchId: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GetDispatchCourse
|
|
47
|
+
*/
|
|
48
|
+
registrationId: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GetDispatchCourse
|
|
53
|
+
*/
|
|
54
|
+
courseId: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof GetDispatchCourse
|
|
59
|
+
*/
|
|
60
|
+
courseVersionId: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof GetDispatchCourse
|
|
65
|
+
*/
|
|
66
|
+
title: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof GetDispatchCourse
|
|
71
|
+
*/
|
|
72
|
+
progressionMode: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof GetDispatchCourse
|
|
77
|
+
*/
|
|
78
|
+
currentItemId: string | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<HostedScormOutlineEntry>}
|
|
82
|
+
* @memberof GetDispatchCourse
|
|
83
|
+
*/
|
|
84
|
+
outline: Array<HostedScormOutlineEntry>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {GetDispatchRollup}
|
|
88
|
+
* @memberof GetDispatchCourse
|
|
89
|
+
*/
|
|
90
|
+
rollup: GetDispatchRollup;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Check if a given object implements the GetDispatchCourse interface.
|
|
95
|
+
*/
|
|
96
|
+
export function instanceOfGetDispatchCourse(value: object): value is GetDispatchCourse {
|
|
97
|
+
if (!('dispatchId' in value) || value['dispatchId'] === undefined) return false;
|
|
98
|
+
if (!('registrationId' in value) || value['registrationId'] === undefined) return false;
|
|
99
|
+
if (!('courseId' in value) || value['courseId'] === undefined) return false;
|
|
100
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined) return false;
|
|
101
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
102
|
+
if (!('progressionMode' in value) || value['progressionMode'] === undefined) return false;
|
|
103
|
+
if (!('currentItemId' in value) || value['currentItemId'] === undefined) return false;
|
|
104
|
+
if (!('outline' in value) || value['outline'] === undefined) return false;
|
|
105
|
+
if (!('rollup' in value) || value['rollup'] === undefined) return false;
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function GetDispatchCourseFromJSON(json: any): GetDispatchCourse {
|
|
110
|
+
return GetDispatchCourseFromJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function GetDispatchCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDispatchCourse {
|
|
114
|
+
if (json == null) {
|
|
115
|
+
return json;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'dispatchId': json['dispatch_id'],
|
|
120
|
+
'registrationId': json['registration_id'],
|
|
121
|
+
'courseId': json['course_id'],
|
|
122
|
+
'courseVersionId': json['course_version_id'],
|
|
123
|
+
'title': json['title'],
|
|
124
|
+
'progressionMode': json['progression_mode'],
|
|
125
|
+
'currentItemId': json['current_item_id'],
|
|
126
|
+
'outline': ((json['outline'] as Array<any>).map(HostedScormOutlineEntryFromJSON)),
|
|
127
|
+
'rollup': GetDispatchRollupFromJSON(json['rollup']),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function GetDispatchCourseToJSON(json: any): GetDispatchCourse {
|
|
132
|
+
return GetDispatchCourseToJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function GetDispatchCourseToJSONTyped(value?: GetDispatchCourse | null, ignoreDiscriminator: boolean = false): any {
|
|
136
|
+
if (value == null) {
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
|
|
142
|
+
'dispatch_id': value['dispatchId'],
|
|
143
|
+
'registration_id': value['registrationId'],
|
|
144
|
+
'course_id': value['courseId'],
|
|
145
|
+
'course_version_id': value['courseVersionId'],
|
|
146
|
+
'title': value['title'],
|
|
147
|
+
'progression_mode': value['progressionMode'],
|
|
148
|
+
'current_item_id': value['currentItemId'],
|
|
149
|
+
'outline': ((value['outline'] as Array<any>).map(HostedScormOutlineEntryToJSON)),
|
|
150
|
+
'rollup': GetDispatchRollupToJSON(value['rollup']),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
@@ -0,0 +1,169 @@
|
|
|
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 GetDispatchRollup
|
|
20
|
+
*/
|
|
21
|
+
export interface GetDispatchRollup {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {GetDispatchRollupCompletionStatusEnum}
|
|
25
|
+
* @memberof GetDispatchRollup
|
|
26
|
+
*/
|
|
27
|
+
completionStatus: GetDispatchRollupCompletionStatusEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {GetDispatchRollupSuccessStatusEnum}
|
|
31
|
+
* @memberof GetDispatchRollup
|
|
32
|
+
*/
|
|
33
|
+
successStatus: GetDispatchRollupSuccessStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof GetDispatchRollup
|
|
38
|
+
*/
|
|
39
|
+
scoreRaw: number | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetDispatchRollup
|
|
44
|
+
*/
|
|
45
|
+
scoreScaled: number | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof GetDispatchRollup
|
|
50
|
+
*/
|
|
51
|
+
progressMeasure: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof GetDispatchRollup
|
|
56
|
+
*/
|
|
57
|
+
totalItems: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof GetDispatchRollup
|
|
62
|
+
*/
|
|
63
|
+
completedItems: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof GetDispatchRollup
|
|
68
|
+
*/
|
|
69
|
+
requiredItems: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof GetDispatchRollup
|
|
74
|
+
*/
|
|
75
|
+
completedRequiredItems: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof GetDispatchRollup
|
|
80
|
+
*/
|
|
81
|
+
pendingManualGrading: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export const GetDispatchRollupCompletionStatusEnum = {
|
|
89
|
+
NotAttempted: 'not_attempted',
|
|
90
|
+
Incomplete: 'incomplete',
|
|
91
|
+
Completed: 'completed'
|
|
92
|
+
} as const;
|
|
93
|
+
export type GetDispatchRollupCompletionStatusEnum = typeof GetDispatchRollupCompletionStatusEnum[keyof typeof GetDispatchRollupCompletionStatusEnum];
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export const GetDispatchRollupSuccessStatusEnum = {
|
|
99
|
+
Unknown: 'unknown',
|
|
100
|
+
Passed: 'passed',
|
|
101
|
+
Failed: 'failed'
|
|
102
|
+
} as const;
|
|
103
|
+
export type GetDispatchRollupSuccessStatusEnum = typeof GetDispatchRollupSuccessStatusEnum[keyof typeof GetDispatchRollupSuccessStatusEnum];
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Check if a given object implements the GetDispatchRollup interface.
|
|
108
|
+
*/
|
|
109
|
+
export function instanceOfGetDispatchRollup(value: object): value is GetDispatchRollup {
|
|
110
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined) return false;
|
|
111
|
+
if (!('successStatus' in value) || value['successStatus'] === undefined) return false;
|
|
112
|
+
if (!('scoreRaw' in value) || value['scoreRaw'] === undefined) return false;
|
|
113
|
+
if (!('scoreScaled' in value) || value['scoreScaled'] === undefined) return false;
|
|
114
|
+
if (!('progressMeasure' in value) || value['progressMeasure'] === undefined) return false;
|
|
115
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
|
|
116
|
+
if (!('completedItems' in value) || value['completedItems'] === undefined) return false;
|
|
117
|
+
if (!('requiredItems' in value) || value['requiredItems'] === undefined) return false;
|
|
118
|
+
if (!('completedRequiredItems' in value) || value['completedRequiredItems'] === undefined) return false;
|
|
119
|
+
if (!('pendingManualGrading' in value) || value['pendingManualGrading'] === undefined) return false;
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function GetDispatchRollupFromJSON(json: any): GetDispatchRollup {
|
|
124
|
+
return GetDispatchRollupFromJSONTyped(json, false);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function GetDispatchRollupFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDispatchRollup {
|
|
128
|
+
if (json == null) {
|
|
129
|
+
return json;
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
|
|
133
|
+
'completionStatus': json['completion_status'],
|
|
134
|
+
'successStatus': json['success_status'],
|
|
135
|
+
'scoreRaw': json['score_raw'],
|
|
136
|
+
'scoreScaled': json['score_scaled'],
|
|
137
|
+
'progressMeasure': json['progress_measure'],
|
|
138
|
+
'totalItems': json['total_items'],
|
|
139
|
+
'completedItems': json['completed_items'],
|
|
140
|
+
'requiredItems': json['required_items'],
|
|
141
|
+
'completedRequiredItems': json['completed_required_items'],
|
|
142
|
+
'pendingManualGrading': json['pending_manual_grading'],
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function GetDispatchRollupToJSON(json: any): GetDispatchRollup {
|
|
147
|
+
return GetDispatchRollupToJSONTyped(json, false);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function GetDispatchRollupToJSONTyped(value?: GetDispatchRollup | null, ignoreDiscriminator: boolean = false): any {
|
|
151
|
+
if (value == null) {
|
|
152
|
+
return value;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return {
|
|
156
|
+
|
|
157
|
+
'completion_status': value['completionStatus'],
|
|
158
|
+
'success_status': value['successStatus'],
|
|
159
|
+
'score_raw': value['scoreRaw'],
|
|
160
|
+
'score_scaled': value['scoreScaled'],
|
|
161
|
+
'progress_measure': value['progressMeasure'],
|
|
162
|
+
'total_items': value['totalItems'],
|
|
163
|
+
'completed_items': value['completedItems'],
|
|
164
|
+
'required_items': value['requiredItems'],
|
|
165
|
+
'completed_required_items': value['completedRequiredItems'],
|
|
166
|
+
'pending_manual_grading': value['pendingManualGrading'],
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|