@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,158 @@
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 { ContentLaunchMode } from './ContentLaunchMode';
17
+ import {
18
+ ContentLaunchModeFromJSON,
19
+ ContentLaunchModeFromJSONTyped,
20
+ ContentLaunchModeToJSON,
21
+ ContentLaunchModeToJSONTyped,
22
+ } from './ContentLaunchMode';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PostCourseVersionItem
28
+ */
29
+ export interface PostCourseVersionItem {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PostCourseVersionItem
34
+ */
35
+ contentLibraryItemId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PostCourseVersionItem
40
+ */
41
+ contentLibraryVersionId?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PostCourseVersionItem
46
+ */
47
+ moduleId: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof PostCourseVersionItem
52
+ */
53
+ displayName?: string;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof PostCourseVersionItem
58
+ */
59
+ displayOrder?: number;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof PostCourseVersionItem
64
+ */
65
+ isVisible?: boolean;
66
+ /**
67
+ *
68
+ * @type {ContentLaunchMode}
69
+ * @memberof PostCourseVersionItem
70
+ */
71
+ launchMode?: ContentLaunchMode;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof PostCourseVersionItem
76
+ */
77
+ maxAttempts?: number;
78
+ /**
79
+ *
80
+ * @type {PostCourseVersionItemScoreRollupStrategyEnum}
81
+ * @memberof PostCourseVersionItem
82
+ */
83
+ scoreRollupStrategy?: PostCourseVersionItemScoreRollupStrategyEnum;
84
+ /**
85
+ *
86
+ * @type {{ [key: string]: any; }}
87
+ * @memberof PostCourseVersionItem
88
+ */
89
+ settings?: { [key: string]: any; };
90
+ }
91
+
92
+
93
+ /**
94
+ * @export
95
+ */
96
+ export const PostCourseVersionItemScoreRollupStrategyEnum = {
97
+ Latest: 'Latest',
98
+ Best: 'Best'
99
+ } as const;
100
+ export type PostCourseVersionItemScoreRollupStrategyEnum = typeof PostCourseVersionItemScoreRollupStrategyEnum[keyof typeof PostCourseVersionItemScoreRollupStrategyEnum];
101
+
102
+
103
+ /**
104
+ * Check if a given object implements the PostCourseVersionItem interface.
105
+ */
106
+ export function instanceOfPostCourseVersionItem(value: object): value is PostCourseVersionItem {
107
+ if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined) return false;
108
+ if (!('moduleId' in value) || value['moduleId'] === undefined) return false;
109
+ return true;
110
+ }
111
+
112
+ export function PostCourseVersionItemFromJSON(json: any): PostCourseVersionItem {
113
+ return PostCourseVersionItemFromJSONTyped(json, false);
114
+ }
115
+
116
+ export function PostCourseVersionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionItem {
117
+ if (json == null) {
118
+ return json;
119
+ }
120
+ return {
121
+
122
+ 'contentLibraryItemId': json['content_library_item_id'],
123
+ 'contentLibraryVersionId': json['content_library_version_id'] == null ? undefined : json['content_library_version_id'],
124
+ 'moduleId': json['module_id'],
125
+ 'displayName': json['display_name'] == null ? undefined : json['display_name'],
126
+ 'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
127
+ 'isVisible': json['is_visible'] == null ? undefined : json['is_visible'],
128
+ 'launchMode': json['launch_mode'] == null ? undefined : ContentLaunchModeFromJSON(json['launch_mode']),
129
+ 'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
130
+ 'scoreRollupStrategy': json['score_rollup_strategy'] == null ? undefined : json['score_rollup_strategy'],
131
+ 'settings': json['settings'] == null ? undefined : json['settings'],
132
+ };
133
+ }
134
+
135
+ export function PostCourseVersionItemToJSON(json: any): PostCourseVersionItem {
136
+ return PostCourseVersionItemToJSONTyped(json, false);
137
+ }
138
+
139
+ export function PostCourseVersionItemToJSONTyped(value?: PostCourseVersionItem | null, ignoreDiscriminator: boolean = false): any {
140
+ if (value == null) {
141
+ return value;
142
+ }
143
+
144
+ return {
145
+
146
+ 'content_library_item_id': value['contentLibraryItemId'],
147
+ 'content_library_version_id': value['contentLibraryVersionId'],
148
+ 'module_id': value['moduleId'],
149
+ 'display_name': value['displayName'],
150
+ 'display_order': value['displayOrder'],
151
+ 'is_visible': value['isVisible'],
152
+ 'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
153
+ 'max_attempts': value['maxAttempts'],
154
+ 'score_rollup_strategy': value['scoreRollupStrategy'],
155
+ 'settings': value['settings'],
156
+ };
157
+ }
158
+
@@ -0,0 +1,65 @@
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
+ * Start or resume a learner attempt for an exact course resource version.
18
+ * @export
19
+ * @interface PostCourseVersionItemSession
20
+ */
21
+ export interface PostCourseVersionItemSession {
22
+ /**
23
+ * Create a new attempt instead of returning the current attempt.
24
+ * @type {boolean}
25
+ * @memberof PostCourseVersionItemSession
26
+ */
27
+ retake?: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PostCourseVersionItemSession interface.
32
+ */
33
+ export function instanceOfPostCourseVersionItemSession(value: object): value is PostCourseVersionItemSession {
34
+ return true;
35
+ }
36
+
37
+ export function PostCourseVersionItemSessionFromJSON(json: any): PostCourseVersionItemSession {
38
+ return PostCourseVersionItemSessionFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function PostCourseVersionItemSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionItemSession {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'retake': json['retake'] == null ? undefined : json['retake'],
48
+ };
49
+ }
50
+
51
+ export function PostCourseVersionItemSessionToJSON(json: any): PostCourseVersionItemSession {
52
+ return PostCourseVersionItemSessionToJSONTyped(json, false);
53
+ }
54
+
55
+ export function PostCourseVersionItemSessionToJSONTyped(value?: PostCourseVersionItemSession | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'retake': value['retake'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,65 @@
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
+ *
18
+ * @export
19
+ * @interface PostCourseVersionPublish
20
+ */
21
+ export interface PostCourseVersionPublish {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PostCourseVersionPublish
26
+ */
27
+ changeNotes?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PostCourseVersionPublish interface.
32
+ */
33
+ export function instanceOfPostCourseVersionPublish(value: object): value is PostCourseVersionPublish {
34
+ return true;
35
+ }
36
+
37
+ export function PostCourseVersionPublishFromJSON(json: any): PostCourseVersionPublish {
38
+ return PostCourseVersionPublishFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function PostCourseVersionPublishFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionPublish {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
48
+ };
49
+ }
50
+
51
+ export function PostCourseVersionPublishToJSON(json: any): PostCourseVersionPublish {
52
+ return PostCourseVersionPublishToJSONTyped(json, false);
53
+ }
54
+
55
+ export function PostCourseVersionPublishToJSONTyped(value?: PostCourseVersionPublish | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'change_notes': value['changeNotes'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,116 @@
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
+ import type { RichTextInput } from './RichTextInput';
24
+ import {
25
+ RichTextInputFromJSON,
26
+ RichTextInputFromJSONTyped,
27
+ RichTextInputToJSON,
28
+ RichTextInputToJSONTyped,
29
+ } from './RichTextInput';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PostResource
35
+ */
36
+ export interface PostResource {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof PostResource
41
+ */
42
+ name: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof PostResource
47
+ */
48
+ description?: string;
49
+ /**
50
+ *
51
+ * @type {ResourceType}
52
+ * @memberof PostResource
53
+ */
54
+ resourceType: ResourceType;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof PostResource
59
+ */
60
+ linkUrl?: string | null;
61
+ /**
62
+ *
63
+ * @type {RichTextInput}
64
+ * @memberof PostResource
65
+ */
66
+ richText?: RichTextInput | null;
67
+ }
68
+
69
+
70
+
71
+ /**
72
+ * Check if a given object implements the PostResource interface.
73
+ */
74
+ export function instanceOfPostResource(value: object): value is PostResource {
75
+ if (!('name' in value) || value['name'] === undefined) return false;
76
+ if (!('resourceType' in value) || value['resourceType'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function PostResourceFromJSON(json: any): PostResource {
81
+ return PostResourceFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function PostResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResource {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'name': json['name'],
91
+ 'description': json['description'] == null ? undefined : json['description'],
92
+ 'resourceType': ResourceTypeFromJSON(json['resource_type']),
93
+ 'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
94
+ 'richText': json['rich_text'] == null ? undefined : RichTextInputFromJSON(json['rich_text']),
95
+ };
96
+ }
97
+
98
+ export function PostResourceToJSON(json: any): PostResource {
99
+ return PostResourceToJSONTyped(json, false);
100
+ }
101
+
102
+ export function PostResourceToJSONTyped(value?: PostResource | null, ignoreDiscriminator: boolean = false): any {
103
+ if (value == null) {
104
+ return value;
105
+ }
106
+
107
+ return {
108
+
109
+ 'name': value['name'],
110
+ 'description': value['description'],
111
+ 'resource_type': ResourceTypeToJSON(value['resourceType']),
112
+ 'link_url': value['linkUrl'],
113
+ 'rich_text': RichTextInputToJSON(value['richText']),
114
+ };
115
+ }
116
+
@@ -0,0 +1,89 @@
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 { RichTextInput } from './RichTextInput';
17
+ import {
18
+ RichTextInputFromJSON,
19
+ RichTextInputFromJSONTyped,
20
+ RichTextInputToJSON,
21
+ RichTextInputToJSONTyped,
22
+ } from './RichTextInput';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PostResourceVersion
28
+ */
29
+ export interface PostResourceVersion {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PostResourceVersion
34
+ */
35
+ changeNotes?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PostResourceVersion
40
+ */
41
+ linkUrl?: string | null;
42
+ /**
43
+ *
44
+ * @type {RichTextInput}
45
+ * @memberof PostResourceVersion
46
+ */
47
+ richText?: RichTextInput | null;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the PostResourceVersion interface.
52
+ */
53
+ export function instanceOfPostResourceVersion(value: object): value is PostResourceVersion {
54
+ return true;
55
+ }
56
+
57
+ export function PostResourceVersionFromJSON(json: any): PostResourceVersion {
58
+ return PostResourceVersionFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function PostResourceVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersion {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
68
+ 'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
69
+ 'richText': json['rich_text'] == null ? undefined : RichTextInputFromJSON(json['rich_text']),
70
+ };
71
+ }
72
+
73
+ export function PostResourceVersionToJSON(json: any): PostResourceVersion {
74
+ return PostResourceVersionToJSONTyped(json, false);
75
+ }
76
+
77
+ export function PostResourceVersionToJSONTyped(value?: PostResourceVersion | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'change_notes': value['changeNotes'],
85
+ 'link_url': value['linkUrl'],
86
+ 'rich_text': RichTextInputToJSON(value['richText']),
87
+ };
88
+ }
89
+
@@ -0,0 +1,66 @@
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
+ *
18
+ * @export
19
+ * @interface PostResourceVersionComplete
20
+ */
21
+ export interface PostResourceVersionComplete {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PostResourceVersionComplete
26
+ */
27
+ checksumSha256: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PostResourceVersionComplete interface.
32
+ */
33
+ export function instanceOfPostResourceVersionComplete(value: object): value is PostResourceVersionComplete {
34
+ if (!('checksumSha256' in value) || value['checksumSha256'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function PostResourceVersionCompleteFromJSON(json: any): PostResourceVersionComplete {
39
+ return PostResourceVersionCompleteFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function PostResourceVersionCompleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionComplete {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'checksumSha256': json['checksum_sha256'],
49
+ };
50
+ }
51
+
52
+ export function PostResourceVersionCompleteToJSON(json: any): PostResourceVersionComplete {
53
+ return PostResourceVersionCompleteToJSONTyped(json, false);
54
+ }
55
+
56
+ export function PostResourceVersionCompleteToJSONTyped(value?: PostResourceVersionComplete | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'checksum_sha256': value['checksumSha256'],
64
+ };
65
+ }
66
+
@@ -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
+ *
18
+ * @export
19
+ * @interface PostResourceVersionUpload
20
+ */
21
+ export interface PostResourceVersionUpload {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PostResourceVersionUpload
26
+ */
27
+ filename: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PostResourceVersionUpload
32
+ */
33
+ mimeType: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof PostResourceVersionUpload
38
+ */
39
+ fileSizeBytes: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof PostResourceVersionUpload
44
+ */
45
+ checksumSha256: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the PostResourceVersionUpload interface.
50
+ */
51
+ export function instanceOfPostResourceVersionUpload(value: object): value is PostResourceVersionUpload {
52
+ if (!('filename' in value) || value['filename'] === undefined) return false;
53
+ if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
54
+ if (!('fileSizeBytes' in value) || value['fileSizeBytes'] === undefined) return false;
55
+ if (!('checksumSha256' in value) || value['checksumSha256'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function PostResourceVersionUploadFromJSON(json: any): PostResourceVersionUpload {
60
+ return PostResourceVersionUploadFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function PostResourceVersionUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionUpload {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'filename': json['filename'],
70
+ 'mimeType': json['mime_type'],
71
+ 'fileSizeBytes': json['file_size_bytes'],
72
+ 'checksumSha256': json['checksum_sha256'],
73
+ };
74
+ }
75
+
76
+ export function PostResourceVersionUploadToJSON(json: any): PostResourceVersionUpload {
77
+ return PostResourceVersionUploadToJSONTyped(json, false);
78
+ }
79
+
80
+ export function PostResourceVersionUploadToJSONTyped(value?: PostResourceVersionUpload | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'filename': value['filename'],
88
+ 'mime_type': value['mimeType'],
89
+ 'file_size_bytes': value['fileSizeBytes'],
90
+ 'checksum_sha256': value['checksumSha256'],
91
+ };
92
+ }
93
+