@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.
- package/.openapi-generator/FILES +42 -0
- package/README.md +34 -2
- package/dist/apis/CourseApi.d.ts +55 -0
- package/dist/apis/CourseApi.js +148 -0
- package/dist/apis/DispatchApi.d.ts +121 -5
- package/dist/apis/DispatchApi.js +303 -8
- package/dist/apis/PlayerApi.d.ts +26 -6
- package/dist/apis/PlayerApi.js +57 -6
- package/dist/esm/apis/CourseApi.d.ts +55 -0
- package/dist/esm/apis/CourseApi.js +148 -0
- package/dist/esm/apis/DispatchApi.d.ts +121 -5
- package/dist/esm/apis/DispatchApi.js +303 -8
- package/dist/esm/apis/PlayerApi.d.ts +26 -6
- package/dist/esm/apis/PlayerApi.js +57 -6
- package/dist/esm/models/DispatchTokenResponse.d.ts +57 -0
- package/dist/esm/models/DispatchTokenResponse.js +61 -0
- package/dist/esm/models/GetCourseExport.d.ts +62 -0
- package/dist/esm/models/GetCourseExport.js +44 -0
- package/dist/esm/models/GetDispatchCourse.d.ts +82 -0
- package/dist/esm/models/GetDispatchCourse.js +77 -0
- package/dist/esm/models/GetDispatchRollup.d.ts +104 -0
- package/dist/esm/models/GetDispatchRollup.js +95 -0
- package/dist/esm/models/GetHostedScormRegistration.d.ts +80 -0
- package/dist/esm/models/GetHostedScormRegistration.js +71 -0
- package/dist/esm/models/GetHostedScormRegistrationList.d.ts +57 -0
- package/dist/esm/models/GetHostedScormRegistrationList.js +60 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +8 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.js +2 -0
- package/dist/esm/models/HostedScormAccessPolicy.d.ts +50 -0
- package/dist/esm/models/HostedScormAccessPolicy.js +55 -0
- package/dist/esm/models/HostedScormOutlineEntry.d.ts +108 -0
- package/dist/esm/models/HostedScormOutlineEntry.js +97 -0
- package/dist/esm/models/HostedScormRollupPolicy.d.ts +69 -0
- package/dist/esm/models/HostedScormRollupPolicy.js +72 -0
- package/dist/esm/models/HostedScormScoreItem.d.ts +38 -0
- package/dist/esm/models/HostedScormScoreItem.js +47 -0
- package/dist/esm/models/PostCourseExport.d.ts +28 -0
- package/dist/esm/models/PostCourseExport.js +15 -0
- package/dist/esm/models/PostDispatchItemLaunch.d.ts +32 -0
- package/dist/esm/models/PostDispatchItemLaunch.js +41 -0
- package/dist/esm/models/PostDispatchItemLaunchResponse.d.ts +64 -0
- package/dist/esm/models/PostDispatchItemLaunchResponse.js +66 -0
- package/dist/esm/models/PostDispatchLaunch.d.ts +50 -0
- package/dist/esm/models/PostDispatchLaunch.js +53 -0
- package/dist/esm/models/PostDispatchLaunchResponse.d.ts +70 -0
- package/dist/esm/models/PostDispatchLaunchResponse.js +70 -0
- package/dist/esm/models/PostDispatchTokenExchange.d.ts +32 -0
- package/dist/esm/models/PostDispatchTokenExchange.js +43 -0
- package/dist/esm/models/PutHostedScormStatus.d.ts +32 -0
- package/dist/esm/models/PutHostedScormStatus.js +43 -0
- package/dist/esm/models/ScormGetValueResponse.d.ts +12 -0
- package/dist/esm/models/ScormGetValueResponse.js +8 -0
- package/dist/esm/models/ScormNavigationDelivery.d.ts +64 -0
- package/dist/esm/models/ScormNavigationDelivery.js +66 -0
- package/dist/esm/models/ScormNavigationRequest.d.ts +55 -0
- package/dist/esm/models/ScormNavigationRequest.js +61 -0
- package/dist/esm/models/ScormNavigationResponse.d.ts +70 -0
- package/dist/esm/models/ScormNavigationResponse.js +67 -0
- package/dist/esm/models/ScormNavigationValidity.d.ts +92 -0
- package/dist/esm/models/ScormNavigationValidity.js +83 -0
- package/dist/esm/models/ScormRuntimeResponse.d.ts +44 -0
- package/dist/esm/models/ScormRuntimeResponse.js +51 -0
- package/dist/esm/models/ScormSetValueResponse.d.ts +12 -0
- package/dist/esm/models/ScormSetValueResponse.js +8 -0
- package/dist/esm/models/ScormTerminateResponse.d.ts +63 -0
- package/dist/esm/models/ScormTerminateResponse.js +62 -0
- package/dist/esm/models/index.d.ts +21 -0
- package/dist/esm/models/index.js +21 -0
- package/dist/models/DispatchTokenResponse.d.ts +57 -0
- package/dist/models/DispatchTokenResponse.js +69 -0
- package/dist/models/GetCourseExport.d.ts +62 -0
- package/dist/models/GetCourseExport.js +45 -1
- package/dist/models/GetDispatchCourse.d.ts +82 -0
- package/dist/models/GetDispatchCourse.js +84 -0
- package/dist/models/GetDispatchRollup.d.ts +104 -0
- package/dist/models/GetDispatchRollup.js +103 -0
- package/dist/models/GetHostedScormRegistration.d.ts +80 -0
- package/dist/models/GetHostedScormRegistration.js +78 -0
- package/dist/models/GetHostedScormRegistrationList.d.ts +57 -0
- package/dist/models/GetHostedScormRegistrationList.js +67 -0
- package/dist/models/GetResourceSessionDiagnostics.d.ts +8 -0
- package/dist/models/GetResourceSessionDiagnostics.js +2 -0
- package/dist/models/HostedScormAccessPolicy.d.ts +50 -0
- package/dist/models/HostedScormAccessPolicy.js +62 -0
- package/dist/models/HostedScormOutlineEntry.d.ts +108 -0
- package/dist/models/HostedScormOutlineEntry.js +105 -0
- package/dist/models/HostedScormRollupPolicy.d.ts +69 -0
- package/dist/models/HostedScormRollupPolicy.js +80 -0
- package/dist/models/HostedScormScoreItem.d.ts +38 -0
- package/dist/models/HostedScormScoreItem.js +54 -0
- package/dist/models/PostCourseExport.d.ts +28 -0
- package/dist/models/PostCourseExport.js +16 -1
- package/dist/models/PostDispatchItemLaunch.d.ts +32 -0
- package/dist/models/PostDispatchItemLaunch.js +48 -0
- package/dist/models/PostDispatchItemLaunchResponse.d.ts +64 -0
- package/dist/models/PostDispatchItemLaunchResponse.js +74 -0
- package/dist/models/PostDispatchLaunch.d.ts +50 -0
- package/dist/models/PostDispatchLaunch.js +60 -0
- package/dist/models/PostDispatchLaunchResponse.d.ts +70 -0
- package/dist/models/PostDispatchLaunchResponse.js +78 -0
- package/dist/models/PostDispatchTokenExchange.d.ts +32 -0
- package/dist/models/PostDispatchTokenExchange.js +50 -0
- package/dist/models/PutHostedScormStatus.d.ts +32 -0
- package/dist/models/PutHostedScormStatus.js +50 -0
- package/dist/models/ScormGetValueResponse.d.ts +12 -0
- package/dist/models/ScormGetValueResponse.js +8 -0
- package/dist/models/ScormNavigationDelivery.d.ts +64 -0
- package/dist/models/ScormNavigationDelivery.js +74 -0
- package/dist/models/ScormNavigationRequest.d.ts +55 -0
- package/dist/models/ScormNavigationRequest.js +69 -0
- package/dist/models/ScormNavigationResponse.d.ts +70 -0
- package/dist/models/ScormNavigationResponse.js +74 -0
- package/dist/models/ScormNavigationValidity.d.ts +92 -0
- package/dist/models/ScormNavigationValidity.js +90 -0
- package/dist/models/ScormRuntimeResponse.d.ts +44 -0
- package/dist/models/ScormRuntimeResponse.js +58 -0
- package/dist/models/ScormSetValueResponse.d.ts +12 -0
- package/dist/models/ScormSetValueResponse.js +8 -0
- package/dist/models/ScormTerminateResponse.d.ts +63 -0
- package/dist/models/ScormTerminateResponse.js +69 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +21 -0
- package/docs/CourseApi.md +225 -0
- package/docs/DispatchApi.md +480 -9
- package/docs/DispatchTokenResponse.md +40 -0
- package/docs/GetCourseExport.md +14 -0
- package/docs/GetDispatchCourse.md +50 -0
- package/docs/GetDispatchRollup.md +52 -0
- package/docs/GetHostedScormRegistration.md +50 -0
- package/docs/GetHostedScormRegistrationList.md +42 -0
- package/docs/GetResourceSessionDiagnostics.md +2 -0
- package/docs/HostedScormAccessPolicy.md +41 -0
- package/docs/HostedScormOutlineEntry.md +54 -0
- package/docs/HostedScormRollupPolicy.md +41 -0
- package/docs/HostedScormScoreItem.md +36 -0
- package/docs/PlayerApi.md +80 -9
- package/docs/PostCourseExport.md +6 -0
- package/docs/PostDispatchItemLaunch.md +34 -0
- package/docs/PostDispatchItemLaunchResponse.md +42 -0
- package/docs/PostDispatchLaunch.md +40 -0
- package/docs/PostDispatchLaunchResponse.md +44 -0
- package/docs/PostDispatchTokenExchange.md +34 -0
- package/docs/PutHostedScormStatus.md +34 -0
- package/docs/ScormGetValueResponse.md +4 -0
- package/docs/ScormNavigationDelivery.md +43 -0
- package/docs/ScormNavigationRequest.md +37 -0
- package/docs/ScormNavigationResponse.md +47 -0
- package/docs/ScormNavigationValidity.md +55 -0
- package/docs/ScormRuntimeResponse.md +39 -0
- package/docs/ScormSetValueResponse.md +4 -0
- package/docs/ScormTerminateResponse.md +44 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +221 -0
- package/src/apis/DispatchApi.ts +426 -10
- package/src/apis/PlayerApi.ts +95 -12
- package/src/models/DispatchTokenResponse.ts +103 -0
- package/src/models/GetCourseExport.ts +97 -0
- package/src/models/GetDispatchCourse.ts +153 -0
- package/src/models/GetDispatchRollup.ts +169 -0
- package/src/models/GetHostedScormRegistration.ts +136 -0
- package/src/models/GetHostedScormRegistrationList.ts +110 -0
- package/src/models/GetResourceSessionDiagnostics.ts +8 -0
- package/src/models/HostedScormAccessPolicy.ts +93 -0
- package/src/models/HostedScormOutlineEntry.ts +176 -0
- package/src/models/HostedScormRollupPolicy.ts +123 -0
- package/src/models/HostedScormScoreItem.ts +75 -0
- package/src/models/PostCourseExport.ts +48 -0
- package/src/models/PostDispatchItemLaunch.ts +65 -0
- package/src/models/PostDispatchItemLaunchResponse.ts +113 -0
- package/src/models/PostDispatchLaunch.ts +92 -0
- package/src/models/PostDispatchLaunchResponse.ts +122 -0
- package/src/models/PostDispatchTokenExchange.ts +66 -0
- package/src/models/PutHostedScormStatus.ts +66 -0
- package/src/models/ScormGetValueResponse.ts +18 -0
- package/src/models/ScormNavigationDelivery.ts +113 -0
- package/src/models/ScormNavigationRequest.ts +94 -0
- package/src/models/ScormNavigationResponse.ts +134 -0
- package/src/models/ScormNavigationValidity.ts +156 -0
- package/src/models/ScormRuntimeResponse.ts +84 -0
- package/src/models/ScormSetValueResponse.ts +18 -0
- package/src/models/ScormTerminateResponse.ts +118 -0
- package/src/models/index.ts +21 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
# GetDispatchRollup
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`completionStatus` | string
|
|
10
|
+
`successStatus` | string
|
|
11
|
+
`scoreRaw` | number
|
|
12
|
+
`scoreScaled` | number
|
|
13
|
+
`progressMeasure` | number
|
|
14
|
+
`totalItems` | number
|
|
15
|
+
`completedItems` | number
|
|
16
|
+
`requiredItems` | number
|
|
17
|
+
`completedRequiredItems` | number
|
|
18
|
+
`pendingManualGrading` | boolean
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { GetDispatchRollup } from '@easyedu/js-lsm-api'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"completionStatus": null,
|
|
28
|
+
"successStatus": null,
|
|
29
|
+
"scoreRaw": null,
|
|
30
|
+
"scoreScaled": null,
|
|
31
|
+
"progressMeasure": null,
|
|
32
|
+
"totalItems": null,
|
|
33
|
+
"completedItems": null,
|
|
34
|
+
"requiredItems": null,
|
|
35
|
+
"completedRequiredItems": null,
|
|
36
|
+
"pendingManualGrading": null,
|
|
37
|
+
} satisfies GetDispatchRollup
|
|
38
|
+
|
|
39
|
+
console.log(example)
|
|
40
|
+
|
|
41
|
+
// Convert the instance to a JSON string
|
|
42
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
+
console.log(exampleJSON)
|
|
44
|
+
|
|
45
|
+
// Parse the JSON string back to an object
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetDispatchRollup
|
|
47
|
+
console.log(exampleParsed)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# GetHostedScormRegistration
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`learnerId` | string
|
|
11
|
+
`learnerName` | string
|
|
12
|
+
`active` | boolean
|
|
13
|
+
`launchCount` | number
|
|
14
|
+
`firstLaunchAt` | number
|
|
15
|
+
`lastLaunchAt` | number
|
|
16
|
+
`lastOrigin` | string
|
|
17
|
+
`lastItemId` | string
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { GetHostedScormRegistration } from '@easyedu/js-lsm-api'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"learnerId": null,
|
|
28
|
+
"learnerName": null,
|
|
29
|
+
"active": null,
|
|
30
|
+
"launchCount": null,
|
|
31
|
+
"firstLaunchAt": null,
|
|
32
|
+
"lastLaunchAt": null,
|
|
33
|
+
"lastOrigin": null,
|
|
34
|
+
"lastItemId": null,
|
|
35
|
+
} satisfies GetHostedScormRegistration
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetHostedScormRegistration
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# GetHostedScormRegistrationList
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`page` | number
|
|
10
|
+
`pageSize` | number
|
|
11
|
+
`totalPages` | number
|
|
12
|
+
`totalItems` | number
|
|
13
|
+
`items` | [Array<GetHostedScormRegistration>](GetHostedScormRegistration.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { GetHostedScormRegistrationList } 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 GetHostedScormRegistrationList
|
|
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 GetHostedScormRegistrationList
|
|
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
|
+
|
|
@@ -14,6 +14,7 @@ Name | Type
|
|
|
14
14
|
`version` | [GetResourceSessionDiagnosticsVersion](GetResourceSessionDiagnosticsVersion.md)
|
|
15
15
|
`courseContext` | [GetResourceSessionDiagnosticsCourseContext](GetResourceSessionDiagnosticsCourseContext.md)
|
|
16
16
|
`scormSummary` | [GetResourceSessionDiagnosticsScormSummary](GetResourceSessionDiagnosticsScormSummary.md)
|
|
17
|
+
`sequencing` | { [key: string]: any; }
|
|
17
18
|
|
|
18
19
|
## Example
|
|
19
20
|
|
|
@@ -29,6 +30,7 @@ const example = {
|
|
|
29
30
|
"version": null,
|
|
30
31
|
"courseContext": null,
|
|
31
32
|
"scormSummary": null,
|
|
33
|
+
"sequencing": null,
|
|
32
34
|
} satisfies GetResourceSessionDiagnostics
|
|
33
35
|
|
|
34
36
|
console.log(example)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# HostedScormAccessPolicy
|
|
3
|
+
|
|
4
|
+
Mutable reseller access controls for a hosted SCORM export.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`learnerCap` | number
|
|
11
|
+
`validFrom` | number
|
|
12
|
+
`validUntil` | number
|
|
13
|
+
`allowedLmsOrigins` | Array<string>
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { HostedScormAccessPolicy } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"learnerCap": null,
|
|
23
|
+
"validFrom": null,
|
|
24
|
+
"validUntil": null,
|
|
25
|
+
"allowedLmsOrigins": null,
|
|
26
|
+
} satisfies HostedScormAccessPolicy
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as HostedScormAccessPolicy
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
40
|
+
|
|
41
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
# HostedScormOutlineEntry
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`entryType` | string
|
|
10
|
+
`id` | string
|
|
11
|
+
`parentSectionId` | string
|
|
12
|
+
`title` | string
|
|
13
|
+
`displayOrder` | number
|
|
14
|
+
`kind` | string
|
|
15
|
+
`required` | boolean
|
|
16
|
+
`completed` | boolean
|
|
17
|
+
`locked` | boolean
|
|
18
|
+
`attemptNumber` | number
|
|
19
|
+
`maxAttempts` | number
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { HostedScormOutlineEntry } from '@easyedu/js-lsm-api'
|
|
25
|
+
|
|
26
|
+
// TODO: Update the object below with actual values
|
|
27
|
+
const example = {
|
|
28
|
+
"entryType": null,
|
|
29
|
+
"id": null,
|
|
30
|
+
"parentSectionId": null,
|
|
31
|
+
"title": null,
|
|
32
|
+
"displayOrder": null,
|
|
33
|
+
"kind": null,
|
|
34
|
+
"required": null,
|
|
35
|
+
"completed": null,
|
|
36
|
+
"locked": null,
|
|
37
|
+
"attemptNumber": null,
|
|
38
|
+
"maxAttempts": null,
|
|
39
|
+
} satisfies HostedScormOutlineEntry
|
|
40
|
+
|
|
41
|
+
console.log(example)
|
|
42
|
+
|
|
43
|
+
// Convert the instance to a JSON string
|
|
44
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
45
|
+
console.log(exampleJSON)
|
|
46
|
+
|
|
47
|
+
// Parse the JSON string back to an object
|
|
48
|
+
const exampleParsed = JSON.parse(exampleJSON) as HostedScormOutlineEntry
|
|
49
|
+
console.log(exampleParsed)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
53
|
+
|
|
54
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# HostedScormRollupPolicy
|
|
3
|
+
|
|
4
|
+
Immutable course aggregate rules captured by a hosted SCORM export.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`successRule` | string
|
|
11
|
+
`passingScorePercent` | number
|
|
12
|
+
`scoreAggregation` | string
|
|
13
|
+
`scoredItems` | [Array<HostedScormScoreItem>](HostedScormScoreItem.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { HostedScormRollupPolicy } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"successRule": null,
|
|
23
|
+
"passingScorePercent": null,
|
|
24
|
+
"scoreAggregation": null,
|
|
25
|
+
"scoredItems": null,
|
|
26
|
+
} satisfies HostedScormRollupPolicy
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as HostedScormRollupPolicy
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
40
|
+
|
|
41
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# HostedScormScoreItem
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`itemId` | string
|
|
10
|
+
`weight` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { HostedScormScoreItem } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"itemId": null,
|
|
20
|
+
"weight": null,
|
|
21
|
+
} satisfies HostedScormScoreItem
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as HostedScormScoreItem
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/PlayerApi.md
CHANGED
|
@@ -18,6 +18,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
18
18
|
| [**getResourceSessionScormApiLogs**](PlayerApi.md#getresourcesessionscormapilogs) | **GET** /resource/sessions/{sessionId}/api-logs | Get SCORM runtime logs for a resource session |
|
|
19
19
|
| [**getResourceSessionScormData**](PlayerApi.md#getresourcesessionscormdata) | **GET** /resource/sessions/{sessionId}/scorm-data | Get SCORM CMI data for a resource session |
|
|
20
20
|
| [**initializeResourceScormSession**](PlayerApi.md#initializeresourcescormsession) | **POST** /resource/sessions/{sessionId}/initialize | Initialize a reusable SCORM resource session |
|
|
21
|
+
| [**navigateResourceScormSession**](PlayerApi.md#navigateresourcescormsession) | **POST** /resource/sessions/{sessionId}/navigation | Process a SCORM 2004 sequencing and navigation request |
|
|
21
22
|
| [**postResourceSessionActivityEvent**](PlayerApi.md#postresourcesessionactivityevent) | **POST** /resource/sessions/{sessionId}/activities/{activityId}/events | Record learner activity and update active time |
|
|
22
23
|
| [**postResourceSessionComplete**](PlayerApi.md#postresourcesessioncomplete) | **POST** /resource/sessions/{sessionId}/complete | Complete a non-SCORM resource session |
|
|
23
24
|
| [**putResourceSessionOverride**](PlayerApi.md#putresourcesessionoverride) | **PUT** /resource/sessions/{sessionId}/override | Override a learner\'s live resource-session progress |
|
|
@@ -28,7 +29,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
28
29
|
|
|
29
30
|
## commitResourceScormSession
|
|
30
31
|
|
|
31
|
-
> commitResourceScormSession(sessionId, activityId)
|
|
32
|
+
> ScormRuntimeResponse commitResourceScormSession(sessionId, activityId)
|
|
32
33
|
|
|
33
34
|
Commit a reusable SCORM resource session
|
|
34
35
|
|
|
@@ -74,7 +75,7 @@ example().catch(console.error);
|
|
|
74
75
|
|
|
75
76
|
### Return type
|
|
76
77
|
|
|
77
|
-
|
|
78
|
+
[**ScormRuntimeResponse**](ScormRuntimeResponse.md)
|
|
78
79
|
|
|
79
80
|
### Authorization
|
|
80
81
|
|
|
@@ -83,7 +84,7 @@ No authorization required
|
|
|
83
84
|
### HTTP request headers
|
|
84
85
|
|
|
85
86
|
- **Content-Type**: Not defined
|
|
86
|
-
- **Accept**:
|
|
87
|
+
- **Accept**: `application/json`
|
|
87
88
|
|
|
88
89
|
|
|
89
90
|
### HTTP response details
|
|
@@ -980,7 +981,7 @@ No authorization required
|
|
|
980
981
|
|
|
981
982
|
## initializeResourceScormSession
|
|
982
983
|
|
|
983
|
-
> initializeResourceScormSession(sessionId, activityId)
|
|
984
|
+
> ScormRuntimeResponse initializeResourceScormSession(sessionId, activityId)
|
|
984
985
|
|
|
985
986
|
Initialize a reusable SCORM resource session
|
|
986
987
|
|
|
@@ -1026,7 +1027,7 @@ example().catch(console.error);
|
|
|
1026
1027
|
|
|
1027
1028
|
### Return type
|
|
1028
1029
|
|
|
1029
|
-
|
|
1030
|
+
[**ScormRuntimeResponse**](ScormRuntimeResponse.md)
|
|
1030
1031
|
|
|
1031
1032
|
### Authorization
|
|
1032
1033
|
|
|
@@ -1035,7 +1036,7 @@ No authorization required
|
|
|
1035
1036
|
### HTTP request headers
|
|
1036
1037
|
|
|
1037
1038
|
- **Content-Type**: Not defined
|
|
1038
|
-
- **Accept**:
|
|
1039
|
+
- **Accept**: `application/json`
|
|
1039
1040
|
|
|
1040
1041
|
|
|
1041
1042
|
### HTTP response details
|
|
@@ -1047,6 +1048,76 @@ No authorization required
|
|
|
1047
1048
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1048
1049
|
|
|
1049
1050
|
|
|
1051
|
+
## navigateResourceScormSession
|
|
1052
|
+
|
|
1053
|
+
> ScormNavigationResponse navigateResourceScormSession(sessionId, scormNavigationRequest)
|
|
1054
|
+
|
|
1055
|
+
Process a SCORM 2004 sequencing and navigation request
|
|
1056
|
+
|
|
1057
|
+
### Example
|
|
1058
|
+
|
|
1059
|
+
```ts
|
|
1060
|
+
import {
|
|
1061
|
+
Configuration,
|
|
1062
|
+
PlayerApi,
|
|
1063
|
+
} from '@easyedu/js-lsm-api';
|
|
1064
|
+
import type { NavigateResourceScormSessionRequest } from '@easyedu/js-lsm-api';
|
|
1065
|
+
|
|
1066
|
+
async function example() {
|
|
1067
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
1068
|
+
const api = new PlayerApi();
|
|
1069
|
+
|
|
1070
|
+
const body = {
|
|
1071
|
+
// string
|
|
1072
|
+
sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
1073
|
+
// ScormNavigationRequest
|
|
1074
|
+
scormNavigationRequest: ...,
|
|
1075
|
+
} satisfies NavigateResourceScormSessionRequest;
|
|
1076
|
+
|
|
1077
|
+
try {
|
|
1078
|
+
const data = await api.navigateResourceScormSession(body);
|
|
1079
|
+
console.log(data);
|
|
1080
|
+
} catch (error) {
|
|
1081
|
+
console.error(error);
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
// Run the test
|
|
1086
|
+
example().catch(console.error);
|
|
1087
|
+
```
|
|
1088
|
+
|
|
1089
|
+
### Parameters
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
| Name | Type | Description | Notes |
|
|
1093
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1094
|
+
| **sessionId** | `string` | | [Defaults to `undefined`] |
|
|
1095
|
+
| **scormNavigationRequest** | [ScormNavigationRequest](ScormNavigationRequest.md) | | |
|
|
1096
|
+
|
|
1097
|
+
### Return type
|
|
1098
|
+
|
|
1099
|
+
[**ScormNavigationResponse**](ScormNavigationResponse.md)
|
|
1100
|
+
|
|
1101
|
+
### Authorization
|
|
1102
|
+
|
|
1103
|
+
No authorization required
|
|
1104
|
+
|
|
1105
|
+
### HTTP request headers
|
|
1106
|
+
|
|
1107
|
+
- **Content-Type**: `application/json`
|
|
1108
|
+
- **Accept**: `application/json`
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
### HTTP response details
|
|
1112
|
+
| Status code | Description | Response headers |
|
|
1113
|
+
|-------------|-------------|------------------|
|
|
1114
|
+
| **200** | Sequencing transition result, including SCORM process errors | - |
|
|
1115
|
+
| **403** | Session access denied | - |
|
|
1116
|
+
| **404** | Resource session not found | - |
|
|
1117
|
+
|
|
1118
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1119
|
+
|
|
1120
|
+
|
|
1050
1121
|
## postResourceSessionActivityEvent
|
|
1051
1122
|
|
|
1052
1123
|
> GetResourceSessionActivity postResourceSessionActivityEvent(sessionId, activityId, postResourceSessionActivityEvent)
|
|
@@ -1330,7 +1401,7 @@ No authorization required
|
|
|
1330
1401
|
|
|
1331
1402
|
## terminateResourceScormSession
|
|
1332
1403
|
|
|
1333
|
-
> terminateResourceScormSession(sessionId, activityId)
|
|
1404
|
+
> ScormTerminateResponse terminateResourceScormSession(sessionId, activityId)
|
|
1334
1405
|
|
|
1335
1406
|
Terminate a reusable SCORM resource session
|
|
1336
1407
|
|
|
@@ -1376,7 +1447,7 @@ example().catch(console.error);
|
|
|
1376
1447
|
|
|
1377
1448
|
### Return type
|
|
1378
1449
|
|
|
1379
|
-
|
|
1450
|
+
[**ScormTerminateResponse**](ScormTerminateResponse.md)
|
|
1380
1451
|
|
|
1381
1452
|
### Authorization
|
|
1382
1453
|
|
|
@@ -1385,7 +1456,7 @@ No authorization required
|
|
|
1385
1456
|
### HTTP request headers
|
|
1386
1457
|
|
|
1387
1458
|
- **Content-Type**: Not defined
|
|
1388
|
-
- **Accept**:
|
|
1459
|
+
- **Accept**: `application/json`
|
|
1389
1460
|
|
|
1390
1461
|
|
|
1391
1462
|
### HTTP response details
|
package/docs/PostCourseExport.md
CHANGED
|
@@ -10,6 +10,9 @@ Name | Type
|
|
|
10
10
|
`courseVersionId` | string
|
|
11
11
|
`exportType` | string
|
|
12
12
|
`sectionIds` | Array<string>
|
|
13
|
+
`deliveryMode` | string
|
|
14
|
+
`rollupPolicy` | [HostedScormRollupPolicy](HostedScormRollupPolicy.md)
|
|
15
|
+
`accessPolicy` | [HostedScormAccessPolicy](HostedScormAccessPolicy.md)
|
|
13
16
|
|
|
14
17
|
## Example
|
|
15
18
|
|
|
@@ -21,6 +24,9 @@ const example = {
|
|
|
21
24
|
"courseVersionId": null,
|
|
22
25
|
"exportType": null,
|
|
23
26
|
"sectionIds": null,
|
|
27
|
+
"deliveryMode": null,
|
|
28
|
+
"rollupPolicy": null,
|
|
29
|
+
"accessPolicy": null,
|
|
24
30
|
} satisfies PostCourseExport
|
|
25
31
|
|
|
26
32
|
console.log(example)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# PostDispatchItemLaunch
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`retake` | boolean
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { PostDispatchItemLaunch } from '@easyedu/js-lsm-api'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"retake": null,
|
|
19
|
+
} satisfies PostDispatchItemLaunch
|
|
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 PostDispatchItemLaunch
|
|
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,42 @@
|
|
|
1
|
+
|
|
2
|
+
# PostDispatchItemLaunchResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`itemId` | string
|
|
10
|
+
`kind` | string
|
|
11
|
+
`sessionId` | string
|
|
12
|
+
`attemptNumber` | number
|
|
13
|
+
`launchUrl` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { PostDispatchItemLaunchResponse } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"itemId": null,
|
|
23
|
+
"kind": null,
|
|
24
|
+
"sessionId": null,
|
|
25
|
+
"attemptNumber": null,
|
|
26
|
+
"launchUrl": null,
|
|
27
|
+
} satisfies PostDispatchItemLaunchResponse
|
|
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 PostDispatchItemLaunchResponse
|
|
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,40 @@
|
|
|
1
|
+
|
|
2
|
+
# PostDispatchLaunch
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`dispatchId` | string
|
|
10
|
+
`learnerId` | string
|
|
11
|
+
`learnerName` | string
|
|
12
|
+
`itemId` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { PostDispatchLaunch } from '@easyedu/js-lsm-api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"dispatchId": null,
|
|
22
|
+
"learnerId": null,
|
|
23
|
+
"learnerName": null,
|
|
24
|
+
"itemId": null,
|
|
25
|
+
} satisfies PostDispatchLaunch
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostDispatchLaunch
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# PostDispatchLaunchResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`runtimeMode` | string
|
|
10
|
+
`launchUrl` | string
|
|
11
|
+
`token` | string
|
|
12
|
+
`launchCode` | string
|
|
13
|
+
`registrationId` | string
|
|
14
|
+
`expiresAt` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { PostDispatchLaunchResponse } from '@easyedu/js-lsm-api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"runtimeMode": null,
|
|
24
|
+
"launchUrl": null,
|
|
25
|
+
"token": null,
|
|
26
|
+
"launchCode": null,
|
|
27
|
+
"registrationId": null,
|
|
28
|
+
"expiresAt": null,
|
|
29
|
+
} satisfies PostDispatchLaunchResponse
|
|
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 PostDispatchLaunchResponse
|
|
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
|
+
|