@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
|
@@ -0,0 +1,75 @@
|
|
|
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 HostedScormScoreItem
|
|
20
|
+
*/
|
|
21
|
+
export interface HostedScormScoreItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof HostedScormScoreItem
|
|
26
|
+
*/
|
|
27
|
+
itemId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof HostedScormScoreItem
|
|
32
|
+
*/
|
|
33
|
+
weight: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the HostedScormScoreItem interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfHostedScormScoreItem(value: object): value is HostedScormScoreItem {
|
|
40
|
+
if (!('itemId' in value) || value['itemId'] === undefined) return false;
|
|
41
|
+
if (!('weight' in value) || value['weight'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function HostedScormScoreItemFromJSON(json: any): HostedScormScoreItem {
|
|
46
|
+
return HostedScormScoreItemFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function HostedScormScoreItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostedScormScoreItem {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'itemId': json['item_id'],
|
|
56
|
+
'weight': json['weight'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function HostedScormScoreItemToJSON(json: any): HostedScormScoreItem {
|
|
61
|
+
return HostedScormScoreItemToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function HostedScormScoreItemToJSONTyped(value?: HostedScormScoreItem | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'item_id': value['itemId'],
|
|
72
|
+
'weight': value['weight'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -92,7 +92,9 @@ export type IntegrationEventSpecversionEnum = typeof IntegrationEventSpecversion
|
|
|
92
92
|
export const IntegrationEventTypeEnum = {
|
|
93
93
|
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
94
94
|
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
95
|
-
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
|
|
95
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
|
|
96
|
+
ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
|
|
97
|
+
ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
|
|
96
98
|
} as const;
|
|
97
99
|
export type IntegrationEventTypeEnum = typeof IntegrationEventTypeEnum[keyof typeof IntegrationEventTypeEnum];
|
|
98
100
|
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { IntegrationEventUser } from './IntegrationEventUser';
|
|
17
|
+
import {
|
|
18
|
+
IntegrationEventUserFromJSON,
|
|
19
|
+
IntegrationEventUserFromJSONTyped,
|
|
20
|
+
IntegrationEventUserToJSON,
|
|
21
|
+
IntegrationEventUserToJSONTyped,
|
|
22
|
+
} from './IntegrationEventUser';
|
|
16
23
|
import type { IntegrationEventLearner } from './IntegrationEventLearner';
|
|
17
24
|
import {
|
|
18
25
|
IntegrationEventLearnerFromJSON,
|
|
@@ -48,6 +55,13 @@ import {
|
|
|
48
55
|
IntegrationEventCourseToJSON,
|
|
49
56
|
IntegrationEventCourseToJSONTyped,
|
|
50
57
|
} from './IntegrationEventCourse';
|
|
58
|
+
import type { IntegrationEventInvitation } from './IntegrationEventInvitation';
|
|
59
|
+
import {
|
|
60
|
+
IntegrationEventInvitationFromJSON,
|
|
61
|
+
IntegrationEventInvitationFromJSONTyped,
|
|
62
|
+
IntegrationEventInvitationToJSON,
|
|
63
|
+
IntegrationEventInvitationToJSONTyped,
|
|
64
|
+
} from './IntegrationEventInvitation';
|
|
51
65
|
|
|
52
66
|
/**
|
|
53
67
|
*
|
|
@@ -66,13 +80,19 @@ export interface IntegrationEventData {
|
|
|
66
80
|
* @type {IntegrationEventLearner}
|
|
67
81
|
* @memberof IntegrationEventData
|
|
68
82
|
*/
|
|
69
|
-
learner: IntegrationEventLearner;
|
|
83
|
+
learner: IntegrationEventLearner | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {IntegrationEventUser}
|
|
87
|
+
* @memberof IntegrationEventData
|
|
88
|
+
*/
|
|
89
|
+
user: IntegrationEventUser | null;
|
|
70
90
|
/**
|
|
71
91
|
*
|
|
72
92
|
* @type {IntegrationEventCourse}
|
|
73
93
|
* @memberof IntegrationEventData
|
|
74
94
|
*/
|
|
75
|
-
course: IntegrationEventCourse;
|
|
95
|
+
course: IntegrationEventCourse | null;
|
|
76
96
|
/**
|
|
77
97
|
*
|
|
78
98
|
* @type {IntegrationEventEnrollment}
|
|
@@ -85,6 +105,12 @@ export interface IntegrationEventData {
|
|
|
85
105
|
* @memberof IntegrationEventData
|
|
86
106
|
*/
|
|
87
107
|
certificate: IntegrationEventCertificate | null;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {IntegrationEventInvitation}
|
|
111
|
+
* @memberof IntegrationEventData
|
|
112
|
+
*/
|
|
113
|
+
invitation: IntegrationEventInvitation | null;
|
|
88
114
|
}
|
|
89
115
|
|
|
90
116
|
/**
|
|
@@ -93,9 +119,11 @@ export interface IntegrationEventData {
|
|
|
93
119
|
export function instanceOfIntegrationEventData(value: object): value is IntegrationEventData {
|
|
94
120
|
if (!('portal' in value) || value['portal'] === undefined) return false;
|
|
95
121
|
if (!('learner' in value) || value['learner'] === undefined) return false;
|
|
122
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
96
123
|
if (!('course' in value) || value['course'] === undefined) return false;
|
|
97
124
|
if (!('enrollment' in value) || value['enrollment'] === undefined) return false;
|
|
98
125
|
if (!('certificate' in value) || value['certificate'] === undefined) return false;
|
|
126
|
+
if (!('invitation' in value) || value['invitation'] === undefined) return false;
|
|
99
127
|
return true;
|
|
100
128
|
}
|
|
101
129
|
|
|
@@ -111,9 +139,11 @@ export function IntegrationEventDataFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
111
139
|
|
|
112
140
|
'portal': IntegrationEventPortalFromJSON(json['portal']),
|
|
113
141
|
'learner': IntegrationEventLearnerFromJSON(json['learner']),
|
|
142
|
+
'user': IntegrationEventUserFromJSON(json['user']),
|
|
114
143
|
'course': IntegrationEventCourseFromJSON(json['course']),
|
|
115
144
|
'enrollment': IntegrationEventEnrollmentFromJSON(json['enrollment']),
|
|
116
145
|
'certificate': IntegrationEventCertificateFromJSON(json['certificate']),
|
|
146
|
+
'invitation': IntegrationEventInvitationFromJSON(json['invitation']),
|
|
117
147
|
};
|
|
118
148
|
}
|
|
119
149
|
|
|
@@ -130,9 +160,11 @@ export function IntegrationEventDataToJSONTyped(value?: IntegrationEventData | n
|
|
|
130
160
|
|
|
131
161
|
'portal': IntegrationEventPortalToJSON(value['portal']),
|
|
132
162
|
'learner': IntegrationEventLearnerToJSON(value['learner']),
|
|
163
|
+
'user': IntegrationEventUserToJSON(value['user']),
|
|
133
164
|
'course': IntegrationEventCourseToJSON(value['course']),
|
|
134
165
|
'enrollment': IntegrationEventEnrollmentToJSON(value['enrollment']),
|
|
135
166
|
'certificate': IntegrationEventCertificateToJSON(value['certificate']),
|
|
167
|
+
'invitation': IntegrationEventInvitationToJSON(value['invitation']),
|
|
136
168
|
};
|
|
137
169
|
}
|
|
138
170
|
|
|
@@ -0,0 +1,130 @@
|
|
|
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 { IntegrationEventUser } from './IntegrationEventUser';
|
|
17
|
+
import {
|
|
18
|
+
IntegrationEventUserFromJSON,
|
|
19
|
+
IntegrationEventUserFromJSONTyped,
|
|
20
|
+
IntegrationEventUserToJSON,
|
|
21
|
+
IntegrationEventUserToJSONTyped,
|
|
22
|
+
} from './IntegrationEventUser';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Portal invitation lifecycle details for the affected user.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IntegrationEventInvitation
|
|
28
|
+
*/
|
|
29
|
+
export interface IntegrationEventInvitation {
|
|
30
|
+
/**
|
|
31
|
+
* Stable invitation ID.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IntegrationEventInvitation
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {IntegrationEventInvitationStatusEnum}
|
|
39
|
+
* @memberof IntegrationEventInvitation
|
|
40
|
+
*/
|
|
41
|
+
status: IntegrationEventInvitationStatusEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof IntegrationEventInvitation
|
|
46
|
+
*/
|
|
47
|
+
invitedAt: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof IntegrationEventInvitation
|
|
52
|
+
*/
|
|
53
|
+
expiresAt: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof IntegrationEventInvitation
|
|
58
|
+
*/
|
|
59
|
+
acceptedAt: Date | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {IntegrationEventUser}
|
|
63
|
+
* @memberof IntegrationEventInvitation
|
|
64
|
+
*/
|
|
65
|
+
invitedBy: IntegrationEventUser | null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const IntegrationEventInvitationStatusEnum = {
|
|
73
|
+
Pending: 'pending',
|
|
74
|
+
Accepted: 'accepted'
|
|
75
|
+
} as const;
|
|
76
|
+
export type IntegrationEventInvitationStatusEnum = typeof IntegrationEventInvitationStatusEnum[keyof typeof IntegrationEventInvitationStatusEnum];
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the IntegrationEventInvitation interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfIntegrationEventInvitation(value: object): value is IntegrationEventInvitation {
|
|
83
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
84
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
85
|
+
if (!('invitedAt' in value) || value['invitedAt'] === undefined) return false;
|
|
86
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
|
|
87
|
+
if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
|
|
88
|
+
if (!('invitedBy' in value) || value['invitedBy'] === undefined) return false;
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function IntegrationEventInvitationFromJSON(json: any): IntegrationEventInvitation {
|
|
93
|
+
return IntegrationEventInvitationFromJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function IntegrationEventInvitationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventInvitation {
|
|
97
|
+
if (json == null) {
|
|
98
|
+
return json;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': json['id'],
|
|
103
|
+
'status': json['status'],
|
|
104
|
+
'invitedAt': (new Date(json['invited_at'])),
|
|
105
|
+
'expiresAt': (new Date(json['expires_at'])),
|
|
106
|
+
'acceptedAt': (json['accepted_at'] == null ? null : new Date(json['accepted_at'])),
|
|
107
|
+
'invitedBy': IntegrationEventUserFromJSON(json['invited_by']),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function IntegrationEventInvitationToJSON(json: any): IntegrationEventInvitation {
|
|
112
|
+
return IntegrationEventInvitationToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function IntegrationEventInvitationToJSONTyped(value?: IntegrationEventInvitation | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'id': value['id'],
|
|
123
|
+
'status': value['status'],
|
|
124
|
+
'invited_at': value['invitedAt'].toISOString(),
|
|
125
|
+
'expires_at': value['expiresAt'].toISOString(),
|
|
126
|
+
'accepted_at': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
|
|
127
|
+
'invited_by': IntegrationEventUserToJSON(value['invitedBy']),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
* User affected by a portal membership lifecycle event.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IntegrationEventUser
|
|
20
|
+
*/
|
|
21
|
+
export interface IntegrationEventUser {
|
|
22
|
+
/**
|
|
23
|
+
* Stable external user ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntegrationEventUser
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntegrationEventUser
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IntegrationEventUser
|
|
38
|
+
*/
|
|
39
|
+
firstName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof IntegrationEventUser
|
|
44
|
+
*/
|
|
45
|
+
lastName: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the IntegrationEventUser interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfIntegrationEventUser(value: object): value is IntegrationEventUser {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
54
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
55
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IntegrationEventUserFromJSON(json: any): IntegrationEventUser {
|
|
60
|
+
return IntegrationEventUserFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IntegrationEventUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventUser {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'email': json['email'],
|
|
71
|
+
'firstName': json['first_name'],
|
|
72
|
+
'lastName': json['last_name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function IntegrationEventUserToJSON(json: any): IntegrationEventUser {
|
|
77
|
+
return IntegrationEventUserToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function IntegrationEventUserToJSONTyped(value?: IntegrationEventUser | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'email': value['email'],
|
|
89
|
+
'first_name': value['firstName'],
|
|
90
|
+
'last_name': value['lastName'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -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
|
* Request to create a new export for a course
|
|
18
33
|
* @export
|
|
@@ -37,6 +52,24 @@ export interface PostCourseExport {
|
|
|
37
52
|
* @memberof PostCourseExport
|
|
38
53
|
*/
|
|
39
54
|
sectionIds: Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Hosted course mode is an additive backend preview until its player is deployed.
|
|
57
|
+
* @type {PostCourseExportDeliveryModeEnum}
|
|
58
|
+
* @memberof PostCourseExport
|
|
59
|
+
*/
|
|
60
|
+
deliveryMode?: PostCourseExportDeliveryModeEnum;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {HostedScormRollupPolicy}
|
|
64
|
+
* @memberof PostCourseExport
|
|
65
|
+
*/
|
|
66
|
+
rollupPolicy?: HostedScormRollupPolicy;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {HostedScormAccessPolicy}
|
|
70
|
+
* @memberof PostCourseExport
|
|
71
|
+
*/
|
|
72
|
+
accessPolicy?: HostedScormAccessPolicy;
|
|
40
73
|
}
|
|
41
74
|
|
|
42
75
|
|
|
@@ -50,6 +83,15 @@ export const PostCourseExportExportTypeEnum = {
|
|
|
50
83
|
} as const;
|
|
51
84
|
export type PostCourseExportExportTypeEnum = typeof PostCourseExportExportTypeEnum[keyof typeof PostCourseExportExportTypeEnum];
|
|
52
85
|
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export const PostCourseExportDeliveryModeEnum = {
|
|
90
|
+
LegacyMultiSco: 'LEGACY_MULTI_SCO',
|
|
91
|
+
HostedCourseV1: 'HOSTED_COURSE_V1'
|
|
92
|
+
} as const;
|
|
93
|
+
export type PostCourseExportDeliveryModeEnum = typeof PostCourseExportDeliveryModeEnum[keyof typeof PostCourseExportDeliveryModeEnum];
|
|
94
|
+
|
|
53
95
|
|
|
54
96
|
/**
|
|
55
97
|
* Check if a given object implements the PostCourseExport interface.
|
|
@@ -74,6 +116,9 @@ export function PostCourseExportFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
74
116
|
'courseVersionId': json['course_version_id'],
|
|
75
117
|
'exportType': json['export_type'],
|
|
76
118
|
'sectionIds': json['section_ids'],
|
|
119
|
+
'deliveryMode': json['delivery_mode'] == null ? undefined : json['delivery_mode'],
|
|
120
|
+
'rollupPolicy': json['rollup_policy'] == null ? undefined : HostedScormRollupPolicyFromJSON(json['rollup_policy']),
|
|
121
|
+
'accessPolicy': json['access_policy'] == null ? undefined : HostedScormAccessPolicyFromJSON(json['access_policy']),
|
|
77
122
|
};
|
|
78
123
|
}
|
|
79
124
|
|
|
@@ -91,6 +136,9 @@ export function PostCourseExportToJSONTyped(value?: PostCourseExport | null, ign
|
|
|
91
136
|
'course_version_id': value['courseVersionId'],
|
|
92
137
|
'export_type': value['exportType'],
|
|
93
138
|
'section_ids': value['sectionIds'],
|
|
139
|
+
'delivery_mode': value['deliveryMode'],
|
|
140
|
+
'rollup_policy': HostedScormRollupPolicyToJSON(value['rollupPolicy']),
|
|
141
|
+
'access_policy': HostedScormAccessPolicyToJSON(value['accessPolicy']),
|
|
94
142
|
};
|
|
95
143
|
}
|
|
96
144
|
|
|
@@ -58,7 +58,9 @@ export interface PostCustomWebhookIntegration {
|
|
|
58
58
|
export const PostCustomWebhookIntegrationEventTypesEnum = {
|
|
59
59
|
ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
|
|
60
60
|
ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
|
|
61
|
-
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
|
|
61
|
+
ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
|
|
62
|
+
ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
|
|
63
|
+
ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
|
|
62
64
|
} as const;
|
|
63
65
|
export type PostCustomWebhookIntegrationEventTypesEnum = typeof PostCustomWebhookIntegrationEventTypesEnum[keyof typeof PostCustomWebhookIntegrationEventTypesEnum];
|
|
64
66
|
|
|
@@ -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
|
+
|