@easyedu/js-lsm-api 1.81.0 → 1.83.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 +8 -0
- package/README.md +7 -2
- package/dist/apis/QuizApi.d.ts +3 -2
- package/dist/apis/QuizApi.js +4 -2
- package/dist/apis/RichTextApi.d.ts +16 -0
- package/dist/apis/RichTextApi.js +43 -0
- package/dist/esm/apis/QuizApi.d.ts +3 -2
- package/dist/esm/apis/QuizApi.js +4 -2
- package/dist/esm/apis/RichTextApi.d.ts +16 -0
- package/dist/esm/apis/RichTextApi.js +43 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +7 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInner.js +3 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +13 -0
- package/dist/esm/models/GetQuizResultsQuestionsInner.js +5 -0
- package/dist/esm/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/esm/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +7 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInner.js +3 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/esm/models/PutQuizAnswerResponse.d.ts +77 -0
- package/dist/esm/models/PutQuizAnswerResponse.js +64 -0
- package/dist/esm/models/PutQuizAnswerResponseNextQuestion.d.ts +102 -0
- package/dist/esm/models/PutQuizAnswerResponseNextQuestion.js +88 -0
- package/dist/esm/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.d.ts +51 -0
- package/dist/esm/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.js +54 -0
- package/dist/esm/models/PutQuizAnswerResponseProgress.d.ts +50 -0
- package/dist/esm/models/PutQuizAnswerResponseProgress.js +55 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/GetQuizAttemptQuestionsInner.d.ts +7 -0
- package/dist/models/GetQuizAttemptQuestionsInner.js +3 -0
- package/dist/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/models/GetQuizResultsQuestionsInner.d.ts +13 -0
- package/dist/models/GetQuizResultsQuestionsInner.js +5 -0
- package/dist/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/models/PostQuizAttemptQuestionsInner.d.ts +7 -0
- package/dist/models/PostQuizAttemptQuestionsInner.js +3 -0
- package/dist/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/models/PutQuizAnswerResponse.d.ts +77 -0
- package/dist/models/PutQuizAnswerResponse.js +71 -0
- package/dist/models/PutQuizAnswerResponseNextQuestion.d.ts +102 -0
- package/dist/models/PutQuizAnswerResponseNextQuestion.js +96 -0
- package/dist/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.d.ts +51 -0
- package/dist/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.js +61 -0
- package/dist/models/PutQuizAnswerResponseProgress.d.ts +50 -0
- package/dist/models/PutQuizAnswerResponseProgress.js +62 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/GetQuizAttemptQuestionsInner.md +2 -0
- package/docs/GetQuizAttemptQuestionsInnerAnswerChoicesInner.md +2 -0
- package/docs/GetQuizResultsQuestionsInner.md +4 -0
- package/docs/GetQuizResultsQuestionsInnerAnswerChoicesInner.md +2 -0
- package/docs/PostQuizAttemptQuestionsInner.md +2 -0
- package/docs/PostQuizAttemptQuestionsInnerAnswerChoicesInner.md +2 -0
- package/docs/PutQuizAnswerResponse.md +48 -0
- package/docs/PutQuizAnswerResponseNextQuestion.md +52 -0
- package/docs/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.md +40 -0
- package/docs/PutQuizAnswerResponseProgress.md +40 -0
- package/docs/QuizApi.md +3 -3
- package/docs/RichTextApi.md +73 -0
- package/package.json +1 -1
- package/src/apis/QuizApi.ts +10 -4
- package/src/apis/RichTextApi.ts +59 -0
- package/src/models/GetQuizAttemptQuestionsInner.ts +15 -0
- package/src/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.ts +16 -0
- package/src/models/GetQuizResultsQuestionsInner.ts +23 -0
- package/src/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.ts +16 -0
- package/src/models/PostQuizAttemptQuestionsInner.ts +15 -0
- package/src/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.ts +16 -0
- package/src/models/PutQuizAnswerResponse.ts +146 -0
- package/src/models/PutQuizAnswerResponseNextQuestion.ts +175 -0
- package/src/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.ts +100 -0
- package/src/models/PutQuizAnswerResponseProgress.ts +93 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -281,6 +281,10 @@ docs/PutQuiz.md
|
|
|
281
281
|
docs/PutQuizAnswer.md
|
|
282
282
|
docs/PutQuizAnswerAnswer.md
|
|
283
283
|
docs/PutQuizAnswerGrade.md
|
|
284
|
+
docs/PutQuizAnswerResponse.md
|
|
285
|
+
docs/PutQuizAnswerResponseNextQuestion.md
|
|
286
|
+
docs/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.md
|
|
287
|
+
docs/PutQuizAnswerResponseProgress.md
|
|
284
288
|
docs/PutQuizSettings.md
|
|
285
289
|
docs/PutRole.md
|
|
286
290
|
docs/PutRolePermissions.md
|
|
@@ -607,6 +611,10 @@ src/models/PutQuiz.ts
|
|
|
607
611
|
src/models/PutQuizAnswer.ts
|
|
608
612
|
src/models/PutQuizAnswerAnswer.ts
|
|
609
613
|
src/models/PutQuizAnswerGrade.ts
|
|
614
|
+
src/models/PutQuizAnswerResponse.ts
|
|
615
|
+
src/models/PutQuizAnswerResponseNextQuestion.ts
|
|
616
|
+
src/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.ts
|
|
617
|
+
src/models/PutQuizAnswerResponseProgress.ts
|
|
610
618
|
src/models/PutQuizSettings.ts
|
|
611
619
|
src/models/PutRole.ts
|
|
612
620
|
src/models/PutRolePermissions.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.83.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -220,6 +220,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
220
220
|
*RichTextApi* | [**getRichTextAsset**](docs/RichTextApi.md#getrichtextasset) | **GET** /rich-text/assets/{assetId} | Redirect to a signed rich text asset URL
|
|
221
221
|
*RichTextApi* | [**postRichTextAssetComplete**](docs/RichTextApi.md#postrichtextassetcomplete) | **POST** /rich-text/assets/{assetId}/complete | Complete a pending rich text asset upload
|
|
222
222
|
*RichTextApi* | [**postRichTextAssetUpload**](docs/RichTextApi.md#postrichtextassetupload) | **POST** /rich-text/assets/uploads | Create a pending rich text asset upload
|
|
223
|
+
*RichTextApi* | [**putRichTextAssetFile**](docs/RichTextApi.md#putrichtextassetfile) | **PUT** /rich-text/assets/{assetId}/file | Upload a pending rich text asset file through the API
|
|
223
224
|
*RoleApi* | [**assignUserRole**](docs/RoleApi.md#assignuserrole) | **POST** /roles/users/{userId}/portals/{portalId}/roles/{roleId} | Assign a role to a user for a portal
|
|
224
225
|
*RoleApi* | [**createRole**](docs/RoleApi.md#createrole) | **POST** /roles | Create a custom role scoped to the current portal
|
|
225
226
|
*RoleApi* | [**deleteRole**](docs/RoleApi.md#deleterole) | **DELETE** /roles/{roleId} | Deactivate a custom role
|
|
@@ -529,6 +530,10 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
529
530
|
- [PutQuizAnswer](docs/PutQuizAnswer.md)
|
|
530
531
|
- [PutQuizAnswerAnswer](docs/PutQuizAnswerAnswer.md)
|
|
531
532
|
- [PutQuizAnswerGrade](docs/PutQuizAnswerGrade.md)
|
|
533
|
+
- [PutQuizAnswerResponse](docs/PutQuizAnswerResponse.md)
|
|
534
|
+
- [PutQuizAnswerResponseNextQuestion](docs/PutQuizAnswerResponseNextQuestion.md)
|
|
535
|
+
- [PutQuizAnswerResponseNextQuestionAnswerChoicesInner](docs/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.md)
|
|
536
|
+
- [PutQuizAnswerResponseProgress](docs/PutQuizAnswerResponseProgress.md)
|
|
532
537
|
- [PutQuizSettings](docs/PutQuizSettings.md)
|
|
533
538
|
- [PutRole](docs/PutRole.md)
|
|
534
539
|
- [PutRolePermissions](docs/PutRolePermissions.md)
|
|
@@ -570,7 +575,7 @@ and is automatically generated by the
|
|
|
570
575
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
571
576
|
|
|
572
577
|
- API version: `1.0.0`
|
|
573
|
-
- Package version: `1.
|
|
578
|
+
- Package version: `1.83.0`
|
|
574
579
|
- Generator version: `7.22.0`
|
|
575
580
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
576
581
|
|
package/dist/apis/QuizApi.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ import { type PostQuizQuestions } from '../models/PostQuizQuestions';
|
|
|
32
32
|
import { type PutQuiz } from '../models/PutQuiz';
|
|
33
33
|
import { type PutQuizAnswer } from '../models/PutQuizAnswer';
|
|
34
34
|
import { type PutQuizAnswerGrade } from '../models/PutQuizAnswerGrade';
|
|
35
|
+
import { type PutQuizAnswerResponse } from '../models/PutQuizAnswerResponse';
|
|
35
36
|
export interface AddQuizCriteriaQuestionSelectionRequest {
|
|
36
37
|
quizId: string;
|
|
37
38
|
postQuizCriteria: PostQuizCriteria;
|
|
@@ -408,11 +409,11 @@ export declare class QuizApi extends runtime.BaseAPI {
|
|
|
408
409
|
/**
|
|
409
410
|
* Save answer for a specific question
|
|
410
411
|
*/
|
|
411
|
-
saveQuizAnswerRaw(requestParameters: SaveQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
412
|
+
saveQuizAnswerRaw(requestParameters: SaveQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PutQuizAnswerResponse>>;
|
|
412
413
|
/**
|
|
413
414
|
* Save answer for a specific question
|
|
414
415
|
*/
|
|
415
|
-
saveQuizAnswer(requestParameters: SaveQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
416
|
+
saveQuizAnswer(requestParameters: SaveQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PutQuizAnswerResponse>;
|
|
416
417
|
/**
|
|
417
418
|
* Creates request options for startQuizAttempt without sending the request
|
|
418
419
|
*/
|
package/dist/apis/QuizApi.js
CHANGED
|
@@ -46,6 +46,7 @@ const PostQuizQuestions_1 = require("../models/PostQuizQuestions");
|
|
|
46
46
|
const PutQuiz_1 = require("../models/PutQuiz");
|
|
47
47
|
const PutQuizAnswer_1 = require("../models/PutQuizAnswer");
|
|
48
48
|
const PutQuizAnswerGrade_1 = require("../models/PutQuizAnswerGrade");
|
|
49
|
+
const PutQuizAnswerResponse_1 = require("../models/PutQuizAnswerResponse");
|
|
49
50
|
/**
|
|
50
51
|
*
|
|
51
52
|
*/
|
|
@@ -1000,7 +1001,7 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
1000
1001
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1001
1002
|
const requestOptions = yield this.saveQuizAnswerRequestOpts(requestParameters);
|
|
1002
1003
|
const response = yield this.request(requestOptions, initOverrides);
|
|
1003
|
-
return new runtime.
|
|
1004
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PutQuizAnswerResponse_1.PutQuizAnswerResponseFromJSON)(jsonValue));
|
|
1004
1005
|
});
|
|
1005
1006
|
}
|
|
1006
1007
|
/**
|
|
@@ -1008,7 +1009,8 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
1008
1009
|
*/
|
|
1009
1010
|
saveQuizAnswer(requestParameters, initOverrides) {
|
|
1010
1011
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1011
|
-
yield this.saveQuizAnswerRaw(requestParameters, initOverrides);
|
|
1012
|
+
const response = yield this.saveQuizAnswerRaw(requestParameters, initOverrides);
|
|
1013
|
+
return yield response.value();
|
|
1012
1014
|
});
|
|
1013
1015
|
}
|
|
1014
1016
|
/**
|
|
@@ -24,6 +24,10 @@ export interface PostRichTextAssetCompleteRequest {
|
|
|
24
24
|
export interface PostRichTextAssetUploadRequest {
|
|
25
25
|
postRichTextAssetUpload: PostRichTextAssetUpload;
|
|
26
26
|
}
|
|
27
|
+
export interface PutRichTextAssetFileRequest {
|
|
28
|
+
assetId: string;
|
|
29
|
+
body: Blob;
|
|
30
|
+
}
|
|
27
31
|
/**
|
|
28
32
|
*
|
|
29
33
|
*/
|
|
@@ -64,4 +68,16 @@ export declare class RichTextApi extends runtime.BaseAPI {
|
|
|
64
68
|
* Create a pending rich text asset upload
|
|
65
69
|
*/
|
|
66
70
|
postRichTextAssetUpload(requestParameters: PostRichTextAssetUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRichTextAssetUpload>;
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for putRichTextAssetFile without sending the request
|
|
73
|
+
*/
|
|
74
|
+
putRichTextAssetFileRequestOpts(requestParameters: PutRichTextAssetFileRequest): Promise<runtime.RequestOpts>;
|
|
75
|
+
/**
|
|
76
|
+
* Upload a pending rich text asset file through the API
|
|
77
|
+
*/
|
|
78
|
+
putRichTextAssetFileRaw(requestParameters: PutRichTextAssetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
79
|
+
/**
|
|
80
|
+
* Upload a pending rich text asset file through the API
|
|
81
|
+
*/
|
|
82
|
+
putRichTextAssetFile(requestParameters: PutRichTextAssetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
67
83
|
}
|
package/dist/apis/RichTextApi.js
CHANGED
|
@@ -154,5 +154,48 @@ class RichTextApi extends runtime.BaseAPI {
|
|
|
154
154
|
return yield response.value();
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Creates request options for putRichTextAssetFile without sending the request
|
|
159
|
+
*/
|
|
160
|
+
putRichTextAssetFileRequestOpts(requestParameters) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
if (requestParameters['assetId'] == null) {
|
|
163
|
+
throw new runtime.RequiredError('assetId', 'Required parameter "assetId" was null or undefined when calling putRichTextAssetFile().');
|
|
164
|
+
}
|
|
165
|
+
if (requestParameters['body'] == null) {
|
|
166
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling putRichTextAssetFile().');
|
|
167
|
+
}
|
|
168
|
+
const queryParameters = {};
|
|
169
|
+
const headerParameters = {};
|
|
170
|
+
headerParameters['Content-Type'] = 'image/png';
|
|
171
|
+
let urlPath = `/rich-text/assets/{assetId}/file`;
|
|
172
|
+
urlPath = urlPath.replace('{assetId}', encodeURIComponent(String(requestParameters['assetId'])));
|
|
173
|
+
return {
|
|
174
|
+
path: urlPath,
|
|
175
|
+
method: 'PUT',
|
|
176
|
+
headers: headerParameters,
|
|
177
|
+
query: queryParameters,
|
|
178
|
+
body: requestParameters['body'],
|
|
179
|
+
};
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Upload a pending rich text asset file through the API
|
|
184
|
+
*/
|
|
185
|
+
putRichTextAssetFileRaw(requestParameters, initOverrides) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
const requestOptions = yield this.putRichTextAssetFileRequestOpts(requestParameters);
|
|
188
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
189
|
+
return new runtime.VoidApiResponse(response);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Upload a pending rich text asset file through the API
|
|
194
|
+
*/
|
|
195
|
+
putRichTextAssetFile(requestParameters, initOverrides) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
yield this.putRichTextAssetFileRaw(requestParameters, initOverrides);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
157
200
|
}
|
|
158
201
|
exports.RichTextApi = RichTextApi;
|
|
@@ -32,6 +32,7 @@ import { type PostQuizQuestions } from '../models/PostQuizQuestions';
|
|
|
32
32
|
import { type PutQuiz } from '../models/PutQuiz';
|
|
33
33
|
import { type PutQuizAnswer } from '../models/PutQuizAnswer';
|
|
34
34
|
import { type PutQuizAnswerGrade } from '../models/PutQuizAnswerGrade';
|
|
35
|
+
import { type PutQuizAnswerResponse } from '../models/PutQuizAnswerResponse';
|
|
35
36
|
export interface AddQuizCriteriaQuestionSelectionRequest {
|
|
36
37
|
quizId: string;
|
|
37
38
|
postQuizCriteria: PostQuizCriteria;
|
|
@@ -408,11 +409,11 @@ export declare class QuizApi extends runtime.BaseAPI {
|
|
|
408
409
|
/**
|
|
409
410
|
* Save answer for a specific question
|
|
410
411
|
*/
|
|
411
|
-
saveQuizAnswerRaw(requestParameters: SaveQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
412
|
+
saveQuizAnswerRaw(requestParameters: SaveQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PutQuizAnswerResponse>>;
|
|
412
413
|
/**
|
|
413
414
|
* Save answer for a specific question
|
|
414
415
|
*/
|
|
415
|
-
saveQuizAnswer(requestParameters: SaveQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
416
|
+
saveQuizAnswer(requestParameters: SaveQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PutQuizAnswerResponse>;
|
|
416
417
|
/**
|
|
417
418
|
* Creates request options for startQuizAttempt without sending the request
|
|
418
419
|
*/
|
package/dist/esm/apis/QuizApi.js
CHANGED
|
@@ -43,6 +43,7 @@ import { PostQuizQuestionsToJSON, } from '../models/PostQuizQuestions';
|
|
|
43
43
|
import { PutQuizToJSON, } from '../models/PutQuiz';
|
|
44
44
|
import { PutQuizAnswerToJSON, } from '../models/PutQuizAnswer';
|
|
45
45
|
import { PutQuizAnswerGradeToJSON, } from '../models/PutQuizAnswerGrade';
|
|
46
|
+
import { PutQuizAnswerResponseFromJSON, } from '../models/PutQuizAnswerResponse';
|
|
46
47
|
/**
|
|
47
48
|
*
|
|
48
49
|
*/
|
|
@@ -997,7 +998,7 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
997
998
|
return __awaiter(this, void 0, void 0, function* () {
|
|
998
999
|
const requestOptions = yield this.saveQuizAnswerRequestOpts(requestParameters);
|
|
999
1000
|
const response = yield this.request(requestOptions, initOverrides);
|
|
1000
|
-
return new runtime.
|
|
1001
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PutQuizAnswerResponseFromJSON(jsonValue));
|
|
1001
1002
|
});
|
|
1002
1003
|
}
|
|
1003
1004
|
/**
|
|
@@ -1005,7 +1006,8 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
1005
1006
|
*/
|
|
1006
1007
|
saveQuizAnswer(requestParameters, initOverrides) {
|
|
1007
1008
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1008
|
-
yield this.saveQuizAnswerRaw(requestParameters, initOverrides);
|
|
1009
|
+
const response = yield this.saveQuizAnswerRaw(requestParameters, initOverrides);
|
|
1010
|
+
return yield response.value();
|
|
1009
1011
|
});
|
|
1010
1012
|
}
|
|
1011
1013
|
/**
|
|
@@ -24,6 +24,10 @@ export interface PostRichTextAssetCompleteRequest {
|
|
|
24
24
|
export interface PostRichTextAssetUploadRequest {
|
|
25
25
|
postRichTextAssetUpload: PostRichTextAssetUpload;
|
|
26
26
|
}
|
|
27
|
+
export interface PutRichTextAssetFileRequest {
|
|
28
|
+
assetId: string;
|
|
29
|
+
body: Blob;
|
|
30
|
+
}
|
|
27
31
|
/**
|
|
28
32
|
*
|
|
29
33
|
*/
|
|
@@ -64,4 +68,16 @@ export declare class RichTextApi extends runtime.BaseAPI {
|
|
|
64
68
|
* Create a pending rich text asset upload
|
|
65
69
|
*/
|
|
66
70
|
postRichTextAssetUpload(requestParameters: PostRichTextAssetUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRichTextAssetUpload>;
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for putRichTextAssetFile without sending the request
|
|
73
|
+
*/
|
|
74
|
+
putRichTextAssetFileRequestOpts(requestParameters: PutRichTextAssetFileRequest): Promise<runtime.RequestOpts>;
|
|
75
|
+
/**
|
|
76
|
+
* Upload a pending rich text asset file through the API
|
|
77
|
+
*/
|
|
78
|
+
putRichTextAssetFileRaw(requestParameters: PutRichTextAssetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
79
|
+
/**
|
|
80
|
+
* Upload a pending rich text asset file through the API
|
|
81
|
+
*/
|
|
82
|
+
putRichTextAssetFile(requestParameters: PutRichTextAssetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
67
83
|
}
|
|
@@ -151,4 +151,47 @@ export class RichTextApi extends runtime.BaseAPI {
|
|
|
151
151
|
return yield response.value();
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* Creates request options for putRichTextAssetFile without sending the request
|
|
156
|
+
*/
|
|
157
|
+
putRichTextAssetFileRequestOpts(requestParameters) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
if (requestParameters['assetId'] == null) {
|
|
160
|
+
throw new runtime.RequiredError('assetId', 'Required parameter "assetId" was null or undefined when calling putRichTextAssetFile().');
|
|
161
|
+
}
|
|
162
|
+
if (requestParameters['body'] == null) {
|
|
163
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling putRichTextAssetFile().');
|
|
164
|
+
}
|
|
165
|
+
const queryParameters = {};
|
|
166
|
+
const headerParameters = {};
|
|
167
|
+
headerParameters['Content-Type'] = 'image/png';
|
|
168
|
+
let urlPath = `/rich-text/assets/{assetId}/file`;
|
|
169
|
+
urlPath = urlPath.replace('{assetId}', encodeURIComponent(String(requestParameters['assetId'])));
|
|
170
|
+
return {
|
|
171
|
+
path: urlPath,
|
|
172
|
+
method: 'PUT',
|
|
173
|
+
headers: headerParameters,
|
|
174
|
+
query: queryParameters,
|
|
175
|
+
body: requestParameters['body'],
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Upload a pending rich text asset file through the API
|
|
181
|
+
*/
|
|
182
|
+
putRichTextAssetFileRaw(requestParameters, initOverrides) {
|
|
183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
184
|
+
const requestOptions = yield this.putRichTextAssetFileRequestOpts(requestParameters);
|
|
185
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
186
|
+
return new runtime.VoidApiResponse(response);
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Upload a pending rich text asset file through the API
|
|
191
|
+
*/
|
|
192
|
+
putRichTextAssetFile(requestParameters, initOverrides) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
194
|
+
yield this.putRichTextAssetFileRaw(requestParameters, initOverrides);
|
|
195
|
+
});
|
|
196
|
+
}
|
|
154
197
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GetQuizAttemptQuestionsInnerCurrentAnswer } from './GetQuizAttemptQuestionsInnerCurrentAnswer';
|
|
13
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
13
14
|
import type { GetQuizAttemptQuestionsInnerAnswerChoicesInner } from './GetQuizAttemptQuestionsInnerAnswerChoicesInner';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -47,6 +48,12 @@ export interface GetQuizAttemptQuestionsInner {
|
|
|
47
48
|
* @memberof GetQuizAttemptQuestionsInner
|
|
48
49
|
*/
|
|
49
50
|
questionText: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {RichTextDocument}
|
|
54
|
+
* @memberof GetQuizAttemptQuestionsInner
|
|
55
|
+
*/
|
|
56
|
+
questionTextRich?: RichTextDocument;
|
|
50
57
|
/**
|
|
51
58
|
* Question type
|
|
52
59
|
* @type {GetQuizAttemptQuestionsInnerQuestionTypeEnum}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GetQuizAttemptQuestionsInnerCurrentAnswerFromJSON, GetQuizAttemptQuestionsInnerCurrentAnswerToJSON, } from './GetQuizAttemptQuestionsInnerCurrentAnswer';
|
|
15
|
+
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
15
16
|
import { GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON, GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON, } from './GetQuizAttemptQuestionsInnerAnswerChoicesInner';
|
|
16
17
|
/**
|
|
17
18
|
* @export
|
|
@@ -57,6 +58,7 @@ export function GetQuizAttemptQuestionsInnerFromJSONTyped(json, ignoreDiscrimina
|
|
|
57
58
|
'questionOrder': json['question_order'],
|
|
58
59
|
'points': json['points'],
|
|
59
60
|
'questionText': json['question_text'],
|
|
61
|
+
'questionTextRich': json['question_text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['question_text_rich']),
|
|
60
62
|
'questionType': json['question_type'],
|
|
61
63
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON)),
|
|
62
64
|
'isAnswered': json['is_answered'],
|
|
@@ -77,6 +79,7 @@ export function GetQuizAttemptQuestionsInnerToJSONTyped(value, ignoreDiscriminat
|
|
|
77
79
|
'question_order': value['questionOrder'],
|
|
78
80
|
'points': value['points'],
|
|
79
81
|
'question_text': value['questionText'],
|
|
82
|
+
'question_text_rich': RichTextDocumentToJSON(value['questionTextRich']),
|
|
80
83
|
'question_type': value['questionType'],
|
|
81
84
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON)),
|
|
82
85
|
'is_answered': value['isAnswered'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface GetQuizAttemptQuestionsInnerAnswerChoicesInner {
|
|
|
27
28
|
* @memberof GetQuizAttemptQuestionsInnerAnswerChoicesInner
|
|
28
29
|
*/
|
|
29
30
|
text: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RichTextDocument}
|
|
34
|
+
* @memberof GetQuizAttemptQuestionsInnerAnswerChoicesInner
|
|
35
|
+
*/
|
|
36
|
+
textRich?: RichTextDocument;
|
|
30
37
|
/**
|
|
31
38
|
* Display order
|
|
32
39
|
* @type {number}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the GetQuizAttemptQuestionsInnerAnswerChoicesInner interface.
|
|
16
17
|
*/
|
|
@@ -33,6 +34,7 @@ export function GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped(json
|
|
|
33
34
|
return {
|
|
34
35
|
'id': json['id'],
|
|
35
36
|
'text': json['text'],
|
|
37
|
+
'textRich': json['text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['text_rich']),
|
|
36
38
|
'displayOrder': json['display_order'],
|
|
37
39
|
};
|
|
38
40
|
}
|
|
@@ -46,6 +48,7 @@ export function GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped(value,
|
|
|
46
48
|
return {
|
|
47
49
|
'id': value['id'],
|
|
48
50
|
'text': value['text'],
|
|
51
|
+
'text_rich': RichTextDocumentToJSON(value['textRich']),
|
|
49
52
|
'display_order': value['displayOrder'],
|
|
50
53
|
};
|
|
51
54
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GetQuizResultsQuestionsInnerAnswerChoicesInner } from './GetQuizResultsQuestionsInnerAnswerChoicesInner';
|
|
13
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
13
14
|
import type { GetQuizResultsQuestionsInnerStudentAnswer } from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -35,6 +36,12 @@ export interface GetQuizResultsQuestionsInner {
|
|
|
35
36
|
* @memberof GetQuizResultsQuestionsInner
|
|
36
37
|
*/
|
|
37
38
|
questionText: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {RichTextDocument}
|
|
42
|
+
* @memberof GetQuizResultsQuestionsInner
|
|
43
|
+
*/
|
|
44
|
+
questionTextRich?: RichTextDocument;
|
|
38
45
|
/**
|
|
39
46
|
* Type of question
|
|
40
47
|
* @type {GetQuizResultsQuestionsInnerQuestionTypeEnum}
|
|
@@ -59,6 +66,12 @@ export interface GetQuizResultsQuestionsInner {
|
|
|
59
66
|
* @memberof GetQuizResultsQuestionsInner
|
|
60
67
|
*/
|
|
61
68
|
explanation?: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {RichTextDocument}
|
|
72
|
+
* @memberof GetQuizResultsQuestionsInner
|
|
73
|
+
*/
|
|
74
|
+
explanationRich?: RichTextDocument;
|
|
62
75
|
/**
|
|
63
76
|
* Time spent on this question in seconds
|
|
64
77
|
* @type {number}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSON, GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSON, } from './GetQuizResultsQuestionsInnerAnswerChoicesInner';
|
|
15
|
+
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
15
16
|
import { GetQuizResultsQuestionsInnerStudentAnswerFromJSON, GetQuizResultsQuestionsInnerStudentAnswerToJSON, } from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
16
17
|
/**
|
|
17
18
|
* @export
|
|
@@ -51,10 +52,12 @@ export function GetQuizResultsQuestionsInnerFromJSONTyped(json, ignoreDiscrimina
|
|
|
51
52
|
'questionId': json['question_id'],
|
|
52
53
|
'questionOrder': json['question_order'],
|
|
53
54
|
'questionText': json['question_text'],
|
|
55
|
+
'questionTextRich': json['question_text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['question_text_rich']),
|
|
54
56
|
'questionType': json['question_type'],
|
|
55
57
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSON)),
|
|
56
58
|
'studentAnswer': GetQuizResultsQuestionsInnerStudentAnswerFromJSON(json['student_answer']),
|
|
57
59
|
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
60
|
+
'explanationRich': json['explanation_rich'] == null ? undefined : RichTextDocumentFromJSON(json['explanation_rich']),
|
|
58
61
|
'timeSpent': json['time_spent'] == null ? undefined : json['time_spent'],
|
|
59
62
|
'wasFlagged': json['was_flagged'] == null ? undefined : json['was_flagged'],
|
|
60
63
|
};
|
|
@@ -70,10 +73,12 @@ export function GetQuizResultsQuestionsInnerToJSONTyped(value, ignoreDiscriminat
|
|
|
70
73
|
'question_id': value['questionId'],
|
|
71
74
|
'question_order': value['questionOrder'],
|
|
72
75
|
'question_text': value['questionText'],
|
|
76
|
+
'question_text_rich': RichTextDocumentToJSON(value['questionTextRich']),
|
|
73
77
|
'question_type': value['questionType'],
|
|
74
78
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSON)),
|
|
75
79
|
'student_answer': GetQuizResultsQuestionsInnerStudentAnswerToJSON(value['studentAnswer']),
|
|
76
80
|
'explanation': value['explanation'],
|
|
81
|
+
'explanation_rich': RichTextDocumentToJSON(value['explanationRich']),
|
|
77
82
|
'time_spent': value['timeSpent'],
|
|
78
83
|
'was_flagged': value['wasFlagged'],
|
|
79
84
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface GetQuizResultsQuestionsInnerAnswerChoicesInner {
|
|
|
27
28
|
* @memberof GetQuizResultsQuestionsInnerAnswerChoicesInner
|
|
28
29
|
*/
|
|
29
30
|
text: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RichTextDocument}
|
|
34
|
+
* @memberof GetQuizResultsQuestionsInnerAnswerChoicesInner
|
|
35
|
+
*/
|
|
36
|
+
textRich?: RichTextDocument;
|
|
30
37
|
/**
|
|
31
38
|
*
|
|
32
39
|
* @type {boolean}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the GetQuizResultsQuestionsInnerAnswerChoicesInner interface.
|
|
16
17
|
*/
|
|
@@ -35,6 +36,7 @@ export function GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSONTyped(json
|
|
|
35
36
|
return {
|
|
36
37
|
'id': json['id'],
|
|
37
38
|
'text': json['text'],
|
|
39
|
+
'textRich': json['text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['text_rich']),
|
|
38
40
|
'isCorrect': json['is_correct'],
|
|
39
41
|
'wasSelected': json['was_selected'],
|
|
40
42
|
};
|
|
@@ -49,6 +51,7 @@ export function GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSONTyped(value,
|
|
|
49
51
|
return {
|
|
50
52
|
'id': value['id'],
|
|
51
53
|
'text': value['text'],
|
|
54
|
+
'text_rich': RichTextDocumentToJSON(value['textRich']),
|
|
52
55
|
'is_correct': value['isCorrect'],
|
|
53
56
|
'was_selected': value['wasSelected'],
|
|
54
57
|
};
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PostQuizAttemptQuestionsInnerAnswerChoicesInner } from './PostQuizAttemptQuestionsInnerAnswerChoicesInner';
|
|
13
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -46,6 +47,12 @@ export interface PostQuizAttemptQuestionsInner {
|
|
|
46
47
|
* @memberof PostQuizAttemptQuestionsInner
|
|
47
48
|
*/
|
|
48
49
|
questionText: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {RichTextDocument}
|
|
53
|
+
* @memberof PostQuizAttemptQuestionsInner
|
|
54
|
+
*/
|
|
55
|
+
questionTextRich?: RichTextDocument;
|
|
49
56
|
/**
|
|
50
57
|
* Question type
|
|
51
58
|
* @type {PostQuizAttemptQuestionsInnerQuestionTypeEnum}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { PostQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON, PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON, } from './PostQuizAttemptQuestionsInnerAnswerChoicesInner';
|
|
15
|
+
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
15
16
|
/**
|
|
16
17
|
* @export
|
|
17
18
|
*/
|
|
@@ -56,6 +57,7 @@ export function PostQuizAttemptQuestionsInnerFromJSONTyped(json, ignoreDiscrimin
|
|
|
56
57
|
'questionOrder': json['question_order'],
|
|
57
58
|
'points': json['points'],
|
|
58
59
|
'questionText': json['question_text'],
|
|
60
|
+
'questionTextRich': json['question_text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['question_text_rich']),
|
|
59
61
|
'questionType': json['question_type'],
|
|
60
62
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PostQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON)),
|
|
61
63
|
'isAnswered': json['is_answered'],
|
|
@@ -74,6 +76,7 @@ export function PostQuizAttemptQuestionsInnerToJSONTyped(value, ignoreDiscrimina
|
|
|
74
76
|
'question_order': value['questionOrder'],
|
|
75
77
|
'points': value['points'],
|
|
76
78
|
'question_text': value['questionText'],
|
|
79
|
+
'question_text_rich': RichTextDocumentToJSON(value['questionTextRich']),
|
|
77
80
|
'question_type': value['questionType'],
|
|
78
81
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON)),
|
|
79
82
|
'is_answered': value['isAnswered'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface PostQuizAttemptQuestionsInnerAnswerChoicesInner {
|
|
|
27
28
|
* @memberof PostQuizAttemptQuestionsInnerAnswerChoicesInner
|
|
28
29
|
*/
|
|
29
30
|
text: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RichTextDocument}
|
|
34
|
+
* @memberof PostQuizAttemptQuestionsInnerAnswerChoicesInner
|
|
35
|
+
*/
|
|
36
|
+
textRich?: RichTextDocument;
|
|
30
37
|
/**
|
|
31
38
|
* Display order (may be randomized)
|
|
32
39
|
* @type {number}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the PostQuizAttemptQuestionsInnerAnswerChoicesInner interface.
|
|
16
17
|
*/
|
|
@@ -33,6 +34,7 @@ export function PostQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped(jso
|
|
|
33
34
|
return {
|
|
34
35
|
'id': json['id'],
|
|
35
36
|
'text': json['text'],
|
|
37
|
+
'textRich': json['text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['text_rich']),
|
|
36
38
|
'displayOrder': json['display_order'],
|
|
37
39
|
};
|
|
38
40
|
}
|
|
@@ -46,6 +48,7 @@ export function PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped(value
|
|
|
46
48
|
return {
|
|
47
49
|
'id': value['id'],
|
|
48
50
|
'text': value['text'],
|
|
51
|
+
'text_rich': RichTextDocumentToJSON(value['textRich']),
|
|
49
52
|
'display_order': value['displayOrder'],
|
|
50
53
|
};
|
|
51
54
|
}
|