@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
|
@@ -0,0 +1,59 @@
|
|
|
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 GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('isCorrect' in value) || value['isCorrect'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json) {
|
|
31
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'id': json['id'],
|
|
39
|
+
'externalId': json['external_id'],
|
|
40
|
+
'text': json['text'],
|
|
41
|
+
'isCorrect': json['is_correct'],
|
|
42
|
+
'displayOrder': json['display_order'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON(json) {
|
|
46
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': value['id'],
|
|
54
|
+
'external_id': value['externalId'],
|
|
55
|
+
'text': value['text'],
|
|
56
|
+
'is_correct': value['isCorrect'],
|
|
57
|
+
'display_order': value['displayOrder'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -79,9 +79,9 @@ export * from './GetQuizListAllOfFilters';
|
|
|
79
79
|
export * from './GetQuizListAllOfQuizzes';
|
|
80
80
|
export * from './GetQuizListAllOfStatistics';
|
|
81
81
|
export * from './GetQuizQuestions';
|
|
82
|
-
export * from './
|
|
83
|
-
export * from './
|
|
84
|
-
export * from './
|
|
82
|
+
export * from './GetQuizQuestionsItemsInner';
|
|
83
|
+
export * from './GetQuizQuestionsItemsInnerQuestionDetails';
|
|
84
|
+
export * from './GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner';
|
|
85
85
|
export * from './GetQuizResults';
|
|
86
86
|
export * from './GetQuizResultsFeedback';
|
|
87
87
|
export * from './GetQuizResultsFeedbackDifficultyPerformanceInner';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -81,9 +81,9 @@ export * from './GetQuizListAllOfFilters';
|
|
|
81
81
|
export * from './GetQuizListAllOfQuizzes';
|
|
82
82
|
export * from './GetQuizListAllOfStatistics';
|
|
83
83
|
export * from './GetQuizQuestions';
|
|
84
|
-
export * from './
|
|
85
|
-
export * from './
|
|
86
|
-
export * from './
|
|
84
|
+
export * from './GetQuizQuestionsItemsInner';
|
|
85
|
+
export * from './GetQuizQuestionsItemsInnerQuestionDetails';
|
|
86
|
+
export * from './GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner';
|
|
87
87
|
export * from './GetQuizResults';
|
|
88
88
|
export * from './GetQuizResultsFeedback';
|
|
89
89
|
export * from './GetQuizResultsFeedbackDifficultyPerformanceInner';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { GetQuizQuestionsItemsInner } from './GetQuizQuestionsItemsInner';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -17,13 +17,31 @@ import type { GetQuizQuestionsQuestionsInner } from './GetQuizQuestionsQuestions
|
|
|
17
17
|
*/
|
|
18
18
|
export interface GetQuizQuestions {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetQuizQuestions
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetQuizQuestions
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetQuizQuestions
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of questions in the quiz
|
|
39
|
+
* @type {number}
|
|
22
40
|
* @memberof GetQuizQuestions
|
|
23
41
|
*/
|
|
24
|
-
|
|
42
|
+
totalItems: number;
|
|
25
43
|
/**
|
|
26
|
-
* Total number of questions in quiz
|
|
44
|
+
* Total number of questions in quiz (same as totalItems)
|
|
27
45
|
* @type {number}
|
|
28
46
|
* @memberof GetQuizQuestions
|
|
29
47
|
*/
|
|
@@ -40,6 +58,12 @@ export interface GetQuizQuestions {
|
|
|
40
58
|
* @memberof GetQuizQuestions
|
|
41
59
|
*/
|
|
42
60
|
selectionMethod: GetQuizQuestionsSelectionMethodEnum;
|
|
61
|
+
/**
|
|
62
|
+
* Questions in the quiz (paginated)
|
|
63
|
+
* @type {Array<GetQuizQuestionsItemsInner>}
|
|
64
|
+
* @memberof GetQuizQuestions
|
|
65
|
+
*/
|
|
66
|
+
items: Array<GetQuizQuestionsItemsInner>;
|
|
43
67
|
}
|
|
44
68
|
/**
|
|
45
69
|
* @export
|
|
@@ -19,7 +19,7 @@ exports.GetQuizQuestionsFromJSON = GetQuizQuestionsFromJSON;
|
|
|
19
19
|
exports.GetQuizQuestionsFromJSONTyped = GetQuizQuestionsFromJSONTyped;
|
|
20
20
|
exports.GetQuizQuestionsToJSON = GetQuizQuestionsToJSON;
|
|
21
21
|
exports.GetQuizQuestionsToJSONTyped = GetQuizQuestionsToJSONTyped;
|
|
22
|
-
const
|
|
22
|
+
const GetQuizQuestionsItemsInner_1 = require("./GetQuizQuestionsItemsInner");
|
|
23
23
|
/**
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
@@ -31,7 +31,13 @@ exports.GetQuizQuestionsSelectionMethodEnum = {
|
|
|
31
31
|
* Check if a given object implements the GetQuizQuestions interface.
|
|
32
32
|
*/
|
|
33
33
|
function instanceOfGetQuizQuestions(value) {
|
|
34
|
-
if (!('
|
|
34
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
35
41
|
return false;
|
|
36
42
|
if (!('totalQuestions' in value) || value['totalQuestions'] === undefined)
|
|
37
43
|
return false;
|
|
@@ -39,6 +45,8 @@ function instanceOfGetQuizQuestions(value) {
|
|
|
39
45
|
return false;
|
|
40
46
|
if (!('selectionMethod' in value) || value['selectionMethod'] === undefined)
|
|
41
47
|
return false;
|
|
48
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
49
|
+
return false;
|
|
42
50
|
return true;
|
|
43
51
|
}
|
|
44
52
|
function GetQuizQuestionsFromJSON(json) {
|
|
@@ -49,10 +57,14 @@ function GetQuizQuestionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
57
|
return json;
|
|
50
58
|
}
|
|
51
59
|
return {
|
|
52
|
-
'
|
|
60
|
+
'page': json['page'],
|
|
61
|
+
'pageSize': json['pageSize'],
|
|
62
|
+
'totalPages': json['totalPages'],
|
|
63
|
+
'totalItems': json['totalItems'],
|
|
53
64
|
'totalQuestions': json['total_questions'],
|
|
54
65
|
'totalPoints': json['total_points'],
|
|
55
66
|
'selectionMethod': json['selection_method'],
|
|
67
|
+
'items': (json['items'].map(GetQuizQuestionsItemsInner_1.GetQuizQuestionsItemsInnerFromJSON)),
|
|
56
68
|
};
|
|
57
69
|
}
|
|
58
70
|
function GetQuizQuestionsToJSON(json) {
|
|
@@ -63,9 +75,13 @@ function GetQuizQuestionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
75
|
return value;
|
|
64
76
|
}
|
|
65
77
|
return {
|
|
66
|
-
'
|
|
78
|
+
'page': value['page'],
|
|
79
|
+
'pageSize': value['pageSize'],
|
|
80
|
+
'totalPages': value['totalPages'],
|
|
81
|
+
'totalItems': value['totalItems'],
|
|
67
82
|
'total_questions': value['totalQuestions'],
|
|
68
83
|
'total_points': value['totalPoints'],
|
|
69
84
|
'selection_method': value['selectionMethod'],
|
|
85
|
+
'items': (value['items'].map(GetQuizQuestionsItemsInner_1.GetQuizQuestionsItemsInnerToJSON)),
|
|
70
86
|
};
|
|
71
87
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { GetQuizQuestionsItemsInnerQuestionDetails } from './GetQuizQuestionsItemsInnerQuestionDetails';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetQuizQuestionsItemsInner
|
|
17
|
+
*/
|
|
18
|
+
export interface GetQuizQuestionsItemsInner {
|
|
19
|
+
/**
|
|
20
|
+
* Quiz-question relationship ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* ID of the question
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
29
|
+
*/
|
|
30
|
+
questionId: string;
|
|
31
|
+
/**
|
|
32
|
+
* External ID of the question
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
35
|
+
*/
|
|
36
|
+
questionExternalId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Order of question in quiz
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
41
|
+
*/
|
|
42
|
+
questionOrder: number;
|
|
43
|
+
/**
|
|
44
|
+
* Points assigned to this question
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
47
|
+
*/
|
|
48
|
+
points: number;
|
|
49
|
+
/**
|
|
50
|
+
* Whether question is locked to specific version
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
53
|
+
*/
|
|
54
|
+
versionLocked: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {GetQuizQuestionsItemsInnerQuestionDetails}
|
|
58
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
59
|
+
*/
|
|
60
|
+
questionDetails: GetQuizQuestionsItemsInnerQuestionDetails;
|
|
61
|
+
/**
|
|
62
|
+
* When question was added to quiz
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof GetQuizQuestionsItemsInner
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the GetQuizQuestionsItemsInner interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfGetQuizQuestionsItemsInner(value: object): value is GetQuizQuestionsItemsInner;
|
|
72
|
+
export declare function GetQuizQuestionsItemsInnerFromJSON(json: any): GetQuizQuestionsItemsInner;
|
|
73
|
+
export declare function GetQuizQuestionsItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsItemsInner;
|
|
74
|
+
export declare function GetQuizQuestionsItemsInnerToJSON(json: any): GetQuizQuestionsItemsInner;
|
|
75
|
+
export declare function GetQuizQuestionsItemsInnerToJSONTyped(value?: GetQuizQuestionsItemsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
const
|
|
16
|
+
exports.instanceOfGetQuizQuestionsItemsInner = instanceOfGetQuizQuestionsItemsInner;
|
|
17
|
+
exports.GetQuizQuestionsItemsInnerFromJSON = GetQuizQuestionsItemsInnerFromJSON;
|
|
18
|
+
exports.GetQuizQuestionsItemsInnerFromJSONTyped = GetQuizQuestionsItemsInnerFromJSONTyped;
|
|
19
|
+
exports.GetQuizQuestionsItemsInnerToJSON = GetQuizQuestionsItemsInnerToJSON;
|
|
20
|
+
exports.GetQuizQuestionsItemsInnerToJSONTyped = GetQuizQuestionsItemsInnerToJSONTyped;
|
|
21
|
+
const GetQuizQuestionsItemsInnerQuestionDetails_1 = require("./GetQuizQuestionsItemsInnerQuestionDetails");
|
|
22
22
|
/**
|
|
23
|
-
* Check if a given object implements the
|
|
23
|
+
* Check if a given object implements the GetQuizQuestionsItemsInner interface.
|
|
24
24
|
*/
|
|
25
|
-
function
|
|
25
|
+
function instanceOfGetQuizQuestionsItemsInner(value) {
|
|
26
26
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
27
|
return false;
|
|
28
28
|
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
@@ -41,10 +41,10 @@ function instanceOfGetQuizQuestionsQuestionsInner(value) {
|
|
|
41
41
|
return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return
|
|
44
|
+
function GetQuizQuestionsItemsInnerFromJSON(json) {
|
|
45
|
+
return GetQuizQuestionsItemsInnerFromJSONTyped(json, false);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function GetQuizQuestionsItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
48
|
if (json == null) {
|
|
49
49
|
return json;
|
|
50
50
|
}
|
|
@@ -55,14 +55,14 @@ function GetQuizQuestionsQuestionsInnerFromJSONTyped(json, ignoreDiscriminator)
|
|
|
55
55
|
'questionOrder': json['question_order'],
|
|
56
56
|
'points': json['points'],
|
|
57
57
|
'versionLocked': json['version_locked'],
|
|
58
|
-
'questionDetails': (0,
|
|
58
|
+
'questionDetails': (0, GetQuizQuestionsItemsInnerQuestionDetails_1.GetQuizQuestionsItemsInnerQuestionDetailsFromJSON)(json['question_details']),
|
|
59
59
|
'createdAt': (new Date(json['created_at'])),
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
62
|
+
function GetQuizQuestionsItemsInnerToJSON(json) {
|
|
63
|
+
return GetQuizQuestionsItemsInnerToJSONTyped(json, false);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function GetQuizQuestionsItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
66
|
if (value == null) {
|
|
67
67
|
return value;
|
|
68
68
|
}
|
|
@@ -73,7 +73,7 @@ function GetQuizQuestionsQuestionsInnerToJSONTyped(value, ignoreDiscriminator =
|
|
|
73
73
|
'question_order': value['questionOrder'],
|
|
74
74
|
'points': value['points'],
|
|
75
75
|
'version_locked': value['versionLocked'],
|
|
76
|
-
'question_details': (0,
|
|
76
|
+
'question_details': (0, GetQuizQuestionsItemsInnerQuestionDetails_1.GetQuizQuestionsItemsInnerQuestionDetailsToJSON)(value['questionDetails']),
|
|
77
77
|
'created_at': ((value['createdAt']).toISOString()),
|
|
78
78
|
};
|
|
79
79
|
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner } from './GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner';
|
|
13
|
+
/**
|
|
14
|
+
* Question details including all metadata
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetQuizQuestionsItemsInnerQuestionDetails
|
|
17
|
+
*/
|
|
18
|
+
export interface GetQuizQuestionsItemsInnerQuestionDetails {
|
|
19
|
+
/**
|
|
20
|
+
* The question text
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
23
|
+
*/
|
|
24
|
+
questionText: string;
|
|
25
|
+
/**
|
|
26
|
+
* Type of question
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
29
|
+
*/
|
|
30
|
+
questionType: GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* Question topic
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
35
|
+
*/
|
|
36
|
+
topic: string;
|
|
37
|
+
/**
|
|
38
|
+
* Question difficulty
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
41
|
+
*/
|
|
42
|
+
difficultyLevel: GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Course associated with question
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
47
|
+
*/
|
|
48
|
+
course?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Explanation of correct answer
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
53
|
+
*/
|
|
54
|
+
explanation?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Tags associated with question
|
|
57
|
+
* @type {Array<string>}
|
|
58
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
59
|
+
*/
|
|
60
|
+
tags?: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Version number of this question
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
65
|
+
*/
|
|
66
|
+
versionNumber?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Whether this is the latest version
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
71
|
+
*/
|
|
72
|
+
isLatestVersion?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Available answer choices
|
|
75
|
+
* @type {Array<GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner>}
|
|
76
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetails
|
|
77
|
+
*/
|
|
78
|
+
answerChoices?: Array<GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export declare const GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum: {
|
|
84
|
+
readonly SingleAnswer: "single_answer";
|
|
85
|
+
readonly MultipleAnswer: "multiple_answer";
|
|
86
|
+
readonly FillInBlank: "fill_in_blank";
|
|
87
|
+
};
|
|
88
|
+
export type GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum];
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export declare const GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum: {
|
|
93
|
+
readonly Beginner: "beginner";
|
|
94
|
+
readonly Intermediate: "intermediate";
|
|
95
|
+
readonly Advanced: "advanced";
|
|
96
|
+
};
|
|
97
|
+
export type GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum = typeof GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum[keyof typeof GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum];
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the GetQuizQuestionsItemsInnerQuestionDetails interface.
|
|
100
|
+
*/
|
|
101
|
+
export declare function instanceOfGetQuizQuestionsItemsInnerQuestionDetails(value: object): value is GetQuizQuestionsItemsInnerQuestionDetails;
|
|
102
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsFromJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetails;
|
|
103
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsItemsInnerQuestionDetails;
|
|
104
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsToJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetails;
|
|
105
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped(value?: GetQuizQuestionsItemsInnerQuestionDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,92 @@
|
|
|
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.GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum = exports.GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfGetQuizQuestionsItemsInnerQuestionDetails = instanceOfGetQuizQuestionsItemsInnerQuestionDetails;
|
|
18
|
+
exports.GetQuizQuestionsItemsInnerQuestionDetailsFromJSON = GetQuizQuestionsItemsInnerQuestionDetailsFromJSON;
|
|
19
|
+
exports.GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped = GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped;
|
|
20
|
+
exports.GetQuizQuestionsItemsInnerQuestionDetailsToJSON = GetQuizQuestionsItemsInnerQuestionDetailsToJSON;
|
|
21
|
+
exports.GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped = GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped;
|
|
22
|
+
const GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner_1 = require("./GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = {
|
|
27
|
+
SingleAnswer: 'single_answer',
|
|
28
|
+
MultipleAnswer: 'multiple_answer',
|
|
29
|
+
FillInBlank: 'fill_in_blank'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum = {
|
|
35
|
+
Beginner: 'beginner',
|
|
36
|
+
Intermediate: 'intermediate',
|
|
37
|
+
Advanced: 'advanced'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the GetQuizQuestionsItemsInnerQuestionDetails interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfGetQuizQuestionsItemsInnerQuestionDetails(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 GetQuizQuestionsItemsInnerQuestionDetailsFromJSON(json) {
|
|
54
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped(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
|
+
'course': json['course'] == null ? undefined : json['course'],
|
|
66
|
+
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
67
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
68
|
+
'versionNumber': json['version_number'] == null ? undefined : json['version_number'],
|
|
69
|
+
'isLatestVersion': json['is_latest_version'] == null ? undefined : json['is_latest_version'],
|
|
70
|
+
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner_1.GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function GetQuizQuestionsItemsInnerQuestionDetailsToJSON(json) {
|
|
74
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'question_text': value['questionText'],
|
|
82
|
+
'question_type': value['questionType'],
|
|
83
|
+
'topic': value['topic'],
|
|
84
|
+
'difficulty_level': value['difficultyLevel'],
|
|
85
|
+
'course': value['course'],
|
|
86
|
+
'explanation': value['explanation'],
|
|
87
|
+
'tags': value['tags'],
|
|
88
|
+
'version_number': value['versionNumber'],
|
|
89
|
+
'is_latest_version': value['isLatestVersion'],
|
|
90
|
+
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner_1.GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON)),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner {
|
|
18
|
+
/**
|
|
19
|
+
* Answer choice ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* External ID of answer choice
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
28
|
+
*/
|
|
29
|
+
externalId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Answer choice text
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
34
|
+
*/
|
|
35
|
+
text: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether this choice is correct
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
40
|
+
*/
|
|
41
|
+
isCorrect: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Display order of choice
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
|
|
46
|
+
*/
|
|
47
|
+
displayOrder: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfGetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner(value: object): value is GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner;
|
|
53
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner;
|
|
54
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner;
|
|
55
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner;
|
|
56
|
+
export declare function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value?: GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfGetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner = instanceOfGetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner;
|
|
17
|
+
exports.GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON = GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON;
|
|
18
|
+
exports.GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped = GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped;
|
|
19
|
+
exports.GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON = GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON;
|
|
20
|
+
exports.GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped = GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('isCorrect' in value) || value['isCorrect'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json) {
|
|
38
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'externalId': json['external_id'],
|
|
47
|
+
'text': json['text'],
|
|
48
|
+
'isCorrect': json['is_correct'],
|
|
49
|
+
'displayOrder': json['display_order'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON(json) {
|
|
53
|
+
return GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'external_id': value['externalId'],
|
|
62
|
+
'text': value['text'],
|
|
63
|
+
'is_correct': value['isCorrect'],
|
|
64
|
+
'display_order': value['displayOrder'],
|
|
65
|
+
};
|
|
66
|
+
}
|