@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
|
@@ -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']),
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostManualQuestionSelection
|
|
16
|
+
*/
|
|
17
|
+
export interface PostManualQuestionSelection {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the question to add to quiz
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostManualQuestionSelection
|
|
22
|
+
*/
|
|
23
|
+
questionId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Points assigned to this question
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PostManualQuestionSelection
|
|
28
|
+
*/
|
|
29
|
+
points?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Order of question in quiz (auto-assigned if not provided)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PostManualQuestionSelection
|
|
34
|
+
*/
|
|
35
|
+
questionOrder?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Whether to lock this question to current version
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof PostManualQuestionSelection
|
|
40
|
+
*/
|
|
41
|
+
versionLocked?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PostManualQuestionSelection interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPostManualQuestionSelection(value: object): value is PostManualQuestionSelection;
|
|
47
|
+
export declare function PostManualQuestionSelectionFromJSON(json: any): PostManualQuestionSelection;
|
|
48
|
+
export declare function PostManualQuestionSelectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostManualQuestionSelection;
|
|
49
|
+
export declare function PostManualQuestionSelectionToJSON(json: any): PostManualQuestionSelection;
|
|
50
|
+
export declare function PostManualQuestionSelectionToJSONTyped(value?: PostManualQuestionSelection | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PostManualQuestionSelection interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostManualQuestionSelection(value) {
|
|
18
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostManualQuestionSelectionFromJSON(json) {
|
|
23
|
+
return PostManualQuestionSelectionFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostManualQuestionSelectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'questionId': json['question_id'],
|
|
31
|
+
'points': json['points'] == null ? undefined : json['points'],
|
|
32
|
+
'questionOrder': json['question_order'] == null ? undefined : json['question_order'],
|
|
33
|
+
'versionLocked': json['version_locked'] == null ? undefined : json['version_locked'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PostManualQuestionSelectionToJSON(json) {
|
|
37
|
+
return PostManualQuestionSelectionToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PostManualQuestionSelectionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'question_id': value['questionId'],
|
|
45
|
+
'points': value['points'],
|
|
46
|
+
'question_order': value['questionOrder'],
|
|
47
|
+
'version_locked': value['versionLocked'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -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'],
|
|
@@ -31,6 +31,8 @@ export const PostQuizCriteriaCriteriaInnerQuestionTypeEnum = {
|
|
|
31
31
|
* Check if a given object implements the PostQuizCriteriaCriteriaInner interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfPostQuizCriteriaCriteriaInner(value) {
|
|
34
|
+
if (!('priority' in value) || value['priority'] === undefined)
|
|
35
|
+
return false;
|
|
34
36
|
return true;
|
|
35
37
|
}
|
|
36
38
|
export function PostQuizCriteriaCriteriaInnerFromJSON(json) {
|
|
@@ -48,7 +50,7 @@ export function PostQuizCriteriaCriteriaInnerFromJSONTyped(json, ignoreDiscrimin
|
|
|
48
50
|
'course': json['course'] == null ? undefined : json['course'],
|
|
49
51
|
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
50
52
|
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
51
|
-
'priority': json['priority']
|
|
53
|
+
'priority': json['priority'],
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
export function PostQuizCriteriaCriteriaInnerToJSON(json) {
|
|
@@ -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'],
|
|
@@ -26,6 +26,8 @@ export * from './GetCourseStudentReporting';
|
|
|
26
26
|
export * from './GetCourseStudentReportingCourseInfo';
|
|
27
27
|
export * from './GetCourseStudentReportingEngagement';
|
|
28
28
|
export * from './GetCourseStudentReportingPerformance';
|
|
29
|
+
export * from './GetManualQuestionSelectionItem';
|
|
30
|
+
export * from './GetManualQuestionSelectionList';
|
|
29
31
|
export * from './GetModule';
|
|
30
32
|
export * from './GetModuleInstructorBasicReporting';
|
|
31
33
|
export * from './GetModuleInstructorBasicReportingEngagement';
|
|
@@ -72,8 +74,10 @@ export * from './GetQuizAttemptQuestionsInnerAnswerChoicesInner';
|
|
|
72
74
|
export * from './GetQuizAttemptQuestionsInnerCurrentAnswer';
|
|
73
75
|
export * from './GetQuizAttemptQuizSettings';
|
|
74
76
|
export * from './GetQuizCriteria';
|
|
75
|
-
export * from './GetQuizCriteriaCriteriaInner';
|
|
76
77
|
export * from './GetQuizCriteriaEstimatedQuestions';
|
|
78
|
+
export * from './GetQuizCriteriaItem';
|
|
79
|
+
export * from './GetQuizCriteriaList';
|
|
80
|
+
export * from './GetQuizCriteriaListItemsInner';
|
|
77
81
|
export * from './GetQuizList';
|
|
78
82
|
export * from './GetQuizListAllOfFilters';
|
|
79
83
|
export * from './GetQuizListAllOfQuizzes';
|
|
@@ -116,6 +120,7 @@ export * from './PostContentUpload';
|
|
|
116
120
|
export * from './PostCourse';
|
|
117
121
|
export * from './PostCourseEnrollment';
|
|
118
122
|
export * from './PostLogin';
|
|
123
|
+
export * from './PostManualQuestionSelection';
|
|
119
124
|
export * from './PostModule';
|
|
120
125
|
export * from './PostPortal';
|
|
121
126
|
export * from './PostPortalInvite';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -28,6 +28,8 @@ export * from './GetCourseStudentReporting';
|
|
|
28
28
|
export * from './GetCourseStudentReportingCourseInfo';
|
|
29
29
|
export * from './GetCourseStudentReportingEngagement';
|
|
30
30
|
export * from './GetCourseStudentReportingPerformance';
|
|
31
|
+
export * from './GetManualQuestionSelectionItem';
|
|
32
|
+
export * from './GetManualQuestionSelectionList';
|
|
31
33
|
export * from './GetModule';
|
|
32
34
|
export * from './GetModuleInstructorBasicReporting';
|
|
33
35
|
export * from './GetModuleInstructorBasicReportingEngagement';
|
|
@@ -74,8 +76,10 @@ export * from './GetQuizAttemptQuestionsInnerAnswerChoicesInner';
|
|
|
74
76
|
export * from './GetQuizAttemptQuestionsInnerCurrentAnswer';
|
|
75
77
|
export * from './GetQuizAttemptQuizSettings';
|
|
76
78
|
export * from './GetQuizCriteria';
|
|
77
|
-
export * from './GetQuizCriteriaCriteriaInner';
|
|
78
79
|
export * from './GetQuizCriteriaEstimatedQuestions';
|
|
80
|
+
export * from './GetQuizCriteriaItem';
|
|
81
|
+
export * from './GetQuizCriteriaList';
|
|
82
|
+
export * from './GetQuizCriteriaListItemsInner';
|
|
79
83
|
export * from './GetQuizList';
|
|
80
84
|
export * from './GetQuizListAllOfFilters';
|
|
81
85
|
export * from './GetQuizListAllOfQuizzes';
|
|
@@ -118,6 +122,7 @@ export * from './PostContentUpload';
|
|
|
118
122
|
export * from './PostCourse';
|
|
119
123
|
export * from './PostCourseEnrollment';
|
|
120
124
|
export * from './PostLogin';
|
|
125
|
+
export * from './PostManualQuestionSelection';
|
|
121
126
|
export * from './PostModule';
|
|
122
127
|
export * from './PostPortal';
|
|
123
128
|
export * from './PostPortalInvite';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetQuizQuestionsItemsInnerQuestionDetails } from './GetQuizQuestionsItemsInnerQuestionDetails';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetManualQuestionSelectionItem
|
|
17
|
+
*/
|
|
18
|
+
export interface GetManualQuestionSelectionItem {
|
|
19
|
+
/**
|
|
20
|
+
* Quiz-question relationship ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetManualQuestionSelectionItem
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* ID of the question
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetManualQuestionSelectionItem
|
|
29
|
+
*/
|
|
30
|
+
questionId: string;
|
|
31
|
+
/**
|
|
32
|
+
* External ID of the question
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetManualQuestionSelectionItem
|
|
35
|
+
*/
|
|
36
|
+
questionExternalId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Order of question in quiz
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetManualQuestionSelectionItem
|
|
41
|
+
*/
|
|
42
|
+
questionOrder: number;
|
|
43
|
+
/**
|
|
44
|
+
* Points assigned to this question
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetManualQuestionSelectionItem
|
|
47
|
+
*/
|
|
48
|
+
points: number;
|
|
49
|
+
/**
|
|
50
|
+
* Whether question is locked to specific version
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof GetManualQuestionSelectionItem
|
|
53
|
+
*/
|
|
54
|
+
versionLocked: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {GetQuizQuestionsItemsInnerQuestionDetails}
|
|
58
|
+
* @memberof GetManualQuestionSelectionItem
|
|
59
|
+
*/
|
|
60
|
+
questionDetails: GetQuizQuestionsItemsInnerQuestionDetails;
|
|
61
|
+
/**
|
|
62
|
+
* When question was added to quiz
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof GetManualQuestionSelectionItem
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the GetManualQuestionSelectionItem interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfGetManualQuestionSelectionItem(value: object): value is GetManualQuestionSelectionItem;
|
|
72
|
+
export declare function GetManualQuestionSelectionItemFromJSON(json: any): GetManualQuestionSelectionItem;
|
|
73
|
+
export declare function GetManualQuestionSelectionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetManualQuestionSelectionItem;
|
|
74
|
+
export declare function GetManualQuestionSelectionItemToJSON(json: any): GetManualQuestionSelectionItem;
|
|
75
|
+
export declare function GetManualQuestionSelectionItemToJSONTyped(value?: GetManualQuestionSelectionItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetManualQuestionSelectionItem = instanceOfGetManualQuestionSelectionItem;
|
|
17
|
+
exports.GetManualQuestionSelectionItemFromJSON = GetManualQuestionSelectionItemFromJSON;
|
|
18
|
+
exports.GetManualQuestionSelectionItemFromJSONTyped = GetManualQuestionSelectionItemFromJSONTyped;
|
|
19
|
+
exports.GetManualQuestionSelectionItemToJSON = GetManualQuestionSelectionItemToJSON;
|
|
20
|
+
exports.GetManualQuestionSelectionItemToJSONTyped = GetManualQuestionSelectionItemToJSONTyped;
|
|
21
|
+
const GetQuizQuestionsItemsInnerQuestionDetails_1 = require("./GetQuizQuestionsItemsInnerQuestionDetails");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetManualQuestionSelectionItem interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetManualQuestionSelectionItem(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('questionExternalId' in value) || value['questionExternalId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('questionOrder' in value) || value['questionOrder'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('points' in value) || value['points'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('versionLocked' in value) || value['versionLocked'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('questionDetails' in value) || value['questionDetails'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function GetManualQuestionSelectionItemFromJSON(json) {
|
|
45
|
+
return GetManualQuestionSelectionItemFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function GetManualQuestionSelectionItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'questionId': json['question_id'],
|
|
54
|
+
'questionExternalId': json['question_external_id'],
|
|
55
|
+
'questionOrder': json['question_order'],
|
|
56
|
+
'points': json['points'],
|
|
57
|
+
'versionLocked': json['version_locked'],
|
|
58
|
+
'questionDetails': (0, GetQuizQuestionsItemsInnerQuestionDetails_1.GetQuizQuestionsItemsInnerQuestionDetailsFromJSON)(json['question_details']),
|
|
59
|
+
'createdAt': (new Date(json['created_at'])),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function GetManualQuestionSelectionItemToJSON(json) {
|
|
63
|
+
return GetManualQuestionSelectionItemToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function GetManualQuestionSelectionItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'question_id': value['questionId'],
|
|
72
|
+
'question_external_id': value['questionExternalId'],
|
|
73
|
+
'question_order': value['questionOrder'],
|
|
74
|
+
'points': value['points'],
|
|
75
|
+
'version_locked': value['versionLocked'],
|
|
76
|
+
'question_details': (0, GetQuizQuestionsItemsInnerQuestionDetails_1.GetQuizQuestionsItemsInnerQuestionDetailsToJSON)(value['questionDetails']),
|
|
77
|
+
'created_at': ((value['createdAt']).toISOString()),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetQuizQuestionsItemsInner } from './GetQuizQuestionsItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetManualQuestionSelectionList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetManualQuestionSelectionList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetManualQuestionSelectionList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetManualQuestionSelectionList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetManualQuestionSelectionList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of questions in the quiz
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetManualQuestionSelectionList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
* Total points possible for quiz
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetManualQuestionSelectionList
|
|
47
|
+
*/
|
|
48
|
+
totalPoints: number;
|
|
49
|
+
/**
|
|
50
|
+
* Manually selected questions in the quiz (paginated)
|
|
51
|
+
* @type {Array<GetQuizQuestionsItemsInner>}
|
|
52
|
+
* @memberof GetManualQuestionSelectionList
|
|
53
|
+
*/
|
|
54
|
+
items: Array<GetQuizQuestionsItemsInner>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the GetManualQuestionSelectionList interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfGetManualQuestionSelectionList(value: object): value is GetManualQuestionSelectionList;
|
|
60
|
+
export declare function GetManualQuestionSelectionListFromJSON(json: any): GetManualQuestionSelectionList;
|
|
61
|
+
export declare function GetManualQuestionSelectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetManualQuestionSelectionList;
|
|
62
|
+
export declare function GetManualQuestionSelectionListToJSON(json: any): GetManualQuestionSelectionList;
|
|
63
|
+
export declare function GetManualQuestionSelectionListToJSONTyped(value?: GetManualQuestionSelectionList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetManualQuestionSelectionList = instanceOfGetManualQuestionSelectionList;
|
|
17
|
+
exports.GetManualQuestionSelectionListFromJSON = GetManualQuestionSelectionListFromJSON;
|
|
18
|
+
exports.GetManualQuestionSelectionListFromJSONTyped = GetManualQuestionSelectionListFromJSONTyped;
|
|
19
|
+
exports.GetManualQuestionSelectionListToJSON = GetManualQuestionSelectionListToJSON;
|
|
20
|
+
exports.GetManualQuestionSelectionListToJSONTyped = GetManualQuestionSelectionListToJSONTyped;
|
|
21
|
+
const GetQuizQuestionsItemsInner_1 = require("./GetQuizQuestionsItemsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetManualQuestionSelectionList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetManualQuestionSelectionList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('totalPoints' in value) || value['totalPoints'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function GetManualQuestionSelectionListFromJSON(json) {
|
|
41
|
+
return GetManualQuestionSelectionListFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetManualQuestionSelectionListFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'page': json['page'],
|
|
49
|
+
'pageSize': json['pageSize'],
|
|
50
|
+
'totalPages': json['totalPages'],
|
|
51
|
+
'totalItems': json['totalItems'],
|
|
52
|
+
'totalPoints': json['total_points'],
|
|
53
|
+
'items': (json['items'].map(GetQuizQuestionsItemsInner_1.GetQuizQuestionsItemsInnerFromJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function GetManualQuestionSelectionListToJSON(json) {
|
|
57
|
+
return GetManualQuestionSelectionListToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function GetManualQuestionSelectionListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'page': value['page'],
|
|
65
|
+
'pageSize': value['pageSize'],
|
|
66
|
+
'totalPages': value['totalPages'],
|
|
67
|
+
'totalItems': value['totalItems'],
|
|
68
|
+
'total_points': value['totalPoints'],
|
|
69
|
+
'items': (value['items'].map(GetQuizQuestionsItemsInner_1.GetQuizQuestionsItemsInnerToJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|