@easyedu/js-lsm-api 1.98.0 → 1.100.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +21 -2
  3. package/dist/apis/ContentLibraryQuizApi.d.ts +17 -0
  4. package/dist/apis/ContentLibraryQuizApi.js +45 -0
  5. package/dist/apis/CourseApi.d.ts +60 -0
  6. package/dist/apis/CourseApi.js +167 -0
  7. package/dist/apis/PlayerApi.d.ts +74 -0
  8. package/dist/apis/PlayerApi.js +193 -0
  9. package/dist/esm/apis/ContentLibraryQuizApi.d.ts +17 -0
  10. package/dist/esm/apis/ContentLibraryQuizApi.js +45 -0
  11. package/dist/esm/apis/CourseApi.d.ts +60 -0
  12. package/dist/esm/apis/CourseApi.js +167 -0
  13. package/dist/esm/apis/PlayerApi.d.ts +74 -0
  14. package/dist/esm/apis/PlayerApi.js +193 -0
  15. package/dist/esm/models/GetAttemptAllowance.d.ts +80 -0
  16. package/dist/esm/models/GetAttemptAllowance.js +75 -0
  17. package/dist/esm/models/GetCourseVersionItemSession.d.ts +6 -0
  18. package/dist/esm/models/GetCourseVersionItemSession.js +4 -0
  19. package/dist/esm/models/GetLibraryQuizSession.d.ts +6 -0
  20. package/dist/esm/models/GetLibraryQuizSession.js +4 -0
  21. package/dist/esm/models/GetResourceSession.d.ts +6 -0
  22. package/dist/esm/models/GetResourceSession.js +4 -0
  23. package/dist/esm/models/GetResourceSessionActivity.d.ts +125 -0
  24. package/dist/esm/models/GetResourceSessionActivity.js +97 -0
  25. package/dist/esm/models/GetResourceSessionActivityEvent.d.ts +62 -0
  26. package/dist/esm/models/GetResourceSessionActivityEvent.js +61 -0
  27. package/dist/esm/models/GetResourceSessionActivityEventList.d.ts +33 -0
  28. package/dist/esm/models/GetResourceSessionActivityEventList.js +44 -0
  29. package/dist/esm/models/GetResourceSessionActivityList.d.ts +33 -0
  30. package/dist/esm/models/GetResourceSessionActivityList.js +44 -0
  31. package/dist/esm/models/PostClearSessions.d.ts +32 -0
  32. package/dist/esm/models/PostClearSessions.js +43 -0
  33. package/dist/esm/models/PostClearSessionsResponse.d.ts +44 -0
  34. package/dist/esm/models/PostClearSessionsResponse.js +51 -0
  35. package/dist/esm/models/PostResourceSessionActivityEvent.d.ts +62 -0
  36. package/dist/esm/models/PostResourceSessionActivityEvent.js +66 -0
  37. package/dist/esm/models/PutAttemptAllowance.d.ts +38 -0
  38. package/dist/esm/models/PutAttemptAllowance.js +47 -0
  39. package/dist/esm/models/PutLibraryQuizSessionOverride.d.ts +57 -0
  40. package/dist/esm/models/PutLibraryQuizSessionOverride.js +55 -0
  41. package/dist/esm/models/PutResourceSessionOverride.d.ts +69 -0
  42. package/dist/esm/models/PutResourceSessionOverride.js +66 -0
  43. package/dist/esm/models/index.d.ts +11 -0
  44. package/dist/esm/models/index.js +11 -0
  45. package/dist/models/GetAttemptAllowance.d.ts +80 -0
  46. package/dist/models/GetAttemptAllowance.js +82 -0
  47. package/dist/models/GetCourseVersionItemSession.d.ts +6 -0
  48. package/dist/models/GetCourseVersionItemSession.js +4 -0
  49. package/dist/models/GetLibraryQuizSession.d.ts +6 -0
  50. package/dist/models/GetLibraryQuizSession.js +4 -0
  51. package/dist/models/GetResourceSession.d.ts +6 -0
  52. package/dist/models/GetResourceSession.js +4 -0
  53. package/dist/models/GetResourceSessionActivity.d.ts +125 -0
  54. package/dist/models/GetResourceSessionActivity.js +105 -0
  55. package/dist/models/GetResourceSessionActivityEvent.d.ts +62 -0
  56. package/dist/models/GetResourceSessionActivityEvent.js +68 -0
  57. package/dist/models/GetResourceSessionActivityEventList.d.ts +33 -0
  58. package/dist/models/GetResourceSessionActivityEventList.js +51 -0
  59. package/dist/models/GetResourceSessionActivityList.d.ts +33 -0
  60. package/dist/models/GetResourceSessionActivityList.js +51 -0
  61. package/dist/models/PostClearSessions.d.ts +32 -0
  62. package/dist/models/PostClearSessions.js +50 -0
  63. package/dist/models/PostClearSessionsResponse.d.ts +44 -0
  64. package/dist/models/PostClearSessionsResponse.js +58 -0
  65. package/dist/models/PostResourceSessionActivityEvent.d.ts +62 -0
  66. package/dist/models/PostResourceSessionActivityEvent.js +74 -0
  67. package/dist/models/PutAttemptAllowance.d.ts +38 -0
  68. package/dist/models/PutAttemptAllowance.js +54 -0
  69. package/dist/models/PutLibraryQuizSessionOverride.d.ts +57 -0
  70. package/dist/models/PutLibraryQuizSessionOverride.js +63 -0
  71. package/dist/models/PutResourceSessionOverride.d.ts +69 -0
  72. package/dist/models/PutResourceSessionOverride.js +74 -0
  73. package/dist/models/index.d.ts +11 -0
  74. package/dist/models/index.js +11 -0
  75. package/docs/ContentLibraryQuizApi.md +73 -2
  76. package/docs/CourseApi.md +236 -0
  77. package/docs/GetAttemptAllowance.md +51 -0
  78. package/docs/GetCourseVersionItemSession.md +2 -0
  79. package/docs/GetLibraryQuizSession.md +2 -0
  80. package/docs/GetResourceSession.md +2 -0
  81. package/docs/GetResourceSessionActivity.md +63 -0
  82. package/docs/GetResourceSessionActivityEvent.md +45 -0
  83. package/docs/GetResourceSessionActivityEventList.md +35 -0
  84. package/docs/GetResourceSessionActivityList.md +35 -0
  85. package/docs/PlayerApi.md +302 -6
  86. package/docs/PostClearSessions.md +34 -0
  87. package/docs/PostClearSessionsResponse.md +38 -0
  88. package/docs/PostResourceSessionActivityEvent.md +39 -0
  89. package/docs/PutAttemptAllowance.md +36 -0
  90. package/docs/PutLibraryQuizSessionOverride.md +41 -0
  91. package/docs/PutResourceSessionOverride.md +41 -0
  92. package/package.json +1 -1
  93. package/src/apis/ContentLibraryQuizApi.ts +65 -0
  94. package/src/apis/CourseApi.ts +270 -0
  95. package/src/apis/PlayerApi.ts +282 -0
  96. package/src/models/GetAttemptAllowance.ts +138 -0
  97. package/src/models/GetCourseVersionItemSession.ts +9 -0
  98. package/src/models/GetLibraryQuizSession.ts +9 -0
  99. package/src/models/GetResourceSession.ts +9 -0
  100. package/src/models/GetResourceSessionActivity.ts +199 -0
  101. package/src/models/GetResourceSessionActivityEvent.ts +110 -0
  102. package/src/models/GetResourceSessionActivityEventList.ts +74 -0
  103. package/src/models/GetResourceSessionActivityList.ts +74 -0
  104. package/src/models/PostClearSessions.ts +66 -0
  105. package/src/models/PostClearSessionsResponse.ts +84 -0
  106. package/src/models/PostResourceSessionActivityEvent.ts +104 -0
  107. package/src/models/PutAttemptAllowance.ts +75 -0
  108. package/src/models/PutLibraryQuizSessionOverride.ts +100 -0
  109. package/src/models/PutResourceSessionOverride.ts +113 -0
  110. package/src/models/index.ts +11 -0
@@ -0,0 +1,35 @@
1
+
2
+ # GetResourceSessionActivityList
3
+
4
+ Activities belonging to one resource-session attempt.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `items` | [Array<GetResourceSessionActivity>](GetResourceSessionActivity.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { GetResourceSessionActivityList } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "items": null,
20
+ } satisfies GetResourceSessionActivityList
21
+
22
+ console.log(example)
23
+
24
+ // Convert the instance to a JSON string
25
+ const exampleJSON: string = JSON.stringify(example)
26
+ console.log(exampleJSON)
27
+
28
+ // Parse the JSON string back to an object
29
+ const exampleParsed = JSON.parse(exampleJSON) as GetResourceSessionActivityList
30
+ console.log(exampleParsed)
31
+ ```
32
+
33
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
34
+
35
+
package/docs/PlayerApi.md CHANGED
@@ -9,6 +9,8 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
9
9
  | [**getLibraryQuizSessionPlayer**](PlayerApi.md#getlibraryquizsessionplayer) | **GET** /quiz/sessions/{sessionId}/player | Serve the player for a reusable quiz session |
10
10
  | [**getResourceScormValue**](PlayerApi.md#getresourcescormvalue) | **GET** /resource/sessions/{sessionId}/get-value | Read a CMI value from a reusable SCORM resource session |
11
11
  | [**getResourceSession**](PlayerApi.md#getresourcesession) | **GET** /resource/sessions/{sessionId} | Get a resource session |
12
+ | [**getResourceSessionActivities**](PlayerApi.md#getresourcesessionactivities) | **GET** /resource/sessions/{sessionId}/activities | List tracked activities for a resource session |
13
+ | [**getResourceSessionActivityEvents**](PlayerApi.md#getresourcesessionactivityevents) | **GET** /resource/sessions/{sessionId}/activity-events | List recorded learner activity events for a resource session |
12
14
  | [**getResourceSessionAsset**](PlayerApi.md#getresourcesessionasset) | **GET** /resource/sessions/{sessionId}/asset/{assetPath} | Stream an asset pinned to a resource session |
13
15
  | [**getResourceSessionDiagnostics**](PlayerApi.md#getresourcesessiondiagnostics) | **GET** /resource/sessions/{sessionId}/diagnostics | Get administrator diagnostics for a resource session |
14
16
  | [**getResourceSessionList**](PlayerApi.md#getresourcesessionlist) | **GET** /resource/sessions | List resource sessions for the selected portal |
@@ -16,7 +18,9 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
16
18
  | [**getResourceSessionScormApiLogs**](PlayerApi.md#getresourcesessionscormapilogs) | **GET** /resource/sessions/{sessionId}/api-logs | Get SCORM runtime logs for a resource session |
17
19
  | [**getResourceSessionScormData**](PlayerApi.md#getresourcesessionscormdata) | **GET** /resource/sessions/{sessionId}/scorm-data | Get SCORM CMI data for a resource session |
18
20
  | [**initializeResourceScormSession**](PlayerApi.md#initializeresourcescormsession) | **POST** /resource/sessions/{sessionId}/initialize | Initialize a reusable SCORM resource session |
21
+ | [**postResourceSessionActivityEvent**](PlayerApi.md#postresourcesessionactivityevent) | **POST** /resource/sessions/{sessionId}/activities/{activityId}/events | Record learner activity and update active time |
19
22
  | [**postResourceSessionComplete**](PlayerApi.md#postresourcesessioncomplete) | **POST** /resource/sessions/{sessionId}/complete | Complete a non-SCORM resource session |
23
+ | [**putResourceSessionOverride**](PlayerApi.md#putresourcesessionoverride) | **PUT** /resource/sessions/{sessionId}/override | Override a learner\'s live resource-session progress |
20
24
  | [**setResourceScormValue**](PlayerApi.md#setresourcescormvalue) | **POST** /resource/sessions/{sessionId}/set-value | Store a CMI value in a reusable SCORM resource session |
21
25
  | [**terminateResourceScormSession**](PlayerApi.md#terminateresourcescormsession) | **POST** /resource/sessions/{sessionId}/terminate | Terminate a reusable SCORM resource session |
22
26
 
@@ -24,7 +28,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
24
28
 
25
29
  ## commitResourceScormSession
26
30
 
27
- > commitResourceScormSession(sessionId)
31
+ > commitResourceScormSession(sessionId, activityId)
28
32
 
29
33
  Commit a reusable SCORM resource session
30
34
 
@@ -44,6 +48,8 @@ async function example() {
44
48
  const body = {
45
49
  // string
46
50
  sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
51
+ // string (optional)
52
+ activityId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
47
53
  } satisfies CommitResourceScormSessionRequest;
48
54
 
49
55
  try {
@@ -64,6 +70,7 @@ example().catch(console.error);
64
70
  | Name | Type | Description | Notes |
65
71
  |------------- | ------------- | ------------- | -------------|
66
72
  | **sessionId** | `string` | | [Defaults to `undefined`] |
73
+ | **activityId** | `string` | | [Optional] [Defaults to `undefined`] |
67
74
 
68
75
  ### Return type
69
76
 
@@ -226,7 +233,7 @@ No authorization required
226
233
 
227
234
  ## getResourceScormValue
228
235
 
229
- > ScormGetValueResponse getResourceScormValue(sessionId, key)
236
+ > ScormGetValueResponse getResourceScormValue(sessionId, key, activityId)
230
237
 
231
238
  Read a CMI value from a reusable SCORM resource session
232
239
 
@@ -248,6 +255,8 @@ async function example() {
248
255
  sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
249
256
  // string
250
257
  key: key_example,
258
+ // string (optional)
259
+ activityId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
251
260
  } satisfies GetResourceScormValueRequest;
252
261
 
253
262
  try {
@@ -269,6 +278,7 @@ example().catch(console.error);
269
278
  |------------- | ------------- | ------------- | -------------|
270
279
  | **sessionId** | `string` | | [Defaults to `undefined`] |
271
280
  | **key** | `string` | | [Defaults to `undefined`] |
281
+ | **activityId** | `string` | | [Optional] [Defaults to `undefined`] |
272
282
 
273
283
  ### Return type
274
284
 
@@ -359,6 +369,138 @@ No authorization required
359
369
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
360
370
 
361
371
 
372
+ ## getResourceSessionActivities
373
+
374
+ > GetResourceSessionActivityList getResourceSessionActivities(sessionId)
375
+
376
+ List tracked activities for a resource session
377
+
378
+ ### Example
379
+
380
+ ```ts
381
+ import {
382
+ Configuration,
383
+ PlayerApi,
384
+ } from '@easyedu/js-lsm-api';
385
+ import type { GetResourceSessionActivitiesRequest } from '@easyedu/js-lsm-api';
386
+
387
+ async function example() {
388
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
389
+ const api = new PlayerApi();
390
+
391
+ const body = {
392
+ // string
393
+ sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
394
+ } satisfies GetResourceSessionActivitiesRequest;
395
+
396
+ try {
397
+ const data = await api.getResourceSessionActivities(body);
398
+ console.log(data);
399
+ } catch (error) {
400
+ console.error(error);
401
+ }
402
+ }
403
+
404
+ // Run the test
405
+ example().catch(console.error);
406
+ ```
407
+
408
+ ### Parameters
409
+
410
+
411
+ | Name | Type | Description | Notes |
412
+ |------------- | ------------- | ------------- | -------------|
413
+ | **sessionId** | `string` | | [Defaults to `undefined`] |
414
+
415
+ ### Return type
416
+
417
+ [**GetResourceSessionActivityList**](GetResourceSessionActivityList.md)
418
+
419
+ ### Authorization
420
+
421
+ No authorization required
422
+
423
+ ### HTTP request headers
424
+
425
+ - **Content-Type**: Not defined
426
+ - **Accept**: `application/json`
427
+
428
+
429
+ ### HTTP response details
430
+ | Status code | Description | Response headers |
431
+ |-------------|-------------|------------------|
432
+ | **200** | Resource-session activities | - |
433
+ | **404** | Resource session not found | - |
434
+
435
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
436
+
437
+
438
+ ## getResourceSessionActivityEvents
439
+
440
+ > GetResourceSessionActivityEventList getResourceSessionActivityEvents(sessionId)
441
+
442
+ List recorded learner activity events for a resource session
443
+
444
+ ### Example
445
+
446
+ ```ts
447
+ import {
448
+ Configuration,
449
+ PlayerApi,
450
+ } from '@easyedu/js-lsm-api';
451
+ import type { GetResourceSessionActivityEventsRequest } from '@easyedu/js-lsm-api';
452
+
453
+ async function example() {
454
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
455
+ const api = new PlayerApi();
456
+
457
+ const body = {
458
+ // string
459
+ sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
460
+ } satisfies GetResourceSessionActivityEventsRequest;
461
+
462
+ try {
463
+ const data = await api.getResourceSessionActivityEvents(body);
464
+ console.log(data);
465
+ } catch (error) {
466
+ console.error(error);
467
+ }
468
+ }
469
+
470
+ // Run the test
471
+ example().catch(console.error);
472
+ ```
473
+
474
+ ### Parameters
475
+
476
+
477
+ | Name | Type | Description | Notes |
478
+ |------------- | ------------- | ------------- | -------------|
479
+ | **sessionId** | `string` | | [Defaults to `undefined`] |
480
+
481
+ ### Return type
482
+
483
+ [**GetResourceSessionActivityEventList**](GetResourceSessionActivityEventList.md)
484
+
485
+ ### Authorization
486
+
487
+ No authorization required
488
+
489
+ ### HTTP request headers
490
+
491
+ - **Content-Type**: Not defined
492
+ - **Accept**: `application/json`
493
+
494
+
495
+ ### HTTP response details
496
+ | Status code | Description | Response headers |
497
+ |-------------|-------------|------------------|
498
+ | **200** | Resource-session activity events | - |
499
+ | **404** | Resource session not found | - |
500
+
501
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
502
+
503
+
362
504
  ## getResourceSessionAsset
363
505
 
364
506
  > Blob getResourceSessionAsset(sessionId, assetPath)
@@ -768,7 +910,7 @@ No authorization required
768
910
 
769
911
  ## getResourceSessionScormData
770
912
 
771
- > GetResourceSessionScormData getResourceSessionScormData(sessionId)
913
+ > GetResourceSessionScormData getResourceSessionScormData(sessionId, activityId)
772
914
 
773
915
  Get SCORM CMI data for a resource session
774
916
 
@@ -788,6 +930,8 @@ async function example() {
788
930
  const body = {
789
931
  // string
790
932
  sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
933
+ // string (optional)
934
+ activityId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
791
935
  } satisfies GetResourceSessionScormDataRequest;
792
936
 
793
937
  try {
@@ -808,6 +952,7 @@ example().catch(console.error);
808
952
  | Name | Type | Description | Notes |
809
953
  |------------- | ------------- | ------------- | -------------|
810
954
  | **sessionId** | `string` | | [Defaults to `undefined`] |
955
+ | **activityId** | `string` | | [Optional] [Defaults to `undefined`] |
811
956
 
812
957
  ### Return type
813
958
 
@@ -835,7 +980,7 @@ No authorization required
835
980
 
836
981
  ## initializeResourceScormSession
837
982
 
838
- > initializeResourceScormSession(sessionId)
983
+ > initializeResourceScormSession(sessionId, activityId)
839
984
 
840
985
  Initialize a reusable SCORM resource session
841
986
 
@@ -855,6 +1000,8 @@ async function example() {
855
1000
  const body = {
856
1001
  // string
857
1002
  sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1003
+ // string (optional)
1004
+ activityId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
858
1005
  } satisfies InitializeResourceScormSessionRequest;
859
1006
 
860
1007
  try {
@@ -875,6 +1022,7 @@ example().catch(console.error);
875
1022
  | Name | Type | Description | Notes |
876
1023
  |------------- | ------------- | ------------- | -------------|
877
1024
  | **sessionId** | `string` | | [Defaults to `undefined`] |
1025
+ | **activityId** | `string` | | [Optional] [Defaults to `undefined`] |
878
1026
 
879
1027
  ### Return type
880
1028
 
@@ -899,6 +1047,78 @@ No authorization required
899
1047
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
900
1048
 
901
1049
 
1050
+ ## postResourceSessionActivityEvent
1051
+
1052
+ > GetResourceSessionActivity postResourceSessionActivityEvent(sessionId, activityId, postResourceSessionActivityEvent)
1053
+
1054
+ Record learner activity and update active time
1055
+
1056
+ ### Example
1057
+
1058
+ ```ts
1059
+ import {
1060
+ Configuration,
1061
+ PlayerApi,
1062
+ } from '@easyedu/js-lsm-api';
1063
+ import type { PostResourceSessionActivityEventRequest } from '@easyedu/js-lsm-api';
1064
+
1065
+ async function example() {
1066
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1067
+ const api = new PlayerApi();
1068
+
1069
+ const body = {
1070
+ // string
1071
+ sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1072
+ // string
1073
+ activityId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1074
+ // PostResourceSessionActivityEvent
1075
+ postResourceSessionActivityEvent: ...,
1076
+ } satisfies PostResourceSessionActivityEventRequest;
1077
+
1078
+ try {
1079
+ const data = await api.postResourceSessionActivityEvent(body);
1080
+ console.log(data);
1081
+ } catch (error) {
1082
+ console.error(error);
1083
+ }
1084
+ }
1085
+
1086
+ // Run the test
1087
+ example().catch(console.error);
1088
+ ```
1089
+
1090
+ ### Parameters
1091
+
1092
+
1093
+ | Name | Type | Description | Notes |
1094
+ |------------- | ------------- | ------------- | -------------|
1095
+ | **sessionId** | `string` | | [Defaults to `undefined`] |
1096
+ | **activityId** | `string` | | [Defaults to `undefined`] |
1097
+ | **postResourceSessionActivityEvent** | [PostResourceSessionActivityEvent](PostResourceSessionActivityEvent.md) | | |
1098
+
1099
+ ### Return type
1100
+
1101
+ [**GetResourceSessionActivity**](GetResourceSessionActivity.md)
1102
+
1103
+ ### Authorization
1104
+
1105
+ No authorization required
1106
+
1107
+ ### HTTP request headers
1108
+
1109
+ - **Content-Type**: `application/json`
1110
+ - **Accept**: `application/json`
1111
+
1112
+
1113
+ ### HTTP response details
1114
+ | Status code | Description | Response headers |
1115
+ |-------------|-------------|------------------|
1116
+ | **200** | Updated resource-session activity | - |
1117
+ | **404** | Resource session or activity not found | - |
1118
+
1119
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1120
+
1121
+
902
1122
  ## postResourceSessionComplete
903
1123
 
904
1124
  > GetResourceSession postResourceSessionComplete(sessionId)
@@ -965,9 +1185,79 @@ No authorization required
965
1185
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
966
1186
 
967
1187
 
1188
+ ## putResourceSessionOverride
1189
+
1190
+ > GetResourceSession putResourceSessionOverride(sessionId, putResourceSessionOverride)
1191
+
1192
+ Override a learner\'s live resource-session progress
1193
+
1194
+ ### Example
1195
+
1196
+ ```ts
1197
+ import {
1198
+ Configuration,
1199
+ PlayerApi,
1200
+ } from '@easyedu/js-lsm-api';
1201
+ import type { PutResourceSessionOverrideRequest } from '@easyedu/js-lsm-api';
1202
+
1203
+ async function example() {
1204
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1205
+ const api = new PlayerApi();
1206
+
1207
+ const body = {
1208
+ // string
1209
+ sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1210
+ // PutResourceSessionOverride
1211
+ putResourceSessionOverride: ...,
1212
+ } satisfies PutResourceSessionOverrideRequest;
1213
+
1214
+ try {
1215
+ const data = await api.putResourceSessionOverride(body);
1216
+ console.log(data);
1217
+ } catch (error) {
1218
+ console.error(error);
1219
+ }
1220
+ }
1221
+
1222
+ // Run the test
1223
+ example().catch(console.error);
1224
+ ```
1225
+
1226
+ ### Parameters
1227
+
1228
+
1229
+ | Name | Type | Description | Notes |
1230
+ |------------- | ------------- | ------------- | -------------|
1231
+ | **sessionId** | `string` | | [Defaults to `undefined`] |
1232
+ | **putResourceSessionOverride** | [PutResourceSessionOverride](PutResourceSessionOverride.md) | | |
1233
+
1234
+ ### Return type
1235
+
1236
+ [**GetResourceSession**](GetResourceSession.md)
1237
+
1238
+ ### Authorization
1239
+
1240
+ No authorization required
1241
+
1242
+ ### HTTP request headers
1243
+
1244
+ - **Content-Type**: `application/json`
1245
+ - **Accept**: `application/json`
1246
+
1247
+
1248
+ ### HTTP response details
1249
+ | Status code | Description | Response headers |
1250
+ |-------------|-------------|------------------|
1251
+ | **200** | Updated resource session | - |
1252
+ | **400** | Invalid override values | - |
1253
+ | **404** | Resource session not found | - |
1254
+
1255
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1256
+
1257
+
968
1258
  ## setResourceScormValue
969
1259
 
970
- > ScormSetValueResponse setResourceScormValue(sessionId, scormSetValueRequest)
1260
+ > ScormSetValueResponse setResourceScormValue(sessionId, scormSetValueRequest, activityId)
971
1261
 
972
1262
  Store a CMI value in a reusable SCORM resource session
973
1263
 
@@ -989,6 +1279,8 @@ async function example() {
989
1279
  sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
990
1280
  // ScormSetValueRequest
991
1281
  scormSetValueRequest: ...,
1282
+ // string (optional)
1283
+ activityId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
992
1284
  } satisfies SetResourceScormValueRequest;
993
1285
 
994
1286
  try {
@@ -1010,6 +1302,7 @@ example().catch(console.error);
1010
1302
  |------------- | ------------- | ------------- | -------------|
1011
1303
  | **sessionId** | `string` | | [Defaults to `undefined`] |
1012
1304
  | **scormSetValueRequest** | [ScormSetValueRequest](ScormSetValueRequest.md) | | |
1305
+ | **activityId** | `string` | | [Optional] [Defaults to `undefined`] |
1013
1306
 
1014
1307
  ### Return type
1015
1308
 
@@ -1036,7 +1329,7 @@ No authorization required
1036
1329
 
1037
1330
  ## terminateResourceScormSession
1038
1331
 
1039
- > terminateResourceScormSession(sessionId)
1332
+ > terminateResourceScormSession(sessionId, activityId)
1040
1333
 
1041
1334
  Terminate a reusable SCORM resource session
1042
1335
 
@@ -1056,6 +1349,8 @@ async function example() {
1056
1349
  const body = {
1057
1350
  // string
1058
1351
  sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1352
+ // string (optional)
1353
+ activityId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1059
1354
  } satisfies TerminateResourceScormSessionRequest;
1060
1355
 
1061
1356
  try {
@@ -1076,6 +1371,7 @@ example().catch(console.error);
1076
1371
  | Name | Type | Description | Notes |
1077
1372
  |------------- | ------------- | ------------- | -------------|
1078
1373
  | **sessionId** | `string` | | [Defaults to `undefined`] |
1374
+ | **activityId** | `string` | | [Optional] [Defaults to `undefined`] |
1079
1375
 
1080
1376
  ### Return type
1081
1377
 
@@ -0,0 +1,34 @@
1
+
2
+ # PostClearSessions
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `reason` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { PostClearSessions } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "reason": null,
19
+ } satisfies PostClearSessions
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 PostClearSessions
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,38 @@
1
+
2
+ # PostClearSessionsResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `resourceSessionsDeleted` | number
10
+ `quizSessionsDeleted` | number
11
+ `totalSessionsDeleted` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { PostClearSessionsResponse } from '@easyedu/js-lsm-api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "resourceSessionsDeleted": null,
21
+ "quizSessionsDeleted": null,
22
+ "totalSessionsDeleted": null,
23
+ } satisfies PostClearSessionsResponse
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as PostClearSessionsResponse
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,39 @@
1
+
2
+ # PostResourceSessionActivityEvent
3
+
4
+ A learner activity signal. Timing is calculated from server receipt times.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `eventId` | string
11
+ `eventType` | string
12
+ `positionSeconds` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { PostResourceSessionActivityEvent } from '@easyedu/js-lsm-api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "eventId": null,
22
+ "eventType": null,
23
+ "positionSeconds": null,
24
+ } satisfies PostResourceSessionActivityEvent
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as PostResourceSessionActivityEvent
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
@@ -0,0 +1,36 @@
1
+
2
+ # PutAttemptAllowance
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `additionalAttempts` | number
10
+ `reason` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PutAttemptAllowance } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "additionalAttempts": null,
20
+ "reason": null,
21
+ } satisfies PutAttemptAllowance
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 PutAttemptAllowance
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,41 @@
1
+
2
+ # PutLibraryQuizSessionOverride
3
+
4
+ Instructor-entered progress values for an existing live quiz session.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `status` | string
11
+ `scorePercentage` | number
12
+ `passed` | boolean
13
+ `reason` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { PutLibraryQuizSessionOverride } from '@easyedu/js-lsm-api'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "status": null,
23
+ "scorePercentage": null,
24
+ "passed": null,
25
+ "reason": null,
26
+ } satisfies PutLibraryQuizSessionOverride
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 PutLibraryQuizSessionOverride
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
+