@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
@@ -1,32 +0,0 @@
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
- * The saved in-progress state of an H5P activity for the session's learner.
14
- * @export
15
- * @interface H5pState
16
- */
17
- export interface H5pState {
18
- /**
19
- * The value H5P returned from getCurrentState, or null when nothing is saved. Content types choose its shape: some return an object, others a list or a plain value.
20
- * @type {object}
21
- * @memberof H5pState
22
- */
23
- state: object | null;
24
- }
25
- /**
26
- * Check if a given object implements the H5pState interface.
27
- */
28
- export declare function instanceOfH5pState(value: object): value is H5pState;
29
- export declare function H5pStateFromJSON(json: any): H5pState;
30
- export declare function H5pStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): H5pState;
31
- export declare function H5pStateToJSON(json: any): H5pState;
32
- export declare function H5pStateToJSONTyped(value?: H5pState | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
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.instanceOfH5pState = instanceOfH5pState;
17
- exports.H5pStateFromJSON = H5pStateFromJSON;
18
- exports.H5pStateFromJSONTyped = H5pStateFromJSONTyped;
19
- exports.H5pStateToJSON = H5pStateToJSON;
20
- exports.H5pStateToJSONTyped = H5pStateToJSONTyped;
21
- /**
22
- * Check if a given object implements the H5pState interface.
23
- */
24
- function instanceOfH5pState(value) {
25
- if (!('state' in value) || value['state'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function H5pStateFromJSON(json) {
30
- return H5pStateFromJSONTyped(json, false);
31
- }
32
- function H5pStateFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'state': json['state'],
38
- };
39
- }
40
- function H5pStateToJSON(json) {
41
- return H5pStateToJSONTyped(json, false);
42
- }
43
- function H5pStateToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'state': value['state'],
49
- };
50
- }
@@ -1,44 +0,0 @@
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
- * The learner's progress on the H5P activity after a statement was recorded.
14
- * @export
15
- * @interface H5pStatementResult
16
- */
17
- export interface H5pStatementResult {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof H5pStatementResult
22
- */
23
- completionStatus: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof H5pStatementResult
28
- */
29
- gradeStatus: string;
30
- /**
31
- * Best score so far, as a percentage from 0 to 100.
32
- * @type {number}
33
- * @memberof H5pStatementResult
34
- */
35
- scoreRaw?: number | null;
36
- }
37
- /**
38
- * Check if a given object implements the H5pStatementResult interface.
39
- */
40
- export declare function instanceOfH5pStatementResult(value: object): value is H5pStatementResult;
41
- export declare function H5pStatementResultFromJSON(json: any): H5pStatementResult;
42
- export declare function H5pStatementResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): H5pStatementResult;
43
- export declare function H5pStatementResultToJSON(json: any): H5pStatementResult;
44
- export declare function H5pStatementResultToJSONTyped(value?: H5pStatementResult | null, ignoreDiscriminator?: boolean): any;
@@ -1,56 +0,0 @@
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.instanceOfH5pStatementResult = instanceOfH5pStatementResult;
17
- exports.H5pStatementResultFromJSON = H5pStatementResultFromJSON;
18
- exports.H5pStatementResultFromJSONTyped = H5pStatementResultFromJSONTyped;
19
- exports.H5pStatementResultToJSON = H5pStatementResultToJSON;
20
- exports.H5pStatementResultToJSONTyped = H5pStatementResultToJSONTyped;
21
- /**
22
- * Check if a given object implements the H5pStatementResult interface.
23
- */
24
- function instanceOfH5pStatementResult(value) {
25
- if (!('completionStatus' in value) || value['completionStatus'] === undefined)
26
- return false;
27
- if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function H5pStatementResultFromJSON(json) {
32
- return H5pStatementResultFromJSONTyped(json, false);
33
- }
34
- function H5pStatementResultFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'completionStatus': json['completion_status'],
40
- 'gradeStatus': json['grade_status'],
41
- 'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
42
- };
43
- }
44
- function H5pStatementResultToJSON(json) {
45
- return H5pStatementResultToJSONTyped(json, false);
46
- }
47
- function H5pStatementResultToJSONTyped(value, ignoreDiscriminator = false) {
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'completion_status': value['completionStatus'],
53
- 'grade_status': value['gradeStatus'],
54
- 'score_raw': value['scoreRaw'],
55
- };
56
- }
@@ -1,40 +0,0 @@
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
- * An xAPI statement emitted by H5P content in the learner's browser.
14
- * @export
15
- * @interface PostH5pStatement
16
- */
17
- export interface PostH5pStatement {
18
- /**
19
- * Client-generated id that makes a retried request idempotent. It becomes the statement id.
20
- * @type {string}
21
- * @memberof PostH5pStatement
22
- */
23
- eventId: string;
24
- /**
25
- * The statement as H5P produced it. The server replaces the actor with the session's learner, the object id with the resource's activity id, and adds the session as the registration.
26
- * @type {{ [key: string]: any; }}
27
- * @memberof PostH5pStatement
28
- */
29
- statement: {
30
- [key: string]: any;
31
- };
32
- }
33
- /**
34
- * Check if a given object implements the PostH5pStatement interface.
35
- */
36
- export declare function instanceOfPostH5pStatement(value: object): value is PostH5pStatement;
37
- export declare function PostH5pStatementFromJSON(json: any): PostH5pStatement;
38
- export declare function PostH5pStatementFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostH5pStatement;
39
- export declare function PostH5pStatementToJSON(json: any): PostH5pStatement;
40
- export declare function PostH5pStatementToJSONTyped(value?: PostH5pStatement | null, ignoreDiscriminator?: boolean): any;
@@ -1,54 +0,0 @@
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.instanceOfPostH5pStatement = instanceOfPostH5pStatement;
17
- exports.PostH5pStatementFromJSON = PostH5pStatementFromJSON;
18
- exports.PostH5pStatementFromJSONTyped = PostH5pStatementFromJSONTyped;
19
- exports.PostH5pStatementToJSON = PostH5pStatementToJSON;
20
- exports.PostH5pStatementToJSONTyped = PostH5pStatementToJSONTyped;
21
- /**
22
- * Check if a given object implements the PostH5pStatement interface.
23
- */
24
- function instanceOfPostH5pStatement(value) {
25
- if (!('eventId' in value) || value['eventId'] === undefined)
26
- return false;
27
- if (!('statement' in value) || value['statement'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function PostH5pStatementFromJSON(json) {
32
- return PostH5pStatementFromJSONTyped(json, false);
33
- }
34
- function PostH5pStatementFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'eventId': json['event_id'],
40
- 'statement': json['statement'],
41
- };
42
- }
43
- function PostH5pStatementToJSON(json) {
44
- return PostH5pStatementToJSONTyped(json, false);
45
- }
46
- function PostH5pStatementToJSONTyped(value, ignoreDiscriminator = false) {
47
- if (value == null) {
48
- return value;
49
- }
50
- return {
51
- 'event_id': value['eventId'],
52
- 'statement': value['statement'],
53
- };
54
- }
@@ -1,39 +0,0 @@
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;
@@ -1,55 +0,0 @@
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
- }
@@ -1,35 +0,0 @@
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<ResourceTypeAvailability>](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
-
package/docs/H5pState.md DELETED
@@ -1,35 +0,0 @@
1
-
2
- # H5pState
3
-
4
- The saved in-progress state of an H5P activity for the session\'s learner.
5
-
6
- ## Properties
7
-
8
- Name | Type
9
- ------------ | -------------
10
- `state` | object
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { H5pState } from '@easyedu/js-lsm-api'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "state": null,
20
- } satisfies H5pState
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 H5pState
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
-
@@ -1,39 +0,0 @@
1
-
2
- # H5pStatementResult
3
-
4
- The learner\'s progress on the H5P activity after a statement was recorded.
5
-
6
- ## Properties
7
-
8
- Name | Type
9
- ------------ | -------------
10
- `completionStatus` | string
11
- `gradeStatus` | string
12
- `scoreRaw` | number
13
-
14
- ## Example
15
-
16
- ```typescript
17
- import type { H5pStatementResult } from '@easyedu/js-lsm-api'
18
-
19
- // TODO: Update the object below with actual values
20
- const example = {
21
- "completionStatus": null,
22
- "gradeStatus": null,
23
- "scoreRaw": null,
24
- } satisfies H5pStatementResult
25
-
26
- console.log(example)
27
-
28
- // Convert the instance to a JSON string
29
- const exampleJSON: string = JSON.stringify(example)
30
- console.log(exampleJSON)
31
-
32
- // Parse the JSON string back to an object
33
- const exampleParsed = JSON.parse(exampleJSON) as H5pStatementResult
34
- console.log(exampleParsed)
35
- ```
36
-
37
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
-
39
-
@@ -1,37 +0,0 @@
1
-
2
- # PostH5pStatement
3
-
4
- An xAPI statement emitted by H5P content in the learner\'s browser.
5
-
6
- ## Properties
7
-
8
- Name | Type
9
- ------------ | -------------
10
- `eventId` | string
11
- `statement` | { [key: string]: any; }
12
-
13
- ## Example
14
-
15
- ```typescript
16
- import type { PostH5pStatement } from '@easyedu/js-lsm-api'
17
-
18
- // TODO: Update the object below with actual values
19
- const example = {
20
- "eventId": null,
21
- "statement": null,
22
- } satisfies PostH5pStatement
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 PostH5pStatement
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
-
@@ -1,37 +0,0 @@
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
-
@@ -1,74 +0,0 @@
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
-