@easyedu/js-lsm-api 1.89.0 → 1.91.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 +28 -0
- package/README.md +24 -2
- package/dist/apis/ContentLibraryApi.d.ts +19 -0
- package/dist/apis/ContentLibraryApi.js +47 -0
- package/dist/apis/PlayerApi.d.ts +187 -0
- package/dist/apis/PlayerApi.js +401 -1
- package/dist/esm/apis/ContentLibraryApi.d.ts +19 -0
- package/dist/esm/apis/ContentLibraryApi.js +47 -0
- package/dist/esm/apis/PlayerApi.d.ts +187 -0
- package/dist/esm/apis/PlayerApi.js +400 -0
- package/dist/esm/models/GetCourseVersionItemSession.d.ts +7 -0
- package/dist/esm/models/GetCourseVersionItemSession.js +5 -0
- package/dist/esm/models/GetResourceSession.d.ts +191 -0
- package/dist/esm/models/GetResourceSession.js +128 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +76 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.js +69 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.js +76 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsResource.js +56 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.js +59 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsUser.js +47 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsVersion.js +67 -0
- package/dist/esm/models/GetResourceSessionList.d.ts +57 -0
- package/dist/esm/models/GetResourceSessionList.js +60 -0
- package/dist/esm/models/GetResourceSessionScormApiLogs.d.ts +57 -0
- package/dist/esm/models/GetResourceSessionScormApiLogs.js +60 -0
- package/dist/esm/models/GetResourceSessionScormData.d.ts +77 -0
- package/dist/esm/models/GetResourceSessionScormData.js +66 -0
- package/dist/esm/models/GetResourceSessionScormDataActivity.d.ts +44 -0
- package/dist/esm/models/GetResourceSessionScormDataActivity.js +45 -0
- package/dist/esm/models/PostResourceVersionSession.d.ts +32 -0
- package/dist/esm/models/PostResourceVersionSession.js +41 -0
- package/dist/esm/models/ResourceSessionEnvironment.d.ts +25 -0
- package/dist/esm/models/ResourceSessionEnvironment.js +43 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.js +73 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/GetCourseVersionItemSession.d.ts +7 -0
- package/dist/models/GetCourseVersionItemSession.js +5 -0
- package/dist/models/GetResourceSession.d.ts +191 -0
- package/dist/models/GetResourceSession.js +135 -0
- package/dist/models/GetResourceSessionDiagnostics.d.ts +76 -0
- package/dist/models/GetResourceSessionDiagnostics.js +76 -0
- package/dist/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
- package/dist/models/GetResourceSessionDiagnosticsCourseContext.js +83 -0
- package/dist/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
- package/dist/models/GetResourceSessionDiagnosticsResource.js +63 -0
- package/dist/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
- package/dist/models/GetResourceSessionDiagnosticsScormSummary.js +66 -0
- package/dist/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
- package/dist/models/GetResourceSessionDiagnosticsUser.js +54 -0
- package/dist/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
- package/dist/models/GetResourceSessionDiagnosticsVersion.js +74 -0
- package/dist/models/GetResourceSessionList.d.ts +57 -0
- package/dist/models/GetResourceSessionList.js +67 -0
- package/dist/models/GetResourceSessionScormApiLogs.d.ts +57 -0
- package/dist/models/GetResourceSessionScormApiLogs.js +67 -0
- package/dist/models/GetResourceSessionScormData.d.ts +77 -0
- package/dist/models/GetResourceSessionScormData.js +73 -0
- package/dist/models/GetResourceSessionScormDataActivity.d.ts +44 -0
- package/dist/models/GetResourceSessionScormDataActivity.js +52 -0
- package/dist/models/PostResourceVersionSession.d.ts +32 -0
- package/dist/models/PostResourceVersionSession.js +48 -0
- package/dist/models/ResourceSessionEnvironment.d.ts +25 -0
- package/dist/models/ResourceSessionEnvironment.js +51 -0
- package/dist/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/ContentLibraryApi.md +73 -0
- package/docs/GetCourseVersionItemSession.md +2 -0
- package/docs/GetResourceSession.md +87 -0
- package/docs/GetResourceSessionDiagnostics.md +47 -0
- package/docs/GetResourceSessionDiagnosticsCourseContext.md +50 -0
- package/docs/GetResourceSessionDiagnosticsResource.md +40 -0
- package/docs/GetResourceSessionDiagnosticsScormSummary.md +48 -0
- package/docs/GetResourceSessionDiagnosticsUser.md +36 -0
- package/docs/GetResourceSessionDiagnosticsVersion.md +52 -0
- package/docs/GetResourceSessionList.md +43 -0
- package/docs/GetResourceSessionScormApiLogs.md +43 -0
- package/docs/GetResourceSessionScormData.md +49 -0
- package/docs/GetResourceSessionScormDataActivity.md +38 -0
- package/docs/PlayerApi.md +547 -0
- package/docs/PostResourceVersionSession.md +35 -0
- package/docs/ResourceSessionEnvironment.md +33 -0
- package/docs/ResourceSessionScormApiLogItem.md +47 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +72 -0
- package/src/apis/PlayerApi.ts +558 -0
- package/src/models/GetCourseVersionItemSession.ts +16 -0
- package/src/models/GetResourceSession.ts +313 -0
- package/src/models/GetResourceSessionDiagnostics.ts +161 -0
- package/src/models/GetResourceSessionDiagnosticsCourseContext.ts +148 -0
- package/src/models/GetResourceSessionDiagnosticsResource.ts +103 -0
- package/src/models/GetResourceSessionDiagnosticsScormSummary.ts +123 -0
- package/src/models/GetResourceSessionDiagnosticsUser.ts +75 -0
- package/src/models/GetResourceSessionDiagnosticsVersion.ts +141 -0
- package/src/models/GetResourceSessionList.ts +110 -0
- package/src/models/GetResourceSessionScormApiLogs.ts +110 -0
- package/src/models/GetResourceSessionScormData.ts +134 -0
- package/src/models/GetResourceSessionScormDataActivity.ts +81 -0
- package/src/models/PostResourceVersionSession.ts +65 -0
- package/src/models/ResourceSessionEnvironment.ts +53 -0
- package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
- package/src/models/index.ts +14 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ResourceSessionScormApiLogItemMethodEnum = void 0;
|
|
17
|
+
exports.instanceOfResourceSessionScormApiLogItem = instanceOfResourceSessionScormApiLogItem;
|
|
18
|
+
exports.ResourceSessionScormApiLogItemFromJSON = ResourceSessionScormApiLogItemFromJSON;
|
|
19
|
+
exports.ResourceSessionScormApiLogItemFromJSONTyped = ResourceSessionScormApiLogItemFromJSONTyped;
|
|
20
|
+
exports.ResourceSessionScormApiLogItemToJSON = ResourceSessionScormApiLogItemToJSON;
|
|
21
|
+
exports.ResourceSessionScormApiLogItemToJSONTyped = ResourceSessionScormApiLogItemToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ResourceSessionScormApiLogItemMethodEnum = {
|
|
26
|
+
Initialize: 'Initialize',
|
|
27
|
+
GetValue: 'GetValue',
|
|
28
|
+
SetValue: 'SetValue',
|
|
29
|
+
Commit: 'Commit',
|
|
30
|
+
Terminate: 'Terminate'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ResourceSessionScormApiLogItem interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfResourceSessionScormApiLogItem(value) {
|
|
36
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('method' in value) || value['method'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('valueTruncated' in value) || value['valueTruncated'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function ResourceSessionScormApiLogItemFromJSON(json) {
|
|
49
|
+
return ResourceSessionScormApiLogItemFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ResourceSessionScormApiLogItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': json['id'],
|
|
57
|
+
'createdAt': json['created_at'],
|
|
58
|
+
'method': json['method'],
|
|
59
|
+
'element': json['element'] == null ? undefined : json['element'],
|
|
60
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
61
|
+
'valueTruncated': json['value_truncated'],
|
|
62
|
+
'errorCode': json['error_code'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function ResourceSessionScormApiLogItemToJSON(json) {
|
|
66
|
+
return ResourceSessionScormApiLogItemToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function ResourceSessionScormApiLogItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'created_at': value['createdAt'],
|
|
75
|
+
'method': value['method'],
|
|
76
|
+
'element': value['element'],
|
|
77
|
+
'value': value['value'],
|
|
78
|
+
'value_truncated': value['valueTruncated'],
|
|
79
|
+
'error_code': value['errorCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -180,6 +180,17 @@ export * from './GetQuizResultsTiming';
|
|
|
180
180
|
export * from './GetQuizStatistics';
|
|
181
181
|
export * from './GetResource';
|
|
182
182
|
export * from './GetResourceList';
|
|
183
|
+
export * from './GetResourceSession';
|
|
184
|
+
export * from './GetResourceSessionDiagnostics';
|
|
185
|
+
export * from './GetResourceSessionDiagnosticsCourseContext';
|
|
186
|
+
export * from './GetResourceSessionDiagnosticsResource';
|
|
187
|
+
export * from './GetResourceSessionDiagnosticsScormSummary';
|
|
188
|
+
export * from './GetResourceSessionDiagnosticsUser';
|
|
189
|
+
export * from './GetResourceSessionDiagnosticsVersion';
|
|
190
|
+
export * from './GetResourceSessionList';
|
|
191
|
+
export * from './GetResourceSessionScormApiLogs';
|
|
192
|
+
export * from './GetResourceSessionScormData';
|
|
193
|
+
export * from './GetResourceSessionScormDataActivity';
|
|
183
194
|
export * from './GetResourceUsage';
|
|
184
195
|
export * from './GetResourceUsageCoursesInner';
|
|
185
196
|
export * from './GetResourceVersionUpload';
|
|
@@ -297,6 +308,7 @@ export * from './PostResetPassword';
|
|
|
297
308
|
export * from './PostResource';
|
|
298
309
|
export * from './PostResourceVersion';
|
|
299
310
|
export * from './PostResourceVersionComplete';
|
|
311
|
+
export * from './PostResourceVersionSession';
|
|
300
312
|
export * from './PostResourceVersionUpload';
|
|
301
313
|
export * from './PostRevokeCertificate';
|
|
302
314
|
export * from './PostRichTextAssetComplete';
|
|
@@ -348,6 +360,8 @@ export * from './PutUser';
|
|
|
348
360
|
export * from './QuizContent';
|
|
349
361
|
export * from './QuizContentAssignment';
|
|
350
362
|
export * from './QuizContentSettings';
|
|
363
|
+
export * from './ResourceSessionEnvironment';
|
|
364
|
+
export * from './ResourceSessionScormApiLogItem';
|
|
351
365
|
export * from './ResourceType';
|
|
352
366
|
export * from './RichTextAsset';
|
|
353
367
|
export * from './RichTextDocument';
|
package/dist/models/index.js
CHANGED
|
@@ -198,6 +198,17 @@ __exportStar(require("./GetQuizResultsTiming"), exports);
|
|
|
198
198
|
__exportStar(require("./GetQuizStatistics"), exports);
|
|
199
199
|
__exportStar(require("./GetResource"), exports);
|
|
200
200
|
__exportStar(require("./GetResourceList"), exports);
|
|
201
|
+
__exportStar(require("./GetResourceSession"), exports);
|
|
202
|
+
__exportStar(require("./GetResourceSessionDiagnostics"), exports);
|
|
203
|
+
__exportStar(require("./GetResourceSessionDiagnosticsCourseContext"), exports);
|
|
204
|
+
__exportStar(require("./GetResourceSessionDiagnosticsResource"), exports);
|
|
205
|
+
__exportStar(require("./GetResourceSessionDiagnosticsScormSummary"), exports);
|
|
206
|
+
__exportStar(require("./GetResourceSessionDiagnosticsUser"), exports);
|
|
207
|
+
__exportStar(require("./GetResourceSessionDiagnosticsVersion"), exports);
|
|
208
|
+
__exportStar(require("./GetResourceSessionList"), exports);
|
|
209
|
+
__exportStar(require("./GetResourceSessionScormApiLogs"), exports);
|
|
210
|
+
__exportStar(require("./GetResourceSessionScormData"), exports);
|
|
211
|
+
__exportStar(require("./GetResourceSessionScormDataActivity"), exports);
|
|
201
212
|
__exportStar(require("./GetResourceUsage"), exports);
|
|
202
213
|
__exportStar(require("./GetResourceUsageCoursesInner"), exports);
|
|
203
214
|
__exportStar(require("./GetResourceVersionUpload"), exports);
|
|
@@ -315,6 +326,7 @@ __exportStar(require("./PostResetPassword"), exports);
|
|
|
315
326
|
__exportStar(require("./PostResource"), exports);
|
|
316
327
|
__exportStar(require("./PostResourceVersion"), exports);
|
|
317
328
|
__exportStar(require("./PostResourceVersionComplete"), exports);
|
|
329
|
+
__exportStar(require("./PostResourceVersionSession"), exports);
|
|
318
330
|
__exportStar(require("./PostResourceVersionUpload"), exports);
|
|
319
331
|
__exportStar(require("./PostRevokeCertificate"), exports);
|
|
320
332
|
__exportStar(require("./PostRichTextAssetComplete"), exports);
|
|
@@ -366,6 +378,8 @@ __exportStar(require("./PutUser"), exports);
|
|
|
366
378
|
__exportStar(require("./QuizContent"), exports);
|
|
367
379
|
__exportStar(require("./QuizContentAssignment"), exports);
|
|
368
380
|
__exportStar(require("./QuizContentSettings"), exports);
|
|
381
|
+
__exportStar(require("./ResourceSessionEnvironment"), exports);
|
|
382
|
+
__exportStar(require("./ResourceSessionScormApiLogItem"), exports);
|
|
369
383
|
__exportStar(require("./ResourceType"), exports);
|
|
370
384
|
__exportStar(require("./RichTextAsset"), exports);
|
|
371
385
|
__exportStar(require("./RichTextDocument"), exports);
|
|
@@ -15,6 +15,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
15
15
|
| [**postResourceVersion**](ContentLibraryApi.md#postresourceversion) | **POST** /content-library/resources/{resourceId}/versions | Create the next draft resource version |
|
|
16
16
|
| [**postResourceVersionArchive**](ContentLibraryApi.md#postresourceversionarchive) | **POST** /content-library/resources/{resourceId}/versions/{versionId}/archive | Archive a published resource version |
|
|
17
17
|
| [**postResourceVersionPublish**](ContentLibraryApi.md#postresourceversionpublish) | **POST** /content-library/resources/{resourceId}/versions/{versionId}/publish | Publish an immutable resource version |
|
|
18
|
+
| [**postResourceVersionSession**](ContentLibraryApi.md#postresourceversionsession) | **POST** /content-library/resources/{resourceId}/versions/{versionId}/sessions | Start or resume a demo session for an exact resource version |
|
|
18
19
|
| [**postResourceVersionUpload**](ContentLibraryApi.md#postresourceversionupload) | **POST** /content-library/resources/{resourceId}/versions/{versionId}/upload | Initialize a version-scoped file upload |
|
|
19
20
|
| [**postResourceVersionUploadComplete**](ContentLibraryApi.md#postresourceversionuploadcomplete) | **POST** /content-library/resources/{resourceId}/versions/{versionId}/upload/complete | Verify and complete a resource upload |
|
|
20
21
|
| [**putResource**](ContentLibraryApi.md#putresource) | **PUT** /content-library/resources/{resourceId} | Update resource library metadata |
|
|
@@ -778,6 +779,78 @@ No authorization required
|
|
|
778
779
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
779
780
|
|
|
780
781
|
|
|
782
|
+
## postResourceVersionSession
|
|
783
|
+
|
|
784
|
+
> GetResourceSession postResourceVersionSession(resourceId, versionId, postResourceVersionSession)
|
|
785
|
+
|
|
786
|
+
Start or resume a demo session for an exact resource version
|
|
787
|
+
|
|
788
|
+
### Example
|
|
789
|
+
|
|
790
|
+
```ts
|
|
791
|
+
import {
|
|
792
|
+
Configuration,
|
|
793
|
+
ContentLibraryApi,
|
|
794
|
+
} from '@easyedu/js-lsm-api';
|
|
795
|
+
import type { PostResourceVersionSessionRequest } from '@easyedu/js-lsm-api';
|
|
796
|
+
|
|
797
|
+
async function example() {
|
|
798
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
799
|
+
const api = new ContentLibraryApi();
|
|
800
|
+
|
|
801
|
+
const body = {
|
|
802
|
+
// string
|
|
803
|
+
resourceId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
804
|
+
// string
|
|
805
|
+
versionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
806
|
+
// PostResourceVersionSession (optional)
|
|
807
|
+
postResourceVersionSession: ...,
|
|
808
|
+
} satisfies PostResourceVersionSessionRequest;
|
|
809
|
+
|
|
810
|
+
try {
|
|
811
|
+
const data = await api.postResourceVersionSession(body);
|
|
812
|
+
console.log(data);
|
|
813
|
+
} catch (error) {
|
|
814
|
+
console.error(error);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
// Run the test
|
|
819
|
+
example().catch(console.error);
|
|
820
|
+
```
|
|
821
|
+
|
|
822
|
+
### Parameters
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
| Name | Type | Description | Notes |
|
|
826
|
+
|------------- | ------------- | ------------- | -------------|
|
|
827
|
+
| **resourceId** | `string` | | [Defaults to `undefined`] |
|
|
828
|
+
| **versionId** | `string` | | [Defaults to `undefined`] |
|
|
829
|
+
| **postResourceVersionSession** | [PostResourceVersionSession](PostResourceVersionSession.md) | | [Optional] |
|
|
830
|
+
|
|
831
|
+
### Return type
|
|
832
|
+
|
|
833
|
+
[**GetResourceSession**](GetResourceSession.md)
|
|
834
|
+
|
|
835
|
+
### Authorization
|
|
836
|
+
|
|
837
|
+
No authorization required
|
|
838
|
+
|
|
839
|
+
### HTTP request headers
|
|
840
|
+
|
|
841
|
+
- **Content-Type**: `application/json`
|
|
842
|
+
- **Accept**: `application/json`
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
### HTTP response details
|
|
846
|
+
| Status code | Description | Response headers |
|
|
847
|
+
|-------------|-------------|------------------|
|
|
848
|
+
| **200** | Current or newly restarted demo session | - |
|
|
849
|
+
| **404** | Resource version not found | - |
|
|
850
|
+
|
|
851
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
852
|
+
|
|
853
|
+
|
|
781
854
|
## postResourceVersionUpload
|
|
782
855
|
|
|
783
856
|
> GetResourceVersionUpload postResourceVersionUpload(resourceId, versionId, postResourceVersionUpload)
|
|
@@ -8,6 +8,7 @@ A learner resource attempt pinned to an immutable course and Content Library ver
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`id` | string
|
|
11
|
+
`environment` | [ResourceSessionEnvironment](ResourceSessionEnvironment.md)
|
|
11
12
|
`courseVersionId` | string
|
|
12
13
|
`itemId` | string
|
|
13
14
|
`contentLibraryItemId` | string
|
|
@@ -32,6 +33,7 @@ import type { GetCourseVersionItemSession } from '@easyedu/js-lsm-api'
|
|
|
32
33
|
// TODO: Update the object below with actual values
|
|
33
34
|
const example = {
|
|
34
35
|
"id": null,
|
|
36
|
+
"environment": null,
|
|
35
37
|
"courseVersionId": null,
|
|
36
38
|
"itemId": null,
|
|
37
39
|
"contentLibraryItemId": null,
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceSession
|
|
3
|
+
|
|
4
|
+
A user-owned session pinned to an immutable Content Library resource version.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`userId` | string
|
|
12
|
+
`userName` | string
|
|
13
|
+
`environment` | [ResourceSessionEnvironment](ResourceSessionEnvironment.md)
|
|
14
|
+
`courseId` | string
|
|
15
|
+
`courseName` | string
|
|
16
|
+
`courseVersionId` | string
|
|
17
|
+
`courseVersionNumber` | number
|
|
18
|
+
`itemId` | string
|
|
19
|
+
`contentLibraryItemId` | string
|
|
20
|
+
`contentLibraryVersionId` | string
|
|
21
|
+
`contentLibraryVersionNumber` | number
|
|
22
|
+
`contentLibraryVersionStatus` | string
|
|
23
|
+
`resourceName` | string
|
|
24
|
+
`resourceType` | [ResourceType](ResourceType.md)
|
|
25
|
+
`launchMode` | [ContentLaunchMode](ContentLaunchMode.md)
|
|
26
|
+
`launchUrl` | string
|
|
27
|
+
`attemptNumber` | number
|
|
28
|
+
`isCurrent` | boolean
|
|
29
|
+
`completionStatus` | string
|
|
30
|
+
`gradeStatus` | string
|
|
31
|
+
`scoreRaw` | number
|
|
32
|
+
`initializedAt` | number
|
|
33
|
+
`terminatedAt` | number
|
|
34
|
+
`createdAt` | number
|
|
35
|
+
`updatedAt` | number
|
|
36
|
+
`completedAt` | number
|
|
37
|
+
|
|
38
|
+
## Example
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
import type { GetResourceSession } from '@easyedu/js-lsm-api'
|
|
42
|
+
|
|
43
|
+
// TODO: Update the object below with actual values
|
|
44
|
+
const example = {
|
|
45
|
+
"id": null,
|
|
46
|
+
"userId": null,
|
|
47
|
+
"userName": null,
|
|
48
|
+
"environment": null,
|
|
49
|
+
"courseId": null,
|
|
50
|
+
"courseName": null,
|
|
51
|
+
"courseVersionId": null,
|
|
52
|
+
"courseVersionNumber": null,
|
|
53
|
+
"itemId": null,
|
|
54
|
+
"contentLibraryItemId": null,
|
|
55
|
+
"contentLibraryVersionId": null,
|
|
56
|
+
"contentLibraryVersionNumber": null,
|
|
57
|
+
"contentLibraryVersionStatus": null,
|
|
58
|
+
"resourceName": null,
|
|
59
|
+
"resourceType": null,
|
|
60
|
+
"launchMode": null,
|
|
61
|
+
"launchUrl": null,
|
|
62
|
+
"attemptNumber": null,
|
|
63
|
+
"isCurrent": null,
|
|
64
|
+
"completionStatus": null,
|
|
65
|
+
"gradeStatus": null,
|
|
66
|
+
"scoreRaw": null,
|
|
67
|
+
"initializedAt": null,
|
|
68
|
+
"terminatedAt": null,
|
|
69
|
+
"createdAt": null,
|
|
70
|
+
"updatedAt": null,
|
|
71
|
+
"completedAt": null,
|
|
72
|
+
} satisfies GetResourceSession
|
|
73
|
+
|
|
74
|
+
console.log(example)
|
|
75
|
+
|
|
76
|
+
// Convert the instance to a JSON string
|
|
77
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
78
|
+
console.log(exampleJSON)
|
|
79
|
+
|
|
80
|
+
// Parse the JSON string back to an object
|
|
81
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetResourceSession
|
|
82
|
+
console.log(exampleParsed)
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
86
|
+
|
|
87
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceSessionDiagnostics
|
|
3
|
+
|
|
4
|
+
Administrator diagnostics for a resource session and its exact resource-version pin.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`session` | [GetResourceSession](GetResourceSession.md)
|
|
11
|
+
`sessionData` | { [key: string]: any; }
|
|
12
|
+
`user` | [GetResourceSessionDiagnosticsUser](GetResourceSessionDiagnosticsUser.md)
|
|
13
|
+
`resource` | [GetResourceSessionDiagnosticsResource](GetResourceSessionDiagnosticsResource.md)
|
|
14
|
+
`version` | [GetResourceSessionDiagnosticsVersion](GetResourceSessionDiagnosticsVersion.md)
|
|
15
|
+
`courseContext` | [GetResourceSessionDiagnosticsCourseContext](GetResourceSessionDiagnosticsCourseContext.md)
|
|
16
|
+
`scormSummary` | [GetResourceSessionDiagnosticsScormSummary](GetResourceSessionDiagnosticsScormSummary.md)
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { GetResourceSessionDiagnostics } from '@easyedu/js-lsm-api'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"session": null,
|
|
26
|
+
"sessionData": null,
|
|
27
|
+
"user": null,
|
|
28
|
+
"resource": null,
|
|
29
|
+
"version": null,
|
|
30
|
+
"courseContext": null,
|
|
31
|
+
"scormSummary": null,
|
|
32
|
+
} satisfies GetResourceSessionDiagnostics
|
|
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 GetResourceSessionDiagnostics
|
|
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,50 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceSessionDiagnosticsCourseContext
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`courseId` | string
|
|
10
|
+
`courseName` | string
|
|
11
|
+
`courseVersionId` | string
|
|
12
|
+
`courseVersionNumber` | number
|
|
13
|
+
`itemId` | string
|
|
14
|
+
`displayName` | string
|
|
15
|
+
`launchMode` | [ContentLaunchMode](ContentLaunchMode.md)
|
|
16
|
+
`maxAttempts` | number
|
|
17
|
+
`scoreRollupStrategy` | string
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { GetResourceSessionDiagnosticsCourseContext } from '@easyedu/js-lsm-api'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"courseId": null,
|
|
27
|
+
"courseName": null,
|
|
28
|
+
"courseVersionId": null,
|
|
29
|
+
"courseVersionNumber": null,
|
|
30
|
+
"itemId": null,
|
|
31
|
+
"displayName": null,
|
|
32
|
+
"launchMode": null,
|
|
33
|
+
"maxAttempts": null,
|
|
34
|
+
"scoreRollupStrategy": null,
|
|
35
|
+
} satisfies GetResourceSessionDiagnosticsCourseContext
|
|
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 GetResourceSessionDiagnosticsCourseContext
|
|
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,40 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceSessionDiagnosticsResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
`description` | string
|
|
12
|
+
`resourceType` | [ResourceType](ResourceType.md)
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { GetResourceSessionDiagnosticsResource } from '@easyedu/js-lsm-api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"id": null,
|
|
22
|
+
"name": null,
|
|
23
|
+
"description": null,
|
|
24
|
+
"resourceType": null,
|
|
25
|
+
} satisfies GetResourceSessionDiagnosticsResource
|
|
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 GetResourceSessionDiagnosticsResource
|
|
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,48 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceSessionDiagnosticsScormSummary
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`schemaVersion` | string
|
|
10
|
+
`manifestIdentifier` | string
|
|
11
|
+
`organizationIdentifier` | string
|
|
12
|
+
`organizationTitle` | string
|
|
13
|
+
`activityIdentifier` | string
|
|
14
|
+
`activityTitle` | string
|
|
15
|
+
`cmiElementCount` | number
|
|
16
|
+
`apiLogCount` | number
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { GetResourceSessionDiagnosticsScormSummary } from '@easyedu/js-lsm-api'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"schemaVersion": null,
|
|
26
|
+
"manifestIdentifier": null,
|
|
27
|
+
"organizationIdentifier": null,
|
|
28
|
+
"organizationTitle": null,
|
|
29
|
+
"activityIdentifier": null,
|
|
30
|
+
"activityTitle": null,
|
|
31
|
+
"cmiElementCount": null,
|
|
32
|
+
"apiLogCount": null,
|
|
33
|
+
} satisfies GetResourceSessionDiagnosticsScormSummary
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetResourceSessionDiagnosticsScormSummary
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceSessionDiagnosticsUser
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GetResourceSessionDiagnosticsUser } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"id": null,
|
|
20
|
+
"name": null,
|
|
21
|
+
} satisfies GetResourceSessionDiagnosticsUser
|
|
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 GetResourceSessionDiagnosticsUser
|
|
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
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceSessionDiagnosticsVersion
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`versionNumber` | number
|
|
11
|
+
`status` | string
|
|
12
|
+
`changeNotes` | string
|
|
13
|
+
`metadata` | { [key: string]: any; }
|
|
14
|
+
`filename` | string
|
|
15
|
+
`mimeType` | string
|
|
16
|
+
`fileSizeBytes` | number
|
|
17
|
+
`checksumSha256` | string
|
|
18
|
+
`linkUrl` | string
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { GetResourceSessionDiagnosticsVersion } from '@easyedu/js-lsm-api'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"id": null,
|
|
28
|
+
"versionNumber": null,
|
|
29
|
+
"status": null,
|
|
30
|
+
"changeNotes": null,
|
|
31
|
+
"metadata": null,
|
|
32
|
+
"filename": null,
|
|
33
|
+
"mimeType": null,
|
|
34
|
+
"fileSizeBytes": null,
|
|
35
|
+
"checksumSha256": null,
|
|
36
|
+
"linkUrl": null,
|
|
37
|
+
} satisfies GetResourceSessionDiagnosticsVersion
|
|
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 GetResourceSessionDiagnosticsVersion
|
|
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,43 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceSessionList
|
|
3
|
+
|
|
4
|
+
A filtered page of resource sessions.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`page` | number
|
|
11
|
+
`pageSize` | number
|
|
12
|
+
`totalPages` | number
|
|
13
|
+
`totalItems` | number
|
|
14
|
+
`items` | [Array<GetResourceSession>](GetResourceSession.md)
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { GetResourceSessionList } from '@easyedu/js-lsm-api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"page": null,
|
|
24
|
+
"pageSize": null,
|
|
25
|
+
"totalPages": null,
|
|
26
|
+
"totalItems": null,
|
|
27
|
+
"items": null,
|
|
28
|
+
} satisfies GetResourceSessionList
|
|
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 GetResourceSessionList
|
|
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
|
+
|