@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
|
@@ -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
|
*/
|
|
@@ -13,19 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.GetQuizListAllOfFiltersQuestionSelectionMethodEnum =
|
|
16
|
+
exports.GetQuizListAllOfFiltersQuestionSelectionMethodEnum = void 0;
|
|
17
17
|
exports.instanceOfGetQuizListAllOfFilters = instanceOfGetQuizListAllOfFilters;
|
|
18
18
|
exports.GetQuizListAllOfFiltersFromJSON = GetQuizListAllOfFiltersFromJSON;
|
|
19
19
|
exports.GetQuizListAllOfFiltersFromJSONTyped = GetQuizListAllOfFiltersFromJSONTyped;
|
|
20
20
|
exports.GetQuizListAllOfFiltersToJSON = GetQuizListAllOfFiltersToJSON;
|
|
21
21
|
exports.GetQuizListAllOfFiltersToJSONTyped = GetQuizListAllOfFiltersToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.GetQuizListAllOfFiltersQuizTypeEnum = {
|
|
26
|
-
FixedQuiz: 'fixed_quiz',
|
|
27
|
-
RandomizedTest: 'randomized_test'
|
|
28
|
-
};
|
|
29
22
|
/**
|
|
30
23
|
* @export
|
|
31
24
|
*/
|
|
@@ -49,7 +42,6 @@ function GetQuizListAllOfFiltersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
42
|
return {
|
|
50
43
|
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
51
44
|
'moduleId': json['module_id'] == null ? undefined : json['module_id'],
|
|
52
|
-
'quizType': json['quiz_type'] == null ? undefined : json['quiz_type'],
|
|
53
45
|
'questionSelectionMethod': json['question_selection_method'] == null ? undefined : json['question_selection_method'],
|
|
54
46
|
'hasAttempts': json['has_attempts'] == null ? undefined : json['has_attempts'],
|
|
55
47
|
'search': json['search'] == null ? undefined : json['search'],
|
|
@@ -65,7 +57,6 @@ function GetQuizListAllOfFiltersToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
65
57
|
return {
|
|
66
58
|
'course_id': value['courseId'],
|
|
67
59
|
'module_id': value['moduleId'],
|
|
68
|
-
'quiz_type': value['quizType'],
|
|
69
60
|
'question_selection_method': value['questionSelectionMethod'],
|
|
70
61
|
'has_attempts': value['hasAttempts'],
|
|
71
62
|
'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
|
*/
|
|
@@ -13,20 +13,13 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.GetQuizListAllOfQuizzesQuestionSelectionMethodEnum =
|
|
16
|
+
exports.GetQuizListAllOfQuizzesQuestionSelectionMethodEnum = void 0;
|
|
17
17
|
exports.instanceOfGetQuizListAllOfQuizzes = instanceOfGetQuizListAllOfQuizzes;
|
|
18
18
|
exports.GetQuizListAllOfQuizzesFromJSON = GetQuizListAllOfQuizzesFromJSON;
|
|
19
19
|
exports.GetQuizListAllOfQuizzesFromJSONTyped = GetQuizListAllOfQuizzesFromJSONTyped;
|
|
20
20
|
exports.GetQuizListAllOfQuizzesToJSON = GetQuizListAllOfQuizzesToJSON;
|
|
21
21
|
exports.GetQuizListAllOfQuizzesToJSONTyped = GetQuizListAllOfQuizzesToJSONTyped;
|
|
22
22
|
const GetQuizListAllOfStatistics_1 = require("./GetQuizListAllOfStatistics");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.GetQuizListAllOfQuizzesQuizTypeEnum = {
|
|
27
|
-
FixedQuiz: 'fixed_quiz',
|
|
28
|
-
RandomizedTest: 'randomized_test'
|
|
29
|
-
};
|
|
30
23
|
/**
|
|
31
24
|
* @export
|
|
32
25
|
*/
|
|
@@ -46,8 +39,6 @@ function instanceOfGetQuizListAllOfQuizzes(value) {
|
|
|
46
39
|
return false;
|
|
47
40
|
if (!('contentName' in value) || value['contentName'] === undefined)
|
|
48
41
|
return false;
|
|
49
|
-
if (!('quizType' in value) || value['quizType'] === undefined)
|
|
50
|
-
return false;
|
|
51
42
|
if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined)
|
|
52
43
|
return false;
|
|
53
44
|
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
@@ -77,7 +68,6 @@ function GetQuizListAllOfQuizzesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
68
|
'moduleName': json['module_name'] == null ? undefined : json['module_name'],
|
|
78
69
|
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
79
70
|
'courseName': json['course_name'] == null ? undefined : json['course_name'],
|
|
80
|
-
'quizType': json['quiz_type'],
|
|
81
71
|
'questionSelectionMethod': json['question_selection_method'],
|
|
82
72
|
'maxAttempts': json['max_attempts'],
|
|
83
73
|
'passingScore': json['passing_score'],
|
|
@@ -104,7 +94,6 @@ function GetQuizListAllOfQuizzesToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
104
94
|
'module_name': value['moduleName'],
|
|
105
95
|
'course_id': value['courseId'],
|
|
106
96
|
'course_name': value['courseName'],
|
|
107
|
-
'quiz_type': value['quizType'],
|
|
108
97
|
'question_selection_method': value['questionSelectionMethod'],
|
|
109
98
|
'max_attempts': value['maxAttempts'],
|
|
110
99
|
'passing_score': value['passingScore'],
|
|
@@ -30,12 +30,6 @@ export interface PostContentQuiz {
|
|
|
30
30
|
* @memberof PostContentQuiz
|
|
31
31
|
*/
|
|
32
32
|
description?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Type of quiz: fixed questions in order vs randomized selection from pool
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof PostContentQuiz
|
|
37
|
-
*/
|
|
38
|
-
quizType: PostContentQuizQuizTypeEnum;
|
|
39
33
|
/**
|
|
40
34
|
*
|
|
41
35
|
* @type {PostContentQuizQuestionSelection}
|
|
@@ -55,14 +49,6 @@ export interface PostContentQuiz {
|
|
|
55
49
|
*/
|
|
56
50
|
assignment?: PostContentQuizAssignment;
|
|
57
51
|
}
|
|
58
|
-
/**
|
|
59
|
-
* @export
|
|
60
|
-
*/
|
|
61
|
-
export declare const PostContentQuizQuizTypeEnum: {
|
|
62
|
-
readonly FixedQuiz: "fixed_quiz";
|
|
63
|
-
readonly RandomizedTest: "randomized_test";
|
|
64
|
-
};
|
|
65
|
-
export type PostContentQuizQuizTypeEnum = typeof PostContentQuizQuizTypeEnum[keyof typeof PostContentQuizQuizTypeEnum];
|
|
66
52
|
/**
|
|
67
53
|
* Check if a given object implements the PostContentQuiz interface.
|
|
68
54
|
*/
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PostContentQuizQuizTypeEnum = void 0;
|
|
17
16
|
exports.instanceOfPostContentQuiz = instanceOfPostContentQuiz;
|
|
18
17
|
exports.PostContentQuizFromJSON = PostContentQuizFromJSON;
|
|
19
18
|
exports.PostContentQuizFromJSONTyped = PostContentQuizFromJSONTyped;
|
|
@@ -22,21 +21,12 @@ exports.PostContentQuizToJSONTyped = PostContentQuizToJSONTyped;
|
|
|
22
21
|
const PostContentQuizQuestionSelection_1 = require("./PostContentQuizQuestionSelection");
|
|
23
22
|
const PostContentQuizAssignment_1 = require("./PostContentQuizAssignment");
|
|
24
23
|
const PostContentQuizSettings_1 = require("./PostContentQuizSettings");
|
|
25
|
-
/**
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
exports.PostContentQuizQuizTypeEnum = {
|
|
29
|
-
FixedQuiz: 'fixed_quiz',
|
|
30
|
-
RandomizedTest: 'randomized_test'
|
|
31
|
-
};
|
|
32
24
|
/**
|
|
33
25
|
* Check if a given object implements the PostContentQuiz interface.
|
|
34
26
|
*/
|
|
35
27
|
function instanceOfPostContentQuiz(value) {
|
|
36
28
|
if (!('name' in value) || value['name'] === undefined)
|
|
37
29
|
return false;
|
|
38
|
-
if (!('quizType' in value) || value['quizType'] === undefined)
|
|
39
|
-
return false;
|
|
40
30
|
if (!('questionSelection' in value) || value['questionSelection'] === undefined)
|
|
41
31
|
return false;
|
|
42
32
|
if (!('settings' in value) || value['settings'] === undefined)
|
|
@@ -53,7 +43,6 @@ function PostContentQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
43
|
return {
|
|
54
44
|
'name': json['name'],
|
|
55
45
|
'description': json['description'] == null ? undefined : json['description'],
|
|
56
|
-
'quizType': json['quiz_type'],
|
|
57
46
|
'questionSelection': (0, PostContentQuizQuestionSelection_1.PostContentQuizQuestionSelectionFromJSON)(json['question_selection']),
|
|
58
47
|
'settings': (0, PostContentQuizSettings_1.PostContentQuizSettingsFromJSON)(json['settings']),
|
|
59
48
|
'assignment': json['assignment'] == null ? undefined : (0, PostContentQuizAssignment_1.PostContentQuizAssignmentFromJSON)(json['assignment']),
|
|
@@ -69,7 +58,6 @@ function PostContentQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
58
|
return {
|
|
70
59
|
'name': value['name'],
|
|
71
60
|
'description': value['description'],
|
|
72
|
-
'quiz_type': value['quizType'],
|
|
73
61
|
'question_selection': (0, PostContentQuizQuestionSelection_1.PostContentQuizQuestionSelectionToJSON)(value['questionSelection']),
|
|
74
62
|
'settings': (0, PostContentQuizSettings_1.PostContentQuizSettingsToJSON)(value['settings']),
|
|
75
63
|
'assignment': (0, PostContentQuizAssignment_1.PostContentQuizAssignmentToJSON)(value['assignment']),
|
|
@@ -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
|
+
}
|
|
@@ -22,12 +22,6 @@ export interface PostQuiz {
|
|
|
22
22
|
* @memberof PostQuiz
|
|
23
23
|
*/
|
|
24
24
|
contentId: string;
|
|
25
|
-
/**
|
|
26
|
-
* Type of quiz: fixed questions vs randomized selection
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof PostQuiz
|
|
29
|
-
*/
|
|
30
|
-
quizType: PostQuizQuizTypeEnum;
|
|
31
25
|
/**
|
|
32
26
|
* How questions are selected for this quiz
|
|
33
27
|
* @type {string}
|
|
@@ -101,14 +95,6 @@ export interface PostQuiz {
|
|
|
101
95
|
*/
|
|
102
96
|
settings?: PostQuizSettings;
|
|
103
97
|
}
|
|
104
|
-
/**
|
|
105
|
-
* @export
|
|
106
|
-
*/
|
|
107
|
-
export declare const PostQuizQuizTypeEnum: {
|
|
108
|
-
readonly FixedQuiz: "fixed_quiz";
|
|
109
|
-
readonly RandomizedTest: "randomized_test";
|
|
110
|
-
};
|
|
111
|
-
export type PostQuizQuizTypeEnum = typeof PostQuizQuizTypeEnum[keyof typeof PostQuizQuizTypeEnum];
|
|
112
98
|
/**
|
|
113
99
|
* @export
|
|
114
100
|
*/
|
package/dist/models/PostQuiz.js
CHANGED
|
@@ -13,20 +13,13 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PostQuizQuestionSelectionMethodEnum =
|
|
16
|
+
exports.PostQuizQuestionSelectionMethodEnum = void 0;
|
|
17
17
|
exports.instanceOfPostQuiz = instanceOfPostQuiz;
|
|
18
18
|
exports.PostQuizFromJSON = PostQuizFromJSON;
|
|
19
19
|
exports.PostQuizFromJSONTyped = PostQuizFromJSONTyped;
|
|
20
20
|
exports.PostQuizToJSON = PostQuizToJSON;
|
|
21
21
|
exports.PostQuizToJSONTyped = PostQuizToJSONTyped;
|
|
22
22
|
const PostQuizSettings_1 = require("./PostQuizSettings");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.PostQuizQuizTypeEnum = {
|
|
27
|
-
FixedQuiz: 'fixed_quiz',
|
|
28
|
-
RandomizedTest: 'randomized_test'
|
|
29
|
-
};
|
|
30
23
|
/**
|
|
31
24
|
* @export
|
|
32
25
|
*/
|
|
@@ -40,8 +33,6 @@ exports.PostQuizQuestionSelectionMethodEnum = {
|
|
|
40
33
|
function instanceOfPostQuiz(value) {
|
|
41
34
|
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
42
35
|
return false;
|
|
43
|
-
if (!('quizType' in value) || value['quizType'] === undefined)
|
|
44
|
-
return false;
|
|
45
36
|
if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined)
|
|
46
37
|
return false;
|
|
47
38
|
return true;
|
|
@@ -55,7 +46,6 @@ function PostQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
46
|
}
|
|
56
47
|
return {
|
|
57
48
|
'contentId': json['content_id'],
|
|
58
|
-
'quizType': json['quiz_type'],
|
|
59
49
|
'questionSelectionMethod': json['question_selection_method'],
|
|
60
50
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
61
51
|
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
@@ -79,7 +69,6 @@ function PostQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
69
|
}
|
|
80
70
|
return {
|
|
81
71
|
'content_id': value['contentId'],
|
|
82
|
-
'quiz_type': value['quizType'],
|
|
83
72
|
'question_selection_method': value['questionSelectionMethod'],
|
|
84
73
|
'max_questions': value['maxQuestions'],
|
|
85
74
|
'max_attempts': value['maxAttempts'],
|
|
@@ -39,6 +39,8 @@ exports.PostQuizCriteriaCriteriaInnerQuestionTypeEnum = {
|
|
|
39
39
|
* Check if a given object implements the PostQuizCriteriaCriteriaInner interface.
|
|
40
40
|
*/
|
|
41
41
|
function instanceOfPostQuizCriteriaCriteriaInner(value) {
|
|
42
|
+
if (!('priority' in value) || value['priority'] === undefined)
|
|
43
|
+
return false;
|
|
42
44
|
return true;
|
|
43
45
|
}
|
|
44
46
|
function PostQuizCriteriaCriteriaInnerFromJSON(json) {
|
|
@@ -56,7 +58,7 @@ function PostQuizCriteriaCriteriaInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
58
|
'course': json['course'] == null ? undefined : json['course'],
|
|
57
59
|
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
58
60
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
59
|
-
'priority': json['priority']
|
|
61
|
+
'priority': json['priority'],
|
|
60
62
|
};
|
|
61
63
|
}
|
|
62
64
|
function PostQuizCriteriaCriteriaInnerToJSON(json) {
|
package/dist/models/PutQuiz.d.ts
CHANGED
|
@@ -16,12 +16,6 @@ import type { PutQuizSettings } from './PutQuizSettings';
|
|
|
16
16
|
* @interface PutQuiz
|
|
17
17
|
*/
|
|
18
18
|
export interface PutQuiz {
|
|
19
|
-
/**
|
|
20
|
-
* Type of quiz: fixed questions vs randomized selection
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof PutQuiz
|
|
23
|
-
*/
|
|
24
|
-
quizType?: PutQuizQuizTypeEnum;
|
|
25
19
|
/**
|
|
26
20
|
* How questions are selected for this quiz
|
|
27
21
|
* @type {string}
|
|
@@ -95,14 +89,6 @@ export interface PutQuiz {
|
|
|
95
89
|
*/
|
|
96
90
|
settings?: PutQuizSettings;
|
|
97
91
|
}
|
|
98
|
-
/**
|
|
99
|
-
* @export
|
|
100
|
-
*/
|
|
101
|
-
export declare const PutQuizQuizTypeEnum: {
|
|
102
|
-
readonly FixedQuiz: "fixed_quiz";
|
|
103
|
-
readonly RandomizedTest: "randomized_test";
|
|
104
|
-
};
|
|
105
|
-
export type PutQuizQuizTypeEnum = typeof PutQuizQuizTypeEnum[keyof typeof PutQuizQuizTypeEnum];
|
|
106
92
|
/**
|
|
107
93
|
* @export
|
|
108
94
|
*/
|
package/dist/models/PutQuiz.js
CHANGED
|
@@ -13,20 +13,13 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PutQuizQuestionSelectionMethodEnum =
|
|
16
|
+
exports.PutQuizQuestionSelectionMethodEnum = void 0;
|
|
17
17
|
exports.instanceOfPutQuiz = instanceOfPutQuiz;
|
|
18
18
|
exports.PutQuizFromJSON = PutQuizFromJSON;
|
|
19
19
|
exports.PutQuizFromJSONTyped = PutQuizFromJSONTyped;
|
|
20
20
|
exports.PutQuizToJSON = PutQuizToJSON;
|
|
21
21
|
exports.PutQuizToJSONTyped = PutQuizToJSONTyped;
|
|
22
22
|
const PutQuizSettings_1 = require("./PutQuizSettings");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.PutQuizQuizTypeEnum = {
|
|
27
|
-
FixedQuiz: 'fixed_quiz',
|
|
28
|
-
RandomizedTest: 'randomized_test'
|
|
29
|
-
};
|
|
30
23
|
/**
|
|
31
24
|
* @export
|
|
32
25
|
*/
|
|
@@ -48,7 +41,6 @@ function PutQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
41
|
return json;
|
|
49
42
|
}
|
|
50
43
|
return {
|
|
51
|
-
'quizType': json['quiz_type'] == null ? undefined : json['quiz_type'],
|
|
52
44
|
'questionSelectionMethod': json['question_selection_method'] == null ? undefined : json['question_selection_method'],
|
|
53
45
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
54
46
|
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
@@ -71,7 +63,6 @@ function PutQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
63
|
return value;
|
|
72
64
|
}
|
|
73
65
|
return {
|
|
74
|
-
'quiz_type': value['quizType'],
|
|
75
66
|
'question_selection_method': value['questionSelectionMethod'],
|
|
76
67
|
'max_questions': value['maxQuestions'],
|
|
77
68
|
'max_attempts': value['maxAttempts'],
|
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);
|