@easyedu/js-lsm-api 1.146.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 (57) hide show
  1. package/.openapi-generator/FILES +0 -10
  2. package/README.md +2 -11
  3. package/dist/apis/ContentLibraryApi.d.ts +0 -15
  4. package/dist/apis/ContentLibraryApi.js +0 -38
  5. package/dist/apis/PlayerApi.d.ts +0 -52
  6. package/dist/apis/PlayerApi.js +0 -131
  7. package/dist/esm/apis/ContentLibraryApi.d.ts +0 -15
  8. package/dist/esm/apis/ContentLibraryApi.js +0 -38
  9. package/dist/esm/apis/PlayerApi.d.ts +0 -52
  10. package/dist/esm/apis/PlayerApi.js +0 -131
  11. package/dist/esm/models/ResourceType.d.ts +0 -1
  12. package/dist/esm/models/ResourceType.js +1 -2
  13. package/dist/esm/models/index.d.ts +0 -5
  14. package/dist/esm/models/index.js +0 -5
  15. package/dist/models/ResourceType.d.ts +0 -1
  16. package/dist/models/ResourceType.js +1 -2
  17. package/dist/models/index.d.ts +0 -5
  18. package/dist/models/index.js +0 -5
  19. package/docs/ContentLibraryApi.md +3 -64
  20. package/docs/LRSApi.md +4 -4
  21. package/docs/PlayerApi.md +1 -213
  22. package/package.json +1 -1
  23. package/publish.log +2 -2
  24. package/src/apis/ContentLibraryApi.ts +0 -44
  25. package/src/apis/PlayerApi.ts +0 -185
  26. package/src/models/ResourceType.ts +1 -2
  27. package/src/models/index.ts +0 -5
  28. package/dist/esm/models/GetResourceTypeList.d.ts +0 -33
  29. package/dist/esm/models/GetResourceTypeList.js +0 -44
  30. package/dist/esm/models/H5pState.d.ts +0 -32
  31. package/dist/esm/models/H5pState.js +0 -43
  32. package/dist/esm/models/H5pStatementResult.d.ts +0 -44
  33. package/dist/esm/models/H5pStatementResult.js +0 -49
  34. package/dist/esm/models/PostH5pStatement.d.ts +0 -40
  35. package/dist/esm/models/PostH5pStatement.js +0 -47
  36. package/dist/esm/models/ResourceTypeAvailability.d.ts +0 -39
  37. package/dist/esm/models/ResourceTypeAvailability.js +0 -48
  38. package/dist/models/GetResourceTypeList.d.ts +0 -33
  39. package/dist/models/GetResourceTypeList.js +0 -51
  40. package/dist/models/H5pState.d.ts +0 -32
  41. package/dist/models/H5pState.js +0 -50
  42. package/dist/models/H5pStatementResult.d.ts +0 -44
  43. package/dist/models/H5pStatementResult.js +0 -56
  44. package/dist/models/PostH5pStatement.d.ts +0 -40
  45. package/dist/models/PostH5pStatement.js +0 -54
  46. package/dist/models/ResourceTypeAvailability.d.ts +0 -39
  47. package/dist/models/ResourceTypeAvailability.js +0 -55
  48. package/docs/GetResourceTypeList.md +0 -35
  49. package/docs/H5pState.md +0 -35
  50. package/docs/H5pStatementResult.md +0 -39
  51. package/docs/PostH5pStatement.md +0 -37
  52. package/docs/ResourceTypeAvailability.md +0 -37
  53. package/src/models/GetResourceTypeList.ts +0 -74
  54. package/src/models/H5pState.ts +0 -66
  55. package/src/models/H5pStatementResult.ts +0 -83
  56. package/src/models/PostH5pStatement.ts +0 -75
  57. package/src/models/ResourceTypeAvailability.ts +0 -85
@@ -30,9 +30,6 @@ import { GetResourceSessionDiagnosticsFromJSON, } from '../models/GetResourceSes
30
30
  import { GetResourceSessionListFromJSON, } from '../models/GetResourceSessionList';
31
31
  import { GetResourceSessionScormApiLogsFromJSON, } from '../models/GetResourceSessionScormApiLogs';
32
32
  import { GetResourceSessionScormDataFromJSON, } from '../models/GetResourceSessionScormData';
33
- import { H5pStateFromJSON, H5pStateToJSON, } from '../models/H5pState';
34
- import { H5pStatementResultFromJSON, } from '../models/H5pStatementResult';
35
- import { PostH5pStatementToJSON, } from '../models/PostH5pStatement';
36
33
  import { PostResourceSessionActivityEventToJSON, } from '../models/PostResourceSessionActivityEvent';
37
34
  import { PutResourceSessionOverrideToJSON, } from '../models/PutResourceSessionOverride';
38
35
  import { ScormGetValueResponseFromJSON, } from '../models/ScormGetValueResponse';
@@ -426,45 +423,6 @@ export class PlayerApi extends runtime.BaseAPI {
426
423
  return yield response.value();
427
424
  });
428
425
  }
429
- /**
430
- * Creates request options for getResourceSessionH5pState without sending the request
431
- */
432
- getResourceSessionH5pStateRequestOpts(requestParameters) {
433
- return __awaiter(this, void 0, void 0, function* () {
434
- if (requestParameters['sessionId'] == null) {
435
- throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getResourceSessionH5pState().');
436
- }
437
- const queryParameters = {};
438
- const headerParameters = {};
439
- let urlPath = `/resource/sessions/{sessionId}/h5p/state`;
440
- urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
441
- return {
442
- path: urlPath,
443
- method: 'GET',
444
- headers: headerParameters,
445
- query: queryParameters,
446
- };
447
- });
448
- }
449
- /**
450
- * Read the learner\'s saved H5P state for the session
451
- */
452
- getResourceSessionH5pStateRaw(requestParameters, initOverrides) {
453
- return __awaiter(this, void 0, void 0, function* () {
454
- const requestOptions = yield this.getResourceSessionH5pStateRequestOpts(requestParameters);
455
- const response = yield this.request(requestOptions, initOverrides);
456
- return new runtime.JSONApiResponse(response, (jsonValue) => H5pStateFromJSON(jsonValue));
457
- });
458
- }
459
- /**
460
- * Read the learner\'s saved H5P state for the session
461
- */
462
- getResourceSessionH5pState(requestParameters, initOverrides) {
463
- return __awaiter(this, void 0, void 0, function* () {
464
- const response = yield this.getResourceSessionH5pStateRaw(requestParameters, initOverrides);
465
- return yield response.value();
466
- });
467
- }
468
426
  /**
469
427
  * Creates request options for getResourceSessionList without sending the request
470
428
  */
@@ -924,95 +882,6 @@ export class PlayerApi extends runtime.BaseAPI {
924
882
  return yield response.value();
925
883
  });
926
884
  }
927
- /**
928
- * Creates request options for postResourceSessionH5pStatement without sending the request
929
- */
930
- postResourceSessionH5pStatementRequestOpts(requestParameters) {
931
- return __awaiter(this, void 0, void 0, function* () {
932
- if (requestParameters['sessionId'] == null) {
933
- throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling postResourceSessionH5pStatement().');
934
- }
935
- if (requestParameters['postH5pStatement'] == null) {
936
- throw new runtime.RequiredError('postH5pStatement', 'Required parameter "postH5pStatement" was null or undefined when calling postResourceSessionH5pStatement().');
937
- }
938
- const queryParameters = {};
939
- const headerParameters = {};
940
- headerParameters['Content-Type'] = 'application/json';
941
- let urlPath = `/resource/sessions/{sessionId}/h5p/statements`;
942
- urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
943
- return {
944
- path: urlPath,
945
- method: 'POST',
946
- headers: headerParameters,
947
- query: queryParameters,
948
- body: PostH5pStatementToJSON(requestParameters['postH5pStatement']),
949
- };
950
- });
951
- }
952
- /**
953
- * 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.
954
- * Record an xAPI statement emitted by the session\'s H5P content
955
- */
956
- postResourceSessionH5pStatementRaw(requestParameters, initOverrides) {
957
- return __awaiter(this, void 0, void 0, function* () {
958
- const requestOptions = yield this.postResourceSessionH5pStatementRequestOpts(requestParameters);
959
- const response = yield this.request(requestOptions, initOverrides);
960
- return new runtime.JSONApiResponse(response, (jsonValue) => H5pStatementResultFromJSON(jsonValue));
961
- });
962
- }
963
- /**
964
- * 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.
965
- * Record an xAPI statement emitted by the session\'s H5P content
966
- */
967
- postResourceSessionH5pStatement(requestParameters, initOverrides) {
968
- return __awaiter(this, void 0, void 0, function* () {
969
- const response = yield this.postResourceSessionH5pStatementRaw(requestParameters, initOverrides);
970
- return yield response.value();
971
- });
972
- }
973
- /**
974
- * Creates request options for putResourceSessionH5pState without sending the request
975
- */
976
- putResourceSessionH5pStateRequestOpts(requestParameters) {
977
- return __awaiter(this, void 0, void 0, function* () {
978
- if (requestParameters['sessionId'] == null) {
979
- throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling putResourceSessionH5pState().');
980
- }
981
- if (requestParameters['h5pState'] == null) {
982
- throw new runtime.RequiredError('h5pState', 'Required parameter "h5pState" was null or undefined when calling putResourceSessionH5pState().');
983
- }
984
- const queryParameters = {};
985
- const headerParameters = {};
986
- headerParameters['Content-Type'] = 'application/json';
987
- let urlPath = `/resource/sessions/{sessionId}/h5p/state`;
988
- urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
989
- return {
990
- path: urlPath,
991
- method: 'PUT',
992
- headers: headerParameters,
993
- query: queryParameters,
994
- body: H5pStateToJSON(requestParameters['h5pState']),
995
- };
996
- });
997
- }
998
- /**
999
- * Save the learner\'s in-progress H5P state for the session
1000
- */
1001
- putResourceSessionH5pStateRaw(requestParameters, initOverrides) {
1002
- return __awaiter(this, void 0, void 0, function* () {
1003
- const requestOptions = yield this.putResourceSessionH5pStateRequestOpts(requestParameters);
1004
- const response = yield this.request(requestOptions, initOverrides);
1005
- return new runtime.VoidApiResponse(response);
1006
- });
1007
- }
1008
- /**
1009
- * Save the learner\'s in-progress H5P state for the session
1010
- */
1011
- putResourceSessionH5pState(requestParameters, initOverrides) {
1012
- return __awaiter(this, void 0, void 0, function* () {
1013
- yield this.putResourceSessionH5pStateRaw(requestParameters, initOverrides);
1014
- });
1015
- }
1016
885
  /**
1017
886
  * Creates request options for putResourceSessionOverride without sending the request
1018
887
  */
@@ -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;
@@ -25,8 +25,7 @@ export const ResourceType = {
25
25
  File: 'file',
26
26
  Link: 'link',
27
27
  RichText: 'rich_text',
28
- Cmi5: 'cmi5',
29
- H5p: 'h5p'
28
+ Cmi5: 'cmi5'
30
29
  };
31
30
  export function instanceOfResourceType(value) {
32
31
  for (const key in 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';
@@ -273,7 +270,6 @@ export * from './PostEmailAssetComplete';
273
270
  export * from './PostEmailAssetUpload';
274
271
  export * from './PostEmailTemplatePreview';
275
272
  export * from './PostEmailTemplateTestSend';
276
- export * from './PostH5pStatement';
277
273
  export * from './PostLearnerExperiencePreview';
278
274
  export * from './PostLibraryQuiz';
279
275
  export * from './PostLibraryQuizSession';
@@ -391,7 +387,6 @@ export * from './ReportSort';
391
387
  export * from './ResourceSessionEnvironment';
392
388
  export * from './ResourceSessionScormApiLogItem';
393
389
  export * from './ResourceType';
394
- export * from './ResourceTypeAvailability';
395
390
  export * from './RichTextAsset';
396
391
  export * from './RichTextDocument';
397
392
  export * from './RichTextInput';
@@ -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';
@@ -275,7 +272,6 @@ export * from './PostEmailAssetComplete';
275
272
  export * from './PostEmailAssetUpload';
276
273
  export * from './PostEmailTemplatePreview';
277
274
  export * from './PostEmailTemplateTestSend';
278
- export * from './PostH5pStatement';
279
275
  export * from './PostLearnerExperiencePreview';
280
276
  export * from './PostLibraryQuiz';
281
277
  export * from './PostLibraryQuizSession';
@@ -393,7 +389,6 @@ export * from './ReportSort';
393
389
  export * from './ResourceSessionEnvironment';
394
390
  export * from './ResourceSessionScormApiLogItem';
395
391
  export * from './ResourceType';
396
- export * from './ResourceTypeAvailability';
397
392
  export * from './RichTextAsset';
398
393
  export * from './RichTextDocument';
399
394
  export * from './RichTextInput';
@@ -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';
@@ -273,7 +270,6 @@ export * from './PostEmailAssetComplete';
273
270
  export * from './PostEmailAssetUpload';
274
271
  export * from './PostEmailTemplatePreview';
275
272
  export * from './PostEmailTemplateTestSend';
276
- export * from './PostH5pStatement';
277
273
  export * from './PostLearnerExperiencePreview';
278
274
  export * from './PostLibraryQuiz';
279
275
  export * from './PostLibraryQuizSession';
@@ -391,7 +387,6 @@ export * from './ReportSort';
391
387
  export * from './ResourceSessionEnvironment';
392
388
  export * from './ResourceSessionScormApiLogItem';
393
389
  export * from './ResourceType';
394
- export * from './ResourceTypeAvailability';
395
390
  export * from './RichTextAsset';
396
391
  export * from './RichTextDocument';
397
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);
@@ -291,7 +288,6 @@ __exportStar(require("./PostEmailAssetComplete"), exports);
291
288
  __exportStar(require("./PostEmailAssetUpload"), exports);
292
289
  __exportStar(require("./PostEmailTemplatePreview"), exports);
293
290
  __exportStar(require("./PostEmailTemplateTestSend"), exports);
294
- __exportStar(require("./PostH5pStatement"), exports);
295
291
  __exportStar(require("./PostLearnerExperiencePreview"), exports);
296
292
  __exportStar(require("./PostLibraryQuiz"), exports);
297
293
  __exportStar(require("./PostLibraryQuizSession"), exports);
@@ -409,7 +405,6 @@ __exportStar(require("./ReportSort"), exports);
409
405
  __exportStar(require("./ResourceSessionEnvironment"), exports);
410
406
  __exportStar(require("./ResourceSessionScormApiLogItem"), exports);
411
407
  __exportStar(require("./ResourceType"), exports);
412
- __exportStar(require("./ResourceTypeAvailability"), exports);
413
408
  __exportStar(require("./RichTextAsset"), exports);
414
409
  __exportStar(require("./RichTextDocument"), exports);
415
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
@@ -288,7 +288,7 @@ async function example() {
288
288
  const body = {
289
289
  // string | Only statements whose actor is this LMS user. (optional)
290
290
  userId: userId_example,
291
- // 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)
292
292
  courseId: courseId_example,
293
293
  // string | Only statements with this verb IRI. (optional)
294
294
  verb: verb_example,
@@ -326,7 +326,7 @@ example().catch(console.error);
326
326
  | Name | Type | Description | Notes |
327
327
  |------------- | ------------- | ------------- | -------------|
328
328
  | **userId** | `string` | Only statements whose actor is this LMS user. | [Optional] [Defaults to `undefined`] |
329
- | **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`] |
330
330
  | **verb** | `string` | Only statements with this verb IRI. | [Optional] [Defaults to `undefined`] |
331
331
  | **activity** | `string` | Only statements whose object is this activity IRI. | [Optional] [Defaults to `undefined`] |
332
332
  | **registration** | `string` | | [Optional] [Defaults to `undefined`] |
@@ -384,7 +384,7 @@ async function example() {
384
384
  format: format_example,
385
385
  // string | Only statements whose actor is this LMS user. (optional)
386
386
  userId: userId_example,
387
- // 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)
388
388
  courseId: courseId_example,
389
389
  // string | Only statements with this verb IRI. (optional)
390
390
  verb: verb_example,
@@ -419,7 +419,7 @@ example().catch(console.error);
419
419
  |------------- | ------------- | ------------- | -------------|
420
420
  | **format** | `json`, `csv` | | [Optional] [Defaults to `'json'`] [Enum: json, csv] |
421
421
  | **userId** | `string` | Only statements whose actor is this LMS user. | [Optional] [Defaults to `undefined`] |
422
- | **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`] |
423
423
  | **verb** | `string` | Only statements with this verb IRI. | [Optional] [Defaults to `undefined`] |
424
424
  | **activity** | `string` | Only statements whose object is this activity IRI. | [Optional] [Defaults to `undefined`] |
425
425
  | **registration** | `string` | | [Optional] [Defaults to `undefined`] |