@easyedu/js-lsm-api 1.91.0 → 1.92.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 (175) hide show
  1. package/.openapi-generator/FILES +50 -0
  2. package/README.md +52 -2
  3. package/dist/apis/ContentLibraryQuizApi.d.ts +451 -0
  4. package/dist/apis/ContentLibraryQuizApi.js +1162 -0
  5. package/dist/apis/PlayerApi.d.ts +15 -0
  6. package/dist/apis/PlayerApi.js +44 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/ContentLibraryQuizApi.d.ts +451 -0
  10. package/dist/esm/apis/ContentLibraryQuizApi.js +1158 -0
  11. package/dist/esm/apis/PlayerApi.d.ts +15 -0
  12. package/dist/esm/apis/PlayerApi.js +44 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/GetCourseVersionItem.d.ts +14 -0
  16. package/dist/esm/models/GetCourseVersionItem.js +9 -0
  17. package/dist/esm/models/GetLibraryQuiz.d.ts +124 -0
  18. package/dist/esm/models/GetLibraryQuiz.js +100 -0
  19. package/dist/esm/models/GetLibraryQuizAnalytics.d.ts +68 -0
  20. package/dist/esm/models/GetLibraryQuizAnalytics.js +67 -0
  21. package/dist/esm/models/GetLibraryQuizList.d.ts +57 -0
  22. package/dist/esm/models/GetLibraryQuizList.js +60 -0
  23. package/dist/esm/models/GetLibraryQuizResult.d.ts +94 -0
  24. package/dist/esm/models/GetLibraryQuizResult.js +79 -0
  25. package/dist/esm/models/GetLibraryQuizSession.d.ts +177 -0
  26. package/dist/esm/models/GetLibraryQuizSession.js +129 -0
  27. package/dist/esm/models/GetLibraryQuizSessionList.d.ts +57 -0
  28. package/dist/esm/models/GetLibraryQuizSessionList.js +60 -0
  29. package/dist/esm/models/GetLibraryQuizUsage.d.ts +56 -0
  30. package/dist/esm/models/GetLibraryQuizUsage.js +59 -0
  31. package/dist/esm/models/GetLibraryQuizVersion.d.ts +170 -0
  32. package/dist/esm/models/GetLibraryQuizVersion.js +125 -0
  33. package/dist/esm/models/LibraryQuizCriterion.d.ts +95 -0
  34. package/dist/esm/models/LibraryQuizCriterion.js +76 -0
  35. package/dist/esm/models/LibraryQuizQuestion.d.ts +70 -0
  36. package/dist/esm/models/LibraryQuizQuestion.js +63 -0
  37. package/dist/esm/models/LibraryQuizQuestionInput.d.ts +50 -0
  38. package/dist/esm/models/LibraryQuizQuestionInput.js +51 -0
  39. package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +51 -0
  40. package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +54 -0
  41. package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +96 -0
  42. package/dist/esm/models/LibraryQuizSessionQuestion.js +84 -0
  43. package/dist/esm/models/PostCourseLibraryQuizSession.d.ts +32 -0
  44. package/dist/esm/models/PostCourseLibraryQuizSession.js +41 -0
  45. package/dist/esm/models/PostLibraryQuiz.d.ts +107 -0
  46. package/dist/esm/models/PostLibraryQuiz.js +70 -0
  47. package/dist/esm/models/PostLibraryQuizSession.d.ts +32 -0
  48. package/dist/esm/models/PostLibraryQuizSession.js +41 -0
  49. package/dist/esm/models/PostLibraryQuizVersion.d.ts +32 -0
  50. package/dist/esm/models/PostLibraryQuizVersion.js +41 -0
  51. package/dist/esm/models/PutLibraryQuiz.d.ts +38 -0
  52. package/dist/esm/models/PutLibraryQuiz.js +43 -0
  53. package/dist/esm/models/PutLibraryQuizCriteria.d.ts +33 -0
  54. package/dist/esm/models/PutLibraryQuizCriteria.js +44 -0
  55. package/dist/esm/models/PutLibraryQuizQuestions.d.ts +33 -0
  56. package/dist/esm/models/PutLibraryQuizQuestions.js +44 -0
  57. package/dist/esm/models/PutLibraryQuizSessionAnswer.d.ts +40 -0
  58. package/dist/esm/models/PutLibraryQuizSessionAnswer.js +45 -0
  59. package/dist/esm/models/PutLibraryQuizSessionGrade.d.ts +38 -0
  60. package/dist/esm/models/PutLibraryQuizSessionGrade.js +45 -0
  61. package/dist/esm/models/PutLibraryQuizVersion.d.ts +101 -0
  62. package/dist/esm/models/PutLibraryQuizVersion.js +64 -0
  63. package/dist/esm/models/QuestionSelectionMethod.d.ts +25 -0
  64. package/dist/esm/models/QuestionSelectionMethod.js +43 -0
  65. package/dist/esm/models/index.d.ts +24 -0
  66. package/dist/esm/models/index.js +24 -0
  67. package/dist/models/GetCourseVersionItem.d.ts +14 -0
  68. package/dist/models/GetCourseVersionItem.js +10 -1
  69. package/dist/models/GetLibraryQuiz.d.ts +124 -0
  70. package/dist/models/GetLibraryQuiz.js +108 -0
  71. package/dist/models/GetLibraryQuizAnalytics.d.ts +68 -0
  72. package/dist/models/GetLibraryQuizAnalytics.js +74 -0
  73. package/dist/models/GetLibraryQuizList.d.ts +57 -0
  74. package/dist/models/GetLibraryQuizList.js +67 -0
  75. package/dist/models/GetLibraryQuizResult.d.ts +94 -0
  76. package/dist/models/GetLibraryQuizResult.js +86 -0
  77. package/dist/models/GetLibraryQuizSession.d.ts +177 -0
  78. package/dist/models/GetLibraryQuizSession.js +137 -0
  79. package/dist/models/GetLibraryQuizSessionList.d.ts +57 -0
  80. package/dist/models/GetLibraryQuizSessionList.js +67 -0
  81. package/dist/models/GetLibraryQuizUsage.d.ts +56 -0
  82. package/dist/models/GetLibraryQuizUsage.js +66 -0
  83. package/dist/models/GetLibraryQuizVersion.d.ts +170 -0
  84. package/dist/models/GetLibraryQuizVersion.js +132 -0
  85. package/dist/models/LibraryQuizCriterion.d.ts +95 -0
  86. package/dist/models/LibraryQuizCriterion.js +84 -0
  87. package/dist/models/LibraryQuizQuestion.d.ts +70 -0
  88. package/dist/models/LibraryQuizQuestion.js +70 -0
  89. package/dist/models/LibraryQuizQuestionInput.d.ts +50 -0
  90. package/dist/models/LibraryQuizQuestionInput.js +58 -0
  91. package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +51 -0
  92. package/dist/models/LibraryQuizSessionAnswerChoice.js +61 -0
  93. package/dist/models/LibraryQuizSessionQuestion.d.ts +96 -0
  94. package/dist/models/LibraryQuizSessionQuestion.js +92 -0
  95. package/dist/models/PostCourseLibraryQuizSession.d.ts +32 -0
  96. package/dist/models/PostCourseLibraryQuizSession.js +48 -0
  97. package/dist/models/PostLibraryQuiz.d.ts +107 -0
  98. package/dist/models/PostLibraryQuiz.js +77 -0
  99. package/dist/models/PostLibraryQuizSession.d.ts +32 -0
  100. package/dist/models/PostLibraryQuizSession.js +48 -0
  101. package/dist/models/PostLibraryQuizVersion.d.ts +32 -0
  102. package/dist/models/PostLibraryQuizVersion.js +48 -0
  103. package/dist/models/PutLibraryQuiz.d.ts +38 -0
  104. package/dist/models/PutLibraryQuiz.js +50 -0
  105. package/dist/models/PutLibraryQuizCriteria.d.ts +33 -0
  106. package/dist/models/PutLibraryQuizCriteria.js +51 -0
  107. package/dist/models/PutLibraryQuizQuestions.d.ts +33 -0
  108. package/dist/models/PutLibraryQuizQuestions.js +51 -0
  109. package/dist/models/PutLibraryQuizSessionAnswer.d.ts +40 -0
  110. package/dist/models/PutLibraryQuizSessionAnswer.js +52 -0
  111. package/dist/models/PutLibraryQuizSessionGrade.d.ts +38 -0
  112. package/dist/models/PutLibraryQuizSessionGrade.js +52 -0
  113. package/dist/models/PutLibraryQuizVersion.d.ts +101 -0
  114. package/dist/models/PutLibraryQuizVersion.js +71 -0
  115. package/dist/models/QuestionSelectionMethod.d.ts +25 -0
  116. package/dist/models/QuestionSelectionMethod.js +51 -0
  117. package/dist/models/index.d.ts +24 -0
  118. package/dist/models/index.js +24 -0
  119. package/docs/ContentLibraryQuizApi.md +1780 -0
  120. package/docs/GetCourseVersionItem.md +2 -0
  121. package/docs/GetLibraryQuiz.md +62 -0
  122. package/docs/GetLibraryQuizAnalytics.md +46 -0
  123. package/docs/GetLibraryQuizList.md +42 -0
  124. package/docs/GetLibraryQuizResult.md +54 -0
  125. package/docs/GetLibraryQuizSession.md +78 -0
  126. package/docs/GetLibraryQuizSessionList.md +42 -0
  127. package/docs/GetLibraryQuizUsage.md +42 -0
  128. package/docs/GetLibraryQuizVersion.md +78 -0
  129. package/docs/LibraryQuizCriterion.md +48 -0
  130. package/docs/LibraryQuizQuestion.md +46 -0
  131. package/docs/LibraryQuizQuestionInput.md +40 -0
  132. package/docs/LibraryQuizSessionAnswerChoice.md +40 -0
  133. package/docs/LibraryQuizSessionQuestion.md +50 -0
  134. package/docs/PlayerApi.md +66 -0
  135. package/docs/PostCourseLibraryQuizSession.md +34 -0
  136. package/docs/PostLibraryQuiz.md +58 -0
  137. package/docs/PostLibraryQuizSession.md +34 -0
  138. package/docs/PostLibraryQuizVersion.md +34 -0
  139. package/docs/PutLibraryQuiz.md +36 -0
  140. package/docs/PutLibraryQuizCriteria.md +34 -0
  141. package/docs/PutLibraryQuizQuestions.md +34 -0
  142. package/docs/PutLibraryQuizSessionAnswer.md +36 -0
  143. package/docs/PutLibraryQuizSessionGrade.md +36 -0
  144. package/docs/PutLibraryQuizVersion.md +56 -0
  145. package/docs/QuestionSelectionMethod.md +32 -0
  146. package/package.json +1 -1
  147. package/src/apis/ContentLibraryQuizApi.ts +1624 -0
  148. package/src/apis/PlayerApi.ts +53 -0
  149. package/src/apis/index.ts +1 -0
  150. package/src/models/GetCourseVersionItem.ts +17 -0
  151. package/src/models/GetLibraryQuiz.ts +207 -0
  152. package/src/models/GetLibraryQuizAnalytics.ts +120 -0
  153. package/src/models/GetLibraryQuizList.ts +110 -0
  154. package/src/models/GetLibraryQuizResult.ts +154 -0
  155. package/src/models/GetLibraryQuizSession.ts +286 -0
  156. package/src/models/GetLibraryQuizSessionList.ts +110 -0
  157. package/src/models/GetLibraryQuizUsage.ts +102 -0
  158. package/src/models/GetLibraryQuizVersion.ts +290 -0
  159. package/src/models/LibraryQuizCriterion.ts +147 -0
  160. package/src/models/LibraryQuizQuestion.ts +118 -0
  161. package/src/models/LibraryQuizQuestionInput.ts +91 -0
  162. package/src/models/LibraryQuizSessionAnswerChoice.ts +100 -0
  163. package/src/models/LibraryQuizSessionQuestion.ts +166 -0
  164. package/src/models/PostCourseLibraryQuizSession.ts +65 -0
  165. package/src/models/PostLibraryQuiz.ts +173 -0
  166. package/src/models/PostLibraryQuizSession.ts +65 -0
  167. package/src/models/PostLibraryQuizVersion.ts +65 -0
  168. package/src/models/PutLibraryQuiz.ts +73 -0
  169. package/src/models/PutLibraryQuizCriteria.ts +74 -0
  170. package/src/models/PutLibraryQuizQuestions.ts +74 -0
  171. package/src/models/PutLibraryQuizSessionAnswer.ts +74 -0
  172. package/src/models/PutLibraryQuizSessionGrade.ts +74 -0
  173. package/src/models/PutLibraryQuizVersion.ts +163 -0
  174. package/src/models/QuestionSelectionMethod.ts +53 -0
  175. package/src/models/index.ts +24 -0
@@ -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 PostLibraryQuizSession interface.
16
+ */
17
+ export function instanceOfPostLibraryQuizSession(value) {
18
+ return true;
19
+ }
20
+ export function PostLibraryQuizSessionFromJSON(json) {
21
+ return PostLibraryQuizSessionFromJSONTyped(json, false);
22
+ }
23
+ export function PostLibraryQuizSessionFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'restart': json['restart'] == null ? undefined : json['restart'],
29
+ };
30
+ }
31
+ export function PostLibraryQuizSessionToJSON(json) {
32
+ return PostLibraryQuizSessionToJSONTyped(json, false);
33
+ }
34
+ export function PostLibraryQuizSessionToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'restart': value['restart'],
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 PostLibraryQuizVersion
16
+ */
17
+ export interface PostLibraryQuizVersion {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostLibraryQuizVersion
22
+ */
23
+ changeNotes?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostLibraryQuizVersion interface.
27
+ */
28
+ export declare function instanceOfPostLibraryQuizVersion(value: object): value is PostLibraryQuizVersion;
29
+ export declare function PostLibraryQuizVersionFromJSON(json: any): PostLibraryQuizVersion;
30
+ export declare function PostLibraryQuizVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLibraryQuizVersion;
31
+ export declare function PostLibraryQuizVersionToJSON(json: any): PostLibraryQuizVersion;
32
+ export declare function PostLibraryQuizVersionToJSONTyped(value?: PostLibraryQuizVersion | 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 PostLibraryQuizVersion interface.
16
+ */
17
+ export function instanceOfPostLibraryQuizVersion(value) {
18
+ return true;
19
+ }
20
+ export function PostLibraryQuizVersionFromJSON(json) {
21
+ return PostLibraryQuizVersionFromJSONTyped(json, false);
22
+ }
23
+ export function PostLibraryQuizVersionFromJSONTyped(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 PostLibraryQuizVersionToJSON(json) {
32
+ return PostLibraryQuizVersionToJSONTyped(json, false);
33
+ }
34
+ export function PostLibraryQuizVersionToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'change_notes': value['changeNotes'],
40
+ };
41
+ }
@@ -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 PutLibraryQuiz
16
+ */
17
+ export interface PutLibraryQuiz {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PutLibraryQuiz
22
+ */
23
+ name?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PutLibraryQuiz
28
+ */
29
+ description?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PutLibraryQuiz interface.
33
+ */
34
+ export declare function instanceOfPutLibraryQuiz(value: object): value is PutLibraryQuiz;
35
+ export declare function PutLibraryQuizFromJSON(json: any): PutLibraryQuiz;
36
+ export declare function PutLibraryQuizFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuiz;
37
+ export declare function PutLibraryQuizToJSON(json: any): PutLibraryQuiz;
38
+ export declare function PutLibraryQuizToJSONTyped(value?: PutLibraryQuiz | 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 PutLibraryQuiz interface.
16
+ */
17
+ export function instanceOfPutLibraryQuiz(value) {
18
+ return true;
19
+ }
20
+ export function PutLibraryQuizFromJSON(json) {
21
+ return PutLibraryQuizFromJSONTyped(json, false);
22
+ }
23
+ export function PutLibraryQuizFromJSONTyped(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 PutLibraryQuizToJSON(json) {
33
+ return PutLibraryQuizToJSONTyped(json, false);
34
+ }
35
+ export function PutLibraryQuizToJSONTyped(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,33 @@
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 { LibraryQuizCriterion } from './LibraryQuizCriterion';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PutLibraryQuizCriteria
17
+ */
18
+ export interface PutLibraryQuizCriteria {
19
+ /**
20
+ *
21
+ * @type {Array<LibraryQuizCriterion>}
22
+ * @memberof PutLibraryQuizCriteria
23
+ */
24
+ criteria: Array<LibraryQuizCriterion>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the PutLibraryQuizCriteria interface.
28
+ */
29
+ export declare function instanceOfPutLibraryQuizCriteria(value: object): value is PutLibraryQuizCriteria;
30
+ export declare function PutLibraryQuizCriteriaFromJSON(json: any): PutLibraryQuizCriteria;
31
+ export declare function PutLibraryQuizCriteriaFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizCriteria;
32
+ export declare function PutLibraryQuizCriteriaToJSON(json: any): PutLibraryQuizCriteria;
33
+ export declare function PutLibraryQuizCriteriaToJSONTyped(value?: PutLibraryQuizCriteria | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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 { LibraryQuizCriterionFromJSON, LibraryQuizCriterionToJSON, } from './LibraryQuizCriterion';
15
+ /**
16
+ * Check if a given object implements the PutLibraryQuizCriteria interface.
17
+ */
18
+ export function instanceOfPutLibraryQuizCriteria(value) {
19
+ if (!('criteria' in value) || value['criteria'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function PutLibraryQuizCriteriaFromJSON(json) {
24
+ return PutLibraryQuizCriteriaFromJSONTyped(json, false);
25
+ }
26
+ export function PutLibraryQuizCriteriaFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'criteria': (json['criteria'].map(LibraryQuizCriterionFromJSON)),
32
+ };
33
+ }
34
+ export function PutLibraryQuizCriteriaToJSON(json) {
35
+ return PutLibraryQuizCriteriaToJSONTyped(json, false);
36
+ }
37
+ export function PutLibraryQuizCriteriaToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'criteria': (value['criteria'].map(LibraryQuizCriterionToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,33 @@
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 { LibraryQuizQuestionInput } from './LibraryQuizQuestionInput';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PutLibraryQuizQuestions
17
+ */
18
+ export interface PutLibraryQuizQuestions {
19
+ /**
20
+ *
21
+ * @type {Array<LibraryQuizQuestionInput>}
22
+ * @memberof PutLibraryQuizQuestions
23
+ */
24
+ questions: Array<LibraryQuizQuestionInput>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the PutLibraryQuizQuestions interface.
28
+ */
29
+ export declare function instanceOfPutLibraryQuizQuestions(value: object): value is PutLibraryQuizQuestions;
30
+ export declare function PutLibraryQuizQuestionsFromJSON(json: any): PutLibraryQuizQuestions;
31
+ export declare function PutLibraryQuizQuestionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizQuestions;
32
+ export declare function PutLibraryQuizQuestionsToJSON(json: any): PutLibraryQuizQuestions;
33
+ export declare function PutLibraryQuizQuestionsToJSONTyped(value?: PutLibraryQuizQuestions | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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 { LibraryQuizQuestionInputFromJSON, LibraryQuizQuestionInputToJSON, } from './LibraryQuizQuestionInput';
15
+ /**
16
+ * Check if a given object implements the PutLibraryQuizQuestions interface.
17
+ */
18
+ export function instanceOfPutLibraryQuizQuestions(value) {
19
+ if (!('questions' in value) || value['questions'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function PutLibraryQuizQuestionsFromJSON(json) {
24
+ return PutLibraryQuizQuestionsFromJSONTyped(json, false);
25
+ }
26
+ export function PutLibraryQuizQuestionsFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'questions': (json['questions'].map(LibraryQuizQuestionInputFromJSON)),
32
+ };
33
+ }
34
+ export function PutLibraryQuizQuestionsToJSON(json) {
35
+ return PutLibraryQuizQuestionsToJSONTyped(json, false);
36
+ }
37
+ export function PutLibraryQuizQuestionsToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'questions': (value['questions'].map(LibraryQuizQuestionInputToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,40 @@
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 PutLibraryQuizSessionAnswer
16
+ */
17
+ export interface PutLibraryQuizSessionAnswer {
18
+ /**
19
+ * Type-specific answer payload using snapshot answer-choice IDs.
20
+ * @type {{ [key: string]: any; }}
21
+ * @memberof PutLibraryQuizSessionAnswer
22
+ */
23
+ answer: {
24
+ [key: string]: any;
25
+ };
26
+ /**
27
+ *
28
+ * @type {boolean}
29
+ * @memberof PutLibraryQuizSessionAnswer
30
+ */
31
+ autoSave?: boolean;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PutLibraryQuizSessionAnswer interface.
35
+ */
36
+ export declare function instanceOfPutLibraryQuizSessionAnswer(value: object): value is PutLibraryQuizSessionAnswer;
37
+ export declare function PutLibraryQuizSessionAnswerFromJSON(json: any): PutLibraryQuizSessionAnswer;
38
+ export declare function PutLibraryQuizSessionAnswerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizSessionAnswer;
39
+ export declare function PutLibraryQuizSessionAnswerToJSON(json: any): PutLibraryQuizSessionAnswer;
40
+ export declare function PutLibraryQuizSessionAnswerToJSONTyped(value?: PutLibraryQuizSessionAnswer | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
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 PutLibraryQuizSessionAnswer interface.
16
+ */
17
+ export function instanceOfPutLibraryQuizSessionAnswer(value) {
18
+ if (!('answer' in value) || value['answer'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PutLibraryQuizSessionAnswerFromJSON(json) {
23
+ return PutLibraryQuizSessionAnswerFromJSONTyped(json, false);
24
+ }
25
+ export function PutLibraryQuizSessionAnswerFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'answer': json['answer'],
31
+ 'autoSave': json['auto_save'] == null ? undefined : json['auto_save'],
32
+ };
33
+ }
34
+ export function PutLibraryQuizSessionAnswerToJSON(json) {
35
+ return PutLibraryQuizSessionAnswerToJSONTyped(json, false);
36
+ }
37
+ export function PutLibraryQuizSessionAnswerToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'answer': value['answer'],
43
+ 'auto_save': value['autoSave'],
44
+ };
45
+ }
@@ -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 PutLibraryQuizSessionGrade
16
+ */
17
+ export interface PutLibraryQuizSessionGrade {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PutLibraryQuizSessionGrade
22
+ */
23
+ pointsEarned: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PutLibraryQuizSessionGrade
28
+ */
29
+ feedback?: string | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PutLibraryQuizSessionGrade interface.
33
+ */
34
+ export declare function instanceOfPutLibraryQuizSessionGrade(value: object): value is PutLibraryQuizSessionGrade;
35
+ export declare function PutLibraryQuizSessionGradeFromJSON(json: any): PutLibraryQuizSessionGrade;
36
+ export declare function PutLibraryQuizSessionGradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizSessionGrade;
37
+ export declare function PutLibraryQuizSessionGradeToJSON(json: any): PutLibraryQuizSessionGrade;
38
+ export declare function PutLibraryQuizSessionGradeToJSONTyped(value?: PutLibraryQuizSessionGrade | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
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 PutLibraryQuizSessionGrade interface.
16
+ */
17
+ export function instanceOfPutLibraryQuizSessionGrade(value) {
18
+ if (!('pointsEarned' in value) || value['pointsEarned'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PutLibraryQuizSessionGradeFromJSON(json) {
23
+ return PutLibraryQuizSessionGradeFromJSONTyped(json, false);
24
+ }
25
+ export function PutLibraryQuizSessionGradeFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'pointsEarned': json['points_earned'],
31
+ 'feedback': json['feedback'] == null ? undefined : json['feedback'],
32
+ };
33
+ }
34
+ export function PutLibraryQuizSessionGradeToJSON(json) {
35
+ return PutLibraryQuizSessionGradeToJSONTyped(json, false);
36
+ }
37
+ export function PutLibraryQuizSessionGradeToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'points_earned': value['pointsEarned'],
43
+ 'feedback': value['feedback'],
44
+ };
45
+ }
@@ -0,0 +1,101 @@
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 { QuestionSelectionMethod } from './QuestionSelectionMethod';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PutLibraryQuizVersion
17
+ */
18
+ export interface PutLibraryQuizVersion {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PutLibraryQuizVersion
23
+ */
24
+ changeNotes?: string;
25
+ /**
26
+ *
27
+ * @type {QuestionSelectionMethod}
28
+ * @memberof PutLibraryQuizVersion
29
+ */
30
+ questionSelectionMethod?: QuestionSelectionMethod;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof PutLibraryQuizVersion
35
+ */
36
+ maxQuestions?: number | null;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof PutLibraryQuizVersion
41
+ */
42
+ passingScore?: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof PutLibraryQuizVersion
47
+ */
48
+ timeLimitMinutes?: number | null;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof PutLibraryQuizVersion
53
+ */
54
+ randomizeQuestions?: boolean;
55
+ /**
56
+ *
57
+ * @type {boolean}
58
+ * @memberof PutLibraryQuizVersion
59
+ */
60
+ randomizeAnswers?: boolean;
61
+ /**
62
+ *
63
+ * @type {boolean}
64
+ * @memberof PutLibraryQuizVersion
65
+ */
66
+ showResults?: boolean;
67
+ /**
68
+ *
69
+ * @type {boolean}
70
+ * @memberof PutLibraryQuizVersion
71
+ */
72
+ showCorrectAnswers?: boolean;
73
+ /**
74
+ *
75
+ * @type {boolean}
76
+ * @memberof PutLibraryQuizVersion
77
+ */
78
+ allowReview?: boolean;
79
+ /**
80
+ *
81
+ * @type {boolean}
82
+ * @memberof PutLibraryQuizVersion
83
+ */
84
+ requireAllQuestions?: boolean;
85
+ /**
86
+ *
87
+ * @type {{ [key: string]: any; }}
88
+ * @memberof PutLibraryQuizVersion
89
+ */
90
+ settings?: {
91
+ [key: string]: any;
92
+ };
93
+ }
94
+ /**
95
+ * Check if a given object implements the PutLibraryQuizVersion interface.
96
+ */
97
+ export declare function instanceOfPutLibraryQuizVersion(value: object): value is PutLibraryQuizVersion;
98
+ export declare function PutLibraryQuizVersionFromJSON(json: any): PutLibraryQuizVersion;
99
+ export declare function PutLibraryQuizVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizVersion;
100
+ export declare function PutLibraryQuizVersionToJSON(json: any): PutLibraryQuizVersion;
101
+ export declare function PutLibraryQuizVersionToJSONTyped(value?: PutLibraryQuizVersion | null, ignoreDiscriminator?: boolean): any;