@easyedu/js-lsm-api 1.83.0 → 1.84.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 (181) hide show
  1. package/.openapi-generator/FILES +52 -0
  2. package/README.md +60 -2
  3. package/dist/apis/ContentLibraryApi.d.ts +290 -0
  4. package/dist/apis/ContentLibraryApi.js +744 -0
  5. package/dist/apis/CourseApi.d.ts +172 -0
  6. package/dist/apis/CourseApi.js +443 -0
  7. package/dist/apis/PlayerApi.d.ts +112 -0
  8. package/dist/apis/PlayerApi.js +297 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/esm/apis/ContentLibraryApi.d.ts +290 -0
  12. package/dist/esm/apis/ContentLibraryApi.js +740 -0
  13. package/dist/esm/apis/CourseApi.d.ts +172 -0
  14. package/dist/esm/apis/CourseApi.js +443 -0
  15. package/dist/esm/apis/PlayerApi.d.ts +112 -0
  16. package/dist/esm/apis/PlayerApi.js +297 -0
  17. package/dist/esm/apis/index.d.ts +1 -0
  18. package/dist/esm/apis/index.js +1 -0
  19. package/dist/esm/models/ContentLibraryVersionStatus.d.ts +26 -0
  20. package/dist/esm/models/ContentLibraryVersionStatus.js +44 -0
  21. package/dist/esm/models/GetContentLibraryVersion.d.ts +126 -0
  22. package/dist/esm/models/GetContentLibraryVersion.js +87 -0
  23. package/dist/esm/models/GetCourseVersion.d.ts +101 -0
  24. package/dist/esm/models/GetCourseVersion.js +86 -0
  25. package/dist/esm/models/GetCourseVersionItem.d.ts +135 -0
  26. package/dist/esm/models/GetCourseVersionItem.js +104 -0
  27. package/dist/esm/models/GetCourseVersionItemLaunch.d.ts +103 -0
  28. package/dist/esm/models/GetCourseVersionItemLaunch.js +82 -0
  29. package/dist/esm/models/GetCourseVersionItemSession.d.ts +124 -0
  30. package/dist/esm/models/GetCourseVersionItemSession.js +101 -0
  31. package/dist/esm/models/GetCourseVersionList.d.ts +33 -0
  32. package/dist/esm/models/GetCourseVersionList.js +44 -0
  33. package/dist/esm/models/GetCourseVersionModule.d.ts +64 -0
  34. package/dist/esm/models/GetCourseVersionModule.js +65 -0
  35. package/dist/esm/models/GetResource.d.ts +118 -0
  36. package/dist/esm/models/GetResource.js +95 -0
  37. package/dist/esm/models/GetResourceList.d.ts +57 -0
  38. package/dist/esm/models/GetResourceList.js +60 -0
  39. package/dist/esm/models/GetResourceUsage.d.ts +63 -0
  40. package/dist/esm/models/GetResourceUsage.js +64 -0
  41. package/dist/esm/models/GetResourceUsageCoursesInner.d.ts +63 -0
  42. package/dist/esm/models/GetResourceUsageCoursesInner.js +64 -0
  43. package/dist/esm/models/GetResourceVersionUpload.d.ts +38 -0
  44. package/dist/esm/models/GetResourceVersionUpload.js +47 -0
  45. package/dist/esm/models/PostCourseDraft.d.ts +32 -0
  46. package/dist/esm/models/PostCourseDraft.js +41 -0
  47. package/dist/esm/models/PostCourseVersionItem.d.ts +97 -0
  48. package/dist/esm/models/PostCourseVersionItem.js +71 -0
  49. package/dist/esm/models/PostCourseVersionItemSession.d.ts +32 -0
  50. package/dist/esm/models/PostCourseVersionItemSession.js +41 -0
  51. package/dist/esm/models/PostCourseVersionPublish.d.ts +32 -0
  52. package/dist/esm/models/PostCourseVersionPublish.js +41 -0
  53. package/dist/esm/models/PostResource.d.ts +58 -0
  54. package/dist/esm/models/PostResource.js +55 -0
  55. package/dist/esm/models/PostResourceVersion.d.ts +45 -0
  56. package/dist/esm/models/PostResourceVersion.js +46 -0
  57. package/dist/esm/models/PostResourceVersionComplete.d.ts +32 -0
  58. package/dist/esm/models/PostResourceVersionComplete.js +43 -0
  59. package/dist/esm/models/PostResourceVersionUpload.d.ts +50 -0
  60. package/dist/esm/models/PostResourceVersionUpload.js +55 -0
  61. package/dist/esm/models/PutCourseVersionItem.d.ts +85 -0
  62. package/dist/esm/models/PutCourseVersionItem.js +63 -0
  63. package/dist/esm/models/PutResource.d.ts +38 -0
  64. package/dist/esm/models/PutResource.js +43 -0
  65. package/dist/esm/models/PutResourceVersion.d.ts +53 -0
  66. package/dist/esm/models/PutResourceVersion.js +48 -0
  67. package/dist/esm/models/ResourceType.d.ts +32 -0
  68. package/dist/esm/models/ResourceType.js +50 -0
  69. package/dist/esm/models/index.d.ts +25 -0
  70. package/dist/esm/models/index.js +25 -0
  71. package/dist/models/ContentLibraryVersionStatus.d.ts +26 -0
  72. package/dist/models/ContentLibraryVersionStatus.js +52 -0
  73. package/dist/models/GetContentLibraryVersion.d.ts +126 -0
  74. package/dist/models/GetContentLibraryVersion.js +94 -0
  75. package/dist/models/GetCourseVersion.d.ts +101 -0
  76. package/dist/models/GetCourseVersion.js +93 -0
  77. package/dist/models/GetCourseVersionItem.d.ts +135 -0
  78. package/dist/models/GetCourseVersionItem.js +112 -0
  79. package/dist/models/GetCourseVersionItemLaunch.d.ts +103 -0
  80. package/dist/models/GetCourseVersionItemLaunch.js +89 -0
  81. package/dist/models/GetCourseVersionItemSession.d.ts +124 -0
  82. package/dist/models/GetCourseVersionItemSession.js +108 -0
  83. package/dist/models/GetCourseVersionList.d.ts +33 -0
  84. package/dist/models/GetCourseVersionList.js +51 -0
  85. package/dist/models/GetCourseVersionModule.d.ts +64 -0
  86. package/dist/models/GetCourseVersionModule.js +72 -0
  87. package/dist/models/GetResource.d.ts +118 -0
  88. package/dist/models/GetResource.js +102 -0
  89. package/dist/models/GetResourceList.d.ts +57 -0
  90. package/dist/models/GetResourceList.js +67 -0
  91. package/dist/models/GetResourceUsage.d.ts +63 -0
  92. package/dist/models/GetResourceUsage.js +71 -0
  93. package/dist/models/GetResourceUsageCoursesInner.d.ts +63 -0
  94. package/dist/models/GetResourceUsageCoursesInner.js +71 -0
  95. package/dist/models/GetResourceVersionUpload.d.ts +38 -0
  96. package/dist/models/GetResourceVersionUpload.js +54 -0
  97. package/dist/models/PostCourseDraft.d.ts +32 -0
  98. package/dist/models/PostCourseDraft.js +48 -0
  99. package/dist/models/PostCourseVersionItem.d.ts +97 -0
  100. package/dist/models/PostCourseVersionItem.js +79 -0
  101. package/dist/models/PostCourseVersionItemSession.d.ts +32 -0
  102. package/dist/models/PostCourseVersionItemSession.js +48 -0
  103. package/dist/models/PostCourseVersionPublish.d.ts +32 -0
  104. package/dist/models/PostCourseVersionPublish.js +48 -0
  105. package/dist/models/PostResource.d.ts +58 -0
  106. package/dist/models/PostResource.js +62 -0
  107. package/dist/models/PostResourceVersion.d.ts +45 -0
  108. package/dist/models/PostResourceVersion.js +53 -0
  109. package/dist/models/PostResourceVersionComplete.d.ts +32 -0
  110. package/dist/models/PostResourceVersionComplete.js +50 -0
  111. package/dist/models/PostResourceVersionUpload.d.ts +50 -0
  112. package/dist/models/PostResourceVersionUpload.js +62 -0
  113. package/dist/models/PutCourseVersionItem.d.ts +85 -0
  114. package/dist/models/PutCourseVersionItem.js +71 -0
  115. package/dist/models/PutResource.d.ts +38 -0
  116. package/dist/models/PutResource.js +50 -0
  117. package/dist/models/PutResourceVersion.d.ts +53 -0
  118. package/dist/models/PutResourceVersion.js +55 -0
  119. package/dist/models/ResourceType.d.ts +32 -0
  120. package/dist/models/ResourceType.js +58 -0
  121. package/dist/models/index.d.ts +25 -0
  122. package/dist/models/index.js +25 -0
  123. package/docs/ContentLibraryApi.md +1132 -0
  124. package/docs/ContentLibraryVersionStatus.md +33 -0
  125. package/docs/CourseApi.md +797 -96
  126. package/docs/GetContentLibraryVersion.md +64 -0
  127. package/docs/GetCourseVersion.md +56 -0
  128. package/docs/GetCourseVersionItem.md +62 -0
  129. package/docs/GetCourseVersionItemLaunch.md +56 -0
  130. package/docs/GetCourseVersionItemSession.md +65 -0
  131. package/docs/GetCourseVersionList.md +34 -0
  132. package/docs/GetCourseVersionModule.md +44 -0
  133. package/docs/GetResource.md +62 -0
  134. package/docs/GetResourceList.md +42 -0
  135. package/docs/GetResourceUsage.md +44 -0
  136. package/docs/GetResourceUsageCoursesInner.md +44 -0
  137. package/docs/GetResourceVersionUpload.md +36 -0
  138. package/docs/PlayerApi.md +480 -0
  139. package/docs/PostCourseDraft.md +34 -0
  140. package/docs/PostCourseVersionItem.md +52 -0
  141. package/docs/PostCourseVersionItemSession.md +35 -0
  142. package/docs/PostCourseVersionPublish.md +34 -0
  143. package/docs/PostResource.md +42 -0
  144. package/docs/PostResourceVersion.md +38 -0
  145. package/docs/PostResourceVersionComplete.md +34 -0
  146. package/docs/PostResourceVersionUpload.md +40 -0
  147. package/docs/PutCourseVersionItem.md +48 -0
  148. package/docs/PutResource.md +36 -0
  149. package/docs/PutResourceVersion.md +40 -0
  150. package/docs/ResourceType.md +33 -0
  151. package/package.json +1 -1
  152. package/src/apis/ContentLibraryApi.ts +1024 -0
  153. package/src/apis/CourseApi.ts +636 -0
  154. package/src/apis/PlayerApi.ts +400 -0
  155. package/src/apis/index.ts +1 -0
  156. package/src/models/ContentLibraryVersionStatus.ts +54 -0
  157. package/src/models/GetContentLibraryVersion.ts +209 -0
  158. package/src/models/GetCourseVersion.ts +187 -0
  159. package/src/models/GetCourseVersionItem.ts +215 -0
  160. package/src/models/GetCourseVersionItemLaunch.ts +185 -0
  161. package/src/models/GetCourseVersionItemSession.ts +216 -0
  162. package/src/models/GetCourseVersionList.ts +74 -0
  163. package/src/models/GetCourseVersionModule.ts +126 -0
  164. package/src/models/GetResource.ts +206 -0
  165. package/src/models/GetResourceList.ts +110 -0
  166. package/src/models/GetResourceUsage.ts +119 -0
  167. package/src/models/GetResourceUsageCoursesInner.ts +121 -0
  168. package/src/models/GetResourceVersionUpload.ts +75 -0
  169. package/src/models/PostCourseDraft.ts +65 -0
  170. package/src/models/PostCourseVersionItem.ts +158 -0
  171. package/src/models/PostCourseVersionItemSession.ts +65 -0
  172. package/src/models/PostCourseVersionPublish.ts +65 -0
  173. package/src/models/PostResource.ts +116 -0
  174. package/src/models/PostResourceVersion.ts +89 -0
  175. package/src/models/PostResourceVersionComplete.ts +66 -0
  176. package/src/models/PostResourceVersionUpload.ts +93 -0
  177. package/src/models/PutCourseVersionItem.ts +140 -0
  178. package/src/models/PutResource.ts +73 -0
  179. package/src/models/PutResourceVersion.ts +97 -0
  180. package/src/models/ResourceType.ts +60 -0
  181. package/src/models/index.ts +25 -0
@@ -0,0 +1,71 @@
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 { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLaunchMode';
15
+ /**
16
+ * @export
17
+ */
18
+ export const PostCourseVersionItemScoreRollupStrategyEnum = {
19
+ Latest: 'Latest',
20
+ Best: 'Best'
21
+ };
22
+ /**
23
+ * Check if a given object implements the PostCourseVersionItem interface.
24
+ */
25
+ export function instanceOfPostCourseVersionItem(value) {
26
+ if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined)
27
+ return false;
28
+ if (!('moduleId' in value) || value['moduleId'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function PostCourseVersionItemFromJSON(json) {
33
+ return PostCourseVersionItemFromJSONTyped(json, false);
34
+ }
35
+ export function PostCourseVersionItemFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'contentLibraryItemId': json['content_library_item_id'],
41
+ 'contentLibraryVersionId': json['content_library_version_id'] == null ? undefined : json['content_library_version_id'],
42
+ 'moduleId': json['module_id'],
43
+ 'displayName': json['display_name'] == null ? undefined : json['display_name'],
44
+ 'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
45
+ 'isVisible': json['is_visible'] == null ? undefined : json['is_visible'],
46
+ 'launchMode': json['launch_mode'] == null ? undefined : ContentLaunchModeFromJSON(json['launch_mode']),
47
+ 'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
48
+ 'scoreRollupStrategy': json['score_rollup_strategy'] == null ? undefined : json['score_rollup_strategy'],
49
+ 'settings': json['settings'] == null ? undefined : json['settings'],
50
+ };
51
+ }
52
+ export function PostCourseVersionItemToJSON(json) {
53
+ return PostCourseVersionItemToJSONTyped(json, false);
54
+ }
55
+ export function PostCourseVersionItemToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'content_library_item_id': value['contentLibraryItemId'],
61
+ 'content_library_version_id': value['contentLibraryVersionId'],
62
+ 'module_id': value['moduleId'],
63
+ 'display_name': value['displayName'],
64
+ 'display_order': value['displayOrder'],
65
+ 'is_visible': value['isVisible'],
66
+ 'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
67
+ 'max_attempts': value['maxAttempts'],
68
+ 'score_rollup_strategy': value['scoreRollupStrategy'],
69
+ 'settings': value['settings'],
70
+ };
71
+ }
@@ -0,0 +1,32 @@
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
+ * Start or resume a learner attempt for an exact course resource version.
14
+ * @export
15
+ * @interface PostCourseVersionItemSession
16
+ */
17
+ export interface PostCourseVersionItemSession {
18
+ /**
19
+ * Create a new attempt instead of returning the current attempt.
20
+ * @type {boolean}
21
+ * @memberof PostCourseVersionItemSession
22
+ */
23
+ retake?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostCourseVersionItemSession interface.
27
+ */
28
+ export declare function instanceOfPostCourseVersionItemSession(value: object): value is PostCourseVersionItemSession;
29
+ export declare function PostCourseVersionItemSessionFromJSON(json: any): PostCourseVersionItemSession;
30
+ export declare function PostCourseVersionItemSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionItemSession;
31
+ export declare function PostCourseVersionItemSessionToJSON(json: any): PostCourseVersionItemSession;
32
+ export declare function PostCourseVersionItemSessionToJSONTyped(value?: PostCourseVersionItemSession | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
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 PostCourseVersionItemSession interface.
16
+ */
17
+ export function instanceOfPostCourseVersionItemSession(value) {
18
+ return true;
19
+ }
20
+ export function PostCourseVersionItemSessionFromJSON(json) {
21
+ return PostCourseVersionItemSessionFromJSONTyped(json, false);
22
+ }
23
+ export function PostCourseVersionItemSessionFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'retake': json['retake'] == null ? undefined : json['retake'],
29
+ };
30
+ }
31
+ export function PostCourseVersionItemSessionToJSON(json) {
32
+ return PostCourseVersionItemSessionToJSONTyped(json, false);
33
+ }
34
+ export function PostCourseVersionItemSessionToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'retake': value['retake'],
40
+ };
41
+ }
@@ -0,0 +1,32 @@
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
+ *
14
+ * @export
15
+ * @interface PostCourseVersionPublish
16
+ */
17
+ export interface PostCourseVersionPublish {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostCourseVersionPublish
22
+ */
23
+ changeNotes?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostCourseVersionPublish interface.
27
+ */
28
+ export declare function instanceOfPostCourseVersionPublish(value: object): value is PostCourseVersionPublish;
29
+ export declare function PostCourseVersionPublishFromJSON(json: any): PostCourseVersionPublish;
30
+ export declare function PostCourseVersionPublishFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionPublish;
31
+ export declare function PostCourseVersionPublishToJSON(json: any): PostCourseVersionPublish;
32
+ export declare function PostCourseVersionPublishToJSONTyped(value?: PostCourseVersionPublish | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
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 PostCourseVersionPublish interface.
16
+ */
17
+ export function instanceOfPostCourseVersionPublish(value) {
18
+ return true;
19
+ }
20
+ export function PostCourseVersionPublishFromJSON(json) {
21
+ return PostCourseVersionPublishFromJSONTyped(json, false);
22
+ }
23
+ export function PostCourseVersionPublishFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
29
+ };
30
+ }
31
+ export function PostCourseVersionPublishToJSON(json) {
32
+ return PostCourseVersionPublishToJSONTyped(json, false);
33
+ }
34
+ export function PostCourseVersionPublishToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'change_notes': value['changeNotes'],
40
+ };
41
+ }
@@ -0,0 +1,58 @@
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
+ import type { RichTextInput } from './RichTextInput';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PostResource
18
+ */
19
+ export interface PostResource {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof PostResource
24
+ */
25
+ name: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof PostResource
30
+ */
31
+ description?: string;
32
+ /**
33
+ *
34
+ * @type {ResourceType}
35
+ * @memberof PostResource
36
+ */
37
+ resourceType: ResourceType;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof PostResource
42
+ */
43
+ linkUrl?: string | null;
44
+ /**
45
+ *
46
+ * @type {RichTextInput}
47
+ * @memberof PostResource
48
+ */
49
+ richText?: RichTextInput | null;
50
+ }
51
+ /**
52
+ * Check if a given object implements the PostResource interface.
53
+ */
54
+ export declare function instanceOfPostResource(value: object): value is PostResource;
55
+ export declare function PostResourceFromJSON(json: any): PostResource;
56
+ export declare function PostResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResource;
57
+ export declare function PostResourceToJSON(json: any): PostResource;
58
+ export declare function PostResourceToJSONTyped(value?: PostResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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
+ import { RichTextInputFromJSON, RichTextInputToJSON, } from './RichTextInput';
16
+ /**
17
+ * Check if a given object implements the PostResource interface.
18
+ */
19
+ export function instanceOfPostResource(value) {
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('resourceType' in value) || value['resourceType'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function PostResourceFromJSON(json) {
27
+ return PostResourceFromJSONTyped(json, false);
28
+ }
29
+ export function PostResourceFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'name': json['name'],
35
+ 'description': json['description'] == null ? undefined : json['description'],
36
+ 'resourceType': ResourceTypeFromJSON(json['resource_type']),
37
+ 'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
38
+ 'richText': json['rich_text'] == null ? undefined : RichTextInputFromJSON(json['rich_text']),
39
+ };
40
+ }
41
+ export function PostResourceToJSON(json) {
42
+ return PostResourceToJSONTyped(json, false);
43
+ }
44
+ export function PostResourceToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'name': value['name'],
50
+ 'description': value['description'],
51
+ 'resource_type': ResourceTypeToJSON(value['resourceType']),
52
+ 'link_url': value['linkUrl'],
53
+ 'rich_text': RichTextInputToJSON(value['richText']),
54
+ };
55
+ }
@@ -0,0 +1,45 @@
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 { RichTextInput } from './RichTextInput';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PostResourceVersion
17
+ */
18
+ export interface PostResourceVersion {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PostResourceVersion
23
+ */
24
+ changeNotes?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PostResourceVersion
29
+ */
30
+ linkUrl?: string | null;
31
+ /**
32
+ *
33
+ * @type {RichTextInput}
34
+ * @memberof PostResourceVersion
35
+ */
36
+ richText?: RichTextInput | null;
37
+ }
38
+ /**
39
+ * Check if a given object implements the PostResourceVersion interface.
40
+ */
41
+ export declare function instanceOfPostResourceVersion(value: object): value is PostResourceVersion;
42
+ export declare function PostResourceVersionFromJSON(json: any): PostResourceVersion;
43
+ export declare function PostResourceVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersion;
44
+ export declare function PostResourceVersionToJSON(json: any): PostResourceVersion;
45
+ export declare function PostResourceVersionToJSONTyped(value?: PostResourceVersion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,46 @@
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 { RichTextInputFromJSON, RichTextInputToJSON, } from './RichTextInput';
15
+ /**
16
+ * Check if a given object implements the PostResourceVersion interface.
17
+ */
18
+ export function instanceOfPostResourceVersion(value) {
19
+ return true;
20
+ }
21
+ export function PostResourceVersionFromJSON(json) {
22
+ return PostResourceVersionFromJSONTyped(json, false);
23
+ }
24
+ export function PostResourceVersionFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
30
+ 'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
31
+ 'richText': json['rich_text'] == null ? undefined : RichTextInputFromJSON(json['rich_text']),
32
+ };
33
+ }
34
+ export function PostResourceVersionToJSON(json) {
35
+ return PostResourceVersionToJSONTyped(json, false);
36
+ }
37
+ export function PostResourceVersionToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'change_notes': value['changeNotes'],
43
+ 'link_url': value['linkUrl'],
44
+ 'rich_text': RichTextInputToJSON(value['richText']),
45
+ };
46
+ }
@@ -0,0 +1,32 @@
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
+ *
14
+ * @export
15
+ * @interface PostResourceVersionComplete
16
+ */
17
+ export interface PostResourceVersionComplete {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostResourceVersionComplete
22
+ */
23
+ checksumSha256: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostResourceVersionComplete interface.
27
+ */
28
+ export declare function instanceOfPostResourceVersionComplete(value: object): value is PostResourceVersionComplete;
29
+ export declare function PostResourceVersionCompleteFromJSON(json: any): PostResourceVersionComplete;
30
+ export declare function PostResourceVersionCompleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionComplete;
31
+ export declare function PostResourceVersionCompleteToJSON(json: any): PostResourceVersionComplete;
32
+ export declare function PostResourceVersionCompleteToJSONTyped(value?: PostResourceVersionComplete | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 PostResourceVersionComplete interface.
16
+ */
17
+ export function instanceOfPostResourceVersionComplete(value) {
18
+ if (!('checksumSha256' in value) || value['checksumSha256'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostResourceVersionCompleteFromJSON(json) {
23
+ return PostResourceVersionCompleteFromJSONTyped(json, false);
24
+ }
25
+ export function PostResourceVersionCompleteFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'checksumSha256': json['checksum_sha256'],
31
+ };
32
+ }
33
+ export function PostResourceVersionCompleteToJSON(json) {
34
+ return PostResourceVersionCompleteToJSONTyped(json, false);
35
+ }
36
+ export function PostResourceVersionCompleteToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'checksum_sha256': value['checksumSha256'],
42
+ };
43
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PostResourceVersionUpload
16
+ */
17
+ export interface PostResourceVersionUpload {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostResourceVersionUpload
22
+ */
23
+ filename: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PostResourceVersionUpload
28
+ */
29
+ mimeType: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PostResourceVersionUpload
34
+ */
35
+ fileSizeBytes: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PostResourceVersionUpload
40
+ */
41
+ checksumSha256: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PostResourceVersionUpload interface.
45
+ */
46
+ export declare function instanceOfPostResourceVersionUpload(value: object): value is PostResourceVersionUpload;
47
+ export declare function PostResourceVersionUploadFromJSON(json: any): PostResourceVersionUpload;
48
+ export declare function PostResourceVersionUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionUpload;
49
+ export declare function PostResourceVersionUploadToJSON(json: any): PostResourceVersionUpload;
50
+ export declare function PostResourceVersionUploadToJSONTyped(value?: PostResourceVersionUpload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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 PostResourceVersionUpload interface.
16
+ */
17
+ export function instanceOfPostResourceVersionUpload(value) {
18
+ if (!('filename' in value) || value['filename'] === undefined)
19
+ return false;
20
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
21
+ return false;
22
+ if (!('fileSizeBytes' in value) || value['fileSizeBytes'] === undefined)
23
+ return false;
24
+ if (!('checksumSha256' in value) || value['checksumSha256'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function PostResourceVersionUploadFromJSON(json) {
29
+ return PostResourceVersionUploadFromJSONTyped(json, false);
30
+ }
31
+ export function PostResourceVersionUploadFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'filename': json['filename'],
37
+ 'mimeType': json['mime_type'],
38
+ 'fileSizeBytes': json['file_size_bytes'],
39
+ 'checksumSha256': json['checksum_sha256'],
40
+ };
41
+ }
42
+ export function PostResourceVersionUploadToJSON(json) {
43
+ return PostResourceVersionUploadToJSONTyped(json, false);
44
+ }
45
+ export function PostResourceVersionUploadToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'filename': value['filename'],
51
+ 'mime_type': value['mimeType'],
52
+ 'file_size_bytes': value['fileSizeBytes'],
53
+ 'checksum_sha256': value['checksumSha256'],
54
+ };
55
+ }