@easyedu/js-lsm-api 1.18.0 → 1.19.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/QuizApi.d.ts +4 -2
- package/dist/apis/QuizApi.js +8 -2
- 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/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,75 +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
|
-
import type { GetQuizQuestionsQuestionsInnerQuestionDetails } from './GetQuizQuestionsQuestionsInnerQuestionDetails';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GetQuizQuestionsQuestionsInner
|
|
17
|
-
*/
|
|
18
|
-
export interface GetQuizQuestionsQuestionsInner {
|
|
19
|
-
/**
|
|
20
|
-
* Quiz-question relationship ID
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
23
|
-
*/
|
|
24
|
-
id: string;
|
|
25
|
-
/**
|
|
26
|
-
* ID of the question
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
29
|
-
*/
|
|
30
|
-
questionId: string;
|
|
31
|
-
/**
|
|
32
|
-
* External ID of the question
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
35
|
-
*/
|
|
36
|
-
questionExternalId: string;
|
|
37
|
-
/**
|
|
38
|
-
* Order of question in quiz
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
41
|
-
*/
|
|
42
|
-
questionOrder: number;
|
|
43
|
-
/**
|
|
44
|
-
* Points assigned to this question
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
47
|
-
*/
|
|
48
|
-
points: number;
|
|
49
|
-
/**
|
|
50
|
-
* Whether question is locked to specific version
|
|
51
|
-
* @type {boolean}
|
|
52
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
53
|
-
*/
|
|
54
|
-
versionLocked: boolean;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {GetQuizQuestionsQuestionsInnerQuestionDetails}
|
|
58
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
59
|
-
*/
|
|
60
|
-
questionDetails: GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
61
|
-
/**
|
|
62
|
-
* When question was added to quiz
|
|
63
|
-
* @type {Date}
|
|
64
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
65
|
-
*/
|
|
66
|
-
createdAt: Date;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInner interface.
|
|
70
|
-
*/
|
|
71
|
-
export declare function instanceOfGetQuizQuestionsQuestionsInner(value: object): value is GetQuizQuestionsQuestionsInner;
|
|
72
|
-
export declare function GetQuizQuestionsQuestionsInnerFromJSON(json: any): GetQuizQuestionsQuestionsInner;
|
|
73
|
-
export declare function GetQuizQuestionsQuestionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInner;
|
|
74
|
-
export declare function GetQuizQuestionsQuestionsInnerToJSON(json: any): GetQuizQuestionsQuestionsInner;
|
|
75
|
-
export declare function GetQuizQuestionsQuestionsInnerToJSONTyped(value?: GetQuizQuestionsQuestionsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,81 +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
|
-
import type { GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner } from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
|
|
13
|
-
/**
|
|
14
|
-
* Question details
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
17
|
-
*/
|
|
18
|
-
export interface GetQuizQuestionsQuestionsInnerQuestionDetails {
|
|
19
|
-
/**
|
|
20
|
-
* The question text
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
23
|
-
*/
|
|
24
|
-
questionText: string;
|
|
25
|
-
/**
|
|
26
|
-
* Type of question
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
29
|
-
*/
|
|
30
|
-
questionType: GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum;
|
|
31
|
-
/**
|
|
32
|
-
* Question topic
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
35
|
-
*/
|
|
36
|
-
topic: string;
|
|
37
|
-
/**
|
|
38
|
-
* Question difficulty
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
41
|
-
*/
|
|
42
|
-
difficultyLevel: GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum;
|
|
43
|
-
/**
|
|
44
|
-
* Explanation of correct answer
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
47
|
-
*/
|
|
48
|
-
explanation?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Available answer choices
|
|
51
|
-
* @type {Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>}
|
|
52
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
53
|
-
*/
|
|
54
|
-
answerChoices?: Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @export
|
|
58
|
-
*/
|
|
59
|
-
export declare const GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum: {
|
|
60
|
-
readonly SingleAnswer: "single_answer";
|
|
61
|
-
readonly MultipleAnswer: "multiple_answer";
|
|
62
|
-
readonly FillInBlank: "fill_in_blank";
|
|
63
|
-
};
|
|
64
|
-
export type GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum];
|
|
65
|
-
/**
|
|
66
|
-
* @export
|
|
67
|
-
*/
|
|
68
|
-
export declare const GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum: {
|
|
69
|
-
readonly Beginner: "beginner";
|
|
70
|
-
readonly Intermediate: "intermediate";
|
|
71
|
-
readonly Advanced: "advanced";
|
|
72
|
-
};
|
|
73
|
-
export type GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum];
|
|
74
|
-
/**
|
|
75
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetails interface.
|
|
76
|
-
*/
|
|
77
|
-
export declare function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails(value: object): value is GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
78
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
79
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
80
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
81
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(value?: GetQuizQuestionsQuestionsInnerQuestionDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,76 +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
|
-
import { GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON, GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON, } from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
|
|
15
|
-
/**
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = {
|
|
19
|
-
SingleAnswer: 'single_answer',
|
|
20
|
-
MultipleAnswer: 'multiple_answer',
|
|
21
|
-
FillInBlank: 'fill_in_blank'
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
export const GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = {
|
|
27
|
-
Beginner: 'beginner',
|
|
28
|
-
Intermediate: 'intermediate',
|
|
29
|
-
Advanced: 'advanced'
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetails interface.
|
|
33
|
-
*/
|
|
34
|
-
export function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails(value) {
|
|
35
|
-
if (!('questionText' in value) || value['questionText'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
if (!('topic' in value) || value['topic'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON(json) {
|
|
46
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
-
if (json == null) {
|
|
50
|
-
return json;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'questionText': json['question_text'],
|
|
54
|
-
'questionType': json['question_type'],
|
|
55
|
-
'topic': json['topic'],
|
|
56
|
-
'difficultyLevel': json['difficulty_level'],
|
|
57
|
-
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
58
|
-
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON)),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON(json) {
|
|
62
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(json, false);
|
|
63
|
-
}
|
|
64
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
'question_text': value['questionText'],
|
|
70
|
-
'question_type': value['questionType'],
|
|
71
|
-
'topic': value['topic'],
|
|
72
|
-
'difficulty_level': value['difficultyLevel'],
|
|
73
|
-
'explanation': value['explanation'],
|
|
74
|
-
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON)),
|
|
75
|
-
};
|
|
76
|
-
}
|
package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.d.ts
DELETED
|
@@ -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,53 +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
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner(value) {
|
|
18
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
if (!('text' in value) || value['text'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
if (!('isCorrect' in value) || value['isCorrect'] === undefined)
|
|
23
|
-
return false;
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json) {
|
|
27
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if (json == null) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
'id': json['id'],
|
|
35
|
-
'text': json['text'],
|
|
36
|
-
'isCorrect': json['is_correct'],
|
|
37
|
-
'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON(json) {
|
|
41
|
-
return GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'id': value['id'],
|
|
49
|
-
'text': value['text'],
|
|
50
|
-
'is_correct': value['isCorrect'],
|
|
51
|
-
'display_order': value['displayOrder'],
|
|
52
|
-
};
|
|
53
|
-
}
|
|
@@ -1,75 +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
|
-
import type { GetQuizQuestionsQuestionsInnerQuestionDetails } from './GetQuizQuestionsQuestionsInnerQuestionDetails';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GetQuizQuestionsQuestionsInner
|
|
17
|
-
*/
|
|
18
|
-
export interface GetQuizQuestionsQuestionsInner {
|
|
19
|
-
/**
|
|
20
|
-
* Quiz-question relationship ID
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
23
|
-
*/
|
|
24
|
-
id: string;
|
|
25
|
-
/**
|
|
26
|
-
* ID of the question
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
29
|
-
*/
|
|
30
|
-
questionId: string;
|
|
31
|
-
/**
|
|
32
|
-
* External ID of the question
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
35
|
-
*/
|
|
36
|
-
questionExternalId: string;
|
|
37
|
-
/**
|
|
38
|
-
* Order of question in quiz
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
41
|
-
*/
|
|
42
|
-
questionOrder: number;
|
|
43
|
-
/**
|
|
44
|
-
* Points assigned to this question
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
47
|
-
*/
|
|
48
|
-
points: number;
|
|
49
|
-
/**
|
|
50
|
-
* Whether question is locked to specific version
|
|
51
|
-
* @type {boolean}
|
|
52
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
53
|
-
*/
|
|
54
|
-
versionLocked: boolean;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {GetQuizQuestionsQuestionsInnerQuestionDetails}
|
|
58
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
59
|
-
*/
|
|
60
|
-
questionDetails: GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
61
|
-
/**
|
|
62
|
-
* When question was added to quiz
|
|
63
|
-
* @type {Date}
|
|
64
|
-
* @memberof GetQuizQuestionsQuestionsInner
|
|
65
|
-
*/
|
|
66
|
-
createdAt: Date;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInner interface.
|
|
70
|
-
*/
|
|
71
|
-
export declare function instanceOfGetQuizQuestionsQuestionsInner(value: object): value is GetQuizQuestionsQuestionsInner;
|
|
72
|
-
export declare function GetQuizQuestionsQuestionsInnerFromJSON(json: any): GetQuizQuestionsQuestionsInner;
|
|
73
|
-
export declare function GetQuizQuestionsQuestionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInner;
|
|
74
|
-
export declare function GetQuizQuestionsQuestionsInnerToJSON(json: any): GetQuizQuestionsQuestionsInner;
|
|
75
|
-
export declare function GetQuizQuestionsQuestionsInnerToJSONTyped(value?: GetQuizQuestionsQuestionsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,81 +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
|
-
import type { GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner } from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
|
|
13
|
-
/**
|
|
14
|
-
* Question details
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
17
|
-
*/
|
|
18
|
-
export interface GetQuizQuestionsQuestionsInnerQuestionDetails {
|
|
19
|
-
/**
|
|
20
|
-
* The question text
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
23
|
-
*/
|
|
24
|
-
questionText: string;
|
|
25
|
-
/**
|
|
26
|
-
* Type of question
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
29
|
-
*/
|
|
30
|
-
questionType: GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum;
|
|
31
|
-
/**
|
|
32
|
-
* Question topic
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
35
|
-
*/
|
|
36
|
-
topic: string;
|
|
37
|
-
/**
|
|
38
|
-
* Question difficulty
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
41
|
-
*/
|
|
42
|
-
difficultyLevel: GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum;
|
|
43
|
-
/**
|
|
44
|
-
* Explanation of correct answer
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
47
|
-
*/
|
|
48
|
-
explanation?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Available answer choices
|
|
51
|
-
* @type {Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>}
|
|
52
|
-
* @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
|
|
53
|
-
*/
|
|
54
|
-
answerChoices?: Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @export
|
|
58
|
-
*/
|
|
59
|
-
export declare const GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum: {
|
|
60
|
-
readonly SingleAnswer: "single_answer";
|
|
61
|
-
readonly MultipleAnswer: "multiple_answer";
|
|
62
|
-
readonly FillInBlank: "fill_in_blank";
|
|
63
|
-
};
|
|
64
|
-
export type GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum];
|
|
65
|
-
/**
|
|
66
|
-
* @export
|
|
67
|
-
*/
|
|
68
|
-
export declare const GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum: {
|
|
69
|
-
readonly Beginner: "beginner";
|
|
70
|
-
readonly Intermediate: "intermediate";
|
|
71
|
-
readonly Advanced: "advanced";
|
|
72
|
-
};
|
|
73
|
-
export type GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum];
|
|
74
|
-
/**
|
|
75
|
-
* Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetails interface.
|
|
76
|
-
*/
|
|
77
|
-
export declare function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails(value: object): value is GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
78
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
79
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
80
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails;
|
|
81
|
-
export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(value?: GetQuizQuestionsQuestionsInnerQuestionDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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;
|