@easyedu/js-lsm-api 1.142.0 → 1.144.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.
@@ -174,6 +174,7 @@ docs/GetResourceSessionList.md
174
174
  docs/GetResourceSessionScormApiLogs.md
175
175
  docs/GetResourceSessionScormData.md
176
176
  docs/GetResourceSessionScormDataActivity.md
177
+ docs/GetResourceTypeList.md
177
178
  docs/GetResourceUsage.md
178
179
  docs/GetResourceUsageCoursesInner.md
179
180
  docs/GetResourceVersionUpload.md
@@ -415,6 +416,7 @@ docs/ReportingApi.md
415
416
  docs/ResourceSessionEnvironment.md
416
417
  docs/ResourceSessionScormApiLogItem.md
417
418
  docs/ResourceType.md
419
+ docs/ResourceTypeAvailability.md
418
420
  docs/RichTextApi.md
419
421
  docs/RichTextAsset.md
420
422
  docs/RichTextDocument.md
@@ -646,6 +648,7 @@ src/models/GetResourceSessionList.ts
646
648
  src/models/GetResourceSessionScormApiLogs.ts
647
649
  src/models/GetResourceSessionScormData.ts
648
650
  src/models/GetResourceSessionScormDataActivity.ts
651
+ src/models/GetResourceTypeList.ts
649
652
  src/models/GetResourceUsage.ts
650
653
  src/models/GetResourceUsageCoursesInner.ts
651
654
  src/models/GetResourceVersionUpload.ts
@@ -876,6 +879,7 @@ src/models/ReportSort.ts
876
879
  src/models/ResourceSessionEnvironment.ts
877
880
  src/models/ResourceSessionScormApiLogItem.ts
878
881
  src/models/ResourceType.ts
882
+ src/models/ResourceTypeAvailability.ts
879
883
  src/models/RichTextAsset.ts
880
884
  src/models/RichTextDocument.ts
881
885
  src/models/RichTextInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.142.0
1
+ # @easyedu/js-lsm-api@1.144.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -136,6 +136,7 @@ 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
139
140
  *ContentLibraryApi* | [**getResourceUsage**](docs/ContentLibraryApi.md#getresourceusage) | **GET** /content-library/resources/{resourceId}/usage | Get course and learner usage for a resource
140
141
  *ContentLibraryApi* | [**getResourceVersion**](docs/ContentLibraryApi.md#getresourceversion) | **GET** /content-library/resources/{resourceId}/versions/{versionId} | Get a resource version
141
142
  *ContentLibraryApi* | [**postContentLibraryTag**](docs/ContentLibraryApi.md#postcontentlibrarytag) | **POST** /content-library/tags | Create a portal Content Library tag
@@ -607,6 +608,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
607
608
  - [GetResourceSessionScormApiLogs](docs/GetResourceSessionScormApiLogs.md)
608
609
  - [GetResourceSessionScormData](docs/GetResourceSessionScormData.md)
609
610
  - [GetResourceSessionScormDataActivity](docs/GetResourceSessionScormDataActivity.md)
611
+ - [GetResourceTypeList](docs/GetResourceTypeList.md)
610
612
  - [GetResourceUsage](docs/GetResourceUsage.md)
611
613
  - [GetResourceUsageCoursesInner](docs/GetResourceUsageCoursesInner.md)
612
614
  - [GetResourceVersionUpload](docs/GetResourceVersionUpload.md)
@@ -837,6 +839,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
837
839
  - [ResourceSessionEnvironment](docs/ResourceSessionEnvironment.md)
838
840
  - [ResourceSessionScormApiLogItem](docs/ResourceSessionScormApiLogItem.md)
839
841
  - [ResourceType](docs/ResourceType.md)
842
+ - [ResourceTypeAvailability](docs/ResourceTypeAvailability.md)
840
843
  - [RichTextAsset](docs/RichTextAsset.md)
841
844
  - [RichTextDocument](docs/RichTextDocument.md)
842
845
  - [RichTextInput](docs/RichTextInput.md)
@@ -883,7 +886,7 @@ and is automatically generated by the
883
886
  [OpenAPI Generator](https://openapi-generator.tech) project:
884
887
 
885
888
  - API version: `1.0.0`
886
- - Package version: `1.142.0`
889
+ - Package version: `1.144.0`
887
890
  - Generator version: `7.22.0`
888
891
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
889
892
 
@@ -17,6 +17,7 @@ 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';
20
21
  import { type GetResourceUsage } from '../models/GetResourceUsage';
21
22
  import { type GetResourceVersionUpload } from '../models/GetResourceVersionUpload';
22
23
  import { type PostContentLibraryTag } from '../models/PostContentLibraryTag';
@@ -245,6 +246,20 @@ export declare class ContentLibraryApi extends runtime.BaseAPI {
245
246
  * List reusable resources
246
247
  */
247
248
  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>;
248
263
  /**
249
264
  * Creates request options for getResourceUsage without sending the request
250
265
  */
@@ -31,6 +31,7 @@ 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");
34
35
  const GetResourceUsage_1 = require("../models/GetResourceUsage");
35
36
  const GetResourceVersionUpload_1 = require("../models/GetResourceVersionUpload");
36
37
  const PostContentLibraryTag_1 = require("../models/PostContentLibraryTag");
@@ -415,6 +416,43 @@ class ContentLibraryApi extends runtime.BaseAPI {
415
416
  return yield response.value();
416
417
  });
417
418
  }
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
+ }
418
456
  /**
419
457
  * Creates request options for getResourceUsage without sending the request
420
458
  */
@@ -17,6 +17,7 @@ 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';
20
21
  import { type GetResourceUsage } from '../models/GetResourceUsage';
21
22
  import { type GetResourceVersionUpload } from '../models/GetResourceVersionUpload';
22
23
  import { type PostContentLibraryTag } from '../models/PostContentLibraryTag';
@@ -245,6 +246,20 @@ export declare class ContentLibraryApi extends runtime.BaseAPI {
245
246
  * List reusable resources
246
247
  */
247
248
  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>;
248
263
  /**
249
264
  * Creates request options for getResourceUsage without sending the request
250
265
  */
@@ -28,6 +28,7 @@ import { GetContentLibraryVersionFromJSON, } from '../models/GetContentLibraryVe
28
28
  import { GetResourceFromJSON, } from '../models/GetResource';
29
29
  import { GetResourceListFromJSON, } from '../models/GetResourceList';
30
30
  import { GetResourceSessionFromJSON, } from '../models/GetResourceSession';
31
+ import { GetResourceTypeListFromJSON, } from '../models/GetResourceTypeList';
31
32
  import { GetResourceUsageFromJSON, } from '../models/GetResourceUsage';
32
33
  import { GetResourceVersionUploadFromJSON, } from '../models/GetResourceVersionUpload';
33
34
  import { PostContentLibraryTagToJSON, } from '../models/PostContentLibraryTag';
@@ -412,6 +413,43 @@ export class ContentLibraryApi extends runtime.BaseAPI {
412
413
  return yield response.value();
413
414
  });
414
415
  }
416
+ /**
417
+ * Creates request options for getResourceTypeList without sending the request
418
+ */
419
+ getResourceTypeListRequestOpts() {
420
+ return __awaiter(this, void 0, void 0, function* () {
421
+ const queryParameters = {};
422
+ const headerParameters = {};
423
+ let urlPath = `/content-library/resource-types`;
424
+ return {
425
+ path: urlPath,
426
+ method: 'GET',
427
+ headers: headerParameters,
428
+ query: queryParameters,
429
+ };
430
+ });
431
+ }
432
+ /**
433
+ * 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.
434
+ * List the resource types and whether each is available on this platform
435
+ */
436
+ getResourceTypeListRaw(initOverrides) {
437
+ return __awaiter(this, void 0, void 0, function* () {
438
+ const requestOptions = yield this.getResourceTypeListRequestOpts();
439
+ const response = yield this.request(requestOptions, initOverrides);
440
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetResourceTypeListFromJSON(jsonValue));
441
+ });
442
+ }
443
+ /**
444
+ * 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.
445
+ * List the resource types and whether each is available on this platform
446
+ */
447
+ getResourceTypeList(initOverrides) {
448
+ return __awaiter(this, void 0, void 0, function* () {
449
+ const response = yield this.getResourceTypeListRaw(initOverrides);
450
+ return yield response.value();
451
+ });
452
+ }
415
453
  /**
416
454
  * Creates request options for getResourceUsage without sending the request
417
455
  */
@@ -0,0 +1,33 @@
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
+ import type { ResourceTypeAvailability } from './ResourceTypeAvailability';
13
+ /**
14
+ * Every kind of resource the Content Library knows, in display order.
15
+ * @export
16
+ * @interface GetResourceTypeList
17
+ */
18
+ export interface GetResourceTypeList {
19
+ /**
20
+ *
21
+ * @type {Array<ResourceTypeAvailability>}
22
+ * @memberof GetResourceTypeList
23
+ */
24
+ items: Array<ResourceTypeAvailability>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the GetResourceTypeList interface.
28
+ */
29
+ export declare function instanceOfGetResourceTypeList(value: object): value is GetResourceTypeList;
30
+ export declare function GetResourceTypeListFromJSON(json: any): GetResourceTypeList;
31
+ export declare function GetResourceTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceTypeList;
32
+ export declare function GetResourceTypeListToJSON(json: any): GetResourceTypeList;
33
+ export declare function GetResourceTypeListToJSONTyped(value?: GetResourceTypeList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ResourceTypeAvailabilityFromJSON, ResourceTypeAvailabilityToJSON, } from './ResourceTypeAvailability';
15
+ /**
16
+ * Check if a given object implements the GetResourceTypeList interface.
17
+ */
18
+ export function instanceOfGetResourceTypeList(value) {
19
+ if (!('items' in value) || value['items'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function GetResourceTypeListFromJSON(json) {
24
+ return GetResourceTypeListFromJSONTyped(json, false);
25
+ }
26
+ export function GetResourceTypeListFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'items': (json['items'].map(ResourceTypeAvailabilityFromJSON)),
32
+ };
33
+ }
34
+ export function GetResourceTypeListToJSON(json) {
35
+ return GetResourceTypeListToJSONTyped(json, false);
36
+ }
37
+ export function GetResourceTypeListToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'items': (value['items'].map(ResourceTypeAvailabilityToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,39 @@
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
+ import type { ResourceType } from './ResourceType';
13
+ /**
14
+ * One kind of resource and whether it can be used on this platform.
15
+ * @export
16
+ * @interface ResourceTypeAvailability
17
+ */
18
+ export interface ResourceTypeAvailability {
19
+ /**
20
+ *
21
+ * @type {ResourceType}
22
+ * @memberof ResourceTypeAvailability
23
+ */
24
+ resourceType: ResourceType;
25
+ /**
26
+ * Whether new resources of this type can be created and played on this platform. A type that is not available stays listed and readable where it already exists, but cannot be created, uploaded to, or played.
27
+ * @type {boolean}
28
+ * @memberof ResourceTypeAvailability
29
+ */
30
+ available: boolean;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ResourceTypeAvailability interface.
34
+ */
35
+ export declare function instanceOfResourceTypeAvailability(value: object): value is ResourceTypeAvailability;
36
+ export declare function ResourceTypeAvailabilityFromJSON(json: any): ResourceTypeAvailability;
37
+ export declare function ResourceTypeAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceTypeAvailability;
38
+ export declare function ResourceTypeAvailabilityToJSON(json: any): ResourceTypeAvailability;
39
+ export declare function ResourceTypeAvailabilityToJSONTyped(value?: ResourceTypeAvailability | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ResourceTypeFromJSON, ResourceTypeToJSON, } from './ResourceType';
15
+ /**
16
+ * Check if a given object implements the ResourceTypeAvailability interface.
17
+ */
18
+ export function instanceOfResourceTypeAvailability(value) {
19
+ if (!('resourceType' in value) || value['resourceType'] === undefined)
20
+ return false;
21
+ if (!('available' in value) || value['available'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function ResourceTypeAvailabilityFromJSON(json) {
26
+ return ResourceTypeAvailabilityFromJSONTyped(json, false);
27
+ }
28
+ export function ResourceTypeAvailabilityFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'resourceType': ResourceTypeFromJSON(json['resource_type']),
34
+ 'available': json['available'],
35
+ };
36
+ }
37
+ export function ResourceTypeAvailabilityToJSON(json) {
38
+ return ResourceTypeAvailabilityToJSONTyped(json, false);
39
+ }
40
+ export function ResourceTypeAvailabilityToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'resource_type': ResourceTypeToJSON(value['resourceType']),
46
+ 'available': value['available'],
47
+ };
48
+ }
@@ -159,6 +159,7 @@ export * from './GetResourceSessionList';
159
159
  export * from './GetResourceSessionScormApiLogs';
160
160
  export * from './GetResourceSessionScormData';
161
161
  export * from './GetResourceSessionScormDataActivity';
162
+ export * from './GetResourceTypeList';
162
163
  export * from './GetResourceUsage';
163
164
  export * from './GetResourceUsageCoursesInner';
164
165
  export * from './GetResourceVersionUpload';
@@ -389,6 +390,7 @@ export * from './ReportSort';
389
390
  export * from './ResourceSessionEnvironment';
390
391
  export * from './ResourceSessionScormApiLogItem';
391
392
  export * from './ResourceType';
393
+ export * from './ResourceTypeAvailability';
392
394
  export * from './RichTextAsset';
393
395
  export * from './RichTextDocument';
394
396
  export * from './RichTextInput';
@@ -161,6 +161,7 @@ export * from './GetResourceSessionList';
161
161
  export * from './GetResourceSessionScormApiLogs';
162
162
  export * from './GetResourceSessionScormData';
163
163
  export * from './GetResourceSessionScormDataActivity';
164
+ export * from './GetResourceTypeList';
164
165
  export * from './GetResourceUsage';
165
166
  export * from './GetResourceUsageCoursesInner';
166
167
  export * from './GetResourceVersionUpload';
@@ -391,6 +392,7 @@ export * from './ReportSort';
391
392
  export * from './ResourceSessionEnvironment';
392
393
  export * from './ResourceSessionScormApiLogItem';
393
394
  export * from './ResourceType';
395
+ export * from './ResourceTypeAvailability';
394
396
  export * from './RichTextAsset';
395
397
  export * from './RichTextDocument';
396
398
  export * from './RichTextInput';
@@ -0,0 +1,33 @@
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
+ import type { ResourceTypeAvailability } from './ResourceTypeAvailability';
13
+ /**
14
+ * Every kind of resource the Content Library knows, in display order.
15
+ * @export
16
+ * @interface GetResourceTypeList
17
+ */
18
+ export interface GetResourceTypeList {
19
+ /**
20
+ *
21
+ * @type {Array<ResourceTypeAvailability>}
22
+ * @memberof GetResourceTypeList
23
+ */
24
+ items: Array<ResourceTypeAvailability>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the GetResourceTypeList interface.
28
+ */
29
+ export declare function instanceOfGetResourceTypeList(value: object): value is GetResourceTypeList;
30
+ export declare function GetResourceTypeListFromJSON(json: any): GetResourceTypeList;
31
+ export declare function GetResourceTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceTypeList;
32
+ export declare function GetResourceTypeListToJSON(json: any): GetResourceTypeList;
33
+ export declare function GetResourceTypeListToJSONTyped(value?: GetResourceTypeList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfGetResourceTypeList = instanceOfGetResourceTypeList;
17
+ exports.GetResourceTypeListFromJSON = GetResourceTypeListFromJSON;
18
+ exports.GetResourceTypeListFromJSONTyped = GetResourceTypeListFromJSONTyped;
19
+ exports.GetResourceTypeListToJSON = GetResourceTypeListToJSON;
20
+ exports.GetResourceTypeListToJSONTyped = GetResourceTypeListToJSONTyped;
21
+ const ResourceTypeAvailability_1 = require("./ResourceTypeAvailability");
22
+ /**
23
+ * Check if a given object implements the GetResourceTypeList interface.
24
+ */
25
+ function instanceOfGetResourceTypeList(value) {
26
+ if (!('items' in value) || value['items'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function GetResourceTypeListFromJSON(json) {
31
+ return GetResourceTypeListFromJSONTyped(json, false);
32
+ }
33
+ function GetResourceTypeListFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'items': (json['items'].map(ResourceTypeAvailability_1.ResourceTypeAvailabilityFromJSON)),
39
+ };
40
+ }
41
+ function GetResourceTypeListToJSON(json) {
42
+ return GetResourceTypeListToJSONTyped(json, false);
43
+ }
44
+ function GetResourceTypeListToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'items': (value['items'].map(ResourceTypeAvailability_1.ResourceTypeAvailabilityToJSON)),
50
+ };
51
+ }
@@ -0,0 +1,39 @@
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
+ import type { ResourceType } from './ResourceType';
13
+ /**
14
+ * One kind of resource and whether it can be used on this platform.
15
+ * @export
16
+ * @interface ResourceTypeAvailability
17
+ */
18
+ export interface ResourceTypeAvailability {
19
+ /**
20
+ *
21
+ * @type {ResourceType}
22
+ * @memberof ResourceTypeAvailability
23
+ */
24
+ resourceType: ResourceType;
25
+ /**
26
+ * Whether new resources of this type can be created and played on this platform. A type that is not available stays listed and readable where it already exists, but cannot be created, uploaded to, or played.
27
+ * @type {boolean}
28
+ * @memberof ResourceTypeAvailability
29
+ */
30
+ available: boolean;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ResourceTypeAvailability interface.
34
+ */
35
+ export declare function instanceOfResourceTypeAvailability(value: object): value is ResourceTypeAvailability;
36
+ export declare function ResourceTypeAvailabilityFromJSON(json: any): ResourceTypeAvailability;
37
+ export declare function ResourceTypeAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceTypeAvailability;
38
+ export declare function ResourceTypeAvailabilityToJSON(json: any): ResourceTypeAvailability;
39
+ export declare function ResourceTypeAvailabilityToJSONTyped(value?: ResourceTypeAvailability | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfResourceTypeAvailability = instanceOfResourceTypeAvailability;
17
+ exports.ResourceTypeAvailabilityFromJSON = ResourceTypeAvailabilityFromJSON;
18
+ exports.ResourceTypeAvailabilityFromJSONTyped = ResourceTypeAvailabilityFromJSONTyped;
19
+ exports.ResourceTypeAvailabilityToJSON = ResourceTypeAvailabilityToJSON;
20
+ exports.ResourceTypeAvailabilityToJSONTyped = ResourceTypeAvailabilityToJSONTyped;
21
+ const ResourceType_1 = require("./ResourceType");
22
+ /**
23
+ * Check if a given object implements the ResourceTypeAvailability interface.
24
+ */
25
+ function instanceOfResourceTypeAvailability(value) {
26
+ if (!('resourceType' in value) || value['resourceType'] === undefined)
27
+ return false;
28
+ if (!('available' in value) || value['available'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function ResourceTypeAvailabilityFromJSON(json) {
33
+ return ResourceTypeAvailabilityFromJSONTyped(json, false);
34
+ }
35
+ function ResourceTypeAvailabilityFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'resourceType': (0, ResourceType_1.ResourceTypeFromJSON)(json['resource_type']),
41
+ 'available': json['available'],
42
+ };
43
+ }
44
+ function ResourceTypeAvailabilityToJSON(json) {
45
+ return ResourceTypeAvailabilityToJSONTyped(json, false);
46
+ }
47
+ function ResourceTypeAvailabilityToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'resource_type': (0, ResourceType_1.ResourceTypeToJSON)(value['resourceType']),
53
+ 'available': value['available'],
54
+ };
55
+ }
@@ -159,6 +159,7 @@ export * from './GetResourceSessionList';
159
159
  export * from './GetResourceSessionScormApiLogs';
160
160
  export * from './GetResourceSessionScormData';
161
161
  export * from './GetResourceSessionScormDataActivity';
162
+ export * from './GetResourceTypeList';
162
163
  export * from './GetResourceUsage';
163
164
  export * from './GetResourceUsageCoursesInner';
164
165
  export * from './GetResourceVersionUpload';
@@ -389,6 +390,7 @@ export * from './ReportSort';
389
390
  export * from './ResourceSessionEnvironment';
390
391
  export * from './ResourceSessionScormApiLogItem';
391
392
  export * from './ResourceType';
393
+ export * from './ResourceTypeAvailability';
392
394
  export * from './RichTextAsset';
393
395
  export * from './RichTextDocument';
394
396
  export * from './RichTextInput';
@@ -177,6 +177,7 @@ __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);
180
181
  __exportStar(require("./GetResourceUsage"), exports);
181
182
  __exportStar(require("./GetResourceUsageCoursesInner"), exports);
182
183
  __exportStar(require("./GetResourceVersionUpload"), exports);
@@ -407,6 +408,7 @@ __exportStar(require("./ReportSort"), exports);
407
408
  __exportStar(require("./ResourceSessionEnvironment"), exports);
408
409
  __exportStar(require("./ResourceSessionScormApiLogItem"), exports);
409
410
  __exportStar(require("./ResourceType"), exports);
411
+ __exportStar(require("./ResourceTypeAvailability"), exports);
410
412
  __exportStar(require("./RichTextAsset"), exports);
411
413
  __exportStar(require("./RichTextDocument"), exports);
412
414
  __exportStar(require("./RichTextInput"), exports);
@@ -12,6 +12,7 @@ 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 |
15
16
  | [**getResourceUsage**](ContentLibraryApi.md#getresourceusage) | **GET** /content-library/resources/{resourceId}/usage | Get course and learner usage for a resource |
16
17
  | [**getResourceVersion**](ContentLibraryApi.md#getresourceversion) | **GET** /content-library/resources/{resourceId}/versions/{versionId} | Get a resource version |
17
18
  | [**postContentLibraryTag**](ContentLibraryApi.md#postcontentlibrarytag) | **POST** /content-library/tags | Create a portal Content Library tag |
@@ -618,6 +619,66 @@ No authorization required
618
619
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
619
620
 
620
621
 
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
+
621
682
  ## getResourceUsage
622
683
 
623
684
  > GetResourceUsage getResourceUsage(resourceId)
@@ -1078,6 +1139,7 @@ No authorization required
1078
1139
  |-------------|-------------|------------------|
1079
1140
  | **201** | Resource created | - |
1080
1141
  | **400** | Invalid resource payload | - |
1142
+ | **403** | Missing content_library:create, or the resource type is not available on this platform | - |
1081
1143
 
1082
1144
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1083
1145
 
@@ -0,0 +1,35 @@
1
+
2
+ # GetResourceTypeList
3
+
4
+ Every kind of resource the Content Library knows, in display order.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `items` | [Array&lt;ResourceTypeAvailability&gt;](ResourceTypeAvailability.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { GetResourceTypeList } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "items": null,
20
+ } satisfies GetResourceTypeList
21
+
22
+ console.log(example)
23
+
24
+ // Convert the instance to a JSON string
25
+ const exampleJSON: string = JSON.stringify(example)
26
+ console.log(exampleJSON)
27
+
28
+ // Parse the JSON string back to an object
29
+ const exampleParsed = JSON.parse(exampleJSON) as GetResourceTypeList
30
+ console.log(exampleParsed)
31
+ ```
32
+
33
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
34
+
35
+
@@ -0,0 +1,37 @@
1
+
2
+ # ResourceTypeAvailability
3
+
4
+ One kind of resource and whether it can be used on this platform.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `resourceType` | [ResourceType](ResourceType.md)
11
+ `available` | boolean
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { ResourceTypeAvailability } from '@easyedu/js-lsm-api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "resourceType": null,
21
+ "available": null,
22
+ } satisfies ResourceTypeAvailability
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as ResourceTypeAvailability
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.142.0",
3
+ "version": "1.144.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
8
+ "url": "https://github.com/ft-lms/lms-backend.git"
9
9
  },
10
10
  "main": "./dist/index.js",
11
11
  "types": "./dist/index.d.ts",
package/publish.log ADDED
@@ -0,0 +1,10 @@
1
+ npm warn Unknown user config "always-auth". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
2
+
3
+ > @easyedu/js-lsm-api@1.144.0 prepare
4
+ > npm run build
5
+
6
+ npm warn Unknown user config "always-auth". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
7
+
8
+ > @easyedu/js-lsm-api@1.144.0 build
9
+ > tsc && tsc -p tsconfig.esm.json
10
+
@@ -48,6 +48,11 @@ import {
48
48
  GetResourceSessionFromJSON,
49
49
  GetResourceSessionToJSON,
50
50
  } from '../models/GetResourceSession';
51
+ import {
52
+ type GetResourceTypeList,
53
+ GetResourceTypeListFromJSON,
54
+ GetResourceTypeListToJSON,
55
+ } from '../models/GetResourceTypeList';
51
56
  import {
52
57
  type GetResourceUsage,
53
58
  GetResourceUsageFromJSON,
@@ -690,6 +695,45 @@ export class ContentLibraryApi extends runtime.BaseAPI {
690
695
  return await response.value();
691
696
  }
692
697
 
698
+ /**
699
+ * Creates request options for getResourceTypeList without sending the request
700
+ */
701
+ async getResourceTypeListRequestOpts(): Promise<runtime.RequestOpts> {
702
+ const queryParameters: any = {};
703
+
704
+ const headerParameters: runtime.HTTPHeaders = {};
705
+
706
+
707
+ let urlPath = `/content-library/resource-types`;
708
+
709
+ return {
710
+ path: urlPath,
711
+ method: 'GET',
712
+ headers: headerParameters,
713
+ query: queryParameters,
714
+ };
715
+ }
716
+
717
+ /**
718
+ * 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.
719
+ * List the resource types and whether each is available on this platform
720
+ */
721
+ async getResourceTypeListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetResourceTypeList>> {
722
+ const requestOptions = await this.getResourceTypeListRequestOpts();
723
+ const response = await this.request(requestOptions, initOverrides);
724
+
725
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetResourceTypeListFromJSON(jsonValue));
726
+ }
727
+
728
+ /**
729
+ * 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.
730
+ * List the resource types and whether each is available on this platform
731
+ */
732
+ async getResourceTypeList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceTypeList> {
733
+ const response = await this.getResourceTypeListRaw(initOverrides);
734
+ return await response.value();
735
+ }
736
+
693
737
  /**
694
738
  * Creates request options for getResourceUsage without sending the request
695
739
  */
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ResourceTypeAvailability } from './ResourceTypeAvailability';
17
+ import {
18
+ ResourceTypeAvailabilityFromJSON,
19
+ ResourceTypeAvailabilityFromJSONTyped,
20
+ ResourceTypeAvailabilityToJSON,
21
+ ResourceTypeAvailabilityToJSONTyped,
22
+ } from './ResourceTypeAvailability';
23
+
24
+ /**
25
+ * Every kind of resource the Content Library knows, in display order.
26
+ * @export
27
+ * @interface GetResourceTypeList
28
+ */
29
+ export interface GetResourceTypeList {
30
+ /**
31
+ *
32
+ * @type {Array<ResourceTypeAvailability>}
33
+ * @memberof GetResourceTypeList
34
+ */
35
+ items: Array<ResourceTypeAvailability>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the GetResourceTypeList interface.
40
+ */
41
+ export function instanceOfGetResourceTypeList(value: object): value is GetResourceTypeList {
42
+ if (!('items' in value) || value['items'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function GetResourceTypeListFromJSON(json: any): GetResourceTypeList {
47
+ return GetResourceTypeListFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function GetResourceTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceTypeList {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'items': ((json['items'] as Array<any>).map(ResourceTypeAvailabilityFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function GetResourceTypeListToJSON(json: any): GetResourceTypeList {
61
+ return GetResourceTypeListToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetResourceTypeListToJSONTyped(value?: GetResourceTypeList | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'items': ((value['items'] as Array<any>).map(ResourceTypeAvailabilityToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,85 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ResourceType } from './ResourceType';
17
+ import {
18
+ ResourceTypeFromJSON,
19
+ ResourceTypeFromJSONTyped,
20
+ ResourceTypeToJSON,
21
+ ResourceTypeToJSONTyped,
22
+ } from './ResourceType';
23
+
24
+ /**
25
+ * One kind of resource and whether it can be used on this platform.
26
+ * @export
27
+ * @interface ResourceTypeAvailability
28
+ */
29
+ export interface ResourceTypeAvailability {
30
+ /**
31
+ *
32
+ * @type {ResourceType}
33
+ * @memberof ResourceTypeAvailability
34
+ */
35
+ resourceType: ResourceType;
36
+ /**
37
+ * Whether new resources of this type can be created and played on this platform. A type that is not available stays listed and readable where it already exists, but cannot be created, uploaded to, or played.
38
+ * @type {boolean}
39
+ * @memberof ResourceTypeAvailability
40
+ */
41
+ available: boolean;
42
+ }
43
+
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the ResourceTypeAvailability interface.
48
+ */
49
+ export function instanceOfResourceTypeAvailability(value: object): value is ResourceTypeAvailability {
50
+ if (!('resourceType' in value) || value['resourceType'] === undefined) return false;
51
+ if (!('available' in value) || value['available'] === undefined) return false;
52
+ return true;
53
+ }
54
+
55
+ export function ResourceTypeAvailabilityFromJSON(json: any): ResourceTypeAvailability {
56
+ return ResourceTypeAvailabilityFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function ResourceTypeAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceTypeAvailability {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'resourceType': ResourceTypeFromJSON(json['resource_type']),
66
+ 'available': json['available'],
67
+ };
68
+ }
69
+
70
+ export function ResourceTypeAvailabilityToJSON(json: any): ResourceTypeAvailability {
71
+ return ResourceTypeAvailabilityToJSONTyped(json, false);
72
+ }
73
+
74
+ export function ResourceTypeAvailabilityToJSONTyped(value?: ResourceTypeAvailability | null, ignoreDiscriminator: boolean = false): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+
79
+ return {
80
+
81
+ 'resource_type': ResourceTypeToJSON(value['resourceType']),
82
+ 'available': value['available'],
83
+ };
84
+ }
85
+
@@ -161,6 +161,7 @@ export * from './GetResourceSessionList';
161
161
  export * from './GetResourceSessionScormApiLogs';
162
162
  export * from './GetResourceSessionScormData';
163
163
  export * from './GetResourceSessionScormDataActivity';
164
+ export * from './GetResourceTypeList';
164
165
  export * from './GetResourceUsage';
165
166
  export * from './GetResourceUsageCoursesInner';
166
167
  export * from './GetResourceVersionUpload';
@@ -391,6 +392,7 @@ export * from './ReportSort';
391
392
  export * from './ResourceSessionEnvironment';
392
393
  export * from './ResourceSessionScormApiLogItem';
393
394
  export * from './ResourceType';
395
+ export * from './ResourceTypeAvailability';
394
396
  export * from './RichTextAsset';
395
397
  export * from './RichTextDocument';
396
398
  export * from './RichTextInput';