@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,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { HostedScormOutlineEntry } from './HostedScormOutlineEntry';
|
|
13
|
+
import type { GetDispatchRollup } from './GetDispatchRollup';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetDispatchCourse
|
|
18
|
+
*/
|
|
19
|
+
export interface GetDispatchCourse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetDispatchCourse
|
|
24
|
+
*/
|
|
25
|
+
dispatchId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GetDispatchCourse
|
|
30
|
+
*/
|
|
31
|
+
registrationId: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GetDispatchCourse
|
|
36
|
+
*/
|
|
37
|
+
courseId: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof GetDispatchCourse
|
|
42
|
+
*/
|
|
43
|
+
courseVersionId: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof GetDispatchCourse
|
|
48
|
+
*/
|
|
49
|
+
title: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof GetDispatchCourse
|
|
54
|
+
*/
|
|
55
|
+
progressionMode: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof GetDispatchCourse
|
|
60
|
+
*/
|
|
61
|
+
currentItemId: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<HostedScormOutlineEntry>}
|
|
65
|
+
* @memberof GetDispatchCourse
|
|
66
|
+
*/
|
|
67
|
+
outline: Array<HostedScormOutlineEntry>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {GetDispatchRollup}
|
|
71
|
+
* @memberof GetDispatchCourse
|
|
72
|
+
*/
|
|
73
|
+
rollup: GetDispatchRollup;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the GetDispatchCourse interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfGetDispatchCourse(value: object): value is GetDispatchCourse;
|
|
79
|
+
export declare function GetDispatchCourseFromJSON(json: any): GetDispatchCourse;
|
|
80
|
+
export declare function GetDispatchCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDispatchCourse;
|
|
81
|
+
export declare function GetDispatchCourseToJSON(json: any): GetDispatchCourse;
|
|
82
|
+
export declare function GetDispatchCourseToJSONTyped(value?: GetDispatchCourse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetDispatchCourse = instanceOfGetDispatchCourse;
|
|
17
|
+
exports.GetDispatchCourseFromJSON = GetDispatchCourseFromJSON;
|
|
18
|
+
exports.GetDispatchCourseFromJSONTyped = GetDispatchCourseFromJSONTyped;
|
|
19
|
+
exports.GetDispatchCourseToJSON = GetDispatchCourseToJSON;
|
|
20
|
+
exports.GetDispatchCourseToJSONTyped = GetDispatchCourseToJSONTyped;
|
|
21
|
+
const HostedScormOutlineEntry_1 = require("./HostedScormOutlineEntry");
|
|
22
|
+
const GetDispatchRollup_1 = require("./GetDispatchRollup");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetDispatchCourse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetDispatchCourse(value) {
|
|
27
|
+
if (!('dispatchId' in value) || value['dispatchId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('registrationId' in value) || value['registrationId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('progressionMode' in value) || value['progressionMode'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('currentItemId' in value) || value['currentItemId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('outline' in value) || value['outline'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('rollup' in value) || value['rollup'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function GetDispatchCourseFromJSON(json) {
|
|
48
|
+
return GetDispatchCourseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function GetDispatchCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'dispatchId': json['dispatch_id'],
|
|
56
|
+
'registrationId': json['registration_id'],
|
|
57
|
+
'courseId': json['course_id'],
|
|
58
|
+
'courseVersionId': json['course_version_id'],
|
|
59
|
+
'title': json['title'],
|
|
60
|
+
'progressionMode': json['progression_mode'],
|
|
61
|
+
'currentItemId': json['current_item_id'],
|
|
62
|
+
'outline': (json['outline'].map(HostedScormOutlineEntry_1.HostedScormOutlineEntryFromJSON)),
|
|
63
|
+
'rollup': (0, GetDispatchRollup_1.GetDispatchRollupFromJSON)(json['rollup']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function GetDispatchCourseToJSON(json) {
|
|
67
|
+
return GetDispatchCourseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function GetDispatchCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'dispatch_id': value['dispatchId'],
|
|
75
|
+
'registration_id': value['registrationId'],
|
|
76
|
+
'course_id': value['courseId'],
|
|
77
|
+
'course_version_id': value['courseVersionId'],
|
|
78
|
+
'title': value['title'],
|
|
79
|
+
'progression_mode': value['progressionMode'],
|
|
80
|
+
'current_item_id': value['currentItemId'],
|
|
81
|
+
'outline': (value['outline'].map(HostedScormOutlineEntry_1.HostedScormOutlineEntryToJSON)),
|
|
82
|
+
'rollup': (0, GetDispatchRollup_1.GetDispatchRollupToJSON)(value['rollup']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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 GetDispatchRollup
|
|
16
|
+
*/
|
|
17
|
+
export interface GetDispatchRollup {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {GetDispatchRollupCompletionStatusEnum}
|
|
21
|
+
* @memberof GetDispatchRollup
|
|
22
|
+
*/
|
|
23
|
+
completionStatus: GetDispatchRollupCompletionStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {GetDispatchRollupSuccessStatusEnum}
|
|
27
|
+
* @memberof GetDispatchRollup
|
|
28
|
+
*/
|
|
29
|
+
successStatus: GetDispatchRollupSuccessStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetDispatchRollup
|
|
34
|
+
*/
|
|
35
|
+
scoreRaw: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetDispatchRollup
|
|
40
|
+
*/
|
|
41
|
+
scoreScaled: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetDispatchRollup
|
|
46
|
+
*/
|
|
47
|
+
progressMeasure: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetDispatchRollup
|
|
52
|
+
*/
|
|
53
|
+
totalItems: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GetDispatchRollup
|
|
58
|
+
*/
|
|
59
|
+
completedItems: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GetDispatchRollup
|
|
64
|
+
*/
|
|
65
|
+
requiredItems: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof GetDispatchRollup
|
|
70
|
+
*/
|
|
71
|
+
completedRequiredItems: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof GetDispatchRollup
|
|
76
|
+
*/
|
|
77
|
+
pendingManualGrading: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const GetDispatchRollupCompletionStatusEnum: {
|
|
83
|
+
readonly NotAttempted: "not_attempted";
|
|
84
|
+
readonly Incomplete: "incomplete";
|
|
85
|
+
readonly Completed: "completed";
|
|
86
|
+
};
|
|
87
|
+
export type GetDispatchRollupCompletionStatusEnum = typeof GetDispatchRollupCompletionStatusEnum[keyof typeof GetDispatchRollupCompletionStatusEnum];
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const GetDispatchRollupSuccessStatusEnum: {
|
|
92
|
+
readonly Unknown: "unknown";
|
|
93
|
+
readonly Passed: "passed";
|
|
94
|
+
readonly Failed: "failed";
|
|
95
|
+
};
|
|
96
|
+
export type GetDispatchRollupSuccessStatusEnum = typeof GetDispatchRollupSuccessStatusEnum[keyof typeof GetDispatchRollupSuccessStatusEnum];
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the GetDispatchRollup interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfGetDispatchRollup(value: object): value is GetDispatchRollup;
|
|
101
|
+
export declare function GetDispatchRollupFromJSON(json: any): GetDispatchRollup;
|
|
102
|
+
export declare function GetDispatchRollupFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDispatchRollup;
|
|
103
|
+
export declare function GetDispatchRollupToJSON(json: any): GetDispatchRollup;
|
|
104
|
+
export declare function GetDispatchRollupToJSONTyped(value?: GetDispatchRollup | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GetDispatchRollupSuccessStatusEnum = exports.GetDispatchRollupCompletionStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfGetDispatchRollup = instanceOfGetDispatchRollup;
|
|
18
|
+
exports.GetDispatchRollupFromJSON = GetDispatchRollupFromJSON;
|
|
19
|
+
exports.GetDispatchRollupFromJSONTyped = GetDispatchRollupFromJSONTyped;
|
|
20
|
+
exports.GetDispatchRollupToJSON = GetDispatchRollupToJSON;
|
|
21
|
+
exports.GetDispatchRollupToJSONTyped = GetDispatchRollupToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetDispatchRollupCompletionStatusEnum = {
|
|
26
|
+
NotAttempted: 'not_attempted',
|
|
27
|
+
Incomplete: 'incomplete',
|
|
28
|
+
Completed: 'completed'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.GetDispatchRollupSuccessStatusEnum = {
|
|
34
|
+
Unknown: 'unknown',
|
|
35
|
+
Passed: 'passed',
|
|
36
|
+
Failed: 'failed'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetDispatchRollup interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfGetDispatchRollup(value) {
|
|
42
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('successStatus' in value) || value['successStatus'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('scoreRaw' in value) || value['scoreRaw'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('scoreScaled' in value) || value['scoreScaled'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('progressMeasure' in value) || value['progressMeasure'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('completedItems' in value) || value['completedItems'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('requiredItems' in value) || value['requiredItems'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('completedRequiredItems' in value) || value['completedRequiredItems'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('pendingManualGrading' in value) || value['pendingManualGrading'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
function GetDispatchRollupFromJSON(json) {
|
|
65
|
+
return GetDispatchRollupFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function GetDispatchRollupFromJSONTyped(json, ignoreDiscriminator) {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'completionStatus': json['completion_status'],
|
|
73
|
+
'successStatus': json['success_status'],
|
|
74
|
+
'scoreRaw': json['score_raw'],
|
|
75
|
+
'scoreScaled': json['score_scaled'],
|
|
76
|
+
'progressMeasure': json['progress_measure'],
|
|
77
|
+
'totalItems': json['total_items'],
|
|
78
|
+
'completedItems': json['completed_items'],
|
|
79
|
+
'requiredItems': json['required_items'],
|
|
80
|
+
'completedRequiredItems': json['completed_required_items'],
|
|
81
|
+
'pendingManualGrading': json['pending_manual_grading'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function GetDispatchRollupToJSON(json) {
|
|
85
|
+
return GetDispatchRollupToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
function GetDispatchRollupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
'completion_status': value['completionStatus'],
|
|
93
|
+
'success_status': value['successStatus'],
|
|
94
|
+
'score_raw': value['scoreRaw'],
|
|
95
|
+
'score_scaled': value['scoreScaled'],
|
|
96
|
+
'progress_measure': value['progressMeasure'],
|
|
97
|
+
'total_items': value['totalItems'],
|
|
98
|
+
'completed_items': value['completedItems'],
|
|
99
|
+
'required_items': value['requiredItems'],
|
|
100
|
+
'completed_required_items': value['completedRequiredItems'],
|
|
101
|
+
'pending_manual_grading': value['pendingManualGrading'],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 GetHostedScormRegistration
|
|
16
|
+
*/
|
|
17
|
+
export interface GetHostedScormRegistration {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetHostedScormRegistration
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetHostedScormRegistration
|
|
28
|
+
*/
|
|
29
|
+
learnerId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetHostedScormRegistration
|
|
34
|
+
*/
|
|
35
|
+
learnerName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof GetHostedScormRegistration
|
|
40
|
+
*/
|
|
41
|
+
active: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetHostedScormRegistration
|
|
46
|
+
*/
|
|
47
|
+
launchCount: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetHostedScormRegistration
|
|
52
|
+
*/
|
|
53
|
+
firstLaunchAt: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GetHostedScormRegistration
|
|
58
|
+
*/
|
|
59
|
+
lastLaunchAt: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof GetHostedScormRegistration
|
|
64
|
+
*/
|
|
65
|
+
lastOrigin?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof GetHostedScormRegistration
|
|
70
|
+
*/
|
|
71
|
+
lastItemId?: string | null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the GetHostedScormRegistration interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfGetHostedScormRegistration(value: object): value is GetHostedScormRegistration;
|
|
77
|
+
export declare function GetHostedScormRegistrationFromJSON(json: any): GetHostedScormRegistration;
|
|
78
|
+
export declare function GetHostedScormRegistrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHostedScormRegistration;
|
|
79
|
+
export declare function GetHostedScormRegistrationToJSON(json: any): GetHostedScormRegistration;
|
|
80
|
+
export declare function GetHostedScormRegistrationToJSONTyped(value?: GetHostedScormRegistration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetHostedScormRegistration = instanceOfGetHostedScormRegistration;
|
|
17
|
+
exports.GetHostedScormRegistrationFromJSON = GetHostedScormRegistrationFromJSON;
|
|
18
|
+
exports.GetHostedScormRegistrationFromJSONTyped = GetHostedScormRegistrationFromJSONTyped;
|
|
19
|
+
exports.GetHostedScormRegistrationToJSON = GetHostedScormRegistrationToJSON;
|
|
20
|
+
exports.GetHostedScormRegistrationToJSONTyped = GetHostedScormRegistrationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetHostedScormRegistration interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetHostedScormRegistration(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('learnerId' in value) || value['learnerId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('learnerName' in value) || value['learnerName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('launchCount' in value) || value['launchCount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('firstLaunchAt' in value) || value['firstLaunchAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('lastLaunchAt' in value) || value['lastLaunchAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function GetHostedScormRegistrationFromJSON(json) {
|
|
42
|
+
return GetHostedScormRegistrationFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GetHostedScormRegistrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'learnerId': json['learner_id'],
|
|
51
|
+
'learnerName': json['learner_name'],
|
|
52
|
+
'active': json['active'],
|
|
53
|
+
'launchCount': json['launch_count'],
|
|
54
|
+
'firstLaunchAt': json['first_launch_at'],
|
|
55
|
+
'lastLaunchAt': json['last_launch_at'],
|
|
56
|
+
'lastOrigin': json['last_origin'] == null ? undefined : json['last_origin'],
|
|
57
|
+
'lastItemId': json['last_item_id'] == null ? undefined : json['last_item_id'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function GetHostedScormRegistrationToJSON(json) {
|
|
61
|
+
return GetHostedScormRegistrationToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function GetHostedScormRegistrationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'learner_id': value['learnerId'],
|
|
70
|
+
'learner_name': value['learnerName'],
|
|
71
|
+
'active': value['active'],
|
|
72
|
+
'launch_count': value['launchCount'],
|
|
73
|
+
'first_launch_at': value['firstLaunchAt'],
|
|
74
|
+
'last_launch_at': value['lastLaunchAt'],
|
|
75
|
+
'last_origin': value['lastOrigin'],
|
|
76
|
+
'last_item_id': value['lastItemId'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetHostedScormRegistration } from './GetHostedScormRegistration';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetHostedScormRegistrationList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetHostedScormRegistrationList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetHostedScormRegistrationList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetHostedScormRegistrationList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetHostedScormRegistrationList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetHostedScormRegistrationList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetHostedScormRegistration>}
|
|
46
|
+
* @memberof GetHostedScormRegistrationList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetHostedScormRegistration>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetHostedScormRegistrationList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetHostedScormRegistrationList(value: object): value is GetHostedScormRegistrationList;
|
|
54
|
+
export declare function GetHostedScormRegistrationListFromJSON(json: any): GetHostedScormRegistrationList;
|
|
55
|
+
export declare function GetHostedScormRegistrationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHostedScormRegistrationList;
|
|
56
|
+
export declare function GetHostedScormRegistrationListToJSON(json: any): GetHostedScormRegistrationList;
|
|
57
|
+
export declare function GetHostedScormRegistrationListToJSONTyped(value?: GetHostedScormRegistrationList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetHostedScormRegistrationList = instanceOfGetHostedScormRegistrationList;
|
|
17
|
+
exports.GetHostedScormRegistrationListFromJSON = GetHostedScormRegistrationListFromJSON;
|
|
18
|
+
exports.GetHostedScormRegistrationListFromJSONTyped = GetHostedScormRegistrationListFromJSONTyped;
|
|
19
|
+
exports.GetHostedScormRegistrationListToJSON = GetHostedScormRegistrationListToJSON;
|
|
20
|
+
exports.GetHostedScormRegistrationListToJSONTyped = GetHostedScormRegistrationListToJSONTyped;
|
|
21
|
+
const GetHostedScormRegistration_1 = require("./GetHostedScormRegistration");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetHostedScormRegistrationList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetHostedScormRegistrationList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetHostedScormRegistrationListFromJSON(json) {
|
|
39
|
+
return GetHostedScormRegistrationListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetHostedScormRegistrationListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['page_size'],
|
|
48
|
+
'totalPages': json['total_pages'],
|
|
49
|
+
'totalItems': json['total_items'],
|
|
50
|
+
'items': (json['items'].map(GetHostedScormRegistration_1.GetHostedScormRegistrationFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetHostedScormRegistrationListToJSON(json) {
|
|
54
|
+
return GetHostedScormRegistrationListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetHostedScormRegistrationListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'page_size': value['pageSize'],
|
|
63
|
+
'total_pages': value['totalPages'],
|
|
64
|
+
'total_items': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(GetHostedScormRegistration_1.GetHostedScormRegistrationToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -65,6 +65,14 @@ export interface GetResourceSessionDiagnostics {
|
|
|
65
65
|
* @memberof GetResourceSessionDiagnostics
|
|
66
66
|
*/
|
|
67
67
|
scormSummary?: GetResourceSessionDiagnosticsScormSummary | null;
|
|
68
|
+
/**
|
|
69
|
+
* Read-only sanitized SCORM 2004 sequencing diagnostics; never the mutable engine snapshot.
|
|
70
|
+
* @type {{ [key: string]: any; }}
|
|
71
|
+
* @memberof GetResourceSessionDiagnostics
|
|
72
|
+
*/
|
|
73
|
+
sequencing?: {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
} | null;
|
|
68
76
|
}
|
|
69
77
|
/**
|
|
70
78
|
* Check if a given object implements the GetResourceSessionDiagnostics interface.
|
|
@@ -55,6 +55,7 @@ function GetResourceSessionDiagnosticsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'version': (0, GetResourceSessionDiagnosticsVersion_1.GetResourceSessionDiagnosticsVersionFromJSON)(json['version']),
|
|
56
56
|
'courseContext': json['course_context'] == null ? undefined : (0, GetResourceSessionDiagnosticsCourseContext_1.GetResourceSessionDiagnosticsCourseContextFromJSON)(json['course_context']),
|
|
57
57
|
'scormSummary': json['scorm_summary'] == null ? undefined : (0, GetResourceSessionDiagnosticsScormSummary_1.GetResourceSessionDiagnosticsScormSummaryFromJSON)(json['scorm_summary']),
|
|
58
|
+
'sequencing': json['sequencing'] == null ? undefined : json['sequencing'],
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
function GetResourceSessionDiagnosticsToJSON(json) {
|
|
@@ -72,5 +73,6 @@ function GetResourceSessionDiagnosticsToJSONTyped(value, ignoreDiscriminator = f
|
|
|
72
73
|
'version': (0, GetResourceSessionDiagnosticsVersion_1.GetResourceSessionDiagnosticsVersionToJSON)(value['version']),
|
|
73
74
|
'course_context': (0, GetResourceSessionDiagnosticsCourseContext_1.GetResourceSessionDiagnosticsCourseContextToJSON)(value['courseContext']),
|
|
74
75
|
'scorm_summary': (0, GetResourceSessionDiagnosticsScormSummary_1.GetResourceSessionDiagnosticsScormSummaryToJSON)(value['scormSummary']),
|
|
76
|
+
'sequencing': value['sequencing'],
|
|
75
77
|
};
|
|
76
78
|
}
|