@easyedu/js-lsm-api 1.19.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/ContentApi.d.ts +2 -0
- package/dist/apis/ContentApi.js +2 -0
- package/dist/apis/QuizApi.d.ts +84 -9
- package/dist/apis/QuizApi.js +209 -14
- package/dist/esm/apis/ContentApi.d.ts +2 -0
- package/dist/esm/apis/ContentApi.js +2 -0
- 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/ContentApi.ts +2 -0
- 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,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
|
+
}
|
|
@@ -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,101 @@
|
|
|
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.GetQuizCriteriaListItemsInnerQuestionTypeEnum = exports.GetQuizCriteriaListItemsInnerDifficultyLevelEnum = void 0;
|
|
17
|
+
exports.instanceOfGetQuizCriteriaListItemsInner = instanceOfGetQuizCriteriaListItemsInner;
|
|
18
|
+
exports.GetQuizCriteriaListItemsInnerFromJSON = GetQuizCriteriaListItemsInnerFromJSON;
|
|
19
|
+
exports.GetQuizCriteriaListItemsInnerFromJSONTyped = GetQuizCriteriaListItemsInnerFromJSONTyped;
|
|
20
|
+
exports.GetQuizCriteriaListItemsInnerToJSON = GetQuizCriteriaListItemsInnerToJSON;
|
|
21
|
+
exports.GetQuizCriteriaListItemsInnerToJSONTyped = GetQuizCriteriaListItemsInnerToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetQuizCriteriaListItemsInnerDifficultyLevelEnum = {
|
|
26
|
+
Beginner: 'beginner',
|
|
27
|
+
Intermediate: 'intermediate',
|
|
28
|
+
Advanced: 'advanced'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.GetQuizCriteriaListItemsInnerQuestionTypeEnum = {
|
|
34
|
+
SingleAnswer: 'single_answer',
|
|
35
|
+
MultipleAnswer: 'multiple_answer',
|
|
36
|
+
FillInBlank: 'fill_in_blank'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetQuizCriteriaListItemsInner interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfGetQuizCriteriaListItemsInner(value) {
|
|
42
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('priority' in value) || value['priority'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('matchingQuestionsCount' in value) || value['matchingQuestionsCount'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
function GetQuizCriteriaListItemsInnerFromJSON(json) {
|
|
57
|
+
return GetQuizCriteriaListItemsInnerFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function GetQuizCriteriaListItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': json['id'],
|
|
65
|
+
'externalId': json['external_id'],
|
|
66
|
+
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
67
|
+
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
68
|
+
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
69
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
70
|
+
'course': json['course'] == null ? undefined : json['course'],
|
|
71
|
+
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
72
|
+
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
73
|
+
'priority': json['priority'],
|
|
74
|
+
'matchingQuestionsCount': json['matching_questions_count'],
|
|
75
|
+
'createdAt': (new Date(json['created_at'])),
|
|
76
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function GetQuizCriteriaListItemsInnerToJSON(json) {
|
|
80
|
+
return GetQuizCriteriaListItemsInnerToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
function GetQuizCriteriaListItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'external_id': value['externalId'],
|
|
89
|
+
'topic': value['topic'],
|
|
90
|
+
'difficulty_level': value['difficultyLevel'],
|
|
91
|
+
'question_type': value['questionType'],
|
|
92
|
+
'tags': value['tags'],
|
|
93
|
+
'course': value['course'],
|
|
94
|
+
'min_questions': value['minQuestions'],
|
|
95
|
+
'max_questions': value['maxQuestions'],
|
|
96
|
+
'priority': value['priority'],
|
|
97
|
+
'matching_questions_count': value['matchingQuestionsCount'],
|
|
98
|
+
'created_at': ((value['createdAt']).toISOString()),
|
|
99
|
+
'updated_at': ((value['updatedAt']).toISOString()),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -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,56 @@
|
|
|
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.instanceOfPostManualQuestionSelection = instanceOfPostManualQuestionSelection;
|
|
17
|
+
exports.PostManualQuestionSelectionFromJSON = PostManualQuestionSelectionFromJSON;
|
|
18
|
+
exports.PostManualQuestionSelectionFromJSONTyped = PostManualQuestionSelectionFromJSONTyped;
|
|
19
|
+
exports.PostManualQuestionSelectionToJSON = PostManualQuestionSelectionToJSON;
|
|
20
|
+
exports.PostManualQuestionSelectionToJSONTyped = PostManualQuestionSelectionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostManualQuestionSelection interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostManualQuestionSelection(value) {
|
|
25
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PostManualQuestionSelectionFromJSON(json) {
|
|
30
|
+
return PostManualQuestionSelectionFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PostManualQuestionSelectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'questionId': json['question_id'],
|
|
38
|
+
'points': json['points'] == null ? undefined : json['points'],
|
|
39
|
+
'questionOrder': json['question_order'] == null ? undefined : json['question_order'],
|
|
40
|
+
'versionLocked': json['version_locked'] == null ? undefined : json['version_locked'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PostManualQuestionSelectionToJSON(json) {
|
|
44
|
+
return PostManualQuestionSelectionToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PostManualQuestionSelectionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'question_id': value['questionId'],
|
|
52
|
+
'points': value['points'],
|
|
53
|
+
'question_order': value['questionOrder'],
|
|
54
|
+
'version_locked': value['versionLocked'],
|
|
55
|
+
};
|
|
56
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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/models/index.js
CHANGED
|
@@ -44,6 +44,8 @@ __exportStar(require("./GetCourseStudentReporting"), exports);
|
|
|
44
44
|
__exportStar(require("./GetCourseStudentReportingCourseInfo"), exports);
|
|
45
45
|
__exportStar(require("./GetCourseStudentReportingEngagement"), exports);
|
|
46
46
|
__exportStar(require("./GetCourseStudentReportingPerformance"), exports);
|
|
47
|
+
__exportStar(require("./GetManualQuestionSelectionItem"), exports);
|
|
48
|
+
__exportStar(require("./GetManualQuestionSelectionList"), exports);
|
|
47
49
|
__exportStar(require("./GetModule"), exports);
|
|
48
50
|
__exportStar(require("./GetModuleInstructorBasicReporting"), exports);
|
|
49
51
|
__exportStar(require("./GetModuleInstructorBasicReportingEngagement"), exports);
|
|
@@ -90,8 +92,10 @@ __exportStar(require("./GetQuizAttemptQuestionsInnerAnswerChoicesInner"), export
|
|
|
90
92
|
__exportStar(require("./GetQuizAttemptQuestionsInnerCurrentAnswer"), exports);
|
|
91
93
|
__exportStar(require("./GetQuizAttemptQuizSettings"), exports);
|
|
92
94
|
__exportStar(require("./GetQuizCriteria"), exports);
|
|
93
|
-
__exportStar(require("./GetQuizCriteriaCriteriaInner"), exports);
|
|
94
95
|
__exportStar(require("./GetQuizCriteriaEstimatedQuestions"), exports);
|
|
96
|
+
__exportStar(require("./GetQuizCriteriaItem"), exports);
|
|
97
|
+
__exportStar(require("./GetQuizCriteriaList"), exports);
|
|
98
|
+
__exportStar(require("./GetQuizCriteriaListItemsInner"), exports);
|
|
95
99
|
__exportStar(require("./GetQuizList"), exports);
|
|
96
100
|
__exportStar(require("./GetQuizListAllOfFilters"), exports);
|
|
97
101
|
__exportStar(require("./GetQuizListAllOfQuizzes"), exports);
|
|
@@ -134,6 +138,7 @@ __exportStar(require("./PostContentUpload"), exports);
|
|
|
134
138
|
__exportStar(require("./PostCourse"), exports);
|
|
135
139
|
__exportStar(require("./PostCourseEnrollment"), exports);
|
|
136
140
|
__exportStar(require("./PostLogin"), exports);
|
|
141
|
+
__exportStar(require("./PostManualQuestionSelection"), exports);
|
|
137
142
|
__exportStar(require("./PostModule"), exports);
|
|
138
143
|
__exportStar(require("./PostPortal"), exports);
|
|
139
144
|
__exportStar(require("./PostPortalInvite"), exports);
|
package/package.json
CHANGED
package/src/apis/ContentApi.ts
CHANGED
|
@@ -279,6 +279,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
281
|
* Create a new quiz content
|
|
282
|
+
* @deprecated
|
|
282
283
|
*/
|
|
283
284
|
async postContentQuizRaw(requestParameters: PostContentQuizRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContent>> {
|
|
284
285
|
if (requestParameters['moduleId'] == null) {
|
|
@@ -321,6 +322,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
321
322
|
|
|
322
323
|
/**
|
|
323
324
|
* Create a new quiz content
|
|
325
|
+
* @deprecated
|
|
324
326
|
*/
|
|
325
327
|
async postContentQuiz(requestParameters: PostContentQuizRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContent> {
|
|
326
328
|
const response = await this.postContentQuizRaw(requestParameters, initOverrides);
|