@easyedu/js-lsm-api 1.145.0 → 1.147.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 (68) hide show
  1. package/.openapi-generator/FILES +2 -10
  2. package/README.md +5 -11
  3. package/dist/apis/ContentLibraryApi.d.ts +0 -15
  4. package/dist/apis/ContentLibraryApi.js +0 -38
  5. package/dist/apis/LRSApi.d.ts +28 -0
  6. package/dist/apis/LRSApi.js +76 -0
  7. package/dist/apis/PlayerApi.d.ts +0 -52
  8. package/dist/apis/PlayerApi.js +0 -131
  9. package/dist/esm/apis/ContentLibraryApi.d.ts +0 -15
  10. package/dist/esm/apis/ContentLibraryApi.js +0 -38
  11. package/dist/esm/apis/LRSApi.d.ts +28 -0
  12. package/dist/esm/apis/LRSApi.js +76 -0
  13. package/dist/esm/apis/PlayerApi.d.ts +0 -52
  14. package/dist/esm/apis/PlayerApi.js +0 -131
  15. package/dist/esm/models/LrsRecordingSettings.d.ts +50 -0
  16. package/dist/esm/models/LrsRecordingSettings.js +55 -0
  17. package/dist/esm/models/ResourceType.d.ts +0 -1
  18. package/dist/esm/models/ResourceType.js +1 -2
  19. package/dist/esm/models/index.d.ts +1 -5
  20. package/dist/esm/models/index.js +1 -5
  21. package/dist/models/LrsRecordingSettings.d.ts +50 -0
  22. package/dist/models/LrsRecordingSettings.js +62 -0
  23. package/dist/models/ResourceType.d.ts +0 -1
  24. package/dist/models/ResourceType.js +1 -2
  25. package/dist/models/index.d.ts +1 -5
  26. package/dist/models/index.js +1 -5
  27. package/docs/ContentLibraryApi.md +3 -64
  28. package/docs/LRSApi.md +130 -4
  29. package/docs/LrsRecordingSettings.md +41 -0
  30. package/docs/PlayerApi.md +1 -213
  31. package/package.json +1 -1
  32. package/publish.log +2 -2
  33. package/src/apis/ContentLibraryApi.ts +0 -44
  34. package/src/apis/LRSApi.ts +93 -0
  35. package/src/apis/PlayerApi.ts +0 -185
  36. package/src/models/LrsRecordingSettings.ts +93 -0
  37. package/src/models/ResourceType.ts +1 -2
  38. package/src/models/index.ts +1 -5
  39. package/dist/esm/models/GetResourceTypeList.d.ts +0 -33
  40. package/dist/esm/models/GetResourceTypeList.js +0 -44
  41. package/dist/esm/models/H5pState.d.ts +0 -32
  42. package/dist/esm/models/H5pState.js +0 -43
  43. package/dist/esm/models/H5pStatementResult.d.ts +0 -44
  44. package/dist/esm/models/H5pStatementResult.js +0 -49
  45. package/dist/esm/models/PostH5pStatement.d.ts +0 -40
  46. package/dist/esm/models/PostH5pStatement.js +0 -47
  47. package/dist/esm/models/ResourceTypeAvailability.d.ts +0 -39
  48. package/dist/esm/models/ResourceTypeAvailability.js +0 -48
  49. package/dist/models/GetResourceTypeList.d.ts +0 -33
  50. package/dist/models/GetResourceTypeList.js +0 -51
  51. package/dist/models/H5pState.d.ts +0 -32
  52. package/dist/models/H5pState.js +0 -50
  53. package/dist/models/H5pStatementResult.d.ts +0 -44
  54. package/dist/models/H5pStatementResult.js +0 -56
  55. package/dist/models/PostH5pStatement.d.ts +0 -40
  56. package/dist/models/PostH5pStatement.js +0 -54
  57. package/dist/models/ResourceTypeAvailability.d.ts +0 -39
  58. package/dist/models/ResourceTypeAvailability.js +0 -55
  59. package/docs/GetResourceTypeList.md +0 -35
  60. package/docs/H5pState.md +0 -35
  61. package/docs/H5pStatementResult.md +0 -39
  62. package/docs/PostH5pStatement.md +0 -37
  63. package/docs/ResourceTypeAvailability.md +0 -37
  64. package/src/models/GetResourceTypeList.ts +0 -74
  65. package/src/models/H5pState.ts +0 -66
  66. package/src/models/H5pStatementResult.ts +0 -83
  67. package/src/models/PostH5pStatement.ts +0 -75
  68. package/src/models/ResourceTypeAvailability.ts +0 -85
@@ -174,7 +174,6 @@ docs/GetResourceSessionList.md
174
174
  docs/GetResourceSessionScormApiLogs.md
175
175
  docs/GetResourceSessionScormData.md
176
176
  docs/GetResourceSessionScormDataActivity.md
177
- docs/GetResourceTypeList.md
178
177
  docs/GetResourceUsage.md
179
178
  docs/GetResourceUsageCoursesInner.md
180
179
  docs/GetResourceVersionUpload.md
@@ -203,8 +202,6 @@ docs/GetZapierMe.md
203
202
  docs/GetZapierSetup.md
204
203
  docs/GetZapierShopifyCourseMappings.md
205
204
  docs/GetZapierUsers.md
206
- docs/H5pState.md
207
- docs/H5pStatementResult.md
208
205
  docs/HostedScormAccessPolicy.md
209
206
  docs/HostedScormOutlineEntry.md
210
207
  docs/HostedScormRollupPolicy.md
@@ -235,6 +232,7 @@ docs/LoginResAuthData.md
235
232
  docs/LoginResUserData.md
236
233
  docs/LoginResUserDataSelectedPortal.md
237
234
  docs/LrsCredential.md
235
+ docs/LrsRecordingSettings.md
238
236
  docs/LrsScope.md
239
237
  docs/LrsStatement.md
240
238
  docs/MarketingApi.md
@@ -295,7 +293,6 @@ docs/PostEmailAssetComplete.md
295
293
  docs/PostEmailAssetUpload.md
296
294
  docs/PostEmailTemplatePreview.md
297
295
  docs/PostEmailTemplateTestSend.md
298
- docs/PostH5pStatement.md
299
296
  docs/PostLearnerExperiencePreview.md
300
297
  docs/PostLibraryQuiz.md
301
298
  docs/PostLibraryQuizSession.md
@@ -416,7 +413,6 @@ docs/ReportingApi.md
416
413
  docs/ResourceSessionEnvironment.md
417
414
  docs/ResourceSessionScormApiLogItem.md
418
415
  docs/ResourceType.md
419
- docs/ResourceTypeAvailability.md
420
416
  docs/RichTextApi.md
421
417
  docs/RichTextAsset.md
422
418
  docs/RichTextDocument.md
@@ -648,7 +644,6 @@ src/models/GetResourceSessionList.ts
648
644
  src/models/GetResourceSessionScormApiLogs.ts
649
645
  src/models/GetResourceSessionScormData.ts
650
646
  src/models/GetResourceSessionScormDataActivity.ts
651
- src/models/GetResourceTypeList.ts
652
647
  src/models/GetResourceUsage.ts
653
648
  src/models/GetResourceUsageCoursesInner.ts
654
649
  src/models/GetResourceVersionUpload.ts
@@ -677,8 +672,6 @@ src/models/GetZapierMe.ts
677
672
  src/models/GetZapierSetup.ts
678
673
  src/models/GetZapierShopifyCourseMappings.ts
679
674
  src/models/GetZapierUsers.ts
680
- src/models/H5pState.ts
681
- src/models/H5pStatementResult.ts
682
675
  src/models/HostedScormAccessPolicy.ts
683
676
  src/models/HostedScormOutlineEntry.ts
684
677
  src/models/HostedScormRollupPolicy.ts
@@ -706,6 +699,7 @@ src/models/LoginResAuthData.ts
706
699
  src/models/LoginResUserData.ts
707
700
  src/models/LoginResUserDataSelectedPortal.ts
708
701
  src/models/LrsCredential.ts
702
+ src/models/LrsRecordingSettings.ts
709
703
  src/models/LrsScope.ts
710
704
  src/models/LrsStatement.ts
711
705
  src/models/Paginated.ts
@@ -761,7 +755,6 @@ src/models/PostEmailAssetComplete.ts
761
755
  src/models/PostEmailAssetUpload.ts
762
756
  src/models/PostEmailTemplatePreview.ts
763
757
  src/models/PostEmailTemplateTestSend.ts
764
- src/models/PostH5pStatement.ts
765
758
  src/models/PostLearnerExperiencePreview.ts
766
759
  src/models/PostLibraryQuiz.ts
767
760
  src/models/PostLibraryQuizSession.ts
@@ -879,7 +872,6 @@ src/models/ReportSort.ts
879
872
  src/models/ResourceSessionEnvironment.ts
880
873
  src/models/ResourceSessionScormApiLogItem.ts
881
874
  src/models/ResourceType.ts
882
- src/models/ResourceTypeAvailability.ts
883
875
  src/models/RichTextAsset.ts
884
876
  src/models/RichTextDocument.ts
885
877
  src/models/RichTextInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.145.0
1
+ # @easyedu/js-lsm-api@1.147.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -136,7 +136,6 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
136
136
  *ContentLibraryApi* | [**getContentLibraryTagList**](docs/ContentLibraryApi.md#getcontentlibrarytaglist) | **GET** /content-library/tags | List portal Content Library tags
137
137
  *ContentLibraryApi* | [**getResource**](docs/ContentLibraryApi.md#getresource) | **GET** /content-library/resources/{resourceId} | Get a resource and all versions
138
138
  *ContentLibraryApi* | [**getResourceList**](docs/ContentLibraryApi.md#getresourcelist) | **GET** /content-library/resources | List reusable resources
139
- *ContentLibraryApi* | [**getResourceTypeList**](docs/ContentLibraryApi.md#getresourcetypelist) | **GET** /content-library/resource-types | List the resource types and whether each is available on this platform
140
139
  *ContentLibraryApi* | [**getResourceUsage**](docs/ContentLibraryApi.md#getresourceusage) | **GET** /content-library/resources/{resourceId}/usage | Get course and learner usage for a resource
141
140
  *ContentLibraryApi* | [**getResourceVersion**](docs/ContentLibraryApi.md#getresourceversion) | **GET** /content-library/resources/{resourceId}/versions/{versionId} | Get a resource version
142
141
  *ContentLibraryApi* | [**postContentLibraryTag**](docs/ContentLibraryApi.md#postcontentlibrarytag) | **POST** /content-library/tags | Create a portal Content Library tag
@@ -319,10 +318,12 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
319
318
  *LRSApi* | [**deleteLrsCredential**](docs/LRSApi.md#deletelrscredential) | **DELETE** /lrs/credentials/{credentialId} | Revoke an LRS credential
320
319
  *LRSApi* | [**deleteLrsUserRecords**](docs/LRSApi.md#deletelrsuserrecords) | **DELETE** /lrs/users/{userId}/records | Permanently delete one learner\'s xAPI statements and documents from the selected portal
321
320
  *LRSApi* | [**getLrsCredentials**](docs/LRSApi.md#getlrscredentials) | **GET** /lrs/credentials | List the selected portal\'s LRS credentials, the scopes they can be granted, and the xAPI endpoint
321
+ *LRSApi* | [**getLrsRecordingSettings**](docs/LRSApi.md#getlrsrecordingsettings) | **GET** /lrs/recording-settings | Read recording preferences for future Edaxu outcomes in the selected portal
322
322
  *LRSApi* | [**getLrsStatements**](docs/LRSApi.md#getlrsstatements) | **GET** /lrs/statements | Browse the xAPI statements stored for the selected portal, newest first
323
323
  *LRSApi* | [**getLrsStatementsExport**](docs/LRSApi.md#getlrsstatementsexport) | **GET** /lrs/statements/export | Export the selected portal\'s xAPI statements as JSON or CSV, oldest first
324
324
  *LRSApi* | [**postLrsCredential**](docs/LRSApi.md#postlrscredential) | **POST** /lrs/credentials | Create an LRS credential for the selected portal
325
325
  *LRSApi* | [**putLrsCredential**](docs/LRSApi.md#putlrscredential) | **PUT** /lrs/credentials/{credentialId} | Rename an LRS credential or replace its scopes
326
+ *LRSApi* | [**putLrsRecordingSettings**](docs/LRSApi.md#putlrsrecordingsettings) | **PUT** /lrs/recording-settings | Replace recording preferences for future Edaxu outcomes in the selected portal
326
327
  *LearnerExperienceApi* | [**deleteLearnerExperienceDraft**](docs/LearnerExperienceApi.md#deletelearnerexperiencedraft) | **DELETE** /learner-experience/draft | Discard the selected portal\'s learner experience draft
327
328
  *LearnerExperienceApi* | [**getCurrentLearnerDashboard**](docs/LearnerExperienceApi.md#getcurrentlearnerdashboard) | **GET** /users/current/dashboard | Get the authenticated learner\'s resolved dashboard and personalized data
328
329
  *LearnerExperienceApi* | [**getEffectiveLearnerExperience**](docs/LearnerExperienceApi.md#geteffectivelearnerexperience) | **GET** /learner-experience/effective | Get the effective published learner experience for the authenticated user
@@ -344,7 +345,6 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
344
345
  *PlayerApi* | [**getResourceSessionActivityEvents**](docs/PlayerApi.md#getresourcesessionactivityevents) | **GET** /resource/sessions/{sessionId}/activity-events | List recorded learner activity events for a resource session
345
346
  *PlayerApi* | [**getResourceSessionAsset**](docs/PlayerApi.md#getresourcesessionasset) | **GET** /resource/sessions/{sessionId}/asset/{assetPath} | Stream an asset pinned to a resource session
346
347
  *PlayerApi* | [**getResourceSessionDiagnostics**](docs/PlayerApi.md#getresourcesessiondiagnostics) | **GET** /resource/sessions/{sessionId}/diagnostics | Get administrator diagnostics for a resource session
347
- *PlayerApi* | [**getResourceSessionH5pState**](docs/PlayerApi.md#getresourcesessionh5pstate) | **GET** /resource/sessions/{sessionId}/h5p/state | Read the learner\'s saved H5P state for the session
348
348
  *PlayerApi* | [**getResourceSessionList**](docs/PlayerApi.md#getresourcesessionlist) | **GET** /resource/sessions | List resource sessions for the selected portal
349
349
  *PlayerApi* | [**getResourceSessionPlayer**](docs/PlayerApi.md#getresourcesessionplayer) | **GET** /resource/sessions/{sessionId}/player | Serve the player for a version-pinned reusable resource session
350
350
  *PlayerApi* | [**getResourceSessionScormApiLogs**](docs/PlayerApi.md#getresourcesessionscormapilogs) | **GET** /resource/sessions/{sessionId}/api-logs | Get SCORM runtime logs for a resource session
@@ -354,8 +354,6 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
354
354
  *PlayerApi* | [**postResourceSessionActivityEvent**](docs/PlayerApi.md#postresourcesessionactivityevent) | **POST** /resource/sessions/{sessionId}/activities/{activityId}/events | Record learner activity and update active time
355
355
  *PlayerApi* | [**postResourceSessionCmi5Launch**](docs/PlayerApi.md#postresourcesessioncmi5launch) | **POST** /resource/sessions/{sessionId}/cmi5/activities/{activityId}/launch | Launch one Assignable Unit of the session\'s cmi5 course
356
356
  *PlayerApi* | [**postResourceSessionComplete**](docs/PlayerApi.md#postresourcesessioncomplete) | **POST** /resource/sessions/{sessionId}/complete | Complete a non-SCORM resource session
357
- *PlayerApi* | [**postResourceSessionH5pStatement**](docs/PlayerApi.md#postresourcesessionh5pstatement) | **POST** /resource/sessions/{sessionId}/h5p/statements | Record an xAPI statement emitted by the session\'s H5P content
358
- *PlayerApi* | [**putResourceSessionH5pState**](docs/PlayerApi.md#putresourcesessionh5pstate) | **PUT** /resource/sessions/{sessionId}/h5p/state | Save the learner\'s in-progress H5P state for the session
359
357
  *PlayerApi* | [**putResourceSessionOverride**](docs/PlayerApi.md#putresourcesessionoverride) | **PUT** /resource/sessions/{sessionId}/override | Override a learner\'s live resource-session progress
360
358
  *PlayerApi* | [**setResourceScormValue**](docs/PlayerApi.md#setresourcescormvalue) | **POST** /resource/sessions/{sessionId}/set-value | Store a CMI value in a reusable SCORM resource session
361
359
  *PlayerApi* | [**terminateResourceScormSession**](docs/PlayerApi.md#terminateresourcescormsession) | **POST** /resource/sessions/{sessionId}/terminate | Terminate a reusable SCORM resource session
@@ -608,7 +606,6 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
608
606
  - [GetResourceSessionScormApiLogs](docs/GetResourceSessionScormApiLogs.md)
609
607
  - [GetResourceSessionScormData](docs/GetResourceSessionScormData.md)
610
608
  - [GetResourceSessionScormDataActivity](docs/GetResourceSessionScormDataActivity.md)
611
- - [GetResourceTypeList](docs/GetResourceTypeList.md)
612
609
  - [GetResourceUsage](docs/GetResourceUsage.md)
613
610
  - [GetResourceUsageCoursesInner](docs/GetResourceUsageCoursesInner.md)
614
611
  - [GetResourceVersionUpload](docs/GetResourceVersionUpload.md)
@@ -637,8 +634,6 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
637
634
  - [GetZapierSetup](docs/GetZapierSetup.md)
638
635
  - [GetZapierShopifyCourseMappings](docs/GetZapierShopifyCourseMappings.md)
639
636
  - [GetZapierUsers](docs/GetZapierUsers.md)
640
- - [H5pState](docs/H5pState.md)
641
- - [H5pStatementResult](docs/H5pStatementResult.md)
642
637
  - [HostedScormAccessPolicy](docs/HostedScormAccessPolicy.md)
643
638
  - [HostedScormOutlineEntry](docs/HostedScormOutlineEntry.md)
644
639
  - [HostedScormRollupPolicy](docs/HostedScormRollupPolicy.md)
@@ -666,6 +661,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
666
661
  - [LoginResUserData](docs/LoginResUserData.md)
667
662
  - [LoginResUserDataSelectedPortal](docs/LoginResUserDataSelectedPortal.md)
668
663
  - [LrsCredential](docs/LrsCredential.md)
664
+ - [LrsRecordingSettings](docs/LrsRecordingSettings.md)
669
665
  - [LrsScope](docs/LrsScope.md)
670
666
  - [LrsStatement](docs/LrsStatement.md)
671
667
  - [Paginated](docs/Paginated.md)
@@ -721,7 +717,6 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
721
717
  - [PostEmailAssetUpload](docs/PostEmailAssetUpload.md)
722
718
  - [PostEmailTemplatePreview](docs/PostEmailTemplatePreview.md)
723
719
  - [PostEmailTemplateTestSend](docs/PostEmailTemplateTestSend.md)
724
- - [PostH5pStatement](docs/PostH5pStatement.md)
725
720
  - [PostLearnerExperiencePreview](docs/PostLearnerExperiencePreview.md)
726
721
  - [PostLibraryQuiz](docs/PostLibraryQuiz.md)
727
722
  - [PostLibraryQuizSession](docs/PostLibraryQuizSession.md)
@@ -839,7 +834,6 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
839
834
  - [ResourceSessionEnvironment](docs/ResourceSessionEnvironment.md)
840
835
  - [ResourceSessionScormApiLogItem](docs/ResourceSessionScormApiLogItem.md)
841
836
  - [ResourceType](docs/ResourceType.md)
842
- - [ResourceTypeAvailability](docs/ResourceTypeAvailability.md)
843
837
  - [RichTextAsset](docs/RichTextAsset.md)
844
838
  - [RichTextDocument](docs/RichTextDocument.md)
845
839
  - [RichTextInput](docs/RichTextInput.md)
@@ -886,7 +880,7 @@ and is automatically generated by the
886
880
  [OpenAPI Generator](https://openapi-generator.tech) project:
887
881
 
888
882
  - API version: `1.0.0`
889
- - Package version: `1.145.0`
883
+ - Package version: `1.147.0`
890
884
  - Generator version: `7.22.0`
891
885
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
892
886
 
@@ -17,7 +17,6 @@ import { type GetContentLibraryVersion } from '../models/GetContentLibraryVersio
17
17
  import { type GetResource } from '../models/GetResource';
18
18
  import { type GetResourceList } from '../models/GetResourceList';
19
19
  import { type GetResourceSession } from '../models/GetResourceSession';
20
- import { type GetResourceTypeList } from '../models/GetResourceTypeList';
21
20
  import { type GetResourceUsage } from '../models/GetResourceUsage';
22
21
  import { type GetResourceVersionUpload } from '../models/GetResourceVersionUpload';
23
22
  import { type PostContentLibraryTag } from '../models/PostContentLibraryTag';
@@ -246,20 +245,6 @@ export declare class ContentLibraryApi extends runtime.BaseAPI {
246
245
  * List reusable resources
247
246
  */
248
247
  getResourceList(requestParameters?: GetResourceListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceList>;
249
- /**
250
- * Creates request options for getResourceTypeList without sending the request
251
- */
252
- getResourceTypeListRequestOpts(): Promise<runtime.RequestOpts>;
253
- /**
254
- * Clients use this to decide which types to offer when creating or filtering resources. A type can be switched off for the whole platform (H5P is, until it is enabled), in which case creating or uploading it is refused with 403.
255
- * List the resource types and whether each is available on this platform
256
- */
257
- getResourceTypeListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetResourceTypeList>>;
258
- /**
259
- * Clients use this to decide which types to offer when creating or filtering resources. A type can be switched off for the whole platform (H5P is, until it is enabled), in which case creating or uploading it is refused with 403.
260
- * List the resource types and whether each is available on this platform
261
- */
262
- getResourceTypeList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceTypeList>;
263
248
  /**
264
249
  * Creates request options for getResourceUsage without sending the request
265
250
  */
@@ -31,7 +31,6 @@ const GetContentLibraryVersion_1 = require("../models/GetContentLibraryVersion")
31
31
  const GetResource_1 = require("../models/GetResource");
32
32
  const GetResourceList_1 = require("../models/GetResourceList");
33
33
  const GetResourceSession_1 = require("../models/GetResourceSession");
34
- const GetResourceTypeList_1 = require("../models/GetResourceTypeList");
35
34
  const GetResourceUsage_1 = require("../models/GetResourceUsage");
36
35
  const GetResourceVersionUpload_1 = require("../models/GetResourceVersionUpload");
37
36
  const PostContentLibraryTag_1 = require("../models/PostContentLibraryTag");
@@ -416,43 +415,6 @@ class ContentLibraryApi extends runtime.BaseAPI {
416
415
  return yield response.value();
417
416
  });
418
417
  }
419
- /**
420
- * Creates request options for getResourceTypeList without sending the request
421
- */
422
- getResourceTypeListRequestOpts() {
423
- return __awaiter(this, void 0, void 0, function* () {
424
- const queryParameters = {};
425
- const headerParameters = {};
426
- let urlPath = `/content-library/resource-types`;
427
- return {
428
- path: urlPath,
429
- method: 'GET',
430
- headers: headerParameters,
431
- query: queryParameters,
432
- };
433
- });
434
- }
435
- /**
436
- * Clients use this to decide which types to offer when creating or filtering resources. A type can be switched off for the whole platform (H5P is, until it is enabled), in which case creating or uploading it is refused with 403.
437
- * List the resource types and whether each is available on this platform
438
- */
439
- getResourceTypeListRaw(initOverrides) {
440
- return __awaiter(this, void 0, void 0, function* () {
441
- const requestOptions = yield this.getResourceTypeListRequestOpts();
442
- const response = yield this.request(requestOptions, initOverrides);
443
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetResourceTypeList_1.GetResourceTypeListFromJSON)(jsonValue));
444
- });
445
- }
446
- /**
447
- * Clients use this to decide which types to offer when creating or filtering resources. A type can be switched off for the whole platform (H5P is, until it is enabled), in which case creating or uploading it is refused with 403.
448
- * List the resource types and whether each is available on this platform
449
- */
450
- getResourceTypeList(initOverrides) {
451
- return __awaiter(this, void 0, void 0, function* () {
452
- const response = yield this.getResourceTypeListRaw(initOverrides);
453
- return yield response.value();
454
- });
455
- }
456
418
  /**
457
419
  * Creates request options for getResourceUsage without sending the request
458
420
  */
@@ -14,6 +14,7 @@ import { type DeleteLrsUserRecordsResponse } from '../models/DeleteLrsUserRecord
14
14
  import { type GetLrsCredentials } from '../models/GetLrsCredentials';
15
15
  import { type GetLrsStatementList } from '../models/GetLrsStatementList';
16
16
  import { type LrsCredential } from '../models/LrsCredential';
17
+ import { type LrsRecordingSettings } from '../models/LrsRecordingSettings';
17
18
  import { type PostLrsCredential } from '../models/PostLrsCredential';
18
19
  import { type PostLrsCredentialResponse } from '../models/PostLrsCredentialResponse';
19
20
  import { type PutLrsCredential } from '../models/PutLrsCredential';
@@ -53,6 +54,9 @@ export interface PutLrsCredentialRequest {
53
54
  credentialId: string;
54
55
  putLrsCredential: PutLrsCredential;
55
56
  }
57
+ export interface PutLrsRecordingSettingsRequest {
58
+ lrsRecordingSettings: LrsRecordingSettings;
59
+ }
56
60
  /**
57
61
  *
58
62
  */
@@ -93,6 +97,18 @@ export declare class LRSApi extends runtime.BaseAPI {
93
97
  * List the selected portal\'s LRS credentials, the scopes they can be granted, and the xAPI endpoint
94
98
  */
95
99
  getLrsCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLrsCredentials>;
100
+ /**
101
+ * Creates request options for getLrsRecordingSettings without sending the request
102
+ */
103
+ getLrsRecordingSettingsRequestOpts(): Promise<runtime.RequestOpts>;
104
+ /**
105
+ * Read recording preferences for future Edaxu outcomes in the selected portal
106
+ */
107
+ getLrsRecordingSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LrsRecordingSettings>>;
108
+ /**
109
+ * Read recording preferences for future Edaxu outcomes in the selected portal
110
+ */
111
+ getLrsRecordingSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LrsRecordingSettings>;
96
112
  /**
97
113
  * Creates request options for getLrsStatements without sending the request
98
114
  */
@@ -141,6 +157,18 @@ export declare class LRSApi extends runtime.BaseAPI {
141
157
  * Rename an LRS credential or replace its scopes
142
158
  */
143
159
  putLrsCredential(requestParameters: PutLrsCredentialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LrsCredential>;
160
+ /**
161
+ * Creates request options for putLrsRecordingSettings without sending the request
162
+ */
163
+ putLrsRecordingSettingsRequestOpts(requestParameters: PutLrsRecordingSettingsRequest): Promise<runtime.RequestOpts>;
164
+ /**
165
+ * Replace recording preferences for future Edaxu outcomes in the selected portal
166
+ */
167
+ putLrsRecordingSettingsRaw(requestParameters: PutLrsRecordingSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LrsRecordingSettings>>;
168
+ /**
169
+ * Replace recording preferences for future Edaxu outcomes in the selected portal
170
+ */
171
+ putLrsRecordingSettings(requestParameters: PutLrsRecordingSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LrsRecordingSettings>;
144
172
  }
145
173
  /**
146
174
  * @export
@@ -28,6 +28,7 @@ const DeleteLrsUserRecordsResponse_1 = require("../models/DeleteLrsUserRecordsRe
28
28
  const GetLrsCredentials_1 = require("../models/GetLrsCredentials");
29
29
  const GetLrsStatementList_1 = require("../models/GetLrsStatementList");
30
30
  const LrsCredential_1 = require("../models/LrsCredential");
31
+ const LrsRecordingSettings_1 = require("../models/LrsRecordingSettings");
31
32
  const PostLrsCredential_1 = require("../models/PostLrsCredential");
32
33
  const PostLrsCredentialResponse_1 = require("../models/PostLrsCredentialResponse");
33
34
  const PutLrsCredential_1 = require("../models/PutLrsCredential");
@@ -147,6 +148,41 @@ class LRSApi extends runtime.BaseAPI {
147
148
  return yield response.value();
148
149
  });
149
150
  }
151
+ /**
152
+ * Creates request options for getLrsRecordingSettings without sending the request
153
+ */
154
+ getLrsRecordingSettingsRequestOpts() {
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ const queryParameters = {};
157
+ const headerParameters = {};
158
+ let urlPath = `/lrs/recording-settings`;
159
+ return {
160
+ path: urlPath,
161
+ method: 'GET',
162
+ headers: headerParameters,
163
+ query: queryParameters,
164
+ };
165
+ });
166
+ }
167
+ /**
168
+ * Read recording preferences for future Edaxu outcomes in the selected portal
169
+ */
170
+ getLrsRecordingSettingsRaw(initOverrides) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ const requestOptions = yield this.getLrsRecordingSettingsRequestOpts();
173
+ const response = yield this.request(requestOptions, initOverrides);
174
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, LrsRecordingSettings_1.LrsRecordingSettingsFromJSON)(jsonValue));
175
+ });
176
+ }
177
+ /**
178
+ * Read recording preferences for future Edaxu outcomes in the selected portal
179
+ */
180
+ getLrsRecordingSettings(initOverrides) {
181
+ return __awaiter(this, void 0, void 0, function* () {
182
+ const response = yield this.getLrsRecordingSettingsRaw(initOverrides);
183
+ return yield response.value();
184
+ });
185
+ }
150
186
  /**
151
187
  * Creates request options for getLrsStatements without sending the request
152
188
  */
@@ -358,6 +394,46 @@ class LRSApi extends runtime.BaseAPI {
358
394
  return yield response.value();
359
395
  });
360
396
  }
397
+ /**
398
+ * Creates request options for putLrsRecordingSettings without sending the request
399
+ */
400
+ putLrsRecordingSettingsRequestOpts(requestParameters) {
401
+ return __awaiter(this, void 0, void 0, function* () {
402
+ if (requestParameters['lrsRecordingSettings'] == null) {
403
+ throw new runtime.RequiredError('lrsRecordingSettings', 'Required parameter "lrsRecordingSettings" was null or undefined when calling putLrsRecordingSettings().');
404
+ }
405
+ const queryParameters = {};
406
+ const headerParameters = {};
407
+ headerParameters['Content-Type'] = 'application/json';
408
+ let urlPath = `/lrs/recording-settings`;
409
+ return {
410
+ path: urlPath,
411
+ method: 'PUT',
412
+ headers: headerParameters,
413
+ query: queryParameters,
414
+ body: (0, LrsRecordingSettings_1.LrsRecordingSettingsToJSON)(requestParameters['lrsRecordingSettings']),
415
+ };
416
+ });
417
+ }
418
+ /**
419
+ * Replace recording preferences for future Edaxu outcomes in the selected portal
420
+ */
421
+ putLrsRecordingSettingsRaw(requestParameters, initOverrides) {
422
+ return __awaiter(this, void 0, void 0, function* () {
423
+ const requestOptions = yield this.putLrsRecordingSettingsRequestOpts(requestParameters);
424
+ const response = yield this.request(requestOptions, initOverrides);
425
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, LrsRecordingSettings_1.LrsRecordingSettingsFromJSON)(jsonValue));
426
+ });
427
+ }
428
+ /**
429
+ * Replace recording preferences for future Edaxu outcomes in the selected portal
430
+ */
431
+ putLrsRecordingSettings(requestParameters, initOverrides) {
432
+ return __awaiter(this, void 0, void 0, function* () {
433
+ const response = yield this.putLrsRecordingSettingsRaw(requestParameters, initOverrides);
434
+ return yield response.value();
435
+ });
436
+ }
361
437
  }
362
438
  exports.LRSApi = LRSApi;
363
439
  /**
@@ -19,9 +19,6 @@ import { type GetResourceSessionDiagnostics } from '../models/GetResourceSession
19
19
  import { type GetResourceSessionList } from '../models/GetResourceSessionList';
20
20
  import { type GetResourceSessionScormApiLogs } from '../models/GetResourceSessionScormApiLogs';
21
21
  import { type GetResourceSessionScormData } from '../models/GetResourceSessionScormData';
22
- import { type H5pState } from '../models/H5pState';
23
- import { type H5pStatementResult } from '../models/H5pStatementResult';
24
- import { type PostH5pStatement } from '../models/PostH5pStatement';
25
22
  import { type PostResourceSessionActivityEvent } from '../models/PostResourceSessionActivityEvent';
26
23
  import { type PutResourceSessionOverride } from '../models/PutResourceSessionOverride';
27
24
  import { type ResourceSessionEnvironment } from '../models/ResourceSessionEnvironment';
@@ -66,9 +63,6 @@ export interface GetResourceSessionAssetRequest {
66
63
  export interface GetResourceSessionDiagnosticsRequest {
67
64
  sessionId: string;
68
65
  }
69
- export interface GetResourceSessionH5pStateRequest {
70
- sessionId: string;
71
- }
72
66
  export interface GetResourceSessionListRequest {
73
67
  userId?: string;
74
68
  resourceId?: string;
@@ -128,14 +122,6 @@ export interface PostResourceSessionCmi5LaunchRequest {
128
122
  export interface PostResourceSessionCompleteRequest {
129
123
  sessionId: string;
130
124
  }
131
- export interface PostResourceSessionH5pStatementRequest {
132
- sessionId: string;
133
- postH5pStatement: PostH5pStatement;
134
- }
135
- export interface PutResourceSessionH5pStateRequest {
136
- sessionId: string;
137
- h5pState: H5pState;
138
- }
139
125
  export interface PutResourceSessionOverrideRequest {
140
126
  sessionId: string;
141
127
  putResourceSessionOverride: PutResourceSessionOverride;
@@ -261,18 +247,6 @@ export declare class PlayerApi extends runtime.BaseAPI {
261
247
  * Get administrator diagnostics for a resource session
262
248
  */
263
249
  getResourceSessionDiagnostics(requestParameters: GetResourceSessionDiagnosticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceSessionDiagnostics>;
264
- /**
265
- * Creates request options for getResourceSessionH5pState without sending the request
266
- */
267
- getResourceSessionH5pStateRequestOpts(requestParameters: GetResourceSessionH5pStateRequest): Promise<runtime.RequestOpts>;
268
- /**
269
- * Read the learner\'s saved H5P state for the session
270
- */
271
- getResourceSessionH5pStateRaw(requestParameters: GetResourceSessionH5pStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<H5pState>>;
272
- /**
273
- * Read the learner\'s saved H5P state for the session
274
- */
275
- getResourceSessionH5pState(requestParameters: GetResourceSessionH5pStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<H5pState>;
276
250
  /**
277
251
  * Creates request options for getResourceSessionList without sending the request
278
252
  */
@@ -383,32 +357,6 @@ export declare class PlayerApi extends runtime.BaseAPI {
383
357
  * Complete a non-SCORM resource session
384
358
  */
385
359
  postResourceSessionComplete(requestParameters: PostResourceSessionCompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceSession>;
386
- /**
387
- * Creates request options for postResourceSessionH5pStatement without sending the request
388
- */
389
- postResourceSessionH5pStatementRequestOpts(requestParameters: PostResourceSessionH5pStatementRequest): Promise<runtime.RequestOpts>;
390
- /**
391
- * Stores the statement in the portal\'s Learning Record Store on behalf of the session\'s learner and updates the session\'s completion, grade, and score from it.
392
- * Record an xAPI statement emitted by the session\'s H5P content
393
- */
394
- postResourceSessionH5pStatementRaw(requestParameters: PostResourceSessionH5pStatementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<H5pStatementResult>>;
395
- /**
396
- * Stores the statement in the portal\'s Learning Record Store on behalf of the session\'s learner and updates the session\'s completion, grade, and score from it.
397
- * Record an xAPI statement emitted by the session\'s H5P content
398
- */
399
- postResourceSessionH5pStatement(requestParameters: PostResourceSessionH5pStatementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<H5pStatementResult>;
400
- /**
401
- * Creates request options for putResourceSessionH5pState without sending the request
402
- */
403
- putResourceSessionH5pStateRequestOpts(requestParameters: PutResourceSessionH5pStateRequest): Promise<runtime.RequestOpts>;
404
- /**
405
- * Save the learner\'s in-progress H5P state for the session
406
- */
407
- putResourceSessionH5pStateRaw(requestParameters: PutResourceSessionH5pStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
408
- /**
409
- * Save the learner\'s in-progress H5P state for the session
410
- */
411
- putResourceSessionH5pState(requestParameters: PutResourceSessionH5pStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
412
360
  /**
413
361
  * Creates request options for putResourceSessionOverride without sending the request
414
362
  */
@@ -33,9 +33,6 @@ const GetResourceSessionDiagnostics_1 = require("../models/GetResourceSessionDia
33
33
  const GetResourceSessionList_1 = require("../models/GetResourceSessionList");
34
34
  const GetResourceSessionScormApiLogs_1 = require("../models/GetResourceSessionScormApiLogs");
35
35
  const GetResourceSessionScormData_1 = require("../models/GetResourceSessionScormData");
36
- const H5pState_1 = require("../models/H5pState");
37
- const H5pStatementResult_1 = require("../models/H5pStatementResult");
38
- const PostH5pStatement_1 = require("../models/PostH5pStatement");
39
36
  const PostResourceSessionActivityEvent_1 = require("../models/PostResourceSessionActivityEvent");
40
37
  const PutResourceSessionOverride_1 = require("../models/PutResourceSessionOverride");
41
38
  const ScormGetValueResponse_1 = require("../models/ScormGetValueResponse");
@@ -429,45 +426,6 @@ class PlayerApi extends runtime.BaseAPI {
429
426
  return yield response.value();
430
427
  });
431
428
  }
432
- /**
433
- * Creates request options for getResourceSessionH5pState without sending the request
434
- */
435
- getResourceSessionH5pStateRequestOpts(requestParameters) {
436
- return __awaiter(this, void 0, void 0, function* () {
437
- if (requestParameters['sessionId'] == null) {
438
- throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getResourceSessionH5pState().');
439
- }
440
- const queryParameters = {};
441
- const headerParameters = {};
442
- let urlPath = `/resource/sessions/{sessionId}/h5p/state`;
443
- urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
444
- return {
445
- path: urlPath,
446
- method: 'GET',
447
- headers: headerParameters,
448
- query: queryParameters,
449
- };
450
- });
451
- }
452
- /**
453
- * Read the learner\'s saved H5P state for the session
454
- */
455
- getResourceSessionH5pStateRaw(requestParameters, initOverrides) {
456
- return __awaiter(this, void 0, void 0, function* () {
457
- const requestOptions = yield this.getResourceSessionH5pStateRequestOpts(requestParameters);
458
- const response = yield this.request(requestOptions, initOverrides);
459
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, H5pState_1.H5pStateFromJSON)(jsonValue));
460
- });
461
- }
462
- /**
463
- * Read the learner\'s saved H5P state for the session
464
- */
465
- getResourceSessionH5pState(requestParameters, initOverrides) {
466
- return __awaiter(this, void 0, void 0, function* () {
467
- const response = yield this.getResourceSessionH5pStateRaw(requestParameters, initOverrides);
468
- return yield response.value();
469
- });
470
- }
471
429
  /**
472
430
  * Creates request options for getResourceSessionList without sending the request
473
431
  */
@@ -927,95 +885,6 @@ class PlayerApi extends runtime.BaseAPI {
927
885
  return yield response.value();
928
886
  });
929
887
  }
930
- /**
931
- * Creates request options for postResourceSessionH5pStatement without sending the request
932
- */
933
- postResourceSessionH5pStatementRequestOpts(requestParameters) {
934
- return __awaiter(this, void 0, void 0, function* () {
935
- if (requestParameters['sessionId'] == null) {
936
- throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling postResourceSessionH5pStatement().');
937
- }
938
- if (requestParameters['postH5pStatement'] == null) {
939
- throw new runtime.RequiredError('postH5pStatement', 'Required parameter "postH5pStatement" was null or undefined when calling postResourceSessionH5pStatement().');
940
- }
941
- const queryParameters = {};
942
- const headerParameters = {};
943
- headerParameters['Content-Type'] = 'application/json';
944
- let urlPath = `/resource/sessions/{sessionId}/h5p/statements`;
945
- urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
946
- return {
947
- path: urlPath,
948
- method: 'POST',
949
- headers: headerParameters,
950
- query: queryParameters,
951
- body: (0, PostH5pStatement_1.PostH5pStatementToJSON)(requestParameters['postH5pStatement']),
952
- };
953
- });
954
- }
955
- /**
956
- * Stores the statement in the portal\'s Learning Record Store on behalf of the session\'s learner and updates the session\'s completion, grade, and score from it.
957
- * Record an xAPI statement emitted by the session\'s H5P content
958
- */
959
- postResourceSessionH5pStatementRaw(requestParameters, initOverrides) {
960
- return __awaiter(this, void 0, void 0, function* () {
961
- const requestOptions = yield this.postResourceSessionH5pStatementRequestOpts(requestParameters);
962
- const response = yield this.request(requestOptions, initOverrides);
963
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, H5pStatementResult_1.H5pStatementResultFromJSON)(jsonValue));
964
- });
965
- }
966
- /**
967
- * Stores the statement in the portal\'s Learning Record Store on behalf of the session\'s learner and updates the session\'s completion, grade, and score from it.
968
- * Record an xAPI statement emitted by the session\'s H5P content
969
- */
970
- postResourceSessionH5pStatement(requestParameters, initOverrides) {
971
- return __awaiter(this, void 0, void 0, function* () {
972
- const response = yield this.postResourceSessionH5pStatementRaw(requestParameters, initOverrides);
973
- return yield response.value();
974
- });
975
- }
976
- /**
977
- * Creates request options for putResourceSessionH5pState without sending the request
978
- */
979
- putResourceSessionH5pStateRequestOpts(requestParameters) {
980
- return __awaiter(this, void 0, void 0, function* () {
981
- if (requestParameters['sessionId'] == null) {
982
- throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling putResourceSessionH5pState().');
983
- }
984
- if (requestParameters['h5pState'] == null) {
985
- throw new runtime.RequiredError('h5pState', 'Required parameter "h5pState" was null or undefined when calling putResourceSessionH5pState().');
986
- }
987
- const queryParameters = {};
988
- const headerParameters = {};
989
- headerParameters['Content-Type'] = 'application/json';
990
- let urlPath = `/resource/sessions/{sessionId}/h5p/state`;
991
- urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
992
- return {
993
- path: urlPath,
994
- method: 'PUT',
995
- headers: headerParameters,
996
- query: queryParameters,
997
- body: (0, H5pState_1.H5pStateToJSON)(requestParameters['h5pState']),
998
- };
999
- });
1000
- }
1001
- /**
1002
- * Save the learner\'s in-progress H5P state for the session
1003
- */
1004
- putResourceSessionH5pStateRaw(requestParameters, initOverrides) {
1005
- return __awaiter(this, void 0, void 0, function* () {
1006
- const requestOptions = yield this.putResourceSessionH5pStateRequestOpts(requestParameters);
1007
- const response = yield this.request(requestOptions, initOverrides);
1008
- return new runtime.VoidApiResponse(response);
1009
- });
1010
- }
1011
- /**
1012
- * Save the learner\'s in-progress H5P state for the session
1013
- */
1014
- putResourceSessionH5pState(requestParameters, initOverrides) {
1015
- return __awaiter(this, void 0, void 0, function* () {
1016
- yield this.putResourceSessionH5pStateRaw(requestParameters, initOverrides);
1017
- });
1018
- }
1019
888
  /**
1020
889
  * Creates request options for putResourceSessionOverride without sending the request
1021
890
  */