@easyedu/js-lsm-api 1.140.0 → 1.142.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 (139) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/README.md +28 -2
  3. package/dist/apis/DispatchApi.d.ts +18 -0
  4. package/dist/apis/DispatchApi.js +43 -0
  5. package/dist/apis/LRSApi.d.ts +152 -0
  6. package/dist/apis/LRSApi.js +369 -0
  7. package/dist/apis/PlayerApi.d.ts +71 -0
  8. package/dist/apis/PlayerApi.js +177 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/esm/apis/DispatchApi.d.ts +18 -0
  12. package/dist/esm/apis/DispatchApi.js +43 -0
  13. package/dist/esm/apis/LRSApi.d.ts +152 -0
  14. package/dist/esm/apis/LRSApi.js +365 -0
  15. package/dist/esm/apis/PlayerApi.d.ts +71 -0
  16. package/dist/esm/apis/PlayerApi.js +177 -0
  17. package/dist/esm/apis/index.d.ts +1 -0
  18. package/dist/esm/apis/index.js +1 -0
  19. package/dist/esm/models/Cmi5Launch.d.ts +52 -0
  20. package/dist/esm/models/Cmi5Launch.js +58 -0
  21. package/dist/esm/models/DeleteLrsUserRecordsResponse.d.ts +38 -0
  22. package/dist/esm/models/DeleteLrsUserRecordsResponse.js +47 -0
  23. package/dist/esm/models/GetCourseExport.d.ts +2 -1
  24. package/dist/esm/models/GetCourseExport.js +2 -1
  25. package/dist/esm/models/GetLrsCredentials.d.ts +46 -0
  26. package/dist/esm/models/GetLrsCredentials.js +53 -0
  27. package/dist/esm/models/GetLrsStatementList.d.ts +57 -0
  28. package/dist/esm/models/GetLrsStatementList.js +60 -0
  29. package/dist/esm/models/GetResourceSessionActivity.d.ts +2 -1
  30. package/dist/esm/models/GetResourceSessionActivity.js +2 -1
  31. package/dist/esm/models/H5pState.d.ts +32 -0
  32. package/dist/esm/models/H5pState.js +43 -0
  33. package/dist/esm/models/H5pStatementResult.d.ts +44 -0
  34. package/dist/esm/models/H5pStatementResult.js +49 -0
  35. package/dist/esm/models/HostedScormAccessPolicy.d.ts +1 -1
  36. package/dist/esm/models/LrsCredential.d.ts +74 -0
  37. package/dist/esm/models/LrsCredential.js +67 -0
  38. package/dist/esm/models/LrsScope.d.ts +38 -0
  39. package/dist/esm/models/LrsScope.js +47 -0
  40. package/dist/esm/models/LrsStatement.d.ts +112 -0
  41. package/dist/esm/models/LrsStatement.js +81 -0
  42. package/dist/esm/models/PostCourseExport.d.ts +2 -1
  43. package/dist/esm/models/PostCourseExport.js +2 -1
  44. package/dist/esm/models/PostDispatchCmi5Launch.d.ts +64 -0
  45. package/dist/esm/models/PostDispatchCmi5Launch.js +63 -0
  46. package/dist/esm/models/PostH5pStatement.d.ts +40 -0
  47. package/dist/esm/models/PostH5pStatement.js +47 -0
  48. package/dist/esm/models/PostLrsCredential.d.ts +38 -0
  49. package/dist/esm/models/PostLrsCredential.js +47 -0
  50. package/dist/esm/models/PostLrsCredentialResponse.d.ts +45 -0
  51. package/dist/esm/models/PostLrsCredentialResponse.js +52 -0
  52. package/dist/esm/models/PutLrsCredential.d.ts +38 -0
  53. package/dist/esm/models/PutLrsCredential.js +43 -0
  54. package/dist/esm/models/ResourceType.d.ts +2 -0
  55. package/dist/esm/models/ResourceType.js +3 -1
  56. package/dist/esm/models/index.d.ts +14 -0
  57. package/dist/esm/models/index.js +14 -0
  58. package/dist/models/Cmi5Launch.d.ts +52 -0
  59. package/dist/models/Cmi5Launch.js +66 -0
  60. package/dist/models/DeleteLrsUserRecordsResponse.d.ts +38 -0
  61. package/dist/models/DeleteLrsUserRecordsResponse.js +54 -0
  62. package/dist/models/GetCourseExport.d.ts +2 -1
  63. package/dist/models/GetCourseExport.js +2 -1
  64. package/dist/models/GetLrsCredentials.d.ts +46 -0
  65. package/dist/models/GetLrsCredentials.js +60 -0
  66. package/dist/models/GetLrsStatementList.d.ts +57 -0
  67. package/dist/models/GetLrsStatementList.js +67 -0
  68. package/dist/models/GetResourceSessionActivity.d.ts +2 -1
  69. package/dist/models/GetResourceSessionActivity.js +2 -1
  70. package/dist/models/H5pState.d.ts +32 -0
  71. package/dist/models/H5pState.js +50 -0
  72. package/dist/models/H5pStatementResult.d.ts +44 -0
  73. package/dist/models/H5pStatementResult.js +56 -0
  74. package/dist/models/HostedScormAccessPolicy.d.ts +1 -1
  75. package/dist/models/LrsCredential.d.ts +74 -0
  76. package/dist/models/LrsCredential.js +74 -0
  77. package/dist/models/LrsScope.d.ts +38 -0
  78. package/dist/models/LrsScope.js +54 -0
  79. package/dist/models/LrsStatement.d.ts +112 -0
  80. package/dist/models/LrsStatement.js +88 -0
  81. package/dist/models/PostCourseExport.d.ts +2 -1
  82. package/dist/models/PostCourseExport.js +2 -1
  83. package/dist/models/PostDispatchCmi5Launch.d.ts +64 -0
  84. package/dist/models/PostDispatchCmi5Launch.js +70 -0
  85. package/dist/models/PostH5pStatement.d.ts +40 -0
  86. package/dist/models/PostH5pStatement.js +54 -0
  87. package/dist/models/PostLrsCredential.d.ts +38 -0
  88. package/dist/models/PostLrsCredential.js +54 -0
  89. package/dist/models/PostLrsCredentialResponse.d.ts +45 -0
  90. package/dist/models/PostLrsCredentialResponse.js +59 -0
  91. package/dist/models/PutLrsCredential.d.ts +38 -0
  92. package/dist/models/PutLrsCredential.js +50 -0
  93. package/dist/models/ResourceType.d.ts +2 -0
  94. package/dist/models/ResourceType.js +3 -1
  95. package/dist/models/index.d.ts +14 -0
  96. package/dist/models/index.js +14 -0
  97. package/docs/Cmi5Launch.md +39 -0
  98. package/docs/ContentLibraryApi.md +2 -2
  99. package/docs/DeleteLrsUserRecordsResponse.md +37 -0
  100. package/docs/DispatchApi.md +73 -0
  101. package/docs/GetLrsCredentials.md +38 -0
  102. package/docs/GetLrsStatementList.md +42 -0
  103. package/docs/H5pState.md +35 -0
  104. package/docs/H5pStatementResult.md +39 -0
  105. package/docs/LRSApi.md +531 -0
  106. package/docs/LrsCredential.md +49 -0
  107. package/docs/LrsScope.md +37 -0
  108. package/docs/LrsStatement.md +61 -0
  109. package/docs/PlayerApi.md +286 -1
  110. package/docs/PostDispatchCmi5Launch.md +45 -0
  111. package/docs/PostH5pStatement.md +37 -0
  112. package/docs/PostLrsCredential.md +36 -0
  113. package/docs/PostLrsCredentialResponse.md +39 -0
  114. package/docs/PutLrsCredential.md +36 -0
  115. package/package.json +1 -1
  116. package/src/apis/DispatchApi.ts +58 -0
  117. package/src/apis/LRSApi.ts +486 -0
  118. package/src/apis/PlayerApi.ts +250 -0
  119. package/src/apis/index.ts +1 -0
  120. package/src/models/Cmi5Launch.ts +95 -0
  121. package/src/models/DeleteLrsUserRecordsResponse.ts +75 -0
  122. package/src/models/GetCourseExport.ts +3 -2
  123. package/src/models/GetLrsCredentials.ts +99 -0
  124. package/src/models/GetLrsStatementList.ts +110 -0
  125. package/src/models/GetResourceSessionActivity.ts +3 -2
  126. package/src/models/H5pState.ts +66 -0
  127. package/src/models/H5pStatementResult.ts +83 -0
  128. package/src/models/HostedScormAccessPolicy.ts +1 -1
  129. package/src/models/LrsCredential.ts +127 -0
  130. package/src/models/LrsScope.ts +75 -0
  131. package/src/models/LrsStatement.ts +176 -0
  132. package/src/models/PostCourseExport.ts +3 -2
  133. package/src/models/PostDispatchCmi5Launch.ts +111 -0
  134. package/src/models/PostH5pStatement.ts +75 -0
  135. package/src/models/PostLrsCredential.ts +75 -0
  136. package/src/models/PostLrsCredentialResponse.ts +92 -0
  137. package/src/models/PutLrsCredential.ts +73 -0
  138. package/src/models/ResourceType.ts +3 -1
  139. package/src/models/index.ts +14 -0
@@ -8,6 +8,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
8
8
  | [**getDispatchQuizSession**](DispatchApi.md#getdispatchquizsession) | **GET** /dispatch/runtime/quiz-sessions/{sessionId} | Get a registration-owned native quiz session |
9
9
  | [**getDispatchQuizSessionResults**](DispatchApi.md#getdispatchquizsessionresults) | **GET** /dispatch/runtime/quiz-sessions/{sessionId}/results | Get the result of a registration-owned native quiz session |
10
10
  | [**getDispatchRollup**](DispatchApi.md#getdispatchrollup) | **GET** /dispatch/sessions/{dispatchPackageId}/rollup | Get dispatch package rollup data |
11
+ | [**postDispatchCmi5Launch**](DispatchApi.md#postdispatchcmi5launch) | **POST** /dispatch/cmi5/launch | Start a hosted-course launch from a cmi5 launch |
11
12
  | [**postDispatchItemLaunch**](DispatchApi.md#postdispatchitemlaunch) | **POST** /dispatch/runtime/items/{itemId}/launch | Start or resume a selected hosted course item |
12
13
  | [**postDispatchLaunch**](DispatchApi.md#postdispatchlaunch) | **POST** /dispatch/launch | Launch a dispatch package |
13
14
  | [**postDispatchQuizSessionAnswerCheck**](DispatchApi.md#postdispatchquizsessionanswercheck) | **POST** /dispatch/runtime/quiz-sessions/{sessionId}/answers/{sessionQuestionId}/check | Check a saved answer for immediate feedback |
@@ -280,6 +281,78 @@ No authorization required
280
281
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
281
282
 
282
283
 
284
+ ## postDispatchCmi5Launch
285
+
286
+ > PostDispatchLaunchResponse postDispatchCmi5Launch(postDispatchCmi5Launch)
287
+
288
+ Start a hosted-course launch from a cmi5 launch
289
+
290
+ Called by the launcher page of a cmi5 course export after it has exchanged the client LMS\'s fetch URL for LRS credentials. Applies the export\'s access policy to the client LRS origin, confirms the launch with that LRS when the export restricts origins, and returns the hosted player launch for the learner.
291
+
292
+ ### Example
293
+
294
+ ```ts
295
+ import {
296
+ Configuration,
297
+ DispatchApi,
298
+ } from '@easyedu/js-lsm-api';
299
+ import type { PostDispatchCmi5LaunchRequest } from '@easyedu/js-lsm-api';
300
+
301
+ async function example() {
302
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
303
+ const api = new DispatchApi();
304
+
305
+ const body = {
306
+ // PostDispatchCmi5Launch
307
+ postDispatchCmi5Launch: ...,
308
+ } satisfies PostDispatchCmi5LaunchRequest;
309
+
310
+ try {
311
+ const data = await api.postDispatchCmi5Launch(body);
312
+ console.log(data);
313
+ } catch (error) {
314
+ console.error(error);
315
+ }
316
+ }
317
+
318
+ // Run the test
319
+ example().catch(console.error);
320
+ ```
321
+
322
+ ### Parameters
323
+
324
+
325
+ | Name | Type | Description | Notes |
326
+ |------------- | ------------- | ------------- | -------------|
327
+ | **postDispatchCmi5Launch** | [PostDispatchCmi5Launch](PostDispatchCmi5Launch.md) | | |
328
+
329
+ ### Return type
330
+
331
+ [**PostDispatchLaunchResponse**](PostDispatchLaunchResponse.md)
332
+
333
+ ### Authorization
334
+
335
+ No authorization required
336
+
337
+ ### HTTP request headers
338
+
339
+ - **Content-Type**: `application/json`
340
+ - **Accept**: `application/json`
341
+
342
+
343
+ ### HTTP response details
344
+ | Status code | Description | Response headers |
345
+ |-------------|-------------|------------------|
346
+ | **200** | Dispatch launch response | - |
347
+ | **400** | Invalid launch request, or the package is not a cmi5 export | - |
348
+ | **403** | LRS origin, validity window, or learner cap denied launch, or the client LRS did not confirm the launch | - |
349
+ | **404** | Package not found | - |
350
+ | **410** | Package revoked | - |
351
+ | **503** | Hosted player is not configured | - |
352
+
353
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
354
+
355
+
283
356
  ## postDispatchItemLaunch
284
357
 
285
358
  > PostDispatchItemLaunchResponse postDispatchItemLaunch(itemId, postDispatchItemLaunch)
@@ -0,0 +1,38 @@
1
+
2
+ # GetLrsCredentials
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `endpoint` | string
10
+ `availableScopes` | [Array<LrsScope>](LrsScope.md)
11
+ `credentials` | [Array<LrsCredential>](LrsCredential.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { GetLrsCredentials } from '@easyedu/js-lsm-api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "endpoint": null,
21
+ "availableScopes": null,
22
+ "credentials": null,
23
+ } satisfies GetLrsCredentials
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as GetLrsCredentials
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,42 @@
1
+
2
+ # GetLrsStatementList
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `page` | number
10
+ `pageSize` | number
11
+ `totalPages` | number
12
+ `totalItems` | number
13
+ `items` | [Array<LrsStatement>](LrsStatement.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { GetLrsStatementList } from '@easyedu/js-lsm-api'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "page": null,
23
+ "pageSize": null,
24
+ "totalPages": null,
25
+ "totalItems": null,
26
+ "items": null,
27
+ } satisfies GetLrsStatementList
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as GetLrsStatementList
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,35 @@
1
+
2
+ # H5pState
3
+
4
+ The saved in-progress state of an H5P activity for the session\'s learner.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `state` | object
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { H5pState } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "state": null,
20
+ } satisfies H5pState
21
+
22
+ console.log(example)
23
+
24
+ // Convert the instance to a JSON string
25
+ const exampleJSON: string = JSON.stringify(example)
26
+ console.log(exampleJSON)
27
+
28
+ // Parse the JSON string back to an object
29
+ const exampleParsed = JSON.parse(exampleJSON) as H5pState
30
+ console.log(exampleParsed)
31
+ ```
32
+
33
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
34
+
35
+
@@ -0,0 +1,39 @@
1
+
2
+ # H5pStatementResult
3
+
4
+ The learner\'s progress on the H5P activity after a statement was recorded.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `completionStatus` | string
11
+ `gradeStatus` | string
12
+ `scoreRaw` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { H5pStatementResult } from '@easyedu/js-lsm-api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "completionStatus": null,
22
+ "gradeStatus": null,
23
+ "scoreRaw": null,
24
+ } satisfies H5pStatementResult
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 H5pStatementResult
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
+