@easyedu/js-lsm-api 1.82.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.
Files changed (74) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +6 -2
  3. package/dist/apis/QuizApi.d.ts +3 -2
  4. package/dist/apis/QuizApi.js +4 -2
  5. package/dist/esm/apis/QuizApi.d.ts +3 -2
  6. package/dist/esm/apis/QuizApi.js +4 -2
  7. package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +7 -0
  8. package/dist/esm/models/GetQuizAttemptQuestionsInner.js +3 -0
  9. package/dist/esm/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  10. package/dist/esm/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
  11. package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +13 -0
  12. package/dist/esm/models/GetQuizResultsQuestionsInner.js +5 -0
  13. package/dist/esm/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  14. package/dist/esm/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.js +3 -0
  15. package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +7 -0
  16. package/dist/esm/models/PostQuizAttemptQuestionsInner.js +3 -0
  17. package/dist/esm/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  18. package/dist/esm/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
  19. package/dist/esm/models/PutQuizAnswerResponse.d.ts +77 -0
  20. package/dist/esm/models/PutQuizAnswerResponse.js +64 -0
  21. package/dist/esm/models/PutQuizAnswerResponseNextQuestion.d.ts +102 -0
  22. package/dist/esm/models/PutQuizAnswerResponseNextQuestion.js +88 -0
  23. package/dist/esm/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.d.ts +51 -0
  24. package/dist/esm/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.js +54 -0
  25. package/dist/esm/models/PutQuizAnswerResponseProgress.d.ts +50 -0
  26. package/dist/esm/models/PutQuizAnswerResponseProgress.js +55 -0
  27. package/dist/esm/models/index.d.ts +4 -0
  28. package/dist/esm/models/index.js +4 -0
  29. package/dist/models/GetQuizAttemptQuestionsInner.d.ts +7 -0
  30. package/dist/models/GetQuizAttemptQuestionsInner.js +3 -0
  31. package/dist/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  32. package/dist/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
  33. package/dist/models/GetQuizResultsQuestionsInner.d.ts +13 -0
  34. package/dist/models/GetQuizResultsQuestionsInner.js +5 -0
  35. package/dist/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  36. package/dist/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.js +3 -0
  37. package/dist/models/PostQuizAttemptQuestionsInner.d.ts +7 -0
  38. package/dist/models/PostQuizAttemptQuestionsInner.js +3 -0
  39. package/dist/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  40. package/dist/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
  41. package/dist/models/PutQuizAnswerResponse.d.ts +77 -0
  42. package/dist/models/PutQuizAnswerResponse.js +71 -0
  43. package/dist/models/PutQuizAnswerResponseNextQuestion.d.ts +102 -0
  44. package/dist/models/PutQuizAnswerResponseNextQuestion.js +96 -0
  45. package/dist/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.d.ts +51 -0
  46. package/dist/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.js +61 -0
  47. package/dist/models/PutQuizAnswerResponseProgress.d.ts +50 -0
  48. package/dist/models/PutQuizAnswerResponseProgress.js +62 -0
  49. package/dist/models/index.d.ts +4 -0
  50. package/dist/models/index.js +4 -0
  51. package/docs/GetQuizAttemptQuestionsInner.md +2 -0
  52. package/docs/GetQuizAttemptQuestionsInnerAnswerChoicesInner.md +2 -0
  53. package/docs/GetQuizResultsQuestionsInner.md +4 -0
  54. package/docs/GetQuizResultsQuestionsInnerAnswerChoicesInner.md +2 -0
  55. package/docs/PostQuizAttemptQuestionsInner.md +2 -0
  56. package/docs/PostQuizAttemptQuestionsInnerAnswerChoicesInner.md +2 -0
  57. package/docs/PutQuizAnswerResponse.md +48 -0
  58. package/docs/PutQuizAnswerResponseNextQuestion.md +52 -0
  59. package/docs/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.md +40 -0
  60. package/docs/PutQuizAnswerResponseProgress.md +40 -0
  61. package/docs/QuizApi.md +3 -3
  62. package/package.json +1 -1
  63. package/src/apis/QuizApi.ts +10 -4
  64. package/src/models/GetQuizAttemptQuestionsInner.ts +15 -0
  65. package/src/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.ts +16 -0
  66. package/src/models/GetQuizResultsQuestionsInner.ts +23 -0
  67. package/src/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.ts +16 -0
  68. package/src/models/PostQuizAttemptQuestionsInner.ts +15 -0
  69. package/src/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.ts +16 -0
  70. package/src/models/PutQuizAnswerResponse.ts +146 -0
  71. package/src/models/PutQuizAnswerResponseNextQuestion.ts +175 -0
  72. package/src/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.ts +100 -0
  73. package/src/models/PutQuizAnswerResponseProgress.ts +93 -0
  74. package/src/models/index.ts +4 -0
@@ -11,6 +11,7 @@ Name | Type
11
11
  `questionOrder` | number
12
12
  `points` | number
13
13
  `questionText` | string
14
+ `questionTextRich` | [RichTextDocument](RichTextDocument.md)
14
15
  `questionType` | string
15
16
  `answerChoices` | [Array<GetQuizAttemptQuestionsInnerAnswerChoicesInner>](GetQuizAttemptQuestionsInnerAnswerChoicesInner.md)
16
17
  `isAnswered` | boolean
@@ -29,6 +30,7 @@ const example = {
29
30
  "questionOrder": null,
30
31
  "points": null,
31
32
  "questionText": null,
33
+ "questionTextRich": null,
32
34
  "questionType": null,
33
35
  "answerChoices": null,
34
36
  "isAnswered": null,
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
10
  `text` | string
11
+ `textRich` | [RichTextDocument](RichTextDocument.md)
11
12
  `displayOrder` | number
12
13
 
13
14
  ## Example
@@ -19,6 +20,7 @@ import type { GetQuizAttemptQuestionsInnerAnswerChoicesInner } from '@easyedu/js
19
20
  const example = {
20
21
  "id": null,
21
22
  "text": null,
23
+ "textRich": null,
22
24
  "displayOrder": null,
23
25
  } satisfies GetQuizAttemptQuestionsInnerAnswerChoicesInner
24
26
 
@@ -9,10 +9,12 @@ Name | Type
9
9
  `questionId` | string
10
10
  `questionOrder` | number
11
11
  `questionText` | string
12
+ `questionTextRich` | [RichTextDocument](RichTextDocument.md)
12
13
  `questionType` | string
13
14
  `answerChoices` | [Array<GetQuizResultsQuestionsInnerAnswerChoicesInner>](GetQuizResultsQuestionsInnerAnswerChoicesInner.md)
14
15
  `studentAnswer` | [GetQuizResultsQuestionsInnerStudentAnswer](GetQuizResultsQuestionsInnerStudentAnswer.md)
15
16
  `explanation` | string
17
+ `explanationRich` | [RichTextDocument](RichTextDocument.md)
16
18
  `timeSpent` | number
17
19
  `wasFlagged` | boolean
18
20
 
@@ -26,10 +28,12 @@ const example = {
26
28
  "questionId": null,
27
29
  "questionOrder": null,
28
30
  "questionText": null,
31
+ "questionTextRich": null,
29
32
  "questionType": null,
30
33
  "answerChoices": null,
31
34
  "studentAnswer": null,
32
35
  "explanation": null,
36
+ "explanationRich": null,
33
37
  "timeSpent": null,
34
38
  "wasFlagged": null,
35
39
  } satisfies GetQuizResultsQuestionsInner
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
10
  `text` | string
11
+ `textRich` | [RichTextDocument](RichTextDocument.md)
11
12
  `isCorrect` | boolean
12
13
  `wasSelected` | boolean
13
14
 
@@ -20,6 +21,7 @@ import type { GetQuizResultsQuestionsInnerAnswerChoicesInner } from '@easyedu/js
20
21
  const example = {
21
22
  "id": null,
22
23
  "text": null,
24
+ "textRich": null,
23
25
  "isCorrect": null,
24
26
  "wasSelected": null,
25
27
  } satisfies GetQuizResultsQuestionsInnerAnswerChoicesInner
@@ -11,6 +11,7 @@ Name | Type
11
11
  `questionOrder` | number
12
12
  `points` | number
13
13
  `questionText` | string
14
+ `questionTextRich` | [RichTextDocument](RichTextDocument.md)
14
15
  `questionType` | string
15
16
  `answerChoices` | [Array<PostQuizAttemptQuestionsInnerAnswerChoicesInner>](PostQuizAttemptQuestionsInnerAnswerChoicesInner.md)
16
17
  `isAnswered` | boolean
@@ -27,6 +28,7 @@ const example = {
27
28
  "questionOrder": null,
28
29
  "points": null,
29
30
  "questionText": null,
31
+ "questionTextRich": null,
30
32
  "questionType": null,
31
33
  "answerChoices": null,
32
34
  "isAnswered": null,
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
10
  `text` | string
11
+ `textRich` | [RichTextDocument](RichTextDocument.md)
11
12
  `displayOrder` | number
12
13
 
13
14
  ## Example
@@ -19,6 +20,7 @@ import type { PostQuizAttemptQuestionsInnerAnswerChoicesInner } from '@easyedu/j
19
20
  const example = {
20
21
  "id": null,
21
22
  "text": null,
23
+ "textRich": null,
22
24
  "displayOrder": null,
23
25
  } satisfies PostQuizAttemptQuestionsInnerAnswerChoicesInner
24
26
 
@@ -0,0 +1,48 @@
1
+
2
+ # PutQuizAnswerResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `success` | boolean
10
+ `questionId` | number
11
+ `isCorrect` | boolean
12
+ `pointsEarned` | number
13
+ `explanation` | string
14
+ `explanationRich` | [RichTextDocument](RichTextDocument.md)
15
+ `nextQuestion` | [PutQuizAnswerResponseNextQuestion](PutQuizAnswerResponseNextQuestion.md)
16
+ `progress` | [PutQuizAnswerResponseProgress](PutQuizAnswerResponseProgress.md)
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { PutQuizAnswerResponse } from '@easyedu/js-lsm-api'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "success": null,
26
+ "questionId": null,
27
+ "isCorrect": null,
28
+ "pointsEarned": null,
29
+ "explanation": null,
30
+ "explanationRich": null,
31
+ "nextQuestion": null,
32
+ "progress": null,
33
+ } satisfies PutQuizAnswerResponse
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as PutQuizAnswerResponse
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,52 @@
1
+
2
+ # PutQuizAnswerResponseNextQuestion
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `questionId` | number
11
+ `questionOrder` | number
12
+ `points` | number
13
+ `questionText` | string
14
+ `questionTextRich` | [RichTextDocument](RichTextDocument.md)
15
+ `questionType` | string
16
+ `answerChoices` | [Array<PutQuizAnswerResponseNextQuestionAnswerChoicesInner>](PutQuizAnswerResponseNextQuestionAnswerChoicesInner.md)
17
+ `isAnswered` | boolean
18
+ `userAnswer` | { [key: string]: any; }
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { PutQuizAnswerResponseNextQuestion } from '@easyedu/js-lsm-api'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "id": null,
28
+ "questionId": null,
29
+ "questionOrder": null,
30
+ "points": null,
31
+ "questionText": null,
32
+ "questionTextRich": null,
33
+ "questionType": null,
34
+ "answerChoices": null,
35
+ "isAnswered": null,
36
+ "userAnswer": null,
37
+ } satisfies PutQuizAnswerResponseNextQuestion
38
+
39
+ console.log(example)
40
+
41
+ // Convert the instance to a JSON string
42
+ const exampleJSON: string = JSON.stringify(example)
43
+ console.log(exampleJSON)
44
+
45
+ // Parse the JSON string back to an object
46
+ const exampleParsed = JSON.parse(exampleJSON) as PutQuizAnswerResponseNextQuestion
47
+ console.log(exampleParsed)
48
+ ```
49
+
50
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
51
+
52
+
@@ -0,0 +1,40 @@
1
+
2
+ # PutQuizAnswerResponseNextQuestionAnswerChoicesInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `text` | string
11
+ `textRich` | [RichTextDocument](RichTextDocument.md)
12
+ `displayOrder` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { PutQuizAnswerResponseNextQuestionAnswerChoicesInner } from '@easyedu/js-lsm-api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "id": null,
22
+ "text": null,
23
+ "textRich": null,
24
+ "displayOrder": null,
25
+ } satisfies PutQuizAnswerResponseNextQuestionAnswerChoicesInner
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as PutQuizAnswerResponseNextQuestionAnswerChoicesInner
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,40 @@
1
+
2
+ # PutQuizAnswerResponseProgress
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `totalQuestions` | number
10
+ `questionsAnswered` | number
11
+ `currentQuestionNumber` | number
12
+ `canSubmit` | boolean
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { PutQuizAnswerResponseProgress } from '@easyedu/js-lsm-api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "totalQuestions": null,
22
+ "questionsAnswered": null,
23
+ "currentQuestionNumber": null,
24
+ "canSubmit": null,
25
+ } satisfies PutQuizAnswerResponseProgress
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as PutQuizAnswerResponseProgress
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
package/docs/QuizApi.md CHANGED
@@ -1517,7 +1517,7 @@ No authorization required
1517
1517
 
1518
1518
  ## saveQuizAnswer
1519
1519
 
1520
- > saveQuizAnswer(attemptId, questionId, putQuizAnswer)
1520
+ > PutQuizAnswerResponse saveQuizAnswer(attemptId, questionId, putQuizAnswer)
1521
1521
 
1522
1522
  Save answer for a specific question
1523
1523
 
@@ -1566,7 +1566,7 @@ example().catch(console.error);
1566
1566
 
1567
1567
  ### Return type
1568
1568
 
1569
- `void` (Empty response body)
1569
+ [**PutQuizAnswerResponse**](PutQuizAnswerResponse.md)
1570
1570
 
1571
1571
  ### Authorization
1572
1572
 
@@ -1575,7 +1575,7 @@ No authorization required
1575
1575
  ### HTTP request headers
1576
1576
 
1577
1577
  - **Content-Type**: `application/json`
1578
- - **Accept**: Not defined
1578
+ - **Accept**: `application/json`
1579
1579
 
1580
1580
 
1581
1581
  ### HTTP response details
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.82.0",
3
+ "version": "1.83.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -123,6 +123,11 @@ import {
123
123
  PutQuizAnswerGradeFromJSON,
124
124
  PutQuizAnswerGradeToJSON,
125
125
  } from '../models/PutQuizAnswerGrade';
126
+ import {
127
+ type PutQuizAnswerResponse,
128
+ PutQuizAnswerResponseFromJSON,
129
+ PutQuizAnswerResponseToJSON,
130
+ } from '../models/PutQuizAnswerResponse';
126
131
 
127
132
  export interface AddQuizCriteriaQuestionSelectionRequest {
128
133
  quizId: string;
@@ -1414,18 +1419,19 @@ export class QuizApi extends runtime.BaseAPI {
1414
1419
  /**
1415
1420
  * Save answer for a specific question
1416
1421
  */
1417
- async saveQuizAnswerRaw(requestParameters: SaveQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1422
+ async saveQuizAnswerRaw(requestParameters: SaveQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PutQuizAnswerResponse>> {
1418
1423
  const requestOptions = await this.saveQuizAnswerRequestOpts(requestParameters);
1419
1424
  const response = await this.request(requestOptions, initOverrides);
1420
1425
 
1421
- return new runtime.VoidApiResponse(response);
1426
+ return new runtime.JSONApiResponse(response, (jsonValue) => PutQuizAnswerResponseFromJSON(jsonValue));
1422
1427
  }
1423
1428
 
1424
1429
  /**
1425
1430
  * Save answer for a specific question
1426
1431
  */
1427
- async saveQuizAnswer(requestParameters: SaveQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1428
- await this.saveQuizAnswerRaw(requestParameters, initOverrides);
1432
+ async saveQuizAnswer(requestParameters: SaveQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PutQuizAnswerResponse> {
1433
+ const response = await this.saveQuizAnswerRaw(requestParameters, initOverrides);
1434
+ return await response.value();
1429
1435
  }
1430
1436
 
1431
1437
  /**
@@ -20,6 +20,13 @@ import {
20
20
  GetQuizAttemptQuestionsInnerCurrentAnswerToJSON,
21
21
  GetQuizAttemptQuestionsInnerCurrentAnswerToJSONTyped,
22
22
  } from './GetQuizAttemptQuestionsInnerCurrentAnswer';
23
+ import type { RichTextDocument } from './RichTextDocument';
24
+ import {
25
+ RichTextDocumentFromJSON,
26
+ RichTextDocumentFromJSONTyped,
27
+ RichTextDocumentToJSON,
28
+ RichTextDocumentToJSONTyped,
29
+ } from './RichTextDocument';
23
30
  import type { GetQuizAttemptQuestionsInnerAnswerChoicesInner } from './GetQuizAttemptQuestionsInnerAnswerChoicesInner';
24
31
  import {
25
32
  GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON,
@@ -64,6 +71,12 @@ export interface GetQuizAttemptQuestionsInner {
64
71
  * @memberof GetQuizAttemptQuestionsInner
65
72
  */
66
73
  questionText: string;
74
+ /**
75
+ *
76
+ * @type {RichTextDocument}
77
+ * @memberof GetQuizAttemptQuestionsInner
78
+ */
79
+ questionTextRich?: RichTextDocument;
67
80
  /**
68
81
  * Question type
69
82
  * @type {GetQuizAttemptQuestionsInnerQuestionTypeEnum}
@@ -140,6 +153,7 @@ export function GetQuizAttemptQuestionsInnerFromJSONTyped(json: any, ignoreDiscr
140
153
  'questionOrder': json['question_order'],
141
154
  'points': json['points'],
142
155
  'questionText': json['question_text'],
156
+ 'questionTextRich': json['question_text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['question_text_rich']),
143
157
  'questionType': json['question_type'],
144
158
  'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON)),
145
159
  'isAnswered': json['is_answered'],
@@ -164,6 +178,7 @@ export function GetQuizAttemptQuestionsInnerToJSONTyped(value?: GetQuizAttemptQu
164
178
  'question_order': value['questionOrder'],
165
179
  'points': value['points'],
166
180
  'question_text': value['questionText'],
181
+ 'question_text_rich': RichTextDocumentToJSON(value['questionTextRich']),
167
182
  'question_type': value['questionType'],
168
183
  'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON)),
169
184
  'is_answered': value['isAnswered'],
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { RichTextDocument } from './RichTextDocument';
17
+ import {
18
+ RichTextDocumentFromJSON,
19
+ RichTextDocumentFromJSONTyped,
20
+ RichTextDocumentToJSON,
21
+ RichTextDocumentToJSONTyped,
22
+ } from './RichTextDocument';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -31,6 +39,12 @@ export interface GetQuizAttemptQuestionsInnerAnswerChoicesInner {
31
39
  * @memberof GetQuizAttemptQuestionsInnerAnswerChoicesInner
32
40
  */
33
41
  text: string;
42
+ /**
43
+ *
44
+ * @type {RichTextDocument}
45
+ * @memberof GetQuizAttemptQuestionsInnerAnswerChoicesInner
46
+ */
47
+ textRich?: RichTextDocument;
34
48
  /**
35
49
  * Display order
36
50
  * @type {number}
@@ -61,6 +75,7 @@ export function GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped(json
61
75
 
62
76
  'id': json['id'],
63
77
  'text': json['text'],
78
+ 'textRich': json['text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['text_rich']),
64
79
  'displayOrder': json['display_order'],
65
80
  };
66
81
  }
@@ -78,6 +93,7 @@ export function GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped(value?
78
93
 
79
94
  'id': value['id'],
80
95
  'text': value['text'],
96
+ 'text_rich': RichTextDocumentToJSON(value['textRich']),
81
97
  'display_order': value['displayOrder'],
82
98
  };
83
99
  }
@@ -20,6 +20,13 @@ import {
20
20
  GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSON,
21
21
  GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSONTyped,
22
22
  } from './GetQuizResultsQuestionsInnerAnswerChoicesInner';
23
+ import type { RichTextDocument } from './RichTextDocument';
24
+ import {
25
+ RichTextDocumentFromJSON,
26
+ RichTextDocumentFromJSONTyped,
27
+ RichTextDocumentToJSON,
28
+ RichTextDocumentToJSONTyped,
29
+ } from './RichTextDocument';
23
30
  import type { GetQuizResultsQuestionsInnerStudentAnswer } from './GetQuizResultsQuestionsInnerStudentAnswer';
24
31
  import {
25
32
  GetQuizResultsQuestionsInnerStudentAnswerFromJSON,
@@ -52,6 +59,12 @@ export interface GetQuizResultsQuestionsInner {
52
59
  * @memberof GetQuizResultsQuestionsInner
53
60
  */
54
61
  questionText: string;
62
+ /**
63
+ *
64
+ * @type {RichTextDocument}
65
+ * @memberof GetQuizResultsQuestionsInner
66
+ */
67
+ questionTextRich?: RichTextDocument;
55
68
  /**
56
69
  * Type of question
57
70
  * @type {GetQuizResultsQuestionsInnerQuestionTypeEnum}
@@ -76,6 +89,12 @@ export interface GetQuizResultsQuestionsInner {
76
89
  * @memberof GetQuizResultsQuestionsInner
77
90
  */
78
91
  explanation?: string;
92
+ /**
93
+ *
94
+ * @type {RichTextDocument}
95
+ * @memberof GetQuizResultsQuestionsInner
96
+ */
97
+ explanationRich?: RichTextDocument;
79
98
  /**
80
99
  * Time spent on this question in seconds
81
100
  * @type {number}
@@ -130,10 +149,12 @@ export function GetQuizResultsQuestionsInnerFromJSONTyped(json: any, ignoreDiscr
130
149
  'questionId': json['question_id'],
131
150
  'questionOrder': json['question_order'],
132
151
  'questionText': json['question_text'],
152
+ 'questionTextRich': json['question_text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['question_text_rich']),
133
153
  'questionType': json['question_type'],
134
154
  'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSON)),
135
155
  'studentAnswer': GetQuizResultsQuestionsInnerStudentAnswerFromJSON(json['student_answer']),
136
156
  'explanation': json['explanation'] == null ? undefined : json['explanation'],
157
+ 'explanationRich': json['explanation_rich'] == null ? undefined : RichTextDocumentFromJSON(json['explanation_rich']),
137
158
  'timeSpent': json['time_spent'] == null ? undefined : json['time_spent'],
138
159
  'wasFlagged': json['was_flagged'] == null ? undefined : json['was_flagged'],
139
160
  };
@@ -153,10 +174,12 @@ export function GetQuizResultsQuestionsInnerToJSONTyped(value?: GetQuizResultsQu
153
174
  'question_id': value['questionId'],
154
175
  'question_order': value['questionOrder'],
155
176
  'question_text': value['questionText'],
177
+ 'question_text_rich': RichTextDocumentToJSON(value['questionTextRich']),
156
178
  'question_type': value['questionType'],
157
179
  'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSON)),
158
180
  'student_answer': GetQuizResultsQuestionsInnerStudentAnswerToJSON(value['studentAnswer']),
159
181
  'explanation': value['explanation'],
182
+ 'explanation_rich': RichTextDocumentToJSON(value['explanationRich']),
160
183
  'time_spent': value['timeSpent'],
161
184
  'was_flagged': value['wasFlagged'],
162
185
  };
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { RichTextDocument } from './RichTextDocument';
17
+ import {
18
+ RichTextDocumentFromJSON,
19
+ RichTextDocumentFromJSONTyped,
20
+ RichTextDocumentToJSON,
21
+ RichTextDocumentToJSONTyped,
22
+ } from './RichTextDocument';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -31,6 +39,12 @@ export interface GetQuizResultsQuestionsInnerAnswerChoicesInner {
31
39
  * @memberof GetQuizResultsQuestionsInnerAnswerChoicesInner
32
40
  */
33
41
  text: string;
42
+ /**
43
+ *
44
+ * @type {RichTextDocument}
45
+ * @memberof GetQuizResultsQuestionsInnerAnswerChoicesInner
46
+ */
47
+ textRich?: RichTextDocument;
34
48
  /**
35
49
  *
36
50
  * @type {boolean}
@@ -68,6 +82,7 @@ export function GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSONTyped(json
68
82
 
69
83
  'id': json['id'],
70
84
  'text': json['text'],
85
+ 'textRich': json['text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['text_rich']),
71
86
  'isCorrect': json['is_correct'],
72
87
  'wasSelected': json['was_selected'],
73
88
  };
@@ -86,6 +101,7 @@ export function GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSONTyped(value?
86
101
 
87
102
  'id': value['id'],
88
103
  'text': value['text'],
104
+ 'text_rich': RichTextDocumentToJSON(value['textRich']),
89
105
  'is_correct': value['isCorrect'],
90
106
  'was_selected': value['wasSelected'],
91
107
  };
@@ -20,6 +20,13 @@ import {
20
20
  PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON,
21
21
  PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped,
22
22
  } from './PostQuizAttemptQuestionsInnerAnswerChoicesInner';
23
+ import type { RichTextDocument } from './RichTextDocument';
24
+ import {
25
+ RichTextDocumentFromJSON,
26
+ RichTextDocumentFromJSONTyped,
27
+ RichTextDocumentToJSON,
28
+ RichTextDocumentToJSONTyped,
29
+ } from './RichTextDocument';
23
30
 
24
31
  /**
25
32
  *
@@ -57,6 +64,12 @@ export interface PostQuizAttemptQuestionsInner {
57
64
  * @memberof PostQuizAttemptQuestionsInner
58
65
  */
59
66
  questionText: string;
67
+ /**
68
+ *
69
+ * @type {RichTextDocument}
70
+ * @memberof PostQuizAttemptQuestionsInner
71
+ */
72
+ questionTextRich?: RichTextDocument;
60
73
  /**
61
74
  * Question type
62
75
  * @type {PostQuizAttemptQuestionsInnerQuestionTypeEnum}
@@ -121,6 +134,7 @@ export function PostQuizAttemptQuestionsInnerFromJSONTyped(json: any, ignoreDisc
121
134
  'questionOrder': json['question_order'],
122
135
  'points': json['points'],
123
136
  'questionText': json['question_text'],
137
+ 'questionTextRich': json['question_text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['question_text_rich']),
124
138
  'questionType': json['question_type'],
125
139
  'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(PostQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON)),
126
140
  'isAnswered': json['is_answered'],
@@ -143,6 +157,7 @@ export function PostQuizAttemptQuestionsInnerToJSONTyped(value?: PostQuizAttempt
143
157
  'question_order': value['questionOrder'],
144
158
  'points': value['points'],
145
159
  'question_text': value['questionText'],
160
+ 'question_text_rich': RichTextDocumentToJSON(value['questionTextRich']),
146
161
  'question_type': value['questionType'],
147
162
  'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON)),
148
163
  'is_answered': value['isAnswered'],
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { RichTextDocument } from './RichTextDocument';
17
+ import {
18
+ RichTextDocumentFromJSON,
19
+ RichTextDocumentFromJSONTyped,
20
+ RichTextDocumentToJSON,
21
+ RichTextDocumentToJSONTyped,
22
+ } from './RichTextDocument';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -31,6 +39,12 @@ export interface PostQuizAttemptQuestionsInnerAnswerChoicesInner {
31
39
  * @memberof PostQuizAttemptQuestionsInnerAnswerChoicesInner
32
40
  */
33
41
  text: string;
42
+ /**
43
+ *
44
+ * @type {RichTextDocument}
45
+ * @memberof PostQuizAttemptQuestionsInnerAnswerChoicesInner
46
+ */
47
+ textRich?: RichTextDocument;
34
48
  /**
35
49
  * Display order (may be randomized)
36
50
  * @type {number}
@@ -61,6 +75,7 @@ export function PostQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped(jso
61
75
 
62
76
  'id': json['id'],
63
77
  'text': json['text'],
78
+ 'textRich': json['text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['text_rich']),
64
79
  'displayOrder': json['display_order'],
65
80
  };
66
81
  }
@@ -78,6 +93,7 @@ export function PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped(value
78
93
 
79
94
  'id': value['id'],
80
95
  'text': value['text'],
96
+ 'text_rich': RichTextDocumentToJSON(value['textRich']),
81
97
  'display_order': value['displayOrder'],
82
98
  };
83
99
  }