@easyedu/js-lsm-api 1.58.0 → 1.60.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 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +6 -3
- package/dist/apis/CertificateApi.d.ts +10 -1
- package/dist/apis/CertificateApi.js +34 -25
- package/dist/apis/ChatApi.d.ts +6 -1
- package/dist/apis/ChatApi.js +15 -10
- package/dist/apis/ContentApi.d.ts +22 -1
- package/dist/apis/ContentApi.js +101 -80
- package/dist/apis/CourseApi.d.ts +14 -1
- package/dist/apis/CourseApi.js +50 -37
- package/dist/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/apis/CourseCatalogApi.js +19 -16
- package/dist/apis/CourseShareApi.d.ts +5 -1
- package/dist/apis/CourseShareApi.js +18 -14
- package/dist/apis/ModuleApi.d.ts +6 -1
- package/dist/apis/ModuleApi.js +24 -19
- package/dist/apis/PortalApi.d.ts +11 -3
- package/dist/apis/PortalApi.js +31 -22
- package/dist/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/apis/PortalSublicenseApi.js +5 -4
- package/dist/apis/QuestionApi.d.ts +4 -1
- package/dist/apis/QuestionApi.js +13 -10
- package/dist/apis/QuizApi.d.ts +22 -1
- package/dist/apis/QuizApi.js +82 -61
- package/dist/apis/ReportingApi.d.ts +9 -1
- package/dist/apis/ReportingApi.js +39 -31
- package/dist/apis/RoleApi.d.ts +6 -1
- package/dist/apis/RoleApi.js +27 -22
- package/dist/apis/SupportTicketApi.d.ts +8 -1
- package/dist/apis/SupportTicketApi.js +26 -19
- package/dist/apis/UserApi.d.ts +7 -1
- package/dist/apis/UserApi.js +19 -13
- package/dist/esm/apis/CertificateApi.d.ts +10 -1
- package/dist/esm/apis/CertificateApi.js +19 -10
- package/dist/esm/apis/ChatApi.d.ts +6 -1
- package/dist/esm/apis/ChatApi.js +9 -4
- package/dist/esm/apis/ContentApi.d.ts +22 -1
- package/dist/esm/apis/ContentApi.js +74 -53
- package/dist/esm/apis/CourseApi.d.ts +14 -1
- package/dist/esm/apis/CourseApi.js +30 -17
- package/dist/esm/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/esm/apis/CourseCatalogApi.js +12 -9
- package/dist/esm/apis/CourseShareApi.d.ts +5 -1
- package/dist/esm/apis/CourseShareApi.js +12 -8
- package/dist/esm/apis/ModuleApi.d.ts +6 -1
- package/dist/esm/apis/ModuleApi.js +15 -10
- package/dist/esm/apis/PortalApi.d.ts +11 -3
- package/dist/esm/apis/PortalApi.js +21 -12
- package/dist/esm/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/esm/apis/PortalSublicenseApi.js +3 -2
- package/dist/esm/apis/QuestionApi.d.ts +4 -1
- package/dist/esm/apis/QuestionApi.js +7 -4
- package/dist/esm/apis/QuizApi.d.ts +22 -1
- package/dist/esm/apis/QuizApi.js +53 -32
- package/dist/esm/apis/ReportingApi.d.ts +9 -1
- package/dist/esm/apis/ReportingApi.js +30 -22
- package/dist/esm/apis/RoleApi.d.ts +6 -1
- package/dist/esm/apis/RoleApi.js +18 -13
- package/dist/esm/apis/SupportTicketApi.d.ts +8 -1
- package/dist/esm/apis/SupportTicketApi.js +16 -9
- package/dist/esm/apis/UserApi.d.ts +7 -1
- package/dist/esm/apis/UserApi.js +11 -5
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +4 -0
- package/dist/esm/models/PostPortal.d.ts +12 -0
- package/dist/esm/models/PostPortal.js +4 -0
- package/dist/esm/models/PutPortalBranding.d.ts +12 -0
- package/dist/esm/models/PutPortalBranding.js +4 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.d.ts +52 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.js +57 -0
- package/dist/esm/models/UpdateSelectedPortalResponseHostPortal.d.ts +44 -0
- package/dist/esm/models/UpdateSelectedPortalResponseHostPortal.js +51 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/GetPortal.d.ts +12 -0
- package/dist/models/GetPortal.js +4 -0
- package/dist/models/PostPortal.d.ts +12 -0
- package/dist/models/PostPortal.js +4 -0
- package/dist/models/PutPortalBranding.d.ts +12 -0
- package/dist/models/PutPortalBranding.js +4 -0
- package/dist/models/UpdateSelectedPortalResponse.d.ts +52 -0
- package/dist/models/UpdateSelectedPortalResponse.js +64 -0
- package/dist/models/UpdateSelectedPortalResponseHostPortal.d.ts +44 -0
- package/dist/models/UpdateSelectedPortalResponseHostPortal.js +58 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.js +1 -1
- package/docs/GetPortal.md +4 -0
- package/docs/PortalApi.md +3 -3
- package/docs/PostPortal.md +4 -0
- package/docs/PutPortalBranding.md +4 -0
- package/docs/UpdateSelectedPortalResponse.md +40 -0
- package/docs/UpdateSelectedPortalResponseHostPortal.md +39 -0
- package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
- package/package.json +1 -1
- package/src/apis/CertificateApi.ts +38 -23
- package/src/apis/ChatApi.ts +20 -13
- package/src/apis/ContentApi.ts +117 -78
- package/src/apis/CourseApi.ts +57 -34
- package/src/apis/CourseCatalogApi.ts +19 -16
- package/src/apis/CourseShareApi.ts +21 -16
- package/src/apis/ModuleApi.ts +26 -19
- package/src/apis/OtherApi.ts +0 -1
- package/src/apis/PortalApi.ts +42 -25
- package/src/apis/PortalSublicenseApi.ts +6 -7
- package/src/apis/QuestionApi.ts +14 -11
- package/src/apis/QuizApi.ts +96 -57
- package/src/apis/ReportingApi.ts +47 -34
- package/src/apis/RoleApi.ts +29 -22
- package/src/apis/SupportTicketApi.ts +31 -20
- package/src/apis/UserApi.ts +24 -15
- package/src/models/GetPortal.ts +16 -0
- package/src/models/PostPortal.ts +16 -0
- package/src/models/PutPortalBranding.ts +16 -0
- package/src/models/UpdateSelectedPortalResponse.ts +108 -0
- package/src/models/UpdateSelectedPortalResponseHostPortal.ts +84 -0
- package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +1 -2
package/dist/apis/QuizApi.js
CHANGED
|
@@ -24,7 +24,28 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.GetUserQuizAttemptsStatusEnum = exports.GetQuizListQuizTypeEnum = exports.GetQuizAttemptsStatusEnum = exports.QuizApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const GetManualQuestionSelectionItem_1 = require("../models/GetManualQuestionSelectionItem");
|
|
28
|
+
const GetManualQuestionSelectionList_1 = require("../models/GetManualQuestionSelectionList");
|
|
29
|
+
const GetQuiz_1 = require("../models/GetQuiz");
|
|
30
|
+
const GetQuizAttempt_1 = require("../models/GetQuizAttempt");
|
|
31
|
+
const GetQuizAttemptAnalytics_1 = require("../models/GetQuizAttemptAnalytics");
|
|
32
|
+
const GetQuizAttemptList_1 = require("../models/GetQuizAttemptList");
|
|
33
|
+
const GetQuizCriteria_1 = require("../models/GetQuizCriteria");
|
|
34
|
+
const GetQuizCriteriaItem_1 = require("../models/GetQuizCriteriaItem");
|
|
35
|
+
const GetQuizCriteriaList_1 = require("../models/GetQuizCriteriaList");
|
|
36
|
+
const GetQuizList_1 = require("../models/GetQuizList");
|
|
37
|
+
const GetQuizQuestions_1 = require("../models/GetQuizQuestions");
|
|
38
|
+
const GetQuizResults_1 = require("../models/GetQuizResults");
|
|
39
|
+
const GetUserQuizAttempts_1 = require("../models/GetUserQuizAttempts");
|
|
40
|
+
const PostManualQuestionSelection_1 = require("../models/PostManualQuestionSelection");
|
|
41
|
+
const PostQuiz_1 = require("../models/PostQuiz");
|
|
42
|
+
const PostQuizAttempt_1 = require("../models/PostQuizAttempt");
|
|
43
|
+
const PostQuizAttemptSubmit_1 = require("../models/PostQuizAttemptSubmit");
|
|
44
|
+
const PostQuizCriteria_1 = require("../models/PostQuizCriteria");
|
|
45
|
+
const PostQuizQuestions_1 = require("../models/PostQuizQuestions");
|
|
46
|
+
const PutQuiz_1 = require("../models/PutQuiz");
|
|
47
|
+
const PutQuizAnswer_1 = require("../models/PutQuizAnswer");
|
|
48
|
+
const PutQuizAnswerGrade_1 = require("../models/PutQuizAnswerGrade");
|
|
28
49
|
/**
|
|
29
50
|
*
|
|
30
51
|
*/
|
|
@@ -44,13 +65,13 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
44
65
|
const headerParameters = {};
|
|
45
66
|
headerParameters['Content-Type'] = 'application/json';
|
|
46
67
|
let urlPath = `/quizzes/{quizId}/criteria-question-selection`;
|
|
47
|
-
urlPath = urlPath.replace(
|
|
68
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
48
69
|
return {
|
|
49
70
|
path: urlPath,
|
|
50
71
|
method: 'POST',
|
|
51
72
|
headers: headerParameters,
|
|
52
73
|
query: queryParameters,
|
|
53
|
-
body: (0,
|
|
74
|
+
body: (0, PostQuizCriteria_1.PostQuizCriteriaToJSON)(requestParameters['postQuizCriteria']),
|
|
54
75
|
};
|
|
55
76
|
});
|
|
56
77
|
}
|
|
@@ -61,7 +82,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
61
82
|
return __awaiter(this, void 0, void 0, function* () {
|
|
62
83
|
const requestOptions = yield this.addQuizCriteriaQuestionSelectionRequestOpts(requestParameters);
|
|
63
84
|
const response = yield this.request(requestOptions, initOverrides);
|
|
64
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
85
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuizCriteria_1.GetQuizCriteriaFromJSON)(jsonValue));
|
|
65
86
|
});
|
|
66
87
|
}
|
|
67
88
|
/**
|
|
@@ -88,13 +109,13 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
88
109
|
const headerParameters = {};
|
|
89
110
|
headerParameters['Content-Type'] = 'application/json';
|
|
90
111
|
let urlPath = `/quizzes/{quizId}/manual-question-selection`;
|
|
91
|
-
urlPath = urlPath.replace(
|
|
112
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
92
113
|
return {
|
|
93
114
|
path: urlPath,
|
|
94
115
|
method: 'POST',
|
|
95
116
|
headers: headerParameters,
|
|
96
117
|
query: queryParameters,
|
|
97
|
-
body: (0,
|
|
118
|
+
body: (0, PostManualQuestionSelection_1.PostManualQuestionSelectionToJSON)(requestParameters['postManualQuestionSelection']),
|
|
98
119
|
};
|
|
99
120
|
});
|
|
100
121
|
}
|
|
@@ -105,7 +126,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
105
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
106
127
|
const requestOptions = yield this.addQuizManualQuestionSelectionRequestOpts(requestParameters);
|
|
107
128
|
const response = yield this.request(requestOptions, initOverrides);
|
|
108
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
129
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetManualQuestionSelectionItem_1.GetManualQuestionSelectionItemFromJSON)(jsonValue));
|
|
109
130
|
});
|
|
110
131
|
}
|
|
111
132
|
/**
|
|
@@ -132,13 +153,13 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
132
153
|
const headerParameters = {};
|
|
133
154
|
headerParameters['Content-Type'] = 'application/json';
|
|
134
155
|
let urlPath = `/quizzes/{quizId}/questions`;
|
|
135
|
-
urlPath = urlPath.replace(
|
|
156
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
136
157
|
return {
|
|
137
158
|
path: urlPath,
|
|
138
159
|
method: 'POST',
|
|
139
160
|
headers: headerParameters,
|
|
140
161
|
query: queryParameters,
|
|
141
|
-
body: (0,
|
|
162
|
+
body: (0, PostQuizQuestions_1.PostQuizQuestionsToJSON)(requestParameters['postQuizQuestions']),
|
|
142
163
|
};
|
|
143
164
|
});
|
|
144
165
|
}
|
|
@@ -149,7 +170,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
149
170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
171
|
const requestOptions = yield this.addQuizQuestionsRequestOpts(requestParameters);
|
|
151
172
|
const response = yield this.request(requestOptions, initOverrides);
|
|
152
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
173
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuizQuestions_1.GetQuizQuestionsFromJSON)(jsonValue));
|
|
153
174
|
});
|
|
154
175
|
}
|
|
155
176
|
/**
|
|
@@ -178,7 +199,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
178
199
|
method: 'POST',
|
|
179
200
|
headers: headerParameters,
|
|
180
201
|
query: queryParameters,
|
|
181
|
-
body: (0,
|
|
202
|
+
body: (0, PostQuiz_1.PostQuizToJSON)(requestParameters['postQuiz']),
|
|
182
203
|
};
|
|
183
204
|
});
|
|
184
205
|
}
|
|
@@ -189,7 +210,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
189
210
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
211
|
const requestOptions = yield this.createQuizRequestOpts(requestParameters);
|
|
191
212
|
const response = yield this.request(requestOptions, initOverrides);
|
|
192
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
213
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuiz_1.GetQuizFromJSON)(jsonValue));
|
|
193
214
|
});
|
|
194
215
|
}
|
|
195
216
|
/**
|
|
@@ -212,7 +233,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
212
233
|
const queryParameters = {};
|
|
213
234
|
const headerParameters = {};
|
|
214
235
|
let urlPath = `/quizzes/{quizId}`;
|
|
215
|
-
urlPath = urlPath.replace(
|
|
236
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
216
237
|
return {
|
|
217
238
|
path: urlPath,
|
|
218
239
|
method: 'DELETE',
|
|
@@ -253,8 +274,8 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
253
274
|
const queryParameters = {};
|
|
254
275
|
const headerParameters = {};
|
|
255
276
|
let urlPath = `/quizzes/{quizId}/criteria-question-selection/{criteriaId}`;
|
|
256
|
-
urlPath = urlPath.replace(
|
|
257
|
-
urlPath = urlPath.replace(
|
|
277
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
278
|
+
urlPath = urlPath.replace('{criteriaId}', encodeURIComponent(String(requestParameters['criteriaId'])));
|
|
258
279
|
return {
|
|
259
280
|
path: urlPath,
|
|
260
281
|
method: 'DELETE',
|
|
@@ -295,8 +316,8 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
295
316
|
const queryParameters = {};
|
|
296
317
|
const headerParameters = {};
|
|
297
318
|
let urlPath = `/quizzes/{quizId}/manual-question-selection/{questionId}`;
|
|
298
|
-
urlPath = urlPath.replace(
|
|
299
|
-
urlPath = urlPath.replace(
|
|
319
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
320
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
300
321
|
return {
|
|
301
322
|
path: urlPath,
|
|
302
323
|
method: 'DELETE',
|
|
@@ -334,7 +355,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
334
355
|
const queryParameters = {};
|
|
335
356
|
const headerParameters = {};
|
|
336
357
|
let urlPath = `/quizzes/{quizId}`;
|
|
337
|
-
urlPath = urlPath.replace(
|
|
358
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
338
359
|
return {
|
|
339
360
|
path: urlPath,
|
|
340
361
|
method: 'GET',
|
|
@@ -350,7 +371,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
350
371
|
return __awaiter(this, void 0, void 0, function* () {
|
|
351
372
|
const requestOptions = yield this.getQuizRequestOpts(requestParameters);
|
|
352
373
|
const response = yield this.request(requestOptions, initOverrides);
|
|
353
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
374
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuiz_1.GetQuizFromJSON)(jsonValue));
|
|
354
375
|
});
|
|
355
376
|
}
|
|
356
377
|
/**
|
|
@@ -373,7 +394,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
373
394
|
const queryParameters = {};
|
|
374
395
|
const headerParameters = {};
|
|
375
396
|
let urlPath = `/quiz-attempts/{attemptId}`;
|
|
376
|
-
urlPath = urlPath.replace(
|
|
397
|
+
urlPath = urlPath.replace('{attemptId}', encodeURIComponent(String(requestParameters['attemptId'])));
|
|
377
398
|
return {
|
|
378
399
|
path: urlPath,
|
|
379
400
|
method: 'GET',
|
|
@@ -389,7 +410,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
389
410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
390
411
|
const requestOptions = yield this.getQuizAttemptRequestOpts(requestParameters);
|
|
391
412
|
const response = yield this.request(requestOptions, initOverrides);
|
|
392
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
413
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuizAttempt_1.GetQuizAttemptFromJSON)(jsonValue));
|
|
393
414
|
});
|
|
394
415
|
}
|
|
395
416
|
/**
|
|
@@ -412,7 +433,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
412
433
|
const queryParameters = {};
|
|
413
434
|
const headerParameters = {};
|
|
414
435
|
let urlPath = `/quiz-attempts/{attemptId}/analytics`;
|
|
415
|
-
urlPath = urlPath.replace(
|
|
436
|
+
urlPath = urlPath.replace('{attemptId}', encodeURIComponent(String(requestParameters['attemptId'])));
|
|
416
437
|
return {
|
|
417
438
|
path: urlPath,
|
|
418
439
|
method: 'GET',
|
|
@@ -428,7 +449,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
428
449
|
return __awaiter(this, void 0, void 0, function* () {
|
|
429
450
|
const requestOptions = yield this.getQuizAttemptAnalyticsRequestOpts(requestParameters);
|
|
430
451
|
const response = yield this.request(requestOptions, initOverrides);
|
|
431
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
452
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuizAttemptAnalytics_1.GetQuizAttemptAnalyticsFromJSON)(jsonValue));
|
|
432
453
|
});
|
|
433
454
|
}
|
|
434
455
|
/**
|
|
@@ -451,7 +472,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
451
472
|
const queryParameters = {};
|
|
452
473
|
const headerParameters = {};
|
|
453
474
|
let urlPath = `/quiz-attempts/{attemptId}/results`;
|
|
454
|
-
urlPath = urlPath.replace(
|
|
475
|
+
urlPath = urlPath.replace('{attemptId}', encodeURIComponent(String(requestParameters['attemptId'])));
|
|
455
476
|
return {
|
|
456
477
|
path: urlPath,
|
|
457
478
|
method: 'GET',
|
|
@@ -467,7 +488,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
467
488
|
return __awaiter(this, void 0, void 0, function* () {
|
|
468
489
|
const requestOptions = yield this.getQuizAttemptResultsRequestOpts(requestParameters);
|
|
469
490
|
const response = yield this.request(requestOptions, initOverrides);
|
|
470
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
491
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuizResults_1.GetQuizResultsFromJSON)(jsonValue));
|
|
471
492
|
});
|
|
472
493
|
}
|
|
473
494
|
/**
|
|
@@ -502,7 +523,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
502
523
|
}
|
|
503
524
|
const headerParameters = {};
|
|
504
525
|
let urlPath = `/quizzes/{quizId}/attempts`;
|
|
505
|
-
urlPath = urlPath.replace(
|
|
526
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
506
527
|
return {
|
|
507
528
|
path: urlPath,
|
|
508
529
|
method: 'GET',
|
|
@@ -518,7 +539,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
518
539
|
return __awaiter(this, void 0, void 0, function* () {
|
|
519
540
|
const requestOptions = yield this.getQuizAttemptsRequestOpts(requestParameters);
|
|
520
541
|
const response = yield this.request(requestOptions, initOverrides);
|
|
521
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
542
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuizAttemptList_1.GetQuizAttemptListFromJSON)(jsonValue));
|
|
522
543
|
});
|
|
523
544
|
}
|
|
524
545
|
/**
|
|
@@ -544,8 +565,8 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
544
565
|
const queryParameters = {};
|
|
545
566
|
const headerParameters = {};
|
|
546
567
|
let urlPath = `/quizzes/{quizId}/criteria-question-selection/{criteriaId}`;
|
|
547
|
-
urlPath = urlPath.replace(
|
|
548
|
-
urlPath = urlPath.replace(
|
|
568
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
569
|
+
urlPath = urlPath.replace('{criteriaId}', encodeURIComponent(String(requestParameters['criteriaId'])));
|
|
549
570
|
return {
|
|
550
571
|
path: urlPath,
|
|
551
572
|
method: 'GET',
|
|
@@ -561,7 +582,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
561
582
|
return __awaiter(this, void 0, void 0, function* () {
|
|
562
583
|
const requestOptions = yield this.getQuizCriteriaQuestionSelectionRequestOpts(requestParameters);
|
|
563
584
|
const response = yield this.request(requestOptions, initOverrides);
|
|
564
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
585
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuizCriteriaItem_1.GetQuizCriteriaItemFromJSON)(jsonValue));
|
|
565
586
|
});
|
|
566
587
|
}
|
|
567
588
|
/**
|
|
@@ -590,7 +611,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
590
611
|
}
|
|
591
612
|
const headerParameters = {};
|
|
592
613
|
let urlPath = `/quizzes/{quizId}/criteria-question-selection`;
|
|
593
|
-
urlPath = urlPath.replace(
|
|
614
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
594
615
|
return {
|
|
595
616
|
path: urlPath,
|
|
596
617
|
method: 'GET',
|
|
@@ -606,7 +627,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
606
627
|
return __awaiter(this, void 0, void 0, function* () {
|
|
607
628
|
const requestOptions = yield this.getQuizCriteriaQuestionSelectionListRequestOpts(requestParameters);
|
|
608
629
|
const response = yield this.request(requestOptions, initOverrides);
|
|
609
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
630
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuizCriteriaList_1.GetQuizCriteriaListFromJSON)(jsonValue));
|
|
610
631
|
});
|
|
611
632
|
}
|
|
612
633
|
/**
|
|
@@ -656,7 +677,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
656
677
|
return __awaiter(this, void 0, void 0, function* () {
|
|
657
678
|
const requestOptions = yield this.getQuizListRequestOpts(requestParameters);
|
|
658
679
|
const response = yield this.request(requestOptions, initOverrides);
|
|
659
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
680
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuizList_1.GetQuizListFromJSON)(jsonValue));
|
|
660
681
|
});
|
|
661
682
|
}
|
|
662
683
|
/**
|
|
@@ -682,8 +703,8 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
682
703
|
const queryParameters = {};
|
|
683
704
|
const headerParameters = {};
|
|
684
705
|
let urlPath = `/quizzes/{quizId}/manual-question-selection/{questionId}`;
|
|
685
|
-
urlPath = urlPath.replace(
|
|
686
|
-
urlPath = urlPath.replace(
|
|
706
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
707
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
687
708
|
return {
|
|
688
709
|
path: urlPath,
|
|
689
710
|
method: 'GET',
|
|
@@ -699,7 +720,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
699
720
|
return __awaiter(this, void 0, void 0, function* () {
|
|
700
721
|
const requestOptions = yield this.getQuizManualQuestionSelectionRequestOpts(requestParameters);
|
|
701
722
|
const response = yield this.request(requestOptions, initOverrides);
|
|
702
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
723
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetManualQuestionSelectionItem_1.GetManualQuestionSelectionItemFromJSON)(jsonValue));
|
|
703
724
|
});
|
|
704
725
|
}
|
|
705
726
|
/**
|
|
@@ -728,7 +749,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
728
749
|
}
|
|
729
750
|
const headerParameters = {};
|
|
730
751
|
let urlPath = `/quizzes/{quizId}/manual-question-selection`;
|
|
731
|
-
urlPath = urlPath.replace(
|
|
752
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
732
753
|
return {
|
|
733
754
|
path: urlPath,
|
|
734
755
|
method: 'GET',
|
|
@@ -744,7 +765,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
744
765
|
return __awaiter(this, void 0, void 0, function* () {
|
|
745
766
|
const requestOptions = yield this.getQuizManualQuestionSelectionListRequestOpts(requestParameters);
|
|
746
767
|
const response = yield this.request(requestOptions, initOverrides);
|
|
747
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
768
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetManualQuestionSelectionList_1.GetManualQuestionSelectionListFromJSON)(jsonValue));
|
|
748
769
|
});
|
|
749
770
|
}
|
|
750
771
|
/**
|
|
@@ -773,7 +794,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
773
794
|
}
|
|
774
795
|
const headerParameters = {};
|
|
775
796
|
let urlPath = `/quizzes/{quizId}/questions`;
|
|
776
|
-
urlPath = urlPath.replace(
|
|
797
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
777
798
|
return {
|
|
778
799
|
path: urlPath,
|
|
779
800
|
method: 'GET',
|
|
@@ -789,7 +810,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
789
810
|
return __awaiter(this, void 0, void 0, function* () {
|
|
790
811
|
const requestOptions = yield this.getQuizQuestionsRequestOpts(requestParameters);
|
|
791
812
|
const response = yield this.request(requestOptions, initOverrides);
|
|
792
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
813
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuizQuestions_1.GetQuizQuestionsFromJSON)(jsonValue));
|
|
793
814
|
});
|
|
794
815
|
}
|
|
795
816
|
/**
|
|
@@ -824,7 +845,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
824
845
|
}
|
|
825
846
|
const headerParameters = {};
|
|
826
847
|
let urlPath = `/users/{userId}/quiz-attempts`;
|
|
827
|
-
urlPath = urlPath.replace(
|
|
848
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
828
849
|
return {
|
|
829
850
|
path: urlPath,
|
|
830
851
|
method: 'GET',
|
|
@@ -840,7 +861,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
840
861
|
return __awaiter(this, void 0, void 0, function* () {
|
|
841
862
|
const requestOptions = yield this.getUserQuizAttemptsRequestOpts(requestParameters);
|
|
842
863
|
const response = yield this.request(requestOptions, initOverrides);
|
|
843
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
864
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetUserQuizAttempts_1.GetUserQuizAttemptsFromJSON)(jsonValue));
|
|
844
865
|
});
|
|
845
866
|
}
|
|
846
867
|
/**
|
|
@@ -870,14 +891,14 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
870
891
|
const headerParameters = {};
|
|
871
892
|
headerParameters['Content-Type'] = 'application/json';
|
|
872
893
|
let urlPath = `/quiz-attempts/{attemptId}/answers/{questionId}/grade`;
|
|
873
|
-
urlPath = urlPath.replace(
|
|
874
|
-
urlPath = urlPath.replace(
|
|
894
|
+
urlPath = urlPath.replace('{attemptId}', encodeURIComponent(String(requestParameters['attemptId'])));
|
|
895
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
875
896
|
return {
|
|
876
897
|
path: urlPath,
|
|
877
898
|
method: 'PUT',
|
|
878
899
|
headers: headerParameters,
|
|
879
900
|
query: queryParameters,
|
|
880
|
-
body: (0,
|
|
901
|
+
body: (0, PutQuizAnswerGrade_1.PutQuizAnswerGradeToJSON)(requestParameters['putQuizAnswerGrade']),
|
|
881
902
|
};
|
|
882
903
|
});
|
|
883
904
|
}
|
|
@@ -915,8 +936,8 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
915
936
|
const queryParameters = {};
|
|
916
937
|
const headerParameters = {};
|
|
917
938
|
let urlPath = `/quizzes/{quizId}/questions/{questionId}`;
|
|
918
|
-
urlPath = urlPath.replace(
|
|
919
|
-
urlPath = urlPath.replace(
|
|
939
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
940
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
920
941
|
return {
|
|
921
942
|
path: urlPath,
|
|
922
943
|
method: 'DELETE',
|
|
@@ -961,14 +982,14 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
961
982
|
const headerParameters = {};
|
|
962
983
|
headerParameters['Content-Type'] = 'application/json';
|
|
963
984
|
let urlPath = `/quiz-attempts/{attemptId}/answers/{questionId}`;
|
|
964
|
-
urlPath = urlPath.replace(
|
|
965
|
-
urlPath = urlPath.replace(
|
|
985
|
+
urlPath = urlPath.replace('{attemptId}', encodeURIComponent(String(requestParameters['attemptId'])));
|
|
986
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
966
987
|
return {
|
|
967
988
|
path: urlPath,
|
|
968
989
|
method: 'PUT',
|
|
969
990
|
headers: headerParameters,
|
|
970
991
|
query: queryParameters,
|
|
971
|
-
body: (0,
|
|
992
|
+
body: (0, PutQuizAnswer_1.PutQuizAnswerToJSON)(requestParameters['putQuizAnswer']),
|
|
972
993
|
};
|
|
973
994
|
});
|
|
974
995
|
}
|
|
@@ -1001,7 +1022,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
1001
1022
|
const queryParameters = {};
|
|
1002
1023
|
const headerParameters = {};
|
|
1003
1024
|
let urlPath = `/quizzes/{quizId}/attempts`;
|
|
1004
|
-
urlPath = urlPath.replace(
|
|
1025
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
1005
1026
|
return {
|
|
1006
1027
|
path: urlPath,
|
|
1007
1028
|
method: 'POST',
|
|
@@ -1017,7 +1038,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
1017
1038
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1018
1039
|
const requestOptions = yield this.startQuizAttemptRequestOpts(requestParameters);
|
|
1019
1040
|
const response = yield this.request(requestOptions, initOverrides);
|
|
1020
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1041
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PostQuizAttempt_1.PostQuizAttemptFromJSON)(jsonValue));
|
|
1021
1042
|
});
|
|
1022
1043
|
}
|
|
1023
1044
|
/**
|
|
@@ -1044,13 +1065,13 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
1044
1065
|
const headerParameters = {};
|
|
1045
1066
|
headerParameters['Content-Type'] = 'application/json';
|
|
1046
1067
|
let urlPath = `/quiz-attempts/{attemptId}/submit`;
|
|
1047
|
-
urlPath = urlPath.replace(
|
|
1068
|
+
urlPath = urlPath.replace('{attemptId}', encodeURIComponent(String(requestParameters['attemptId'])));
|
|
1048
1069
|
return {
|
|
1049
1070
|
path: urlPath,
|
|
1050
1071
|
method: 'POST',
|
|
1051
1072
|
headers: headerParameters,
|
|
1052
1073
|
query: queryParameters,
|
|
1053
|
-
body: (0,
|
|
1074
|
+
body: (0, PostQuizAttemptSubmit_1.PostQuizAttemptSubmitToJSON)(requestParameters['postQuizAttemptSubmit']),
|
|
1054
1075
|
};
|
|
1055
1076
|
});
|
|
1056
1077
|
}
|
|
@@ -1061,7 +1082,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
1061
1082
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1062
1083
|
const requestOptions = yield this.submitQuizAttemptRequestOpts(requestParameters);
|
|
1063
1084
|
const response = yield this.request(requestOptions, initOverrides);
|
|
1064
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1085
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuizResults_1.GetQuizResultsFromJSON)(jsonValue));
|
|
1065
1086
|
});
|
|
1066
1087
|
}
|
|
1067
1088
|
/**
|
|
@@ -1088,13 +1109,13 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
1088
1109
|
const headerParameters = {};
|
|
1089
1110
|
headerParameters['Content-Type'] = 'application/json';
|
|
1090
1111
|
let urlPath = `/quizzes/{quizId}`;
|
|
1091
|
-
urlPath = urlPath.replace(
|
|
1112
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
1092
1113
|
return {
|
|
1093
1114
|
path: urlPath,
|
|
1094
1115
|
method: 'PUT',
|
|
1095
1116
|
headers: headerParameters,
|
|
1096
1117
|
query: queryParameters,
|
|
1097
|
-
body: (0,
|
|
1118
|
+
body: (0, PutQuiz_1.PutQuizToJSON)(requestParameters['putQuiz']),
|
|
1098
1119
|
};
|
|
1099
1120
|
});
|
|
1100
1121
|
}
|
|
@@ -1105,7 +1126,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
1105
1126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1106
1127
|
const requestOptions = yield this.updateQuizRequestOpts(requestParameters);
|
|
1107
1128
|
const response = yield this.request(requestOptions, initOverrides);
|
|
1108
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1129
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuiz_1.GetQuizFromJSON)(jsonValue));
|
|
1109
1130
|
});
|
|
1110
1131
|
}
|
|
1111
1132
|
/**
|
|
@@ -1132,13 +1153,13 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
1132
1153
|
const headerParameters = {};
|
|
1133
1154
|
headerParameters['Content-Type'] = 'application/json';
|
|
1134
1155
|
let urlPath = `/quizzes/{quizId}/questions`;
|
|
1135
|
-
urlPath = urlPath.replace(
|
|
1156
|
+
urlPath = urlPath.replace('{quizId}', encodeURIComponent(String(requestParameters['quizId'])));
|
|
1136
1157
|
return {
|
|
1137
1158
|
path: urlPath,
|
|
1138
1159
|
method: 'PUT',
|
|
1139
1160
|
headers: headerParameters,
|
|
1140
1161
|
query: queryParameters,
|
|
1141
|
-
body: (0,
|
|
1162
|
+
body: (0, PostQuizQuestions_1.PostQuizQuestionsToJSON)(requestParameters['postQuizQuestions']),
|
|
1142
1163
|
};
|
|
1143
1164
|
});
|
|
1144
1165
|
}
|
|
@@ -1149,7 +1170,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
1149
1170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1150
1171
|
const requestOptions = yield this.updateQuizQuestionsRequestOpts(requestParameters);
|
|
1151
1172
|
const response = yield this.request(requestOptions, initOverrides);
|
|
1152
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1173
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuizQuestions_1.GetQuizQuestionsFromJSON)(jsonValue));
|
|
1153
1174
|
});
|
|
1154
1175
|
}
|
|
1155
1176
|
/**
|
|
@@ -10,7 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type GetContentGradeDetail } from '../models/GetContentGradeDetail';
|
|
14
|
+
import { type GetContentGrades } from '../models/GetContentGrades';
|
|
15
|
+
import { type GetContentInstructorBasicReporting } from '../models/GetContentInstructorBasicReporting';
|
|
16
|
+
import { type GetCourseReportingBasic } from '../models/GetCourseReportingBasic';
|
|
17
|
+
import { type GetCourseStudentReporting } from '../models/GetCourseStudentReporting';
|
|
18
|
+
import { type GetModuleInstructorBasicReporting } from '../models/GetModuleInstructorBasicReporting';
|
|
19
|
+
import { type GetModuleStudentReporting } from '../models/GetModuleStudentReporting';
|
|
20
|
+
import { type GetPortalBasicReporting } from '../models/GetPortalBasicReporting';
|
|
21
|
+
import { type GetPortalStudentReporting } from '../models/GetPortalStudentReporting';
|
|
14
22
|
export interface GetContentGradeDetailRequest {
|
|
15
23
|
courseId: string;
|
|
16
24
|
moduleId: string;
|