@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,59 @@
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 GetLibraryQuizUsage interface.
16
+ */
17
+ export function instanceOfGetLibraryQuizUsage(value) {
18
+ if (!('quizId' in value) || value['quizId'] === undefined)
19
+ return false;
20
+ if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined)
21
+ return false;
22
+ if (!('draftCourseCount' in value) || value['draftCourseCount'] === undefined)
23
+ return false;
24
+ if (!('historicalCourseCount' in value) || value['historicalCourseCount'] === undefined)
25
+ return false;
26
+ if (!('activeLearnerCount' in value) || value['activeLearnerCount'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function GetLibraryQuizUsageFromJSON(json) {
31
+ return GetLibraryQuizUsageFromJSONTyped(json, false);
32
+ }
33
+ export function GetLibraryQuizUsageFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'quizId': json['quiz_id'],
39
+ 'publishedCourseCount': json['published_course_count'],
40
+ 'draftCourseCount': json['draft_course_count'],
41
+ 'historicalCourseCount': json['historical_course_count'],
42
+ 'activeLearnerCount': json['active_learner_count'],
43
+ };
44
+ }
45
+ export function GetLibraryQuizUsageToJSON(json) {
46
+ return GetLibraryQuizUsageToJSONTyped(json, false);
47
+ }
48
+ export function GetLibraryQuizUsageToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'quiz_id': value['quizId'],
54
+ 'published_course_count': value['publishedCourseCount'],
55
+ 'draft_course_count': value['draftCourseCount'],
56
+ 'historical_course_count': value['historicalCourseCount'],
57
+ 'active_learner_count': value['activeLearnerCount'],
58
+ };
59
+ }
@@ -0,0 +1,170 @@
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
+ import type { ContentLibraryVersionStatus } from './ContentLibraryVersionStatus';
14
+ import type { QuestionSelectionMethod } from './QuestionSelectionMethod';
15
+ import type { LibraryQuizQuestion } from './LibraryQuizQuestion';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface GetLibraryQuizVersion
20
+ */
21
+ export interface GetLibraryQuizVersion {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetLibraryQuizVersion
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof GetLibraryQuizVersion
32
+ */
33
+ versionNumber: number;
34
+ /**
35
+ *
36
+ * @type {ContentLibraryVersionStatus}
37
+ * @memberof GetLibraryQuizVersion
38
+ */
39
+ status: ContentLibraryVersionStatus;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof GetLibraryQuizVersion
44
+ */
45
+ changeNotes?: string | null;
46
+ /**
47
+ *
48
+ * @type {QuestionSelectionMethod}
49
+ * @memberof GetLibraryQuizVersion
50
+ */
51
+ questionSelectionMethod: QuestionSelectionMethod;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof GetLibraryQuizVersion
56
+ */
57
+ maxQuestions?: number | null;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof GetLibraryQuizVersion
62
+ */
63
+ passingScore: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof GetLibraryQuizVersion
68
+ */
69
+ timeLimitMinutes?: number | null;
70
+ /**
71
+ *
72
+ * @type {boolean}
73
+ * @memberof GetLibraryQuizVersion
74
+ */
75
+ randomizeQuestions: boolean;
76
+ /**
77
+ *
78
+ * @type {boolean}
79
+ * @memberof GetLibraryQuizVersion
80
+ */
81
+ randomizeAnswers: boolean;
82
+ /**
83
+ *
84
+ * @type {boolean}
85
+ * @memberof GetLibraryQuizVersion
86
+ */
87
+ showResults: boolean;
88
+ /**
89
+ *
90
+ * @type {boolean}
91
+ * @memberof GetLibraryQuizVersion
92
+ */
93
+ showCorrectAnswers: boolean;
94
+ /**
95
+ *
96
+ * @type {boolean}
97
+ * @memberof GetLibraryQuizVersion
98
+ */
99
+ allowReview: boolean;
100
+ /**
101
+ *
102
+ * @type {boolean}
103
+ * @memberof GetLibraryQuizVersion
104
+ */
105
+ requireAllQuestions: boolean;
106
+ /**
107
+ *
108
+ * @type {{ [key: string]: any; }}
109
+ * @memberof GetLibraryQuizVersion
110
+ */
111
+ settings: {
112
+ [key: string]: any;
113
+ };
114
+ /**
115
+ *
116
+ * @type {Array<LibraryQuizQuestion>}
117
+ * @memberof GetLibraryQuizVersion
118
+ */
119
+ questions: Array<LibraryQuizQuestion>;
120
+ /**
121
+ *
122
+ * @type {Array<LibraryQuizCriterion>}
123
+ * @memberof GetLibraryQuizVersion
124
+ */
125
+ criteria: Array<LibraryQuizCriterion>;
126
+ /**
127
+ *
128
+ * @type {number}
129
+ * @memberof GetLibraryQuizVersion
130
+ */
131
+ questionCount: number;
132
+ /**
133
+ *
134
+ * @type {string}
135
+ * @memberof GetLibraryQuizVersion
136
+ */
137
+ createdBy: string;
138
+ /**
139
+ *
140
+ * @type {number}
141
+ * @memberof GetLibraryQuizVersion
142
+ */
143
+ createdAt: number;
144
+ /**
145
+ *
146
+ * @type {number}
147
+ * @memberof GetLibraryQuizVersion
148
+ */
149
+ updatedAt: number;
150
+ /**
151
+ *
152
+ * @type {number}
153
+ * @memberof GetLibraryQuizVersion
154
+ */
155
+ publishedAt?: number | null;
156
+ /**
157
+ *
158
+ * @type {number}
159
+ * @memberof GetLibraryQuizVersion
160
+ */
161
+ archivedAt?: number | null;
162
+ }
163
+ /**
164
+ * Check if a given object implements the GetLibraryQuizVersion interface.
165
+ */
166
+ export declare function instanceOfGetLibraryQuizVersion(value: object): value is GetLibraryQuizVersion;
167
+ export declare function GetLibraryQuizVersionFromJSON(json: any): GetLibraryQuizVersion;
168
+ export declare function GetLibraryQuizVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLibraryQuizVersion;
169
+ export declare function GetLibraryQuizVersionToJSON(json: any): GetLibraryQuizVersion;
170
+ export declare function GetLibraryQuizVersionToJSONTyped(value?: GetLibraryQuizVersion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,125 @@
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
+ import { ContentLibraryVersionStatusFromJSON, ContentLibraryVersionStatusToJSON, } from './ContentLibraryVersionStatus';
16
+ import { QuestionSelectionMethodFromJSON, QuestionSelectionMethodToJSON, } from './QuestionSelectionMethod';
17
+ import { LibraryQuizQuestionFromJSON, LibraryQuizQuestionToJSON, } from './LibraryQuizQuestion';
18
+ /**
19
+ * Check if a given object implements the GetLibraryQuizVersion interface.
20
+ */
21
+ export function instanceOfGetLibraryQuizVersion(value) {
22
+ if (!('id' in value) || value['id'] === undefined)
23
+ return false;
24
+ if (!('versionNumber' in value) || value['versionNumber'] === undefined)
25
+ return false;
26
+ if (!('status' in value) || value['status'] === undefined)
27
+ return false;
28
+ if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined)
29
+ return false;
30
+ if (!('passingScore' in value) || value['passingScore'] === undefined)
31
+ return false;
32
+ if (!('randomizeQuestions' in value) || value['randomizeQuestions'] === undefined)
33
+ return false;
34
+ if (!('randomizeAnswers' in value) || value['randomizeAnswers'] === undefined)
35
+ return false;
36
+ if (!('showResults' in value) || value['showResults'] === undefined)
37
+ return false;
38
+ if (!('showCorrectAnswers' in value) || value['showCorrectAnswers'] === undefined)
39
+ return false;
40
+ if (!('allowReview' in value) || value['allowReview'] === undefined)
41
+ return false;
42
+ if (!('requireAllQuestions' in value) || value['requireAllQuestions'] === undefined)
43
+ return false;
44
+ if (!('settings' in value) || value['settings'] === undefined)
45
+ return false;
46
+ if (!('questions' in value) || value['questions'] === undefined)
47
+ return false;
48
+ if (!('criteria' in value) || value['criteria'] === undefined)
49
+ return false;
50
+ if (!('questionCount' in value) || value['questionCount'] === undefined)
51
+ return false;
52
+ if (!('createdBy' in value) || value['createdBy'] === undefined)
53
+ return false;
54
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
55
+ return false;
56
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
57
+ return false;
58
+ return true;
59
+ }
60
+ export function GetLibraryQuizVersionFromJSON(json) {
61
+ return GetLibraryQuizVersionFromJSONTyped(json, false);
62
+ }
63
+ export function GetLibraryQuizVersionFromJSONTyped(json, ignoreDiscriminator) {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+ 'id': json['id'],
69
+ 'versionNumber': json['version_number'],
70
+ 'status': ContentLibraryVersionStatusFromJSON(json['status']),
71
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
72
+ 'questionSelectionMethod': QuestionSelectionMethodFromJSON(json['question_selection_method']),
73
+ 'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
74
+ 'passingScore': json['passing_score'],
75
+ 'timeLimitMinutes': json['time_limit_minutes'] == null ? undefined : json['time_limit_minutes'],
76
+ 'randomizeQuestions': json['randomize_questions'],
77
+ 'randomizeAnswers': json['randomize_answers'],
78
+ 'showResults': json['show_results'],
79
+ 'showCorrectAnswers': json['show_correct_answers'],
80
+ 'allowReview': json['allow_review'],
81
+ 'requireAllQuestions': json['require_all_questions'],
82
+ 'settings': json['settings'],
83
+ 'questions': (json['questions'].map(LibraryQuizQuestionFromJSON)),
84
+ 'criteria': (json['criteria'].map(LibraryQuizCriterionFromJSON)),
85
+ 'questionCount': json['question_count'],
86
+ 'createdBy': json['created_by'],
87
+ 'createdAt': json['created_at'],
88
+ 'updatedAt': json['updated_at'],
89
+ 'publishedAt': json['published_at'] == null ? undefined : json['published_at'],
90
+ 'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
91
+ };
92
+ }
93
+ export function GetLibraryQuizVersionToJSON(json) {
94
+ return GetLibraryQuizVersionToJSONTyped(json, false);
95
+ }
96
+ export function GetLibraryQuizVersionToJSONTyped(value, ignoreDiscriminator = false) {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+ return {
101
+ 'id': value['id'],
102
+ 'version_number': value['versionNumber'],
103
+ 'status': ContentLibraryVersionStatusToJSON(value['status']),
104
+ 'change_notes': value['changeNotes'],
105
+ 'question_selection_method': QuestionSelectionMethodToJSON(value['questionSelectionMethod']),
106
+ 'max_questions': value['maxQuestions'],
107
+ 'passing_score': value['passingScore'],
108
+ 'time_limit_minutes': value['timeLimitMinutes'],
109
+ 'randomize_questions': value['randomizeQuestions'],
110
+ 'randomize_answers': value['randomizeAnswers'],
111
+ 'show_results': value['showResults'],
112
+ 'show_correct_answers': value['showCorrectAnswers'],
113
+ 'allow_review': value['allowReview'],
114
+ 'require_all_questions': value['requireAllQuestions'],
115
+ 'settings': value['settings'],
116
+ 'questions': (value['questions'].map(LibraryQuizQuestionToJSON)),
117
+ 'criteria': (value['criteria'].map(LibraryQuizCriterionToJSON)),
118
+ 'question_count': value['questionCount'],
119
+ 'created_by': value['createdBy'],
120
+ 'created_at': value['createdAt'],
121
+ 'updated_at': value['updatedAt'],
122
+ 'published_at': value['publishedAt'],
123
+ 'archived_at': value['archivedAt'],
124
+ };
125
+ }
@@ -0,0 +1,95 @@
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 LibraryQuizCriterion
16
+ */
17
+ export interface LibraryQuizCriterion {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LibraryQuizCriterion
22
+ */
23
+ id?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LibraryQuizCriterion
28
+ */
29
+ topic?: string | null;
30
+ /**
31
+ *
32
+ * @type {LibraryQuizCriterionDifficultyLevelEnum}
33
+ * @memberof LibraryQuizCriterion
34
+ */
35
+ difficultyLevel?: LibraryQuizCriterionDifficultyLevelEnum | null;
36
+ /**
37
+ *
38
+ * @type {LibraryQuizCriterionQuestionTypeEnum}
39
+ * @memberof LibraryQuizCriterion
40
+ */
41
+ questionType?: LibraryQuizCriterionQuestionTypeEnum | null;
42
+ /**
43
+ *
44
+ * @type {Array<string>}
45
+ * @memberof LibraryQuizCriterion
46
+ */
47
+ tags?: Array<string>;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof LibraryQuizCriterion
52
+ */
53
+ minQuestions?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof LibraryQuizCriterion
58
+ */
59
+ maxQuestions?: number | null;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof LibraryQuizCriterion
64
+ */
65
+ priority: number;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const LibraryQuizCriterionDifficultyLevelEnum: {
71
+ readonly Beginner: "beginner";
72
+ readonly Intermediate: "intermediate";
73
+ readonly Advanced: "advanced";
74
+ };
75
+ export type LibraryQuizCriterionDifficultyLevelEnum = typeof LibraryQuizCriterionDifficultyLevelEnum[keyof typeof LibraryQuizCriterionDifficultyLevelEnum];
76
+ /**
77
+ * @export
78
+ */
79
+ export declare const LibraryQuizCriterionQuestionTypeEnum: {
80
+ readonly SingleAnswer: "single_answer";
81
+ readonly MultipleAnswer: "multiple_answer";
82
+ readonly FillInBlank: "fill_in_blank";
83
+ readonly ShortAnswer: "short_answer";
84
+ readonly Matching: "matching";
85
+ readonly Essay: "essay";
86
+ };
87
+ export type LibraryQuizCriterionQuestionTypeEnum = typeof LibraryQuizCriterionQuestionTypeEnum[keyof typeof LibraryQuizCriterionQuestionTypeEnum];
88
+ /**
89
+ * Check if a given object implements the LibraryQuizCriterion interface.
90
+ */
91
+ export declare function instanceOfLibraryQuizCriterion(value: object): value is LibraryQuizCriterion;
92
+ export declare function LibraryQuizCriterionFromJSON(json: any): LibraryQuizCriterion;
93
+ export declare function LibraryQuizCriterionFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizCriterion;
94
+ export declare function LibraryQuizCriterionToJSON(json: any): LibraryQuizCriterion;
95
+ export declare function LibraryQuizCriterionToJSONTyped(value?: LibraryQuizCriterion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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
+ * @export
16
+ */
17
+ export const LibraryQuizCriterionDifficultyLevelEnum = {
18
+ Beginner: 'beginner',
19
+ Intermediate: 'intermediate',
20
+ Advanced: 'advanced'
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ export const LibraryQuizCriterionQuestionTypeEnum = {
26
+ SingleAnswer: 'single_answer',
27
+ MultipleAnswer: 'multiple_answer',
28
+ FillInBlank: 'fill_in_blank',
29
+ ShortAnswer: 'short_answer',
30
+ Matching: 'matching',
31
+ Essay: 'essay'
32
+ };
33
+ /**
34
+ * Check if a given object implements the LibraryQuizCriterion interface.
35
+ */
36
+ export function instanceOfLibraryQuizCriterion(value) {
37
+ if (!('priority' in value) || value['priority'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function LibraryQuizCriterionFromJSON(json) {
42
+ return LibraryQuizCriterionFromJSONTyped(json, false);
43
+ }
44
+ export function LibraryQuizCriterionFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'] == null ? undefined : json['id'],
50
+ 'topic': json['topic'] == null ? undefined : json['topic'],
51
+ 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
52
+ 'questionType': json['question_type'] == null ? undefined : json['question_type'],
53
+ 'tags': json['tags'] == null ? undefined : json['tags'],
54
+ 'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
55
+ 'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
56
+ 'priority': json['priority'],
57
+ };
58
+ }
59
+ export function LibraryQuizCriterionToJSON(json) {
60
+ return LibraryQuizCriterionToJSONTyped(json, false);
61
+ }
62
+ export function LibraryQuizCriterionToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'id': value['id'],
68
+ 'topic': value['topic'],
69
+ 'difficulty_level': value['difficultyLevel'],
70
+ 'question_type': value['questionType'],
71
+ 'tags': value['tags'],
72
+ 'min_questions': value['minQuestions'],
73
+ 'max_questions': value['maxQuestions'],
74
+ 'priority': value['priority'],
75
+ };
76
+ }
@@ -0,0 +1,70 @@
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 LibraryQuizQuestion
16
+ */
17
+ export interface LibraryQuizQuestion {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LibraryQuizQuestion
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LibraryQuizQuestion
28
+ */
29
+ questionId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof LibraryQuizQuestion
34
+ */
35
+ questionGroupId?: string | null;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof LibraryQuizQuestion
40
+ */
41
+ displayOrder: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof LibraryQuizQuestion
46
+ */
47
+ points: number;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof LibraryQuizQuestion
52
+ */
53
+ versionLocked: boolean;
54
+ /**
55
+ *
56
+ * @type {{ [key: string]: any; }}
57
+ * @memberof LibraryQuizQuestion
58
+ */
59
+ snapshot?: {
60
+ [key: string]: any;
61
+ } | null;
62
+ }
63
+ /**
64
+ * Check if a given object implements the LibraryQuizQuestion interface.
65
+ */
66
+ export declare function instanceOfLibraryQuizQuestion(value: object): value is LibraryQuizQuestion;
67
+ export declare function LibraryQuizQuestionFromJSON(json: any): LibraryQuizQuestion;
68
+ export declare function LibraryQuizQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizQuestion;
69
+ export declare function LibraryQuizQuestionToJSON(json: any): LibraryQuizQuestion;
70
+ export declare function LibraryQuizQuestionToJSONTyped(value?: LibraryQuizQuestion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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 LibraryQuizQuestion interface.
16
+ */
17
+ export function instanceOfLibraryQuizQuestion(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('questionId' in value) || value['questionId'] === undefined)
21
+ return false;
22
+ if (!('displayOrder' in value) || value['displayOrder'] === undefined)
23
+ return false;
24
+ if (!('points' in value) || value['points'] === undefined)
25
+ return false;
26
+ if (!('versionLocked' in value) || value['versionLocked'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function LibraryQuizQuestionFromJSON(json) {
31
+ return LibraryQuizQuestionFromJSONTyped(json, false);
32
+ }
33
+ export function LibraryQuizQuestionFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': json['id'],
39
+ 'questionId': json['question_id'],
40
+ 'questionGroupId': json['question_group_id'] == null ? undefined : json['question_group_id'],
41
+ 'displayOrder': json['display_order'],
42
+ 'points': json['points'],
43
+ 'versionLocked': json['version_locked'],
44
+ 'snapshot': json['snapshot'] == null ? undefined : json['snapshot'],
45
+ };
46
+ }
47
+ export function LibraryQuizQuestionToJSON(json) {
48
+ return LibraryQuizQuestionToJSONTyped(json, false);
49
+ }
50
+ export function LibraryQuizQuestionToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'id': value['id'],
56
+ 'question_id': value['questionId'],
57
+ 'question_group_id': value['questionGroupId'],
58
+ 'display_order': value['displayOrder'],
59
+ 'points': value['points'],
60
+ 'version_locked': value['versionLocked'],
61
+ 'snapshot': value['snapshot'],
62
+ };
63
+ }