@easyedu/js-lsm-api 1.20.0 → 1.22.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 +6 -1
- package/README.md +2 -2
- package/dist/apis/QuizApi.d.ts +84 -9
- package/dist/apis/QuizApi.js +209 -14
- package/dist/esm/apis/QuizApi.d.ts +84 -9
- package/dist/esm/apis/QuizApi.js +210 -15
- package/dist/esm/models/GetManualQuestionSelectionItem.d.ts +75 -0
- package/dist/esm/models/GetManualQuestionSelectionItem.js +72 -0
- package/dist/esm/models/GetManualQuestionSelectionList.d.ts +63 -0
- package/dist/esm/models/GetManualQuestionSelectionList.js +64 -0
- package/dist/esm/models/GetQuiz.d.ts +0 -14
- package/dist/esm/models/GetQuiz.js +0 -11
- package/dist/esm/models/GetQuizCriteria.d.ts +3 -3
- package/dist/esm/models/GetQuizCriteria.js +3 -3
- package/dist/esm/models/GetQuizCriteriaItem.d.ts +122 -0
- package/dist/esm/models/{GetQuizCriteriaCriteriaInner.js → GetQuizCriteriaItem.js} +10 -10
- package/dist/esm/models/GetQuizCriteriaList.d.ts +57 -0
- package/dist/esm/models/GetQuizCriteriaList.js +60 -0
- package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +122 -0
- package/dist/esm/models/GetQuizCriteriaListItemsInner.js +93 -0
- package/dist/esm/models/GetQuizListAllOfFilters.d.ts +0 -14
- package/dist/esm/models/GetQuizListAllOfFilters.js +0 -9
- package/dist/esm/models/GetQuizListAllOfQuizzes.d.ts +0 -14
- package/dist/esm/models/GetQuizListAllOfQuizzes.js +0 -11
- package/dist/esm/models/PostContentQuiz.d.ts +0 -14
- package/dist/esm/models/PostContentQuiz.js +0 -11
- package/dist/esm/models/PostManualQuestionSelection.d.ts +50 -0
- package/dist/esm/models/PostManualQuestionSelection.js +49 -0
- package/dist/esm/models/PostQuiz.d.ts +0 -14
- package/dist/esm/models/PostQuiz.js +0 -11
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.d.ts +1 -1
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.js +3 -1
- package/dist/esm/models/PutQuiz.d.ts +0 -14
- package/dist/esm/models/PutQuiz.js +0 -9
- package/dist/esm/models/index.d.ts +6 -1
- package/dist/esm/models/index.js +6 -1
- package/dist/models/GetManualQuestionSelectionItem.d.ts +75 -0
- package/dist/models/GetManualQuestionSelectionItem.js +79 -0
- package/dist/models/GetManualQuestionSelectionList.d.ts +63 -0
- package/dist/models/GetManualQuestionSelectionList.js +71 -0
- package/dist/models/GetQuiz.d.ts +0 -14
- package/dist/models/GetQuiz.js +1 -12
- package/dist/models/GetQuizCriteria.d.ts +3 -3
- package/dist/models/GetQuizCriteria.js +3 -3
- package/dist/models/GetQuizCriteriaItem.d.ts +122 -0
- package/dist/models/{GetQuizCriteriaCriteriaInner.js → GetQuizCriteriaItem.js} +16 -16
- package/dist/models/GetQuizCriteriaList.d.ts +57 -0
- package/dist/models/GetQuizCriteriaList.js +67 -0
- package/dist/models/GetQuizCriteriaListItemsInner.d.ts +122 -0
- package/dist/models/GetQuizCriteriaListItemsInner.js +101 -0
- package/dist/models/GetQuizListAllOfFilters.d.ts +0 -14
- package/dist/models/GetQuizListAllOfFilters.js +1 -10
- package/dist/models/GetQuizListAllOfQuizzes.d.ts +0 -14
- package/dist/models/GetQuizListAllOfQuizzes.js +1 -12
- package/dist/models/PostContentQuiz.d.ts +0 -14
- package/dist/models/PostContentQuiz.js +0 -12
- package/dist/models/PostManualQuestionSelection.d.ts +50 -0
- package/dist/models/PostManualQuestionSelection.js +56 -0
- package/dist/models/PostQuiz.d.ts +0 -14
- package/dist/models/PostQuiz.js +1 -12
- package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +1 -1
- package/dist/models/PostQuizCriteriaCriteriaInner.js +3 -1
- package/dist/models/PutQuiz.d.ts +0 -14
- package/dist/models/PutQuiz.js +1 -10
- package/dist/models/index.d.ts +6 -1
- package/dist/models/index.js +6 -1
- package/package.json +1 -1
- package/src/apis/QuizApi.ts +314 -16
- package/src/models/GetManualQuestionSelectionItem.ts +137 -0
- package/src/models/GetManualQuestionSelectionList.ts +119 -0
- package/src/models/GetQuiz.ts +0 -18
- package/src/models/GetQuizCriteria.ts +10 -10
- package/src/models/{GetQuizCriteriaCriteriaInner.ts → GetQuizCriteriaItem.ts} +29 -29
- package/src/models/GetQuizCriteriaList.ts +110 -0
- package/src/models/GetQuizCriteriaListItemsInner.ts +189 -0
- package/src/models/GetQuizListAllOfFilters.ts +0 -17
- package/src/models/GetQuizListAllOfQuizzes.ts +0 -18
- package/src/models/PostContentQuiz.ts +0 -20
- package/src/models/PostManualQuestionSelection.ts +90 -0
- package/src/models/PostQuiz.ts +0 -18
- package/src/models/PostQuizCriteriaCriteriaInner.ts +3 -2
- package/src/models/PutQuiz.ts +0 -17
- package/src/models/index.ts +6 -1
- package/dist/esm/models/GetQuizCriteriaCriteriaInner.d.ts +0 -122
- package/dist/models/GetQuizCriteriaCriteriaInner.d.ts +0 -122
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GetQuizCriteriaEstimatedQuestionsFromJSON, GetQuizCriteriaEstimatedQuestionsToJSON, } from './GetQuizCriteriaEstimatedQuestions';
|
|
15
|
-
import {
|
|
15
|
+
import { GetQuizCriteriaListItemsInnerFromJSON, GetQuizCriteriaListItemsInnerToJSON, } from './GetQuizCriteriaListItemsInner';
|
|
16
16
|
/**
|
|
17
17
|
* Check if a given object implements the GetQuizCriteria interface.
|
|
18
18
|
*/
|
|
@@ -33,7 +33,7 @@ export function GetQuizCriteriaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
|
-
'criteria': (json['criteria'].map(
|
|
36
|
+
'criteria': (json['criteria'].map(GetQuizCriteriaListItemsInnerFromJSON)),
|
|
37
37
|
'totalCriteria': json['total_criteria'],
|
|
38
38
|
'estimatedQuestions': GetQuizCriteriaEstimatedQuestionsFromJSON(json['estimated_questions']),
|
|
39
39
|
};
|
|
@@ -46,7 +46,7 @@ export function GetQuizCriteriaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'criteria': (value['criteria'].map(
|
|
49
|
+
'criteria': (value['criteria'].map(GetQuizCriteriaListItemsInnerToJSON)),
|
|
50
50
|
'total_criteria': value['totalCriteria'],
|
|
51
51
|
'estimated_questions': GetQuizCriteriaEstimatedQuestionsToJSON(value['estimatedQuestions']),
|
|
52
52
|
};
|
|
@@ -0,0 +1,122 @@
|
|
|
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 GetQuizCriteriaItem
|
|
16
|
+
*/
|
|
17
|
+
export interface GetQuizCriteriaItem {
|
|
18
|
+
/**
|
|
19
|
+
* Criteria ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetQuizCriteriaItem
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* External UUID for criteria
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetQuizCriteriaItem
|
|
28
|
+
*/
|
|
29
|
+
externalId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Topic filter (null for any topic)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetQuizCriteriaItem
|
|
34
|
+
*/
|
|
35
|
+
topic?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Difficulty filter (null for any difficulty)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetQuizCriteriaItem
|
|
40
|
+
*/
|
|
41
|
+
difficultyLevel?: GetQuizCriteriaItemDifficultyLevelEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Question type filter (null for any type)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetQuizCriteriaItem
|
|
46
|
+
*/
|
|
47
|
+
questionType?: GetQuizCriteriaItemQuestionTypeEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Tag filters (must match all specified)
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof GetQuizCriteriaItem
|
|
52
|
+
*/
|
|
53
|
+
tags?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Course filter (null for any course)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GetQuizCriteriaItem
|
|
58
|
+
*/
|
|
59
|
+
course?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Minimum questions from this criteria
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GetQuizCriteriaItem
|
|
64
|
+
*/
|
|
65
|
+
minQuestions?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Maximum questions from this criteria
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof GetQuizCriteriaItem
|
|
70
|
+
*/
|
|
71
|
+
maxQuestions?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Selection priority
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof GetQuizCriteriaItem
|
|
76
|
+
*/
|
|
77
|
+
priority: number;
|
|
78
|
+
/**
|
|
79
|
+
* Number of questions matching this criteria
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof GetQuizCriteriaItem
|
|
82
|
+
*/
|
|
83
|
+
matchingQuestionsCount: number;
|
|
84
|
+
/**
|
|
85
|
+
* When criteria was created
|
|
86
|
+
* @type {Date}
|
|
87
|
+
* @memberof GetQuizCriteriaItem
|
|
88
|
+
*/
|
|
89
|
+
createdAt: Date;
|
|
90
|
+
/**
|
|
91
|
+
* When criteria was last updated
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof GetQuizCriteriaItem
|
|
94
|
+
*/
|
|
95
|
+
updatedAt: Date;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export declare const GetQuizCriteriaItemDifficultyLevelEnum: {
|
|
101
|
+
readonly Beginner: "beginner";
|
|
102
|
+
readonly Intermediate: "intermediate";
|
|
103
|
+
readonly Advanced: "advanced";
|
|
104
|
+
};
|
|
105
|
+
export type GetQuizCriteriaItemDifficultyLevelEnum = typeof GetQuizCriteriaItemDifficultyLevelEnum[keyof typeof GetQuizCriteriaItemDifficultyLevelEnum];
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export declare const GetQuizCriteriaItemQuestionTypeEnum: {
|
|
110
|
+
readonly SingleAnswer: "single_answer";
|
|
111
|
+
readonly MultipleAnswer: "multiple_answer";
|
|
112
|
+
readonly FillInBlank: "fill_in_blank";
|
|
113
|
+
};
|
|
114
|
+
export type GetQuizCriteriaItemQuestionTypeEnum = typeof GetQuizCriteriaItemQuestionTypeEnum[keyof typeof GetQuizCriteriaItemQuestionTypeEnum];
|
|
115
|
+
/**
|
|
116
|
+
* Check if a given object implements the GetQuizCriteriaItem interface.
|
|
117
|
+
*/
|
|
118
|
+
export declare function instanceOfGetQuizCriteriaItem(value: object): value is GetQuizCriteriaItem;
|
|
119
|
+
export declare function GetQuizCriteriaItemFromJSON(json: any): GetQuizCriteriaItem;
|
|
120
|
+
export declare function GetQuizCriteriaItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizCriteriaItem;
|
|
121
|
+
export declare function GetQuizCriteriaItemToJSON(json: any): GetQuizCriteriaItem;
|
|
122
|
+
export declare function GetQuizCriteriaItemToJSONTyped(value?: GetQuizCriteriaItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
17
|
+
export const GetQuizCriteriaItemDifficultyLevelEnum = {
|
|
18
18
|
Beginner: 'beginner',
|
|
19
19
|
Intermediate: 'intermediate',
|
|
20
20
|
Advanced: 'advanced'
|
|
@@ -22,15 +22,15 @@ export const GetQuizCriteriaCriteriaInnerDifficultyLevelEnum = {
|
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
export const
|
|
25
|
+
export const GetQuizCriteriaItemQuestionTypeEnum = {
|
|
26
26
|
SingleAnswer: 'single_answer',
|
|
27
27
|
MultipleAnswer: 'multiple_answer',
|
|
28
28
|
FillInBlank: 'fill_in_blank'
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
|
-
* Check if a given object implements the
|
|
31
|
+
* Check if a given object implements the GetQuizCriteriaItem interface.
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function instanceOfGetQuizCriteriaItem(value) {
|
|
34
34
|
if (!('id' in value) || value['id'] === undefined)
|
|
35
35
|
return false;
|
|
36
36
|
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
@@ -45,10 +45,10 @@ export function instanceOfGetQuizCriteriaCriteriaInner(value) {
|
|
|
45
45
|
return false;
|
|
46
46
|
return true;
|
|
47
47
|
}
|
|
48
|
-
export function
|
|
49
|
-
return
|
|
48
|
+
export function GetQuizCriteriaItemFromJSON(json) {
|
|
49
|
+
return GetQuizCriteriaItemFromJSONTyped(json, false);
|
|
50
50
|
}
|
|
51
|
-
export function
|
|
51
|
+
export function GetQuizCriteriaItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
52
|
if (json == null) {
|
|
53
53
|
return json;
|
|
54
54
|
}
|
|
@@ -68,10 +68,10 @@ export function GetQuizCriteriaCriteriaInnerFromJSONTyped(json, ignoreDiscrimina
|
|
|
68
68
|
'updatedAt': (new Date(json['updated_at'])),
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
export function
|
|
72
|
-
return
|
|
71
|
+
export function GetQuizCriteriaItemToJSON(json) {
|
|
72
|
+
return GetQuizCriteriaItemToJSONTyped(json, false);
|
|
73
73
|
}
|
|
74
|
-
export function
|
|
74
|
+
export function GetQuizCriteriaItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
75
|
if (value == null) {
|
|
76
76
|
return value;
|
|
77
77
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { GetQuizCriteriaListItemsInner } from './GetQuizCriteriaListItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetQuizCriteriaList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetQuizCriteriaList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetQuizCriteriaList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetQuizCriteriaList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetQuizCriteriaList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of criteria
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetQuizCriteriaList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
* Question selection criteria
|
|
45
|
+
* @type {Array<GetQuizCriteriaListItemsInner>}
|
|
46
|
+
* @memberof GetQuizCriteriaList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetQuizCriteriaListItemsInner>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetQuizCriteriaList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetQuizCriteriaList(value: object): value is GetQuizCriteriaList;
|
|
54
|
+
export declare function GetQuizCriteriaListFromJSON(json: any): GetQuizCriteriaList;
|
|
55
|
+
export declare function GetQuizCriteriaListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizCriteriaList;
|
|
56
|
+
export declare function GetQuizCriteriaListToJSON(json: any): GetQuizCriteriaList;
|
|
57
|
+
export declare function GetQuizCriteriaListToJSONTyped(value?: GetQuizCriteriaList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { GetQuizCriteriaListItemsInnerFromJSON, GetQuizCriteriaListItemsInnerToJSON, } from './GetQuizCriteriaListItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetQuizCriteriaList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetQuizCriteriaList(value) {
|
|
19
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function GetQuizCriteriaListFromJSON(json) {
|
|
32
|
+
return GetQuizCriteriaListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetQuizCriteriaListFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'page': json['page'],
|
|
40
|
+
'pageSize': json['pageSize'],
|
|
41
|
+
'totalPages': json['totalPages'],
|
|
42
|
+
'totalItems': json['totalItems'],
|
|
43
|
+
'items': (json['items'].map(GetQuizCriteriaListItemsInnerFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetQuizCriteriaListToJSON(json) {
|
|
47
|
+
return GetQuizCriteriaListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetQuizCriteriaListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'page': value['page'],
|
|
55
|
+
'pageSize': value['pageSize'],
|
|
56
|
+
'totalPages': value['totalPages'],
|
|
57
|
+
'totalItems': value['totalItems'],
|
|
58
|
+
'items': (value['items'].map(GetQuizCriteriaListItemsInnerToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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 GetQuizCriteriaListItemsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface GetQuizCriteriaListItemsInner {
|
|
18
|
+
/**
|
|
19
|
+
* Criteria ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* External UUID for criteria
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
28
|
+
*/
|
|
29
|
+
externalId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Topic filter (null for any topic)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
34
|
+
*/
|
|
35
|
+
topic?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Difficulty filter (null for any difficulty)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
40
|
+
*/
|
|
41
|
+
difficultyLevel?: GetQuizCriteriaListItemsInnerDifficultyLevelEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Question type filter (null for any type)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
46
|
+
*/
|
|
47
|
+
questionType?: GetQuizCriteriaListItemsInnerQuestionTypeEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Tag filters (must match all specified)
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
52
|
+
*/
|
|
53
|
+
tags?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Course filter (null for any course)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
58
|
+
*/
|
|
59
|
+
course?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Minimum questions from this criteria
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
64
|
+
*/
|
|
65
|
+
minQuestions?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Maximum questions from this criteria
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
70
|
+
*/
|
|
71
|
+
maxQuestions?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Selection priority
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
76
|
+
*/
|
|
77
|
+
priority: number;
|
|
78
|
+
/**
|
|
79
|
+
* Number of questions matching this criteria
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
82
|
+
*/
|
|
83
|
+
matchingQuestionsCount: number;
|
|
84
|
+
/**
|
|
85
|
+
* When criteria was created
|
|
86
|
+
* @type {Date}
|
|
87
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
88
|
+
*/
|
|
89
|
+
createdAt: Date;
|
|
90
|
+
/**
|
|
91
|
+
* When criteria was last updated
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof GetQuizCriteriaListItemsInner
|
|
94
|
+
*/
|
|
95
|
+
updatedAt: Date;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export declare const GetQuizCriteriaListItemsInnerDifficultyLevelEnum: {
|
|
101
|
+
readonly Beginner: "beginner";
|
|
102
|
+
readonly Intermediate: "intermediate";
|
|
103
|
+
readonly Advanced: "advanced";
|
|
104
|
+
};
|
|
105
|
+
export type GetQuizCriteriaListItemsInnerDifficultyLevelEnum = typeof GetQuizCriteriaListItemsInnerDifficultyLevelEnum[keyof typeof GetQuizCriteriaListItemsInnerDifficultyLevelEnum];
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export declare const GetQuizCriteriaListItemsInnerQuestionTypeEnum: {
|
|
110
|
+
readonly SingleAnswer: "single_answer";
|
|
111
|
+
readonly MultipleAnswer: "multiple_answer";
|
|
112
|
+
readonly FillInBlank: "fill_in_blank";
|
|
113
|
+
};
|
|
114
|
+
export type GetQuizCriteriaListItemsInnerQuestionTypeEnum = typeof GetQuizCriteriaListItemsInnerQuestionTypeEnum[keyof typeof GetQuizCriteriaListItemsInnerQuestionTypeEnum];
|
|
115
|
+
/**
|
|
116
|
+
* Check if a given object implements the GetQuizCriteriaListItemsInner interface.
|
|
117
|
+
*/
|
|
118
|
+
export declare function instanceOfGetQuizCriteriaListItemsInner(value: object): value is GetQuizCriteriaListItemsInner;
|
|
119
|
+
export declare function GetQuizCriteriaListItemsInnerFromJSON(json: any): GetQuizCriteriaListItemsInner;
|
|
120
|
+
export declare function GetQuizCriteriaListItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizCriteriaListItemsInner;
|
|
121
|
+
export declare function GetQuizCriteriaListItemsInnerToJSON(json: any): GetQuizCriteriaListItemsInner;
|
|
122
|
+
export declare function GetQuizCriteriaListItemsInnerToJSONTyped(value?: GetQuizCriteriaListItemsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const GetQuizCriteriaListItemsInnerDifficultyLevelEnum = {
|
|
18
|
+
Beginner: 'beginner',
|
|
19
|
+
Intermediate: 'intermediate',
|
|
20
|
+
Advanced: 'advanced'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const GetQuizCriteriaListItemsInnerQuestionTypeEnum = {
|
|
26
|
+
SingleAnswer: 'single_answer',
|
|
27
|
+
MultipleAnswer: 'multiple_answer',
|
|
28
|
+
FillInBlank: 'fill_in_blank'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetQuizCriteriaListItemsInner interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfGetQuizCriteriaListItemsInner(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('priority' in value) || value['priority'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('matchingQuestionsCount' in value) || value['matchingQuestionsCount'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
export function GetQuizCriteriaListItemsInnerFromJSON(json) {
|
|
49
|
+
return GetQuizCriteriaListItemsInnerFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function GetQuizCriteriaListItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': json['id'],
|
|
57
|
+
'externalId': json['external_id'],
|
|
58
|
+
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
59
|
+
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
60
|
+
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
61
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
62
|
+
'course': json['course'] == null ? undefined : json['course'],
|
|
63
|
+
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
64
|
+
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
65
|
+
'priority': json['priority'],
|
|
66
|
+
'matchingQuestionsCount': json['matching_questions_count'],
|
|
67
|
+
'createdAt': (new Date(json['created_at'])),
|
|
68
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export function GetQuizCriteriaListItemsInnerToJSON(json) {
|
|
72
|
+
return GetQuizCriteriaListItemsInnerToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
export function GetQuizCriteriaListItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'external_id': value['externalId'],
|
|
81
|
+
'topic': value['topic'],
|
|
82
|
+
'difficulty_level': value['difficultyLevel'],
|
|
83
|
+
'question_type': value['questionType'],
|
|
84
|
+
'tags': value['tags'],
|
|
85
|
+
'course': value['course'],
|
|
86
|
+
'min_questions': value['minQuestions'],
|
|
87
|
+
'max_questions': value['maxQuestions'],
|
|
88
|
+
'priority': value['priority'],
|
|
89
|
+
'matching_questions_count': value['matchingQuestionsCount'],
|
|
90
|
+
'created_at': ((value['createdAt']).toISOString()),
|
|
91
|
+
'updated_at': ((value['updatedAt']).toISOString()),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -27,12 +27,6 @@ export interface GetQuizListAllOfFilters {
|
|
|
27
27
|
* @memberof GetQuizListAllOfFilters
|
|
28
28
|
*/
|
|
29
29
|
moduleId?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Filter by quiz type
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof GetQuizListAllOfFilters
|
|
34
|
-
*/
|
|
35
|
-
quizType?: GetQuizListAllOfFiltersQuizTypeEnum;
|
|
36
30
|
/**
|
|
37
31
|
* Filter by question selection method
|
|
38
32
|
* @type {string}
|
|
@@ -52,14 +46,6 @@ export interface GetQuizListAllOfFilters {
|
|
|
52
46
|
*/
|
|
53
47
|
search?: string;
|
|
54
48
|
}
|
|
55
|
-
/**
|
|
56
|
-
* @export
|
|
57
|
-
*/
|
|
58
|
-
export declare const GetQuizListAllOfFiltersQuizTypeEnum: {
|
|
59
|
-
readonly FixedQuiz: "fixed_quiz";
|
|
60
|
-
readonly RandomizedTest: "randomized_test";
|
|
61
|
-
};
|
|
62
|
-
export type GetQuizListAllOfFiltersQuizTypeEnum = typeof GetQuizListAllOfFiltersQuizTypeEnum[keyof typeof GetQuizListAllOfFiltersQuizTypeEnum];
|
|
63
49
|
/**
|
|
64
50
|
* @export
|
|
65
51
|
*/
|
|
@@ -11,13 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
/**
|
|
15
|
-
* @export
|
|
16
|
-
*/
|
|
17
|
-
export const GetQuizListAllOfFiltersQuizTypeEnum = {
|
|
18
|
-
FixedQuiz: 'fixed_quiz',
|
|
19
|
-
RandomizedTest: 'randomized_test'
|
|
20
|
-
};
|
|
21
14
|
/**
|
|
22
15
|
* @export
|
|
23
16
|
*/
|
|
@@ -41,7 +34,6 @@ export function GetQuizListAllOfFiltersFromJSONTyped(json, ignoreDiscriminator)
|
|
|
41
34
|
return {
|
|
42
35
|
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
43
36
|
'moduleId': json['module_id'] == null ? undefined : json['module_id'],
|
|
44
|
-
'quizType': json['quiz_type'] == null ? undefined : json['quiz_type'],
|
|
45
37
|
'questionSelectionMethod': json['question_selection_method'] == null ? undefined : json['question_selection_method'],
|
|
46
38
|
'hasAttempts': json['has_attempts'] == null ? undefined : json['has_attempts'],
|
|
47
39
|
'search': json['search'] == null ? undefined : json['search'],
|
|
@@ -57,7 +49,6 @@ export function GetQuizListAllOfFiltersToJSONTyped(value, ignoreDiscriminator =
|
|
|
57
49
|
return {
|
|
58
50
|
'course_id': value['courseId'],
|
|
59
51
|
'module_id': value['moduleId'],
|
|
60
|
-
'quiz_type': value['quizType'],
|
|
61
52
|
'question_selection_method': value['questionSelectionMethod'],
|
|
62
53
|
'has_attempts': value['hasAttempts'],
|
|
63
54
|
'search': value['search'],
|
|
@@ -70,12 +70,6 @@ export interface GetQuizListAllOfQuizzes {
|
|
|
70
70
|
* @memberof GetQuizListAllOfQuizzes
|
|
71
71
|
*/
|
|
72
72
|
courseName?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Type of quiz
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof GetQuizListAllOfQuizzes
|
|
77
|
-
*/
|
|
78
|
-
quizType: GetQuizListAllOfQuizzesQuizTypeEnum;
|
|
79
73
|
/**
|
|
80
74
|
* Question selection method
|
|
81
75
|
* @type {string}
|
|
@@ -119,14 +113,6 @@ export interface GetQuizListAllOfQuizzes {
|
|
|
119
113
|
*/
|
|
120
114
|
updatedAt: Date;
|
|
121
115
|
}
|
|
122
|
-
/**
|
|
123
|
-
* @export
|
|
124
|
-
*/
|
|
125
|
-
export declare const GetQuizListAllOfQuizzesQuizTypeEnum: {
|
|
126
|
-
readonly FixedQuiz: "fixed_quiz";
|
|
127
|
-
readonly RandomizedTest: "randomized_test";
|
|
128
|
-
};
|
|
129
|
-
export type GetQuizListAllOfQuizzesQuizTypeEnum = typeof GetQuizListAllOfQuizzesQuizTypeEnum[keyof typeof GetQuizListAllOfQuizzesQuizTypeEnum];
|
|
130
116
|
/**
|
|
131
117
|
* @export
|
|
132
118
|
*/
|
|
@@ -12,13 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GetQuizListAllOfStatisticsFromJSON, GetQuizListAllOfStatisticsToJSON, } from './GetQuizListAllOfStatistics';
|
|
15
|
-
/**
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const GetQuizListAllOfQuizzesQuizTypeEnum = {
|
|
19
|
-
FixedQuiz: 'fixed_quiz',
|
|
20
|
-
RandomizedTest: 'randomized_test'
|
|
21
|
-
};
|
|
22
15
|
/**
|
|
23
16
|
* @export
|
|
24
17
|
*/
|
|
@@ -38,8 +31,6 @@ export function instanceOfGetQuizListAllOfQuizzes(value) {
|
|
|
38
31
|
return false;
|
|
39
32
|
if (!('contentName' in value) || value['contentName'] === undefined)
|
|
40
33
|
return false;
|
|
41
|
-
if (!('quizType' in value) || value['quizType'] === undefined)
|
|
42
|
-
return false;
|
|
43
34
|
if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined)
|
|
44
35
|
return false;
|
|
45
36
|
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
@@ -69,7 +60,6 @@ export function GetQuizListAllOfQuizzesFromJSONTyped(json, ignoreDiscriminator)
|
|
|
69
60
|
'moduleName': json['module_name'] == null ? undefined : json['module_name'],
|
|
70
61
|
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
71
62
|
'courseName': json['course_name'] == null ? undefined : json['course_name'],
|
|
72
|
-
'quizType': json['quiz_type'],
|
|
73
63
|
'questionSelectionMethod': json['question_selection_method'],
|
|
74
64
|
'maxAttempts': json['max_attempts'],
|
|
75
65
|
'passingScore': json['passing_score'],
|
|
@@ -96,7 +86,6 @@ export function GetQuizListAllOfQuizzesToJSONTyped(value, ignoreDiscriminator =
|
|
|
96
86
|
'module_name': value['moduleName'],
|
|
97
87
|
'course_id': value['courseId'],
|
|
98
88
|
'course_name': value['courseName'],
|
|
99
|
-
'quiz_type': value['quizType'],
|
|
100
89
|
'question_selection_method': value['questionSelectionMethod'],
|
|
101
90
|
'max_attempts': value['maxAttempts'],
|
|
102
91
|
'passing_score': value['passingScore'],
|