@easyedu/js-lsm-api 1.90.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 +20 -0
- package/README.md +15 -2
- package/dist/apis/PlayerApi.d.ts +115 -1
- package/dist/apis/PlayerApi.js +213 -1
- package/dist/esm/apis/PlayerApi.d.ts +115 -1
- package/dist/esm/apis/PlayerApi.js +212 -0
- package/dist/esm/models/GetResourceSession.d.ts +30 -0
- package/dist/esm/models/GetResourceSession.js +16 -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/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/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.js +73 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/GetResourceSession.d.ts +30 -0
- package/dist/models/GetResourceSession.js +16 -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/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/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/docs/GetResourceSession.md +10 -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/GetResourceSessionScormApiLogs.md +43 -0
- package/docs/GetResourceSessionScormData.md +49 -0
- package/docs/GetResourceSessionScormDataActivity.md +38 -0
- package/docs/PlayerApi.md +254 -3
- package/docs/ResourceSessionScormApiLogItem.md +47 -0
- package/package.json +1 -1
- package/src/apis/PlayerApi.ts +298 -1
- package/src/models/GetResourceSession.ts +43 -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/GetResourceSessionScormApiLogs.ts +110 -0
- package/src/models/GetResourceSessionScormData.ts +134 -0
- package/src/models/GetResourceSessionScormDataActivity.ts +81 -0
- package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
- package/src/models/index.ts +10 -0
package/docs/PlayerApi.md
CHANGED
|
@@ -16,8 +16,11 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
16
16
|
| [**getResourceScormValue**](PlayerApi.md#getresourcescormvalue) | **GET** /resource/sessions/{sessionId}/get-value | Read a CMI value from a reusable SCORM resource session |
|
|
17
17
|
| [**getResourceSession**](PlayerApi.md#getresourcesession) | **GET** /resource/sessions/{sessionId} | Get a resource session |
|
|
18
18
|
| [**getResourceSessionAsset**](PlayerApi.md#getresourcesessionasset) | **GET** /resource/sessions/{sessionId}/asset/{assetPath} | Stream an asset pinned to a resource session |
|
|
19
|
+
| [**getResourceSessionDiagnostics**](PlayerApi.md#getresourcesessiondiagnostics) | **GET** /resource/sessions/{sessionId}/diagnostics | Get administrator diagnostics for a resource session |
|
|
19
20
|
| [**getResourceSessionList**](PlayerApi.md#getresourcesessionlist) | **GET** /resource/sessions | List resource sessions for the selected portal |
|
|
20
21
|
| [**getResourceSessionPlayer**](PlayerApi.md#getresourcesessionplayer) | **GET** /resource/sessions/{sessionId}/player | Serve the player for a version-pinned reusable resource session |
|
|
22
|
+
| [**getResourceSessionScormApiLogs**](PlayerApi.md#getresourcesessionscormapilogs) | **GET** /resource/sessions/{sessionId}/api-logs | Get SCORM runtime logs for a resource session |
|
|
23
|
+
| [**getResourceSessionScormData**](PlayerApi.md#getresourcesessionscormdata) | **GET** /resource/sessions/{sessionId}/scorm-data | Get SCORM CMI data for a resource session |
|
|
21
24
|
| [**getScormAsset**](PlayerApi.md#getscormasset) | **GET** /scorm/{contentId}/scorm/asset/{assetPath} | SCORM package asset |
|
|
22
25
|
| [**getScormPlayer**](PlayerApi.md#getscormplayer) | **GET** /scorm/session/{sessionId}/player | SCORM player HTML page |
|
|
23
26
|
| [**getVideoAsset**](PlayerApi.md#getvideoasset) | **GET** /video/{contentId}/asset | Video asset |
|
|
@@ -838,9 +841,75 @@ No authorization required
|
|
|
838
841
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
839
842
|
|
|
840
843
|
|
|
844
|
+
## getResourceSessionDiagnostics
|
|
845
|
+
|
|
846
|
+
> GetResourceSessionDiagnostics getResourceSessionDiagnostics(sessionId)
|
|
847
|
+
|
|
848
|
+
Get administrator diagnostics for a resource session
|
|
849
|
+
|
|
850
|
+
### Example
|
|
851
|
+
|
|
852
|
+
```ts
|
|
853
|
+
import {
|
|
854
|
+
Configuration,
|
|
855
|
+
PlayerApi,
|
|
856
|
+
} from '@easyedu/js-lsm-api';
|
|
857
|
+
import type { GetResourceSessionDiagnosticsRequest } from '@easyedu/js-lsm-api';
|
|
858
|
+
|
|
859
|
+
async function example() {
|
|
860
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
861
|
+
const api = new PlayerApi();
|
|
862
|
+
|
|
863
|
+
const body = {
|
|
864
|
+
// string
|
|
865
|
+
sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
866
|
+
} satisfies GetResourceSessionDiagnosticsRequest;
|
|
867
|
+
|
|
868
|
+
try {
|
|
869
|
+
const data = await api.getResourceSessionDiagnostics(body);
|
|
870
|
+
console.log(data);
|
|
871
|
+
} catch (error) {
|
|
872
|
+
console.error(error);
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
// Run the test
|
|
877
|
+
example().catch(console.error);
|
|
878
|
+
```
|
|
879
|
+
|
|
880
|
+
### Parameters
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
| Name | Type | Description | Notes |
|
|
884
|
+
|------------- | ------------- | ------------- | -------------|
|
|
885
|
+
| **sessionId** | `string` | | [Defaults to `undefined`] |
|
|
886
|
+
|
|
887
|
+
### Return type
|
|
888
|
+
|
|
889
|
+
[**GetResourceSessionDiagnostics**](GetResourceSessionDiagnostics.md)
|
|
890
|
+
|
|
891
|
+
### Authorization
|
|
892
|
+
|
|
893
|
+
No authorization required
|
|
894
|
+
|
|
895
|
+
### HTTP request headers
|
|
896
|
+
|
|
897
|
+
- **Content-Type**: Not defined
|
|
898
|
+
- **Accept**: `application/json`
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
### HTTP response details
|
|
902
|
+
| Status code | Description | Response headers |
|
|
903
|
+
|-------------|-------------|------------------|
|
|
904
|
+
| **200** | Resource session diagnostics | - |
|
|
905
|
+
| **404** | Resource session not found | - |
|
|
906
|
+
|
|
907
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
908
|
+
|
|
909
|
+
|
|
841
910
|
## getResourceSessionList
|
|
842
911
|
|
|
843
|
-
> GetResourceSessionList getResourceSessionList(userId, resourceId, versionId, courseId, environment, completionStatus, createdFrom, createdTo, page, pageSize)
|
|
912
|
+
> GetResourceSessionList getResourceSessionList(userId, resourceId, versionId, courseId, courseVersionId, itemId, resourceType, environment, completionStatus, gradeStatus, isCurrent, attemptNumber, createdFrom, createdTo, updatedFrom, updatedTo, hasScormErrors, sortBy, sortDirection, page, pageSize)
|
|
844
913
|
|
|
845
914
|
List resource sessions for the selected portal
|
|
846
915
|
|
|
@@ -866,15 +935,37 @@ async function example() {
|
|
|
866
935
|
versionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
867
936
|
// string (optional)
|
|
868
937
|
courseId: courseId_example,
|
|
938
|
+
// string (optional)
|
|
939
|
+
courseVersionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
940
|
+
// string (optional)
|
|
941
|
+
itemId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
942
|
+
// ResourceType (optional)
|
|
943
|
+
resourceType: ...,
|
|
869
944
|
// ResourceSessionEnvironment (optional)
|
|
870
945
|
environment: ...,
|
|
871
|
-
//
|
|
946
|
+
// 'not_attempted' | 'in_progress' | 'completed' (optional)
|
|
872
947
|
completionStatus: completionStatus_example,
|
|
948
|
+
// 'ungraded' | 'passed' | 'failed' | 'points_earned' | 'percentage_earned' | 'not_applicable' (optional)
|
|
949
|
+
gradeStatus: gradeStatus_example,
|
|
950
|
+
// boolean (optional)
|
|
951
|
+
isCurrent: true,
|
|
952
|
+
// number (optional)
|
|
953
|
+
attemptNumber: 56,
|
|
873
954
|
// number (optional)
|
|
874
955
|
createdFrom: 789,
|
|
875
956
|
// number (optional)
|
|
876
957
|
createdTo: 789,
|
|
877
958
|
// number (optional)
|
|
959
|
+
updatedFrom: 789,
|
|
960
|
+
// number (optional)
|
|
961
|
+
updatedTo: 789,
|
|
962
|
+
// boolean (optional)
|
|
963
|
+
hasScormErrors: true,
|
|
964
|
+
// 'created_at' | 'updated_at' | 'attempt_number' (optional)
|
|
965
|
+
sortBy: sortBy_example,
|
|
966
|
+
// 'asc' | 'desc' (optional)
|
|
967
|
+
sortDirection: sortDirection_example,
|
|
968
|
+
// number (optional)
|
|
878
969
|
page: 56,
|
|
879
970
|
// number (optional)
|
|
880
971
|
pageSize: 56,
|
|
@@ -901,10 +992,21 @@ example().catch(console.error);
|
|
|
901
992
|
| **resourceId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
902
993
|
| **versionId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
903
994
|
| **courseId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
995
|
+
| **courseVersionId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
996
|
+
| **itemId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
997
|
+
| **resourceType** | `ResourceType` | | [Optional] [Defaults to `undefined`] [Enum: scorm, video, audio, image, pdf, powerpoint, file, link, rich_text] |
|
|
904
998
|
| **environment** | `ResourceSessionEnvironment` | | [Optional] [Defaults to `undefined`] [Enum: live, demo] |
|
|
905
|
-
| **completionStatus** | `
|
|
999
|
+
| **completionStatus** | `not_attempted`, `in_progress`, `completed` | | [Optional] [Defaults to `undefined`] [Enum: not_attempted, in_progress, completed] |
|
|
1000
|
+
| **gradeStatus** | `ungraded`, `passed`, `failed`, `points_earned`, `percentage_earned`, `not_applicable` | | [Optional] [Defaults to `undefined`] [Enum: ungraded, passed, failed, points_earned, percentage_earned, not_applicable] |
|
|
1001
|
+
| **isCurrent** | `boolean` | | [Optional] [Defaults to `undefined`] |
|
|
1002
|
+
| **attemptNumber** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
906
1003
|
| **createdFrom** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
907
1004
|
| **createdTo** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
1005
|
+
| **updatedFrom** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
1006
|
+
| **updatedTo** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
1007
|
+
| **hasScormErrors** | `boolean` | | [Optional] [Defaults to `undefined`] |
|
|
1008
|
+
| **sortBy** | `created_at`, `updated_at`, `attempt_number` | | [Optional] [Defaults to `'updated_at'`] [Enum: created_at, updated_at, attempt_number] |
|
|
1009
|
+
| **sortDirection** | `asc`, `desc` | | [Optional] [Defaults to `'desc'`] [Enum: asc, desc] |
|
|
908
1010
|
| **page** | `number` | | [Optional] [Defaults to `1`] |
|
|
909
1011
|
| **pageSize** | `number` | | [Optional] [Defaults to `20`] |
|
|
910
1012
|
|
|
@@ -996,6 +1098,155 @@ No authorization required
|
|
|
996
1098
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
997
1099
|
|
|
998
1100
|
|
|
1101
|
+
## getResourceSessionScormApiLogs
|
|
1102
|
+
|
|
1103
|
+
> GetResourceSessionScormApiLogs getResourceSessionScormApiLogs(sessionId, method, element, errorsOnly, page, pageSize)
|
|
1104
|
+
|
|
1105
|
+
Get SCORM runtime logs for a resource session
|
|
1106
|
+
|
|
1107
|
+
### Example
|
|
1108
|
+
|
|
1109
|
+
```ts
|
|
1110
|
+
import {
|
|
1111
|
+
Configuration,
|
|
1112
|
+
PlayerApi,
|
|
1113
|
+
} from '@easyedu/js-lsm-api';
|
|
1114
|
+
import type { GetResourceSessionScormApiLogsRequest } from '@easyedu/js-lsm-api';
|
|
1115
|
+
|
|
1116
|
+
async function example() {
|
|
1117
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
1118
|
+
const api = new PlayerApi();
|
|
1119
|
+
|
|
1120
|
+
const body = {
|
|
1121
|
+
// string
|
|
1122
|
+
sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
1123
|
+
// 'Initialize' | 'GetValue' | 'SetValue' | 'Commit' | 'Terminate' (optional)
|
|
1124
|
+
method: method_example,
|
|
1125
|
+
// string (optional)
|
|
1126
|
+
element: element_example,
|
|
1127
|
+
// boolean (optional)
|
|
1128
|
+
errorsOnly: true,
|
|
1129
|
+
// number (optional)
|
|
1130
|
+
page: 56,
|
|
1131
|
+
// number (optional)
|
|
1132
|
+
pageSize: 56,
|
|
1133
|
+
} satisfies GetResourceSessionScormApiLogsRequest;
|
|
1134
|
+
|
|
1135
|
+
try {
|
|
1136
|
+
const data = await api.getResourceSessionScormApiLogs(body);
|
|
1137
|
+
console.log(data);
|
|
1138
|
+
} catch (error) {
|
|
1139
|
+
console.error(error);
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
// Run the test
|
|
1144
|
+
example().catch(console.error);
|
|
1145
|
+
```
|
|
1146
|
+
|
|
1147
|
+
### Parameters
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
| Name | Type | Description | Notes |
|
|
1151
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1152
|
+
| **sessionId** | `string` | | [Defaults to `undefined`] |
|
|
1153
|
+
| **method** | `Initialize`, `GetValue`, `SetValue`, `Commit`, `Terminate` | | [Optional] [Defaults to `undefined`] [Enum: Initialize, GetValue, SetValue, Commit, Terminate] |
|
|
1154
|
+
| **element** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1155
|
+
| **errorsOnly** | `boolean` | | [Optional] [Defaults to `false`] |
|
|
1156
|
+
| **page** | `number` | | [Optional] [Defaults to `1`] |
|
|
1157
|
+
| **pageSize** | `number` | | [Optional] [Defaults to `50`] |
|
|
1158
|
+
|
|
1159
|
+
### Return type
|
|
1160
|
+
|
|
1161
|
+
[**GetResourceSessionScormApiLogs**](GetResourceSessionScormApiLogs.md)
|
|
1162
|
+
|
|
1163
|
+
### Authorization
|
|
1164
|
+
|
|
1165
|
+
No authorization required
|
|
1166
|
+
|
|
1167
|
+
### HTTP request headers
|
|
1168
|
+
|
|
1169
|
+
- **Content-Type**: Not defined
|
|
1170
|
+
- **Accept**: `application/json`
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
### HTTP response details
|
|
1174
|
+
| Status code | Description | Response headers |
|
|
1175
|
+
|-------------|-------------|------------------|
|
|
1176
|
+
| **200** | Resource session SCORM runtime logs | - |
|
|
1177
|
+
| **400** | Resource session is not SCORM | - |
|
|
1178
|
+
| **404** | Resource session not found | - |
|
|
1179
|
+
|
|
1180
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
## getResourceSessionScormData
|
|
1184
|
+
|
|
1185
|
+
> GetResourceSessionScormData getResourceSessionScormData(sessionId)
|
|
1186
|
+
|
|
1187
|
+
Get SCORM CMI data for a resource session
|
|
1188
|
+
|
|
1189
|
+
### Example
|
|
1190
|
+
|
|
1191
|
+
```ts
|
|
1192
|
+
import {
|
|
1193
|
+
Configuration,
|
|
1194
|
+
PlayerApi,
|
|
1195
|
+
} from '@easyedu/js-lsm-api';
|
|
1196
|
+
import type { GetResourceSessionScormDataRequest } from '@easyedu/js-lsm-api';
|
|
1197
|
+
|
|
1198
|
+
async function example() {
|
|
1199
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
1200
|
+
const api = new PlayerApi();
|
|
1201
|
+
|
|
1202
|
+
const body = {
|
|
1203
|
+
// string
|
|
1204
|
+
sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
1205
|
+
} satisfies GetResourceSessionScormDataRequest;
|
|
1206
|
+
|
|
1207
|
+
try {
|
|
1208
|
+
const data = await api.getResourceSessionScormData(body);
|
|
1209
|
+
console.log(data);
|
|
1210
|
+
} catch (error) {
|
|
1211
|
+
console.error(error);
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
// Run the test
|
|
1216
|
+
example().catch(console.error);
|
|
1217
|
+
```
|
|
1218
|
+
|
|
1219
|
+
### Parameters
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
| Name | Type | Description | Notes |
|
|
1223
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1224
|
+
| **sessionId** | `string` | | [Defaults to `undefined`] |
|
|
1225
|
+
|
|
1226
|
+
### Return type
|
|
1227
|
+
|
|
1228
|
+
[**GetResourceSessionScormData**](GetResourceSessionScormData.md)
|
|
1229
|
+
|
|
1230
|
+
### Authorization
|
|
1231
|
+
|
|
1232
|
+
No authorization required
|
|
1233
|
+
|
|
1234
|
+
### HTTP request headers
|
|
1235
|
+
|
|
1236
|
+
- **Content-Type**: Not defined
|
|
1237
|
+
- **Accept**: `application/json`
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
### HTTP response details
|
|
1241
|
+
| Status code | Description | Response headers |
|
|
1242
|
+
|-------------|-------------|------------------|
|
|
1243
|
+
| **200** | Resource session SCORM data | - |
|
|
1244
|
+
| **400** | Resource session is not SCORM | - |
|
|
1245
|
+
| **404** | Resource session not found | - |
|
|
1246
|
+
|
|
1247
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1248
|
+
|
|
1249
|
+
|
|
999
1250
|
## getScormAsset
|
|
1000
1251
|
|
|
1001
1252
|
> getScormAsset(contentId, assetPath)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
# ResourceSessionScormApiLogItem
|
|
3
|
+
|
|
4
|
+
A recorded SCORM runtime call for a resource session.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | number
|
|
11
|
+
`createdAt` | number
|
|
12
|
+
`method` | string
|
|
13
|
+
`element` | string
|
|
14
|
+
`value` | string
|
|
15
|
+
`valueTruncated` | boolean
|
|
16
|
+
`errorCode` | string
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { ResourceSessionScormApiLogItem } from '@easyedu/js-lsm-api'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"id": null,
|
|
26
|
+
"createdAt": null,
|
|
27
|
+
"method": null,
|
|
28
|
+
"element": null,
|
|
29
|
+
"value": null,
|
|
30
|
+
"valueTruncated": null,
|
|
31
|
+
"errorCode": null,
|
|
32
|
+
} satisfies ResourceSessionScormApiLogItem
|
|
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 ResourceSessionScormApiLogItem
|
|
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
|
+
|