@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,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 GetManualQuestionSelectionItem
|
|
17
|
+
*/
|
|
18
|
+
export interface GetManualQuestionSelectionItem {
|
|
19
|
+
/**
|
|
20
|
+
* Quiz-question relationship ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetManualQuestionSelectionItem
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* ID of the question
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetManualQuestionSelectionItem
|
|
29
|
+
*/
|
|
30
|
+
questionId: string;
|
|
31
|
+
/**
|
|
32
|
+
* External ID of the question
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetManualQuestionSelectionItem
|
|
35
|
+
*/
|
|
36
|
+
questionExternalId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Order of question in quiz
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetManualQuestionSelectionItem
|
|
41
|
+
*/
|
|
42
|
+
questionOrder: number;
|
|
43
|
+
/**
|
|
44
|
+
* Points assigned to this question
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetManualQuestionSelectionItem
|
|
47
|
+
*/
|
|
48
|
+
points: number;
|
|
49
|
+
/**
|
|
50
|
+
* Whether question is locked to specific version
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof GetManualQuestionSelectionItem
|
|
53
|
+
*/
|
|
54
|
+
versionLocked: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {GetQuizQuestionsItemsInnerQuestionDetails}
|
|
58
|
+
* @memberof GetManualQuestionSelectionItem
|
|
59
|
+
*/
|
|
60
|
+
questionDetails: GetQuizQuestionsItemsInnerQuestionDetails;
|
|
61
|
+
/**
|
|
62
|
+
* When question was added to quiz
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof GetManualQuestionSelectionItem
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the GetManualQuestionSelectionItem interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfGetManualQuestionSelectionItem(value: object): value is GetManualQuestionSelectionItem;
|
|
72
|
+
export declare function GetManualQuestionSelectionItemFromJSON(json: any): GetManualQuestionSelectionItem;
|
|
73
|
+
export declare function GetManualQuestionSelectionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetManualQuestionSelectionItem;
|
|
74
|
+
export declare function GetManualQuestionSelectionItemToJSON(json: any): GetManualQuestionSelectionItem;
|
|
75
|
+
export declare function GetManualQuestionSelectionItemToJSONTyped(value?: GetManualQuestionSelectionItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
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.instanceOfGetManualQuestionSelectionItem = instanceOfGetManualQuestionSelectionItem;
|
|
17
|
+
exports.GetManualQuestionSelectionItemFromJSON = GetManualQuestionSelectionItemFromJSON;
|
|
18
|
+
exports.GetManualQuestionSelectionItemFromJSONTyped = GetManualQuestionSelectionItemFromJSONTyped;
|
|
19
|
+
exports.GetManualQuestionSelectionItemToJSON = GetManualQuestionSelectionItemToJSON;
|
|
20
|
+
exports.GetManualQuestionSelectionItemToJSONTyped = GetManualQuestionSelectionItemToJSONTyped;
|
|
21
|
+
const GetQuizQuestionsItemsInnerQuestionDetails_1 = require("./GetQuizQuestionsItemsInnerQuestionDetails");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetManualQuestionSelectionItem interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetManualQuestionSelectionItem(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('questionExternalId' in value) || value['questionExternalId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('questionOrder' in value) || value['questionOrder'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('points' in value) || value['points'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('versionLocked' in value) || value['versionLocked'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('questionDetails' in value) || value['questionDetails'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function GetManualQuestionSelectionItemFromJSON(json) {
|
|
45
|
+
return GetManualQuestionSelectionItemFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function GetManualQuestionSelectionItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'questionId': json['question_id'],
|
|
54
|
+
'questionExternalId': json['question_external_id'],
|
|
55
|
+
'questionOrder': json['question_order'],
|
|
56
|
+
'points': json['points'],
|
|
57
|
+
'versionLocked': json['version_locked'],
|
|
58
|
+
'questionDetails': (0, GetQuizQuestionsItemsInnerQuestionDetails_1.GetQuizQuestionsItemsInnerQuestionDetailsFromJSON)(json['question_details']),
|
|
59
|
+
'createdAt': (new Date(json['created_at'])),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function GetManualQuestionSelectionItemToJSON(json) {
|
|
63
|
+
return GetManualQuestionSelectionItemToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function GetManualQuestionSelectionItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'question_id': value['questionId'],
|
|
72
|
+
'question_external_id': value['questionExternalId'],
|
|
73
|
+
'question_order': value['questionOrder'],
|
|
74
|
+
'points': value['points'],
|
|
75
|
+
'version_locked': value['versionLocked'],
|
|
76
|
+
'question_details': (0, GetQuizQuestionsItemsInnerQuestionDetails_1.GetQuizQuestionsItemsInnerQuestionDetailsToJSON)(value['questionDetails']),
|
|
77
|
+
'created_at': ((value['createdAt']).toISOString()),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { GetQuizQuestionsItemsInner } from './GetQuizQuestionsItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetManualQuestionSelectionList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetManualQuestionSelectionList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetManualQuestionSelectionList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetManualQuestionSelectionList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetManualQuestionSelectionList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of questions in the quiz
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetManualQuestionSelectionList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
* Total points possible for quiz
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetManualQuestionSelectionList
|
|
47
|
+
*/
|
|
48
|
+
totalPoints: number;
|
|
49
|
+
/**
|
|
50
|
+
* Manually selected questions in the quiz (paginated)
|
|
51
|
+
* @type {Array<GetQuizQuestionsItemsInner>}
|
|
52
|
+
* @memberof GetManualQuestionSelectionList
|
|
53
|
+
*/
|
|
54
|
+
items: Array<GetQuizQuestionsItemsInner>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the GetManualQuestionSelectionList interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfGetManualQuestionSelectionList(value: object): value is GetManualQuestionSelectionList;
|
|
60
|
+
export declare function GetManualQuestionSelectionListFromJSON(json: any): GetManualQuestionSelectionList;
|
|
61
|
+
export declare function GetManualQuestionSelectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetManualQuestionSelectionList;
|
|
62
|
+
export declare function GetManualQuestionSelectionListToJSON(json: any): GetManualQuestionSelectionList;
|
|
63
|
+
export declare function GetManualQuestionSelectionListToJSONTyped(value?: GetManualQuestionSelectionList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfGetManualQuestionSelectionList = instanceOfGetManualQuestionSelectionList;
|
|
17
|
+
exports.GetManualQuestionSelectionListFromJSON = GetManualQuestionSelectionListFromJSON;
|
|
18
|
+
exports.GetManualQuestionSelectionListFromJSONTyped = GetManualQuestionSelectionListFromJSONTyped;
|
|
19
|
+
exports.GetManualQuestionSelectionListToJSON = GetManualQuestionSelectionListToJSON;
|
|
20
|
+
exports.GetManualQuestionSelectionListToJSONTyped = GetManualQuestionSelectionListToJSONTyped;
|
|
21
|
+
const GetQuizQuestionsItemsInner_1 = require("./GetQuizQuestionsItemsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetManualQuestionSelectionList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetManualQuestionSelectionList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('totalPoints' in value) || value['totalPoints'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function GetManualQuestionSelectionListFromJSON(json) {
|
|
41
|
+
return GetManualQuestionSelectionListFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetManualQuestionSelectionListFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'page': json['page'],
|
|
49
|
+
'pageSize': json['pageSize'],
|
|
50
|
+
'totalPages': json['totalPages'],
|
|
51
|
+
'totalItems': json['totalItems'],
|
|
52
|
+
'totalPoints': json['total_points'],
|
|
53
|
+
'items': (json['items'].map(GetQuizQuestionsItemsInner_1.GetQuizQuestionsItemsInnerFromJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function GetManualQuestionSelectionListToJSON(json) {
|
|
57
|
+
return GetManualQuestionSelectionListToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function GetManualQuestionSelectionListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'page': value['page'],
|
|
65
|
+
'pageSize': value['pageSize'],
|
|
66
|
+
'totalPages': value['totalPages'],
|
|
67
|
+
'totalItems': value['totalItems'],
|
|
68
|
+
'total_points': value['totalPoints'],
|
|
69
|
+
'items': (value['items'].map(GetQuizQuestionsItemsInner_1.GetQuizQuestionsItemsInnerToJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GetQuizCriteriaEstimatedQuestions } from './GetQuizCriteriaEstimatedQuestions';
|
|
13
|
-
import type {
|
|
13
|
+
import type { GetQuizCriteriaListItemsInner } from './GetQuizCriteriaListItemsInner';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -19,10 +19,10 @@ import type { GetQuizCriteriaCriteriaInner } from './GetQuizCriteriaCriteriaInne
|
|
|
19
19
|
export interface GetQuizCriteria {
|
|
20
20
|
/**
|
|
21
21
|
* Question selection criteria
|
|
22
|
-
* @type {Array<
|
|
22
|
+
* @type {Array<GetQuizCriteriaListItemsInner>}
|
|
23
23
|
* @memberof GetQuizCriteria
|
|
24
24
|
*/
|
|
25
|
-
criteria: Array<
|
|
25
|
+
criteria: Array<GetQuizCriteriaListItemsInner>;
|
|
26
26
|
/**
|
|
27
27
|
* Total number of criteria
|
|
28
28
|
* @type {number}
|
|
@@ -19,7 +19,7 @@ exports.GetQuizCriteriaFromJSONTyped = GetQuizCriteriaFromJSONTyped;
|
|
|
19
19
|
exports.GetQuizCriteriaToJSON = GetQuizCriteriaToJSON;
|
|
20
20
|
exports.GetQuizCriteriaToJSONTyped = GetQuizCriteriaToJSONTyped;
|
|
21
21
|
const GetQuizCriteriaEstimatedQuestions_1 = require("./GetQuizCriteriaEstimatedQuestions");
|
|
22
|
-
const
|
|
22
|
+
const GetQuizCriteriaListItemsInner_1 = require("./GetQuizCriteriaListItemsInner");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the GetQuizCriteria interface.
|
|
25
25
|
*/
|
|
@@ -40,7 +40,7 @@ function GetQuizCriteriaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
return json;
|
|
41
41
|
}
|
|
42
42
|
return {
|
|
43
|
-
'criteria': (json['criteria'].map(
|
|
43
|
+
'criteria': (json['criteria'].map(GetQuizCriteriaListItemsInner_1.GetQuizCriteriaListItemsInnerFromJSON)),
|
|
44
44
|
'totalCriteria': json['total_criteria'],
|
|
45
45
|
'estimatedQuestions': (0, GetQuizCriteriaEstimatedQuestions_1.GetQuizCriteriaEstimatedQuestionsFromJSON)(json['estimated_questions']),
|
|
46
46
|
};
|
|
@@ -53,7 +53,7 @@ function GetQuizCriteriaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
53
|
return value;
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
56
|
-
'criteria': (value['criteria'].map(
|
|
56
|
+
'criteria': (value['criteria'].map(GetQuizCriteriaListItemsInner_1.GetQuizCriteriaListItemsInnerToJSON)),
|
|
57
57
|
'total_criteria': value['totalCriteria'],
|
|
58
58
|
'estimated_questions': (0, GetQuizCriteriaEstimatedQuestions_1.GetQuizCriteriaEstimatedQuestionsToJSON)(value['estimatedQuestions']),
|
|
59
59
|
};
|
|
@@ -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;
|
|
@@ -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
|
-
exports.
|
|
16
|
+
exports.GetQuizCriteriaItemQuestionTypeEnum = exports.GetQuizCriteriaItemDifficultyLevelEnum = void 0;
|
|
17
|
+
exports.instanceOfGetQuizCriteriaItem = instanceOfGetQuizCriteriaItem;
|
|
18
|
+
exports.GetQuizCriteriaItemFromJSON = GetQuizCriteriaItemFromJSON;
|
|
19
|
+
exports.GetQuizCriteriaItemFromJSONTyped = GetQuizCriteriaItemFromJSONTyped;
|
|
20
|
+
exports.GetQuizCriteriaItemToJSON = GetQuizCriteriaItemToJSON;
|
|
21
|
+
exports.GetQuizCriteriaItemToJSONTyped = GetQuizCriteriaItemToJSONTyped;
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
25
|
+
exports.GetQuizCriteriaItemDifficultyLevelEnum = {
|
|
26
26
|
Beginner: 'beginner',
|
|
27
27
|
Intermediate: 'intermediate',
|
|
28
28
|
Advanced: 'advanced'
|
|
@@ -30,15 +30,15 @@ exports.GetQuizCriteriaCriteriaInnerDifficultyLevelEnum = {
|
|
|
30
30
|
/**
|
|
31
31
|
* @export
|
|
32
32
|
*/
|
|
33
|
-
exports.
|
|
33
|
+
exports.GetQuizCriteriaItemQuestionTypeEnum = {
|
|
34
34
|
SingleAnswer: 'single_answer',
|
|
35
35
|
MultipleAnswer: 'multiple_answer',
|
|
36
36
|
FillInBlank: 'fill_in_blank'
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
|
-
* Check if a given object implements the
|
|
39
|
+
* Check if a given object implements the GetQuizCriteriaItem interface.
|
|
40
40
|
*/
|
|
41
|
-
function
|
|
41
|
+
function instanceOfGetQuizCriteriaItem(value) {
|
|
42
42
|
if (!('id' in value) || value['id'] === undefined)
|
|
43
43
|
return false;
|
|
44
44
|
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
@@ -53,10 +53,10 @@ function instanceOfGetQuizCriteriaCriteriaInner(value) {
|
|
|
53
53
|
return false;
|
|
54
54
|
return true;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return
|
|
56
|
+
function GetQuizCriteriaItemFromJSON(json) {
|
|
57
|
+
return GetQuizCriteriaItemFromJSONTyped(json, false);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function GetQuizCriteriaItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
60
60
|
if (json == null) {
|
|
61
61
|
return json;
|
|
62
62
|
}
|
|
@@ -76,10 +76,10 @@ function GetQuizCriteriaCriteriaInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
76
|
'updatedAt': (new Date(json['updated_at'])),
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function GetQuizCriteriaItemToJSON(json) {
|
|
80
|
+
return GetQuizCriteriaItemToJSONTyped(json, false);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function GetQuizCriteriaItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
83
83
|
if (value == null) {
|
|
84
84
|
return value;
|
|
85
85
|
}
|
|
@@ -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,67 @@
|
|
|
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.instanceOfGetQuizCriteriaList = instanceOfGetQuizCriteriaList;
|
|
17
|
+
exports.GetQuizCriteriaListFromJSON = GetQuizCriteriaListFromJSON;
|
|
18
|
+
exports.GetQuizCriteriaListFromJSONTyped = GetQuizCriteriaListFromJSONTyped;
|
|
19
|
+
exports.GetQuizCriteriaListToJSON = GetQuizCriteriaListToJSON;
|
|
20
|
+
exports.GetQuizCriteriaListToJSONTyped = GetQuizCriteriaListToJSONTyped;
|
|
21
|
+
const GetQuizCriteriaListItemsInner_1 = require("./GetQuizCriteriaListItemsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetQuizCriteriaList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetQuizCriteriaList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetQuizCriteriaListFromJSON(json) {
|
|
39
|
+
return GetQuizCriteriaListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetQuizCriteriaListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['pageSize'],
|
|
48
|
+
'totalPages': json['totalPages'],
|
|
49
|
+
'totalItems': json['totalItems'],
|
|
50
|
+
'items': (json['items'].map(GetQuizCriteriaListItemsInner_1.GetQuizCriteriaListItemsInnerFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetQuizCriteriaListToJSON(json) {
|
|
54
|
+
return GetQuizCriteriaListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetQuizCriteriaListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'pageSize': value['pageSize'],
|
|
63
|
+
'totalPages': value['totalPages'],
|
|
64
|
+
'totalItems': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(GetQuizCriteriaListItemsInner_1.GetQuizCriteriaListItemsInnerToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|