@easyedu/js-lsm-api 1.118.0 → 1.120.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/.openapi-generator/FILES +42 -0
  2. package/README.md +34 -2
  3. package/dist/apis/CourseApi.d.ts +55 -0
  4. package/dist/apis/CourseApi.js +148 -0
  5. package/dist/apis/DispatchApi.d.ts +121 -5
  6. package/dist/apis/DispatchApi.js +303 -8
  7. package/dist/apis/PlayerApi.d.ts +26 -6
  8. package/dist/apis/PlayerApi.js +57 -6
  9. package/dist/esm/apis/CourseApi.d.ts +55 -0
  10. package/dist/esm/apis/CourseApi.js +148 -0
  11. package/dist/esm/apis/DispatchApi.d.ts +121 -5
  12. package/dist/esm/apis/DispatchApi.js +303 -8
  13. package/dist/esm/apis/PlayerApi.d.ts +26 -6
  14. package/dist/esm/apis/PlayerApi.js +57 -6
  15. package/dist/esm/models/DispatchTokenResponse.d.ts +57 -0
  16. package/dist/esm/models/DispatchTokenResponse.js +61 -0
  17. package/dist/esm/models/GetCourseExport.d.ts +62 -0
  18. package/dist/esm/models/GetCourseExport.js +44 -0
  19. package/dist/esm/models/GetDispatchCourse.d.ts +82 -0
  20. package/dist/esm/models/GetDispatchCourse.js +77 -0
  21. package/dist/esm/models/GetDispatchRollup.d.ts +104 -0
  22. package/dist/esm/models/GetDispatchRollup.js +95 -0
  23. package/dist/esm/models/GetHostedScormRegistration.d.ts +80 -0
  24. package/dist/esm/models/GetHostedScormRegistration.js +71 -0
  25. package/dist/esm/models/GetHostedScormRegistrationList.d.ts +57 -0
  26. package/dist/esm/models/GetHostedScormRegistrationList.js +60 -0
  27. package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +8 -0
  28. package/dist/esm/models/GetResourceSessionDiagnostics.js +2 -0
  29. package/dist/esm/models/HostedScormAccessPolicy.d.ts +50 -0
  30. package/dist/esm/models/HostedScormAccessPolicy.js +55 -0
  31. package/dist/esm/models/HostedScormOutlineEntry.d.ts +108 -0
  32. package/dist/esm/models/HostedScormOutlineEntry.js +97 -0
  33. package/dist/esm/models/HostedScormRollupPolicy.d.ts +69 -0
  34. package/dist/esm/models/HostedScormRollupPolicy.js +72 -0
  35. package/dist/esm/models/HostedScormScoreItem.d.ts +38 -0
  36. package/dist/esm/models/HostedScormScoreItem.js +47 -0
  37. package/dist/esm/models/PostCourseExport.d.ts +28 -0
  38. package/dist/esm/models/PostCourseExport.js +15 -0
  39. package/dist/esm/models/PostDispatchItemLaunch.d.ts +32 -0
  40. package/dist/esm/models/PostDispatchItemLaunch.js +41 -0
  41. package/dist/esm/models/PostDispatchItemLaunchResponse.d.ts +64 -0
  42. package/dist/esm/models/PostDispatchItemLaunchResponse.js +66 -0
  43. package/dist/esm/models/PostDispatchLaunch.d.ts +50 -0
  44. package/dist/esm/models/PostDispatchLaunch.js +53 -0
  45. package/dist/esm/models/PostDispatchLaunchResponse.d.ts +70 -0
  46. package/dist/esm/models/PostDispatchLaunchResponse.js +70 -0
  47. package/dist/esm/models/PostDispatchTokenExchange.d.ts +32 -0
  48. package/dist/esm/models/PostDispatchTokenExchange.js +43 -0
  49. package/dist/esm/models/PutHostedScormStatus.d.ts +32 -0
  50. package/dist/esm/models/PutHostedScormStatus.js +43 -0
  51. package/dist/esm/models/ScormGetValueResponse.d.ts +12 -0
  52. package/dist/esm/models/ScormGetValueResponse.js +8 -0
  53. package/dist/esm/models/ScormNavigationDelivery.d.ts +64 -0
  54. package/dist/esm/models/ScormNavigationDelivery.js +66 -0
  55. package/dist/esm/models/ScormNavigationRequest.d.ts +55 -0
  56. package/dist/esm/models/ScormNavigationRequest.js +61 -0
  57. package/dist/esm/models/ScormNavigationResponse.d.ts +70 -0
  58. package/dist/esm/models/ScormNavigationResponse.js +67 -0
  59. package/dist/esm/models/ScormNavigationValidity.d.ts +92 -0
  60. package/dist/esm/models/ScormNavigationValidity.js +83 -0
  61. package/dist/esm/models/ScormRuntimeResponse.d.ts +44 -0
  62. package/dist/esm/models/ScormRuntimeResponse.js +51 -0
  63. package/dist/esm/models/ScormSetValueResponse.d.ts +12 -0
  64. package/dist/esm/models/ScormSetValueResponse.js +8 -0
  65. package/dist/esm/models/ScormTerminateResponse.d.ts +63 -0
  66. package/dist/esm/models/ScormTerminateResponse.js +62 -0
  67. package/dist/esm/models/index.d.ts +21 -0
  68. package/dist/esm/models/index.js +21 -0
  69. package/dist/models/DispatchTokenResponse.d.ts +57 -0
  70. package/dist/models/DispatchTokenResponse.js +69 -0
  71. package/dist/models/GetCourseExport.d.ts +62 -0
  72. package/dist/models/GetCourseExport.js +45 -1
  73. package/dist/models/GetDispatchCourse.d.ts +82 -0
  74. package/dist/models/GetDispatchCourse.js +84 -0
  75. package/dist/models/GetDispatchRollup.d.ts +104 -0
  76. package/dist/models/GetDispatchRollup.js +103 -0
  77. package/dist/models/GetHostedScormRegistration.d.ts +80 -0
  78. package/dist/models/GetHostedScormRegistration.js +78 -0
  79. package/dist/models/GetHostedScormRegistrationList.d.ts +57 -0
  80. package/dist/models/GetHostedScormRegistrationList.js +67 -0
  81. package/dist/models/GetResourceSessionDiagnostics.d.ts +8 -0
  82. package/dist/models/GetResourceSessionDiagnostics.js +2 -0
  83. package/dist/models/HostedScormAccessPolicy.d.ts +50 -0
  84. package/dist/models/HostedScormAccessPolicy.js +62 -0
  85. package/dist/models/HostedScormOutlineEntry.d.ts +108 -0
  86. package/dist/models/HostedScormOutlineEntry.js +105 -0
  87. package/dist/models/HostedScormRollupPolicy.d.ts +69 -0
  88. package/dist/models/HostedScormRollupPolicy.js +80 -0
  89. package/dist/models/HostedScormScoreItem.d.ts +38 -0
  90. package/dist/models/HostedScormScoreItem.js +54 -0
  91. package/dist/models/PostCourseExport.d.ts +28 -0
  92. package/dist/models/PostCourseExport.js +16 -1
  93. package/dist/models/PostDispatchItemLaunch.d.ts +32 -0
  94. package/dist/models/PostDispatchItemLaunch.js +48 -0
  95. package/dist/models/PostDispatchItemLaunchResponse.d.ts +64 -0
  96. package/dist/models/PostDispatchItemLaunchResponse.js +74 -0
  97. package/dist/models/PostDispatchLaunch.d.ts +50 -0
  98. package/dist/models/PostDispatchLaunch.js +60 -0
  99. package/dist/models/PostDispatchLaunchResponse.d.ts +70 -0
  100. package/dist/models/PostDispatchLaunchResponse.js +78 -0
  101. package/dist/models/PostDispatchTokenExchange.d.ts +32 -0
  102. package/dist/models/PostDispatchTokenExchange.js +50 -0
  103. package/dist/models/PutHostedScormStatus.d.ts +32 -0
  104. package/dist/models/PutHostedScormStatus.js +50 -0
  105. package/dist/models/ScormGetValueResponse.d.ts +12 -0
  106. package/dist/models/ScormGetValueResponse.js +8 -0
  107. package/dist/models/ScormNavigationDelivery.d.ts +64 -0
  108. package/dist/models/ScormNavigationDelivery.js +74 -0
  109. package/dist/models/ScormNavigationRequest.d.ts +55 -0
  110. package/dist/models/ScormNavigationRequest.js +69 -0
  111. package/dist/models/ScormNavigationResponse.d.ts +70 -0
  112. package/dist/models/ScormNavigationResponse.js +74 -0
  113. package/dist/models/ScormNavigationValidity.d.ts +92 -0
  114. package/dist/models/ScormNavigationValidity.js +90 -0
  115. package/dist/models/ScormRuntimeResponse.d.ts +44 -0
  116. package/dist/models/ScormRuntimeResponse.js +58 -0
  117. package/dist/models/ScormSetValueResponse.d.ts +12 -0
  118. package/dist/models/ScormSetValueResponse.js +8 -0
  119. package/dist/models/ScormTerminateResponse.d.ts +63 -0
  120. package/dist/models/ScormTerminateResponse.js +69 -0
  121. package/dist/models/index.d.ts +21 -0
  122. package/dist/models/index.js +21 -0
  123. package/docs/CourseApi.md +225 -0
  124. package/docs/DispatchApi.md +480 -9
  125. package/docs/DispatchTokenResponse.md +40 -0
  126. package/docs/GetCourseExport.md +14 -0
  127. package/docs/GetDispatchCourse.md +50 -0
  128. package/docs/GetDispatchRollup.md +52 -0
  129. package/docs/GetHostedScormRegistration.md +50 -0
  130. package/docs/GetHostedScormRegistrationList.md +42 -0
  131. package/docs/GetResourceSessionDiagnostics.md +2 -0
  132. package/docs/HostedScormAccessPolicy.md +41 -0
  133. package/docs/HostedScormOutlineEntry.md +54 -0
  134. package/docs/HostedScormRollupPolicy.md +41 -0
  135. package/docs/HostedScormScoreItem.md +36 -0
  136. package/docs/PlayerApi.md +80 -9
  137. package/docs/PostCourseExport.md +6 -0
  138. package/docs/PostDispatchItemLaunch.md +34 -0
  139. package/docs/PostDispatchItemLaunchResponse.md +42 -0
  140. package/docs/PostDispatchLaunch.md +40 -0
  141. package/docs/PostDispatchLaunchResponse.md +44 -0
  142. package/docs/PostDispatchTokenExchange.md +34 -0
  143. package/docs/PutHostedScormStatus.md +34 -0
  144. package/docs/ScormGetValueResponse.md +4 -0
  145. package/docs/ScormNavigationDelivery.md +43 -0
  146. package/docs/ScormNavigationRequest.md +37 -0
  147. package/docs/ScormNavigationResponse.md +47 -0
  148. package/docs/ScormNavigationValidity.md +55 -0
  149. package/docs/ScormRuntimeResponse.md +39 -0
  150. package/docs/ScormSetValueResponse.md +4 -0
  151. package/docs/ScormTerminateResponse.md +44 -0
  152. package/package.json +1 -1
  153. package/src/apis/CourseApi.ts +221 -0
  154. package/src/apis/DispatchApi.ts +426 -10
  155. package/src/apis/PlayerApi.ts +95 -12
  156. package/src/models/DispatchTokenResponse.ts +103 -0
  157. package/src/models/GetCourseExport.ts +97 -0
  158. package/src/models/GetDispatchCourse.ts +153 -0
  159. package/src/models/GetDispatchRollup.ts +169 -0
  160. package/src/models/GetHostedScormRegistration.ts +136 -0
  161. package/src/models/GetHostedScormRegistrationList.ts +110 -0
  162. package/src/models/GetResourceSessionDiagnostics.ts +8 -0
  163. package/src/models/HostedScormAccessPolicy.ts +93 -0
  164. package/src/models/HostedScormOutlineEntry.ts +176 -0
  165. package/src/models/HostedScormRollupPolicy.ts +123 -0
  166. package/src/models/HostedScormScoreItem.ts +75 -0
  167. package/src/models/PostCourseExport.ts +48 -0
  168. package/src/models/PostDispatchItemLaunch.ts +65 -0
  169. package/src/models/PostDispatchItemLaunchResponse.ts +113 -0
  170. package/src/models/PostDispatchLaunch.ts +92 -0
  171. package/src/models/PostDispatchLaunchResponse.ts +122 -0
  172. package/src/models/PostDispatchTokenExchange.ts +66 -0
  173. package/src/models/PutHostedScormStatus.ts +66 -0
  174. package/src/models/ScormGetValueResponse.ts +18 -0
  175. package/src/models/ScormNavigationDelivery.ts +113 -0
  176. package/src/models/ScormNavigationRequest.ts +94 -0
  177. package/src/models/ScormNavigationResponse.ts +134 -0
  178. package/src/models/ScormNavigationValidity.ts +156 -0
  179. package/src/models/ScormRuntimeResponse.ts +84 -0
  180. package/src/models/ScormSetValueResponse.ts +18 -0
  181. package/src/models/ScormTerminateResponse.ts +118 -0
  182. package/src/models/index.ts +21 -0
@@ -0,0 +1,34 @@
1
+
2
+ # PostDispatchTokenExchange
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `code` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { PostDispatchTokenExchange } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "code": null,
19
+ } satisfies PostDispatchTokenExchange
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as PostDispatchTokenExchange
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,34 @@
1
+
2
+ # PutHostedScormStatus
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `active` | boolean
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { PutHostedScormStatus } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "active": null,
19
+ } satisfies PutHostedScormStatus
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as PutHostedScormStatus
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -9,6 +9,8 @@ Name | Type
9
9
  ------------ | -------------
10
10
  `success` | boolean
11
11
  `value` | string
12
+ `errorCode` | string
13
+ `diagnostic` | string
12
14
 
13
15
  ## Example
14
16
 
@@ -19,6 +21,8 @@ import type { ScormGetValueResponse } from '@easyedu/js-lsm-api'
19
21
  const example = {
20
22
  "success": null,
21
23
  "value": null,
24
+ "errorCode": null,
25
+ "diagnostic": null,
22
26
  } satisfies ScormGetValueResponse
23
27
 
24
28
  console.log(example)
@@ -0,0 +1,43 @@
1
+
2
+ # ScormNavigationDelivery
3
+
4
+ Activity selected exclusively by the sequencing engine
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `activityIdentifier` | string
11
+ `trackingUuid` | string
12
+ `launchUrl` | string
13
+ `title` | string
14
+ `activityType` | string
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { ScormNavigationDelivery } from '@easyedu/js-lsm-api'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "activityIdentifier": null,
24
+ "trackingUuid": null,
25
+ "launchUrl": null,
26
+ "title": null,
27
+ "activityType": null,
28
+ } satisfies ScormNavigationDelivery
29
+
30
+ console.log(example)
31
+
32
+ // Convert the instance to a JSON string
33
+ const exampleJSON: string = JSON.stringify(example)
34
+ console.log(exampleJSON)
35
+
36
+ // Parse the JSON string back to an object
37
+ const exampleParsed = JSON.parse(exampleJSON) as ScormNavigationDelivery
38
+ console.log(exampleParsed)
39
+ ```
40
+
41
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
42
+
43
+
@@ -0,0 +1,37 @@
1
+
2
+ # ScormNavigationRequest
3
+
4
+ A SCORM 2004 navigation request
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `request` | string
11
+ `targetIdentifier` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { ScormNavigationRequest } from '@easyedu/js-lsm-api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "request": null,
21
+ "targetIdentifier": null,
22
+ } satisfies ScormNavigationRequest
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as ScormNavigationRequest
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
@@ -0,0 +1,47 @@
1
+
2
+ # ScormNavigationResponse
3
+
4
+ Result of a SCORM 2004 sequencing transition
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `success` | boolean
11
+ `delivery` | [ScormNavigationDelivery](ScormNavigationDelivery.md)
12
+ `sequencingEnded` | boolean
13
+ `suspended` | boolean
14
+ `valid` | [ScormNavigationValidity](ScormNavigationValidity.md)
15
+ `errorCode` | string
16
+ `diagnostic` | string
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { ScormNavigationResponse } from '@easyedu/js-lsm-api'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "success": null,
26
+ "delivery": null,
27
+ "sequencingEnded": null,
28
+ "suspended": null,
29
+ "valid": null,
30
+ "errorCode": null,
31
+ "diagnostic": null,
32
+ } satisfies ScormNavigationResponse
33
+
34
+ console.log(example)
35
+
36
+ // Convert the instance to a JSON string
37
+ const exampleJSON: string = JSON.stringify(example)
38
+ console.log(exampleJSON)
39
+
40
+ // Parse the JSON string back to an object
41
+ const exampleParsed = JSON.parse(exampleJSON) as ScormNavigationResponse
42
+ console.log(exampleParsed)
43
+ ```
44
+
45
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
46
+
47
+
@@ -0,0 +1,55 @@
1
+
2
+ # ScormNavigationValidity
3
+
4
+ Navigation requests valid in the resulting sequencing state
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `start` | boolean
11
+ `resumeAll` | boolean
12
+ `_continue` | boolean
13
+ `previous` | boolean
14
+ `exit` | boolean
15
+ `exitAll` | boolean
16
+ `abandon` | boolean
17
+ `abandonAll` | boolean
18
+ `suspendAll` | boolean
19
+ `choiceTargets` | Array<string>
20
+ `jumpTargets` | Array<string>
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import type { ScormNavigationValidity } from '@easyedu/js-lsm-api'
26
+
27
+ // TODO: Update the object below with actual values
28
+ const example = {
29
+ "start": null,
30
+ "resumeAll": null,
31
+ "_continue": null,
32
+ "previous": null,
33
+ "exit": null,
34
+ "exitAll": null,
35
+ "abandon": null,
36
+ "abandonAll": null,
37
+ "suspendAll": null,
38
+ "choiceTargets": null,
39
+ "jumpTargets": null,
40
+ } satisfies ScormNavigationValidity
41
+
42
+ console.log(example)
43
+
44
+ // Convert the instance to a JSON string
45
+ const exampleJSON: string = JSON.stringify(example)
46
+ console.log(exampleJSON)
47
+
48
+ // Parse the JSON string back to an object
49
+ const exampleParsed = JSON.parse(exampleJSON) as ScormNavigationValidity
50
+ console.log(exampleParsed)
51
+ ```
52
+
53
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
54
+
55
+
@@ -0,0 +1,39 @@
1
+
2
+ # ScormRuntimeResponse
3
+
4
+ Typed result of a SCORM runtime API operation
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `success` | boolean
11
+ `errorCode` | string
12
+ `diagnostic` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { ScormRuntimeResponse } from '@easyedu/js-lsm-api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "success": null,
22
+ "errorCode": null,
23
+ "diagnostic": null,
24
+ } satisfies ScormRuntimeResponse
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as ScormRuntimeResponse
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
@@ -8,6 +8,8 @@ Response from setting a SCORM CMI data element value
8
8
  Name | Type
9
9
  ------------ | -------------
10
10
  `success` | boolean
11
+ `errorCode` | string
12
+ `diagnostic` | string
11
13
 
12
14
  ## Example
13
15
 
@@ -17,6 +19,8 @@ import type { ScormSetValueResponse } from '@easyedu/js-lsm-api'
17
19
  // TODO: Update the object below with actual values
18
20
  const example = {
19
21
  "success": null,
22
+ "errorCode": null,
23
+ "diagnostic": null,
20
24
  } satisfies ScormSetValueResponse
21
25
 
22
26
  console.log(example)
@@ -0,0 +1,44 @@
1
+
2
+ # ScormTerminateResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `success` | boolean
10
+ `errorCode` | string
11
+ `diagnostic` | string
12
+ `delivery` | [ScormNavigationDelivery](ScormNavigationDelivery.md)
13
+ `sequencingEnded` | boolean
14
+ `suspended` | boolean
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { ScormTerminateResponse } from '@easyedu/js-lsm-api'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "success": null,
24
+ "errorCode": null,
25
+ "diagnostic": null,
26
+ "delivery": null,
27
+ "sequencingEnded": null,
28
+ "suspended": null,
29
+ } satisfies ScormTerminateResponse
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as ScormTerminateResponse
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.118.0",
3
+ "version": "1.120.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -88,6 +88,16 @@ import {
88
88
  GetCourseVersionSectionFromJSON,
89
89
  GetCourseVersionSectionToJSON,
90
90
  } from '../models/GetCourseVersionSection';
91
+ import {
92
+ type GetHostedScormRegistrationList,
93
+ GetHostedScormRegistrationListFromJSON,
94
+ GetHostedScormRegistrationListToJSON,
95
+ } from '../models/GetHostedScormRegistrationList';
96
+ import {
97
+ type HostedScormAccessPolicy,
98
+ HostedScormAccessPolicyFromJSON,
99
+ HostedScormAccessPolicyToJSON,
100
+ } from '../models/HostedScormAccessPolicy';
91
101
  import {
92
102
  type PostClearSessions,
93
103
  PostClearSessionsFromJSON,
@@ -193,6 +203,11 @@ import {
193
203
  PutCourseVersionSectionFromJSON,
194
204
  PutCourseVersionSectionToJSON,
195
205
  } from '../models/PutCourseVersionSection';
206
+ import {
207
+ type PutHostedScormStatus,
208
+ PutHostedScormStatusFromJSON,
209
+ PutHostedScormStatusToJSON,
210
+ } from '../models/PutHostedScormStatus';
196
211
 
197
212
  export interface DeleteCourseRequest {
198
213
  courseId: string;
@@ -299,6 +314,13 @@ export interface GetCourseVersionProgressionRequest {
299
314
  preview?: boolean;
300
315
  }
301
316
 
317
+ export interface GetHostedScormExportRegistrationsRequest {
318
+ courseId: string;
319
+ exportId: string;
320
+ page?: number;
321
+ pageSize?: number;
322
+ }
323
+
302
324
  export interface GetPortalCourseExportsRequest {
303
325
  page?: number;
304
326
  pageSize?: number;
@@ -424,6 +446,18 @@ export interface PutCourseVersionSectionRequest {
424
446
  putCourseVersionSection: PutCourseVersionSection;
425
447
  }
426
448
 
449
+ export interface PutHostedScormExportAccessRequest {
450
+ courseId: string;
451
+ exportId: string;
452
+ hostedScormAccessPolicy: HostedScormAccessPolicy;
453
+ }
454
+
455
+ export interface PutHostedScormExportStatusRequest {
456
+ courseId: string;
457
+ exportId: string;
458
+ putHostedScormStatus: PutHostedScormStatus;
459
+ }
460
+
427
461
  /**
428
462
  *
429
463
  */
@@ -1452,6 +1486,67 @@ export class CourseApi extends runtime.BaseAPI {
1452
1486
  return await response.value();
1453
1487
  }
1454
1488
 
1489
+ /**
1490
+ * Creates request options for getHostedScormExportRegistrations without sending the request
1491
+ */
1492
+ async getHostedScormExportRegistrationsRequestOpts(requestParameters: GetHostedScormExportRegistrationsRequest): Promise<runtime.RequestOpts> {
1493
+ if (requestParameters['courseId'] == null) {
1494
+ throw new runtime.RequiredError(
1495
+ 'courseId',
1496
+ 'Required parameter "courseId" was null or undefined when calling getHostedScormExportRegistrations().'
1497
+ );
1498
+ }
1499
+
1500
+ if (requestParameters['exportId'] == null) {
1501
+ throw new runtime.RequiredError(
1502
+ 'exportId',
1503
+ 'Required parameter "exportId" was null or undefined when calling getHostedScormExportRegistrations().'
1504
+ );
1505
+ }
1506
+
1507
+ const queryParameters: any = {};
1508
+
1509
+ if (requestParameters['page'] != null) {
1510
+ queryParameters['page'] = requestParameters['page'];
1511
+ }
1512
+
1513
+ if (requestParameters['pageSize'] != null) {
1514
+ queryParameters['page_size'] = requestParameters['pageSize'];
1515
+ }
1516
+
1517
+ const headerParameters: runtime.HTTPHeaders = {};
1518
+
1519
+
1520
+ let urlPath = `/courses/{courseId}/exports/{exportId}/registrations`;
1521
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
1522
+ urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
1523
+
1524
+ return {
1525
+ path: urlPath,
1526
+ method: 'GET',
1527
+ headers: headerParameters,
1528
+ query: queryParameters,
1529
+ };
1530
+ }
1531
+
1532
+ /**
1533
+ * List hosted SCORM learner registrations
1534
+ */
1535
+ async getHostedScormExportRegistrationsRaw(requestParameters: GetHostedScormExportRegistrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetHostedScormRegistrationList>> {
1536
+ const requestOptions = await this.getHostedScormExportRegistrationsRequestOpts(requestParameters);
1537
+ const response = await this.request(requestOptions, initOverrides);
1538
+
1539
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetHostedScormRegistrationListFromJSON(jsonValue));
1540
+ }
1541
+
1542
+ /**
1543
+ * List hosted SCORM learner registrations
1544
+ */
1545
+ async getHostedScormExportRegistrations(requestParameters: GetHostedScormExportRegistrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetHostedScormRegistrationList> {
1546
+ const response = await this.getHostedScormExportRegistrationsRaw(requestParameters, initOverrides);
1547
+ return await response.value();
1548
+ }
1549
+
1455
1550
  /**
1456
1551
  * Creates request options for getPortalCourseExports without sending the request
1457
1552
  */
@@ -2752,6 +2847,132 @@ export class CourseApi extends runtime.BaseAPI {
2752
2847
  return await response.value();
2753
2848
  }
2754
2849
 
2850
+ /**
2851
+ * Creates request options for putHostedScormExportAccess without sending the request
2852
+ */
2853
+ async putHostedScormExportAccessRequestOpts(requestParameters: PutHostedScormExportAccessRequest): Promise<runtime.RequestOpts> {
2854
+ if (requestParameters['courseId'] == null) {
2855
+ throw new runtime.RequiredError(
2856
+ 'courseId',
2857
+ 'Required parameter "courseId" was null or undefined when calling putHostedScormExportAccess().'
2858
+ );
2859
+ }
2860
+
2861
+ if (requestParameters['exportId'] == null) {
2862
+ throw new runtime.RequiredError(
2863
+ 'exportId',
2864
+ 'Required parameter "exportId" was null or undefined when calling putHostedScormExportAccess().'
2865
+ );
2866
+ }
2867
+
2868
+ if (requestParameters['hostedScormAccessPolicy'] == null) {
2869
+ throw new runtime.RequiredError(
2870
+ 'hostedScormAccessPolicy',
2871
+ 'Required parameter "hostedScormAccessPolicy" was null or undefined when calling putHostedScormExportAccess().'
2872
+ );
2873
+ }
2874
+
2875
+ const queryParameters: any = {};
2876
+
2877
+ const headerParameters: runtime.HTTPHeaders = {};
2878
+
2879
+ headerParameters['Content-Type'] = 'application/json';
2880
+
2881
+
2882
+ let urlPath = `/courses/{courseId}/exports/{exportId}/access`;
2883
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
2884
+ urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
2885
+
2886
+ return {
2887
+ path: urlPath,
2888
+ method: 'PUT',
2889
+ headers: headerParameters,
2890
+ query: queryParameters,
2891
+ body: HostedScormAccessPolicyToJSON(requestParameters['hostedScormAccessPolicy']),
2892
+ };
2893
+ }
2894
+
2895
+ /**
2896
+ * Update mutable access controls for a hosted SCORM export
2897
+ */
2898
+ async putHostedScormExportAccessRaw(requestParameters: PutHostedScormExportAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseExport>> {
2899
+ const requestOptions = await this.putHostedScormExportAccessRequestOpts(requestParameters);
2900
+ const response = await this.request(requestOptions, initOverrides);
2901
+
2902
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseExportFromJSON(jsonValue));
2903
+ }
2904
+
2905
+ /**
2906
+ * Update mutable access controls for a hosted SCORM export
2907
+ */
2908
+ async putHostedScormExportAccess(requestParameters: PutHostedScormExportAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseExport> {
2909
+ const response = await this.putHostedScormExportAccessRaw(requestParameters, initOverrides);
2910
+ return await response.value();
2911
+ }
2912
+
2913
+ /**
2914
+ * Creates request options for putHostedScormExportStatus without sending the request
2915
+ */
2916
+ async putHostedScormExportStatusRequestOpts(requestParameters: PutHostedScormExportStatusRequest): Promise<runtime.RequestOpts> {
2917
+ if (requestParameters['courseId'] == null) {
2918
+ throw new runtime.RequiredError(
2919
+ 'courseId',
2920
+ 'Required parameter "courseId" was null or undefined when calling putHostedScormExportStatus().'
2921
+ );
2922
+ }
2923
+
2924
+ if (requestParameters['exportId'] == null) {
2925
+ throw new runtime.RequiredError(
2926
+ 'exportId',
2927
+ 'Required parameter "exportId" was null or undefined when calling putHostedScormExportStatus().'
2928
+ );
2929
+ }
2930
+
2931
+ if (requestParameters['putHostedScormStatus'] == null) {
2932
+ throw new runtime.RequiredError(
2933
+ 'putHostedScormStatus',
2934
+ 'Required parameter "putHostedScormStatus" was null or undefined when calling putHostedScormExportStatus().'
2935
+ );
2936
+ }
2937
+
2938
+ const queryParameters: any = {};
2939
+
2940
+ const headerParameters: runtime.HTTPHeaders = {};
2941
+
2942
+ headerParameters['Content-Type'] = 'application/json';
2943
+
2944
+
2945
+ let urlPath = `/courses/{courseId}/exports/{exportId}/status`;
2946
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
2947
+ urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
2948
+
2949
+ return {
2950
+ path: urlPath,
2951
+ method: 'PUT',
2952
+ headers: headerParameters,
2953
+ query: queryParameters,
2954
+ body: PutHostedScormStatusToJSON(requestParameters['putHostedScormStatus']),
2955
+ };
2956
+ }
2957
+
2958
+ /**
2959
+ * Revoke or reactivate a hosted SCORM export
2960
+ */
2961
+ async putHostedScormExportStatusRaw(requestParameters: PutHostedScormExportStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseExport>> {
2962
+ const requestOptions = await this.putHostedScormExportStatusRequestOpts(requestParameters);
2963
+ const response = await this.request(requestOptions, initOverrides);
2964
+
2965
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseExportFromJSON(jsonValue));
2966
+ }
2967
+
2968
+ /**
2969
+ * Revoke or reactivate a hosted SCORM export
2970
+ */
2971
+ async putHostedScormExportStatus(requestParameters: PutHostedScormExportStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseExport> {
2972
+ const response = await this.putHostedScormExportStatusRaw(requestParameters, initOverrides);
2973
+ return await response.value();
2974
+ }
2975
+
2755
2976
  }
2756
2977
 
2757
2978
  /**