@easyedu/js-lsm-api 1.118.0 → 1.120.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/.openapi-generator/FILES +42 -0
  2. package/README.md +34 -2
  3. package/dist/apis/CourseApi.d.ts +55 -0
  4. package/dist/apis/CourseApi.js +148 -0
  5. package/dist/apis/DispatchApi.d.ts +121 -5
  6. package/dist/apis/DispatchApi.js +303 -8
  7. package/dist/apis/PlayerApi.d.ts +26 -6
  8. package/dist/apis/PlayerApi.js +57 -6
  9. package/dist/esm/apis/CourseApi.d.ts +55 -0
  10. package/dist/esm/apis/CourseApi.js +148 -0
  11. package/dist/esm/apis/DispatchApi.d.ts +121 -5
  12. package/dist/esm/apis/DispatchApi.js +303 -8
  13. package/dist/esm/apis/PlayerApi.d.ts +26 -6
  14. package/dist/esm/apis/PlayerApi.js +57 -6
  15. package/dist/esm/models/DispatchTokenResponse.d.ts +57 -0
  16. package/dist/esm/models/DispatchTokenResponse.js +61 -0
  17. package/dist/esm/models/GetCourseExport.d.ts +62 -0
  18. package/dist/esm/models/GetCourseExport.js +44 -0
  19. package/dist/esm/models/GetDispatchCourse.d.ts +82 -0
  20. package/dist/esm/models/GetDispatchCourse.js +77 -0
  21. package/dist/esm/models/GetDispatchRollup.d.ts +104 -0
  22. package/dist/esm/models/GetDispatchRollup.js +95 -0
  23. package/dist/esm/models/GetHostedScormRegistration.d.ts +80 -0
  24. package/dist/esm/models/GetHostedScormRegistration.js +71 -0
  25. package/dist/esm/models/GetHostedScormRegistrationList.d.ts +57 -0
  26. package/dist/esm/models/GetHostedScormRegistrationList.js +60 -0
  27. package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +8 -0
  28. package/dist/esm/models/GetResourceSessionDiagnostics.js +2 -0
  29. package/dist/esm/models/HostedScormAccessPolicy.d.ts +50 -0
  30. package/dist/esm/models/HostedScormAccessPolicy.js +55 -0
  31. package/dist/esm/models/HostedScormOutlineEntry.d.ts +108 -0
  32. package/dist/esm/models/HostedScormOutlineEntry.js +97 -0
  33. package/dist/esm/models/HostedScormRollupPolicy.d.ts +69 -0
  34. package/dist/esm/models/HostedScormRollupPolicy.js +72 -0
  35. package/dist/esm/models/HostedScormScoreItem.d.ts +38 -0
  36. package/dist/esm/models/HostedScormScoreItem.js +47 -0
  37. package/dist/esm/models/PostCourseExport.d.ts +28 -0
  38. package/dist/esm/models/PostCourseExport.js +15 -0
  39. package/dist/esm/models/PostDispatchItemLaunch.d.ts +32 -0
  40. package/dist/esm/models/PostDispatchItemLaunch.js +41 -0
  41. package/dist/esm/models/PostDispatchItemLaunchResponse.d.ts +64 -0
  42. package/dist/esm/models/PostDispatchItemLaunchResponse.js +66 -0
  43. package/dist/esm/models/PostDispatchLaunch.d.ts +50 -0
  44. package/dist/esm/models/PostDispatchLaunch.js +53 -0
  45. package/dist/esm/models/PostDispatchLaunchResponse.d.ts +70 -0
  46. package/dist/esm/models/PostDispatchLaunchResponse.js +70 -0
  47. package/dist/esm/models/PostDispatchTokenExchange.d.ts +32 -0
  48. package/dist/esm/models/PostDispatchTokenExchange.js +43 -0
  49. package/dist/esm/models/PutHostedScormStatus.d.ts +32 -0
  50. package/dist/esm/models/PutHostedScormStatus.js +43 -0
  51. package/dist/esm/models/ScormGetValueResponse.d.ts +12 -0
  52. package/dist/esm/models/ScormGetValueResponse.js +8 -0
  53. package/dist/esm/models/ScormNavigationDelivery.d.ts +64 -0
  54. package/dist/esm/models/ScormNavigationDelivery.js +66 -0
  55. package/dist/esm/models/ScormNavigationRequest.d.ts +55 -0
  56. package/dist/esm/models/ScormNavigationRequest.js +61 -0
  57. package/dist/esm/models/ScormNavigationResponse.d.ts +70 -0
  58. package/dist/esm/models/ScormNavigationResponse.js +67 -0
  59. package/dist/esm/models/ScormNavigationValidity.d.ts +92 -0
  60. package/dist/esm/models/ScormNavigationValidity.js +83 -0
  61. package/dist/esm/models/ScormRuntimeResponse.d.ts +44 -0
  62. package/dist/esm/models/ScormRuntimeResponse.js +51 -0
  63. package/dist/esm/models/ScormSetValueResponse.d.ts +12 -0
  64. package/dist/esm/models/ScormSetValueResponse.js +8 -0
  65. package/dist/esm/models/ScormTerminateResponse.d.ts +63 -0
  66. package/dist/esm/models/ScormTerminateResponse.js +62 -0
  67. package/dist/esm/models/index.d.ts +21 -0
  68. package/dist/esm/models/index.js +21 -0
  69. package/dist/models/DispatchTokenResponse.d.ts +57 -0
  70. package/dist/models/DispatchTokenResponse.js +69 -0
  71. package/dist/models/GetCourseExport.d.ts +62 -0
  72. package/dist/models/GetCourseExport.js +45 -1
  73. package/dist/models/GetDispatchCourse.d.ts +82 -0
  74. package/dist/models/GetDispatchCourse.js +84 -0
  75. package/dist/models/GetDispatchRollup.d.ts +104 -0
  76. package/dist/models/GetDispatchRollup.js +103 -0
  77. package/dist/models/GetHostedScormRegistration.d.ts +80 -0
  78. package/dist/models/GetHostedScormRegistration.js +78 -0
  79. package/dist/models/GetHostedScormRegistrationList.d.ts +57 -0
  80. package/dist/models/GetHostedScormRegistrationList.js +67 -0
  81. package/dist/models/GetResourceSessionDiagnostics.d.ts +8 -0
  82. package/dist/models/GetResourceSessionDiagnostics.js +2 -0
  83. package/dist/models/HostedScormAccessPolicy.d.ts +50 -0
  84. package/dist/models/HostedScormAccessPolicy.js +62 -0
  85. package/dist/models/HostedScormOutlineEntry.d.ts +108 -0
  86. package/dist/models/HostedScormOutlineEntry.js +105 -0
  87. package/dist/models/HostedScormRollupPolicy.d.ts +69 -0
  88. package/dist/models/HostedScormRollupPolicy.js +80 -0
  89. package/dist/models/HostedScormScoreItem.d.ts +38 -0
  90. package/dist/models/HostedScormScoreItem.js +54 -0
  91. package/dist/models/PostCourseExport.d.ts +28 -0
  92. package/dist/models/PostCourseExport.js +16 -1
  93. package/dist/models/PostDispatchItemLaunch.d.ts +32 -0
  94. package/dist/models/PostDispatchItemLaunch.js +48 -0
  95. package/dist/models/PostDispatchItemLaunchResponse.d.ts +64 -0
  96. package/dist/models/PostDispatchItemLaunchResponse.js +74 -0
  97. package/dist/models/PostDispatchLaunch.d.ts +50 -0
  98. package/dist/models/PostDispatchLaunch.js +60 -0
  99. package/dist/models/PostDispatchLaunchResponse.d.ts +70 -0
  100. package/dist/models/PostDispatchLaunchResponse.js +78 -0
  101. package/dist/models/PostDispatchTokenExchange.d.ts +32 -0
  102. package/dist/models/PostDispatchTokenExchange.js +50 -0
  103. package/dist/models/PutHostedScormStatus.d.ts +32 -0
  104. package/dist/models/PutHostedScormStatus.js +50 -0
  105. package/dist/models/ScormGetValueResponse.d.ts +12 -0
  106. package/dist/models/ScormGetValueResponse.js +8 -0
  107. package/dist/models/ScormNavigationDelivery.d.ts +64 -0
  108. package/dist/models/ScormNavigationDelivery.js +74 -0
  109. package/dist/models/ScormNavigationRequest.d.ts +55 -0
  110. package/dist/models/ScormNavigationRequest.js +69 -0
  111. package/dist/models/ScormNavigationResponse.d.ts +70 -0
  112. package/dist/models/ScormNavigationResponse.js +74 -0
  113. package/dist/models/ScormNavigationValidity.d.ts +92 -0
  114. package/dist/models/ScormNavigationValidity.js +90 -0
  115. package/dist/models/ScormRuntimeResponse.d.ts +44 -0
  116. package/dist/models/ScormRuntimeResponse.js +58 -0
  117. package/dist/models/ScormSetValueResponse.d.ts +12 -0
  118. package/dist/models/ScormSetValueResponse.js +8 -0
  119. package/dist/models/ScormTerminateResponse.d.ts +63 -0
  120. package/dist/models/ScormTerminateResponse.js +69 -0
  121. package/dist/models/index.d.ts +21 -0
  122. package/dist/models/index.js +21 -0
  123. package/docs/CourseApi.md +225 -0
  124. package/docs/DispatchApi.md +480 -9
  125. package/docs/DispatchTokenResponse.md +40 -0
  126. package/docs/GetCourseExport.md +14 -0
  127. package/docs/GetDispatchCourse.md +50 -0
  128. package/docs/GetDispatchRollup.md +52 -0
  129. package/docs/GetHostedScormRegistration.md +50 -0
  130. package/docs/GetHostedScormRegistrationList.md +42 -0
  131. package/docs/GetResourceSessionDiagnostics.md +2 -0
  132. package/docs/HostedScormAccessPolicy.md +41 -0
  133. package/docs/HostedScormOutlineEntry.md +54 -0
  134. package/docs/HostedScormRollupPolicy.md +41 -0
  135. package/docs/HostedScormScoreItem.md +36 -0
  136. package/docs/PlayerApi.md +80 -9
  137. package/docs/PostCourseExport.md +6 -0
  138. package/docs/PostDispatchItemLaunch.md +34 -0
  139. package/docs/PostDispatchItemLaunchResponse.md +42 -0
  140. package/docs/PostDispatchLaunch.md +40 -0
  141. package/docs/PostDispatchLaunchResponse.md +44 -0
  142. package/docs/PostDispatchTokenExchange.md +34 -0
  143. package/docs/PutHostedScormStatus.md +34 -0
  144. package/docs/ScormGetValueResponse.md +4 -0
  145. package/docs/ScormNavigationDelivery.md +43 -0
  146. package/docs/ScormNavigationRequest.md +37 -0
  147. package/docs/ScormNavigationResponse.md +47 -0
  148. package/docs/ScormNavigationValidity.md +55 -0
  149. package/docs/ScormRuntimeResponse.md +39 -0
  150. package/docs/ScormSetValueResponse.md +4 -0
  151. package/docs/ScormTerminateResponse.md +44 -0
  152. package/package.json +1 -1
  153. package/src/apis/CourseApi.ts +221 -0
  154. package/src/apis/DispatchApi.ts +426 -10
  155. package/src/apis/PlayerApi.ts +95 -12
  156. package/src/models/DispatchTokenResponse.ts +103 -0
  157. package/src/models/GetCourseExport.ts +97 -0
  158. package/src/models/GetDispatchCourse.ts +153 -0
  159. package/src/models/GetDispatchRollup.ts +169 -0
  160. package/src/models/GetHostedScormRegistration.ts +136 -0
  161. package/src/models/GetHostedScormRegistrationList.ts +110 -0
  162. package/src/models/GetResourceSessionDiagnostics.ts +8 -0
  163. package/src/models/HostedScormAccessPolicy.ts +93 -0
  164. package/src/models/HostedScormOutlineEntry.ts +176 -0
  165. package/src/models/HostedScormRollupPolicy.ts +123 -0
  166. package/src/models/HostedScormScoreItem.ts +75 -0
  167. package/src/models/PostCourseExport.ts +48 -0
  168. package/src/models/PostDispatchItemLaunch.ts +65 -0
  169. package/src/models/PostDispatchItemLaunchResponse.ts +113 -0
  170. package/src/models/PostDispatchLaunch.ts +92 -0
  171. package/src/models/PostDispatchLaunchResponse.ts +122 -0
  172. package/src/models/PostDispatchTokenExchange.ts +66 -0
  173. package/src/models/PutHostedScormStatus.ts +66 -0
  174. package/src/models/ScormGetValueResponse.ts +18 -0
  175. package/src/models/ScormNavigationDelivery.ts +113 -0
  176. package/src/models/ScormNavigationRequest.ts +94 -0
  177. package/src/models/ScormNavigationResponse.ts +134 -0
  178. package/src/models/ScormNavigationValidity.ts +156 -0
  179. package/src/models/ScormRuntimeResponse.ts +84 -0
  180. package/src/models/ScormSetValueResponse.ts +18 -0
  181. package/src/models/ScormTerminateResponse.ts +118 -0
  182. package/src/models/index.ts +21 -0
@@ -13,12 +13,14 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetCourseExportStatusEnum = exports.GetCourseExportExportTypeEnum = void 0;
16
+ exports.GetCourseExportRuntimeStatusEnum = exports.GetCourseExportDeliveryModeEnum = exports.GetCourseExportStatusEnum = exports.GetCourseExportExportTypeEnum = void 0;
17
17
  exports.instanceOfGetCourseExport = instanceOfGetCourseExport;
18
18
  exports.GetCourseExportFromJSON = GetCourseExportFromJSON;
19
19
  exports.GetCourseExportFromJSONTyped = GetCourseExportFromJSONTyped;
20
20
  exports.GetCourseExportToJSON = GetCourseExportToJSON;
21
21
  exports.GetCourseExportToJSONTyped = GetCourseExportToJSONTyped;
22
+ const HostedScormRollupPolicy_1 = require("./HostedScormRollupPolicy");
23
+ const HostedScormAccessPolicy_1 = require("./HostedScormAccessPolicy");
22
24
  /**
23
25
  * @export
24
26
  */
@@ -36,6 +38,22 @@ exports.GetCourseExportStatusEnum = {
36
38
  Completed: 'COMPLETED',
37
39
  Failed: 'FAILED'
38
40
  };
41
+ /**
42
+ * @export
43
+ */
44
+ exports.GetCourseExportDeliveryModeEnum = {
45
+ LegacyMultiSco: 'LEGACY_MULTI_SCO',
46
+ HostedCourseV1: 'HOSTED_COURSE_V1'
47
+ };
48
+ /**
49
+ * @export
50
+ */
51
+ exports.GetCourseExportRuntimeStatusEnum = {
52
+ LegacyActive: 'LEGACY_ACTIVE',
53
+ BackendReady: 'BACKEND_READY',
54
+ PlayerUnavailable: 'PLAYER_UNAVAILABLE',
55
+ Revoked: 'REVOKED'
56
+ };
39
57
  /**
40
58
  * Check if a given object implements the GetCourseExport interface.
41
59
  */
@@ -56,6 +74,18 @@ function instanceOfGetCourseExport(value) {
56
74
  return false;
57
75
  if (!('createdAt' in value) || value['createdAt'] === undefined)
58
76
  return false;
77
+ if (!('deliveryMode' in value) || value['deliveryMode'] === undefined)
78
+ return false;
79
+ if (!('rollupPolicy' in value) || value['rollupPolicy'] === undefined)
80
+ return false;
81
+ if (!('accessPolicy' in value) || value['accessPolicy'] === undefined)
82
+ return false;
83
+ if (!('runtimeStatus' in value) || value['runtimeStatus'] === undefined)
84
+ return false;
85
+ if (!('registeredLearners' in value) || value['registeredLearners'] === undefined)
86
+ return false;
87
+ if (!('totalLaunches' in value) || value['totalLaunches'] === undefined)
88
+ return false;
59
89
  return true;
60
90
  }
61
91
  function GetCourseExportFromJSON(json) {
@@ -78,6 +108,13 @@ function GetCourseExportFromJSONTyped(json, ignoreDiscriminator) {
78
108
  'fileSize': json['file_size'] == null ? undefined : json['file_size'],
79
109
  'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
80
110
  'createdAt': json['created_at'],
111
+ 'deliveryMode': json['delivery_mode'],
112
+ 'rollupPolicy': (0, HostedScormRollupPolicy_1.HostedScormRollupPolicyFromJSON)(json['rollup_policy']),
113
+ 'accessPolicy': (0, HostedScormAccessPolicy_1.HostedScormAccessPolicyFromJSON)(json['access_policy']),
114
+ 'runtimeStatus': json['runtime_status'],
115
+ 'registeredLearners': json['registered_learners'],
116
+ 'totalLaunches': json['total_launches'],
117
+ 'lastLaunchAt': json['last_launch_at'] == null ? undefined : json['last_launch_at'],
81
118
  };
82
119
  }
83
120
  function GetCourseExportToJSON(json) {
@@ -100,5 +137,12 @@ function GetCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
100
137
  'file_size': value['fileSize'],
101
138
  'error_message': value['errorMessage'],
102
139
  'created_at': value['createdAt'],
140
+ 'delivery_mode': value['deliveryMode'],
141
+ 'rollup_policy': (0, HostedScormRollupPolicy_1.HostedScormRollupPolicyToJSON)(value['rollupPolicy']),
142
+ 'access_policy': (0, HostedScormAccessPolicy_1.HostedScormAccessPolicyToJSON)(value['accessPolicy']),
143
+ 'runtime_status': value['runtimeStatus'],
144
+ 'registered_learners': value['registeredLearners'],
145
+ 'total_launches': value['totalLaunches'],
146
+ 'last_launch_at': value['lastLaunchAt'],
103
147
  };
104
148
  }
@@ -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;