@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
@@ -18,11 +18,13 @@ exports.IntegrationEventDataFromJSON = IntegrationEventDataFromJSON;
18
18
  exports.IntegrationEventDataFromJSONTyped = IntegrationEventDataFromJSONTyped;
19
19
  exports.IntegrationEventDataToJSON = IntegrationEventDataToJSON;
20
20
  exports.IntegrationEventDataToJSONTyped = IntegrationEventDataToJSONTyped;
21
+ const IntegrationEventUser_1 = require("./IntegrationEventUser");
21
22
  const IntegrationEventLearner_1 = require("./IntegrationEventLearner");
22
23
  const IntegrationEventCertificate_1 = require("./IntegrationEventCertificate");
23
24
  const IntegrationEventEnrollment_1 = require("./IntegrationEventEnrollment");
24
25
  const IntegrationEventPortal_1 = require("./IntegrationEventPortal");
25
26
  const IntegrationEventCourse_1 = require("./IntegrationEventCourse");
27
+ const IntegrationEventInvitation_1 = require("./IntegrationEventInvitation");
26
28
  /**
27
29
  * Check if a given object implements the IntegrationEventData interface.
28
30
  */
@@ -31,12 +33,16 @@ function instanceOfIntegrationEventData(value) {
31
33
  return false;
32
34
  if (!('learner' in value) || value['learner'] === undefined)
33
35
  return false;
36
+ if (!('user' in value) || value['user'] === undefined)
37
+ return false;
34
38
  if (!('course' in value) || value['course'] === undefined)
35
39
  return false;
36
40
  if (!('enrollment' in value) || value['enrollment'] === undefined)
37
41
  return false;
38
42
  if (!('certificate' in value) || value['certificate'] === undefined)
39
43
  return false;
44
+ if (!('invitation' in value) || value['invitation'] === undefined)
45
+ return false;
40
46
  return true;
41
47
  }
42
48
  function IntegrationEventDataFromJSON(json) {
@@ -49,9 +55,11 @@ function IntegrationEventDataFromJSONTyped(json, ignoreDiscriminator) {
49
55
  return {
50
56
  'portal': (0, IntegrationEventPortal_1.IntegrationEventPortalFromJSON)(json['portal']),
51
57
  'learner': (0, IntegrationEventLearner_1.IntegrationEventLearnerFromJSON)(json['learner']),
58
+ 'user': (0, IntegrationEventUser_1.IntegrationEventUserFromJSON)(json['user']),
52
59
  'course': (0, IntegrationEventCourse_1.IntegrationEventCourseFromJSON)(json['course']),
53
60
  'enrollment': (0, IntegrationEventEnrollment_1.IntegrationEventEnrollmentFromJSON)(json['enrollment']),
54
61
  'certificate': (0, IntegrationEventCertificate_1.IntegrationEventCertificateFromJSON)(json['certificate']),
62
+ 'invitation': (0, IntegrationEventInvitation_1.IntegrationEventInvitationFromJSON)(json['invitation']),
55
63
  };
56
64
  }
57
65
  function IntegrationEventDataToJSON(json) {
@@ -64,8 +72,10 @@ function IntegrationEventDataToJSONTyped(value, ignoreDiscriminator = false) {
64
72
  return {
65
73
  'portal': (0, IntegrationEventPortal_1.IntegrationEventPortalToJSON)(value['portal']),
66
74
  'learner': (0, IntegrationEventLearner_1.IntegrationEventLearnerToJSON)(value['learner']),
75
+ 'user': (0, IntegrationEventUser_1.IntegrationEventUserToJSON)(value['user']),
67
76
  'course': (0, IntegrationEventCourse_1.IntegrationEventCourseToJSON)(value['course']),
68
77
  'enrollment': (0, IntegrationEventEnrollment_1.IntegrationEventEnrollmentToJSON)(value['enrollment']),
69
78
  'certificate': (0, IntegrationEventCertificate_1.IntegrationEventCertificateToJSON)(value['certificate']),
79
+ 'invitation': (0, IntegrationEventInvitation_1.IntegrationEventInvitationToJSON)(value['invitation']),
70
80
  };
71
81
  }
@@ -0,0 +1,71 @@
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 { IntegrationEventUser } from './IntegrationEventUser';
13
+ /**
14
+ * Portal invitation lifecycle details for the affected user.
15
+ * @export
16
+ * @interface IntegrationEventInvitation
17
+ */
18
+ export interface IntegrationEventInvitation {
19
+ /**
20
+ * Stable invitation ID.
21
+ * @type {string}
22
+ * @memberof IntegrationEventInvitation
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {IntegrationEventInvitationStatusEnum}
28
+ * @memberof IntegrationEventInvitation
29
+ */
30
+ status: IntegrationEventInvitationStatusEnum;
31
+ /**
32
+ *
33
+ * @type {Date}
34
+ * @memberof IntegrationEventInvitation
35
+ */
36
+ invitedAt: Date;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof IntegrationEventInvitation
41
+ */
42
+ expiresAt: Date;
43
+ /**
44
+ *
45
+ * @type {Date}
46
+ * @memberof IntegrationEventInvitation
47
+ */
48
+ acceptedAt: Date | null;
49
+ /**
50
+ *
51
+ * @type {IntegrationEventUser}
52
+ * @memberof IntegrationEventInvitation
53
+ */
54
+ invitedBy: IntegrationEventUser | null;
55
+ }
56
+ /**
57
+ * @export
58
+ */
59
+ export declare const IntegrationEventInvitationStatusEnum: {
60
+ readonly Pending: "pending";
61
+ readonly Accepted: "accepted";
62
+ };
63
+ export type IntegrationEventInvitationStatusEnum = typeof IntegrationEventInvitationStatusEnum[keyof typeof IntegrationEventInvitationStatusEnum];
64
+ /**
65
+ * Check if a given object implements the IntegrationEventInvitation interface.
66
+ */
67
+ export declare function instanceOfIntegrationEventInvitation(value: object): value is IntegrationEventInvitation;
68
+ export declare function IntegrationEventInvitationFromJSON(json: any): IntegrationEventInvitation;
69
+ export declare function IntegrationEventInvitationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventInvitation;
70
+ export declare function IntegrationEventInvitationToJSON(json: any): IntegrationEventInvitation;
71
+ export declare function IntegrationEventInvitationToJSONTyped(value?: IntegrationEventInvitation | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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.IntegrationEventInvitationStatusEnum = void 0;
17
+ exports.instanceOfIntegrationEventInvitation = instanceOfIntegrationEventInvitation;
18
+ exports.IntegrationEventInvitationFromJSON = IntegrationEventInvitationFromJSON;
19
+ exports.IntegrationEventInvitationFromJSONTyped = IntegrationEventInvitationFromJSONTyped;
20
+ exports.IntegrationEventInvitationToJSON = IntegrationEventInvitationToJSON;
21
+ exports.IntegrationEventInvitationToJSONTyped = IntegrationEventInvitationToJSONTyped;
22
+ const IntegrationEventUser_1 = require("./IntegrationEventUser");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.IntegrationEventInvitationStatusEnum = {
27
+ Pending: 'pending',
28
+ Accepted: 'accepted'
29
+ };
30
+ /**
31
+ * Check if a given object implements the IntegrationEventInvitation interface.
32
+ */
33
+ function instanceOfIntegrationEventInvitation(value) {
34
+ if (!('id' in value) || value['id'] === undefined)
35
+ return false;
36
+ if (!('status' in value) || value['status'] === undefined)
37
+ return false;
38
+ if (!('invitedAt' in value) || value['invitedAt'] === undefined)
39
+ return false;
40
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined)
41
+ return false;
42
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined)
43
+ return false;
44
+ if (!('invitedBy' in value) || value['invitedBy'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function IntegrationEventInvitationFromJSON(json) {
49
+ return IntegrationEventInvitationFromJSONTyped(json, false);
50
+ }
51
+ function IntegrationEventInvitationFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'id': json['id'],
57
+ 'status': json['status'],
58
+ 'invitedAt': (new Date(json['invited_at'])),
59
+ 'expiresAt': (new Date(json['expires_at'])),
60
+ 'acceptedAt': (json['accepted_at'] == null ? null : new Date(json['accepted_at'])),
61
+ 'invitedBy': (0, IntegrationEventUser_1.IntegrationEventUserFromJSON)(json['invited_by']),
62
+ };
63
+ }
64
+ function IntegrationEventInvitationToJSON(json) {
65
+ return IntegrationEventInvitationToJSONTyped(json, false);
66
+ }
67
+ function IntegrationEventInvitationToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'id': value['id'],
73
+ 'status': value['status'],
74
+ 'invited_at': value['invitedAt'].toISOString(),
75
+ 'expires_at': value['expiresAt'].toISOString(),
76
+ 'accepted_at': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
77
+ 'invited_by': (0, IntegrationEventUser_1.IntegrationEventUserToJSON)(value['invitedBy']),
78
+ };
79
+ }
@@ -0,0 +1,50 @@
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
+ * User affected by a portal membership lifecycle event.
14
+ * @export
15
+ * @interface IntegrationEventUser
16
+ */
17
+ export interface IntegrationEventUser {
18
+ /**
19
+ * Stable external user ID.
20
+ * @type {string}
21
+ * @memberof IntegrationEventUser
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IntegrationEventUser
28
+ */
29
+ email: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IntegrationEventUser
34
+ */
35
+ firstName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof IntegrationEventUser
40
+ */
41
+ lastName: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the IntegrationEventUser interface.
45
+ */
46
+ export declare function instanceOfIntegrationEventUser(value: object): value is IntegrationEventUser;
47
+ export declare function IntegrationEventUserFromJSON(json: any): IntegrationEventUser;
48
+ export declare function IntegrationEventUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEventUser;
49
+ export declare function IntegrationEventUserToJSON(json: any): IntegrationEventUser;
50
+ export declare function IntegrationEventUserToJSONTyped(value?: IntegrationEventUser | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfIntegrationEventUser = instanceOfIntegrationEventUser;
17
+ exports.IntegrationEventUserFromJSON = IntegrationEventUserFromJSON;
18
+ exports.IntegrationEventUserFromJSONTyped = IntegrationEventUserFromJSONTyped;
19
+ exports.IntegrationEventUserToJSON = IntegrationEventUserToJSON;
20
+ exports.IntegrationEventUserToJSONTyped = IntegrationEventUserToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IntegrationEventUser interface.
23
+ */
24
+ function instanceOfIntegrationEventUser(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('email' in value) || value['email'] === undefined)
28
+ return false;
29
+ if (!('firstName' in value) || value['firstName'] === undefined)
30
+ return false;
31
+ if (!('lastName' in value) || value['lastName'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function IntegrationEventUserFromJSON(json) {
36
+ return IntegrationEventUserFromJSONTyped(json, false);
37
+ }
38
+ function IntegrationEventUserFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'email': json['email'],
45
+ 'firstName': json['first_name'],
46
+ 'lastName': json['last_name'],
47
+ };
48
+ }
49
+ function IntegrationEventUserToJSON(json) {
50
+ return IntegrationEventUserToJSONTyped(json, false);
51
+ }
52
+ function IntegrationEventUserToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'email': value['email'],
59
+ 'first_name': value['firstName'],
60
+ 'last_name': value['lastName'],
61
+ };
62
+ }
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { HostedScormRollupPolicy } from './HostedScormRollupPolicy';
13
+ import type { HostedScormAccessPolicy } from './HostedScormAccessPolicy';
12
14
  /**
13
15
  * Request to create a new export for a course
14
16
  * @export
@@ -33,6 +35,24 @@ export interface PostCourseExport {
33
35
  * @memberof PostCourseExport
34
36
  */
35
37
  sectionIds: Array<string>;
38
+ /**
39
+ * Hosted course mode is an additive backend preview until its player is deployed.
40
+ * @type {PostCourseExportDeliveryModeEnum}
41
+ * @memberof PostCourseExport
42
+ */
43
+ deliveryMode?: PostCourseExportDeliveryModeEnum;
44
+ /**
45
+ *
46
+ * @type {HostedScormRollupPolicy}
47
+ * @memberof PostCourseExport
48
+ */
49
+ rollupPolicy?: HostedScormRollupPolicy;
50
+ /**
51
+ *
52
+ * @type {HostedScormAccessPolicy}
53
+ * @memberof PostCourseExport
54
+ */
55
+ accessPolicy?: HostedScormAccessPolicy;
36
56
  }
37
57
  /**
38
58
  * @export
@@ -43,6 +63,14 @@ export declare const PostCourseExportExportTypeEnum: {
43
63
  readonly Scorm20044ThEdition: "SCORM_2004_4TH_EDITION";
44
64
  };
45
65
  export type PostCourseExportExportTypeEnum = typeof PostCourseExportExportTypeEnum[keyof typeof PostCourseExportExportTypeEnum];
66
+ /**
67
+ * @export
68
+ */
69
+ export declare const PostCourseExportDeliveryModeEnum: {
70
+ readonly LegacyMultiSco: "LEGACY_MULTI_SCO";
71
+ readonly HostedCourseV1: "HOSTED_COURSE_V1";
72
+ };
73
+ export type PostCourseExportDeliveryModeEnum = typeof PostCourseExportDeliveryModeEnum[keyof typeof PostCourseExportDeliveryModeEnum];
46
74
  /**
47
75
  * Check if a given object implements the PostCourseExport interface.
48
76
  */
@@ -13,12 +13,14 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PostCourseExportExportTypeEnum = void 0;
16
+ exports.PostCourseExportDeliveryModeEnum = exports.PostCourseExportExportTypeEnum = void 0;
17
17
  exports.instanceOfPostCourseExport = instanceOfPostCourseExport;
18
18
  exports.PostCourseExportFromJSON = PostCourseExportFromJSON;
19
19
  exports.PostCourseExportFromJSONTyped = PostCourseExportFromJSONTyped;
20
20
  exports.PostCourseExportToJSON = PostCourseExportToJSON;
21
21
  exports.PostCourseExportToJSONTyped = PostCourseExportToJSONTyped;
22
+ const HostedScormRollupPolicy_1 = require("./HostedScormRollupPolicy");
23
+ const HostedScormAccessPolicy_1 = require("./HostedScormAccessPolicy");
22
24
  /**
23
25
  * @export
24
26
  */
@@ -27,6 +29,13 @@ exports.PostCourseExportExportTypeEnum = {
27
29
  Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
28
30
  Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
29
31
  };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.PostCourseExportDeliveryModeEnum = {
36
+ LegacyMultiSco: 'LEGACY_MULTI_SCO',
37
+ HostedCourseV1: 'HOSTED_COURSE_V1'
38
+ };
30
39
  /**
31
40
  * Check if a given object implements the PostCourseExport interface.
32
41
  */
@@ -50,6 +59,9 @@ function PostCourseExportFromJSONTyped(json, ignoreDiscriminator) {
50
59
  'courseVersionId': json['course_version_id'],
51
60
  'exportType': json['export_type'],
52
61
  'sectionIds': json['section_ids'],
62
+ 'deliveryMode': json['delivery_mode'] == null ? undefined : json['delivery_mode'],
63
+ 'rollupPolicy': json['rollup_policy'] == null ? undefined : (0, HostedScormRollupPolicy_1.HostedScormRollupPolicyFromJSON)(json['rollup_policy']),
64
+ 'accessPolicy': json['access_policy'] == null ? undefined : (0, HostedScormAccessPolicy_1.HostedScormAccessPolicyFromJSON)(json['access_policy']),
53
65
  };
54
66
  }
55
67
  function PostCourseExportToJSON(json) {
@@ -63,5 +75,8 @@ function PostCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
63
75
  'course_version_id': value['courseVersionId'],
64
76
  'export_type': value['exportType'],
65
77
  'section_ids': value['sectionIds'],
78
+ 'delivery_mode': value['deliveryMode'],
79
+ 'rollup_policy': (0, HostedScormRollupPolicy_1.HostedScormRollupPolicyToJSON)(value['rollupPolicy']),
80
+ 'access_policy': (0, HostedScormAccessPolicy_1.HostedScormAccessPolicyToJSON)(value['accessPolicy']),
66
81
  };
67
82
  }
@@ -53,6 +53,8 @@ export declare const PostCustomWebhookIntegrationEventTypesEnum: {
53
53
  readonly ComEdaxuEnrollmentEnrolledV1: "com.edaxu.enrollment.enrolled.v1";
54
54
  readonly ComEdaxuEnrollmentCompletedV1: "com.edaxu.enrollment.completed.v1";
55
55
  readonly ComEdaxuCertificateIssuedV1: "com.edaxu.certificate.issued.v1";
56
+ readonly ComEdaxuPortalUserInvitedV1: "com.edaxu.portal.user_invited.v1";
57
+ readonly ComEdaxuPortalUserJoinedV1: "com.edaxu.portal.user_joined.v1";
56
58
  };
57
59
  export type PostCustomWebhookIntegrationEventTypesEnum = typeof PostCustomWebhookIntegrationEventTypesEnum[keyof typeof PostCustomWebhookIntegrationEventTypesEnum];
58
60
  /**
@@ -25,7 +25,9 @@ exports.PostCustomWebhookIntegrationToJSONTyped = PostCustomWebhookIntegrationTo
25
25
  exports.PostCustomWebhookIntegrationEventTypesEnum = {
26
26
  ComEdaxuEnrollmentEnrolledV1: 'com.edaxu.enrollment.enrolled.v1',
27
27
  ComEdaxuEnrollmentCompletedV1: 'com.edaxu.enrollment.completed.v1',
28
- ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1'
28
+ ComEdaxuCertificateIssuedV1: 'com.edaxu.certificate.issued.v1',
29
+ ComEdaxuPortalUserInvitedV1: 'com.edaxu.portal.user_invited.v1',
30
+ ComEdaxuPortalUserJoinedV1: 'com.edaxu.portal.user_joined.v1'
29
31
  };
30
32
  /**
31
33
  * Check if a given object implements the PostCustomWebhookIntegration interface.
@@ -0,0 +1,32 @@
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 PostDispatchItemLaunch
16
+ */
17
+ export interface PostDispatchItemLaunch {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof PostDispatchItemLaunch
22
+ */
23
+ retake?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostDispatchItemLaunch interface.
27
+ */
28
+ export declare function instanceOfPostDispatchItemLaunch(value: object): value is PostDispatchItemLaunch;
29
+ export declare function PostDispatchItemLaunchFromJSON(json: any): PostDispatchItemLaunch;
30
+ export declare function PostDispatchItemLaunchFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchItemLaunch;
31
+ export declare function PostDispatchItemLaunchToJSON(json: any): PostDispatchItemLaunch;
32
+ export declare function PostDispatchItemLaunchToJSONTyped(value?: PostDispatchItemLaunch | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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.instanceOfPostDispatchItemLaunch = instanceOfPostDispatchItemLaunch;
17
+ exports.PostDispatchItemLaunchFromJSON = PostDispatchItemLaunchFromJSON;
18
+ exports.PostDispatchItemLaunchFromJSONTyped = PostDispatchItemLaunchFromJSONTyped;
19
+ exports.PostDispatchItemLaunchToJSON = PostDispatchItemLaunchToJSON;
20
+ exports.PostDispatchItemLaunchToJSONTyped = PostDispatchItemLaunchToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostDispatchItemLaunch interface.
23
+ */
24
+ function instanceOfPostDispatchItemLaunch(value) {
25
+ return true;
26
+ }
27
+ function PostDispatchItemLaunchFromJSON(json) {
28
+ return PostDispatchItemLaunchFromJSONTyped(json, false);
29
+ }
30
+ function PostDispatchItemLaunchFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'retake': json['retake'] == null ? undefined : json['retake'],
36
+ };
37
+ }
38
+ function PostDispatchItemLaunchToJSON(json) {
39
+ return PostDispatchItemLaunchToJSONTyped(json, false);
40
+ }
41
+ function PostDispatchItemLaunchToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'retake': value['retake'],
47
+ };
48
+ }
@@ -0,0 +1,64 @@
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 PostDispatchItemLaunchResponse
16
+ */
17
+ export interface PostDispatchItemLaunchResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostDispatchItemLaunchResponse
22
+ */
23
+ itemId: string;
24
+ /**
25
+ *
26
+ * @type {PostDispatchItemLaunchResponseKindEnum}
27
+ * @memberof PostDispatchItemLaunchResponse
28
+ */
29
+ kind: PostDispatchItemLaunchResponseKindEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PostDispatchItemLaunchResponse
34
+ */
35
+ sessionId: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PostDispatchItemLaunchResponse
40
+ */
41
+ attemptNumber: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PostDispatchItemLaunchResponse
46
+ */
47
+ launchUrl: string | null;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const PostDispatchItemLaunchResponseKindEnum: {
53
+ readonly Resource: "RESOURCE";
54
+ readonly Quiz: "QUIZ";
55
+ };
56
+ export type PostDispatchItemLaunchResponseKindEnum = typeof PostDispatchItemLaunchResponseKindEnum[keyof typeof PostDispatchItemLaunchResponseKindEnum];
57
+ /**
58
+ * Check if a given object implements the PostDispatchItemLaunchResponse interface.
59
+ */
60
+ export declare function instanceOfPostDispatchItemLaunchResponse(value: object): value is PostDispatchItemLaunchResponse;
61
+ export declare function PostDispatchItemLaunchResponseFromJSON(json: any): PostDispatchItemLaunchResponse;
62
+ export declare function PostDispatchItemLaunchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchItemLaunchResponse;
63
+ export declare function PostDispatchItemLaunchResponseToJSON(json: any): PostDispatchItemLaunchResponse;
64
+ export declare function PostDispatchItemLaunchResponseToJSONTyped(value?: PostDispatchItemLaunchResponse | 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.PostDispatchItemLaunchResponseKindEnum = void 0;
17
+ exports.instanceOfPostDispatchItemLaunchResponse = instanceOfPostDispatchItemLaunchResponse;
18
+ exports.PostDispatchItemLaunchResponseFromJSON = PostDispatchItemLaunchResponseFromJSON;
19
+ exports.PostDispatchItemLaunchResponseFromJSONTyped = PostDispatchItemLaunchResponseFromJSONTyped;
20
+ exports.PostDispatchItemLaunchResponseToJSON = PostDispatchItemLaunchResponseToJSON;
21
+ exports.PostDispatchItemLaunchResponseToJSONTyped = PostDispatchItemLaunchResponseToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PostDispatchItemLaunchResponseKindEnum = {
26
+ Resource: 'RESOURCE',
27
+ Quiz: 'QUIZ'
28
+ };
29
+ /**
30
+ * Check if a given object implements the PostDispatchItemLaunchResponse interface.
31
+ */
32
+ function instanceOfPostDispatchItemLaunchResponse(value) {
33
+ if (!('itemId' in value) || value['itemId'] === undefined)
34
+ return false;
35
+ if (!('kind' in value) || value['kind'] === undefined)
36
+ return false;
37
+ if (!('sessionId' in value) || value['sessionId'] === undefined)
38
+ return false;
39
+ if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
40
+ return false;
41
+ if (!('launchUrl' in value) || value['launchUrl'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function PostDispatchItemLaunchResponseFromJSON(json) {
46
+ return PostDispatchItemLaunchResponseFromJSONTyped(json, false);
47
+ }
48
+ function PostDispatchItemLaunchResponseFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'itemId': json['item_id'],
54
+ 'kind': json['kind'],
55
+ 'sessionId': json['session_id'],
56
+ 'attemptNumber': json['attempt_number'],
57
+ 'launchUrl': json['launch_url'],
58
+ };
59
+ }
60
+ function PostDispatchItemLaunchResponseToJSON(json) {
61
+ return PostDispatchItemLaunchResponseToJSONTyped(json, false);
62
+ }
63
+ function PostDispatchItemLaunchResponseToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'item_id': value['itemId'],
69
+ 'kind': value['kind'],
70
+ 'session_id': value['sessionId'],
71
+ 'attempt_number': value['attemptNumber'],
72
+ 'launch_url': value['launchUrl'],
73
+ };
74
+ }