@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.
Files changed (236) hide show
  1. package/.openapi-generator/FILES +46 -0
  2. package/README.md +36 -2
  3. package/dist/apis/CourseApi.d.ts +55 -0
  4. package/dist/apis/CourseApi.js +147 -0
  5. package/dist/apis/DispatchApi.d.ts +121 -5
  6. package/dist/apis/DispatchApi.js +303 -8
  7. package/dist/apis/IntegrationApi.d.ts +2 -0
  8. package/dist/apis/IntegrationApi.js +3 -1
  9. package/dist/apis/PlayerApi.d.ts +26 -6
  10. package/dist/apis/PlayerApi.js +57 -6
  11. package/dist/esm/apis/CourseApi.d.ts +55 -0
  12. package/dist/esm/apis/CourseApi.js +147 -0
  13. package/dist/esm/apis/DispatchApi.d.ts +121 -5
  14. package/dist/esm/apis/DispatchApi.js +303 -8
  15. package/dist/esm/apis/IntegrationApi.d.ts +2 -0
  16. package/dist/esm/apis/IntegrationApi.js +3 -1
  17. package/dist/esm/apis/PlayerApi.d.ts +26 -6
  18. package/dist/esm/apis/PlayerApi.js +57 -6
  19. package/dist/esm/models/CustomWebhookIntegration.d.ts +2 -0
  20. package/dist/esm/models/CustomWebhookIntegration.js +3 -1
  21. package/dist/esm/models/DispatchTokenResponse.d.ts +57 -0
  22. package/dist/esm/models/DispatchTokenResponse.js +61 -0
  23. package/dist/esm/models/GetCourseExport.d.ts +62 -0
  24. package/dist/esm/models/GetCourseExport.js +44 -0
  25. package/dist/esm/models/GetDispatchCourse.d.ts +82 -0
  26. package/dist/esm/models/GetDispatchCourse.js +77 -0
  27. package/dist/esm/models/GetDispatchRollup.d.ts +104 -0
  28. package/dist/esm/models/GetDispatchRollup.js +95 -0
  29. package/dist/esm/models/GetHostedScormRegistration.d.ts +80 -0
  30. package/dist/esm/models/GetHostedScormRegistration.js +71 -0
  31. package/dist/esm/models/GetHostedScormRegistrationList.d.ts +57 -0
  32. package/dist/esm/models/GetHostedScormRegistrationList.js +60 -0
  33. package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +8 -0
  34. package/dist/esm/models/GetResourceSessionDiagnostics.js +2 -0
  35. package/dist/esm/models/HostedScormAccessPolicy.d.ts +50 -0
  36. package/dist/esm/models/HostedScormAccessPolicy.js +55 -0
  37. package/dist/esm/models/HostedScormOutlineEntry.d.ts +108 -0
  38. package/dist/esm/models/HostedScormOutlineEntry.js +97 -0
  39. package/dist/esm/models/HostedScormRollupPolicy.d.ts +69 -0
  40. package/dist/esm/models/HostedScormRollupPolicy.js +72 -0
  41. package/dist/esm/models/HostedScormScoreItem.d.ts +38 -0
  42. package/dist/esm/models/HostedScormScoreItem.js +47 -0
  43. package/dist/esm/models/IntegrationEvent.d.ts +2 -0
  44. package/dist/esm/models/IntegrationEvent.js +3 -1
  45. package/dist/esm/models/IntegrationEventData.d.ts +16 -2
  46. package/dist/esm/models/IntegrationEventData.js +10 -0
  47. package/dist/esm/models/IntegrationEventInvitation.d.ts +71 -0
  48. package/dist/esm/models/IntegrationEventInvitation.js +71 -0
  49. package/dist/esm/models/IntegrationEventUser.d.ts +50 -0
  50. package/dist/esm/models/IntegrationEventUser.js +55 -0
  51. package/dist/esm/models/PostCourseExport.d.ts +28 -0
  52. package/dist/esm/models/PostCourseExport.js +15 -0
  53. package/dist/esm/models/PostCustomWebhookIntegration.d.ts +2 -0
  54. package/dist/esm/models/PostCustomWebhookIntegration.js +3 -1
  55. package/dist/esm/models/PostDispatchItemLaunch.d.ts +32 -0
  56. package/dist/esm/models/PostDispatchItemLaunch.js +41 -0
  57. package/dist/esm/models/PostDispatchItemLaunchResponse.d.ts +64 -0
  58. package/dist/esm/models/PostDispatchItemLaunchResponse.js +66 -0
  59. package/dist/esm/models/PostDispatchLaunch.d.ts +50 -0
  60. package/dist/esm/models/PostDispatchLaunch.js +53 -0
  61. package/dist/esm/models/PostDispatchLaunchResponse.d.ts +70 -0
  62. package/dist/esm/models/PostDispatchLaunchResponse.js +70 -0
  63. package/dist/esm/models/PostDispatchTokenExchange.d.ts +32 -0
  64. package/dist/esm/models/PostDispatchTokenExchange.js +43 -0
  65. package/dist/esm/models/PostZapierSubscription.d.ts +2 -0
  66. package/dist/esm/models/PostZapierSubscription.js +3 -1
  67. package/dist/esm/models/PutCustomWebhookIntegration.d.ts +2 -0
  68. package/dist/esm/models/PutCustomWebhookIntegration.js +3 -1
  69. package/dist/esm/models/PutHostedScormStatus.d.ts +32 -0
  70. package/dist/esm/models/PutHostedScormStatus.js +43 -0
  71. package/dist/esm/models/ScormGetValueResponse.d.ts +12 -0
  72. package/dist/esm/models/ScormGetValueResponse.js +8 -0
  73. package/dist/esm/models/ScormNavigationDelivery.d.ts +64 -0
  74. package/dist/esm/models/ScormNavigationDelivery.js +66 -0
  75. package/dist/esm/models/ScormNavigationRequest.d.ts +55 -0
  76. package/dist/esm/models/ScormNavigationRequest.js +61 -0
  77. package/dist/esm/models/ScormNavigationResponse.d.ts +70 -0
  78. package/dist/esm/models/ScormNavigationResponse.js +67 -0
  79. package/dist/esm/models/ScormNavigationValidity.d.ts +92 -0
  80. package/dist/esm/models/ScormNavigationValidity.js +83 -0
  81. package/dist/esm/models/ScormRuntimeResponse.d.ts +44 -0
  82. package/dist/esm/models/ScormRuntimeResponse.js +51 -0
  83. package/dist/esm/models/ScormSetValueResponse.d.ts +12 -0
  84. package/dist/esm/models/ScormSetValueResponse.js +8 -0
  85. package/dist/esm/models/ScormTerminateResponse.d.ts +63 -0
  86. package/dist/esm/models/ScormTerminateResponse.js +62 -0
  87. package/dist/esm/models/ZapierSubscription.d.ts +2 -0
  88. package/dist/esm/models/ZapierSubscription.js +3 -1
  89. package/dist/esm/models/index.d.ts +23 -0
  90. package/dist/esm/models/index.js +23 -0
  91. package/dist/models/CustomWebhookIntegration.d.ts +2 -0
  92. package/dist/models/CustomWebhookIntegration.js +3 -1
  93. package/dist/models/DispatchTokenResponse.d.ts +57 -0
  94. package/dist/models/DispatchTokenResponse.js +69 -0
  95. package/dist/models/GetCourseExport.d.ts +62 -0
  96. package/dist/models/GetCourseExport.js +45 -1
  97. package/dist/models/GetDispatchCourse.d.ts +82 -0
  98. package/dist/models/GetDispatchCourse.js +84 -0
  99. package/dist/models/GetDispatchRollup.d.ts +104 -0
  100. package/dist/models/GetDispatchRollup.js +103 -0
  101. package/dist/models/GetHostedScormRegistration.d.ts +80 -0
  102. package/dist/models/GetHostedScormRegistration.js +78 -0
  103. package/dist/models/GetHostedScormRegistrationList.d.ts +57 -0
  104. package/dist/models/GetHostedScormRegistrationList.js +67 -0
  105. package/dist/models/GetResourceSessionDiagnostics.d.ts +8 -0
  106. package/dist/models/GetResourceSessionDiagnostics.js +2 -0
  107. package/dist/models/HostedScormAccessPolicy.d.ts +50 -0
  108. package/dist/models/HostedScormAccessPolicy.js +62 -0
  109. package/dist/models/HostedScormOutlineEntry.d.ts +108 -0
  110. package/dist/models/HostedScormOutlineEntry.js +105 -0
  111. package/dist/models/HostedScormRollupPolicy.d.ts +69 -0
  112. package/dist/models/HostedScormRollupPolicy.js +80 -0
  113. package/dist/models/HostedScormScoreItem.d.ts +38 -0
  114. package/dist/models/HostedScormScoreItem.js +54 -0
  115. package/dist/models/IntegrationEvent.d.ts +2 -0
  116. package/dist/models/IntegrationEvent.js +3 -1
  117. package/dist/models/IntegrationEventData.d.ts +16 -2
  118. package/dist/models/IntegrationEventData.js +10 -0
  119. package/dist/models/IntegrationEventInvitation.d.ts +71 -0
  120. package/dist/models/IntegrationEventInvitation.js +79 -0
  121. package/dist/models/IntegrationEventUser.d.ts +50 -0
  122. package/dist/models/IntegrationEventUser.js +62 -0
  123. package/dist/models/PostCourseExport.d.ts +28 -0
  124. package/dist/models/PostCourseExport.js +16 -1
  125. package/dist/models/PostCustomWebhookIntegration.d.ts +2 -0
  126. package/dist/models/PostCustomWebhookIntegration.js +3 -1
  127. package/dist/models/PostDispatchItemLaunch.d.ts +32 -0
  128. package/dist/models/PostDispatchItemLaunch.js +48 -0
  129. package/dist/models/PostDispatchItemLaunchResponse.d.ts +64 -0
  130. package/dist/models/PostDispatchItemLaunchResponse.js +74 -0
  131. package/dist/models/PostDispatchLaunch.d.ts +50 -0
  132. package/dist/models/PostDispatchLaunch.js +60 -0
  133. package/dist/models/PostDispatchLaunchResponse.d.ts +70 -0
  134. package/dist/models/PostDispatchLaunchResponse.js +78 -0
  135. package/dist/models/PostDispatchTokenExchange.d.ts +32 -0
  136. package/dist/models/PostDispatchTokenExchange.js +50 -0
  137. package/dist/models/PostZapierSubscription.d.ts +2 -0
  138. package/dist/models/PostZapierSubscription.js +3 -1
  139. package/dist/models/PutCustomWebhookIntegration.d.ts +2 -0
  140. package/dist/models/PutCustomWebhookIntegration.js +3 -1
  141. package/dist/models/PutHostedScormStatus.d.ts +32 -0
  142. package/dist/models/PutHostedScormStatus.js +50 -0
  143. package/dist/models/ScormGetValueResponse.d.ts +12 -0
  144. package/dist/models/ScormGetValueResponse.js +8 -0
  145. package/dist/models/ScormNavigationDelivery.d.ts +64 -0
  146. package/dist/models/ScormNavigationDelivery.js +74 -0
  147. package/dist/models/ScormNavigationRequest.d.ts +55 -0
  148. package/dist/models/ScormNavigationRequest.js +69 -0
  149. package/dist/models/ScormNavigationResponse.d.ts +70 -0
  150. package/dist/models/ScormNavigationResponse.js +74 -0
  151. package/dist/models/ScormNavigationValidity.d.ts +92 -0
  152. package/dist/models/ScormNavigationValidity.js +90 -0
  153. package/dist/models/ScormRuntimeResponse.d.ts +44 -0
  154. package/dist/models/ScormRuntimeResponse.js +58 -0
  155. package/dist/models/ScormSetValueResponse.d.ts +12 -0
  156. package/dist/models/ScormSetValueResponse.js +8 -0
  157. package/dist/models/ScormTerminateResponse.d.ts +63 -0
  158. package/dist/models/ScormTerminateResponse.js +69 -0
  159. package/dist/models/ZapierSubscription.d.ts +2 -0
  160. package/dist/models/ZapierSubscription.js +3 -1
  161. package/dist/models/index.d.ts +23 -0
  162. package/dist/models/index.js +23 -0
  163. package/docs/CourseApi.md +225 -0
  164. package/docs/DispatchApi.md +480 -9
  165. package/docs/DispatchTokenResponse.md +40 -0
  166. package/docs/GetCourseExport.md +14 -0
  167. package/docs/GetDispatchCourse.md +50 -0
  168. package/docs/GetDispatchRollup.md +52 -0
  169. package/docs/GetHostedScormRegistration.md +50 -0
  170. package/docs/GetHostedScormRegistrationList.md +42 -0
  171. package/docs/GetResourceSessionDiagnostics.md +2 -0
  172. package/docs/HostedScormAccessPolicy.md +41 -0
  173. package/docs/HostedScormOutlineEntry.md +54 -0
  174. package/docs/HostedScormRollupPolicy.md +41 -0
  175. package/docs/HostedScormScoreItem.md +36 -0
  176. package/docs/IntegrationApi.md +2 -2
  177. package/docs/IntegrationEventData.md +4 -0
  178. package/docs/IntegrationEventInvitation.md +45 -0
  179. package/docs/IntegrationEventUser.md +41 -0
  180. package/docs/PlayerApi.md +80 -9
  181. package/docs/PostCourseExport.md +6 -0
  182. package/docs/PostDispatchItemLaunch.md +34 -0
  183. package/docs/PostDispatchItemLaunchResponse.md +42 -0
  184. package/docs/PostDispatchLaunch.md +40 -0
  185. package/docs/PostDispatchLaunchResponse.md +44 -0
  186. package/docs/PostDispatchTokenExchange.md +34 -0
  187. package/docs/PutHostedScormStatus.md +34 -0
  188. package/docs/ScormGetValueResponse.md +4 -0
  189. package/docs/ScormNavigationDelivery.md +43 -0
  190. package/docs/ScormNavigationRequest.md +37 -0
  191. package/docs/ScormNavigationResponse.md +47 -0
  192. package/docs/ScormNavigationValidity.md +55 -0
  193. package/docs/ScormRuntimeResponse.md +39 -0
  194. package/docs/ScormSetValueResponse.md +4 -0
  195. package/docs/ScormTerminateResponse.md +44 -0
  196. package/package.json +1 -1
  197. package/src/apis/CourseApi.ts +221 -0
  198. package/src/apis/DispatchApi.ts +426 -10
  199. package/src/apis/IntegrationApi.ts +3 -1
  200. package/src/apis/PlayerApi.ts +95 -12
  201. package/src/models/CustomWebhookIntegration.ts +3 -1
  202. package/src/models/DispatchTokenResponse.ts +103 -0
  203. package/src/models/GetCourseExport.ts +97 -0
  204. package/src/models/GetDispatchCourse.ts +153 -0
  205. package/src/models/GetDispatchRollup.ts +169 -0
  206. package/src/models/GetHostedScormRegistration.ts +136 -0
  207. package/src/models/GetHostedScormRegistrationList.ts +110 -0
  208. package/src/models/GetResourceSessionDiagnostics.ts +8 -0
  209. package/src/models/HostedScormAccessPolicy.ts +93 -0
  210. package/src/models/HostedScormOutlineEntry.ts +176 -0
  211. package/src/models/HostedScormRollupPolicy.ts +123 -0
  212. package/src/models/HostedScormScoreItem.ts +75 -0
  213. package/src/models/IntegrationEvent.ts +3 -1
  214. package/src/models/IntegrationEventData.ts +34 -2
  215. package/src/models/IntegrationEventInvitation.ts +130 -0
  216. package/src/models/IntegrationEventUser.ts +93 -0
  217. package/src/models/PostCourseExport.ts +48 -0
  218. package/src/models/PostCustomWebhookIntegration.ts +3 -1
  219. package/src/models/PostDispatchItemLaunch.ts +65 -0
  220. package/src/models/PostDispatchItemLaunchResponse.ts +113 -0
  221. package/src/models/PostDispatchLaunch.ts +92 -0
  222. package/src/models/PostDispatchLaunchResponse.ts +122 -0
  223. package/src/models/PostDispatchTokenExchange.ts +66 -0
  224. package/src/models/PostZapierSubscription.ts +3 -1
  225. package/src/models/PutCustomWebhookIntegration.ts +3 -1
  226. package/src/models/PutHostedScormStatus.ts +66 -0
  227. package/src/models/ScormGetValueResponse.ts +18 -0
  228. package/src/models/ScormNavigationDelivery.ts +113 -0
  229. package/src/models/ScormNavigationRequest.ts +94 -0
  230. package/src/models/ScormNavigationResponse.ts +134 -0
  231. package/src/models/ScormNavigationValidity.ts +156 -0
  232. package/src/models/ScormRuntimeResponse.ts +84 -0
  233. package/src/models/ScormSetValueResponse.ts +18 -0
  234. package/src/models/ScormTerminateResponse.ts +118 -0
  235. package/src/models/ZapierSubscription.ts +3 -1
  236. package/src/models/index.ts +23 -0
@@ -0,0 +1,55 @@
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
+ * A SCORM 2004 navigation request
14
+ * @export
15
+ * @interface ScormNavigationRequest
16
+ */
17
+ export interface ScormNavigationRequest {
18
+ /**
19
+ *
20
+ * @type {ScormNavigationRequestRequestEnum}
21
+ * @memberof ScormNavigationRequest
22
+ */
23
+ request: ScormNavigationRequestRequestEnum;
24
+ /**
25
+ * Required for choice and jump; forbidden for other requests
26
+ * @type {string}
27
+ * @memberof ScormNavigationRequest
28
+ */
29
+ targetIdentifier?: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const ScormNavigationRequestRequestEnum: {
35
+ readonly Start: "start";
36
+ readonly ResumeAll: "resume_all";
37
+ readonly Continue: "continue";
38
+ readonly Previous: "previous";
39
+ readonly Choice: "choice";
40
+ readonly Jump: "jump";
41
+ readonly Exit: "exit";
42
+ readonly ExitAll: "exit_all";
43
+ readonly Abandon: "abandon";
44
+ readonly AbandonAll: "abandon_all";
45
+ readonly SuspendAll: "suspend_all";
46
+ };
47
+ export type ScormNavigationRequestRequestEnum = typeof ScormNavigationRequestRequestEnum[keyof typeof ScormNavigationRequestRequestEnum];
48
+ /**
49
+ * Check if a given object implements the ScormNavigationRequest interface.
50
+ */
51
+ export declare function instanceOfScormNavigationRequest(value: object): value is ScormNavigationRequest;
52
+ export declare function ScormNavigationRequestFromJSON(json: any): ScormNavigationRequest;
53
+ export declare function ScormNavigationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormNavigationRequest;
54
+ export declare function ScormNavigationRequestToJSON(json: any): ScormNavigationRequest;
55
+ export declare function ScormNavigationRequestToJSONTyped(value?: ScormNavigationRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
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.ScormNavigationRequestRequestEnum = void 0;
17
+ exports.instanceOfScormNavigationRequest = instanceOfScormNavigationRequest;
18
+ exports.ScormNavigationRequestFromJSON = ScormNavigationRequestFromJSON;
19
+ exports.ScormNavigationRequestFromJSONTyped = ScormNavigationRequestFromJSONTyped;
20
+ exports.ScormNavigationRequestToJSON = ScormNavigationRequestToJSON;
21
+ exports.ScormNavigationRequestToJSONTyped = ScormNavigationRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ScormNavigationRequestRequestEnum = {
26
+ Start: 'start',
27
+ ResumeAll: 'resume_all',
28
+ Continue: 'continue',
29
+ Previous: 'previous',
30
+ Choice: 'choice',
31
+ Jump: 'jump',
32
+ Exit: 'exit',
33
+ ExitAll: 'exit_all',
34
+ Abandon: 'abandon',
35
+ AbandonAll: 'abandon_all',
36
+ SuspendAll: 'suspend_all'
37
+ };
38
+ /**
39
+ * Check if a given object implements the ScormNavigationRequest interface.
40
+ */
41
+ function instanceOfScormNavigationRequest(value) {
42
+ if (!('request' in value) || value['request'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function ScormNavigationRequestFromJSON(json) {
47
+ return ScormNavigationRequestFromJSONTyped(json, false);
48
+ }
49
+ function ScormNavigationRequestFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'request': json['request'],
55
+ 'targetIdentifier': json['target_identifier'] == null ? undefined : json['target_identifier'],
56
+ };
57
+ }
58
+ function ScormNavigationRequestToJSON(json) {
59
+ return ScormNavigationRequestToJSONTyped(json, false);
60
+ }
61
+ function ScormNavigationRequestToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'request': value['request'],
67
+ 'target_identifier': value['targetIdentifier'],
68
+ };
69
+ }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ScormNavigationDelivery } from './ScormNavigationDelivery';
13
+ import type { ScormNavigationValidity } from './ScormNavigationValidity';
14
+ /**
15
+ * Result of a SCORM 2004 sequencing transition
16
+ * @export
17
+ * @interface ScormNavigationResponse
18
+ */
19
+ export interface ScormNavigationResponse {
20
+ /**
21
+ *
22
+ * @type {boolean}
23
+ * @memberof ScormNavigationResponse
24
+ */
25
+ success: boolean;
26
+ /**
27
+ *
28
+ * @type {ScormNavigationDelivery}
29
+ * @memberof ScormNavigationResponse
30
+ */
31
+ delivery?: ScormNavigationDelivery;
32
+ /**
33
+ *
34
+ * @type {boolean}
35
+ * @memberof ScormNavigationResponse
36
+ */
37
+ sequencingEnded: boolean;
38
+ /**
39
+ *
40
+ * @type {boolean}
41
+ * @memberof ScormNavigationResponse
42
+ */
43
+ suspended: boolean;
44
+ /**
45
+ *
46
+ * @type {ScormNavigationValidity}
47
+ * @memberof ScormNavigationResponse
48
+ */
49
+ valid: ScormNavigationValidity;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof ScormNavigationResponse
54
+ */
55
+ errorCode: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof ScormNavigationResponse
60
+ */
61
+ diagnostic: string;
62
+ }
63
+ /**
64
+ * Check if a given object implements the ScormNavigationResponse interface.
65
+ */
66
+ export declare function instanceOfScormNavigationResponse(value: object): value is ScormNavigationResponse;
67
+ export declare function ScormNavigationResponseFromJSON(json: any): ScormNavigationResponse;
68
+ export declare function ScormNavigationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormNavigationResponse;
69
+ export declare function ScormNavigationResponseToJSON(json: any): ScormNavigationResponse;
70
+ export declare function ScormNavigationResponseToJSONTyped(value?: ScormNavigationResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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.instanceOfScormNavigationResponse = instanceOfScormNavigationResponse;
17
+ exports.ScormNavigationResponseFromJSON = ScormNavigationResponseFromJSON;
18
+ exports.ScormNavigationResponseFromJSONTyped = ScormNavigationResponseFromJSONTyped;
19
+ exports.ScormNavigationResponseToJSON = ScormNavigationResponseToJSON;
20
+ exports.ScormNavigationResponseToJSONTyped = ScormNavigationResponseToJSONTyped;
21
+ const ScormNavigationDelivery_1 = require("./ScormNavigationDelivery");
22
+ const ScormNavigationValidity_1 = require("./ScormNavigationValidity");
23
+ /**
24
+ * Check if a given object implements the ScormNavigationResponse interface.
25
+ */
26
+ function instanceOfScormNavigationResponse(value) {
27
+ if (!('success' in value) || value['success'] === undefined)
28
+ return false;
29
+ if (!('sequencingEnded' in value) || value['sequencingEnded'] === undefined)
30
+ return false;
31
+ if (!('suspended' in value) || value['suspended'] === undefined)
32
+ return false;
33
+ if (!('valid' in value) || value['valid'] === undefined)
34
+ return false;
35
+ if (!('errorCode' in value) || value['errorCode'] === undefined)
36
+ return false;
37
+ if (!('diagnostic' in value) || value['diagnostic'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function ScormNavigationResponseFromJSON(json) {
42
+ return ScormNavigationResponseFromJSONTyped(json, false);
43
+ }
44
+ function ScormNavigationResponseFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'success': json['success'],
50
+ 'delivery': json['delivery'] == null ? undefined : (0, ScormNavigationDelivery_1.ScormNavigationDeliveryFromJSON)(json['delivery']),
51
+ 'sequencingEnded': json['sequencing_ended'],
52
+ 'suspended': json['suspended'],
53
+ 'valid': (0, ScormNavigationValidity_1.ScormNavigationValidityFromJSON)(json['valid']),
54
+ 'errorCode': json['error_code'],
55
+ 'diagnostic': json['diagnostic'],
56
+ };
57
+ }
58
+ function ScormNavigationResponseToJSON(json) {
59
+ return ScormNavigationResponseToJSONTyped(json, false);
60
+ }
61
+ function ScormNavigationResponseToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'success': value['success'],
67
+ 'delivery': (0, ScormNavigationDelivery_1.ScormNavigationDeliveryToJSON)(value['delivery']),
68
+ 'sequencing_ended': value['sequencingEnded'],
69
+ 'suspended': value['suspended'],
70
+ 'valid': (0, ScormNavigationValidity_1.ScormNavigationValidityToJSON)(value['valid']),
71
+ 'error_code': value['errorCode'],
72
+ 'diagnostic': value['diagnostic'],
73
+ };
74
+ }
@@ -0,0 +1,92 @@
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
+ * Navigation requests valid in the resulting sequencing state
14
+ * @export
15
+ * @interface ScormNavigationValidity
16
+ */
17
+ export interface ScormNavigationValidity {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof ScormNavigationValidity
22
+ */
23
+ start: boolean;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof ScormNavigationValidity
28
+ */
29
+ resumeAll: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ScormNavigationValidity
34
+ */
35
+ _continue: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof ScormNavigationValidity
40
+ */
41
+ previous: boolean;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof ScormNavigationValidity
46
+ */
47
+ exit: boolean;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof ScormNavigationValidity
52
+ */
53
+ exitAll: boolean;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof ScormNavigationValidity
58
+ */
59
+ abandon: boolean;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof ScormNavigationValidity
64
+ */
65
+ abandonAll: boolean;
66
+ /**
67
+ *
68
+ * @type {boolean}
69
+ * @memberof ScormNavigationValidity
70
+ */
71
+ suspendAll: boolean;
72
+ /**
73
+ *
74
+ * @type {Array<string>}
75
+ * @memberof ScormNavigationValidity
76
+ */
77
+ choiceTargets: Array<string>;
78
+ /**
79
+ *
80
+ * @type {Array<string>}
81
+ * @memberof ScormNavigationValidity
82
+ */
83
+ jumpTargets: Array<string>;
84
+ }
85
+ /**
86
+ * Check if a given object implements the ScormNavigationValidity interface.
87
+ */
88
+ export declare function instanceOfScormNavigationValidity(value: object): value is ScormNavigationValidity;
89
+ export declare function ScormNavigationValidityFromJSON(json: any): ScormNavigationValidity;
90
+ export declare function ScormNavigationValidityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormNavigationValidity;
91
+ export declare function ScormNavigationValidityToJSON(json: any): ScormNavigationValidity;
92
+ export declare function ScormNavigationValidityToJSONTyped(value?: ScormNavigationValidity | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,90 @@
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.instanceOfScormNavigationValidity = instanceOfScormNavigationValidity;
17
+ exports.ScormNavigationValidityFromJSON = ScormNavigationValidityFromJSON;
18
+ exports.ScormNavigationValidityFromJSONTyped = ScormNavigationValidityFromJSONTyped;
19
+ exports.ScormNavigationValidityToJSON = ScormNavigationValidityToJSON;
20
+ exports.ScormNavigationValidityToJSONTyped = ScormNavigationValidityToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ScormNavigationValidity interface.
23
+ */
24
+ function instanceOfScormNavigationValidity(value) {
25
+ if (!('start' in value) || value['start'] === undefined)
26
+ return false;
27
+ if (!('resumeAll' in value) || value['resumeAll'] === undefined)
28
+ return false;
29
+ if (!('_continue' in value) || value['_continue'] === undefined)
30
+ return false;
31
+ if (!('previous' in value) || value['previous'] === undefined)
32
+ return false;
33
+ if (!('exit' in value) || value['exit'] === undefined)
34
+ return false;
35
+ if (!('exitAll' in value) || value['exitAll'] === undefined)
36
+ return false;
37
+ if (!('abandon' in value) || value['abandon'] === undefined)
38
+ return false;
39
+ if (!('abandonAll' in value) || value['abandonAll'] === undefined)
40
+ return false;
41
+ if (!('suspendAll' in value) || value['suspendAll'] === undefined)
42
+ return false;
43
+ if (!('choiceTargets' in value) || value['choiceTargets'] === undefined)
44
+ return false;
45
+ if (!('jumpTargets' in value) || value['jumpTargets'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ function ScormNavigationValidityFromJSON(json) {
50
+ return ScormNavigationValidityFromJSONTyped(json, false);
51
+ }
52
+ function ScormNavigationValidityFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'start': json['start'],
58
+ 'resumeAll': json['resume_all'],
59
+ '_continue': json['continue'],
60
+ 'previous': json['previous'],
61
+ 'exit': json['exit'],
62
+ 'exitAll': json['exit_all'],
63
+ 'abandon': json['abandon'],
64
+ 'abandonAll': json['abandon_all'],
65
+ 'suspendAll': json['suspend_all'],
66
+ 'choiceTargets': json['choice_targets'],
67
+ 'jumpTargets': json['jump_targets'],
68
+ };
69
+ }
70
+ function ScormNavigationValidityToJSON(json) {
71
+ return ScormNavigationValidityToJSONTyped(json, false);
72
+ }
73
+ function ScormNavigationValidityToJSONTyped(value, ignoreDiscriminator = false) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'start': value['start'],
79
+ 'resume_all': value['resumeAll'],
80
+ 'continue': value['_continue'],
81
+ 'previous': value['previous'],
82
+ 'exit': value['exit'],
83
+ 'exit_all': value['exitAll'],
84
+ 'abandon': value['abandon'],
85
+ 'abandon_all': value['abandonAll'],
86
+ 'suspend_all': value['suspendAll'],
87
+ 'choice_targets': value['choiceTargets'],
88
+ 'jump_targets': value['jumpTargets'],
89
+ };
90
+ }
@@ -0,0 +1,44 @@
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
+ * Typed result of a SCORM runtime API operation
14
+ * @export
15
+ * @interface ScormRuntimeResponse
16
+ */
17
+ export interface ScormRuntimeResponse {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof ScormRuntimeResponse
22
+ */
23
+ success: boolean;
24
+ /**
25
+ * Exact SCORM runtime error code for this API call
26
+ * @type {string}
27
+ * @memberof ScormRuntimeResponse
28
+ */
29
+ errorCode: string;
30
+ /**
31
+ * Diagnostic detail for the error code, empty on success
32
+ * @type {string}
33
+ * @memberof ScormRuntimeResponse
34
+ */
35
+ diagnostic: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ScormRuntimeResponse interface.
39
+ */
40
+ export declare function instanceOfScormRuntimeResponse(value: object): value is ScormRuntimeResponse;
41
+ export declare function ScormRuntimeResponseFromJSON(json: any): ScormRuntimeResponse;
42
+ export declare function ScormRuntimeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormRuntimeResponse;
43
+ export declare function ScormRuntimeResponseToJSON(json: any): ScormRuntimeResponse;
44
+ export declare function ScormRuntimeResponseToJSONTyped(value?: ScormRuntimeResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfScormRuntimeResponse = instanceOfScormRuntimeResponse;
17
+ exports.ScormRuntimeResponseFromJSON = ScormRuntimeResponseFromJSON;
18
+ exports.ScormRuntimeResponseFromJSONTyped = ScormRuntimeResponseFromJSONTyped;
19
+ exports.ScormRuntimeResponseToJSON = ScormRuntimeResponseToJSON;
20
+ exports.ScormRuntimeResponseToJSONTyped = ScormRuntimeResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ScormRuntimeResponse interface.
23
+ */
24
+ function instanceOfScormRuntimeResponse(value) {
25
+ if (!('success' in value) || value['success'] === undefined)
26
+ return false;
27
+ if (!('errorCode' in value) || value['errorCode'] === undefined)
28
+ return false;
29
+ if (!('diagnostic' in value) || value['diagnostic'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function ScormRuntimeResponseFromJSON(json) {
34
+ return ScormRuntimeResponseFromJSONTyped(json, false);
35
+ }
36
+ function ScormRuntimeResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'success': json['success'],
42
+ 'errorCode': json['error_code'],
43
+ 'diagnostic': json['diagnostic'],
44
+ };
45
+ }
46
+ function ScormRuntimeResponseToJSON(json) {
47
+ return ScormRuntimeResponseToJSONTyped(json, false);
48
+ }
49
+ function ScormRuntimeResponseToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'success': value['success'],
55
+ 'error_code': value['errorCode'],
56
+ 'diagnostic': value['diagnostic'],
57
+ };
58
+ }
@@ -21,6 +21,18 @@ export interface ScormSetValueResponse {
21
21
  * @memberof ScormSetValueResponse
22
22
  */
23
23
  success: boolean;
24
+ /**
25
+ * Exact SCORM runtime error code for this API call
26
+ * @type {string}
27
+ * @memberof ScormSetValueResponse
28
+ */
29
+ errorCode: string;
30
+ /**
31
+ * Diagnostic detail for the error code, empty on success
32
+ * @type {string}
33
+ * @memberof ScormSetValueResponse
34
+ */
35
+ diagnostic: string;
24
36
  }
25
37
  /**
26
38
  * Check if a given object implements the ScormSetValueResponse interface.
@@ -24,6 +24,10 @@ exports.ScormSetValueResponseToJSONTyped = ScormSetValueResponseToJSONTyped;
24
24
  function instanceOfScormSetValueResponse(value) {
25
25
  if (!('success' in value) || value['success'] === undefined)
26
26
  return false;
27
+ if (!('errorCode' in value) || value['errorCode'] === undefined)
28
+ return false;
29
+ if (!('diagnostic' in value) || value['diagnostic'] === undefined)
30
+ return false;
27
31
  return true;
28
32
  }
29
33
  function ScormSetValueResponseFromJSON(json) {
@@ -35,6 +39,8 @@ function ScormSetValueResponseFromJSONTyped(json, ignoreDiscriminator) {
35
39
  }
36
40
  return {
37
41
  'success': json['success'],
42
+ 'errorCode': json['error_code'],
43
+ 'diagnostic': json['diagnostic'],
38
44
  };
39
45
  }
40
46
  function ScormSetValueResponseToJSON(json) {
@@ -46,5 +52,7 @@ function ScormSetValueResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
52
  }
47
53
  return {
48
54
  'success': value['success'],
55
+ 'error_code': value['errorCode'],
56
+ 'diagnostic': value['diagnostic'],
49
57
  };
50
58
  }
@@ -0,0 +1,63 @@
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 { ScormNavigationDelivery } from './ScormNavigationDelivery';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ScormTerminateResponse
17
+ */
18
+ export interface ScormTerminateResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ScormTerminateResponse
23
+ */
24
+ success: boolean;
25
+ /**
26
+ * Exact SCORM runtime error code for this API call
27
+ * @type {string}
28
+ * @memberof ScormTerminateResponse
29
+ */
30
+ errorCode: string;
31
+ /**
32
+ * Diagnostic detail for the error code, empty on success
33
+ * @type {string}
34
+ * @memberof ScormTerminateResponse
35
+ */
36
+ diagnostic: string;
37
+ /**
38
+ *
39
+ * @type {ScormNavigationDelivery}
40
+ * @memberof ScormTerminateResponse
41
+ */
42
+ delivery?: ScormNavigationDelivery;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof ScormTerminateResponse
47
+ */
48
+ sequencingEnded: boolean;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof ScormTerminateResponse
53
+ */
54
+ suspended: boolean;
55
+ }
56
+ /**
57
+ * Check if a given object implements the ScormTerminateResponse interface.
58
+ */
59
+ export declare function instanceOfScormTerminateResponse(value: object): value is ScormTerminateResponse;
60
+ export declare function ScormTerminateResponseFromJSON(json: any): ScormTerminateResponse;
61
+ export declare function ScormTerminateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormTerminateResponse;
62
+ export declare function ScormTerminateResponseToJSON(json: any): ScormTerminateResponse;
63
+ export declare function ScormTerminateResponseToJSONTyped(value?: ScormTerminateResponse | null, ignoreDiscriminator?: boolean): any;