@easyedu/js-lsm-api 1.21.0 → 1.23.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/README.md +2 -2
- package/dist/esm/models/GetQuiz.d.ts +0 -14
- package/dist/esm/models/GetQuiz.js +0 -11
- 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/PostQuiz.d.ts +0 -14
- package/dist/esm/models/PostQuiz.js +0 -11
- package/dist/esm/models/PutQuiz.d.ts +0 -14
- package/dist/esm/models/PutQuiz.js +0 -9
- package/dist/models/GetQuiz.d.ts +0 -14
- package/dist/models/GetQuiz.js +1 -12
- 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/PostQuiz.d.ts +0 -14
- package/dist/models/PostQuiz.js +1 -12
- package/dist/models/PutQuiz.d.ts +0 -14
- package/dist/models/PutQuiz.js +1 -10
- package/package.json +1 -1
- package/src/models/GetQuiz.ts +0 -18
- package/src/models/GetQuizListAllOfFilters.ts +0 -17
- package/src/models/GetQuizListAllOfQuizzes.ts +0 -18
- package/src/models/PostContentQuiz.ts +0 -20
- package/src/models/PostQuiz.ts +0 -18
- package/src/models/PutQuiz.ts +0 -17
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @easyedu/js-lsm-api@1.
|
|
1
|
+
## @easyedu/js-lsm-api@1.23.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @easyedu/js-lsm-api@1.
|
|
39
|
+
npm install @easyedu/js-lsm-api@1.23.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -34,12 +34,6 @@ export interface GetQuiz {
|
|
|
34
34
|
* @memberof GetQuiz
|
|
35
35
|
*/
|
|
36
36
|
contentId: string;
|
|
37
|
-
/**
|
|
38
|
-
* Type of quiz
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof GetQuiz
|
|
41
|
-
*/
|
|
42
|
-
quizType: GetQuizQuizTypeEnum;
|
|
43
37
|
/**
|
|
44
38
|
* How questions are selected
|
|
45
39
|
* @type {string}
|
|
@@ -131,14 +125,6 @@ export interface GetQuiz {
|
|
|
131
125
|
*/
|
|
132
126
|
updatedAt: Date;
|
|
133
127
|
}
|
|
134
|
-
/**
|
|
135
|
-
* @export
|
|
136
|
-
*/
|
|
137
|
-
export declare const GetQuizQuizTypeEnum: {
|
|
138
|
-
readonly FixedQuiz: "fixed_quiz";
|
|
139
|
-
readonly RandomizedTest: "randomized_test";
|
|
140
|
-
};
|
|
141
|
-
export type GetQuizQuizTypeEnum = typeof GetQuizQuizTypeEnum[keyof typeof GetQuizQuizTypeEnum];
|
|
142
128
|
/**
|
|
143
129
|
* @export
|
|
144
130
|
*/
|
|
@@ -12,13 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GetQuizStatisticsFromJSON, GetQuizStatisticsToJSON, } from './GetQuizStatistics';
|
|
15
|
-
/**
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const GetQuizQuizTypeEnum = {
|
|
19
|
-
FixedQuiz: 'fixed_quiz',
|
|
20
|
-
RandomizedTest: 'randomized_test'
|
|
21
|
-
};
|
|
22
15
|
/**
|
|
23
16
|
* @export
|
|
24
17
|
*/
|
|
@@ -36,8 +29,6 @@ export function instanceOfGetQuiz(value) {
|
|
|
36
29
|
return false;
|
|
37
30
|
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
38
31
|
return false;
|
|
39
|
-
if (!('quizType' in value) || value['quizType'] === undefined)
|
|
40
|
-
return false;
|
|
41
32
|
if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined)
|
|
42
33
|
return false;
|
|
43
34
|
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
@@ -61,7 +52,6 @@ export function GetQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
52
|
'id': json['id'],
|
|
62
53
|
'externalId': json['external_id'],
|
|
63
54
|
'contentId': json['content_id'],
|
|
64
|
-
'quizType': json['quiz_type'],
|
|
65
55
|
'questionSelectionMethod': json['question_selection_method'],
|
|
66
56
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
67
57
|
'maxAttempts': json['max_attempts'],
|
|
@@ -90,7 +80,6 @@ export function GetQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
80
|
'id': value['id'],
|
|
91
81
|
'external_id': value['externalId'],
|
|
92
82
|
'content_id': value['contentId'],
|
|
93
|
-
'quiz_type': value['quizType'],
|
|
94
83
|
'question_selection_method': value['questionSelectionMethod'],
|
|
95
84
|
'max_questions': value['maxQuestions'],
|
|
96
85
|
'max_attempts': value['maxAttempts'],
|
|
@@ -27,12 +27,6 @@ export interface GetQuizListAllOfFilters {
|
|
|
27
27
|
* @memberof GetQuizListAllOfFilters
|
|
28
28
|
*/
|
|
29
29
|
moduleId?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Filter by quiz type
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof GetQuizListAllOfFilters
|
|
34
|
-
*/
|
|
35
|
-
quizType?: GetQuizListAllOfFiltersQuizTypeEnum;
|
|
36
30
|
/**
|
|
37
31
|
* Filter by question selection method
|
|
38
32
|
* @type {string}
|
|
@@ -52,14 +46,6 @@ export interface GetQuizListAllOfFilters {
|
|
|
52
46
|
*/
|
|
53
47
|
search?: string;
|
|
54
48
|
}
|
|
55
|
-
/**
|
|
56
|
-
* @export
|
|
57
|
-
*/
|
|
58
|
-
export declare const GetQuizListAllOfFiltersQuizTypeEnum: {
|
|
59
|
-
readonly FixedQuiz: "fixed_quiz";
|
|
60
|
-
readonly RandomizedTest: "randomized_test";
|
|
61
|
-
};
|
|
62
|
-
export type GetQuizListAllOfFiltersQuizTypeEnum = typeof GetQuizListAllOfFiltersQuizTypeEnum[keyof typeof GetQuizListAllOfFiltersQuizTypeEnum];
|
|
63
49
|
/**
|
|
64
50
|
* @export
|
|
65
51
|
*/
|
|
@@ -11,13 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
/**
|
|
15
|
-
* @export
|
|
16
|
-
*/
|
|
17
|
-
export const GetQuizListAllOfFiltersQuizTypeEnum = {
|
|
18
|
-
FixedQuiz: 'fixed_quiz',
|
|
19
|
-
RandomizedTest: 'randomized_test'
|
|
20
|
-
};
|
|
21
14
|
/**
|
|
22
15
|
* @export
|
|
23
16
|
*/
|
|
@@ -41,7 +34,6 @@ export function GetQuizListAllOfFiltersFromJSONTyped(json, ignoreDiscriminator)
|
|
|
41
34
|
return {
|
|
42
35
|
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
43
36
|
'moduleId': json['module_id'] == null ? undefined : json['module_id'],
|
|
44
|
-
'quizType': json['quiz_type'] == null ? undefined : json['quiz_type'],
|
|
45
37
|
'questionSelectionMethod': json['question_selection_method'] == null ? undefined : json['question_selection_method'],
|
|
46
38
|
'hasAttempts': json['has_attempts'] == null ? undefined : json['has_attempts'],
|
|
47
39
|
'search': json['search'] == null ? undefined : json['search'],
|
|
@@ -57,7 +49,6 @@ export function GetQuizListAllOfFiltersToJSONTyped(value, ignoreDiscriminator =
|
|
|
57
49
|
return {
|
|
58
50
|
'course_id': value['courseId'],
|
|
59
51
|
'module_id': value['moduleId'],
|
|
60
|
-
'quiz_type': value['quizType'],
|
|
61
52
|
'question_selection_method': value['questionSelectionMethod'],
|
|
62
53
|
'has_attempts': value['hasAttempts'],
|
|
63
54
|
'search': value['search'],
|
|
@@ -70,12 +70,6 @@ export interface GetQuizListAllOfQuizzes {
|
|
|
70
70
|
* @memberof GetQuizListAllOfQuizzes
|
|
71
71
|
*/
|
|
72
72
|
courseName?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Type of quiz
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof GetQuizListAllOfQuizzes
|
|
77
|
-
*/
|
|
78
|
-
quizType: GetQuizListAllOfQuizzesQuizTypeEnum;
|
|
79
73
|
/**
|
|
80
74
|
* Question selection method
|
|
81
75
|
* @type {string}
|
|
@@ -119,14 +113,6 @@ export interface GetQuizListAllOfQuizzes {
|
|
|
119
113
|
*/
|
|
120
114
|
updatedAt: Date;
|
|
121
115
|
}
|
|
122
|
-
/**
|
|
123
|
-
* @export
|
|
124
|
-
*/
|
|
125
|
-
export declare const GetQuizListAllOfQuizzesQuizTypeEnum: {
|
|
126
|
-
readonly FixedQuiz: "fixed_quiz";
|
|
127
|
-
readonly RandomizedTest: "randomized_test";
|
|
128
|
-
};
|
|
129
|
-
export type GetQuizListAllOfQuizzesQuizTypeEnum = typeof GetQuizListAllOfQuizzesQuizTypeEnum[keyof typeof GetQuizListAllOfQuizzesQuizTypeEnum];
|
|
130
116
|
/**
|
|
131
117
|
* @export
|
|
132
118
|
*/
|
|
@@ -12,13 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GetQuizListAllOfStatisticsFromJSON, GetQuizListAllOfStatisticsToJSON, } from './GetQuizListAllOfStatistics';
|
|
15
|
-
/**
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const GetQuizListAllOfQuizzesQuizTypeEnum = {
|
|
19
|
-
FixedQuiz: 'fixed_quiz',
|
|
20
|
-
RandomizedTest: 'randomized_test'
|
|
21
|
-
};
|
|
22
15
|
/**
|
|
23
16
|
* @export
|
|
24
17
|
*/
|
|
@@ -38,8 +31,6 @@ export function instanceOfGetQuizListAllOfQuizzes(value) {
|
|
|
38
31
|
return false;
|
|
39
32
|
if (!('contentName' in value) || value['contentName'] === undefined)
|
|
40
33
|
return false;
|
|
41
|
-
if (!('quizType' in value) || value['quizType'] === undefined)
|
|
42
|
-
return false;
|
|
43
34
|
if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined)
|
|
44
35
|
return false;
|
|
45
36
|
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
@@ -69,7 +60,6 @@ export function GetQuizListAllOfQuizzesFromJSONTyped(json, ignoreDiscriminator)
|
|
|
69
60
|
'moduleName': json['module_name'] == null ? undefined : json['module_name'],
|
|
70
61
|
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
71
62
|
'courseName': json['course_name'] == null ? undefined : json['course_name'],
|
|
72
|
-
'quizType': json['quiz_type'],
|
|
73
63
|
'questionSelectionMethod': json['question_selection_method'],
|
|
74
64
|
'maxAttempts': json['max_attempts'],
|
|
75
65
|
'passingScore': json['passing_score'],
|
|
@@ -96,7 +86,6 @@ export function GetQuizListAllOfQuizzesToJSONTyped(value, ignoreDiscriminator =
|
|
|
96
86
|
'module_name': value['moduleName'],
|
|
97
87
|
'course_id': value['courseId'],
|
|
98
88
|
'course_name': value['courseName'],
|
|
99
|
-
'quiz_type': value['quizType'],
|
|
100
89
|
'question_selection_method': value['questionSelectionMethod'],
|
|
101
90
|
'max_attempts': value['maxAttempts'],
|
|
102
91
|
'passing_score': value['passingScore'],
|
|
@@ -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
|
*/
|
|
@@ -14,21 +14,12 @@
|
|
|
14
14
|
import { PostContentQuizQuestionSelectionFromJSON, PostContentQuizQuestionSelectionToJSON, } from './PostContentQuizQuestionSelection';
|
|
15
15
|
import { PostContentQuizAssignmentFromJSON, PostContentQuizAssignmentToJSON, } from './PostContentQuizAssignment';
|
|
16
16
|
import { PostContentQuizSettingsFromJSON, PostContentQuizSettingsToJSON, } from './PostContentQuizSettings';
|
|
17
|
-
/**
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const PostContentQuizQuizTypeEnum = {
|
|
21
|
-
FixedQuiz: 'fixed_quiz',
|
|
22
|
-
RandomizedTest: 'randomized_test'
|
|
23
|
-
};
|
|
24
17
|
/**
|
|
25
18
|
* Check if a given object implements the PostContentQuiz interface.
|
|
26
19
|
*/
|
|
27
20
|
export function instanceOfPostContentQuiz(value) {
|
|
28
21
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
22
|
return false;
|
|
30
|
-
if (!('quizType' in value) || value['quizType'] === undefined)
|
|
31
|
-
return false;
|
|
32
23
|
if (!('questionSelection' in value) || value['questionSelection'] === undefined)
|
|
33
24
|
return false;
|
|
34
25
|
if (!('settings' in value) || value['settings'] === undefined)
|
|
@@ -45,7 +36,6 @@ export function PostContentQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
36
|
return {
|
|
46
37
|
'name': json['name'],
|
|
47
38
|
'description': json['description'] == null ? undefined : json['description'],
|
|
48
|
-
'quizType': json['quiz_type'],
|
|
49
39
|
'questionSelection': PostContentQuizQuestionSelectionFromJSON(json['question_selection']),
|
|
50
40
|
'settings': PostContentQuizSettingsFromJSON(json['settings']),
|
|
51
41
|
'assignment': json['assignment'] == null ? undefined : PostContentQuizAssignmentFromJSON(json['assignment']),
|
|
@@ -61,7 +51,6 @@ export function PostContentQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
51
|
return {
|
|
62
52
|
'name': value['name'],
|
|
63
53
|
'description': value['description'],
|
|
64
|
-
'quiz_type': value['quizType'],
|
|
65
54
|
'question_selection': PostContentQuizQuestionSelectionToJSON(value['questionSelection']),
|
|
66
55
|
'settings': PostContentQuizSettingsToJSON(value['settings']),
|
|
67
56
|
'assignment': PostContentQuizAssignmentToJSON(value['assignment']),
|
|
@@ -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
|
*/
|
|
@@ -12,13 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { PostQuizSettingsFromJSON, PostQuizSettingsToJSON, } from './PostQuizSettings';
|
|
15
|
-
/**
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const PostQuizQuizTypeEnum = {
|
|
19
|
-
FixedQuiz: 'fixed_quiz',
|
|
20
|
-
RandomizedTest: 'randomized_test'
|
|
21
|
-
};
|
|
22
15
|
/**
|
|
23
16
|
* @export
|
|
24
17
|
*/
|
|
@@ -32,8 +25,6 @@ export const PostQuizQuestionSelectionMethodEnum = {
|
|
|
32
25
|
export function instanceOfPostQuiz(value) {
|
|
33
26
|
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
34
27
|
return false;
|
|
35
|
-
if (!('quizType' in value) || value['quizType'] === undefined)
|
|
36
|
-
return false;
|
|
37
28
|
if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined)
|
|
38
29
|
return false;
|
|
39
30
|
return true;
|
|
@@ -47,7 +38,6 @@ export function PostQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
38
|
}
|
|
48
39
|
return {
|
|
49
40
|
'contentId': json['content_id'],
|
|
50
|
-
'quizType': json['quiz_type'],
|
|
51
41
|
'questionSelectionMethod': json['question_selection_method'],
|
|
52
42
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
53
43
|
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
@@ -71,7 +61,6 @@ export function PostQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
61
|
}
|
|
72
62
|
return {
|
|
73
63
|
'content_id': value['contentId'],
|
|
74
|
-
'quiz_type': value['quizType'],
|
|
75
64
|
'question_selection_method': value['questionSelectionMethod'],
|
|
76
65
|
'max_questions': value['maxQuestions'],
|
|
77
66
|
'max_attempts': value['maxAttempts'],
|
|
@@ -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
|
*/
|
|
@@ -12,13 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { PutQuizSettingsFromJSON, PutQuizSettingsToJSON, } from './PutQuizSettings';
|
|
15
|
-
/**
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const PutQuizQuizTypeEnum = {
|
|
19
|
-
FixedQuiz: 'fixed_quiz',
|
|
20
|
-
RandomizedTest: 'randomized_test'
|
|
21
|
-
};
|
|
22
15
|
/**
|
|
23
16
|
* @export
|
|
24
17
|
*/
|
|
@@ -40,7 +33,6 @@ export function PutQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
33
|
return json;
|
|
41
34
|
}
|
|
42
35
|
return {
|
|
43
|
-
'quizType': json['quiz_type'] == null ? undefined : json['quiz_type'],
|
|
44
36
|
'questionSelectionMethod': json['question_selection_method'] == null ? undefined : json['question_selection_method'],
|
|
45
37
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
46
38
|
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
@@ -63,7 +55,6 @@ export function PutQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
55
|
return value;
|
|
64
56
|
}
|
|
65
57
|
return {
|
|
66
|
-
'quiz_type': value['quizType'],
|
|
67
58
|
'question_selection_method': value['questionSelectionMethod'],
|
|
68
59
|
'max_questions': value['maxQuestions'],
|
|
69
60
|
'max_attempts': value['maxAttempts'],
|
package/dist/models/GetQuiz.d.ts
CHANGED
|
@@ -34,12 +34,6 @@ export interface GetQuiz {
|
|
|
34
34
|
* @memberof GetQuiz
|
|
35
35
|
*/
|
|
36
36
|
contentId: string;
|
|
37
|
-
/**
|
|
38
|
-
* Type of quiz
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof GetQuiz
|
|
41
|
-
*/
|
|
42
|
-
quizType: GetQuizQuizTypeEnum;
|
|
43
37
|
/**
|
|
44
38
|
* How questions are selected
|
|
45
39
|
* @type {string}
|
|
@@ -131,14 +125,6 @@ export interface GetQuiz {
|
|
|
131
125
|
*/
|
|
132
126
|
updatedAt: Date;
|
|
133
127
|
}
|
|
134
|
-
/**
|
|
135
|
-
* @export
|
|
136
|
-
*/
|
|
137
|
-
export declare const GetQuizQuizTypeEnum: {
|
|
138
|
-
readonly FixedQuiz: "fixed_quiz";
|
|
139
|
-
readonly RandomizedTest: "randomized_test";
|
|
140
|
-
};
|
|
141
|
-
export type GetQuizQuizTypeEnum = typeof GetQuizQuizTypeEnum[keyof typeof GetQuizQuizTypeEnum];
|
|
142
128
|
/**
|
|
143
129
|
* @export
|
|
144
130
|
*/
|
package/dist/models/GetQuiz.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.GetQuizQuestionSelectionMethodEnum =
|
|
16
|
+
exports.GetQuizQuestionSelectionMethodEnum = void 0;
|
|
17
17
|
exports.instanceOfGetQuiz = instanceOfGetQuiz;
|
|
18
18
|
exports.GetQuizFromJSON = GetQuizFromJSON;
|
|
19
19
|
exports.GetQuizFromJSONTyped = GetQuizFromJSONTyped;
|
|
20
20
|
exports.GetQuizToJSON = GetQuizToJSON;
|
|
21
21
|
exports.GetQuizToJSONTyped = GetQuizToJSONTyped;
|
|
22
22
|
const GetQuizStatistics_1 = require("./GetQuizStatistics");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.GetQuizQuizTypeEnum = {
|
|
27
|
-
FixedQuiz: 'fixed_quiz',
|
|
28
|
-
RandomizedTest: 'randomized_test'
|
|
29
|
-
};
|
|
30
23
|
/**
|
|
31
24
|
* @export
|
|
32
25
|
*/
|
|
@@ -44,8 +37,6 @@ function instanceOfGetQuiz(value) {
|
|
|
44
37
|
return false;
|
|
45
38
|
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
46
39
|
return false;
|
|
47
|
-
if (!('quizType' in value) || value['quizType'] === undefined)
|
|
48
|
-
return false;
|
|
49
40
|
if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined)
|
|
50
41
|
return false;
|
|
51
42
|
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
@@ -69,7 +60,6 @@ function GetQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
60
|
'id': json['id'],
|
|
70
61
|
'externalId': json['external_id'],
|
|
71
62
|
'contentId': json['content_id'],
|
|
72
|
-
'quizType': json['quiz_type'],
|
|
73
63
|
'questionSelectionMethod': json['question_selection_method'],
|
|
74
64
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
75
65
|
'maxAttempts': json['max_attempts'],
|
|
@@ -98,7 +88,6 @@ function GetQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
98
88
|
'id': value['id'],
|
|
99
89
|
'external_id': value['externalId'],
|
|
100
90
|
'content_id': value['contentId'],
|
|
101
|
-
'quiz_type': value['quizType'],
|
|
102
91
|
'question_selection_method': value['questionSelectionMethod'],
|
|
103
92
|
'max_questions': value['maxQuestions'],
|
|
104
93
|
'max_attempts': value['maxAttempts'],
|
|
@@ -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']),
|
|
@@ -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'],
|
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/package.json
CHANGED
package/src/models/GetQuiz.ts
CHANGED
|
@@ -45,12 +45,6 @@ export interface GetQuiz {
|
|
|
45
45
|
* @memberof GetQuiz
|
|
46
46
|
*/
|
|
47
47
|
contentId: string;
|
|
48
|
-
/**
|
|
49
|
-
* Type of quiz
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof GetQuiz
|
|
52
|
-
*/
|
|
53
|
-
quizType: GetQuizQuizTypeEnum;
|
|
54
48
|
/**
|
|
55
49
|
* How questions are selected
|
|
56
50
|
* @type {string}
|
|
@@ -144,15 +138,6 @@ export interface GetQuiz {
|
|
|
144
138
|
}
|
|
145
139
|
|
|
146
140
|
|
|
147
|
-
/**
|
|
148
|
-
* @export
|
|
149
|
-
*/
|
|
150
|
-
export const GetQuizQuizTypeEnum = {
|
|
151
|
-
FixedQuiz: 'fixed_quiz',
|
|
152
|
-
RandomizedTest: 'randomized_test'
|
|
153
|
-
} as const;
|
|
154
|
-
export type GetQuizQuizTypeEnum = typeof GetQuizQuizTypeEnum[keyof typeof GetQuizQuizTypeEnum];
|
|
155
|
-
|
|
156
141
|
/**
|
|
157
142
|
* @export
|
|
158
143
|
*/
|
|
@@ -170,7 +155,6 @@ export function instanceOfGetQuiz(value: object): value is GetQuiz {
|
|
|
170
155
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
171
156
|
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
172
157
|
if (!('contentId' in value) || value['contentId'] === undefined) return false;
|
|
173
|
-
if (!('quizType' in value) || value['quizType'] === undefined) return false;
|
|
174
158
|
if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined) return false;
|
|
175
159
|
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined) return false;
|
|
176
160
|
if (!('passingScore' in value) || value['passingScore'] === undefined) return false;
|
|
@@ -192,7 +176,6 @@ export function GetQuizFromJSONTyped(json: any, ignoreDiscriminator: boolean): G
|
|
|
192
176
|
'id': json['id'],
|
|
193
177
|
'externalId': json['external_id'],
|
|
194
178
|
'contentId': json['content_id'],
|
|
195
|
-
'quizType': json['quiz_type'],
|
|
196
179
|
'questionSelectionMethod': json['question_selection_method'],
|
|
197
180
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
198
181
|
'maxAttempts': json['max_attempts'],
|
|
@@ -225,7 +208,6 @@ export function GetQuizToJSONTyped(value?: GetQuiz | null, ignoreDiscriminator:
|
|
|
225
208
|
'id': value['id'],
|
|
226
209
|
'external_id': value['externalId'],
|
|
227
210
|
'content_id': value['contentId'],
|
|
228
|
-
'quiz_type': value['quizType'],
|
|
229
211
|
'question_selection_method': value['questionSelectionMethod'],
|
|
230
212
|
'max_questions': value['maxQuestions'],
|
|
231
213
|
'max_attempts': value['maxAttempts'],
|
|
@@ -31,12 +31,6 @@ export interface GetQuizListAllOfFilters {
|
|
|
31
31
|
* @memberof GetQuizListAllOfFilters
|
|
32
32
|
*/
|
|
33
33
|
moduleId?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Filter by quiz type
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof GetQuizListAllOfFilters
|
|
38
|
-
*/
|
|
39
|
-
quizType?: GetQuizListAllOfFiltersQuizTypeEnum;
|
|
40
34
|
/**
|
|
41
35
|
* Filter by question selection method
|
|
42
36
|
* @type {string}
|
|
@@ -58,15 +52,6 @@ export interface GetQuizListAllOfFilters {
|
|
|
58
52
|
}
|
|
59
53
|
|
|
60
54
|
|
|
61
|
-
/**
|
|
62
|
-
* @export
|
|
63
|
-
*/
|
|
64
|
-
export const GetQuizListAllOfFiltersQuizTypeEnum = {
|
|
65
|
-
FixedQuiz: 'fixed_quiz',
|
|
66
|
-
RandomizedTest: 'randomized_test'
|
|
67
|
-
} as const;
|
|
68
|
-
export type GetQuizListAllOfFiltersQuizTypeEnum = typeof GetQuizListAllOfFiltersQuizTypeEnum[keyof typeof GetQuizListAllOfFiltersQuizTypeEnum];
|
|
69
|
-
|
|
70
55
|
/**
|
|
71
56
|
* @export
|
|
72
57
|
*/
|
|
@@ -96,7 +81,6 @@ export function GetQuizListAllOfFiltersFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
96
81
|
|
|
97
82
|
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
98
83
|
'moduleId': json['module_id'] == null ? undefined : json['module_id'],
|
|
99
|
-
'quizType': json['quiz_type'] == null ? undefined : json['quiz_type'],
|
|
100
84
|
'questionSelectionMethod': json['question_selection_method'] == null ? undefined : json['question_selection_method'],
|
|
101
85
|
'hasAttempts': json['has_attempts'] == null ? undefined : json['has_attempts'],
|
|
102
86
|
'search': json['search'] == null ? undefined : json['search'],
|
|
@@ -116,7 +100,6 @@ export function GetQuizListAllOfFiltersToJSONTyped(value?: GetQuizListAllOfFilte
|
|
|
116
100
|
|
|
117
101
|
'course_id': value['courseId'],
|
|
118
102
|
'module_id': value['moduleId'],
|
|
119
|
-
'quiz_type': value['quizType'],
|
|
120
103
|
'question_selection_method': value['questionSelectionMethod'],
|
|
121
104
|
'has_attempts': value['hasAttempts'],
|
|
122
105
|
'search': value['search'],
|
|
@@ -81,12 +81,6 @@ export interface GetQuizListAllOfQuizzes {
|
|
|
81
81
|
* @memberof GetQuizListAllOfQuizzes
|
|
82
82
|
*/
|
|
83
83
|
courseName?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Type of quiz
|
|
86
|
-
* @type {string}
|
|
87
|
-
* @memberof GetQuizListAllOfQuizzes
|
|
88
|
-
*/
|
|
89
|
-
quizType: GetQuizListAllOfQuizzesQuizTypeEnum;
|
|
90
84
|
/**
|
|
91
85
|
* Question selection method
|
|
92
86
|
* @type {string}
|
|
@@ -132,15 +126,6 @@ export interface GetQuizListAllOfQuizzes {
|
|
|
132
126
|
}
|
|
133
127
|
|
|
134
128
|
|
|
135
|
-
/**
|
|
136
|
-
* @export
|
|
137
|
-
*/
|
|
138
|
-
export const GetQuizListAllOfQuizzesQuizTypeEnum = {
|
|
139
|
-
FixedQuiz: 'fixed_quiz',
|
|
140
|
-
RandomizedTest: 'randomized_test'
|
|
141
|
-
} as const;
|
|
142
|
-
export type GetQuizListAllOfQuizzesQuizTypeEnum = typeof GetQuizListAllOfQuizzesQuizTypeEnum[keyof typeof GetQuizListAllOfQuizzesQuizTypeEnum];
|
|
143
|
-
|
|
144
129
|
/**
|
|
145
130
|
* @export
|
|
146
131
|
*/
|
|
@@ -159,7 +144,6 @@ export function instanceOfGetQuizListAllOfQuizzes(value: object): value is GetQu
|
|
|
159
144
|
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
160
145
|
if (!('contentId' in value) || value['contentId'] === undefined) return false;
|
|
161
146
|
if (!('contentName' in value) || value['contentName'] === undefined) return false;
|
|
162
|
-
if (!('quizType' in value) || value['quizType'] === undefined) return false;
|
|
163
147
|
if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined) return false;
|
|
164
148
|
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined) return false;
|
|
165
149
|
if (!('passingScore' in value) || value['passingScore'] === undefined) return false;
|
|
@@ -187,7 +171,6 @@ export function GetQuizListAllOfQuizzesFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
187
171
|
'moduleName': json['module_name'] == null ? undefined : json['module_name'],
|
|
188
172
|
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
189
173
|
'courseName': json['course_name'] == null ? undefined : json['course_name'],
|
|
190
|
-
'quizType': json['quiz_type'],
|
|
191
174
|
'questionSelectionMethod': json['question_selection_method'],
|
|
192
175
|
'maxAttempts': json['max_attempts'],
|
|
193
176
|
'passingScore': json['passing_score'],
|
|
@@ -218,7 +201,6 @@ export function GetQuizListAllOfQuizzesToJSONTyped(value?: GetQuizListAllOfQuizz
|
|
|
218
201
|
'module_name': value['moduleName'],
|
|
219
202
|
'course_id': value['courseId'],
|
|
220
203
|
'course_name': value['courseName'],
|
|
221
|
-
'quiz_type': value['quizType'],
|
|
222
204
|
'question_selection_method': value['questionSelectionMethod'],
|
|
223
205
|
'max_attempts': value['maxAttempts'],
|
|
224
206
|
'passing_score': value['passingScore'],
|
|
@@ -53,12 +53,6 @@ export interface PostContentQuiz {
|
|
|
53
53
|
* @memberof PostContentQuiz
|
|
54
54
|
*/
|
|
55
55
|
description?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Type of quiz: fixed questions in order vs randomized selection from pool
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof PostContentQuiz
|
|
60
|
-
*/
|
|
61
|
-
quizType: PostContentQuizQuizTypeEnum;
|
|
62
56
|
/**
|
|
63
57
|
*
|
|
64
58
|
* @type {PostContentQuizQuestionSelection}
|
|
@@ -79,23 +73,11 @@ export interface PostContentQuiz {
|
|
|
79
73
|
assignment?: PostContentQuizAssignment;
|
|
80
74
|
}
|
|
81
75
|
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @export
|
|
85
|
-
*/
|
|
86
|
-
export const PostContentQuizQuizTypeEnum = {
|
|
87
|
-
FixedQuiz: 'fixed_quiz',
|
|
88
|
-
RandomizedTest: 'randomized_test'
|
|
89
|
-
} as const;
|
|
90
|
-
export type PostContentQuizQuizTypeEnum = typeof PostContentQuizQuizTypeEnum[keyof typeof PostContentQuizQuizTypeEnum];
|
|
91
|
-
|
|
92
|
-
|
|
93
76
|
/**
|
|
94
77
|
* Check if a given object implements the PostContentQuiz interface.
|
|
95
78
|
*/
|
|
96
79
|
export function instanceOfPostContentQuiz(value: object): value is PostContentQuiz {
|
|
97
80
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
98
|
-
if (!('quizType' in value) || value['quizType'] === undefined) return false;
|
|
99
81
|
if (!('questionSelection' in value) || value['questionSelection'] === undefined) return false;
|
|
100
82
|
if (!('settings' in value) || value['settings'] === undefined) return false;
|
|
101
83
|
return true;
|
|
@@ -113,7 +95,6 @@ export function PostContentQuizFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
113
95
|
|
|
114
96
|
'name': json['name'],
|
|
115
97
|
'description': json['description'] == null ? undefined : json['description'],
|
|
116
|
-
'quizType': json['quiz_type'],
|
|
117
98
|
'questionSelection': PostContentQuizQuestionSelectionFromJSON(json['question_selection']),
|
|
118
99
|
'settings': PostContentQuizSettingsFromJSON(json['settings']),
|
|
119
100
|
'assignment': json['assignment'] == null ? undefined : PostContentQuizAssignmentFromJSON(json['assignment']),
|
|
@@ -133,7 +114,6 @@ export function PostContentQuizToJSONTyped(value?: PostContentQuiz | null, ignor
|
|
|
133
114
|
|
|
134
115
|
'name': value['name'],
|
|
135
116
|
'description': value['description'],
|
|
136
|
-
'quiz_type': value['quizType'],
|
|
137
117
|
'question_selection': PostContentQuizQuestionSelectionToJSON(value['questionSelection']),
|
|
138
118
|
'settings': PostContentQuizSettingsToJSON(value['settings']),
|
|
139
119
|
'assignment': PostContentQuizAssignmentToJSON(value['assignment']),
|
package/src/models/PostQuiz.ts
CHANGED
|
@@ -33,12 +33,6 @@ export interface PostQuiz {
|
|
|
33
33
|
* @memberof PostQuiz
|
|
34
34
|
*/
|
|
35
35
|
contentId: string;
|
|
36
|
-
/**
|
|
37
|
-
* Type of quiz: fixed questions vs randomized selection
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof PostQuiz
|
|
40
|
-
*/
|
|
41
|
-
quizType: PostQuizQuizTypeEnum;
|
|
42
36
|
/**
|
|
43
37
|
* How questions are selected for this quiz
|
|
44
38
|
* @type {string}
|
|
@@ -114,15 +108,6 @@ export interface PostQuiz {
|
|
|
114
108
|
}
|
|
115
109
|
|
|
116
110
|
|
|
117
|
-
/**
|
|
118
|
-
* @export
|
|
119
|
-
*/
|
|
120
|
-
export const PostQuizQuizTypeEnum = {
|
|
121
|
-
FixedQuiz: 'fixed_quiz',
|
|
122
|
-
RandomizedTest: 'randomized_test'
|
|
123
|
-
} as const;
|
|
124
|
-
export type PostQuizQuizTypeEnum = typeof PostQuizQuizTypeEnum[keyof typeof PostQuizQuizTypeEnum];
|
|
125
|
-
|
|
126
111
|
/**
|
|
127
112
|
* @export
|
|
128
113
|
*/
|
|
@@ -138,7 +123,6 @@ export type PostQuizQuestionSelectionMethodEnum = typeof PostQuizQuestionSelecti
|
|
|
138
123
|
*/
|
|
139
124
|
export function instanceOfPostQuiz(value: object): value is PostQuiz {
|
|
140
125
|
if (!('contentId' in value) || value['contentId'] === undefined) return false;
|
|
141
|
-
if (!('quizType' in value) || value['quizType'] === undefined) return false;
|
|
142
126
|
if (!('questionSelectionMethod' in value) || value['questionSelectionMethod'] === undefined) return false;
|
|
143
127
|
return true;
|
|
144
128
|
}
|
|
@@ -154,7 +138,6 @@ export function PostQuizFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
154
138
|
return {
|
|
155
139
|
|
|
156
140
|
'contentId': json['content_id'],
|
|
157
|
-
'quizType': json['quiz_type'],
|
|
158
141
|
'questionSelectionMethod': json['question_selection_method'],
|
|
159
142
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
160
143
|
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
@@ -182,7 +165,6 @@ export function PostQuizToJSONTyped(value?: PostQuiz | null, ignoreDiscriminator
|
|
|
182
165
|
return {
|
|
183
166
|
|
|
184
167
|
'content_id': value['contentId'],
|
|
185
|
-
'quiz_type': value['quizType'],
|
|
186
168
|
'question_selection_method': value['questionSelectionMethod'],
|
|
187
169
|
'max_questions': value['maxQuestions'],
|
|
188
170
|
'max_attempts': value['maxAttempts'],
|
package/src/models/PutQuiz.ts
CHANGED
|
@@ -27,12 +27,6 @@ import {
|
|
|
27
27
|
* @interface PutQuiz
|
|
28
28
|
*/
|
|
29
29
|
export interface PutQuiz {
|
|
30
|
-
/**
|
|
31
|
-
* Type of quiz: fixed questions vs randomized selection
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof PutQuiz
|
|
34
|
-
*/
|
|
35
|
-
quizType?: PutQuizQuizTypeEnum;
|
|
36
30
|
/**
|
|
37
31
|
* How questions are selected for this quiz
|
|
38
32
|
* @type {string}
|
|
@@ -108,15 +102,6 @@ export interface PutQuiz {
|
|
|
108
102
|
}
|
|
109
103
|
|
|
110
104
|
|
|
111
|
-
/**
|
|
112
|
-
* @export
|
|
113
|
-
*/
|
|
114
|
-
export const PutQuizQuizTypeEnum = {
|
|
115
|
-
FixedQuiz: 'fixed_quiz',
|
|
116
|
-
RandomizedTest: 'randomized_test'
|
|
117
|
-
} as const;
|
|
118
|
-
export type PutQuizQuizTypeEnum = typeof PutQuizQuizTypeEnum[keyof typeof PutQuizQuizTypeEnum];
|
|
119
|
-
|
|
120
105
|
/**
|
|
121
106
|
* @export
|
|
122
107
|
*/
|
|
@@ -144,7 +129,6 @@ export function PutQuizFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
144
129
|
}
|
|
145
130
|
return {
|
|
146
131
|
|
|
147
|
-
'quizType': json['quiz_type'] == null ? undefined : json['quiz_type'],
|
|
148
132
|
'questionSelectionMethod': json['question_selection_method'] == null ? undefined : json['question_selection_method'],
|
|
149
133
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
150
134
|
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
@@ -171,7 +155,6 @@ export function PutQuizToJSONTyped(value?: PutQuiz | null, ignoreDiscriminator:
|
|
|
171
155
|
|
|
172
156
|
return {
|
|
173
157
|
|
|
174
|
-
'quiz_type': value['quizType'],
|
|
175
158
|
'question_selection_method': value['questionSelectionMethod'],
|
|
176
159
|
'max_questions': value['maxQuestions'],
|
|
177
160
|
'max_attempts': value['maxAttempts'],
|