@easyedu/js-lsm-api 1.18.0 → 1.20.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 +3 -3
- package/README.md +2 -2
- package/dist/apis/ContentApi.d.ts +2 -0
- package/dist/apis/ContentApi.js +2 -0
- package/dist/apis/QuizApi.d.ts +4 -2
- package/dist/apis/QuizApi.js +8 -2
- package/dist/esm/apis/ContentApi.d.ts +2 -0
- package/dist/esm/apis/ContentApi.js +2 -0
- package/dist/esm/apis/QuizApi.d.ts +4 -2
- package/dist/esm/apis/QuizApi.js +8 -2
- package/dist/esm/models/GetQuizQuestions.d.ts +29 -5
- package/dist/esm/models/GetQuizQuestions.js +20 -4
- package/dist/esm/models/GetQuizQuestionsItemsInner.d.ts +75 -0
- package/dist/esm/models/{GetQuizQuestionsQuestionsInner.js → GetQuizQuestionsItemsInner.js} +11 -11
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +105 -0
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.js +84 -0
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.d.ts +56 -0
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.js +59 -0
- package/dist/esm/models/index.d.ts +3 -3
- package/dist/esm/models/index.js +3 -3
- package/dist/models/GetQuizQuestions.d.ts +29 -5
- package/dist/models/GetQuizQuestions.js +20 -4
- package/dist/models/GetQuizQuestionsItemsInner.d.ts +75 -0
- package/dist/models/{GetQuizQuestionsQuestionsInner.js → GetQuizQuestionsItemsInner.js} +16 -16
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +105 -0
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.js +92 -0
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.d.ts +56 -0
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.js +66 -0
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.js +3 -3
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +2 -0
- package/src/apis/QuizApi.ts +12 -2
- package/src/models/GetQuizQuestions.ts +49 -13
- package/src/models/{GetQuizQuestionsQuestionsInner.ts → GetQuizQuestionsItemsInner.ts} +28 -28
- package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +171 -0
- package/src/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.ts +102 -0
- package/src/models/index.ts +3 -3
- package/dist/esm/models/GetQuizQuestionsQuestionsInner.d.ts +0 -75
- package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetails.d.ts +0 -81
- package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetails.js +0 -76
- package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.d.ts +0 -50
- package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.js +0 -53
- package/dist/models/GetQuizQuestionsQuestionsInner.d.ts +0 -75
- package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetails.d.ts +0 -81
- package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetails.js +0 -84
- package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.d.ts +0 -50
- package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.js +0 -60
- package/src/models/GetQuizQuestionsQuestionsInnerQuestionDetails.ts +0 -139
- package/src/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.ts +0 -92
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* LMS API
|
|
6
|
-
* LMS API
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = exports.GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = void 0;
|
|
17
|
-
exports.instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails = instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
18
|
-
exports.GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON = GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON;
|
|
19
|
-
exports.GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped = GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped;
|
|
20
|
-
exports.GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON = GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON;
|
|
21
|
-
exports.GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped = GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped;
|
|
22
|
-
const GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner_1 = require("./GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = {
|
|
27
|
-
SingleAnswer: 'single_answer',
|
|
28
|
-
MultipleAnswer: 'multiple_answer',
|
|
29
|
-
FillInBlank: 'fill_in_blank'
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
exports.GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = {
|
|
35
|
-
Beginner: 'beginner',
|
|
36
|
-
Intermediate: 'intermediate',
|
|
37
|
-
Advanced: 'advanced'
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetails interface.
|
|
41
|
-
*/
|
|
42
|
-
function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails(value) {
|
|
43
|
-
if (!('questionText' in value) || value['questionText'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
46
|
-
return false;
|
|
47
|
-
if (!('topic' in value) || value['topic'] === undefined)
|
|
48
|
-
return false;
|
|
49
|
-
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
50
|
-
return false;
|
|
51
|
-
return true;
|
|
52
|
-
}
|
|
53
|
-
function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON(json) {
|
|
54
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json, false);
|
|
55
|
-
}
|
|
56
|
-
function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
-
if (json == null) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
'questionText': json['question_text'],
|
|
62
|
-
'questionType': json['question_type'],
|
|
63
|
-
'topic': json['topic'],
|
|
64
|
-
'difficultyLevel': json['difficulty_level'],
|
|
65
|
-
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
66
|
-
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner_1.GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON)),
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON(json) {
|
|
70
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(json, false);
|
|
71
|
-
}
|
|
72
|
-
function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
'question_text': value['questionText'],
|
|
78
|
-
'question_type': value['questionType'],
|
|
79
|
-
'topic': value['topic'],
|
|
80
|
-
'difficulty_level': value['difficultyLevel'],
|
|
81
|
-
'explanation': value['explanation'],
|
|
82
|
-
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner_1.GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON)),
|
|
83
|
-
};
|
|
84
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
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 GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
|
|
16
|
-
*/
|
|
17
|
-
export interface GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner {
|
|
18
|
-
/**
|
|
19
|
-
* Answer choice ID
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
|
|
22
|
-
*/
|
|
23
|
-
id: string;
|
|
24
|
-
/**
|
|
25
|
-
* Answer choice text
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
|
|
28
|
-
*/
|
|
29
|
-
text: string;
|
|
30
|
-
/**
|
|
31
|
-
* Whether this choice is correct
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
|
|
34
|
-
*/
|
|
35
|
-
isCorrect: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Display order of choice
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
|
|
40
|
-
*/
|
|
41
|
-
displayOrder?: number;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner(value: object): value is GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner;
|
|
47
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner;
|
|
48
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner;
|
|
49
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner;
|
|
50
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value?: GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* LMS API
|
|
6
|
-
* LMS API
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfGetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner = instanceOfGetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner;
|
|
17
|
-
exports.GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON = GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON;
|
|
18
|
-
exports.GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped = GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped;
|
|
19
|
-
exports.GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON = GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON;
|
|
20
|
-
exports.GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped = GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('text' in value) || value['text'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('isCorrect' in value) || value['isCorrect'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json) {
|
|
34
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'id': json['id'],
|
|
42
|
-
'text': json['text'],
|
|
43
|
-
'isCorrect': json['is_correct'],
|
|
44
|
-
'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON(json) {
|
|
48
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'id': value['id'],
|
|
56
|
-
'text': value['text'],
|
|
57
|
-
'is_correct': value['isCorrect'],
|
|
58
|
-
'display_order': value['displayOrder'],
|
|
59
|
-
};
|
|
60
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner } from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
|
|
17
|
-
import {
|
|
18
|
-
GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON,
|
|
19
|
-
GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped,
|
|
20
|
-
GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON,
|
|
21
|
-
GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped,
|
|
22
|
-
} from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Question details
|
|
26
|
-
* @export
|
|
27
|
-
* @interface GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
28
|
-
*/
|
|
29
|
-
export interface GetQuizQuestionsQuestionsInnerQuestionDetails {
|
|
30
|
-
/**
|
|
31
|
-
* The question text
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
34
|
-
*/
|
|
35
|
-
questionText: string;
|
|
36
|
-
/**
|
|
37
|
-
* Type of question
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
40
|
-
*/
|
|
41
|
-
questionType: GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum;
|
|
42
|
-
/**
|
|
43
|
-
* Question topic
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
46
|
-
*/
|
|
47
|
-
topic: string;
|
|
48
|
-
/**
|
|
49
|
-
* Question difficulty
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
52
|
-
*/
|
|
53
|
-
difficultyLevel: GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum;
|
|
54
|
-
/**
|
|
55
|
-
* Explanation of correct answer
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
58
|
-
*/
|
|
59
|
-
explanation?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Available answer choices
|
|
62
|
-
* @type {Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>}
|
|
63
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
64
|
-
*/
|
|
65
|
-
answerChoices?: Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @export
|
|
71
|
-
*/
|
|
72
|
-
export const GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = {
|
|
73
|
-
SingleAnswer: 'single_answer',
|
|
74
|
-
MultipleAnswer: 'multiple_answer',
|
|
75
|
-
FillInBlank: 'fill_in_blank'
|
|
76
|
-
} as const;
|
|
77
|
-
export type GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum];
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @export
|
|
81
|
-
*/
|
|
82
|
-
export const GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = {
|
|
83
|
-
Beginner: 'beginner',
|
|
84
|
-
Intermediate: 'intermediate',
|
|
85
|
-
Advanced: 'advanced'
|
|
86
|
-
} as const;
|
|
87
|
-
export type GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum];
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetails interface.
|
|
92
|
-
*/
|
|
93
|
-
export function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails(value: object): value is GetQuizQuestionsQuestionsInnerQuestionDetails {
|
|
94
|
-
if (!('questionText' in value) || value['questionText'] === undefined) return false;
|
|
95
|
-
if (!('questionType' in value) || value['questionType'] === undefined) return false;
|
|
96
|
-
if (!('topic' in value) || value['topic'] === undefined) return false;
|
|
97
|
-
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined) return false;
|
|
98
|
-
return true;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails {
|
|
102
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json, false);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInnerQuestionDetails {
|
|
106
|
-
if (json == null) {
|
|
107
|
-
return json;
|
|
108
|
-
}
|
|
109
|
-
return {
|
|
110
|
-
|
|
111
|
-
'questionText': json['question_text'],
|
|
112
|
-
'questionType': json['question_type'],
|
|
113
|
-
'topic': json['topic'],
|
|
114
|
-
'difficultyLevel': json['difficulty_level'],
|
|
115
|
-
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
116
|
-
'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON)),
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails {
|
|
121
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(json, false);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(value?: GetQuizQuestionsQuestionsInnerQuestionDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
125
|
-
if (value == null) {
|
|
126
|
-
return value;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
return {
|
|
130
|
-
|
|
131
|
-
'question_text': value['questionText'],
|
|
132
|
-
'question_type': value['questionType'],
|
|
133
|
-
'topic': value['topic'],
|
|
134
|
-
'difficulty_level': value['difficultyLevel'],
|
|
135
|
-
'explanation': value['explanation'],
|
|
136
|
-
'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON)),
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
|
|
@@ -1,92 +0,0 @@
|
|
|
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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
|
|
20
|
-
*/
|
|
21
|
-
export interface GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner {
|
|
22
|
-
/**
|
|
23
|
-
* Answer choice ID
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
28
|
-
/**
|
|
29
|
-
* Answer choice text
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
|
|
32
|
-
*/
|
|
33
|
-
text: string;
|
|
34
|
-
/**
|
|
35
|
-
* Whether this choice is correct
|
|
36
|
-
* @type {boolean}
|
|
37
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
|
|
38
|
-
*/
|
|
39
|
-
isCorrect: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Display order of choice
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
|
|
44
|
-
*/
|
|
45
|
-
displayOrder?: number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner(value: object): value is GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner {
|
|
52
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
-
if (!('text' in value) || value['text'] === undefined) return false;
|
|
54
|
-
if (!('isCorrect' in value) || value['isCorrect'] === undefined) return false;
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner {
|
|
59
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, false);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner {
|
|
63
|
-
if (json == null) {
|
|
64
|
-
return json;
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
|
|
68
|
-
'id': json['id'],
|
|
69
|
-
'text': json['text'],
|
|
70
|
-
'isCorrect': json['is_correct'],
|
|
71
|
-
'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner {
|
|
76
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value?: GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'id': value['id'],
|
|
87
|
-
'text': value['text'],
|
|
88
|
-
'is_correct': value['isCorrect'],
|
|
89
|
-
'display_order': value['displayOrder'],
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
|