@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
@@ -0,0 +1,102 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { RichTextDocument } from './RichTextDocument';
13
+ import type { PutQuizAnswerResponseNextQuestionAnswerChoicesInner } from './PutQuizAnswerResponseNextQuestionAnswerChoicesInner';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PutQuizAnswerResponseNextQuestion
18
+ */
19
+ export interface PutQuizAnswerResponseNextQuestion {
20
+ /**
21
+ * Attempt question ID
22
+ * @type {number}
23
+ * @memberof PutQuizAnswerResponseNextQuestion
24
+ */
25
+ id: number;
26
+ /**
27
+ * Original question ID
28
+ * @type {number}
29
+ * @memberof PutQuizAnswerResponseNextQuestion
30
+ */
31
+ questionId: number;
32
+ /**
33
+ * Order of question in this attempt
34
+ * @type {number}
35
+ * @memberof PutQuizAnswerResponseNextQuestion
36
+ */
37
+ questionOrder: number;
38
+ /**
39
+ * Points assigned to this question
40
+ * @type {number}
41
+ * @memberof PutQuizAnswerResponseNextQuestion
42
+ */
43
+ points: number;
44
+ /**
45
+ * Question text
46
+ * @type {string}
47
+ * @memberof PutQuizAnswerResponseNextQuestion
48
+ */
49
+ questionText: string;
50
+ /**
51
+ *
52
+ * @type {RichTextDocument}
53
+ * @memberof PutQuizAnswerResponseNextQuestion
54
+ */
55
+ questionTextRich?: RichTextDocument;
56
+ /**
57
+ *
58
+ * @type {PutQuizAnswerResponseNextQuestionQuestionTypeEnum}
59
+ * @memberof PutQuizAnswerResponseNextQuestion
60
+ */
61
+ questionType: PutQuizAnswerResponseNextQuestionQuestionTypeEnum;
62
+ /**
63
+ *
64
+ * @type {Array<PutQuizAnswerResponseNextQuestionAnswerChoicesInner>}
65
+ * @memberof PutQuizAnswerResponseNextQuestion
66
+ */
67
+ answerChoices: Array<PutQuizAnswerResponseNextQuestionAnswerChoicesInner>;
68
+ /**
69
+ *
70
+ * @type {boolean}
71
+ * @memberof PutQuizAnswerResponseNextQuestion
72
+ */
73
+ isAnswered: boolean;
74
+ /**
75
+ *
76
+ * @type {{ [key: string]: any; }}
77
+ * @memberof PutQuizAnswerResponseNextQuestion
78
+ */
79
+ userAnswer?: {
80
+ [key: string]: any;
81
+ };
82
+ }
83
+ /**
84
+ * @export
85
+ */
86
+ export declare const PutQuizAnswerResponseNextQuestionQuestionTypeEnum: {
87
+ readonly SingleAnswer: "single_answer";
88
+ readonly MultipleAnswer: "multiple_answer";
89
+ readonly FillInBlank: "fill_in_blank";
90
+ readonly ShortAnswer: "short_answer";
91
+ readonly Matching: "matching";
92
+ readonly Essay: "essay";
93
+ };
94
+ export type PutQuizAnswerResponseNextQuestionQuestionTypeEnum = typeof PutQuizAnswerResponseNextQuestionQuestionTypeEnum[keyof typeof PutQuizAnswerResponseNextQuestionQuestionTypeEnum];
95
+ /**
96
+ * Check if a given object implements the PutQuizAnswerResponseNextQuestion interface.
97
+ */
98
+ export declare function instanceOfPutQuizAnswerResponseNextQuestion(value: object): value is PutQuizAnswerResponseNextQuestion;
99
+ export declare function PutQuizAnswerResponseNextQuestionFromJSON(json: any): PutQuizAnswerResponseNextQuestion;
100
+ export declare function PutQuizAnswerResponseNextQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerResponseNextQuestion;
101
+ export declare function PutQuizAnswerResponseNextQuestionToJSON(json: any): PutQuizAnswerResponseNextQuestion;
102
+ export declare function PutQuizAnswerResponseNextQuestionToJSONTyped(value?: PutQuizAnswerResponseNextQuestion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
15
+ import { PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSON, PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSON, } from './PutQuizAnswerResponseNextQuestionAnswerChoicesInner';
16
+ /**
17
+ * @export
18
+ */
19
+ export const PutQuizAnswerResponseNextQuestionQuestionTypeEnum = {
20
+ SingleAnswer: 'single_answer',
21
+ MultipleAnswer: 'multiple_answer',
22
+ FillInBlank: 'fill_in_blank',
23
+ ShortAnswer: 'short_answer',
24
+ Matching: 'matching',
25
+ Essay: 'essay'
26
+ };
27
+ /**
28
+ * Check if a given object implements the PutQuizAnswerResponseNextQuestion interface.
29
+ */
30
+ export function instanceOfPutQuizAnswerResponseNextQuestion(value) {
31
+ if (!('id' in value) || value['id'] === undefined)
32
+ return false;
33
+ if (!('questionId' in value) || value['questionId'] === undefined)
34
+ return false;
35
+ if (!('questionOrder' in value) || value['questionOrder'] === undefined)
36
+ return false;
37
+ if (!('points' in value) || value['points'] === undefined)
38
+ return false;
39
+ if (!('questionText' in value) || value['questionText'] === undefined)
40
+ return false;
41
+ if (!('questionType' in value) || value['questionType'] === undefined)
42
+ return false;
43
+ if (!('answerChoices' in value) || value['answerChoices'] === undefined)
44
+ return false;
45
+ if (!('isAnswered' in value) || value['isAnswered'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ export function PutQuizAnswerResponseNextQuestionFromJSON(json) {
50
+ return PutQuizAnswerResponseNextQuestionFromJSONTyped(json, false);
51
+ }
52
+ export function PutQuizAnswerResponseNextQuestionFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'id': json['id'],
58
+ 'questionId': json['question_id'],
59
+ 'questionOrder': json['question_order'],
60
+ 'points': json['points'],
61
+ 'questionText': json['question_text'],
62
+ 'questionTextRich': json['question_text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['question_text_rich']),
63
+ 'questionType': json['question_type'],
64
+ 'answerChoices': (json['answer_choices'].map(PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSON)),
65
+ 'isAnswered': json['is_answered'],
66
+ 'userAnswer': json['user_answer'] == null ? undefined : json['user_answer'],
67
+ };
68
+ }
69
+ export function PutQuizAnswerResponseNextQuestionToJSON(json) {
70
+ return PutQuizAnswerResponseNextQuestionToJSONTyped(json, false);
71
+ }
72
+ export function PutQuizAnswerResponseNextQuestionToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'id': value['id'],
78
+ 'question_id': value['questionId'],
79
+ 'question_order': value['questionOrder'],
80
+ 'points': value['points'],
81
+ 'question_text': value['questionText'],
82
+ 'question_text_rich': RichTextDocumentToJSON(value['questionTextRich']),
83
+ 'question_type': value['questionType'],
84
+ 'answer_choices': (value['answerChoices'].map(PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSON)),
85
+ 'is_answered': value['isAnswered'],
86
+ 'user_answer': value['userAnswer'],
87
+ };
88
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { RichTextDocument } from './RichTextDocument';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PutQuizAnswerResponseNextQuestionAnswerChoicesInner
17
+ */
18
+ export interface PutQuizAnswerResponseNextQuestionAnswerChoicesInner {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
29
+ */
30
+ text: string;
31
+ /**
32
+ *
33
+ * @type {RichTextDocument}
34
+ * @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
35
+ */
36
+ textRich?: RichTextDocument;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
41
+ */
42
+ displayOrder: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PutQuizAnswerResponseNextQuestionAnswerChoicesInner interface.
46
+ */
47
+ export declare function instanceOfPutQuizAnswerResponseNextQuestionAnswerChoicesInner(value: object): value is PutQuizAnswerResponseNextQuestionAnswerChoicesInner;
48
+ export declare function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSON(json: any): PutQuizAnswerResponseNextQuestionAnswerChoicesInner;
49
+ export declare function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerResponseNextQuestionAnswerChoicesInner;
50
+ export declare function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSON(json: any): PutQuizAnswerResponseNextQuestionAnswerChoicesInner;
51
+ export declare function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSONTyped(value?: PutQuizAnswerResponseNextQuestionAnswerChoicesInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
15
+ /**
16
+ * Check if a given object implements the PutQuizAnswerResponseNextQuestionAnswerChoicesInner interface.
17
+ */
18
+ export function instanceOfPutQuizAnswerResponseNextQuestionAnswerChoicesInner(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('text' in value) || value['text'] === undefined)
22
+ return false;
23
+ if (!('displayOrder' in value) || value['displayOrder'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSON(json) {
28
+ return PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSONTyped(json, false);
29
+ }
30
+ export function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'],
36
+ 'text': json['text'],
37
+ 'textRich': json['text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['text_rich']),
38
+ 'displayOrder': json['display_order'],
39
+ };
40
+ }
41
+ export function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSON(json) {
42
+ return PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSONTyped(json, false);
43
+ }
44
+ export function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'id': value['id'],
50
+ 'text': value['text'],
51
+ 'text_rich': RichTextDocumentToJSON(value['textRich']),
52
+ 'display_order': value['displayOrder'],
53
+ };
54
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PutQuizAnswerResponseProgress
16
+ */
17
+ export interface PutQuizAnswerResponseProgress {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PutQuizAnswerResponseProgress
22
+ */
23
+ totalQuestions: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof PutQuizAnswerResponseProgress
28
+ */
29
+ questionsAnswered: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PutQuizAnswerResponseProgress
34
+ */
35
+ currentQuestionNumber: number;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof PutQuizAnswerResponseProgress
40
+ */
41
+ canSubmit: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PutQuizAnswerResponseProgress interface.
45
+ */
46
+ export declare function instanceOfPutQuizAnswerResponseProgress(value: object): value is PutQuizAnswerResponseProgress;
47
+ export declare function PutQuizAnswerResponseProgressFromJSON(json: any): PutQuizAnswerResponseProgress;
48
+ export declare function PutQuizAnswerResponseProgressFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerResponseProgress;
49
+ export declare function PutQuizAnswerResponseProgressToJSON(json: any): PutQuizAnswerResponseProgress;
50
+ export declare function PutQuizAnswerResponseProgressToJSONTyped(value?: PutQuizAnswerResponseProgress | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PutQuizAnswerResponseProgress interface.
16
+ */
17
+ export function instanceOfPutQuizAnswerResponseProgress(value) {
18
+ if (!('totalQuestions' in value) || value['totalQuestions'] === undefined)
19
+ return false;
20
+ if (!('questionsAnswered' in value) || value['questionsAnswered'] === undefined)
21
+ return false;
22
+ if (!('currentQuestionNumber' in value) || value['currentQuestionNumber'] === undefined)
23
+ return false;
24
+ if (!('canSubmit' in value) || value['canSubmit'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function PutQuizAnswerResponseProgressFromJSON(json) {
29
+ return PutQuizAnswerResponseProgressFromJSONTyped(json, false);
30
+ }
31
+ export function PutQuizAnswerResponseProgressFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'totalQuestions': json['total_questions'],
37
+ 'questionsAnswered': json['questions_answered'],
38
+ 'currentQuestionNumber': json['current_question_number'],
39
+ 'canSubmit': json['can_submit'],
40
+ };
41
+ }
42
+ export function PutQuizAnswerResponseProgressToJSON(json) {
43
+ return PutQuizAnswerResponseProgressToJSONTyped(json, false);
44
+ }
45
+ export function PutQuizAnswerResponseProgressToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'total_questions': value['totalQuestions'],
51
+ 'questions_answered': value['questionsAnswered'],
52
+ 'current_question_number': value['currentQuestionNumber'],
53
+ 'can_submit': value['canSubmit'],
54
+ };
55
+ }
@@ -265,6 +265,10 @@ export * from './PutQuiz';
265
265
  export * from './PutQuizAnswer';
266
266
  export * from './PutQuizAnswerAnswer';
267
267
  export * from './PutQuizAnswerGrade';
268
+ export * from './PutQuizAnswerResponse';
269
+ export * from './PutQuizAnswerResponseNextQuestion';
270
+ export * from './PutQuizAnswerResponseNextQuestionAnswerChoicesInner';
271
+ export * from './PutQuizAnswerResponseProgress';
268
272
  export * from './PutQuizSettings';
269
273
  export * from './PutRole';
270
274
  export * from './PutRolePermissions';
@@ -267,6 +267,10 @@ export * from './PutQuiz';
267
267
  export * from './PutQuizAnswer';
268
268
  export * from './PutQuizAnswerAnswer';
269
269
  export * from './PutQuizAnswerGrade';
270
+ export * from './PutQuizAnswerResponse';
271
+ export * from './PutQuizAnswerResponseNextQuestion';
272
+ export * from './PutQuizAnswerResponseNextQuestionAnswerChoicesInner';
273
+ export * from './PutQuizAnswerResponseProgress';
270
274
  export * from './PutQuizSettings';
271
275
  export * from './PutRole';
272
276
  export * from './PutRolePermissions';
@@ -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}
@@ -20,6 +20,7 @@ exports.GetQuizAttemptQuestionsInnerFromJSONTyped = GetQuizAttemptQuestionsInner
20
20
  exports.GetQuizAttemptQuestionsInnerToJSON = GetQuizAttemptQuestionsInnerToJSON;
21
21
  exports.GetQuizAttemptQuestionsInnerToJSONTyped = GetQuizAttemptQuestionsInnerToJSONTyped;
22
22
  const GetQuizAttemptQuestionsInnerCurrentAnswer_1 = require("./GetQuizAttemptQuestionsInnerCurrentAnswer");
23
+ const RichTextDocument_1 = require("./RichTextDocument");
23
24
  const GetQuizAttemptQuestionsInnerAnswerChoicesInner_1 = require("./GetQuizAttemptQuestionsInnerAnswerChoicesInner");
24
25
  /**
25
26
  * @export
@@ -65,6 +66,7 @@ function GetQuizAttemptQuestionsInnerFromJSONTyped(json, ignoreDiscriminator) {
65
66
  'questionOrder': json['question_order'],
66
67
  'points': json['points'],
67
68
  'questionText': json['question_text'],
69
+ 'questionTextRich': json['question_text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['question_text_rich']),
68
70
  'questionType': json['question_type'],
69
71
  'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizAttemptQuestionsInnerAnswerChoicesInner_1.GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON)),
70
72
  'isAnswered': json['is_answered'],
@@ -85,6 +87,7 @@ function GetQuizAttemptQuestionsInnerToJSONTyped(value, ignoreDiscriminator = fa
85
87
  'question_order': value['questionOrder'],
86
88
  'points': value['points'],
87
89
  'question_text': value['questionText'],
90
+ 'question_text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['questionTextRich']),
88
91
  'question_type': value['questionType'],
89
92
  'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizAttemptQuestionsInnerAnswerChoicesInner_1.GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON)),
90
93
  '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}
@@ -18,6 +18,7 @@ exports.GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON = GetQuizAttemptQ
18
18
  exports.GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped = GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped;
19
19
  exports.GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON = GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON;
20
20
  exports.GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped = GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped;
21
+ const RichTextDocument_1 = require("./RichTextDocument");
21
22
  /**
22
23
  * Check if a given object implements the GetQuizAttemptQuestionsInnerAnswerChoicesInner interface.
23
24
  */
@@ -40,6 +41,7 @@ function GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped(json, ignor
40
41
  return {
41
42
  'id': json['id'],
42
43
  'text': json['text'],
44
+ 'textRich': json['text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['text_rich']),
43
45
  'displayOrder': json['display_order'],
44
46
  };
45
47
  }
@@ -53,6 +55,7 @@ function GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped(value, ignore
53
55
  return {
54
56
  'id': value['id'],
55
57
  'text': value['text'],
58
+ 'text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['textRich']),
56
59
  'display_order': value['displayOrder'],
57
60
  };
58
61
  }
@@ -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}
@@ -20,6 +20,7 @@ exports.GetQuizResultsQuestionsInnerFromJSONTyped = GetQuizResultsQuestionsInner
20
20
  exports.GetQuizResultsQuestionsInnerToJSON = GetQuizResultsQuestionsInnerToJSON;
21
21
  exports.GetQuizResultsQuestionsInnerToJSONTyped = GetQuizResultsQuestionsInnerToJSONTyped;
22
22
  const GetQuizResultsQuestionsInnerAnswerChoicesInner_1 = require("./GetQuizResultsQuestionsInnerAnswerChoicesInner");
23
+ const RichTextDocument_1 = require("./RichTextDocument");
23
24
  const GetQuizResultsQuestionsInnerStudentAnswer_1 = require("./GetQuizResultsQuestionsInnerStudentAnswer");
24
25
  /**
25
26
  * @export
@@ -59,10 +60,12 @@ function GetQuizResultsQuestionsInnerFromJSONTyped(json, ignoreDiscriminator) {
59
60
  'questionId': json['question_id'],
60
61
  'questionOrder': json['question_order'],
61
62
  'questionText': json['question_text'],
63
+ 'questionTextRich': json['question_text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['question_text_rich']),
62
64
  'questionType': json['question_type'],
63
65
  'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizResultsQuestionsInnerAnswerChoicesInner_1.GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSON)),
64
66
  'studentAnswer': (0, GetQuizResultsQuestionsInnerStudentAnswer_1.GetQuizResultsQuestionsInnerStudentAnswerFromJSON)(json['student_answer']),
65
67
  'explanation': json['explanation'] == null ? undefined : json['explanation'],
68
+ 'explanationRich': json['explanation_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['explanation_rich']),
66
69
  'timeSpent': json['time_spent'] == null ? undefined : json['time_spent'],
67
70
  'wasFlagged': json['was_flagged'] == null ? undefined : json['was_flagged'],
68
71
  };
@@ -78,10 +81,12 @@ function GetQuizResultsQuestionsInnerToJSONTyped(value, ignoreDiscriminator = fa
78
81
  'question_id': value['questionId'],
79
82
  'question_order': value['questionOrder'],
80
83
  'question_text': value['questionText'],
84
+ 'question_text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['questionTextRich']),
81
85
  'question_type': value['questionType'],
82
86
  'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizResultsQuestionsInnerAnswerChoicesInner_1.GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSON)),
83
87
  'student_answer': (0, GetQuizResultsQuestionsInnerStudentAnswer_1.GetQuizResultsQuestionsInnerStudentAnswerToJSON)(value['studentAnswer']),
84
88
  'explanation': value['explanation'],
89
+ 'explanation_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['explanationRich']),
85
90
  'time_spent': value['timeSpent'],
86
91
  'was_flagged': value['wasFlagged'],
87
92
  };
@@ -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}
@@ -18,6 +18,7 @@ exports.GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSON = GetQuizResultsQ
18
18
  exports.GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSONTyped = GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSONTyped;
19
19
  exports.GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSON = GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSON;
20
20
  exports.GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSONTyped = GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSONTyped;
21
+ const RichTextDocument_1 = require("./RichTextDocument");
21
22
  /**
22
23
  * Check if a given object implements the GetQuizResultsQuestionsInnerAnswerChoicesInner interface.
23
24
  */
@@ -42,6 +43,7 @@ function GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSONTyped(json, ignor
42
43
  return {
43
44
  'id': json['id'],
44
45
  'text': json['text'],
46
+ 'textRich': json['text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['text_rich']),
45
47
  'isCorrect': json['is_correct'],
46
48
  'wasSelected': json['was_selected'],
47
49
  };
@@ -56,6 +58,7 @@ function GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSONTyped(value, ignore
56
58
  return {
57
59
  'id': value['id'],
58
60
  'text': value['text'],
61
+ 'text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['textRich']),
59
62
  'is_correct': value['isCorrect'],
60
63
  'was_selected': value['wasSelected'],
61
64
  };
@@ -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}