@easyedu/js-lsm-api 1.20.0 → 1.22.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.
- package/.openapi-generator/FILES +6 -1
- package/README.md +2 -2
- package/dist/apis/QuizApi.d.ts +84 -9
- package/dist/apis/QuizApi.js +209 -14
- package/dist/esm/apis/QuizApi.d.ts +84 -9
- package/dist/esm/apis/QuizApi.js +210 -15
- package/dist/esm/models/GetManualQuestionSelectionItem.d.ts +75 -0
- package/dist/esm/models/GetManualQuestionSelectionItem.js +72 -0
- package/dist/esm/models/GetManualQuestionSelectionList.d.ts +63 -0
- package/dist/esm/models/GetManualQuestionSelectionList.js +64 -0
- package/dist/esm/models/GetQuiz.d.ts +0 -14
- package/dist/esm/models/GetQuiz.js +0 -11
- package/dist/esm/models/GetQuizCriteria.d.ts +3 -3
- package/dist/esm/models/GetQuizCriteria.js +3 -3
- package/dist/esm/models/GetQuizCriteriaItem.d.ts +122 -0
- package/dist/esm/models/{GetQuizCriteriaCriteriaInner.js → GetQuizCriteriaItem.js} +10 -10
- package/dist/esm/models/GetQuizCriteriaList.d.ts +57 -0
- package/dist/esm/models/GetQuizCriteriaList.js +60 -0
- package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +122 -0
- package/dist/esm/models/GetQuizCriteriaListItemsInner.js +93 -0
- package/dist/esm/models/GetQuizListAllOfFilters.d.ts +0 -14
- package/dist/esm/models/GetQuizListAllOfFilters.js +0 -9
- package/dist/esm/models/GetQuizListAllOfQuizzes.d.ts +0 -14
- package/dist/esm/models/GetQuizListAllOfQuizzes.js +0 -11
- package/dist/esm/models/PostContentQuiz.d.ts +0 -14
- package/dist/esm/models/PostContentQuiz.js +0 -11
- package/dist/esm/models/PostManualQuestionSelection.d.ts +50 -0
- package/dist/esm/models/PostManualQuestionSelection.js +49 -0
- package/dist/esm/models/PostQuiz.d.ts +0 -14
- package/dist/esm/models/PostQuiz.js +0 -11
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.d.ts +1 -1
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.js +3 -1
- package/dist/esm/models/PutQuiz.d.ts +0 -14
- package/dist/esm/models/PutQuiz.js +0 -9
- package/dist/esm/models/index.d.ts +6 -1
- package/dist/esm/models/index.js +6 -1
- package/dist/models/GetManualQuestionSelectionItem.d.ts +75 -0
- package/dist/models/GetManualQuestionSelectionItem.js +79 -0
- package/dist/models/GetManualQuestionSelectionList.d.ts +63 -0
- package/dist/models/GetManualQuestionSelectionList.js +71 -0
- package/dist/models/GetQuiz.d.ts +0 -14
- package/dist/models/GetQuiz.js +1 -12
- package/dist/models/GetQuizCriteria.d.ts +3 -3
- package/dist/models/GetQuizCriteria.js +3 -3
- package/dist/models/GetQuizCriteriaItem.d.ts +122 -0
- package/dist/models/{GetQuizCriteriaCriteriaInner.js → GetQuizCriteriaItem.js} +16 -16
- package/dist/models/GetQuizCriteriaList.d.ts +57 -0
- package/dist/models/GetQuizCriteriaList.js +67 -0
- package/dist/models/GetQuizCriteriaListItemsInner.d.ts +122 -0
- package/dist/models/GetQuizCriteriaListItemsInner.js +101 -0
- package/dist/models/GetQuizListAllOfFilters.d.ts +0 -14
- package/dist/models/GetQuizListAllOfFilters.js +1 -10
- package/dist/models/GetQuizListAllOfQuizzes.d.ts +0 -14
- package/dist/models/GetQuizListAllOfQuizzes.js +1 -12
- package/dist/models/PostContentQuiz.d.ts +0 -14
- package/dist/models/PostContentQuiz.js +0 -12
- package/dist/models/PostManualQuestionSelection.d.ts +50 -0
- package/dist/models/PostManualQuestionSelection.js +56 -0
- package/dist/models/PostQuiz.d.ts +0 -14
- package/dist/models/PostQuiz.js +1 -12
- package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +1 -1
- package/dist/models/PostQuizCriteriaCriteriaInner.js +3 -1
- package/dist/models/PutQuiz.d.ts +0 -14
- package/dist/models/PutQuiz.js +1 -10
- package/dist/models/index.d.ts +6 -1
- package/dist/models/index.js +6 -1
- package/package.json +1 -1
- package/src/apis/QuizApi.ts +314 -16
- package/src/models/GetManualQuestionSelectionItem.ts +137 -0
- package/src/models/GetManualQuestionSelectionList.ts +119 -0
- package/src/models/GetQuiz.ts +0 -18
- package/src/models/GetQuizCriteria.ts +10 -10
- package/src/models/{GetQuizCriteriaCriteriaInner.ts → GetQuizCriteriaItem.ts} +29 -29
- package/src/models/GetQuizCriteriaList.ts +110 -0
- package/src/models/GetQuizCriteriaListItemsInner.ts +189 -0
- package/src/models/GetQuizListAllOfFilters.ts +0 -17
- package/src/models/GetQuizListAllOfQuizzes.ts +0 -18
- package/src/models/PostContentQuiz.ts +0 -20
- package/src/models/PostManualQuestionSelection.ts +90 -0
- package/src/models/PostQuiz.ts +0 -18
- package/src/models/PostQuizCriteriaCriteriaInner.ts +3 -2
- package/src/models/PutQuiz.ts +0 -17
- package/src/models/index.ts +6 -1
- package/dist/esm/models/GetQuizCriteriaCriteriaInner.d.ts +0 -122
- package/dist/models/GetQuizCriteriaCriteriaInner.d.ts +0 -122
package/dist/esm/apis/QuizApi.js
CHANGED
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetQuizFromJSON, GetQuizAttemptFromJSON, GetQuizAttemptAnalyticsFromJSON, GetQuizAttemptListFromJSON, GetQuizCriteriaFromJSON, GetQuizListFromJSON, GetQuizQuestionsFromJSON, GetQuizResultsFromJSON, GetUserQuizAttemptsFromJSON, PostQuizToJSON, PostQuizAttemptFromJSON, PostQuizAttemptSubmitToJSON, PostQuizCriteriaToJSON, PostQuizQuestionsToJSON, PutQuizToJSON, PutQuizAnswerToJSON, } from '../models/index';
|
|
24
|
+
import { GetManualQuestionSelectionItemFromJSON, GetManualQuestionSelectionListFromJSON, GetQuizFromJSON, GetQuizAttemptFromJSON, GetQuizAttemptAnalyticsFromJSON, GetQuizAttemptListFromJSON, GetQuizCriteriaFromJSON, GetQuizCriteriaItemFromJSON, GetQuizCriteriaListFromJSON, GetQuizListFromJSON, GetQuizQuestionsFromJSON, GetQuizResultsFromJSON, GetUserQuizAttemptsFromJSON, PostManualQuestionSelectionToJSON, PostQuizToJSON, PostQuizAttemptFromJSON, PostQuizAttemptSubmitToJSON, PostQuizCriteriaToJSON, PostQuizQuestionsToJSON, PutQuizToJSON, PutQuizAnswerToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -29,19 +29,19 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
29
29
|
/**
|
|
30
30
|
* Add question selection criteria
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
addQuizCriteriaQuestionSelectionRaw(requestParameters, initOverrides) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
if (requestParameters['quizId'] == null) {
|
|
35
|
-
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling
|
|
35
|
+
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling addQuizCriteriaQuestionSelection().');
|
|
36
36
|
}
|
|
37
37
|
if (requestParameters['postQuizCriteria'] == null) {
|
|
38
|
-
throw new runtime.RequiredError('postQuizCriteria', 'Required parameter "postQuizCriteria" was null or undefined when calling
|
|
38
|
+
throw new runtime.RequiredError('postQuizCriteria', 'Required parameter "postQuizCriteria" was null or undefined when calling addQuizCriteriaQuestionSelection().');
|
|
39
39
|
}
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
43
|
const response = yield this.request({
|
|
44
|
-
path: `/quizzes/{quizId}/criteria`.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId']))),
|
|
44
|
+
path: `/quizzes/{quizId}/criteria-question-selection`.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId']))),
|
|
45
45
|
method: 'POST',
|
|
46
46
|
headers: headerParameters,
|
|
47
47
|
query: queryParameters,
|
|
@@ -53,9 +53,42 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
53
53
|
/**
|
|
54
54
|
* Add question selection criteria
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
addQuizCriteriaQuestionSelection(requestParameters, initOverrides) {
|
|
57
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
const response = yield this.
|
|
58
|
+
const response = yield this.addQuizCriteriaQuestionSelectionRaw(requestParameters, initOverrides);
|
|
59
|
+
return yield response.value();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Add questions to quiz manually
|
|
64
|
+
*/
|
|
65
|
+
addQuizManualQuestionSelectionRaw(requestParameters, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
if (requestParameters['quizId'] == null) {
|
|
68
|
+
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling addQuizManualQuestionSelection().');
|
|
69
|
+
}
|
|
70
|
+
if (requestParameters['postManualQuestionSelection'] == null) {
|
|
71
|
+
throw new runtime.RequiredError('postManualQuestionSelection', 'Required parameter "postManualQuestionSelection" was null or undefined when calling addQuizManualQuestionSelection().');
|
|
72
|
+
}
|
|
73
|
+
const queryParameters = {};
|
|
74
|
+
const headerParameters = {};
|
|
75
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
76
|
+
const response = yield this.request({
|
|
77
|
+
path: `/quizzes/{quizId}/manual-question-selection`.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId']))),
|
|
78
|
+
method: 'POST',
|
|
79
|
+
headers: headerParameters,
|
|
80
|
+
query: queryParameters,
|
|
81
|
+
body: PostManualQuestionSelectionToJSON(requestParameters['postManualQuestionSelection']),
|
|
82
|
+
}, initOverrides);
|
|
83
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetManualQuestionSelectionItemFromJSON(jsonValue));
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Add questions to quiz manually
|
|
88
|
+
*/
|
|
89
|
+
addQuizManualQuestionSelection(requestParameters, initOverrides) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
const response = yield this.addQuizManualQuestionSelectionRaw(requestParameters, initOverrides);
|
|
59
92
|
return yield response.value();
|
|
60
93
|
});
|
|
61
94
|
}
|
|
@@ -149,6 +182,66 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
149
182
|
yield this.deleteQuizRaw(requestParameters, initOverrides);
|
|
150
183
|
});
|
|
151
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* Delete question selection criteria
|
|
187
|
+
*/
|
|
188
|
+
deleteQuizCriteriaQuestionSelectionRaw(requestParameters, initOverrides) {
|
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
if (requestParameters['quizId'] == null) {
|
|
191
|
+
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling deleteQuizCriteriaQuestionSelection().');
|
|
192
|
+
}
|
|
193
|
+
if (requestParameters['criteriaId'] == null) {
|
|
194
|
+
throw new runtime.RequiredError('criteriaId', 'Required parameter "criteriaId" was null or undefined when calling deleteQuizCriteriaQuestionSelection().');
|
|
195
|
+
}
|
|
196
|
+
const queryParameters = {};
|
|
197
|
+
const headerParameters = {};
|
|
198
|
+
const response = yield this.request({
|
|
199
|
+
path: `/quizzes/{quizId}/criteria-question-selection/{criteriaId}`.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId']))).replace(`{${"criteriaId"}}`, encodeURIComponent(String(requestParameters['criteriaId']))),
|
|
200
|
+
method: 'DELETE',
|
|
201
|
+
headers: headerParameters,
|
|
202
|
+
query: queryParameters,
|
|
203
|
+
}, initOverrides);
|
|
204
|
+
return new runtime.VoidApiResponse(response);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Delete question selection criteria
|
|
209
|
+
*/
|
|
210
|
+
deleteQuizCriteriaQuestionSelection(requestParameters, initOverrides) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
yield this.deleteQuizCriteriaQuestionSelectionRaw(requestParameters, initOverrides);
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Remove manually selected question from quiz
|
|
217
|
+
*/
|
|
218
|
+
deleteQuizManualQuestionSelectionRaw(requestParameters, initOverrides) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
if (requestParameters['quizId'] == null) {
|
|
221
|
+
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling deleteQuizManualQuestionSelection().');
|
|
222
|
+
}
|
|
223
|
+
if (requestParameters['questionId'] == null) {
|
|
224
|
+
throw new runtime.RequiredError('questionId', 'Required parameter "questionId" was null or undefined when calling deleteQuizManualQuestionSelection().');
|
|
225
|
+
}
|
|
226
|
+
const queryParameters = {};
|
|
227
|
+
const headerParameters = {};
|
|
228
|
+
const response = yield this.request({
|
|
229
|
+
path: `/quizzes/{quizId}/manual-question-selection/{questionId}`.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId']))).replace(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId']))),
|
|
230
|
+
method: 'DELETE',
|
|
231
|
+
headers: headerParameters,
|
|
232
|
+
query: queryParameters,
|
|
233
|
+
}, initOverrides);
|
|
234
|
+
return new runtime.VoidApiResponse(response);
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Remove manually selected question from quiz
|
|
239
|
+
*/
|
|
240
|
+
deleteQuizManualQuestionSelection(requestParameters, initOverrides) {
|
|
241
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
242
|
+
yield this.deleteQuizManualQuestionSelectionRaw(requestParameters, initOverrides);
|
|
243
|
+
});
|
|
244
|
+
}
|
|
152
245
|
/**
|
|
153
246
|
* Get quiz configuration by ID
|
|
154
247
|
*/
|
|
@@ -302,30 +395,67 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
302
395
|
});
|
|
303
396
|
}
|
|
304
397
|
/**
|
|
305
|
-
* Get
|
|
398
|
+
* Get single question selection criteria
|
|
306
399
|
*/
|
|
307
|
-
|
|
400
|
+
getQuizCriteriaQuestionSelectionRaw(requestParameters, initOverrides) {
|
|
308
401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
309
402
|
if (requestParameters['quizId'] == null) {
|
|
310
|
-
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling
|
|
403
|
+
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuizCriteriaQuestionSelection().');
|
|
404
|
+
}
|
|
405
|
+
if (requestParameters['criteriaId'] == null) {
|
|
406
|
+
throw new runtime.RequiredError('criteriaId', 'Required parameter "criteriaId" was null or undefined when calling getQuizCriteriaQuestionSelection().');
|
|
311
407
|
}
|
|
312
408
|
const queryParameters = {};
|
|
313
409
|
const headerParameters = {};
|
|
314
410
|
const response = yield this.request({
|
|
315
|
-
path: `/quizzes/{quizId}/criteria`.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId']))),
|
|
411
|
+
path: `/quizzes/{quizId}/criteria-question-selection/{criteriaId}`.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId']))).replace(`{${"criteriaId"}}`, encodeURIComponent(String(requestParameters['criteriaId']))),
|
|
316
412
|
method: 'GET',
|
|
317
413
|
headers: headerParameters,
|
|
318
414
|
query: queryParameters,
|
|
319
415
|
}, initOverrides);
|
|
320
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
416
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizCriteriaItemFromJSON(jsonValue));
|
|
321
417
|
});
|
|
322
418
|
}
|
|
323
419
|
/**
|
|
324
|
-
* Get
|
|
420
|
+
* Get single question selection criteria
|
|
325
421
|
*/
|
|
326
|
-
|
|
422
|
+
getQuizCriteriaQuestionSelection(requestParameters, initOverrides) {
|
|
327
423
|
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
-
const response = yield this.
|
|
424
|
+
const response = yield this.getQuizCriteriaQuestionSelectionRaw(requestParameters, initOverrides);
|
|
425
|
+
return yield response.value();
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Get quiz question selection criteria list
|
|
430
|
+
*/
|
|
431
|
+
getQuizCriteriaQuestionSelectionListRaw(requestParameters, initOverrides) {
|
|
432
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
433
|
+
if (requestParameters['quizId'] == null) {
|
|
434
|
+
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuizCriteriaQuestionSelectionList().');
|
|
435
|
+
}
|
|
436
|
+
const queryParameters = {};
|
|
437
|
+
if (requestParameters['page'] != null) {
|
|
438
|
+
queryParameters['page'] = requestParameters['page'];
|
|
439
|
+
}
|
|
440
|
+
if (requestParameters['pageSize'] != null) {
|
|
441
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
442
|
+
}
|
|
443
|
+
const headerParameters = {};
|
|
444
|
+
const response = yield this.request({
|
|
445
|
+
path: `/quizzes/{quizId}/criteria-question-selection`.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId']))),
|
|
446
|
+
method: 'GET',
|
|
447
|
+
headers: headerParameters,
|
|
448
|
+
query: queryParameters,
|
|
449
|
+
}, initOverrides);
|
|
450
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizCriteriaListFromJSON(jsonValue));
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Get quiz question selection criteria list
|
|
455
|
+
*/
|
|
456
|
+
getQuizCriteriaQuestionSelectionList(requestParameters, initOverrides) {
|
|
457
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
+
const response = yield this.getQuizCriteriaQuestionSelectionListRaw(requestParameters, initOverrides);
|
|
329
459
|
return yield response.value();
|
|
330
460
|
});
|
|
331
461
|
}
|
|
@@ -369,6 +499,71 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
369
499
|
return yield response.value();
|
|
370
500
|
});
|
|
371
501
|
}
|
|
502
|
+
/**
|
|
503
|
+
* Get single manually selected question
|
|
504
|
+
*/
|
|
505
|
+
getQuizManualQuestionSelectionRaw(requestParameters, initOverrides) {
|
|
506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
507
|
+
if (requestParameters['quizId'] == null) {
|
|
508
|
+
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuizManualQuestionSelection().');
|
|
509
|
+
}
|
|
510
|
+
if (requestParameters['questionId'] == null) {
|
|
511
|
+
throw new runtime.RequiredError('questionId', 'Required parameter "questionId" was null or undefined when calling getQuizManualQuestionSelection().');
|
|
512
|
+
}
|
|
513
|
+
const queryParameters = {};
|
|
514
|
+
const headerParameters = {};
|
|
515
|
+
const response = yield this.request({
|
|
516
|
+
path: `/quizzes/{quizId}/manual-question-selection/{questionId}`.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId']))).replace(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId']))),
|
|
517
|
+
method: 'GET',
|
|
518
|
+
headers: headerParameters,
|
|
519
|
+
query: queryParameters,
|
|
520
|
+
}, initOverrides);
|
|
521
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetManualQuestionSelectionItemFromJSON(jsonValue));
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* Get single manually selected question
|
|
526
|
+
*/
|
|
527
|
+
getQuizManualQuestionSelection(requestParameters, initOverrides) {
|
|
528
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
529
|
+
const response = yield this.getQuizManualQuestionSelectionRaw(requestParameters, initOverrides);
|
|
530
|
+
return yield response.value();
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Get manually selected questions for quiz
|
|
535
|
+
*/
|
|
536
|
+
getQuizManualQuestionSelectionListRaw(requestParameters, initOverrides) {
|
|
537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
538
|
+
if (requestParameters['quizId'] == null) {
|
|
539
|
+
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuizManualQuestionSelectionList().');
|
|
540
|
+
}
|
|
541
|
+
const queryParameters = {};
|
|
542
|
+
if (requestParameters['page'] != null) {
|
|
543
|
+
queryParameters['page'] = requestParameters['page'];
|
|
544
|
+
}
|
|
545
|
+
if (requestParameters['pageSize'] != null) {
|
|
546
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
547
|
+
}
|
|
548
|
+
const headerParameters = {};
|
|
549
|
+
const response = yield this.request({
|
|
550
|
+
path: `/quizzes/{quizId}/manual-question-selection`.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId']))),
|
|
551
|
+
method: 'GET',
|
|
552
|
+
headers: headerParameters,
|
|
553
|
+
query: queryParameters,
|
|
554
|
+
}, initOverrides);
|
|
555
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetManualQuestionSelectionListFromJSON(jsonValue));
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Get manually selected questions for quiz
|
|
560
|
+
*/
|
|
561
|
+
getQuizManualQuestionSelectionList(requestParameters, initOverrides) {
|
|
562
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
563
|
+
const response = yield this.getQuizManualQuestionSelectionListRaw(requestParameters, initOverrides);
|
|
564
|
+
return yield response.value();
|
|
565
|
+
});
|
|
566
|
+
}
|
|
372
567
|
/**
|
|
373
568
|
* Get quiz questions (paginated)
|
|
374
569
|
*/
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { GetQuizQuestionsItemsInnerQuestionDetails } from './GetQuizQuestionsItemsInnerQuestionDetails';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetManualQuestionSelectionItem
|
|
17
|
+
*/
|
|
18
|
+
export interface GetManualQuestionSelectionItem {
|
|
19
|
+
/**
|
|
20
|
+
* Quiz-question relationship ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetManualQuestionSelectionItem
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* ID of the question
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetManualQuestionSelectionItem
|
|
29
|
+
*/
|
|
30
|
+
questionId: string;
|
|
31
|
+
/**
|
|
32
|
+
* External ID of the question
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetManualQuestionSelectionItem
|
|
35
|
+
*/
|
|
36
|
+
questionExternalId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Order of question in quiz
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetManualQuestionSelectionItem
|
|
41
|
+
*/
|
|
42
|
+
questionOrder: number;
|
|
43
|
+
/**
|
|
44
|
+
* Points assigned to this question
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetManualQuestionSelectionItem
|
|
47
|
+
*/
|
|
48
|
+
points: number;
|
|
49
|
+
/**
|
|
50
|
+
* Whether question is locked to specific version
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof GetManualQuestionSelectionItem
|
|
53
|
+
*/
|
|
54
|
+
versionLocked: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {GetQuizQuestionsItemsInnerQuestionDetails}
|
|
58
|
+
* @memberof GetManualQuestionSelectionItem
|
|
59
|
+
*/
|
|
60
|
+
questionDetails: GetQuizQuestionsItemsInnerQuestionDetails;
|
|
61
|
+
/**
|
|
62
|
+
* When question was added to quiz
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof GetManualQuestionSelectionItem
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the GetManualQuestionSelectionItem interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfGetManualQuestionSelectionItem(value: object): value is GetManualQuestionSelectionItem;
|
|
72
|
+
export declare function GetManualQuestionSelectionItemFromJSON(json: any): GetManualQuestionSelectionItem;
|
|
73
|
+
export declare function GetManualQuestionSelectionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetManualQuestionSelectionItem;
|
|
74
|
+
export declare function GetManualQuestionSelectionItemToJSON(json: any): GetManualQuestionSelectionItem;
|
|
75
|
+
export declare function GetManualQuestionSelectionItemToJSONTyped(value?: GetManualQuestionSelectionItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { GetQuizQuestionsItemsInnerQuestionDetailsFromJSON, GetQuizQuestionsItemsInnerQuestionDetailsToJSON, } from './GetQuizQuestionsItemsInnerQuestionDetails';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetManualQuestionSelectionItem interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetManualQuestionSelectionItem(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('questionExternalId' in value) || value['questionExternalId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('questionOrder' in value) || value['questionOrder'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('points' in value) || value['points'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('versionLocked' in value) || value['versionLocked'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('questionDetails' in value) || value['questionDetails'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function GetManualQuestionSelectionItemFromJSON(json) {
|
|
38
|
+
return GetManualQuestionSelectionItemFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function GetManualQuestionSelectionItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'questionId': json['question_id'],
|
|
47
|
+
'questionExternalId': json['question_external_id'],
|
|
48
|
+
'questionOrder': json['question_order'],
|
|
49
|
+
'points': json['points'],
|
|
50
|
+
'versionLocked': json['version_locked'],
|
|
51
|
+
'questionDetails': GetQuizQuestionsItemsInnerQuestionDetailsFromJSON(json['question_details']),
|
|
52
|
+
'createdAt': (new Date(json['created_at'])),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export function GetManualQuestionSelectionItemToJSON(json) {
|
|
56
|
+
return GetManualQuestionSelectionItemToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
export function GetManualQuestionSelectionItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
'question_id': value['questionId'],
|
|
65
|
+
'question_external_id': value['questionExternalId'],
|
|
66
|
+
'question_order': value['questionOrder'],
|
|
67
|
+
'points': value['points'],
|
|
68
|
+
'version_locked': value['versionLocked'],
|
|
69
|
+
'question_details': GetQuizQuestionsItemsInnerQuestionDetailsToJSON(value['questionDetails']),
|
|
70
|
+
'created_at': ((value['createdAt']).toISOString()),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { GetQuizQuestionsItemsInner } from './GetQuizQuestionsItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetManualQuestionSelectionList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetManualQuestionSelectionList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetManualQuestionSelectionList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetManualQuestionSelectionList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetManualQuestionSelectionList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of questions in the quiz
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetManualQuestionSelectionList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
* Total points possible for quiz
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetManualQuestionSelectionList
|
|
47
|
+
*/
|
|
48
|
+
totalPoints: number;
|
|
49
|
+
/**
|
|
50
|
+
* Manually selected questions in the quiz (paginated)
|
|
51
|
+
* @type {Array<GetQuizQuestionsItemsInner>}
|
|
52
|
+
* @memberof GetManualQuestionSelectionList
|
|
53
|
+
*/
|
|
54
|
+
items: Array<GetQuizQuestionsItemsInner>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the GetManualQuestionSelectionList interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfGetManualQuestionSelectionList(value: object): value is GetManualQuestionSelectionList;
|
|
60
|
+
export declare function GetManualQuestionSelectionListFromJSON(json: any): GetManualQuestionSelectionList;
|
|
61
|
+
export declare function GetManualQuestionSelectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetManualQuestionSelectionList;
|
|
62
|
+
export declare function GetManualQuestionSelectionListToJSON(json: any): GetManualQuestionSelectionList;
|
|
63
|
+
export declare function GetManualQuestionSelectionListToJSONTyped(value?: GetManualQuestionSelectionList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { GetQuizQuestionsItemsInnerFromJSON, GetQuizQuestionsItemsInnerToJSON, } from './GetQuizQuestionsItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetManualQuestionSelectionList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetManualQuestionSelectionList(value) {
|
|
19
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('totalPoints' in value) || value['totalPoints'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function GetManualQuestionSelectionListFromJSON(json) {
|
|
34
|
+
return GetManualQuestionSelectionListFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GetManualQuestionSelectionListFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'page': json['page'],
|
|
42
|
+
'pageSize': json['pageSize'],
|
|
43
|
+
'totalPages': json['totalPages'],
|
|
44
|
+
'totalItems': json['totalItems'],
|
|
45
|
+
'totalPoints': json['total_points'],
|
|
46
|
+
'items': (json['items'].map(GetQuizQuestionsItemsInnerFromJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function GetManualQuestionSelectionListToJSON(json) {
|
|
50
|
+
return GetManualQuestionSelectionListToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function GetManualQuestionSelectionListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'page': value['page'],
|
|
58
|
+
'pageSize': value['pageSize'],
|
|
59
|
+
'totalPages': value['totalPages'],
|
|
60
|
+
'totalItems': value['totalItems'],
|
|
61
|
+
'total_points': value['totalPoints'],
|
|
62
|
+
'items': (value['items'].map(GetQuizQuestionsItemsInnerToJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -34,12 +34,6 @@ export interface GetQuiz {
|
|
|
34
34
|
* @memberof GetQuiz
|
|
35
35
|
*/
|
|
36
36
|
contentId: string;
|
|
37
|
-
/**
|
|
38
|
-
* Type of quiz
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof GetQuiz
|
|
41
|
-
*/
|
|
42
|
-
quizType: GetQuizQuizTypeEnum;
|
|
43
37
|
/**
|
|
44
38
|
* How questions are selected
|
|
45
39
|
* @type {string}
|
|
@@ -131,14 +125,6 @@ export interface GetQuiz {
|
|
|
131
125
|
*/
|
|
132
126
|
updatedAt: Date;
|
|
133
127
|
}
|
|
134
|
-
/**
|
|
135
|
-
* @export
|
|
136
|
-
*/
|
|
137
|
-
export declare const GetQuizQuizTypeEnum: {
|
|
138
|
-
readonly FixedQuiz: "fixed_quiz";
|
|
139
|
-
readonly RandomizedTest: "randomized_test";
|
|
140
|
-
};
|
|
141
|
-
export type GetQuizQuizTypeEnum = typeof GetQuizQuizTypeEnum[keyof typeof GetQuizQuizTypeEnum];
|
|
142
128
|
/**
|
|
143
129
|
* @export
|
|
144
130
|
*/
|
|
@@ -12,13 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GetQuizStatisticsFromJSON, GetQuizStatisticsToJSON, } from './GetQuizStatistics';
|
|
15
|
-
/**
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const GetQuizQuizTypeEnum = {
|
|
19
|
-
FixedQuiz: 'fixed_quiz',
|
|
20
|
-
RandomizedTest: 'randomized_test'
|
|
21
|
-
};
|
|
22
15
|
/**
|
|
23
16
|
* @export
|
|
24
17
|
*/
|
|
@@ -36,8 +29,6 @@ export function instanceOfGetQuiz(value) {
|
|
|
36
29
|
return false;
|
|
37
30
|
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
38
31
|
return false;
|
|
39
|
-
if (!('quizType' in value) || value['quizType'] === undefined)
|
|
40
|
-
return false;
|
|
41
32
|
if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined)
|
|
42
33
|
return false;
|
|
43
34
|
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
@@ -61,7 +52,6 @@ export function GetQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
52
|
'id': json['id'],
|
|
62
53
|
'externalId': json['external_id'],
|
|
63
54
|
'contentId': json['content_id'],
|
|
64
|
-
'quizType': json['quiz_type'],
|
|
65
55
|
'questionSelectionMethod': json['question_selection_method'],
|
|
66
56
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
67
57
|
'maxAttempts': json['max_attempts'],
|
|
@@ -90,7 +80,6 @@ export function GetQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
80
|
'id': value['id'],
|
|
91
81
|
'external_id': value['externalId'],
|
|
92
82
|
'content_id': value['contentId'],
|
|
93
|
-
'quiz_type': value['quizType'],
|
|
94
83
|
'question_selection_method': value['questionSelectionMethod'],
|
|
95
84
|
'max_questions': value['maxQuestions'],
|
|
96
85
|
'max_attempts': value['maxAttempts'],
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GetQuizCriteriaEstimatedQuestions } from './GetQuizCriteriaEstimatedQuestions';
|
|
13
|
-
import type {
|
|
13
|
+
import type { GetQuizCriteriaListItemsInner } from './GetQuizCriteriaListItemsInner';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -19,10 +19,10 @@ import type { GetQuizCriteriaCriteriaInner } from './GetQuizCriteriaCriteriaInne
|
|
|
19
19
|
export interface GetQuizCriteria {
|
|
20
20
|
/**
|
|
21
21
|
* Question selection criteria
|
|
22
|
-
* @type {Array<
|
|
22
|
+
* @type {Array<GetQuizCriteriaListItemsInner>}
|
|
23
23
|
* @memberof GetQuizCriteria
|
|
24
24
|
*/
|
|
25
|
-
criteria: Array<
|
|
25
|
+
criteria: Array<GetQuizCriteriaListItemsInner>;
|
|
26
26
|
/**
|
|
27
27
|
* Total number of criteria
|
|
28
28
|
* @type {number}
|