@easyedu/js-lsm-api 1.138.0 → 1.140.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 +10 -0
- package/README.md +15 -2
- package/dist/apis/ContentLibraryQuizApi.d.ts +86 -0
- package/dist/apis/ContentLibraryQuizApi.js +216 -0
- package/dist/apis/DispatchApi.d.ts +53 -0
- package/dist/apis/DispatchApi.js +135 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +86 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +216 -0
- package/dist/esm/apis/DispatchApi.d.ts +53 -0
- package/dist/esm/apis/DispatchApi.js +135 -0
- package/dist/esm/models/GetAttemptAllowance.d.ts +9 -3
- package/dist/esm/models/GetAttemptAllowance.js +4 -0
- package/dist/esm/models/GetCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/GetLibraryQuizResult.d.ts +30 -0
- package/dist/esm/models/GetLibraryQuizResult.js +20 -0
- package/dist/esm/models/GetLibraryQuizSession.d.ts +43 -0
- package/dist/esm/models/GetLibraryQuizSession.js +27 -0
- package/dist/esm/models/GetLibraryQuizVersion.d.ts +19 -0
- package/dist/esm/models/GetLibraryQuizVersion.js +13 -0
- package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/esm/models/GetQuestionAnswerChoicesInner.js +4 -0
- package/dist/esm/models/GetQuizSettings.d.ts +56 -0
- package/dist/esm/models/GetQuizSettings.js +57 -0
- package/dist/esm/models/HostedScormOutlineEntry.d.ts +2 -2
- package/dist/esm/models/LibraryQuizQuestionFeedback.d.ts +78 -0
- package/dist/esm/models/LibraryQuizQuestionFeedback.js +66 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +2 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +19 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.js +11 -0
- package/dist/esm/models/PostCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/PostLibraryQuiz.d.ts +21 -2
- package/dist/esm/models/PostLibraryQuiz.js +7 -0
- package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/esm/models/PostQuestionAnswerChoicesInner.js +2 -0
- package/dist/esm/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
- package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.js +43 -0
- package/dist/esm/models/PutLibraryQuizVersion.d.ts +19 -0
- package/dist/esm/models/PutLibraryQuizVersion.js +7 -0
- package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/esm/models/PutQuestionAnswerChoicesInner.js +2 -0
- package/dist/esm/models/PutQuizSettings.d.ts +44 -0
- package/dist/esm/models/PutQuizSettings.js +51 -0
- package/dist/esm/models/QuizFeedbackTiming.d.ts +25 -0
- package/dist/esm/models/QuizFeedbackTiming.js +43 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/GetAttemptAllowance.d.ts +9 -3
- package/dist/models/GetAttemptAllowance.js +4 -0
- package/dist/models/GetCourseVersionItem.d.ts +1 -1
- package/dist/models/GetLibraryQuizResult.d.ts +30 -0
- package/dist/models/GetLibraryQuizResult.js +20 -0
- package/dist/models/GetLibraryQuizSession.d.ts +43 -0
- package/dist/models/GetLibraryQuizSession.js +27 -0
- package/dist/models/GetLibraryQuizVersion.d.ts +19 -0
- package/dist/models/GetLibraryQuizVersion.js +13 -0
- package/dist/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/models/GetQuestionAnswerChoicesInner.js +4 -0
- package/dist/models/GetQuizSettings.d.ts +56 -0
- package/dist/models/GetQuizSettings.js +64 -0
- package/dist/models/HostedScormOutlineEntry.d.ts +2 -2
- package/dist/models/LibraryQuizQuestionFeedback.d.ts +78 -0
- package/dist/models/LibraryQuizQuestionFeedback.js +74 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.js +2 -0
- package/dist/models/LibraryQuizSessionQuestion.d.ts +19 -0
- package/dist/models/LibraryQuizSessionQuestion.js +11 -0
- package/dist/models/PostCourseVersionItem.d.ts +1 -1
- package/dist/models/PostLibraryQuiz.d.ts +21 -2
- package/dist/models/PostLibraryQuiz.js +7 -0
- package/dist/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/models/PostQuestionAnswerChoicesInner.js +2 -0
- package/dist/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
- package/dist/models/PutLibraryQuizSessionQuestionFlag.js +50 -0
- package/dist/models/PutLibraryQuizVersion.d.ts +19 -0
- package/dist/models/PutLibraryQuizVersion.js +7 -0
- package/dist/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/models/PutQuestionAnswerChoicesInner.js +2 -0
- package/dist/models/PutQuizSettings.d.ts +44 -0
- package/dist/models/PutQuizSettings.js +58 -0
- package/dist/models/QuizFeedbackTiming.d.ts +25 -0
- package/dist/models/QuizFeedbackTiming.js +51 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/ContentLibraryQuizApi.md +343 -0
- package/docs/DispatchApi.md +214 -0
- package/docs/GetAttemptAllowance.md +2 -0
- package/docs/GetLibraryQuizResult.md +10 -0
- package/docs/GetLibraryQuizSession.md +14 -0
- package/docs/GetLibraryQuizVersion.md +6 -0
- package/docs/GetQuestionAnswerChoicesInner.md +2 -0
- package/docs/GetQuizSettings.md +43 -0
- package/docs/LibraryQuizQuestionFeedback.md +47 -0
- package/docs/LibraryQuizSessionAnswerChoice.md +2 -0
- package/docs/LibraryQuizSessionQuestion.md +6 -0
- package/docs/PostLibraryQuiz.md +6 -0
- package/docs/PostQuestionAnswerChoicesInner.md +2 -0
- package/docs/PutLibraryQuizSessionQuestionFlag.md +34 -0
- package/docs/PutLibraryQuizVersion.md +6 -0
- package/docs/PutQuestionAnswerChoicesInner.md +2 -0
- package/docs/PutQuizSettings.md +38 -0
- package/docs/QuizFeedbackTiming.md +33 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryQuizApi.ts +287 -0
- package/src/apis/DispatchApi.ts +185 -0
- package/src/models/GetAttemptAllowance.ts +12 -3
- package/src/models/GetCourseVersionItem.ts +1 -1
- package/src/models/GetLibraryQuizResult.ts +45 -0
- package/src/models/GetLibraryQuizSession.ts +69 -0
- package/src/models/GetLibraryQuizVersion.ts +34 -0
- package/src/models/GetQuestionAnswerChoicesInner.ts +9 -0
- package/src/models/GetQuizSettings.ts +101 -0
- package/src/models/HostedScormOutlineEntry.ts +2 -2
- package/src/models/LibraryQuizQuestionFeedback.ts +135 -0
- package/src/models/LibraryQuizSessionAnswerChoice.ts +8 -0
- package/src/models/LibraryQuizSessionQuestion.ts +33 -0
- package/src/models/PostCourseVersionItem.ts +1 -1
- package/src/models/PostLibraryQuiz.ts +33 -2
- package/src/models/PostQuestionAnswerChoicesInner.ts +8 -0
- package/src/models/PutCourseVersionItem.ts +1 -1
- package/src/models/PutLibraryQuizSessionQuestionFlag.ts +66 -0
- package/src/models/PutLibraryQuizVersion.ts +31 -0
- package/src/models/PutQuestionAnswerChoicesInner.ts +8 -0
- package/src/models/PutQuizSettings.ts +84 -0
- package/src/models/QuizFeedbackTiming.ts +53 -0
- package/src/models/index.ts +5 -0
|
@@ -21,6 +21,7 @@ import { type PostDispatchLaunch } from '../models/PostDispatchLaunch';
|
|
|
21
21
|
import { type PostDispatchLaunchResponse } from '../models/PostDispatchLaunchResponse';
|
|
22
22
|
import { type PostDispatchTokenExchange } from '../models/PostDispatchTokenExchange';
|
|
23
23
|
import { type PutLibraryQuizSessionAnswer } from '../models/PutLibraryQuizSessionAnswer';
|
|
24
|
+
import { type PutLibraryQuizSessionQuestionFlag } from '../models/PutLibraryQuizSessionQuestionFlag';
|
|
24
25
|
export interface GetDispatchQuizSessionRequest {
|
|
25
26
|
sessionId: string;
|
|
26
27
|
}
|
|
@@ -37,6 +38,13 @@ export interface PostDispatchItemLaunchRequest {
|
|
|
37
38
|
export interface PostDispatchLaunchRequest {
|
|
38
39
|
postDispatchLaunch: PostDispatchLaunch;
|
|
39
40
|
}
|
|
41
|
+
export interface PostDispatchQuizSessionAnswerCheckRequest {
|
|
42
|
+
sessionId: string;
|
|
43
|
+
sessionQuestionId: string;
|
|
44
|
+
}
|
|
45
|
+
export interface PostDispatchQuizSessionStartRequest {
|
|
46
|
+
sessionId: string;
|
|
47
|
+
}
|
|
40
48
|
export interface PostDispatchQuizSessionSubmitRequest {
|
|
41
49
|
sessionId: string;
|
|
42
50
|
}
|
|
@@ -48,6 +56,11 @@ export interface PutDispatchQuizSessionAnswerRequest {
|
|
|
48
56
|
sessionQuestionId: string;
|
|
49
57
|
putLibraryQuizSessionAnswer: PutLibraryQuizSessionAnswer;
|
|
50
58
|
}
|
|
59
|
+
export interface PutDispatchQuizSessionQuestionFlagRequest {
|
|
60
|
+
sessionId: string;
|
|
61
|
+
sessionQuestionId: string;
|
|
62
|
+
putLibraryQuizSessionQuestionFlag: PutLibraryQuizSessionQuestionFlag;
|
|
63
|
+
}
|
|
51
64
|
/**
|
|
52
65
|
*
|
|
53
66
|
*/
|
|
@@ -126,6 +139,34 @@ export declare class DispatchApi extends runtime.BaseAPI {
|
|
|
126
139
|
* Launch a dispatch package
|
|
127
140
|
*/
|
|
128
141
|
postDispatchLaunch(requestParameters: PostDispatchLaunchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostDispatchLaunchResponse>;
|
|
142
|
+
/**
|
|
143
|
+
* Creates request options for postDispatchQuizSessionAnswerCheck without sending the request
|
|
144
|
+
*/
|
|
145
|
+
postDispatchQuizSessionAnswerCheckRequestOpts(requestParameters: PostDispatchQuizSessionAnswerCheckRequest): Promise<runtime.RequestOpts>;
|
|
146
|
+
/**
|
|
147
|
+
* Available when the quiz shows feedback after each question. Locks the saved answer and returns the session with that question\'s feedback.
|
|
148
|
+
* Check a saved answer for immediate feedback
|
|
149
|
+
*/
|
|
150
|
+
postDispatchQuizSessionAnswerCheckRaw(requestParameters: PostDispatchQuizSessionAnswerCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetLibraryQuizSession>>;
|
|
151
|
+
/**
|
|
152
|
+
* Available when the quiz shows feedback after each question. Locks the saved answer and returns the session with that question\'s feedback.
|
|
153
|
+
* Check a saved answer for immediate feedback
|
|
154
|
+
*/
|
|
155
|
+
postDispatchQuizSessionAnswerCheck(requestParameters: PostDispatchQuizSessionAnswerCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLibraryQuizSession>;
|
|
156
|
+
/**
|
|
157
|
+
* Creates request options for postDispatchQuizSessionStart without sending the request
|
|
158
|
+
*/
|
|
159
|
+
postDispatchQuizSessionStartRequestOpts(requestParameters: PostDispatchQuizSessionStartRequest): Promise<runtime.RequestOpts>;
|
|
160
|
+
/**
|
|
161
|
+
* Marks the attempt as started and starts its time limit. Answers cannot be saved before the attempt has started. Calling this again for an attempt that already started returns it unchanged.
|
|
162
|
+
* Begin a quiz attempt from its introduction page
|
|
163
|
+
*/
|
|
164
|
+
postDispatchQuizSessionStartRaw(requestParameters: PostDispatchQuizSessionStartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetLibraryQuizSession>>;
|
|
165
|
+
/**
|
|
166
|
+
* Marks the attempt as started and starts its time limit. Answers cannot be saved before the attempt has started. Calling this again for an attempt that already started returns it unchanged.
|
|
167
|
+
* Begin a quiz attempt from its introduction page
|
|
168
|
+
*/
|
|
169
|
+
postDispatchQuizSessionStart(requestParameters: PostDispatchQuizSessionStartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLibraryQuizSession>;
|
|
129
170
|
/**
|
|
130
171
|
* Creates request options for postDispatchQuizSessionSubmit without sending the request
|
|
131
172
|
*/
|
|
@@ -176,4 +217,16 @@ export declare class DispatchApi extends runtime.BaseAPI {
|
|
|
176
217
|
* Save a registration-owned native quiz answer
|
|
177
218
|
*/
|
|
178
219
|
putDispatchQuizSessionAnswer(requestParameters: PutDispatchQuizSessionAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLibraryQuizSession>;
|
|
220
|
+
/**
|
|
221
|
+
* Creates request options for putDispatchQuizSessionQuestionFlag without sending the request
|
|
222
|
+
*/
|
|
223
|
+
putDispatchQuizSessionQuestionFlagRequestOpts(requestParameters: PutDispatchQuizSessionQuestionFlagRequest): Promise<runtime.RequestOpts>;
|
|
224
|
+
/**
|
|
225
|
+
* Flag or unflag a question to review before submitting
|
|
226
|
+
*/
|
|
227
|
+
putDispatchQuizSessionQuestionFlagRaw(requestParameters: PutDispatchQuizSessionQuestionFlagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetLibraryQuizSession>>;
|
|
228
|
+
/**
|
|
229
|
+
* Flag or unflag a question to review before submitting
|
|
230
|
+
*/
|
|
231
|
+
putDispatchQuizSessionQuestionFlag(requestParameters: PutDispatchQuizSessionQuestionFlagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLibraryQuizSession>;
|
|
179
232
|
}
|
|
@@ -32,6 +32,7 @@ import { PostDispatchLaunchToJSON, } from '../models/PostDispatchLaunch';
|
|
|
32
32
|
import { PostDispatchLaunchResponseFromJSON, } from '../models/PostDispatchLaunchResponse';
|
|
33
33
|
import { PostDispatchTokenExchangeToJSON, } from '../models/PostDispatchTokenExchange';
|
|
34
34
|
import { PutLibraryQuizSessionAnswerToJSON, } from '../models/PutLibraryQuizSessionAnswer';
|
|
35
|
+
import { PutLibraryQuizSessionQuestionFlagToJSON, } from '../models/PutLibraryQuizSessionQuestionFlag';
|
|
35
36
|
/**
|
|
36
37
|
*
|
|
37
38
|
*/
|
|
@@ -271,6 +272,92 @@ export class DispatchApi extends runtime.BaseAPI {
|
|
|
271
272
|
return yield response.value();
|
|
272
273
|
});
|
|
273
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* Creates request options for postDispatchQuizSessionAnswerCheck without sending the request
|
|
277
|
+
*/
|
|
278
|
+
postDispatchQuizSessionAnswerCheckRequestOpts(requestParameters) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
if (requestParameters['sessionId'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling postDispatchQuizSessionAnswerCheck().');
|
|
282
|
+
}
|
|
283
|
+
if (requestParameters['sessionQuestionId'] == null) {
|
|
284
|
+
throw new runtime.RequiredError('sessionQuestionId', 'Required parameter "sessionQuestionId" was null or undefined when calling postDispatchQuizSessionAnswerCheck().');
|
|
285
|
+
}
|
|
286
|
+
const queryParameters = {};
|
|
287
|
+
const headerParameters = {};
|
|
288
|
+
let urlPath = `/dispatch/runtime/quiz-sessions/{sessionId}/answers/{sessionQuestionId}/check`;
|
|
289
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
290
|
+
urlPath = urlPath.replace('{sessionQuestionId}', encodeURIComponent(String(requestParameters['sessionQuestionId'])));
|
|
291
|
+
return {
|
|
292
|
+
path: urlPath,
|
|
293
|
+
method: 'POST',
|
|
294
|
+
headers: headerParameters,
|
|
295
|
+
query: queryParameters,
|
|
296
|
+
};
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Available when the quiz shows feedback after each question. Locks the saved answer and returns the session with that question\'s feedback.
|
|
301
|
+
* Check a saved answer for immediate feedback
|
|
302
|
+
*/
|
|
303
|
+
postDispatchQuizSessionAnswerCheckRaw(requestParameters, initOverrides) {
|
|
304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
305
|
+
const requestOptions = yield this.postDispatchQuizSessionAnswerCheckRequestOpts(requestParameters);
|
|
306
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
307
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetLibraryQuizSessionFromJSON(jsonValue));
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Available when the quiz shows feedback after each question. Locks the saved answer and returns the session with that question\'s feedback.
|
|
312
|
+
* Check a saved answer for immediate feedback
|
|
313
|
+
*/
|
|
314
|
+
postDispatchQuizSessionAnswerCheck(requestParameters, initOverrides) {
|
|
315
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
316
|
+
const response = yield this.postDispatchQuizSessionAnswerCheckRaw(requestParameters, initOverrides);
|
|
317
|
+
return yield response.value();
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Creates request options for postDispatchQuizSessionStart without sending the request
|
|
322
|
+
*/
|
|
323
|
+
postDispatchQuizSessionStartRequestOpts(requestParameters) {
|
|
324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
+
if (requestParameters['sessionId'] == null) {
|
|
326
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling postDispatchQuizSessionStart().');
|
|
327
|
+
}
|
|
328
|
+
const queryParameters = {};
|
|
329
|
+
const headerParameters = {};
|
|
330
|
+
let urlPath = `/dispatch/runtime/quiz-sessions/{sessionId}/start`;
|
|
331
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
332
|
+
return {
|
|
333
|
+
path: urlPath,
|
|
334
|
+
method: 'POST',
|
|
335
|
+
headers: headerParameters,
|
|
336
|
+
query: queryParameters,
|
|
337
|
+
};
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Marks the attempt as started and starts its time limit. Answers cannot be saved before the attempt has started. Calling this again for an attempt that already started returns it unchanged.
|
|
342
|
+
* Begin a quiz attempt from its introduction page
|
|
343
|
+
*/
|
|
344
|
+
postDispatchQuizSessionStartRaw(requestParameters, initOverrides) {
|
|
345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
346
|
+
const requestOptions = yield this.postDispatchQuizSessionStartRequestOpts(requestParameters);
|
|
347
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
348
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetLibraryQuizSessionFromJSON(jsonValue));
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Marks the attempt as started and starts its time limit. Answers cannot be saved before the attempt has started. Calling this again for an attempt that already started returns it unchanged.
|
|
353
|
+
* Begin a quiz attempt from its introduction page
|
|
354
|
+
*/
|
|
355
|
+
postDispatchQuizSessionStart(requestParameters, initOverrides) {
|
|
356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
+
const response = yield this.postDispatchQuizSessionStartRaw(requestParameters, initOverrides);
|
|
358
|
+
return yield response.value();
|
|
359
|
+
});
|
|
360
|
+
}
|
|
274
361
|
/**
|
|
275
362
|
* Creates request options for postDispatchQuizSessionSubmit without sending the request
|
|
276
363
|
*/
|
|
@@ -435,4 +522,52 @@ export class DispatchApi extends runtime.BaseAPI {
|
|
|
435
522
|
return yield response.value();
|
|
436
523
|
});
|
|
437
524
|
}
|
|
525
|
+
/**
|
|
526
|
+
* Creates request options for putDispatchQuizSessionQuestionFlag without sending the request
|
|
527
|
+
*/
|
|
528
|
+
putDispatchQuizSessionQuestionFlagRequestOpts(requestParameters) {
|
|
529
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
530
|
+
if (requestParameters['sessionId'] == null) {
|
|
531
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling putDispatchQuizSessionQuestionFlag().');
|
|
532
|
+
}
|
|
533
|
+
if (requestParameters['sessionQuestionId'] == null) {
|
|
534
|
+
throw new runtime.RequiredError('sessionQuestionId', 'Required parameter "sessionQuestionId" was null or undefined when calling putDispatchQuizSessionQuestionFlag().');
|
|
535
|
+
}
|
|
536
|
+
if (requestParameters['putLibraryQuizSessionQuestionFlag'] == null) {
|
|
537
|
+
throw new runtime.RequiredError('putLibraryQuizSessionQuestionFlag', 'Required parameter "putLibraryQuizSessionQuestionFlag" was null or undefined when calling putDispatchQuizSessionQuestionFlag().');
|
|
538
|
+
}
|
|
539
|
+
const queryParameters = {};
|
|
540
|
+
const headerParameters = {};
|
|
541
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
542
|
+
let urlPath = `/dispatch/runtime/quiz-sessions/{sessionId}/questions/{sessionQuestionId}/flag`;
|
|
543
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
544
|
+
urlPath = urlPath.replace('{sessionQuestionId}', encodeURIComponent(String(requestParameters['sessionQuestionId'])));
|
|
545
|
+
return {
|
|
546
|
+
path: urlPath,
|
|
547
|
+
method: 'PUT',
|
|
548
|
+
headers: headerParameters,
|
|
549
|
+
query: queryParameters,
|
|
550
|
+
body: PutLibraryQuizSessionQuestionFlagToJSON(requestParameters['putLibraryQuizSessionQuestionFlag']),
|
|
551
|
+
};
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Flag or unflag a question to review before submitting
|
|
556
|
+
*/
|
|
557
|
+
putDispatchQuizSessionQuestionFlagRaw(requestParameters, initOverrides) {
|
|
558
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
559
|
+
const requestOptions = yield this.putDispatchQuizSessionQuestionFlagRequestOpts(requestParameters);
|
|
560
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
561
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetLibraryQuizSessionFromJSON(jsonValue));
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Flag or unflag a question to review before submitting
|
|
566
|
+
*/
|
|
567
|
+
putDispatchQuizSessionQuestionFlag(requestParameters, initOverrides) {
|
|
568
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
569
|
+
const response = yield this.putDispatchQuizSessionQuestionFlagRaw(requestParameters, initOverrides);
|
|
570
|
+
return yield response.value();
|
|
571
|
+
});
|
|
572
|
+
}
|
|
438
573
|
}
|
|
@@ -40,7 +40,7 @@ export interface GetAttemptAllowance {
|
|
|
40
40
|
*/
|
|
41
41
|
userId: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* The placement's attempt limit. Zero means unlimited.
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof GetAttemptAllowance
|
|
46
46
|
*/
|
|
@@ -52,7 +52,7 @@ export interface GetAttemptAllowance {
|
|
|
52
52
|
*/
|
|
53
53
|
additionalAttempts: number;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* The limit including extra attempts. Zero means unlimited.
|
|
56
56
|
* @type {number}
|
|
57
57
|
* @memberof GetAttemptAllowance
|
|
58
58
|
*/
|
|
@@ -64,11 +64,17 @@ export interface GetAttemptAllowance {
|
|
|
64
64
|
*/
|
|
65
65
|
attemptsUsed: number;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Zero when attempts are unlimited; check `unlimited` first.
|
|
68
68
|
* @type {number}
|
|
69
69
|
* @memberof GetAttemptAllowance
|
|
70
70
|
*/
|
|
71
71
|
attemptsRemaining: number;
|
|
72
|
+
/**
|
|
73
|
+
* The placement allows unlimited attempts.
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof GetAttemptAllowance
|
|
76
|
+
*/
|
|
77
|
+
unlimited: boolean;
|
|
72
78
|
}
|
|
73
79
|
/**
|
|
74
80
|
* Check if a given object implements the GetAttemptAllowance interface.
|
|
@@ -33,6 +33,8 @@ export function instanceOfGetAttemptAllowance(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('attemptsRemaining' in value) || value['attemptsRemaining'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('unlimited' in value) || value['unlimited'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
return true;
|
|
37
39
|
}
|
|
38
40
|
export function GetAttemptAllowanceFromJSON(json) {
|
|
@@ -52,6 +54,7 @@ export function GetAttemptAllowanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'effectiveMaxAttempts': json['effective_max_attempts'],
|
|
53
55
|
'attemptsUsed': json['attempts_used'],
|
|
54
56
|
'attemptsRemaining': json['attempts_remaining'],
|
|
57
|
+
'unlimited': json['unlimited'],
|
|
55
58
|
};
|
|
56
59
|
}
|
|
57
60
|
export function GetAttemptAllowanceToJSON(json) {
|
|
@@ -71,5 +74,6 @@ export function GetAttemptAllowanceToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
71
74
|
'effective_max_attempts': value['effectiveMaxAttempts'],
|
|
72
75
|
'attempts_used': value['attemptsUsed'],
|
|
73
76
|
'attempts_remaining': value['attemptsRemaining'],
|
|
77
|
+
'unlimited': value['unlimited'],
|
|
74
78
|
};
|
|
75
79
|
}
|
|
@@ -75,8 +75,38 @@ export interface GetLibraryQuizResult {
|
|
|
75
75
|
* @memberof GetLibraryQuizResult
|
|
76
76
|
*/
|
|
77
77
|
pendingManualGrading: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* The attempt was submitted automatically when its time limit ran out.
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof GetLibraryQuizResult
|
|
82
|
+
*/
|
|
83
|
+
timedOut: boolean;
|
|
78
84
|
/**
|
|
79
85
|
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof GetLibraryQuizResult
|
|
88
|
+
*/
|
|
89
|
+
passingScore: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof GetLibraryQuizResult
|
|
94
|
+
*/
|
|
95
|
+
attemptNumber: number;
|
|
96
|
+
/**
|
|
97
|
+
* Attempts this learner may take, including any extra attempts granted to them. Zero means unlimited.
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof GetLibraryQuizResult
|
|
100
|
+
*/
|
|
101
|
+
maxAttempts: number;
|
|
102
|
+
/**
|
|
103
|
+
* The learner has at least one attempt left.
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof GetLibraryQuizResult
|
|
106
|
+
*/
|
|
107
|
+
canRetake: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Per-question review, present when the quiz allows review. Each entry has the learner's answer and whether it was correct. `correct_choice_ids`, `correct_answer`, and `answer_choices` are added when the quiz shows correct answers; `explanation` and `explanation_rich` are added when the quiz shows explanations.
|
|
80
110
|
* @type {Array<{ [key: string]: any; }>}
|
|
81
111
|
* @memberof GetLibraryQuizResult
|
|
82
112
|
*/
|
|
@@ -31,6 +31,16 @@ export function instanceOfGetLibraryQuizResult(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('pendingManualGrading' in value) || value['pendingManualGrading'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
+
if (!('timedOut' in value) || value['timedOut'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('passingScore' in value) || value['passingScore'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('canRetake' in value) || value['canRetake'] === undefined)
|
|
43
|
+
return false;
|
|
34
44
|
if (!('questions' in value) || value['questions'] === undefined)
|
|
35
45
|
return false;
|
|
36
46
|
return true;
|
|
@@ -53,6 +63,11 @@ export function GetLibraryQuizResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
63
|
'scorePercentage': json['score_percentage'] == null ? undefined : json['score_percentage'],
|
|
54
64
|
'passed': json['passed'] == null ? undefined : json['passed'],
|
|
55
65
|
'pendingManualGrading': json['pending_manual_grading'],
|
|
66
|
+
'timedOut': json['timed_out'],
|
|
67
|
+
'passingScore': json['passing_score'],
|
|
68
|
+
'attemptNumber': json['attempt_number'],
|
|
69
|
+
'maxAttempts': json['max_attempts'],
|
|
70
|
+
'canRetake': json['can_retake'],
|
|
56
71
|
'questions': json['questions'],
|
|
57
72
|
};
|
|
58
73
|
}
|
|
@@ -74,6 +89,11 @@ export function GetLibraryQuizResultToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
74
89
|
'score_percentage': value['scorePercentage'],
|
|
75
90
|
'passed': value['passed'],
|
|
76
91
|
'pending_manual_grading': value['pendingManualGrading'],
|
|
92
|
+
'timed_out': value['timedOut'],
|
|
93
|
+
'passing_score': value['passingScore'],
|
|
94
|
+
'attempt_number': value['attemptNumber'],
|
|
95
|
+
'max_attempts': value['maxAttempts'],
|
|
96
|
+
'can_retake': value['canRetake'],
|
|
77
97
|
'questions': value['questions'],
|
|
78
98
|
};
|
|
79
99
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ResourceSessionEnvironment } from './ResourceSessionEnvironment';
|
|
13
13
|
import type { LibraryQuizSessionQuestion } from './LibraryQuizSessionQuestion';
|
|
14
|
+
import type { QuizFeedbackTiming } from './QuizFeedbackTiming';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -77,6 +78,48 @@ export interface GetLibraryQuizSession {
|
|
|
77
78
|
* @memberof GetLibraryQuizSession
|
|
78
79
|
*/
|
|
79
80
|
quizName: string;
|
|
81
|
+
/**
|
|
82
|
+
* The quiz description, shown as instructions on the introduction page.
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof GetLibraryQuizSession
|
|
85
|
+
*/
|
|
86
|
+
description: string;
|
|
87
|
+
/**
|
|
88
|
+
* False until the learner leaves the introduction page. The time limit starts counting when the attempt starts.
|
|
89
|
+
* @type {boolean}
|
|
90
|
+
* @memberof GetLibraryQuizSession
|
|
91
|
+
*/
|
|
92
|
+
hasStarted: boolean;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @memberof GetLibraryQuizSession
|
|
97
|
+
*/
|
|
98
|
+
passingScore: number;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {number}
|
|
102
|
+
* @memberof GetLibraryQuizSession
|
|
103
|
+
*/
|
|
104
|
+
timeLimitMinutes?: number | null;
|
|
105
|
+
/**
|
|
106
|
+
* Attempts this learner may take, including any extra attempts granted to them. Zero means unlimited.
|
|
107
|
+
* @type {number}
|
|
108
|
+
* @memberof GetLibraryQuizSession
|
|
109
|
+
*/
|
|
110
|
+
maxAttempts: number;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {QuizFeedbackTiming}
|
|
114
|
+
* @memberof GetLibraryQuizSession
|
|
115
|
+
*/
|
|
116
|
+
feedbackTiming: QuizFeedbackTiming;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {boolean}
|
|
120
|
+
* @memberof GetLibraryQuizSession
|
|
121
|
+
*/
|
|
122
|
+
requireAllQuestions: boolean;
|
|
80
123
|
/**
|
|
81
124
|
*
|
|
82
125
|
* @type {number}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { ResourceSessionEnvironmentFromJSON, ResourceSessionEnvironmentToJSON, } from './ResourceSessionEnvironment';
|
|
15
15
|
import { LibraryQuizSessionQuestionFromJSON, LibraryQuizSessionQuestionToJSON, } from './LibraryQuizSessionQuestion';
|
|
16
|
+
import { QuizFeedbackTimingFromJSON, QuizFeedbackTimingToJSON, } from './QuizFeedbackTiming';
|
|
16
17
|
/**
|
|
17
18
|
* @export
|
|
18
19
|
*/
|
|
@@ -41,6 +42,18 @@ export function instanceOfGetLibraryQuizSession(value) {
|
|
|
41
42
|
return false;
|
|
42
43
|
if (!('quizName' in value) || value['quizName'] === undefined)
|
|
43
44
|
return false;
|
|
45
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('hasStarted' in value) || value['hasStarted'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('passingScore' in value) || value['passingScore'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('feedbackTiming' in value) || value['feedbackTiming'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('requireAllQuestions' in value) || value['requireAllQuestions'] === undefined)
|
|
56
|
+
return false;
|
|
44
57
|
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
45
58
|
return false;
|
|
46
59
|
if (!('isCurrent' in value) || value['isCurrent'] === undefined)
|
|
@@ -81,6 +94,13 @@ export function GetLibraryQuizSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
94
|
'quizVersionId': json['quiz_version_id'],
|
|
82
95
|
'quizVersionNumber': json['quiz_version_number'],
|
|
83
96
|
'quizName': json['quiz_name'],
|
|
97
|
+
'description': json['description'],
|
|
98
|
+
'hasStarted': json['has_started'],
|
|
99
|
+
'passingScore': json['passing_score'],
|
|
100
|
+
'timeLimitMinutes': json['time_limit_minutes'] == null ? undefined : json['time_limit_minutes'],
|
|
101
|
+
'maxAttempts': json['max_attempts'],
|
|
102
|
+
'feedbackTiming': QuizFeedbackTimingFromJSON(json['feedback_timing']),
|
|
103
|
+
'requireAllQuestions': json['require_all_questions'],
|
|
84
104
|
'attemptNumber': json['attempt_number'],
|
|
85
105
|
'isCurrent': json['is_current'],
|
|
86
106
|
'status': json['status'],
|
|
@@ -115,6 +135,13 @@ export function GetLibraryQuizSessionToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
115
135
|
'quiz_version_id': value['quizVersionId'],
|
|
116
136
|
'quiz_version_number': value['quizVersionNumber'],
|
|
117
137
|
'quiz_name': value['quizName'],
|
|
138
|
+
'description': value['description'],
|
|
139
|
+
'has_started': value['hasStarted'],
|
|
140
|
+
'passing_score': value['passingScore'],
|
|
141
|
+
'time_limit_minutes': value['timeLimitMinutes'],
|
|
142
|
+
'max_attempts': value['maxAttempts'],
|
|
143
|
+
'feedback_timing': QuizFeedbackTimingToJSON(value['feedbackTiming']),
|
|
144
|
+
'require_all_questions': value['requireAllQuestions'],
|
|
118
145
|
'attempt_number': value['attemptNumber'],
|
|
119
146
|
'is_current': value['isCurrent'],
|
|
120
147
|
'status': value['status'],
|
|
@@ -13,6 +13,7 @@ import type { LibraryQuizCriterion } from './LibraryQuizCriterion';
|
|
|
13
13
|
import type { ContentLibraryVersionStatus } from './ContentLibraryVersionStatus';
|
|
14
14
|
import type { QuestionSelectionMethod } from './QuestionSelectionMethod';
|
|
15
15
|
import type { LibraryQuizQuestion } from './LibraryQuizQuestion';
|
|
16
|
+
import type { QuizFeedbackTiming } from './QuizFeedbackTiming';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
18
19
|
* @export
|
|
@@ -103,6 +104,24 @@ export interface GetLibraryQuizVersion {
|
|
|
103
104
|
* @memberof GetLibraryQuizVersion
|
|
104
105
|
*/
|
|
105
106
|
requireAllQuestions: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Default number of attempts for this quiz. Zero means unlimited. The value is copied to a course placement when the quiz is added to a course, where it can be overridden.
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @memberof GetLibraryQuizVersion
|
|
111
|
+
*/
|
|
112
|
+
maxAttempts: number;
|
|
113
|
+
/**
|
|
114
|
+
* Show each question's explanation alongside the learner's feedback.
|
|
115
|
+
* @type {boolean}
|
|
116
|
+
* @memberof GetLibraryQuizVersion
|
|
117
|
+
*/
|
|
118
|
+
showExplanations: boolean;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {QuizFeedbackTiming}
|
|
122
|
+
* @memberof GetLibraryQuizVersion
|
|
123
|
+
*/
|
|
124
|
+
feedbackTiming: QuizFeedbackTiming;
|
|
106
125
|
/**
|
|
107
126
|
*
|
|
108
127
|
* @type {{ [key: string]: any; }}
|
|
@@ -15,6 +15,7 @@ import { LibraryQuizCriterionFromJSON, LibraryQuizCriterionToJSON, } from './Lib
|
|
|
15
15
|
import { ContentLibraryVersionStatusFromJSON, ContentLibraryVersionStatusToJSON, } from './ContentLibraryVersionStatus';
|
|
16
16
|
import { QuestionSelectionMethodFromJSON, QuestionSelectionMethodToJSON, } from './QuestionSelectionMethod';
|
|
17
17
|
import { LibraryQuizQuestionFromJSON, LibraryQuizQuestionToJSON, } from './LibraryQuizQuestion';
|
|
18
|
+
import { QuizFeedbackTimingFromJSON, QuizFeedbackTimingToJSON, } from './QuizFeedbackTiming';
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the GetLibraryQuizVersion interface.
|
|
20
21
|
*/
|
|
@@ -41,6 +42,12 @@ export function instanceOfGetLibraryQuizVersion(value) {
|
|
|
41
42
|
return false;
|
|
42
43
|
if (!('requireAllQuestions' in value) || value['requireAllQuestions'] === undefined)
|
|
43
44
|
return false;
|
|
45
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('showExplanations' in value) || value['showExplanations'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('feedbackTiming' in value) || value['feedbackTiming'] === undefined)
|
|
50
|
+
return false;
|
|
44
51
|
if (!('settings' in value) || value['settings'] === undefined)
|
|
45
52
|
return false;
|
|
46
53
|
if (!('questions' in value) || value['questions'] === undefined)
|
|
@@ -79,6 +86,9 @@ export function GetLibraryQuizVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
86
|
'showCorrectAnswers': json['show_correct_answers'],
|
|
80
87
|
'allowReview': json['allow_review'],
|
|
81
88
|
'requireAllQuestions': json['require_all_questions'],
|
|
89
|
+
'maxAttempts': json['max_attempts'],
|
|
90
|
+
'showExplanations': json['show_explanations'],
|
|
91
|
+
'feedbackTiming': QuizFeedbackTimingFromJSON(json['feedback_timing']),
|
|
82
92
|
'settings': json['settings'],
|
|
83
93
|
'questions': (json['questions'].map(LibraryQuizQuestionFromJSON)),
|
|
84
94
|
'criteria': (json['criteria'].map(LibraryQuizCriterionFromJSON)),
|
|
@@ -112,6 +122,9 @@ export function GetLibraryQuizVersionToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
112
122
|
'show_correct_answers': value['showCorrectAnswers'],
|
|
113
123
|
'allow_review': value['allowReview'],
|
|
114
124
|
'require_all_questions': value['requireAllQuestions'],
|
|
125
|
+
'max_attempts': value['maxAttempts'],
|
|
126
|
+
'show_explanations': value['showExplanations'],
|
|
127
|
+
'feedback_timing': QuizFeedbackTimingToJSON(value['feedbackTiming']),
|
|
115
128
|
'settings': value['settings'],
|
|
116
129
|
'questions': (value['questions'].map(LibraryQuizQuestionToJSON)),
|
|
117
130
|
'criteria': (value['criteria'].map(LibraryQuizCriterionToJSON)),
|
|
@@ -34,6 +34,12 @@ export interface GetQuestionAnswerChoicesInner {
|
|
|
34
34
|
* @memberof GetQuestionAnswerChoicesInner
|
|
35
35
|
*/
|
|
36
36
|
isCorrect: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Keep this answer in its authored position when a quiz randomizes answers.
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof GetQuestionAnswerChoicesInner
|
|
41
|
+
*/
|
|
42
|
+
lockPosition: boolean;
|
|
37
43
|
}
|
|
38
44
|
/**
|
|
39
45
|
* Check if a given object implements the GetQuestionAnswerChoicesInner interface.
|
|
@@ -22,6 +22,8 @@ export function instanceOfGetQuestionAnswerChoicesInner(value) {
|
|
|
22
22
|
return false;
|
|
23
23
|
if (!('isCorrect' in value) || value['isCorrect'] === undefined)
|
|
24
24
|
return false;
|
|
25
|
+
if (!('lockPosition' in value) || value['lockPosition'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
return true;
|
|
26
28
|
}
|
|
27
29
|
export function GetQuestionAnswerChoicesInnerFromJSON(json) {
|
|
@@ -35,6 +37,7 @@ export function GetQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscrimin
|
|
|
35
37
|
'id': json['id'],
|
|
36
38
|
'text': RichTextDocumentFromJSON(json['text']),
|
|
37
39
|
'isCorrect': json['is_correct'],
|
|
40
|
+
'lockPosition': json['lock_position'],
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
export function GetQuestionAnswerChoicesInnerToJSON(json) {
|
|
@@ -48,5 +51,6 @@ export function GetQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscrimina
|
|
|
48
51
|
'id': value['id'],
|
|
49
52
|
'text': RichTextDocumentToJSON(value['text']),
|
|
50
53
|
'is_correct': value['isCorrect'],
|
|
54
|
+
'lock_position': value['lockPosition'],
|
|
51
55
|
};
|
|
52
56
|
}
|