@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
|
@@ -0,0 +1,77 @@
|
|
|
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 { PutQuizAnswerResponseProgress } from './PutQuizAnswerResponseProgress';
|
|
13
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
14
|
+
import type { PutQuizAnswerResponseNextQuestion } from './PutQuizAnswerResponseNextQuestion';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface PutQuizAnswerResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface PutQuizAnswerResponse {
|
|
21
|
+
/**
|
|
22
|
+
* Whether the answer was saved
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @memberof PutQuizAnswerResponse
|
|
25
|
+
*/
|
|
26
|
+
success: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Question ID that was answered
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof PutQuizAnswerResponse
|
|
31
|
+
*/
|
|
32
|
+
questionId: number;
|
|
33
|
+
/**
|
|
34
|
+
* Immediate correctness feedback when review is disabled
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
* @memberof PutQuizAnswerResponse
|
|
37
|
+
*/
|
|
38
|
+
isCorrect?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Immediate points earned when review is disabled
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof PutQuizAnswerResponse
|
|
43
|
+
*/
|
|
44
|
+
pointsEarned?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Plain-text explanation when immediate feedback is enabled
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof PutQuizAnswerResponse
|
|
49
|
+
*/
|
|
50
|
+
explanation?: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {RichTextDocument}
|
|
54
|
+
* @memberof PutQuizAnswerResponse
|
|
55
|
+
*/
|
|
56
|
+
explanationRich?: RichTextDocument;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {PutQuizAnswerResponseNextQuestion}
|
|
60
|
+
* @memberof PutQuizAnswerResponse
|
|
61
|
+
*/
|
|
62
|
+
nextQuestion?: PutQuizAnswerResponseNextQuestion;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {PutQuizAnswerResponseProgress}
|
|
66
|
+
* @memberof PutQuizAnswerResponse
|
|
67
|
+
*/
|
|
68
|
+
progress: PutQuizAnswerResponseProgress;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the PutQuizAnswerResponse interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfPutQuizAnswerResponse(value: object): value is PutQuizAnswerResponse;
|
|
74
|
+
export declare function PutQuizAnswerResponseFromJSON(json: any): PutQuizAnswerResponse;
|
|
75
|
+
export declare function PutQuizAnswerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerResponse;
|
|
76
|
+
export declare function PutQuizAnswerResponseToJSON(json: any): PutQuizAnswerResponse;
|
|
77
|
+
export declare function PutQuizAnswerResponseToJSONTyped(value?: PutQuizAnswerResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { PutQuizAnswerResponseProgressFromJSON, PutQuizAnswerResponseProgressToJSON, } from './PutQuizAnswerResponseProgress';
|
|
15
|
+
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
16
|
+
import { PutQuizAnswerResponseNextQuestionFromJSON, PutQuizAnswerResponseNextQuestionToJSON, } from './PutQuizAnswerResponseNextQuestion';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PutQuizAnswerResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfPutQuizAnswerResponse(value) {
|
|
21
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('progress' in value) || value['progress'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function PutQuizAnswerResponseFromJSON(json) {
|
|
30
|
+
return PutQuizAnswerResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PutQuizAnswerResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'success': json['success'],
|
|
38
|
+
'questionId': json['question_id'],
|
|
39
|
+
'isCorrect': json['is_correct'] == null ? undefined : json['is_correct'],
|
|
40
|
+
'pointsEarned': json['points_earned'] == null ? undefined : json['points_earned'],
|
|
41
|
+
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
42
|
+
'explanationRich': json['explanation_rich'] == null ? undefined : RichTextDocumentFromJSON(json['explanation_rich']),
|
|
43
|
+
'nextQuestion': json['next_question'] == null ? undefined : PutQuizAnswerResponseNextQuestionFromJSON(json['next_question']),
|
|
44
|
+
'progress': PutQuizAnswerResponseProgressFromJSON(json['progress']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function PutQuizAnswerResponseToJSON(json) {
|
|
48
|
+
return PutQuizAnswerResponseToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function PutQuizAnswerResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'success': value['success'],
|
|
56
|
+
'question_id': value['questionId'],
|
|
57
|
+
'is_correct': value['isCorrect'],
|
|
58
|
+
'points_earned': value['pointsEarned'],
|
|
59
|
+
'explanation': value['explanation'],
|
|
60
|
+
'explanation_rich': RichTextDocumentToJSON(value['explanationRich']),
|
|
61
|
+
'next_question': PutQuizAnswerResponseNextQuestionToJSON(value['nextQuestion']),
|
|
62
|
+
'progress': PutQuizAnswerResponseProgressToJSON(value['progress']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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
|
}
|