@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,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 LibraryQuizQuestionInput
16
+ */
17
+ export interface LibraryQuizQuestionInput {
18
+ /**
19
+ * External ID of the selected question version.
20
+ * @type {string}
21
+ * @memberof LibraryQuizQuestionInput
22
+ */
23
+ questionId: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof LibraryQuizQuestionInput
28
+ */
29
+ displayOrder: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof LibraryQuizQuestionInput
34
+ */
35
+ points?: number;
36
+ /**
37
+ * When false, publication resolves the latest question in the same version group.
38
+ * @type {boolean}
39
+ * @memberof LibraryQuizQuestionInput
40
+ */
41
+ versionLocked?: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the LibraryQuizQuestionInput interface.
45
+ */
46
+ export declare function instanceOfLibraryQuizQuestionInput(value: object): value is LibraryQuizQuestionInput;
47
+ export declare function LibraryQuizQuestionInputFromJSON(json: any): LibraryQuizQuestionInput;
48
+ export declare function LibraryQuizQuestionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizQuestionInput;
49
+ export declare function LibraryQuizQuestionInputToJSON(json: any): LibraryQuizQuestionInput;
50
+ export declare function LibraryQuizQuestionInputToJSONTyped(value?: LibraryQuizQuestionInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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 LibraryQuizQuestionInput interface.
16
+ */
17
+ export function instanceOfLibraryQuizQuestionInput(value) {
18
+ if (!('questionId' in value) || value['questionId'] === undefined)
19
+ return false;
20
+ if (!('displayOrder' in value) || value['displayOrder'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function LibraryQuizQuestionInputFromJSON(json) {
25
+ return LibraryQuizQuestionInputFromJSONTyped(json, false);
26
+ }
27
+ export function LibraryQuizQuestionInputFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'questionId': json['question_id'],
33
+ 'displayOrder': json['display_order'],
34
+ 'points': json['points'] == null ? undefined : json['points'],
35
+ 'versionLocked': json['version_locked'] == null ? undefined : json['version_locked'],
36
+ };
37
+ }
38
+ export function LibraryQuizQuestionInputToJSON(json) {
39
+ return LibraryQuizQuestionInputToJSONTyped(json, false);
40
+ }
41
+ export function LibraryQuizQuestionInputToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'question_id': value['questionId'],
47
+ 'display_order': value['displayOrder'],
48
+ 'points': value['points'],
49
+ 'version_locked': value['versionLocked'],
50
+ };
51
+ }
@@ -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 LibraryQuizSessionAnswerChoice
17
+ */
18
+ export interface LibraryQuizSessionAnswerChoice {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof LibraryQuizSessionAnswerChoice
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof LibraryQuizSessionAnswerChoice
29
+ */
30
+ text: string;
31
+ /**
32
+ *
33
+ * @type {RichTextDocument}
34
+ * @memberof LibraryQuizSessionAnswerChoice
35
+ */
36
+ textRich?: RichTextDocument | null;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof LibraryQuizSessionAnswerChoice
41
+ */
42
+ displayOrder: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the LibraryQuizSessionAnswerChoice interface.
46
+ */
47
+ export declare function instanceOfLibraryQuizSessionAnswerChoice(value: object): value is LibraryQuizSessionAnswerChoice;
48
+ export declare function LibraryQuizSessionAnswerChoiceFromJSON(json: any): LibraryQuizSessionAnswerChoice;
49
+ export declare function LibraryQuizSessionAnswerChoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizSessionAnswerChoice;
50
+ export declare function LibraryQuizSessionAnswerChoiceToJSON(json: any): LibraryQuizSessionAnswerChoice;
51
+ export declare function LibraryQuizSessionAnswerChoiceToJSONTyped(value?: LibraryQuizSessionAnswerChoice | 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 LibraryQuizSessionAnswerChoice interface.
17
+ */
18
+ export function instanceOfLibraryQuizSessionAnswerChoice(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 LibraryQuizSessionAnswerChoiceFromJSON(json) {
28
+ return LibraryQuizSessionAnswerChoiceFromJSONTyped(json, false);
29
+ }
30
+ export function LibraryQuizSessionAnswerChoiceFromJSONTyped(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 LibraryQuizSessionAnswerChoiceToJSON(json) {
42
+ return LibraryQuizSessionAnswerChoiceToJSONTyped(json, false);
43
+ }
44
+ export function LibraryQuizSessionAnswerChoiceToJSONTyped(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,96 @@
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
+ import type { LibraryQuizSessionAnswerChoice } from './LibraryQuizSessionAnswerChoice';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface LibraryQuizSessionQuestion
18
+ */
19
+ export interface LibraryQuizSessionQuestion {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof LibraryQuizSessionQuestion
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof LibraryQuizSessionQuestion
30
+ */
31
+ displayOrder: number;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof LibraryQuizSessionQuestion
36
+ */
37
+ points: number;
38
+ /**
39
+ *
40
+ * @type {LibraryQuizSessionQuestionQuestionTypeEnum}
41
+ * @memberof LibraryQuizSessionQuestion
42
+ */
43
+ questionType: LibraryQuizSessionQuestionQuestionTypeEnum;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof LibraryQuizSessionQuestion
48
+ */
49
+ questionText: string;
50
+ /**
51
+ *
52
+ * @type {RichTextDocument}
53
+ * @memberof LibraryQuizSessionQuestion
54
+ */
55
+ questionTextRich?: RichTextDocument | null;
56
+ /**
57
+ *
58
+ * @type {Array<LibraryQuizSessionAnswerChoice>}
59
+ * @memberof LibraryQuizSessionQuestion
60
+ */
61
+ answerChoices: Array<LibraryQuizSessionAnswerChoice>;
62
+ /**
63
+ *
64
+ * @type {boolean}
65
+ * @memberof LibraryQuizSessionQuestion
66
+ */
67
+ isAnswered: boolean;
68
+ /**
69
+ *
70
+ * @type {{ [key: string]: any; }}
71
+ * @memberof LibraryQuizSessionQuestion
72
+ */
73
+ answer?: {
74
+ [key: string]: any;
75
+ } | null;
76
+ }
77
+ /**
78
+ * @export
79
+ */
80
+ export declare const LibraryQuizSessionQuestionQuestionTypeEnum: {
81
+ readonly SingleAnswer: "single_answer";
82
+ readonly MultipleAnswer: "multiple_answer";
83
+ readonly FillInBlank: "fill_in_blank";
84
+ readonly ShortAnswer: "short_answer";
85
+ readonly Matching: "matching";
86
+ readonly Essay: "essay";
87
+ };
88
+ export type LibraryQuizSessionQuestionQuestionTypeEnum = typeof LibraryQuizSessionQuestionQuestionTypeEnum[keyof typeof LibraryQuizSessionQuestionQuestionTypeEnum];
89
+ /**
90
+ * Check if a given object implements the LibraryQuizSessionQuestion interface.
91
+ */
92
+ export declare function instanceOfLibraryQuizSessionQuestion(value: object): value is LibraryQuizSessionQuestion;
93
+ export declare function LibraryQuizSessionQuestionFromJSON(json: any): LibraryQuizSessionQuestion;
94
+ export declare function LibraryQuizSessionQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizSessionQuestion;
95
+ export declare function LibraryQuizSessionQuestionToJSON(json: any): LibraryQuizSessionQuestion;
96
+ export declare function LibraryQuizSessionQuestionToJSONTyped(value?: LibraryQuizSessionQuestion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,84 @@
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 { LibraryQuizSessionAnswerChoiceFromJSON, LibraryQuizSessionAnswerChoiceToJSON, } from './LibraryQuizSessionAnswerChoice';
16
+ /**
17
+ * @export
18
+ */
19
+ export const LibraryQuizSessionQuestionQuestionTypeEnum = {
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 LibraryQuizSessionQuestion interface.
29
+ */
30
+ export function instanceOfLibraryQuizSessionQuestion(value) {
31
+ if (!('id' in value) || value['id'] === undefined)
32
+ return false;
33
+ if (!('displayOrder' in value) || value['displayOrder'] === undefined)
34
+ return false;
35
+ if (!('points' in value) || value['points'] === undefined)
36
+ return false;
37
+ if (!('questionType' in value) || value['questionType'] === undefined)
38
+ return false;
39
+ if (!('questionText' in value) || value['questionText'] === undefined)
40
+ return false;
41
+ if (!('answerChoices' in value) || value['answerChoices'] === undefined)
42
+ return false;
43
+ if (!('isAnswered' in value) || value['isAnswered'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ export function LibraryQuizSessionQuestionFromJSON(json) {
48
+ return LibraryQuizSessionQuestionFromJSONTyped(json, false);
49
+ }
50
+ export function LibraryQuizSessionQuestionFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'id': json['id'],
56
+ 'displayOrder': json['display_order'],
57
+ 'points': json['points'],
58
+ 'questionType': json['question_type'],
59
+ 'questionText': json['question_text'],
60
+ 'questionTextRich': json['question_text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['question_text_rich']),
61
+ 'answerChoices': (json['answer_choices'].map(LibraryQuizSessionAnswerChoiceFromJSON)),
62
+ 'isAnswered': json['is_answered'],
63
+ 'answer': json['answer'] == null ? undefined : json['answer'],
64
+ };
65
+ }
66
+ export function LibraryQuizSessionQuestionToJSON(json) {
67
+ return LibraryQuizSessionQuestionToJSONTyped(json, false);
68
+ }
69
+ export function LibraryQuizSessionQuestionToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'id': value['id'],
75
+ 'display_order': value['displayOrder'],
76
+ 'points': value['points'],
77
+ 'question_type': value['questionType'],
78
+ 'question_text': value['questionText'],
79
+ 'question_text_rich': RichTextDocumentToJSON(value['questionTextRich']),
80
+ 'answer_choices': (value['answerChoices'].map(LibraryQuizSessionAnswerChoiceToJSON)),
81
+ 'is_answered': value['isAnswered'],
82
+ 'answer': value['answer'],
83
+ };
84
+ }
@@ -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 PostCourseLibraryQuizSession
16
+ */
17
+ export interface PostCourseLibraryQuizSession {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof PostCourseLibraryQuizSession
22
+ */
23
+ retake?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostCourseLibraryQuizSession interface.
27
+ */
28
+ export declare function instanceOfPostCourseLibraryQuizSession(value: object): value is PostCourseLibraryQuizSession;
29
+ export declare function PostCourseLibraryQuizSessionFromJSON(json: any): PostCourseLibraryQuizSession;
30
+ export declare function PostCourseLibraryQuizSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseLibraryQuizSession;
31
+ export declare function PostCourseLibraryQuizSessionToJSON(json: any): PostCourseLibraryQuizSession;
32
+ export declare function PostCourseLibraryQuizSessionToJSONTyped(value?: PostCourseLibraryQuizSession | 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 PostCourseLibraryQuizSession interface.
16
+ */
17
+ export function instanceOfPostCourseLibraryQuizSession(value) {
18
+ return true;
19
+ }
20
+ export function PostCourseLibraryQuizSessionFromJSON(json) {
21
+ return PostCourseLibraryQuizSessionFromJSONTyped(json, false);
22
+ }
23
+ export function PostCourseLibraryQuizSessionFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'retake': json['retake'] == null ? undefined : json['retake'],
29
+ };
30
+ }
31
+ export function PostCourseLibraryQuizSessionToJSON(json) {
32
+ return PostCourseLibraryQuizSessionToJSONTyped(json, false);
33
+ }
34
+ export function PostCourseLibraryQuizSessionToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'retake': value['retake'],
40
+ };
41
+ }
@@ -0,0 +1,107 @@
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 PostLibraryQuiz
17
+ */
18
+ export interface PostLibraryQuiz {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PostLibraryQuiz
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PostLibraryQuiz
29
+ */
30
+ description?: string;
31
+ /**
32
+ *
33
+ * @type {QuestionSelectionMethod}
34
+ * @memberof PostLibraryQuiz
35
+ */
36
+ questionSelectionMethod: QuestionSelectionMethod;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof PostLibraryQuiz
41
+ */
42
+ maxQuestions?: number | null;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof PostLibraryQuiz
47
+ */
48
+ passingScore?: number;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof PostLibraryQuiz
53
+ */
54
+ timeLimitMinutes?: number | null;
55
+ /**
56
+ *
57
+ * @type {boolean}
58
+ * @memberof PostLibraryQuiz
59
+ */
60
+ randomizeQuestions?: boolean;
61
+ /**
62
+ *
63
+ * @type {boolean}
64
+ * @memberof PostLibraryQuiz
65
+ */
66
+ randomizeAnswers?: boolean;
67
+ /**
68
+ *
69
+ * @type {boolean}
70
+ * @memberof PostLibraryQuiz
71
+ */
72
+ showResults?: boolean;
73
+ /**
74
+ *
75
+ * @type {boolean}
76
+ * @memberof PostLibraryQuiz
77
+ */
78
+ showCorrectAnswers?: boolean;
79
+ /**
80
+ *
81
+ * @type {boolean}
82
+ * @memberof PostLibraryQuiz
83
+ */
84
+ allowReview?: boolean;
85
+ /**
86
+ *
87
+ * @type {boolean}
88
+ * @memberof PostLibraryQuiz
89
+ */
90
+ requireAllQuestions?: boolean;
91
+ /**
92
+ *
93
+ * @type {{ [key: string]: any; }}
94
+ * @memberof PostLibraryQuiz
95
+ */
96
+ settings?: {
97
+ [key: string]: any;
98
+ };
99
+ }
100
+ /**
101
+ * Check if a given object implements the PostLibraryQuiz interface.
102
+ */
103
+ export declare function instanceOfPostLibraryQuiz(value: object): value is PostLibraryQuiz;
104
+ export declare function PostLibraryQuizFromJSON(json: any): PostLibraryQuiz;
105
+ export declare function PostLibraryQuizFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLibraryQuiz;
106
+ export declare function PostLibraryQuizToJSON(json: any): PostLibraryQuiz;
107
+ export declare function PostLibraryQuizToJSONTyped(value?: PostLibraryQuiz | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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 { QuestionSelectionMethodFromJSON, QuestionSelectionMethodToJSON, } from './QuestionSelectionMethod';
15
+ /**
16
+ * Check if a given object implements the PostLibraryQuiz interface.
17
+ */
18
+ export function instanceOfPostLibraryQuiz(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function PostLibraryQuizFromJSON(json) {
26
+ return PostLibraryQuizFromJSONTyped(json, false);
27
+ }
28
+ export function PostLibraryQuizFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'name': json['name'],
34
+ 'description': json['description'] == null ? undefined : json['description'],
35
+ 'questionSelectionMethod': QuestionSelectionMethodFromJSON(json['question_selection_method']),
36
+ 'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
37
+ 'passingScore': json['passing_score'] == null ? undefined : json['passing_score'],
38
+ 'timeLimitMinutes': json['time_limit_minutes'] == null ? undefined : json['time_limit_minutes'],
39
+ 'randomizeQuestions': json['randomize_questions'] == null ? undefined : json['randomize_questions'],
40
+ 'randomizeAnswers': json['randomize_answers'] == null ? undefined : json['randomize_answers'],
41
+ 'showResults': json['show_results'] == null ? undefined : json['show_results'],
42
+ 'showCorrectAnswers': json['show_correct_answers'] == null ? undefined : json['show_correct_answers'],
43
+ 'allowReview': json['allow_review'] == null ? undefined : json['allow_review'],
44
+ 'requireAllQuestions': json['require_all_questions'] == null ? undefined : json['require_all_questions'],
45
+ 'settings': json['settings'] == null ? undefined : json['settings'],
46
+ };
47
+ }
48
+ export function PostLibraryQuizToJSON(json) {
49
+ return PostLibraryQuizToJSONTyped(json, false);
50
+ }
51
+ export function PostLibraryQuizToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'name': value['name'],
57
+ 'description': value['description'],
58
+ 'question_selection_method': QuestionSelectionMethodToJSON(value['questionSelectionMethod']),
59
+ 'max_questions': value['maxQuestions'],
60
+ 'passing_score': value['passingScore'],
61
+ 'time_limit_minutes': value['timeLimitMinutes'],
62
+ 'randomize_questions': value['randomizeQuestions'],
63
+ 'randomize_answers': value['randomizeAnswers'],
64
+ 'show_results': value['showResults'],
65
+ 'show_correct_answers': value['showCorrectAnswers'],
66
+ 'allow_review': value['allowReview'],
67
+ 'require_all_questions': value['requireAllQuestions'],
68
+ 'settings': value['settings'],
69
+ };
70
+ }
@@ -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 PostLibraryQuizSession
16
+ */
17
+ export interface PostLibraryQuizSession {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof PostLibraryQuizSession
22
+ */
23
+ restart?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostLibraryQuizSession interface.
27
+ */
28
+ export declare function instanceOfPostLibraryQuizSession(value: object): value is PostLibraryQuizSession;
29
+ export declare function PostLibraryQuizSessionFromJSON(json: any): PostLibraryQuizSession;
30
+ export declare function PostLibraryQuizSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLibraryQuizSession;
31
+ export declare function PostLibraryQuizSessionToJSON(json: any): PostLibraryQuizSession;
32
+ export declare function PostLibraryQuizSessionToJSONTyped(value?: PostLibraryQuizSession | null, ignoreDiscriminator?: boolean): any;