@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
@@ -0,0 +1,93 @@
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
+ /**
17
+ * Additional Edaxu events recorded from the time each category is enabled. All categories default to off.
18
+ * @export
19
+ * @interface LrsRecordingSettings
20
+ */
21
+ export interface LrsRecordingSettings {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof LrsRecordingSettings
26
+ */
27
+ assessmentResults: boolean;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof LrsRecordingSettings
32
+ */
33
+ contentActivity: boolean;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof LrsRecordingSettings
38
+ */
39
+ courseCompletions: boolean;
40
+ /**
41
+ *
42
+ * @type {boolean}
43
+ * @memberof LrsRecordingSettings
44
+ */
45
+ certificateIssuance: boolean;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the LrsRecordingSettings interface.
50
+ */
51
+ export function instanceOfLrsRecordingSettings(value: object): value is LrsRecordingSettings {
52
+ if (!('assessmentResults' in value) || value['assessmentResults'] === undefined) return false;
53
+ if (!('contentActivity' in value) || value['contentActivity'] === undefined) return false;
54
+ if (!('courseCompletions' in value) || value['courseCompletions'] === undefined) return false;
55
+ if (!('certificateIssuance' in value) || value['certificateIssuance'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function LrsRecordingSettingsFromJSON(json: any): LrsRecordingSettings {
60
+ return LrsRecordingSettingsFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function LrsRecordingSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LrsRecordingSettings {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'assessmentResults': json['assessment_results'],
70
+ 'contentActivity': json['content_activity'],
71
+ 'courseCompletions': json['course_completions'],
72
+ 'certificateIssuance': json['certificate_issuance'],
73
+ };
74
+ }
75
+
76
+ export function LrsRecordingSettingsToJSON(json: any): LrsRecordingSettings {
77
+ return LrsRecordingSettingsToJSONTyped(json, false);
78
+ }
79
+
80
+ export function LrsRecordingSettingsToJSONTyped(value?: LrsRecordingSettings | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'assessment_results': value['assessmentResults'],
88
+ 'content_activity': value['contentActivity'],
89
+ 'course_completions': value['courseCompletions'],
90
+ 'certificate_issuance': value['certificateIssuance'],
91
+ };
92
+ }
93
+
@@ -27,8 +27,7 @@ export const ResourceType = {
27
27
  File: 'file',
28
28
  Link: 'link',
29
29
  RichText: 'rich_text',
30
- Cmi5: 'cmi5',
31
- H5p: 'h5p'
30
+ Cmi5: 'cmi5'
32
31
  } as const;
33
32
  export type ResourceType = typeof ResourceType[keyof typeof ResourceType];
34
33
 
@@ -161,7 +161,6 @@ export * from './GetResourceSessionList';
161
161
  export * from './GetResourceSessionScormApiLogs';
162
162
  export * from './GetResourceSessionScormData';
163
163
  export * from './GetResourceSessionScormDataActivity';
164
- export * from './GetResourceTypeList';
165
164
  export * from './GetResourceUsage';
166
165
  export * from './GetResourceUsageCoursesInner';
167
166
  export * from './GetResourceVersionUpload';
@@ -190,8 +189,6 @@ export * from './GetZapierMe';
190
189
  export * from './GetZapierSetup';
191
190
  export * from './GetZapierShopifyCourseMappings';
192
191
  export * from './GetZapierUsers';
193
- export * from './H5pState';
194
- export * from './H5pStatementResult';
195
192
  export * from './HostedScormAccessPolicy';
196
193
  export * from './HostedScormOutlineEntry';
197
194
  export * from './HostedScormRollupPolicy';
@@ -219,6 +216,7 @@ export * from './LoginResAuthData';
219
216
  export * from './LoginResUserData';
220
217
  export * from './LoginResUserDataSelectedPortal';
221
218
  export * from './LrsCredential';
219
+ export * from './LrsRecordingSettings';
222
220
  export * from './LrsScope';
223
221
  export * from './LrsStatement';
224
222
  export * from './Paginated';
@@ -274,7 +272,6 @@ export * from './PostEmailAssetComplete';
274
272
  export * from './PostEmailAssetUpload';
275
273
  export * from './PostEmailTemplatePreview';
276
274
  export * from './PostEmailTemplateTestSend';
277
- export * from './PostH5pStatement';
278
275
  export * from './PostLearnerExperiencePreview';
279
276
  export * from './PostLibraryQuiz';
280
277
  export * from './PostLibraryQuizSession';
@@ -392,7 +389,6 @@ export * from './ReportSort';
392
389
  export * from './ResourceSessionEnvironment';
393
390
  export * from './ResourceSessionScormApiLogItem';
394
391
  export * from './ResourceType';
395
- export * from './ResourceTypeAvailability';
396
392
  export * from './RichTextAsset';
397
393
  export * from './RichTextDocument';
398
394
  export * from './RichTextInput';
@@ -1,33 +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 { 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;
@@ -1,44 +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
- 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
- }
@@ -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,43 +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
- * Check if a given object implements the H5pState interface.
16
- */
17
- export function instanceOfH5pState(value) {
18
- if (!('state' in value) || value['state'] === undefined)
19
- return false;
20
- return true;
21
- }
22
- export function H5pStateFromJSON(json) {
23
- return H5pStateFromJSONTyped(json, false);
24
- }
25
- export function H5pStateFromJSONTyped(json, ignoreDiscriminator) {
26
- if (json == null) {
27
- return json;
28
- }
29
- return {
30
- 'state': json['state'],
31
- };
32
- }
33
- export function H5pStateToJSON(json) {
34
- return H5pStateToJSONTyped(json, false);
35
- }
36
- export function H5pStateToJSONTyped(value, ignoreDiscriminator = false) {
37
- if (value == null) {
38
- return value;
39
- }
40
- return {
41
- 'state': value['state'],
42
- };
43
- }
@@ -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,49 +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
- * Check if a given object implements the H5pStatementResult interface.
16
- */
17
- export function instanceOfH5pStatementResult(value) {
18
- if (!('completionStatus' in value) || value['completionStatus'] === undefined)
19
- return false;
20
- if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
21
- return false;
22
- return true;
23
- }
24
- export function H5pStatementResultFromJSON(json) {
25
- return H5pStatementResultFromJSONTyped(json, false);
26
- }
27
- export function H5pStatementResultFromJSONTyped(json, ignoreDiscriminator) {
28
- if (json == null) {
29
- return json;
30
- }
31
- return {
32
- 'completionStatus': json['completion_status'],
33
- 'gradeStatus': json['grade_status'],
34
- 'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
35
- };
36
- }
37
- export function H5pStatementResultToJSON(json) {
38
- return H5pStatementResultToJSONTyped(json, false);
39
- }
40
- export function H5pStatementResultToJSONTyped(value, ignoreDiscriminator = false) {
41
- if (value == null) {
42
- return value;
43
- }
44
- return {
45
- 'completion_status': value['completionStatus'],
46
- 'grade_status': value['gradeStatus'],
47
- 'score_raw': value['scoreRaw'],
48
- };
49
- }
@@ -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,47 +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
- * Check if a given object implements the PostH5pStatement interface.
16
- */
17
- export function instanceOfPostH5pStatement(value) {
18
- if (!('eventId' in value) || value['eventId'] === undefined)
19
- return false;
20
- if (!('statement' in value) || value['statement'] === undefined)
21
- return false;
22
- return true;
23
- }
24
- export function PostH5pStatementFromJSON(json) {
25
- return PostH5pStatementFromJSONTyped(json, false);
26
- }
27
- export function PostH5pStatementFromJSONTyped(json, ignoreDiscriminator) {
28
- if (json == null) {
29
- return json;
30
- }
31
- return {
32
- 'eventId': json['event_id'],
33
- 'statement': json['statement'],
34
- };
35
- }
36
- export function PostH5pStatementToJSON(json) {
37
- return PostH5pStatementToJSONTyped(json, false);
38
- }
39
- export function PostH5pStatementToJSONTyped(value, ignoreDiscriminator = false) {
40
- if (value == null) {
41
- return value;
42
- }
43
- return {
44
- 'event_id': value['eventId'],
45
- 'statement': value['statement'],
46
- };
47
- }
@@ -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,48 +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
- 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
- }
@@ -1,33 +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 { 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;
@@ -1,51 +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.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
- }