@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
@@ -161,7 +161,6 @@ export * from './GetResourceSessionList';
161
161
  export * from './GetResourceSessionScormApiLogs';
162
162
  export * from './GetResourceSessionScormData';
163
163
  export * from './GetResourceSessionScormDataActivity';
164
- export * from './GetResourceTypeList';
165
164
  export * from './GetResourceUsage';
166
165
  export * from './GetResourceUsageCoursesInner';
167
166
  export * from './GetResourceVersionUpload';
@@ -190,8 +189,6 @@ export * from './GetZapierMe';
190
189
  export * from './GetZapierSetup';
191
190
  export * from './GetZapierShopifyCourseMappings';
192
191
  export * from './GetZapierUsers';
193
- export * from './H5pState';
194
- export * from './H5pStatementResult';
195
192
  export * from './HostedScormAccessPolicy';
196
193
  export * from './HostedScormOutlineEntry';
197
194
  export * from './HostedScormRollupPolicy';
@@ -219,6 +216,7 @@ export * from './LoginResAuthData';
219
216
  export * from './LoginResUserData';
220
217
  export * from './LoginResUserDataSelectedPortal';
221
218
  export * from './LrsCredential';
219
+ export * from './LrsRecordingSettings';
222
220
  export * from './LrsScope';
223
221
  export * from './LrsStatement';
224
222
  export * from './Paginated';
@@ -274,7 +272,6 @@ export * from './PostEmailAssetComplete';
274
272
  export * from './PostEmailAssetUpload';
275
273
  export * from './PostEmailTemplatePreview';
276
274
  export * from './PostEmailTemplateTestSend';
277
- export * from './PostH5pStatement';
278
275
  export * from './PostLearnerExperiencePreview';
279
276
  export * from './PostLibraryQuiz';
280
277
  export * from './PostLibraryQuizSession';
@@ -392,7 +389,6 @@ export * from './ReportSort';
392
389
  export * from './ResourceSessionEnvironment';
393
390
  export * from './ResourceSessionScormApiLogItem';
394
391
  export * from './ResourceType';
395
- export * from './ResourceTypeAvailability';
396
392
  export * from './RichTextAsset';
397
393
  export * from './RichTextDocument';
398
394
  export * from './RichTextInput';
@@ -0,0 +1,50 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Additional Edaxu events recorded from the time each category is enabled. All categories default to off.
14
+ * @export
15
+ * @interface LrsRecordingSettings
16
+ */
17
+ export interface LrsRecordingSettings {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof LrsRecordingSettings
22
+ */
23
+ assessmentResults: boolean;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof LrsRecordingSettings
28
+ */
29
+ contentActivity: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof LrsRecordingSettings
34
+ */
35
+ courseCompletions: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof LrsRecordingSettings
40
+ */
41
+ certificateIssuance: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the LrsRecordingSettings interface.
45
+ */
46
+ export declare function instanceOfLrsRecordingSettings(value: object): value is LrsRecordingSettings;
47
+ export declare function LrsRecordingSettingsFromJSON(json: any): LrsRecordingSettings;
48
+ export declare function LrsRecordingSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LrsRecordingSettings;
49
+ export declare function LrsRecordingSettingsToJSON(json: any): LrsRecordingSettings;
50
+ export declare function LrsRecordingSettingsToJSONTyped(value?: LrsRecordingSettings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfLrsRecordingSettings = instanceOfLrsRecordingSettings;
17
+ exports.LrsRecordingSettingsFromJSON = LrsRecordingSettingsFromJSON;
18
+ exports.LrsRecordingSettingsFromJSONTyped = LrsRecordingSettingsFromJSONTyped;
19
+ exports.LrsRecordingSettingsToJSON = LrsRecordingSettingsToJSON;
20
+ exports.LrsRecordingSettingsToJSONTyped = LrsRecordingSettingsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LrsRecordingSettings interface.
23
+ */
24
+ function instanceOfLrsRecordingSettings(value) {
25
+ if (!('assessmentResults' in value) || value['assessmentResults'] === undefined)
26
+ return false;
27
+ if (!('contentActivity' in value) || value['contentActivity'] === undefined)
28
+ return false;
29
+ if (!('courseCompletions' in value) || value['courseCompletions'] === undefined)
30
+ return false;
31
+ if (!('certificateIssuance' in value) || value['certificateIssuance'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function LrsRecordingSettingsFromJSON(json) {
36
+ return LrsRecordingSettingsFromJSONTyped(json, false);
37
+ }
38
+ function LrsRecordingSettingsFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'assessmentResults': json['assessment_results'],
44
+ 'contentActivity': json['content_activity'],
45
+ 'courseCompletions': json['course_completions'],
46
+ 'certificateIssuance': json['certificate_issuance'],
47
+ };
48
+ }
49
+ function LrsRecordingSettingsToJSON(json) {
50
+ return LrsRecordingSettingsToJSONTyped(json, false);
51
+ }
52
+ function LrsRecordingSettingsToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'assessment_results': value['assessmentResults'],
58
+ 'content_activity': value['contentActivity'],
59
+ 'course_completions': value['courseCompletions'],
60
+ 'certificate_issuance': value['certificateIssuance'],
61
+ };
62
+ }
@@ -24,7 +24,6 @@ export declare const ResourceType: {
24
24
  readonly Link: "link";
25
25
  readonly RichText: "rich_text";
26
26
  readonly Cmi5: "cmi5";
27
- readonly H5p: "h5p";
28
27
  };
29
28
  export type ResourceType = typeof ResourceType[keyof typeof ResourceType];
30
29
  export declare function instanceOfResourceType(value: any): boolean;
@@ -33,8 +33,7 @@ exports.ResourceType = {
33
33
  File: 'file',
34
34
  Link: 'link',
35
35
  RichText: 'rich_text',
36
- Cmi5: 'cmi5',
37
- H5p: 'h5p'
36
+ Cmi5: 'cmi5'
38
37
  };
39
38
  function instanceOfResourceType(value) {
40
39
  for (const key in exports.ResourceType) {
@@ -159,7 +159,6 @@ export * from './GetResourceSessionList';
159
159
  export * from './GetResourceSessionScormApiLogs';
160
160
  export * from './GetResourceSessionScormData';
161
161
  export * from './GetResourceSessionScormDataActivity';
162
- export * from './GetResourceTypeList';
163
162
  export * from './GetResourceUsage';
164
163
  export * from './GetResourceUsageCoursesInner';
165
164
  export * from './GetResourceVersionUpload';
@@ -188,8 +187,6 @@ export * from './GetZapierMe';
188
187
  export * from './GetZapierSetup';
189
188
  export * from './GetZapierShopifyCourseMappings';
190
189
  export * from './GetZapierUsers';
191
- export * from './H5pState';
192
- export * from './H5pStatementResult';
193
190
  export * from './HostedScormAccessPolicy';
194
191
  export * from './HostedScormOutlineEntry';
195
192
  export * from './HostedScormRollupPolicy';
@@ -217,6 +214,7 @@ export * from './LoginResAuthData';
217
214
  export * from './LoginResUserData';
218
215
  export * from './LoginResUserDataSelectedPortal';
219
216
  export * from './LrsCredential';
217
+ export * from './LrsRecordingSettings';
220
218
  export * from './LrsScope';
221
219
  export * from './LrsStatement';
222
220
  export * from './Paginated';
@@ -272,7 +270,6 @@ export * from './PostEmailAssetComplete';
272
270
  export * from './PostEmailAssetUpload';
273
271
  export * from './PostEmailTemplatePreview';
274
272
  export * from './PostEmailTemplateTestSend';
275
- export * from './PostH5pStatement';
276
273
  export * from './PostLearnerExperiencePreview';
277
274
  export * from './PostLibraryQuiz';
278
275
  export * from './PostLibraryQuizSession';
@@ -390,7 +387,6 @@ export * from './ReportSort';
390
387
  export * from './ResourceSessionEnvironment';
391
388
  export * from './ResourceSessionScormApiLogItem';
392
389
  export * from './ResourceType';
393
- export * from './ResourceTypeAvailability';
394
390
  export * from './RichTextAsset';
395
391
  export * from './RichTextDocument';
396
392
  export * from './RichTextInput';
@@ -177,7 +177,6 @@ __exportStar(require("./GetResourceSessionList"), exports);
177
177
  __exportStar(require("./GetResourceSessionScormApiLogs"), exports);
178
178
  __exportStar(require("./GetResourceSessionScormData"), exports);
179
179
  __exportStar(require("./GetResourceSessionScormDataActivity"), exports);
180
- __exportStar(require("./GetResourceTypeList"), exports);
181
180
  __exportStar(require("./GetResourceUsage"), exports);
182
181
  __exportStar(require("./GetResourceUsageCoursesInner"), exports);
183
182
  __exportStar(require("./GetResourceVersionUpload"), exports);
@@ -206,8 +205,6 @@ __exportStar(require("./GetZapierMe"), exports);
206
205
  __exportStar(require("./GetZapierSetup"), exports);
207
206
  __exportStar(require("./GetZapierShopifyCourseMappings"), exports);
208
207
  __exportStar(require("./GetZapierUsers"), exports);
209
- __exportStar(require("./H5pState"), exports);
210
- __exportStar(require("./H5pStatementResult"), exports);
211
208
  __exportStar(require("./HostedScormAccessPolicy"), exports);
212
209
  __exportStar(require("./HostedScormOutlineEntry"), exports);
213
210
  __exportStar(require("./HostedScormRollupPolicy"), exports);
@@ -235,6 +232,7 @@ __exportStar(require("./LoginResAuthData"), exports);
235
232
  __exportStar(require("./LoginResUserData"), exports);
236
233
  __exportStar(require("./LoginResUserDataSelectedPortal"), exports);
237
234
  __exportStar(require("./LrsCredential"), exports);
235
+ __exportStar(require("./LrsRecordingSettings"), exports);
238
236
  __exportStar(require("./LrsScope"), exports);
239
237
  __exportStar(require("./LrsStatement"), exports);
240
238
  __exportStar(require("./Paginated"), exports);
@@ -290,7 +288,6 @@ __exportStar(require("./PostEmailAssetComplete"), exports);
290
288
  __exportStar(require("./PostEmailAssetUpload"), exports);
291
289
  __exportStar(require("./PostEmailTemplatePreview"), exports);
292
290
  __exportStar(require("./PostEmailTemplateTestSend"), exports);
293
- __exportStar(require("./PostH5pStatement"), exports);
294
291
  __exportStar(require("./PostLearnerExperiencePreview"), exports);
295
292
  __exportStar(require("./PostLibraryQuiz"), exports);
296
293
  __exportStar(require("./PostLibraryQuizSession"), exports);
@@ -408,7 +405,6 @@ __exportStar(require("./ReportSort"), exports);
408
405
  __exportStar(require("./ResourceSessionEnvironment"), exports);
409
406
  __exportStar(require("./ResourceSessionScormApiLogItem"), exports);
410
407
  __exportStar(require("./ResourceType"), exports);
411
- __exportStar(require("./ResourceTypeAvailability"), exports);
412
408
  __exportStar(require("./RichTextAsset"), exports);
413
409
  __exportStar(require("./RichTextDocument"), exports);
414
410
  __exportStar(require("./RichTextInput"), exports);
@@ -12,7 +12,6 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
12
12
  | [**getContentLibraryTagList**](ContentLibraryApi.md#getcontentlibrarytaglist) | **GET** /content-library/tags | List portal Content Library tags |
13
13
  | [**getResource**](ContentLibraryApi.md#getresource) | **GET** /content-library/resources/{resourceId} | Get a resource and all versions |
14
14
  | [**getResourceList**](ContentLibraryApi.md#getresourcelist) | **GET** /content-library/resources | List reusable resources |
15
- | [**getResourceTypeList**](ContentLibraryApi.md#getresourcetypelist) | **GET** /content-library/resource-types | List the resource types and whether each is available on this platform |
16
15
  | [**getResourceUsage**](ContentLibraryApi.md#getresourceusage) | **GET** /content-library/resources/{resourceId}/usage | Get course and learner usage for a resource |
17
16
  | [**getResourceVersion**](ContentLibraryApi.md#getresourceversion) | **GET** /content-library/resources/{resourceId}/versions/{versionId} | Get a resource version |
18
17
  | [**postContentLibraryTag**](ContentLibraryApi.md#postcontentlibrarytag) | **POST** /content-library/tags | Create a portal Content Library tag |
@@ -222,7 +221,7 @@ example().catch(console.error);
222
221
  |------------- | ------------- | ------------- | -------------|
223
222
  | **kind** | `string` | | [Optional] [Defaults to `'resource'`] |
224
223
  | **search** | `string` | | [Optional] [Defaults to `undefined`] |
225
- | **resourceType** | `ResourceType` | | [Optional] [Defaults to `undefined`] [Enum: scorm, video, audio, image, pdf, powerpoint, file, link, rich_text, cmi5, h5p] |
224
+ | **resourceType** | `ResourceType` | | [Optional] [Defaults to `undefined`] [Enum: scorm, video, audio, image, pdf, powerpoint, file, link, rich_text, cmi5] |
226
225
  | **tagId** | `string` | | [Optional] [Defaults to `undefined`] |
227
226
  | **page** | `number` | | [Optional] [Defaults to `1`] |
228
227
  | **pageSize** | `number` | | [Optional] [Defaults to `20`] |
@@ -592,7 +591,7 @@ example().catch(console.error);
592
591
  | Name | Type | Description | Notes |
593
592
  |------------- | ------------- | ------------- | -------------|
594
593
  | **search** | `string` | | [Optional] [Defaults to `undefined`] |
595
- | **resourceType** | `ResourceType` | | [Optional] [Defaults to `undefined`] [Enum: scorm, video, audio, image, pdf, powerpoint, file, link, rich_text, cmi5, h5p] |
594
+ | **resourceType** | `ResourceType` | | [Optional] [Defaults to `undefined`] [Enum: scorm, video, audio, image, pdf, powerpoint, file, link, rich_text, cmi5] |
596
595
  | **tagId** | `string` | | [Optional] [Defaults to `undefined`] |
597
596
  | **page** | `number` | | [Optional] [Defaults to `1`] |
598
597
  | **pageSize** | `number` | | [Optional] [Defaults to `20`] |
@@ -619,66 +618,6 @@ No authorization required
619
618
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
620
619
 
621
620
 
622
- ## getResourceTypeList
623
-
624
- > GetResourceTypeList getResourceTypeList()
625
-
626
- List the resource types and whether each is available on this platform
627
-
628
- 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.
629
-
630
- ### Example
631
-
632
- ```ts
633
- import {
634
- Configuration,
635
- ContentLibraryApi,
636
- } from '@easyedu/js-lsm-api';
637
- import type { GetResourceTypeListRequest } from '@easyedu/js-lsm-api';
638
-
639
- async function example() {
640
- console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
641
- const api = new ContentLibraryApi();
642
-
643
- try {
644
- const data = await api.getResourceTypeList();
645
- console.log(data);
646
- } catch (error) {
647
- console.error(error);
648
- }
649
- }
650
-
651
- // Run the test
652
- example().catch(console.error);
653
- ```
654
-
655
- ### Parameters
656
-
657
- This endpoint does not need any parameter.
658
-
659
- ### Return type
660
-
661
- [**GetResourceTypeList**](GetResourceTypeList.md)
662
-
663
- ### Authorization
664
-
665
- No authorization required
666
-
667
- ### HTTP request headers
668
-
669
- - **Content-Type**: Not defined
670
- - **Accept**: `application/json`
671
-
672
-
673
- ### HTTP response details
674
- | Status code | Description | Response headers |
675
- |-------------|-------------|------------------|
676
- | **200** | Resource types | - |
677
- | **403** | Missing content_library:list | - |
678
-
679
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
680
-
681
-
682
621
  ## getResourceUsage
683
622
 
684
623
  > GetResourceUsage getResourceUsage(resourceId)
@@ -1139,7 +1078,7 @@ No authorization required
1139
1078
  |-------------|-------------|------------------|
1140
1079
  | **201** | Resource created | - |
1141
1080
  | **400** | Invalid resource payload | - |
1142
- | **403** | Missing content_library:create, or the resource type is not available on this platform | - |
1081
+ | **403** | Missing content_library:create | - |
1143
1082
 
1144
1083
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1145
1084
 
package/docs/LRSApi.md CHANGED
@@ -7,10 +7,12 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
7
7
  | [**deleteLrsCredential**](LRSApi.md#deletelrscredential) | **DELETE** /lrs/credentials/{credentialId} | Revoke an LRS credential |
8
8
  | [**deleteLrsUserRecords**](LRSApi.md#deletelrsuserrecords) | **DELETE** /lrs/users/{userId}/records | Permanently delete one learner\'s xAPI statements and documents from the selected portal |
9
9
  | [**getLrsCredentials**](LRSApi.md#getlrscredentials) | **GET** /lrs/credentials | List the selected portal\'s LRS credentials, the scopes they can be granted, and the xAPI endpoint |
10
+ | [**getLrsRecordingSettings**](LRSApi.md#getlrsrecordingsettings) | **GET** /lrs/recording-settings | Read recording preferences for future Edaxu outcomes in the selected portal |
10
11
  | [**getLrsStatements**](LRSApi.md#getlrsstatements) | **GET** /lrs/statements | Browse the xAPI statements stored for the selected portal, newest first |
11
12
  | [**getLrsStatementsExport**](LRSApi.md#getlrsstatementsexport) | **GET** /lrs/statements/export | Export the selected portal\'s xAPI statements as JSON or CSV, oldest first |
12
13
  | [**postLrsCredential**](LRSApi.md#postlrscredential) | **POST** /lrs/credentials | Create an LRS credential for the selected portal |
13
14
  | [**putLrsCredential**](LRSApi.md#putlrscredential) | **PUT** /lrs/credentials/{credentialId} | Rename an LRS credential or replace its scopes |
15
+ | [**putLrsRecordingSettings**](LRSApi.md#putlrsrecordingsettings) | **PUT** /lrs/recording-settings | Replace recording preferences for future Edaxu outcomes in the selected portal |
14
16
 
15
17
 
16
18
 
@@ -206,6 +208,64 @@ No authorization required
206
208
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
207
209
 
208
210
 
211
+ ## getLrsRecordingSettings
212
+
213
+ > LrsRecordingSettings getLrsRecordingSettings()
214
+
215
+ Read recording preferences for future Edaxu outcomes in the selected portal
216
+
217
+ ### Example
218
+
219
+ ```ts
220
+ import {
221
+ Configuration,
222
+ LRSApi,
223
+ } from '@easyedu/js-lsm-api';
224
+ import type { GetLrsRecordingSettingsRequest } from '@easyedu/js-lsm-api';
225
+
226
+ async function example() {
227
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
228
+ const api = new LRSApi();
229
+
230
+ try {
231
+ const data = await api.getLrsRecordingSettings();
232
+ console.log(data);
233
+ } catch (error) {
234
+ console.error(error);
235
+ }
236
+ }
237
+
238
+ // Run the test
239
+ example().catch(console.error);
240
+ ```
241
+
242
+ ### Parameters
243
+
244
+ This endpoint does not need any parameter.
245
+
246
+ ### Return type
247
+
248
+ [**LrsRecordingSettings**](LrsRecordingSettings.md)
249
+
250
+ ### Authorization
251
+
252
+ No authorization required
253
+
254
+ ### HTTP request headers
255
+
256
+ - **Content-Type**: Not defined
257
+ - **Accept**: `application/json`
258
+
259
+
260
+ ### HTTP response details
261
+ | Status code | Description | Response headers |
262
+ |-------------|-------------|------------------|
263
+ | **200** | Portal recording settings | - |
264
+ | **403** | Forbidden | - |
265
+
266
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
267
+
268
+
209
269
  ## getLrsStatements
210
270
 
211
271
  > GetLrsStatementList getLrsStatements(userId, courseId, verb, activity, registration, since, until, includeVoided, page, pageSize)
@@ -228,7 +288,7 @@ async function example() {
228
288
  const body = {
229
289
  // string | Only statements whose actor is this LMS user. (optional)
230
290
  userId: userId_example,
231
- // string | Only statements recorded in resource sessions of this course (cmi5 and H5P content). (optional)
291
+ // string | Only statements recorded in resource sessions of this course (cmi5 content). (optional)
232
292
  courseId: courseId_example,
233
293
  // string | Only statements with this verb IRI. (optional)
234
294
  verb: verb_example,
@@ -266,7 +326,7 @@ example().catch(console.error);
266
326
  | Name | Type | Description | Notes |
267
327
  |------------- | ------------- | ------------- | -------------|
268
328
  | **userId** | `string` | Only statements whose actor is this LMS user. | [Optional] [Defaults to `undefined`] |
269
- | **courseId** | `string` | Only statements recorded in resource sessions of this course (cmi5 and H5P content). | [Optional] [Defaults to `undefined`] |
329
+ | **courseId** | `string` | Only statements recorded in resource sessions of this course (cmi5 content). | [Optional] [Defaults to `undefined`] |
270
330
  | **verb** | `string` | Only statements with this verb IRI. | [Optional] [Defaults to `undefined`] |
271
331
  | **activity** | `string` | Only statements whose object is this activity IRI. | [Optional] [Defaults to `undefined`] |
272
332
  | **registration** | `string` | | [Optional] [Defaults to `undefined`] |
@@ -324,7 +384,7 @@ async function example() {
324
384
  format: format_example,
325
385
  // string | Only statements whose actor is this LMS user. (optional)
326
386
  userId: userId_example,
327
- // string | Only statements recorded in resource sessions of this course (cmi5 and H5P content). (optional)
387
+ // string | Only statements recorded in resource sessions of this course (cmi5 content). (optional)
328
388
  courseId: courseId_example,
329
389
  // string | Only statements with this verb IRI. (optional)
330
390
  verb: verb_example,
@@ -359,7 +419,7 @@ example().catch(console.error);
359
419
  |------------- | ------------- | ------------- | -------------|
360
420
  | **format** | `json`, `csv` | | [Optional] [Defaults to `'json'`] [Enum: json, csv] |
361
421
  | **userId** | `string` | Only statements whose actor is this LMS user. | [Optional] [Defaults to `undefined`] |
362
- | **courseId** | `string` | Only statements recorded in resource sessions of this course (cmi5 and H5P content). | [Optional] [Defaults to `undefined`] |
422
+ | **courseId** | `string` | Only statements recorded in resource sessions of this course (cmi5 content). | [Optional] [Defaults to `undefined`] |
363
423
  | **verb** | `string` | Only statements with this verb IRI. | [Optional] [Defaults to `undefined`] |
364
424
  | **activity** | `string` | Only statements whose object is this activity IRI. | [Optional] [Defaults to `undefined`] |
365
425
  | **registration** | `string` | | [Optional] [Defaults to `undefined`] |
@@ -529,3 +589,69 @@ No authorization required
529
589
 
530
590
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
531
591
 
592
+
593
+ ## putLrsRecordingSettings
594
+
595
+ > LrsRecordingSettings putLrsRecordingSettings(lrsRecordingSettings)
596
+
597
+ Replace recording preferences for future Edaxu outcomes in the selected portal
598
+
599
+ ### Example
600
+
601
+ ```ts
602
+ import {
603
+ Configuration,
604
+ LRSApi,
605
+ } from '@easyedu/js-lsm-api';
606
+ import type { PutLrsRecordingSettingsRequest } from '@easyedu/js-lsm-api';
607
+
608
+ async function example() {
609
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
610
+ const api = new LRSApi();
611
+
612
+ const body = {
613
+ // LrsRecordingSettings
614
+ lrsRecordingSettings: ...,
615
+ } satisfies PutLrsRecordingSettingsRequest;
616
+
617
+ try {
618
+ const data = await api.putLrsRecordingSettings(body);
619
+ console.log(data);
620
+ } catch (error) {
621
+ console.error(error);
622
+ }
623
+ }
624
+
625
+ // Run the test
626
+ example().catch(console.error);
627
+ ```
628
+
629
+ ### Parameters
630
+
631
+
632
+ | Name | Type | Description | Notes |
633
+ |------------- | ------------- | ------------- | -------------|
634
+ | **lrsRecordingSettings** | [LrsRecordingSettings](LrsRecordingSettings.md) | | |
635
+
636
+ ### Return type
637
+
638
+ [**LrsRecordingSettings**](LrsRecordingSettings.md)
639
+
640
+ ### Authorization
641
+
642
+ No authorization required
643
+
644
+ ### HTTP request headers
645
+
646
+ - **Content-Type**: `application/json`
647
+ - **Accept**: `application/json`
648
+
649
+
650
+ ### HTTP response details
651
+ | Status code | Description | Response headers |
652
+ |-------------|-------------|------------------|
653
+ | **200** | Portal recording settings | - |
654
+ | **403** | Forbidden | - |
655
+
656
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
657
+
@@ -0,0 +1,41 @@
1
+
2
+ # LrsRecordingSettings
3
+
4
+ Additional Edaxu events recorded from the time each category is enabled. All categories default to off.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `assessmentResults` | boolean
11
+ `contentActivity` | boolean
12
+ `courseCompletions` | boolean
13
+ `certificateIssuance` | boolean
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { LrsRecordingSettings } from '@easyedu/js-lsm-api'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "assessmentResults": null,
23
+ "contentActivity": null,
24
+ "courseCompletions": null,
25
+ "certificateIssuance": null,
26
+ } satisfies LrsRecordingSettings
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 LrsRecordingSettings
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
+