@easyedu/js-lsm-api 1.118.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 (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 +147 -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 +147 -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
@@ -0,0 +1,103 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DispatchTokenResponse
20
+ */
21
+ export interface DispatchTokenResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof DispatchTokenResponse
26
+ */
27
+ accessToken: string;
28
+ /**
29
+ *
30
+ * @type {DispatchTokenResponseTokenTypeEnum}
31
+ * @memberof DispatchTokenResponse
32
+ */
33
+ tokenType: DispatchTokenResponseTokenTypeEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof DispatchTokenResponse
38
+ */
39
+ registrationId: string;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof DispatchTokenResponse
44
+ */
45
+ expiresAt: number;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const DispatchTokenResponseTokenTypeEnum = {
53
+ Dispatch: 'Dispatch'
54
+ } as const;
55
+ export type DispatchTokenResponseTokenTypeEnum = typeof DispatchTokenResponseTokenTypeEnum[keyof typeof DispatchTokenResponseTokenTypeEnum];
56
+
57
+
58
+ /**
59
+ * Check if a given object implements the DispatchTokenResponse interface.
60
+ */
61
+ export function instanceOfDispatchTokenResponse(value: object): value is DispatchTokenResponse {
62
+ if (!('accessToken' in value) || value['accessToken'] === undefined) return false;
63
+ if (!('tokenType' in value) || value['tokenType'] === undefined) return false;
64
+ if (!('registrationId' in value) || value['registrationId'] === undefined) return false;
65
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function DispatchTokenResponseFromJSON(json: any): DispatchTokenResponse {
70
+ return DispatchTokenResponseFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function DispatchTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DispatchTokenResponse {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'accessToken': json['access_token'],
80
+ 'tokenType': json['token_type'],
81
+ 'registrationId': json['registration_id'],
82
+ 'expiresAt': json['expires_at'],
83
+ };
84
+ }
85
+
86
+ export function DispatchTokenResponseToJSON(json: any): DispatchTokenResponse {
87
+ return DispatchTokenResponseToJSONTyped(json, false);
88
+ }
89
+
90
+ export function DispatchTokenResponseToJSONTyped(value?: DispatchTokenResponse | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'access_token': value['accessToken'],
98
+ 'token_type': value['tokenType'],
99
+ 'registration_id': value['registrationId'],
100
+ 'expires_at': value['expiresAt'],
101
+ };
102
+ }
103
+
@@ -13,6 +13,21 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { HostedScormRollupPolicy } from './HostedScormRollupPolicy';
17
+ import {
18
+ HostedScormRollupPolicyFromJSON,
19
+ HostedScormRollupPolicyFromJSONTyped,
20
+ HostedScormRollupPolicyToJSON,
21
+ HostedScormRollupPolicyToJSONTyped,
22
+ } from './HostedScormRollupPolicy';
23
+ import type { HostedScormAccessPolicy } from './HostedScormAccessPolicy';
24
+ import {
25
+ HostedScormAccessPolicyFromJSON,
26
+ HostedScormAccessPolicyFromJSONTyped,
27
+ HostedScormAccessPolicyToJSON,
28
+ HostedScormAccessPolicyToJSONTyped,
29
+ } from './HostedScormAccessPolicy';
30
+
16
31
  /**
17
32
  * Details of a course export
18
33
  * @export
@@ -91,6 +106,48 @@ export interface GetCourseExport {
91
106
  * @memberof GetCourseExport
92
107
  */
93
108
  createdAt: number;
109
+ /**
110
+ * Runtime package shape used by this export.
111
+ * @type {GetCourseExportDeliveryModeEnum}
112
+ * @memberof GetCourseExport
113
+ */
114
+ deliveryMode: GetCourseExportDeliveryModeEnum;
115
+ /**
116
+ *
117
+ * @type {HostedScormRollupPolicy}
118
+ * @memberof GetCourseExport
119
+ */
120
+ rollupPolicy: HostedScormRollupPolicy;
121
+ /**
122
+ *
123
+ * @type {HostedScormAccessPolicy}
124
+ * @memberof GetCourseExport
125
+ */
126
+ accessPolicy: HostedScormAccessPolicy;
127
+ /**
128
+ *
129
+ * @type {GetCourseExportRuntimeStatusEnum}
130
+ * @memberof GetCourseExport
131
+ */
132
+ runtimeStatus: GetCourseExportRuntimeStatusEnum;
133
+ /**
134
+ *
135
+ * @type {number}
136
+ * @memberof GetCourseExport
137
+ */
138
+ registeredLearners: number;
139
+ /**
140
+ *
141
+ * @type {number}
142
+ * @memberof GetCourseExport
143
+ */
144
+ totalLaunches: number;
145
+ /**
146
+ *
147
+ * @type {number}
148
+ * @memberof GetCourseExport
149
+ */
150
+ lastLaunchAt?: number | null;
94
151
  }
95
152
 
96
153
 
@@ -115,6 +172,26 @@ export const GetCourseExportStatusEnum = {
115
172
  } as const;
116
173
  export type GetCourseExportStatusEnum = typeof GetCourseExportStatusEnum[keyof typeof GetCourseExportStatusEnum];
117
174
 
175
+ /**
176
+ * @export
177
+ */
178
+ export const GetCourseExportDeliveryModeEnum = {
179
+ LegacyMultiSco: 'LEGACY_MULTI_SCO',
180
+ HostedCourseV1: 'HOSTED_COURSE_V1'
181
+ } as const;
182
+ export type GetCourseExportDeliveryModeEnum = typeof GetCourseExportDeliveryModeEnum[keyof typeof GetCourseExportDeliveryModeEnum];
183
+
184
+ /**
185
+ * @export
186
+ */
187
+ export const GetCourseExportRuntimeStatusEnum = {
188
+ LegacyActive: 'LEGACY_ACTIVE',
189
+ BackendReady: 'BACKEND_READY',
190
+ PlayerUnavailable: 'PLAYER_UNAVAILABLE',
191
+ Revoked: 'REVOKED'
192
+ } as const;
193
+ export type GetCourseExportRuntimeStatusEnum = typeof GetCourseExportRuntimeStatusEnum[keyof typeof GetCourseExportRuntimeStatusEnum];
194
+
118
195
 
119
196
  /**
120
197
  * Check if a given object implements the GetCourseExport interface.
@@ -128,6 +205,12 @@ export function instanceOfGetCourseExport(value: object): value is GetCourseExpo
128
205
  if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
129
206
  if (!('status' in value) || value['status'] === undefined) return false;
130
207
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
208
+ if (!('deliveryMode' in value) || value['deliveryMode'] === undefined) return false;
209
+ if (!('rollupPolicy' in value) || value['rollupPolicy'] === undefined) return false;
210
+ if (!('accessPolicy' in value) || value['accessPolicy'] === undefined) return false;
211
+ if (!('runtimeStatus' in value) || value['runtimeStatus'] === undefined) return false;
212
+ if (!('registeredLearners' in value) || value['registeredLearners'] === undefined) return false;
213
+ if (!('totalLaunches' in value) || value['totalLaunches'] === undefined) return false;
131
214
  return true;
132
215
  }
133
216
 
@@ -153,6 +236,13 @@ export function GetCourseExportFromJSONTyped(json: any, ignoreDiscriminator: boo
153
236
  'fileSize': json['file_size'] == null ? undefined : json['file_size'],
154
237
  'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
155
238
  'createdAt': json['created_at'],
239
+ 'deliveryMode': json['delivery_mode'],
240
+ 'rollupPolicy': HostedScormRollupPolicyFromJSON(json['rollup_policy']),
241
+ 'accessPolicy': HostedScormAccessPolicyFromJSON(json['access_policy']),
242
+ 'runtimeStatus': json['runtime_status'],
243
+ 'registeredLearners': json['registered_learners'],
244
+ 'totalLaunches': json['total_launches'],
245
+ 'lastLaunchAt': json['last_launch_at'] == null ? undefined : json['last_launch_at'],
156
246
  };
157
247
  }
158
248
 
@@ -179,6 +269,13 @@ export function GetCourseExportToJSONTyped(value?: GetCourseExport | null, ignor
179
269
  'file_size': value['fileSize'],
180
270
  'error_message': value['errorMessage'],
181
271
  'created_at': value['createdAt'],
272
+ 'delivery_mode': value['deliveryMode'],
273
+ 'rollup_policy': HostedScormRollupPolicyToJSON(value['rollupPolicy']),
274
+ 'access_policy': HostedScormAccessPolicyToJSON(value['accessPolicy']),
275
+ 'runtime_status': value['runtimeStatus'],
276
+ 'registered_learners': value['registeredLearners'],
277
+ 'total_launches': value['totalLaunches'],
278
+ 'last_launch_at': value['lastLaunchAt'],
182
279
  };
183
280
  }
184
281
 
@@ -0,0 +1,153 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { HostedScormOutlineEntry } from './HostedScormOutlineEntry';
17
+ import {
18
+ HostedScormOutlineEntryFromJSON,
19
+ HostedScormOutlineEntryFromJSONTyped,
20
+ HostedScormOutlineEntryToJSON,
21
+ HostedScormOutlineEntryToJSONTyped,
22
+ } from './HostedScormOutlineEntry';
23
+ import type { GetDispatchRollup } from './GetDispatchRollup';
24
+ import {
25
+ GetDispatchRollupFromJSON,
26
+ GetDispatchRollupFromJSONTyped,
27
+ GetDispatchRollupToJSON,
28
+ GetDispatchRollupToJSONTyped,
29
+ } from './GetDispatchRollup';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface GetDispatchCourse
35
+ */
36
+ export interface GetDispatchCourse {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof GetDispatchCourse
41
+ */
42
+ dispatchId: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof GetDispatchCourse
47
+ */
48
+ registrationId: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof GetDispatchCourse
53
+ */
54
+ courseId: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof GetDispatchCourse
59
+ */
60
+ courseVersionId: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof GetDispatchCourse
65
+ */
66
+ title: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof GetDispatchCourse
71
+ */
72
+ progressionMode: string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof GetDispatchCourse
77
+ */
78
+ currentItemId: string | null;
79
+ /**
80
+ *
81
+ * @type {Array<HostedScormOutlineEntry>}
82
+ * @memberof GetDispatchCourse
83
+ */
84
+ outline: Array<HostedScormOutlineEntry>;
85
+ /**
86
+ *
87
+ * @type {GetDispatchRollup}
88
+ * @memberof GetDispatchCourse
89
+ */
90
+ rollup: GetDispatchRollup;
91
+ }
92
+
93
+ /**
94
+ * Check if a given object implements the GetDispatchCourse interface.
95
+ */
96
+ export function instanceOfGetDispatchCourse(value: object): value is GetDispatchCourse {
97
+ if (!('dispatchId' in value) || value['dispatchId'] === undefined) return false;
98
+ if (!('registrationId' in value) || value['registrationId'] === undefined) return false;
99
+ if (!('courseId' in value) || value['courseId'] === undefined) return false;
100
+ if (!('courseVersionId' in value) || value['courseVersionId'] === undefined) return false;
101
+ if (!('title' in value) || value['title'] === undefined) return false;
102
+ if (!('progressionMode' in value) || value['progressionMode'] === undefined) return false;
103
+ if (!('currentItemId' in value) || value['currentItemId'] === undefined) return false;
104
+ if (!('outline' in value) || value['outline'] === undefined) return false;
105
+ if (!('rollup' in value) || value['rollup'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function GetDispatchCourseFromJSON(json: any): GetDispatchCourse {
110
+ return GetDispatchCourseFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function GetDispatchCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDispatchCourse {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'dispatchId': json['dispatch_id'],
120
+ 'registrationId': json['registration_id'],
121
+ 'courseId': json['course_id'],
122
+ 'courseVersionId': json['course_version_id'],
123
+ 'title': json['title'],
124
+ 'progressionMode': json['progression_mode'],
125
+ 'currentItemId': json['current_item_id'],
126
+ 'outline': ((json['outline'] as Array<any>).map(HostedScormOutlineEntryFromJSON)),
127
+ 'rollup': GetDispatchRollupFromJSON(json['rollup']),
128
+ };
129
+ }
130
+
131
+ export function GetDispatchCourseToJSON(json: any): GetDispatchCourse {
132
+ return GetDispatchCourseToJSONTyped(json, false);
133
+ }
134
+
135
+ export function GetDispatchCourseToJSONTyped(value?: GetDispatchCourse | null, ignoreDiscriminator: boolean = false): any {
136
+ if (value == null) {
137
+ return value;
138
+ }
139
+
140
+ return {
141
+
142
+ 'dispatch_id': value['dispatchId'],
143
+ 'registration_id': value['registrationId'],
144
+ 'course_id': value['courseId'],
145
+ 'course_version_id': value['courseVersionId'],
146
+ 'title': value['title'],
147
+ 'progression_mode': value['progressionMode'],
148
+ 'current_item_id': value['currentItemId'],
149
+ 'outline': ((value['outline'] as Array<any>).map(HostedScormOutlineEntryToJSON)),
150
+ 'rollup': GetDispatchRollupToJSON(value['rollup']),
151
+ };
152
+ }
153
+
@@ -0,0 +1,169 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface GetDispatchRollup
20
+ */
21
+ export interface GetDispatchRollup {
22
+ /**
23
+ *
24
+ * @type {GetDispatchRollupCompletionStatusEnum}
25
+ * @memberof GetDispatchRollup
26
+ */
27
+ completionStatus: GetDispatchRollupCompletionStatusEnum;
28
+ /**
29
+ *
30
+ * @type {GetDispatchRollupSuccessStatusEnum}
31
+ * @memberof GetDispatchRollup
32
+ */
33
+ successStatus: GetDispatchRollupSuccessStatusEnum;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof GetDispatchRollup
38
+ */
39
+ scoreRaw: number | null;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof GetDispatchRollup
44
+ */
45
+ scoreScaled: number | null;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof GetDispatchRollup
50
+ */
51
+ progressMeasure: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof GetDispatchRollup
56
+ */
57
+ totalItems: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof GetDispatchRollup
62
+ */
63
+ completedItems: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof GetDispatchRollup
68
+ */
69
+ requiredItems: number;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof GetDispatchRollup
74
+ */
75
+ completedRequiredItems: number;
76
+ /**
77
+ *
78
+ * @type {boolean}
79
+ * @memberof GetDispatchRollup
80
+ */
81
+ pendingManualGrading: boolean;
82
+ }
83
+
84
+
85
+ /**
86
+ * @export
87
+ */
88
+ export const GetDispatchRollupCompletionStatusEnum = {
89
+ NotAttempted: 'not_attempted',
90
+ Incomplete: 'incomplete',
91
+ Completed: 'completed'
92
+ } as const;
93
+ export type GetDispatchRollupCompletionStatusEnum = typeof GetDispatchRollupCompletionStatusEnum[keyof typeof GetDispatchRollupCompletionStatusEnum];
94
+
95
+ /**
96
+ * @export
97
+ */
98
+ export const GetDispatchRollupSuccessStatusEnum = {
99
+ Unknown: 'unknown',
100
+ Passed: 'passed',
101
+ Failed: 'failed'
102
+ } as const;
103
+ export type GetDispatchRollupSuccessStatusEnum = typeof GetDispatchRollupSuccessStatusEnum[keyof typeof GetDispatchRollupSuccessStatusEnum];
104
+
105
+
106
+ /**
107
+ * Check if a given object implements the GetDispatchRollup interface.
108
+ */
109
+ export function instanceOfGetDispatchRollup(value: object): value is GetDispatchRollup {
110
+ if (!('completionStatus' in value) || value['completionStatus'] === undefined) return false;
111
+ if (!('successStatus' in value) || value['successStatus'] === undefined) return false;
112
+ if (!('scoreRaw' in value) || value['scoreRaw'] === undefined) return false;
113
+ if (!('scoreScaled' in value) || value['scoreScaled'] === undefined) return false;
114
+ if (!('progressMeasure' in value) || value['progressMeasure'] === undefined) return false;
115
+ if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
116
+ if (!('completedItems' in value) || value['completedItems'] === undefined) return false;
117
+ if (!('requiredItems' in value) || value['requiredItems'] === undefined) return false;
118
+ if (!('completedRequiredItems' in value) || value['completedRequiredItems'] === undefined) return false;
119
+ if (!('pendingManualGrading' in value) || value['pendingManualGrading'] === undefined) return false;
120
+ return true;
121
+ }
122
+
123
+ export function GetDispatchRollupFromJSON(json: any): GetDispatchRollup {
124
+ return GetDispatchRollupFromJSONTyped(json, false);
125
+ }
126
+
127
+ export function GetDispatchRollupFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDispatchRollup {
128
+ if (json == null) {
129
+ return json;
130
+ }
131
+ return {
132
+
133
+ 'completionStatus': json['completion_status'],
134
+ 'successStatus': json['success_status'],
135
+ 'scoreRaw': json['score_raw'],
136
+ 'scoreScaled': json['score_scaled'],
137
+ 'progressMeasure': json['progress_measure'],
138
+ 'totalItems': json['total_items'],
139
+ 'completedItems': json['completed_items'],
140
+ 'requiredItems': json['required_items'],
141
+ 'completedRequiredItems': json['completed_required_items'],
142
+ 'pendingManualGrading': json['pending_manual_grading'],
143
+ };
144
+ }
145
+
146
+ export function GetDispatchRollupToJSON(json: any): GetDispatchRollup {
147
+ return GetDispatchRollupToJSONTyped(json, false);
148
+ }
149
+
150
+ export function GetDispatchRollupToJSONTyped(value?: GetDispatchRollup | null, ignoreDiscriminator: boolean = false): any {
151
+ if (value == null) {
152
+ return value;
153
+ }
154
+
155
+ return {
156
+
157
+ 'completion_status': value['completionStatus'],
158
+ 'success_status': value['successStatus'],
159
+ 'score_raw': value['scoreRaw'],
160
+ 'score_scaled': value['scoreScaled'],
161
+ 'progress_measure': value['progressMeasure'],
162
+ 'total_items': value['totalItems'],
163
+ 'completed_items': value['completedItems'],
164
+ 'required_items': value['requiredItems'],
165
+ 'completed_required_items': value['completedRequiredItems'],
166
+ 'pending_manual_grading': value['pendingManualGrading'],
167
+ };
168
+ }
169
+
@@ -0,0 +1,136 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface GetHostedScormRegistration
20
+ */
21
+ export interface GetHostedScormRegistration {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetHostedScormRegistration
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GetHostedScormRegistration
32
+ */
33
+ learnerId: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GetHostedScormRegistration
38
+ */
39
+ learnerName: string;
40
+ /**
41
+ *
42
+ * @type {boolean}
43
+ * @memberof GetHostedScormRegistration
44
+ */
45
+ active: boolean;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof GetHostedScormRegistration
50
+ */
51
+ launchCount: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof GetHostedScormRegistration
56
+ */
57
+ firstLaunchAt: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof GetHostedScormRegistration
62
+ */
63
+ lastLaunchAt: number;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof GetHostedScormRegistration
68
+ */
69
+ lastOrigin?: string | null;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof GetHostedScormRegistration
74
+ */
75
+ lastItemId?: string | null;
76
+ }
77
+
78
+ /**
79
+ * Check if a given object implements the GetHostedScormRegistration interface.
80
+ */
81
+ export function instanceOfGetHostedScormRegistration(value: object): value is GetHostedScormRegistration {
82
+ if (!('id' in value) || value['id'] === undefined) return false;
83
+ if (!('learnerId' in value) || value['learnerId'] === undefined) return false;
84
+ if (!('learnerName' in value) || value['learnerName'] === undefined) return false;
85
+ if (!('active' in value) || value['active'] === undefined) return false;
86
+ if (!('launchCount' in value) || value['launchCount'] === undefined) return false;
87
+ if (!('firstLaunchAt' in value) || value['firstLaunchAt'] === undefined) return false;
88
+ if (!('lastLaunchAt' in value) || value['lastLaunchAt'] === undefined) return false;
89
+ return true;
90
+ }
91
+
92
+ export function GetHostedScormRegistrationFromJSON(json: any): GetHostedScormRegistration {
93
+ return GetHostedScormRegistrationFromJSONTyped(json, false);
94
+ }
95
+
96
+ export function GetHostedScormRegistrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHostedScormRegistration {
97
+ if (json == null) {
98
+ return json;
99
+ }
100
+ return {
101
+
102
+ 'id': json['id'],
103
+ 'learnerId': json['learner_id'],
104
+ 'learnerName': json['learner_name'],
105
+ 'active': json['active'],
106
+ 'launchCount': json['launch_count'],
107
+ 'firstLaunchAt': json['first_launch_at'],
108
+ 'lastLaunchAt': json['last_launch_at'],
109
+ 'lastOrigin': json['last_origin'] == null ? undefined : json['last_origin'],
110
+ 'lastItemId': json['last_item_id'] == null ? undefined : json['last_item_id'],
111
+ };
112
+ }
113
+
114
+ export function GetHostedScormRegistrationToJSON(json: any): GetHostedScormRegistration {
115
+ return GetHostedScormRegistrationToJSONTyped(json, false);
116
+ }
117
+
118
+ export function GetHostedScormRegistrationToJSONTyped(value?: GetHostedScormRegistration | null, ignoreDiscriminator: boolean = false): any {
119
+ if (value == null) {
120
+ return value;
121
+ }
122
+
123
+ return {
124
+
125
+ 'id': value['id'],
126
+ 'learner_id': value['learnerId'],
127
+ 'learner_name': value['learnerName'],
128
+ 'active': value['active'],
129
+ 'launch_count': value['launchCount'],
130
+ 'first_launch_at': value['firstLaunchAt'],
131
+ 'last_launch_at': value['lastLaunchAt'],
132
+ 'last_origin': value['lastOrigin'],
133
+ 'last_item_id': value['lastItemId'],
134
+ };
135
+ }
136
+