@easyedu/js-lsm-api 1.20.0 → 1.21.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/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/PostManualQuestionSelection.d.ts +50 -0
- package/dist/esm/models/PostManualQuestionSelection.js +49 -0
- 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/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/PostManualQuestionSelection.d.ts +50 -0
- package/dist/models/PostManualQuestionSelection.js +56 -0
- 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/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/PostManualQuestionSelection.ts +90 -0
- package/src/models/index.ts +6 -1
- package/dist/esm/models/GetQuizCriteriaCriteriaInner.d.ts +0 -122
- package/dist/models/GetQuizCriteriaCriteriaInner.d.ts +0 -122
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostManualQuestionSelection
|
|
16
|
+
*/
|
|
17
|
+
export interface PostManualQuestionSelection {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the question to add to quiz
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostManualQuestionSelection
|
|
22
|
+
*/
|
|
23
|
+
questionId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Points assigned to this question
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PostManualQuestionSelection
|
|
28
|
+
*/
|
|
29
|
+
points?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Order of question in quiz (auto-assigned if not provided)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PostManualQuestionSelection
|
|
34
|
+
*/
|
|
35
|
+
questionOrder?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Whether to lock this question to current version
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof PostManualQuestionSelection
|
|
40
|
+
*/
|
|
41
|
+
versionLocked?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PostManualQuestionSelection interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPostManualQuestionSelection(value: object): value is PostManualQuestionSelection;
|
|
47
|
+
export declare function PostManualQuestionSelectionFromJSON(json: any): PostManualQuestionSelection;
|
|
48
|
+
export declare function PostManualQuestionSelectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostManualQuestionSelection;
|
|
49
|
+
export declare function PostManualQuestionSelectionToJSON(json: any): PostManualQuestionSelection;
|
|
50
|
+
export declare function PostManualQuestionSelectionToJSONTyped(value?: PostManualQuestionSelection | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 PostManualQuestionSelection interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostManualQuestionSelection(value) {
|
|
18
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostManualQuestionSelectionFromJSON(json) {
|
|
23
|
+
return PostManualQuestionSelectionFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostManualQuestionSelectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'questionId': json['question_id'],
|
|
31
|
+
'points': json['points'] == null ? undefined : json['points'],
|
|
32
|
+
'questionOrder': json['question_order'] == null ? undefined : json['question_order'],
|
|
33
|
+
'versionLocked': json['version_locked'] == null ? undefined : json['version_locked'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PostManualQuestionSelectionToJSON(json) {
|
|
37
|
+
return PostManualQuestionSelectionToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PostManualQuestionSelectionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'question_id': value['questionId'],
|
|
45
|
+
'points': value['points'],
|
|
46
|
+
'question_order': value['questionOrder'],
|
|
47
|
+
'version_locked': value['versionLocked'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -26,6 +26,8 @@ export * from './GetCourseStudentReporting';
|
|
|
26
26
|
export * from './GetCourseStudentReportingCourseInfo';
|
|
27
27
|
export * from './GetCourseStudentReportingEngagement';
|
|
28
28
|
export * from './GetCourseStudentReportingPerformance';
|
|
29
|
+
export * from './GetManualQuestionSelectionItem';
|
|
30
|
+
export * from './GetManualQuestionSelectionList';
|
|
29
31
|
export * from './GetModule';
|
|
30
32
|
export * from './GetModuleInstructorBasicReporting';
|
|
31
33
|
export * from './GetModuleInstructorBasicReportingEngagement';
|
|
@@ -72,8 +74,10 @@ export * from './GetQuizAttemptQuestionsInnerAnswerChoicesInner';
|
|
|
72
74
|
export * from './GetQuizAttemptQuestionsInnerCurrentAnswer';
|
|
73
75
|
export * from './GetQuizAttemptQuizSettings';
|
|
74
76
|
export * from './GetQuizCriteria';
|
|
75
|
-
export * from './GetQuizCriteriaCriteriaInner';
|
|
76
77
|
export * from './GetQuizCriteriaEstimatedQuestions';
|
|
78
|
+
export * from './GetQuizCriteriaItem';
|
|
79
|
+
export * from './GetQuizCriteriaList';
|
|
80
|
+
export * from './GetQuizCriteriaListItemsInner';
|
|
77
81
|
export * from './GetQuizList';
|
|
78
82
|
export * from './GetQuizListAllOfFilters';
|
|
79
83
|
export * from './GetQuizListAllOfQuizzes';
|
|
@@ -116,6 +120,7 @@ export * from './PostContentUpload';
|
|
|
116
120
|
export * from './PostCourse';
|
|
117
121
|
export * from './PostCourseEnrollment';
|
|
118
122
|
export * from './PostLogin';
|
|
123
|
+
export * from './PostManualQuestionSelection';
|
|
119
124
|
export * from './PostModule';
|
|
120
125
|
export * from './PostPortal';
|
|
121
126
|
export * from './PostPortalInvite';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -28,6 +28,8 @@ export * from './GetCourseStudentReporting';
|
|
|
28
28
|
export * from './GetCourseStudentReportingCourseInfo';
|
|
29
29
|
export * from './GetCourseStudentReportingEngagement';
|
|
30
30
|
export * from './GetCourseStudentReportingPerformance';
|
|
31
|
+
export * from './GetManualQuestionSelectionItem';
|
|
32
|
+
export * from './GetManualQuestionSelectionList';
|
|
31
33
|
export * from './GetModule';
|
|
32
34
|
export * from './GetModuleInstructorBasicReporting';
|
|
33
35
|
export * from './GetModuleInstructorBasicReportingEngagement';
|
|
@@ -74,8 +76,10 @@ export * from './GetQuizAttemptQuestionsInnerAnswerChoicesInner';
|
|
|
74
76
|
export * from './GetQuizAttemptQuestionsInnerCurrentAnswer';
|
|
75
77
|
export * from './GetQuizAttemptQuizSettings';
|
|
76
78
|
export * from './GetQuizCriteria';
|
|
77
|
-
export * from './GetQuizCriteriaCriteriaInner';
|
|
78
79
|
export * from './GetQuizCriteriaEstimatedQuestions';
|
|
80
|
+
export * from './GetQuizCriteriaItem';
|
|
81
|
+
export * from './GetQuizCriteriaList';
|
|
82
|
+
export * from './GetQuizCriteriaListItemsInner';
|
|
79
83
|
export * from './GetQuizList';
|
|
80
84
|
export * from './GetQuizListAllOfFilters';
|
|
81
85
|
export * from './GetQuizListAllOfQuizzes';
|
|
@@ -118,6 +122,7 @@ export * from './PostContentUpload';
|
|
|
118
122
|
export * from './PostCourse';
|
|
119
123
|
export * from './PostCourseEnrollment';
|
|
120
124
|
export * from './PostLogin';
|
|
125
|
+
export * from './PostManualQuestionSelection';
|
|
121
126
|
export * from './PostModule';
|
|
122
127
|
export * from './PostPortal';
|
|
123
128
|
export * from './PostPortalInvite';
|