@easyedu/js-lsm-api 1.82.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 (247) hide show
  1. package/.openapi-generator/FILES +60 -0
  2. package/README.md +64 -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/QuizApi.d.ts +3 -2
  10. package/dist/apis/QuizApi.js +4 -2
  11. package/dist/apis/index.d.ts +1 -0
  12. package/dist/apis/index.js +1 -0
  13. package/dist/esm/apis/ContentLibraryApi.d.ts +290 -0
  14. package/dist/esm/apis/ContentLibraryApi.js +740 -0
  15. package/dist/esm/apis/CourseApi.d.ts +172 -0
  16. package/dist/esm/apis/CourseApi.js +443 -0
  17. package/dist/esm/apis/PlayerApi.d.ts +112 -0
  18. package/dist/esm/apis/PlayerApi.js +297 -0
  19. package/dist/esm/apis/QuizApi.d.ts +3 -2
  20. package/dist/esm/apis/QuizApi.js +4 -2
  21. package/dist/esm/apis/index.d.ts +1 -0
  22. package/dist/esm/apis/index.js +1 -0
  23. package/dist/esm/models/ContentLibraryVersionStatus.d.ts +26 -0
  24. package/dist/esm/models/ContentLibraryVersionStatus.js +44 -0
  25. package/dist/esm/models/GetContentLibraryVersion.d.ts +126 -0
  26. package/dist/esm/models/GetContentLibraryVersion.js +87 -0
  27. package/dist/esm/models/GetCourseVersion.d.ts +101 -0
  28. package/dist/esm/models/GetCourseVersion.js +86 -0
  29. package/dist/esm/models/GetCourseVersionItem.d.ts +135 -0
  30. package/dist/esm/models/GetCourseVersionItem.js +104 -0
  31. package/dist/esm/models/GetCourseVersionItemLaunch.d.ts +103 -0
  32. package/dist/esm/models/GetCourseVersionItemLaunch.js +82 -0
  33. package/dist/esm/models/GetCourseVersionItemSession.d.ts +124 -0
  34. package/dist/esm/models/GetCourseVersionItemSession.js +101 -0
  35. package/dist/esm/models/GetCourseVersionList.d.ts +33 -0
  36. package/dist/esm/models/GetCourseVersionList.js +44 -0
  37. package/dist/esm/models/GetCourseVersionModule.d.ts +64 -0
  38. package/dist/esm/models/GetCourseVersionModule.js +65 -0
  39. package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +7 -0
  40. package/dist/esm/models/GetQuizAttemptQuestionsInner.js +3 -0
  41. package/dist/esm/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  42. package/dist/esm/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
  43. package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +13 -0
  44. package/dist/esm/models/GetQuizResultsQuestionsInner.js +5 -0
  45. package/dist/esm/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  46. package/dist/esm/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.js +3 -0
  47. package/dist/esm/models/GetResource.d.ts +118 -0
  48. package/dist/esm/models/GetResource.js +95 -0
  49. package/dist/esm/models/GetResourceList.d.ts +57 -0
  50. package/dist/esm/models/GetResourceList.js +60 -0
  51. package/dist/esm/models/GetResourceUsage.d.ts +63 -0
  52. package/dist/esm/models/GetResourceUsage.js +64 -0
  53. package/dist/esm/models/GetResourceUsageCoursesInner.d.ts +63 -0
  54. package/dist/esm/models/GetResourceUsageCoursesInner.js +64 -0
  55. package/dist/esm/models/GetResourceVersionUpload.d.ts +38 -0
  56. package/dist/esm/models/GetResourceVersionUpload.js +47 -0
  57. package/dist/esm/models/PostCourseDraft.d.ts +32 -0
  58. package/dist/esm/models/PostCourseDraft.js +41 -0
  59. package/dist/esm/models/PostCourseVersionItem.d.ts +97 -0
  60. package/dist/esm/models/PostCourseVersionItem.js +71 -0
  61. package/dist/esm/models/PostCourseVersionItemSession.d.ts +32 -0
  62. package/dist/esm/models/PostCourseVersionItemSession.js +41 -0
  63. package/dist/esm/models/PostCourseVersionPublish.d.ts +32 -0
  64. package/dist/esm/models/PostCourseVersionPublish.js +41 -0
  65. package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +7 -0
  66. package/dist/esm/models/PostQuizAttemptQuestionsInner.js +3 -0
  67. package/dist/esm/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  68. package/dist/esm/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
  69. package/dist/esm/models/PostResource.d.ts +58 -0
  70. package/dist/esm/models/PostResource.js +55 -0
  71. package/dist/esm/models/PostResourceVersion.d.ts +45 -0
  72. package/dist/esm/models/PostResourceVersion.js +46 -0
  73. package/dist/esm/models/PostResourceVersionComplete.d.ts +32 -0
  74. package/dist/esm/models/PostResourceVersionComplete.js +43 -0
  75. package/dist/esm/models/PostResourceVersionUpload.d.ts +50 -0
  76. package/dist/esm/models/PostResourceVersionUpload.js +55 -0
  77. package/dist/esm/models/PutCourseVersionItem.d.ts +85 -0
  78. package/dist/esm/models/PutCourseVersionItem.js +63 -0
  79. package/dist/esm/models/PutQuizAnswerResponse.d.ts +77 -0
  80. package/dist/esm/models/PutQuizAnswerResponse.js +64 -0
  81. package/dist/esm/models/PutQuizAnswerResponseNextQuestion.d.ts +102 -0
  82. package/dist/esm/models/PutQuizAnswerResponseNextQuestion.js +88 -0
  83. package/dist/esm/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.d.ts +51 -0
  84. package/dist/esm/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.js +54 -0
  85. package/dist/esm/models/PutQuizAnswerResponseProgress.d.ts +50 -0
  86. package/dist/esm/models/PutQuizAnswerResponseProgress.js +55 -0
  87. package/dist/esm/models/PutResource.d.ts +38 -0
  88. package/dist/esm/models/PutResource.js +43 -0
  89. package/dist/esm/models/PutResourceVersion.d.ts +53 -0
  90. package/dist/esm/models/PutResourceVersion.js +48 -0
  91. package/dist/esm/models/ResourceType.d.ts +32 -0
  92. package/dist/esm/models/ResourceType.js +50 -0
  93. package/dist/esm/models/index.d.ts +29 -0
  94. package/dist/esm/models/index.js +29 -0
  95. package/dist/models/ContentLibraryVersionStatus.d.ts +26 -0
  96. package/dist/models/ContentLibraryVersionStatus.js +52 -0
  97. package/dist/models/GetContentLibraryVersion.d.ts +126 -0
  98. package/dist/models/GetContentLibraryVersion.js +94 -0
  99. package/dist/models/GetCourseVersion.d.ts +101 -0
  100. package/dist/models/GetCourseVersion.js +93 -0
  101. package/dist/models/GetCourseVersionItem.d.ts +135 -0
  102. package/dist/models/GetCourseVersionItem.js +112 -0
  103. package/dist/models/GetCourseVersionItemLaunch.d.ts +103 -0
  104. package/dist/models/GetCourseVersionItemLaunch.js +89 -0
  105. package/dist/models/GetCourseVersionItemSession.d.ts +124 -0
  106. package/dist/models/GetCourseVersionItemSession.js +108 -0
  107. package/dist/models/GetCourseVersionList.d.ts +33 -0
  108. package/dist/models/GetCourseVersionList.js +51 -0
  109. package/dist/models/GetCourseVersionModule.d.ts +64 -0
  110. package/dist/models/GetCourseVersionModule.js +72 -0
  111. package/dist/models/GetQuizAttemptQuestionsInner.d.ts +7 -0
  112. package/dist/models/GetQuizAttemptQuestionsInner.js +3 -0
  113. package/dist/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  114. package/dist/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
  115. package/dist/models/GetQuizResultsQuestionsInner.d.ts +13 -0
  116. package/dist/models/GetQuizResultsQuestionsInner.js +5 -0
  117. package/dist/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  118. package/dist/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.js +3 -0
  119. package/dist/models/GetResource.d.ts +118 -0
  120. package/dist/models/GetResource.js +102 -0
  121. package/dist/models/GetResourceList.d.ts +57 -0
  122. package/dist/models/GetResourceList.js +67 -0
  123. package/dist/models/GetResourceUsage.d.ts +63 -0
  124. package/dist/models/GetResourceUsage.js +71 -0
  125. package/dist/models/GetResourceUsageCoursesInner.d.ts +63 -0
  126. package/dist/models/GetResourceUsageCoursesInner.js +71 -0
  127. package/dist/models/GetResourceVersionUpload.d.ts +38 -0
  128. package/dist/models/GetResourceVersionUpload.js +54 -0
  129. package/dist/models/PostCourseDraft.d.ts +32 -0
  130. package/dist/models/PostCourseDraft.js +48 -0
  131. package/dist/models/PostCourseVersionItem.d.ts +97 -0
  132. package/dist/models/PostCourseVersionItem.js +79 -0
  133. package/dist/models/PostCourseVersionItemSession.d.ts +32 -0
  134. package/dist/models/PostCourseVersionItemSession.js +48 -0
  135. package/dist/models/PostCourseVersionPublish.d.ts +32 -0
  136. package/dist/models/PostCourseVersionPublish.js +48 -0
  137. package/dist/models/PostQuizAttemptQuestionsInner.d.ts +7 -0
  138. package/dist/models/PostQuizAttemptQuestionsInner.js +3 -0
  139. package/dist/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  140. package/dist/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
  141. package/dist/models/PostResource.d.ts +58 -0
  142. package/dist/models/PostResource.js +62 -0
  143. package/dist/models/PostResourceVersion.d.ts +45 -0
  144. package/dist/models/PostResourceVersion.js +53 -0
  145. package/dist/models/PostResourceVersionComplete.d.ts +32 -0
  146. package/dist/models/PostResourceVersionComplete.js +50 -0
  147. package/dist/models/PostResourceVersionUpload.d.ts +50 -0
  148. package/dist/models/PostResourceVersionUpload.js +62 -0
  149. package/dist/models/PutCourseVersionItem.d.ts +85 -0
  150. package/dist/models/PutCourseVersionItem.js +71 -0
  151. package/dist/models/PutQuizAnswerResponse.d.ts +77 -0
  152. package/dist/models/PutQuizAnswerResponse.js +71 -0
  153. package/dist/models/PutQuizAnswerResponseNextQuestion.d.ts +102 -0
  154. package/dist/models/PutQuizAnswerResponseNextQuestion.js +96 -0
  155. package/dist/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.d.ts +51 -0
  156. package/dist/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.js +61 -0
  157. package/dist/models/PutQuizAnswerResponseProgress.d.ts +50 -0
  158. package/dist/models/PutQuizAnswerResponseProgress.js +62 -0
  159. package/dist/models/PutResource.d.ts +38 -0
  160. package/dist/models/PutResource.js +50 -0
  161. package/dist/models/PutResourceVersion.d.ts +53 -0
  162. package/dist/models/PutResourceVersion.js +55 -0
  163. package/dist/models/ResourceType.d.ts +32 -0
  164. package/dist/models/ResourceType.js +58 -0
  165. package/dist/models/index.d.ts +29 -0
  166. package/dist/models/index.js +29 -0
  167. package/docs/ContentLibraryApi.md +1132 -0
  168. package/docs/ContentLibraryVersionStatus.md +33 -0
  169. package/docs/CourseApi.md +797 -96
  170. package/docs/GetContentLibraryVersion.md +64 -0
  171. package/docs/GetCourseVersion.md +56 -0
  172. package/docs/GetCourseVersionItem.md +62 -0
  173. package/docs/GetCourseVersionItemLaunch.md +56 -0
  174. package/docs/GetCourseVersionItemSession.md +65 -0
  175. package/docs/GetCourseVersionList.md +34 -0
  176. package/docs/GetCourseVersionModule.md +44 -0
  177. package/docs/GetQuizAttemptQuestionsInner.md +2 -0
  178. package/docs/GetQuizAttemptQuestionsInnerAnswerChoicesInner.md +2 -0
  179. package/docs/GetQuizResultsQuestionsInner.md +4 -0
  180. package/docs/GetQuizResultsQuestionsInnerAnswerChoicesInner.md +2 -0
  181. package/docs/GetResource.md +62 -0
  182. package/docs/GetResourceList.md +42 -0
  183. package/docs/GetResourceUsage.md +44 -0
  184. package/docs/GetResourceUsageCoursesInner.md +44 -0
  185. package/docs/GetResourceVersionUpload.md +36 -0
  186. package/docs/PlayerApi.md +480 -0
  187. package/docs/PostCourseDraft.md +34 -0
  188. package/docs/PostCourseVersionItem.md +52 -0
  189. package/docs/PostCourseVersionItemSession.md +35 -0
  190. package/docs/PostCourseVersionPublish.md +34 -0
  191. package/docs/PostQuizAttemptQuestionsInner.md +2 -0
  192. package/docs/PostQuizAttemptQuestionsInnerAnswerChoicesInner.md +2 -0
  193. package/docs/PostResource.md +42 -0
  194. package/docs/PostResourceVersion.md +38 -0
  195. package/docs/PostResourceVersionComplete.md +34 -0
  196. package/docs/PostResourceVersionUpload.md +40 -0
  197. package/docs/PutCourseVersionItem.md +48 -0
  198. package/docs/PutQuizAnswerResponse.md +48 -0
  199. package/docs/PutQuizAnswerResponseNextQuestion.md +52 -0
  200. package/docs/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.md +40 -0
  201. package/docs/PutQuizAnswerResponseProgress.md +40 -0
  202. package/docs/PutResource.md +36 -0
  203. package/docs/PutResourceVersion.md +40 -0
  204. package/docs/QuizApi.md +3 -3
  205. package/docs/ResourceType.md +33 -0
  206. package/package.json +1 -1
  207. package/src/apis/ContentLibraryApi.ts +1024 -0
  208. package/src/apis/CourseApi.ts +636 -0
  209. package/src/apis/PlayerApi.ts +400 -0
  210. package/src/apis/QuizApi.ts +10 -4
  211. package/src/apis/index.ts +1 -0
  212. package/src/models/ContentLibraryVersionStatus.ts +54 -0
  213. package/src/models/GetContentLibraryVersion.ts +209 -0
  214. package/src/models/GetCourseVersion.ts +187 -0
  215. package/src/models/GetCourseVersionItem.ts +215 -0
  216. package/src/models/GetCourseVersionItemLaunch.ts +185 -0
  217. package/src/models/GetCourseVersionItemSession.ts +216 -0
  218. package/src/models/GetCourseVersionList.ts +74 -0
  219. package/src/models/GetCourseVersionModule.ts +126 -0
  220. package/src/models/GetQuizAttemptQuestionsInner.ts +15 -0
  221. package/src/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.ts +16 -0
  222. package/src/models/GetQuizResultsQuestionsInner.ts +23 -0
  223. package/src/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.ts +16 -0
  224. package/src/models/GetResource.ts +206 -0
  225. package/src/models/GetResourceList.ts +110 -0
  226. package/src/models/GetResourceUsage.ts +119 -0
  227. package/src/models/GetResourceUsageCoursesInner.ts +121 -0
  228. package/src/models/GetResourceVersionUpload.ts +75 -0
  229. package/src/models/PostCourseDraft.ts +65 -0
  230. package/src/models/PostCourseVersionItem.ts +158 -0
  231. package/src/models/PostCourseVersionItemSession.ts +65 -0
  232. package/src/models/PostCourseVersionPublish.ts +65 -0
  233. package/src/models/PostQuizAttemptQuestionsInner.ts +15 -0
  234. package/src/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.ts +16 -0
  235. package/src/models/PostResource.ts +116 -0
  236. package/src/models/PostResourceVersion.ts +89 -0
  237. package/src/models/PostResourceVersionComplete.ts +66 -0
  238. package/src/models/PostResourceVersionUpload.ts +93 -0
  239. package/src/models/PutCourseVersionItem.ts +140 -0
  240. package/src/models/PutQuizAnswerResponse.ts +146 -0
  241. package/src/models/PutQuizAnswerResponseNextQuestion.ts +175 -0
  242. package/src/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.ts +100 -0
  243. package/src/models/PutQuizAnswerResponseProgress.ts +93 -0
  244. package/src/models/PutResource.ts +73 -0
  245. package/src/models/PutResourceVersion.ts +97 -0
  246. package/src/models/ResourceType.ts +60 -0
  247. package/src/models/index.ts +29 -0
@@ -0,0 +1,88 @@
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 { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
15
+ import { PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSON, PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSON, } from './PutQuizAnswerResponseNextQuestionAnswerChoicesInner';
16
+ /**
17
+ * @export
18
+ */
19
+ export const PutQuizAnswerResponseNextQuestionQuestionTypeEnum = {
20
+ SingleAnswer: 'single_answer',
21
+ MultipleAnswer: 'multiple_answer',
22
+ FillInBlank: 'fill_in_blank',
23
+ ShortAnswer: 'short_answer',
24
+ Matching: 'matching',
25
+ Essay: 'essay'
26
+ };
27
+ /**
28
+ * Check if a given object implements the PutQuizAnswerResponseNextQuestion interface.
29
+ */
30
+ export function instanceOfPutQuizAnswerResponseNextQuestion(value) {
31
+ if (!('id' in value) || value['id'] === undefined)
32
+ return false;
33
+ if (!('questionId' in value) || value['questionId'] === undefined)
34
+ return false;
35
+ if (!('questionOrder' in value) || value['questionOrder'] === undefined)
36
+ return false;
37
+ if (!('points' in value) || value['points'] === undefined)
38
+ return false;
39
+ if (!('questionText' in value) || value['questionText'] === undefined)
40
+ return false;
41
+ if (!('questionType' in value) || value['questionType'] === undefined)
42
+ return false;
43
+ if (!('answerChoices' in value) || value['answerChoices'] === undefined)
44
+ return false;
45
+ if (!('isAnswered' in value) || value['isAnswered'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ export function PutQuizAnswerResponseNextQuestionFromJSON(json) {
50
+ return PutQuizAnswerResponseNextQuestionFromJSONTyped(json, false);
51
+ }
52
+ export function PutQuizAnswerResponseNextQuestionFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'id': json['id'],
58
+ 'questionId': json['question_id'],
59
+ 'questionOrder': json['question_order'],
60
+ 'points': json['points'],
61
+ 'questionText': json['question_text'],
62
+ 'questionTextRich': json['question_text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['question_text_rich']),
63
+ 'questionType': json['question_type'],
64
+ 'answerChoices': (json['answer_choices'].map(PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSON)),
65
+ 'isAnswered': json['is_answered'],
66
+ 'userAnswer': json['user_answer'] == null ? undefined : json['user_answer'],
67
+ };
68
+ }
69
+ export function PutQuizAnswerResponseNextQuestionToJSON(json) {
70
+ return PutQuizAnswerResponseNextQuestionToJSONTyped(json, false);
71
+ }
72
+ export function PutQuizAnswerResponseNextQuestionToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'id': value['id'],
78
+ 'question_id': value['questionId'],
79
+ 'question_order': value['questionOrder'],
80
+ 'points': value['points'],
81
+ 'question_text': value['questionText'],
82
+ 'question_text_rich': RichTextDocumentToJSON(value['questionTextRich']),
83
+ 'question_type': value['questionType'],
84
+ 'answer_choices': (value['answerChoices'].map(PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSON)),
85
+ 'is_answered': value['isAnswered'],
86
+ 'user_answer': value['userAnswer'],
87
+ };
88
+ }
@@ -0,0 +1,51 @@
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 { RichTextDocument } from './RichTextDocument';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PutQuizAnswerResponseNextQuestionAnswerChoicesInner
17
+ */
18
+ export interface PutQuizAnswerResponseNextQuestionAnswerChoicesInner {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
29
+ */
30
+ text: string;
31
+ /**
32
+ *
33
+ * @type {RichTextDocument}
34
+ * @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
35
+ */
36
+ textRich?: RichTextDocument;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
41
+ */
42
+ displayOrder: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PutQuizAnswerResponseNextQuestionAnswerChoicesInner interface.
46
+ */
47
+ export declare function instanceOfPutQuizAnswerResponseNextQuestionAnswerChoicesInner(value: object): value is PutQuizAnswerResponseNextQuestionAnswerChoicesInner;
48
+ export declare function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSON(json: any): PutQuizAnswerResponseNextQuestionAnswerChoicesInner;
49
+ export declare function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerResponseNextQuestionAnswerChoicesInner;
50
+ export declare function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSON(json: any): PutQuizAnswerResponseNextQuestionAnswerChoicesInner;
51
+ export declare function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSONTyped(value?: PutQuizAnswerResponseNextQuestionAnswerChoicesInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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 { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
15
+ /**
16
+ * Check if a given object implements the PutQuizAnswerResponseNextQuestionAnswerChoicesInner interface.
17
+ */
18
+ export function instanceOfPutQuizAnswerResponseNextQuestionAnswerChoicesInner(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('text' in value) || value['text'] === undefined)
22
+ return false;
23
+ if (!('displayOrder' in value) || value['displayOrder'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSON(json) {
28
+ return PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSONTyped(json, false);
29
+ }
30
+ export function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'],
36
+ 'text': json['text'],
37
+ 'textRich': json['text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['text_rich']),
38
+ 'displayOrder': json['display_order'],
39
+ };
40
+ }
41
+ export function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSON(json) {
42
+ return PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSONTyped(json, false);
43
+ }
44
+ export function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'id': value['id'],
50
+ 'text': value['text'],
51
+ 'text_rich': RichTextDocumentToJSON(value['textRich']),
52
+ 'display_order': value['displayOrder'],
53
+ };
54
+ }
@@ -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 PutQuizAnswerResponseProgress
16
+ */
17
+ export interface PutQuizAnswerResponseProgress {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PutQuizAnswerResponseProgress
22
+ */
23
+ totalQuestions: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof PutQuizAnswerResponseProgress
28
+ */
29
+ questionsAnswered: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PutQuizAnswerResponseProgress
34
+ */
35
+ currentQuestionNumber: number;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof PutQuizAnswerResponseProgress
40
+ */
41
+ canSubmit: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PutQuizAnswerResponseProgress interface.
45
+ */
46
+ export declare function instanceOfPutQuizAnswerResponseProgress(value: object): value is PutQuizAnswerResponseProgress;
47
+ export declare function PutQuizAnswerResponseProgressFromJSON(json: any): PutQuizAnswerResponseProgress;
48
+ export declare function PutQuizAnswerResponseProgressFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerResponseProgress;
49
+ export declare function PutQuizAnswerResponseProgressToJSON(json: any): PutQuizAnswerResponseProgress;
50
+ export declare function PutQuizAnswerResponseProgressToJSONTyped(value?: PutQuizAnswerResponseProgress | 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 PutQuizAnswerResponseProgress interface.
16
+ */
17
+ export function instanceOfPutQuizAnswerResponseProgress(value) {
18
+ if (!('totalQuestions' in value) || value['totalQuestions'] === undefined)
19
+ return false;
20
+ if (!('questionsAnswered' in value) || value['questionsAnswered'] === undefined)
21
+ return false;
22
+ if (!('currentQuestionNumber' in value) || value['currentQuestionNumber'] === undefined)
23
+ return false;
24
+ if (!('canSubmit' in value) || value['canSubmit'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function PutQuizAnswerResponseProgressFromJSON(json) {
29
+ return PutQuizAnswerResponseProgressFromJSONTyped(json, false);
30
+ }
31
+ export function PutQuizAnswerResponseProgressFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'totalQuestions': json['total_questions'],
37
+ 'questionsAnswered': json['questions_answered'],
38
+ 'currentQuestionNumber': json['current_question_number'],
39
+ 'canSubmit': json['can_submit'],
40
+ };
41
+ }
42
+ export function PutQuizAnswerResponseProgressToJSON(json) {
43
+ return PutQuizAnswerResponseProgressToJSONTyped(json, false);
44
+ }
45
+ export function PutQuizAnswerResponseProgressToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'total_questions': value['totalQuestions'],
51
+ 'questions_answered': value['questionsAnswered'],
52
+ 'current_question_number': value['currentQuestionNumber'],
53
+ 'can_submit': value['canSubmit'],
54
+ };
55
+ }
@@ -0,0 +1,38 @@
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 PutResource
16
+ */
17
+ export interface PutResource {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PutResource
22
+ */
23
+ name?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PutResource
28
+ */
29
+ description?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PutResource interface.
33
+ */
34
+ export declare function instanceOfPutResource(value: object): value is PutResource;
35
+ export declare function PutResourceFromJSON(json: any): PutResource;
36
+ export declare function PutResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutResource;
37
+ export declare function PutResourceToJSON(json: any): PutResource;
38
+ export declare function PutResourceToJSONTyped(value?: PutResource | 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 PutResource interface.
16
+ */
17
+ export function instanceOfPutResource(value) {
18
+ return true;
19
+ }
20
+ export function PutResourceFromJSON(json) {
21
+ return PutResourceFromJSONTyped(json, false);
22
+ }
23
+ export function PutResourceFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'name': json['name'] == null ? undefined : json['name'],
29
+ 'description': json['description'] == null ? undefined : json['description'],
30
+ };
31
+ }
32
+ export function PutResourceToJSON(json) {
33
+ return PutResourceToJSONTyped(json, false);
34
+ }
35
+ export function PutResourceToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'name': value['name'],
41
+ 'description': value['description'],
42
+ };
43
+ }
@@ -0,0 +1,53 @@
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 PutResourceVersion
17
+ */
18
+ export interface PutResourceVersion {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PutResourceVersion
23
+ */
24
+ changeNotes?: string;
25
+ /**
26
+ *
27
+ * @type {{ [key: string]: any; }}
28
+ * @memberof PutResourceVersion
29
+ */
30
+ metadata?: {
31
+ [key: string]: any;
32
+ };
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof PutResourceVersion
37
+ */
38
+ linkUrl?: string | null;
39
+ /**
40
+ *
41
+ * @type {RichTextInput}
42
+ * @memberof PutResourceVersion
43
+ */
44
+ richText?: RichTextInput | null;
45
+ }
46
+ /**
47
+ * Check if a given object implements the PutResourceVersion interface.
48
+ */
49
+ export declare function instanceOfPutResourceVersion(value: object): value is PutResourceVersion;
50
+ export declare function PutResourceVersionFromJSON(json: any): PutResourceVersion;
51
+ export declare function PutResourceVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutResourceVersion;
52
+ export declare function PutResourceVersionToJSON(json: any): PutResourceVersion;
53
+ export declare function PutResourceVersionToJSONTyped(value?: PutResourceVersion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { RichTextInputFromJSON, RichTextInputToJSON, } from './RichTextInput';
15
+ /**
16
+ * Check if a given object implements the PutResourceVersion interface.
17
+ */
18
+ export function instanceOfPutResourceVersion(value) {
19
+ return true;
20
+ }
21
+ export function PutResourceVersionFromJSON(json) {
22
+ return PutResourceVersionFromJSONTyped(json, false);
23
+ }
24
+ export function PutResourceVersionFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
30
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
31
+ 'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
32
+ 'richText': json['rich_text'] == null ? undefined : RichTextInputFromJSON(json['rich_text']),
33
+ };
34
+ }
35
+ export function PutResourceVersionToJSON(json) {
36
+ return PutResourceVersionToJSONTyped(json, false);
37
+ }
38
+ export function PutResourceVersionToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'change_notes': value['changeNotes'],
44
+ 'metadata': value['metadata'],
45
+ 'link_url': value['linkUrl'],
46
+ 'rich_text': RichTextInputToJSON(value['richText']),
47
+ };
48
+ }
@@ -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
+ * Resource payload type.
14
+ * @export
15
+ */
16
+ export declare const ResourceType: {
17
+ readonly Scorm: "scorm";
18
+ readonly Video: "video";
19
+ readonly Audio: "audio";
20
+ readonly Image: "image";
21
+ readonly Pdf: "pdf";
22
+ readonly Powerpoint: "powerpoint";
23
+ readonly File: "file";
24
+ readonly Link: "link";
25
+ readonly RichText: "rich_text";
26
+ };
27
+ export type ResourceType = typeof ResourceType[keyof typeof ResourceType];
28
+ export declare function instanceOfResourceType(value: any): boolean;
29
+ export declare function ResourceTypeFromJSON(json: any): ResourceType;
30
+ export declare function ResourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceType;
31
+ export declare function ResourceTypeToJSON(value?: ResourceType | null): any;
32
+ export declare function ResourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ResourceType;
@@ -0,0 +1,50 @@
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
+ * Resource payload type.
16
+ * @export
17
+ */
18
+ export const ResourceType = {
19
+ Scorm: 'scorm',
20
+ Video: 'video',
21
+ Audio: 'audio',
22
+ Image: 'image',
23
+ Pdf: 'pdf',
24
+ Powerpoint: 'powerpoint',
25
+ File: 'file',
26
+ Link: 'link',
27
+ RichText: 'rich_text'
28
+ };
29
+ export function instanceOfResourceType(value) {
30
+ for (const key in ResourceType) {
31
+ if (Object.prototype.hasOwnProperty.call(ResourceType, key)) {
32
+ if (ResourceType[key] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+ export function ResourceTypeFromJSON(json) {
40
+ return ResourceTypeFromJSONTyped(json, false);
41
+ }
42
+ export function ResourceTypeFromJSONTyped(json, ignoreDiscriminator) {
43
+ return json;
44
+ }
45
+ export function ResourceTypeToJSON(value) {
46
+ return value;
47
+ }
48
+ export function ResourceTypeToJSONTyped(value, ignoreDiscriminator) {
49
+ return value;
50
+ }
@@ -6,6 +6,7 @@ export * from './ContentAttemptRollupScore';
6
6
  export * from './ContentAttemptScore';
7
7
  export * from './ContentAttemptSettings';
8
8
  export * from './ContentLaunchMode';
9
+ export * from './ContentLibraryVersionStatus';
9
10
  export * from './CourseCatalog';
10
11
  export * from './CourseShare';
11
12
  export * from './CriteriaBasedSelection';
@@ -30,6 +31,7 @@ export * from './GetContentInstructorBasicReporting';
30
31
  export * from './GetContentInstructorBasicReportingContentInfo';
31
32
  export * from './GetContentInstructorBasicReportingEngagement';
32
33
  export * from './GetContentInstructorBasicReportingPerformance';
34
+ export * from './GetContentLibraryVersion';
33
35
  export * from './GetContentList';
34
36
  export * from './GetContentSession';
35
37
  export * from './GetContentSessionDetail';
@@ -60,6 +62,12 @@ export * from './GetCourseStudentReportingCourseInfo';
60
62
  export * from './GetCourseStudentReportingEngagement';
61
63
  export * from './GetCourseStudentReportingModulesInner';
62
64
  export * from './GetCourseStudentReportingPerformance';
65
+ export * from './GetCourseVersion';
66
+ export * from './GetCourseVersionItem';
67
+ export * from './GetCourseVersionItemLaunch';
68
+ export * from './GetCourseVersionItemSession';
69
+ export * from './GetCourseVersionList';
70
+ export * from './GetCourseVersionModule';
63
71
  export * from './GetManualQuestionSelectionItem';
64
72
  export * from './GetManualQuestionSelectionList';
65
73
  export * from './GetModule';
@@ -137,6 +145,11 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
137
145
  export * from './GetQuizResultsScore';
138
146
  export * from './GetQuizResultsTiming';
139
147
  export * from './GetQuizStatistics';
148
+ export * from './GetResource';
149
+ export * from './GetResourceList';
150
+ export * from './GetResourceUsage';
151
+ export * from './GetResourceUsageCoursesInner';
152
+ export * from './GetResourceVersionUpload';
140
153
  export * from './GetRichTextAssetUpload';
141
154
  export * from './GetRole';
142
155
  export * from './GetScormApiLogItem';
@@ -200,9 +213,13 @@ export * from './PostConversation';
200
213
  export * from './PostConversationResponse';
201
214
  export * from './PostCourse';
202
215
  export * from './PostCourseCatalog';
216
+ export * from './PostCourseDraft';
203
217
  export * from './PostCourseEnrollment';
204
218
  export * from './PostCourseExport';
205
219
  export * from './PostCourseResume';
220
+ export * from './PostCourseVersionItem';
221
+ export * from './PostCourseVersionItemSession';
222
+ export * from './PostCourseVersionPublish';
206
223
  export * from './PostDuplicate';
207
224
  export * from './PostDuplicate1';
208
225
  export * from './PostDuplicate2';
@@ -234,6 +251,10 @@ export * from './PostQuizQuestions';
234
251
  export * from './PostQuizQuestionsQuestionsInner';
235
252
  export * from './PostQuizSettings';
236
253
  export * from './PostResetPassword';
254
+ export * from './PostResource';
255
+ export * from './PostResourceVersion';
256
+ export * from './PostResourceVersionComplete';
257
+ export * from './PostResourceVersionUpload';
237
258
  export * from './PostRevokeCertificate';
238
259
  export * from './PostRichTextAssetComplete';
239
260
  export * from './PostRichTextAssetUpload';
@@ -254,6 +275,7 @@ export * from './PutContentVersion';
254
275
  export * from './PutCourse';
255
276
  export * from './PutCourseCatalog';
256
277
  export * from './PutCourseEnrollment';
278
+ export * from './PutCourseVersionItem';
257
279
  export * from './PutModule';
258
280
  export * from './PutModuleReorder';
259
281
  export * from './PutPortalBranding';
@@ -265,7 +287,13 @@ export * from './PutQuiz';
265
287
  export * from './PutQuizAnswer';
266
288
  export * from './PutQuizAnswerAnswer';
267
289
  export * from './PutQuizAnswerGrade';
290
+ export * from './PutQuizAnswerResponse';
291
+ export * from './PutQuizAnswerResponseNextQuestion';
292
+ export * from './PutQuizAnswerResponseNextQuestionAnswerChoicesInner';
293
+ export * from './PutQuizAnswerResponseProgress';
268
294
  export * from './PutQuizSettings';
295
+ export * from './PutResource';
296
+ export * from './PutResourceVersion';
269
297
  export * from './PutRole';
270
298
  export * from './PutRolePermissions';
271
299
  export * from './PutSupportTicket';
@@ -273,6 +301,7 @@ export * from './PutUser';
273
301
  export * from './QuizContent';
274
302
  export * from './QuizContentAssignment';
275
303
  export * from './QuizContentSettings';
304
+ export * from './ResourceType';
276
305
  export * from './RichTextAsset';
277
306
  export * from './RichTextDocument';
278
307
  export * from './RichTextInput';