@easyedu/js-lsm-api 1.139.0 → 1.140.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 +10 -0
- package/README.md +15 -2
- package/dist/apis/ContentLibraryQuizApi.d.ts +86 -0
- package/dist/apis/ContentLibraryQuizApi.js +216 -0
- package/dist/apis/DispatchApi.d.ts +53 -0
- package/dist/apis/DispatchApi.js +135 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +86 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +216 -0
- package/dist/esm/apis/DispatchApi.d.ts +53 -0
- package/dist/esm/apis/DispatchApi.js +135 -0
- package/dist/esm/models/GetAttemptAllowance.d.ts +9 -3
- package/dist/esm/models/GetAttemptAllowance.js +4 -0
- package/dist/esm/models/GetCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/GetLibraryQuizResult.d.ts +30 -0
- package/dist/esm/models/GetLibraryQuizResult.js +20 -0
- package/dist/esm/models/GetLibraryQuizSession.d.ts +43 -0
- package/dist/esm/models/GetLibraryQuizSession.js +27 -0
- package/dist/esm/models/GetLibraryQuizVersion.d.ts +19 -0
- package/dist/esm/models/GetLibraryQuizVersion.js +13 -0
- package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/esm/models/GetQuestionAnswerChoicesInner.js +4 -0
- package/dist/esm/models/GetQuizSettings.d.ts +56 -0
- package/dist/esm/models/GetQuizSettings.js +57 -0
- package/dist/esm/models/HostedScormOutlineEntry.d.ts +1 -1
- package/dist/esm/models/LibraryQuizQuestionFeedback.d.ts +78 -0
- package/dist/esm/models/LibraryQuizQuestionFeedback.js +66 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +2 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +19 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.js +11 -0
- package/dist/esm/models/PostCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/PostLibraryQuiz.d.ts +21 -2
- package/dist/esm/models/PostLibraryQuiz.js +7 -0
- package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/esm/models/PostQuestionAnswerChoicesInner.js +2 -0
- package/dist/esm/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
- package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.js +43 -0
- package/dist/esm/models/PutLibraryQuizVersion.d.ts +19 -0
- package/dist/esm/models/PutLibraryQuizVersion.js +7 -0
- package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/esm/models/PutQuestionAnswerChoicesInner.js +2 -0
- package/dist/esm/models/PutQuizSettings.d.ts +44 -0
- package/dist/esm/models/PutQuizSettings.js +51 -0
- package/dist/esm/models/QuizFeedbackTiming.d.ts +25 -0
- package/dist/esm/models/QuizFeedbackTiming.js +43 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/GetAttemptAllowance.d.ts +9 -3
- package/dist/models/GetAttemptAllowance.js +4 -0
- package/dist/models/GetCourseVersionItem.d.ts +1 -1
- package/dist/models/GetLibraryQuizResult.d.ts +30 -0
- package/dist/models/GetLibraryQuizResult.js +20 -0
- package/dist/models/GetLibraryQuizSession.d.ts +43 -0
- package/dist/models/GetLibraryQuizSession.js +27 -0
- package/dist/models/GetLibraryQuizVersion.d.ts +19 -0
- package/dist/models/GetLibraryQuizVersion.js +13 -0
- package/dist/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/models/GetQuestionAnswerChoicesInner.js +4 -0
- package/dist/models/GetQuizSettings.d.ts +56 -0
- package/dist/models/GetQuizSettings.js +64 -0
- package/dist/models/HostedScormOutlineEntry.d.ts +1 -1
- package/dist/models/LibraryQuizQuestionFeedback.d.ts +78 -0
- package/dist/models/LibraryQuizQuestionFeedback.js +74 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.js +2 -0
- package/dist/models/LibraryQuizSessionQuestion.d.ts +19 -0
- package/dist/models/LibraryQuizSessionQuestion.js +11 -0
- package/dist/models/PostCourseVersionItem.d.ts +1 -1
- package/dist/models/PostLibraryQuiz.d.ts +21 -2
- package/dist/models/PostLibraryQuiz.js +7 -0
- package/dist/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/models/PostQuestionAnswerChoicesInner.js +2 -0
- package/dist/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
- package/dist/models/PutLibraryQuizSessionQuestionFlag.js +50 -0
- package/dist/models/PutLibraryQuizVersion.d.ts +19 -0
- package/dist/models/PutLibraryQuizVersion.js +7 -0
- package/dist/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/models/PutQuestionAnswerChoicesInner.js +2 -0
- package/dist/models/PutQuizSettings.d.ts +44 -0
- package/dist/models/PutQuizSettings.js +58 -0
- package/dist/models/QuizFeedbackTiming.d.ts +25 -0
- package/dist/models/QuizFeedbackTiming.js +51 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/ContentLibraryQuizApi.md +343 -0
- package/docs/DispatchApi.md +214 -0
- package/docs/GetAttemptAllowance.md +2 -0
- package/docs/GetLibraryQuizResult.md +10 -0
- package/docs/GetLibraryQuizSession.md +14 -0
- package/docs/GetLibraryQuizVersion.md +6 -0
- package/docs/GetQuestionAnswerChoicesInner.md +2 -0
- package/docs/GetQuizSettings.md +43 -0
- package/docs/LibraryQuizQuestionFeedback.md +47 -0
- package/docs/LibraryQuizSessionAnswerChoice.md +2 -0
- package/docs/LibraryQuizSessionQuestion.md +6 -0
- package/docs/PostLibraryQuiz.md +6 -0
- package/docs/PostQuestionAnswerChoicesInner.md +2 -0
- package/docs/PutLibraryQuizSessionQuestionFlag.md +34 -0
- package/docs/PutLibraryQuizVersion.md +6 -0
- package/docs/PutQuestionAnswerChoicesInner.md +2 -0
- package/docs/PutQuizSettings.md +38 -0
- package/docs/QuizFeedbackTiming.md +33 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryQuizApi.ts +287 -0
- package/src/apis/DispatchApi.ts +185 -0
- package/src/models/GetAttemptAllowance.ts +12 -3
- package/src/models/GetCourseVersionItem.ts +1 -1
- package/src/models/GetLibraryQuizResult.ts +45 -0
- package/src/models/GetLibraryQuizSession.ts +69 -0
- package/src/models/GetLibraryQuizVersion.ts +34 -0
- package/src/models/GetQuestionAnswerChoicesInner.ts +9 -0
- package/src/models/GetQuizSettings.ts +101 -0
- package/src/models/HostedScormOutlineEntry.ts +1 -1
- package/src/models/LibraryQuizQuestionFeedback.ts +135 -0
- package/src/models/LibraryQuizSessionAnswerChoice.ts +8 -0
- package/src/models/LibraryQuizSessionQuestion.ts +33 -0
- package/src/models/PostCourseVersionItem.ts +1 -1
- package/src/models/PostLibraryQuiz.ts +33 -2
- package/src/models/PostQuestionAnswerChoicesInner.ts +8 -0
- package/src/models/PutCourseVersionItem.ts +1 -1
- package/src/models/PutLibraryQuizSessionQuestionFlag.ts +66 -0
- package/src/models/PutLibraryQuizVersion.ts +31 -0
- package/src/models/PutQuestionAnswerChoicesInner.ts +8 -0
- package/src/models/PutQuizSettings.ts +84 -0
- package/src/models/QuizFeedbackTiming.ts +53 -0
- package/src/models/index.ts +5 -0
|
@@ -34,6 +34,12 @@ export interface PutQuestionAnswerChoicesInner {
|
|
|
34
34
|
* @memberof PutQuestionAnswerChoicesInner
|
|
35
35
|
*/
|
|
36
36
|
isCorrect: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Keep this answer in its authored position when a quiz randomizes answers.
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof PutQuestionAnswerChoicesInner
|
|
41
|
+
*/
|
|
42
|
+
lockPosition?: boolean;
|
|
37
43
|
}
|
|
38
44
|
/**
|
|
39
45
|
* Check if a given object implements the PutQuestionAnswerChoicesInner interface.
|
|
@@ -40,6 +40,7 @@ function PutQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'id': json['id'] == null ? undefined : json['id'],
|
|
41
41
|
'text': (0, RichTextInput_1.RichTextInputFromJSON)(json['text']),
|
|
42
42
|
'isCorrect': json['is_correct'],
|
|
43
|
+
'lockPosition': json['lock_position'] == null ? undefined : json['lock_position'],
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
function PutQuestionAnswerChoicesInnerToJSON(json) {
|
|
@@ -53,5 +54,6 @@ function PutQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator = f
|
|
|
53
54
|
'id': value['id'],
|
|
54
55
|
'text': (0, RichTextInput_1.RichTextInputToJSON)(value['text']),
|
|
55
56
|
'is_correct': value['isCorrect'],
|
|
57
|
+
'lock_position': value['lockPosition'],
|
|
56
58
|
};
|
|
57
59
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 PutQuizSettings
|
|
16
|
+
*/
|
|
17
|
+
export interface PutQuizSettings {
|
|
18
|
+
/**
|
|
19
|
+
* Attempt limit copied into each new quiz. Zero means unlimited.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PutQuizSettings
|
|
22
|
+
*/
|
|
23
|
+
defaultMaxAttempts: number;
|
|
24
|
+
/**
|
|
25
|
+
* Time limit copied into each new quiz. Null means no time limit.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PutQuizSettings
|
|
28
|
+
*/
|
|
29
|
+
defaultTimeLimitMinutes: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Passing score copied into each new quiz.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PutQuizSettings
|
|
34
|
+
*/
|
|
35
|
+
defaultPassingScore: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PutQuizSettings interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPutQuizSettings(value: object): value is PutQuizSettings;
|
|
41
|
+
export declare function PutQuizSettingsFromJSON(json: any): PutQuizSettings;
|
|
42
|
+
export declare function PutQuizSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizSettings;
|
|
43
|
+
export declare function PutQuizSettingsToJSON(json: any): PutQuizSettings;
|
|
44
|
+
export declare function PutQuizSettingsToJSONTyped(value?: PutQuizSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfPutQuizSettings = instanceOfPutQuizSettings;
|
|
17
|
+
exports.PutQuizSettingsFromJSON = PutQuizSettingsFromJSON;
|
|
18
|
+
exports.PutQuizSettingsFromJSONTyped = PutQuizSettingsFromJSONTyped;
|
|
19
|
+
exports.PutQuizSettingsToJSON = PutQuizSettingsToJSON;
|
|
20
|
+
exports.PutQuizSettingsToJSONTyped = PutQuizSettingsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutQuizSettings interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutQuizSettings(value) {
|
|
25
|
+
if (!('defaultMaxAttempts' in value) || value['defaultMaxAttempts'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('defaultTimeLimitMinutes' in value) || value['defaultTimeLimitMinutes'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('defaultPassingScore' in value) || value['defaultPassingScore'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PutQuizSettingsFromJSON(json) {
|
|
34
|
+
return PutQuizSettingsFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PutQuizSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'defaultMaxAttempts': json['default_max_attempts'],
|
|
42
|
+
'defaultTimeLimitMinutes': json['default_time_limit_minutes'],
|
|
43
|
+
'defaultPassingScore': json['default_passing_score'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function PutQuizSettingsToJSON(json) {
|
|
47
|
+
return PutQuizSettingsToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function PutQuizSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'default_max_attempts': value['defaultMaxAttempts'],
|
|
55
|
+
'default_time_limit_minutes': value['defaultTimeLimitMinutes'],
|
|
56
|
+
'default_passing_score': value['defaultPassingScore'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* When learners see feedback. `after_submission` shows it once the whole attempt is submitted. `after_each_question` lets the learner check each answer as they go; a checked answer is locked and can no longer be changed.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const QuizFeedbackTiming: {
|
|
17
|
+
readonly AfterSubmission: "after_submission";
|
|
18
|
+
readonly AfterEachQuestion: "after_each_question";
|
|
19
|
+
};
|
|
20
|
+
export type QuizFeedbackTiming = typeof QuizFeedbackTiming[keyof typeof QuizFeedbackTiming];
|
|
21
|
+
export declare function instanceOfQuizFeedbackTiming(value: any): boolean;
|
|
22
|
+
export declare function QuizFeedbackTimingFromJSON(json: any): QuizFeedbackTiming;
|
|
23
|
+
export declare function QuizFeedbackTimingFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuizFeedbackTiming;
|
|
24
|
+
export declare function QuizFeedbackTimingToJSON(value?: QuizFeedbackTiming | null): any;
|
|
25
|
+
export declare function QuizFeedbackTimingToJSONTyped(value: any, ignoreDiscriminator: boolean): QuizFeedbackTiming;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.QuizFeedbackTiming = void 0;
|
|
17
|
+
exports.instanceOfQuizFeedbackTiming = instanceOfQuizFeedbackTiming;
|
|
18
|
+
exports.QuizFeedbackTimingFromJSON = QuizFeedbackTimingFromJSON;
|
|
19
|
+
exports.QuizFeedbackTimingFromJSONTyped = QuizFeedbackTimingFromJSONTyped;
|
|
20
|
+
exports.QuizFeedbackTimingToJSON = QuizFeedbackTimingToJSON;
|
|
21
|
+
exports.QuizFeedbackTimingToJSONTyped = QuizFeedbackTimingToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* When learners see feedback. `after_submission` shows it once the whole attempt is submitted. `after_each_question` lets the learner check each answer as they go; a checked answer is locked and can no longer be changed.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.QuizFeedbackTiming = {
|
|
27
|
+
AfterSubmission: 'after_submission',
|
|
28
|
+
AfterEachQuestion: 'after_each_question'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfQuizFeedbackTiming(value) {
|
|
31
|
+
for (const key in exports.QuizFeedbackTiming) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.QuizFeedbackTiming, key)) {
|
|
33
|
+
if (exports.QuizFeedbackTiming[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function QuizFeedbackTimingFromJSON(json) {
|
|
41
|
+
return QuizFeedbackTimingFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function QuizFeedbackTimingFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function QuizFeedbackTimingToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function QuizFeedbackTimingToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -135,6 +135,7 @@ export * from './GetQuestionAnswerChoicesInner';
|
|
|
135
135
|
export * from './GetQuestionList';
|
|
136
136
|
export * from './GetQuestionListFilters';
|
|
137
137
|
export * from './GetQuestionQuizzesInner';
|
|
138
|
+
export * from './GetQuizSettings';
|
|
138
139
|
export * from './GetReportCatalog';
|
|
139
140
|
export * from './GetReportQueryResult';
|
|
140
141
|
export * from './GetResource';
|
|
@@ -200,6 +201,7 @@ export * from './LibraryQuizCriteriaPreviewQuestion';
|
|
|
200
201
|
export * from './LibraryQuizCriterion';
|
|
201
202
|
export * from './LibraryQuizCriterionPreview';
|
|
202
203
|
export * from './LibraryQuizQuestion';
|
|
204
|
+
export * from './LibraryQuizQuestionFeedback';
|
|
203
205
|
export * from './LibraryQuizQuestionInput';
|
|
204
206
|
export * from './LibraryQuizSessionAnswerChoice';
|
|
205
207
|
export * from './LibraryQuizSessionQuestion';
|
|
@@ -336,6 +338,7 @@ export * from './PutLibraryQuizQuestions';
|
|
|
336
338
|
export * from './PutLibraryQuizSessionAnswer';
|
|
337
339
|
export * from './PutLibraryQuizSessionGrade';
|
|
338
340
|
export * from './PutLibraryQuizSessionOverride';
|
|
341
|
+
export * from './PutLibraryQuizSessionQuestionFlag';
|
|
339
342
|
export * from './PutLibraryQuizVersion';
|
|
340
343
|
export * from './PutPortalBranding';
|
|
341
344
|
export * from './PutPortalCertificateTemplate';
|
|
@@ -344,6 +347,7 @@ export * from './PutPortalUser';
|
|
|
344
347
|
export * from './PutPortalUserFieldValues';
|
|
345
348
|
export * from './PutQuestion';
|
|
346
349
|
export * from './PutQuestionAnswerChoicesInner';
|
|
350
|
+
export * from './PutQuizSettings';
|
|
347
351
|
export * from './PutResource';
|
|
348
352
|
export * from './PutResourceSessionOverride';
|
|
349
353
|
export * from './PutResourceVersion';
|
|
@@ -360,6 +364,7 @@ export * from './QuestionImportPreviewImage';
|
|
|
360
364
|
export * from './QuestionImportSource';
|
|
361
365
|
export * from './QuestionImportSourceSummary';
|
|
362
366
|
export * from './QuestionSelectionMethod';
|
|
367
|
+
export * from './QuizFeedbackTiming';
|
|
363
368
|
export * from './ReportCategory';
|
|
364
369
|
export * from './ReportColumn';
|
|
365
370
|
export * from './ReportDefinition';
|
package/dist/models/index.js
CHANGED
|
@@ -153,6 +153,7 @@ __exportStar(require("./GetQuestionAnswerChoicesInner"), exports);
|
|
|
153
153
|
__exportStar(require("./GetQuestionList"), exports);
|
|
154
154
|
__exportStar(require("./GetQuestionListFilters"), exports);
|
|
155
155
|
__exportStar(require("./GetQuestionQuizzesInner"), exports);
|
|
156
|
+
__exportStar(require("./GetQuizSettings"), exports);
|
|
156
157
|
__exportStar(require("./GetReportCatalog"), exports);
|
|
157
158
|
__exportStar(require("./GetReportQueryResult"), exports);
|
|
158
159
|
__exportStar(require("./GetResource"), exports);
|
|
@@ -218,6 +219,7 @@ __exportStar(require("./LibraryQuizCriteriaPreviewQuestion"), exports);
|
|
|
218
219
|
__exportStar(require("./LibraryQuizCriterion"), exports);
|
|
219
220
|
__exportStar(require("./LibraryQuizCriterionPreview"), exports);
|
|
220
221
|
__exportStar(require("./LibraryQuizQuestion"), exports);
|
|
222
|
+
__exportStar(require("./LibraryQuizQuestionFeedback"), exports);
|
|
221
223
|
__exportStar(require("./LibraryQuizQuestionInput"), exports);
|
|
222
224
|
__exportStar(require("./LibraryQuizSessionAnswerChoice"), exports);
|
|
223
225
|
__exportStar(require("./LibraryQuizSessionQuestion"), exports);
|
|
@@ -354,6 +356,7 @@ __exportStar(require("./PutLibraryQuizQuestions"), exports);
|
|
|
354
356
|
__exportStar(require("./PutLibraryQuizSessionAnswer"), exports);
|
|
355
357
|
__exportStar(require("./PutLibraryQuizSessionGrade"), exports);
|
|
356
358
|
__exportStar(require("./PutLibraryQuizSessionOverride"), exports);
|
|
359
|
+
__exportStar(require("./PutLibraryQuizSessionQuestionFlag"), exports);
|
|
357
360
|
__exportStar(require("./PutLibraryQuizVersion"), exports);
|
|
358
361
|
__exportStar(require("./PutPortalBranding"), exports);
|
|
359
362
|
__exportStar(require("./PutPortalCertificateTemplate"), exports);
|
|
@@ -362,6 +365,7 @@ __exportStar(require("./PutPortalUser"), exports);
|
|
|
362
365
|
__exportStar(require("./PutPortalUserFieldValues"), exports);
|
|
363
366
|
__exportStar(require("./PutQuestion"), exports);
|
|
364
367
|
__exportStar(require("./PutQuestionAnswerChoicesInner"), exports);
|
|
368
|
+
__exportStar(require("./PutQuizSettings"), exports);
|
|
365
369
|
__exportStar(require("./PutResource"), exports);
|
|
366
370
|
__exportStar(require("./PutResourceSessionOverride"), exports);
|
|
367
371
|
__exportStar(require("./PutResourceVersion"), exports);
|
|
@@ -378,6 +382,7 @@ __exportStar(require("./QuestionImportPreviewImage"), exports);
|
|
|
378
382
|
__exportStar(require("./QuestionImportSource"), exports);
|
|
379
383
|
__exportStar(require("./QuestionImportSourceSummary"), exports);
|
|
380
384
|
__exportStar(require("./QuestionSelectionMethod"), exports);
|
|
385
|
+
__exportStar(require("./QuizFeedbackTiming"), exports);
|
|
381
386
|
__exportStar(require("./ReportCategory"), exports);
|
|
382
387
|
__exportStar(require("./ReportColumn"), exports);
|
|
383
388
|
__exportStar(require("./ReportDefinition"), exports);
|
|
@@ -15,11 +15,14 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
15
15
|
| [**getLibraryQuizSessionResults**](ContentLibraryQuizApi.md#getlibraryquizsessionresults) | **GET** /quiz/sessions/{sessionId}/results | Get reusable quiz session results |
|
|
16
16
|
| [**getLibraryQuizUsage**](ContentLibraryQuizApi.md#getlibraryquizusage) | **GET** /content-library/quizzes/{quizId}/usage | Get course and learner usage for a reusable quiz |
|
|
17
17
|
| [**getLibraryQuizVersion**](ContentLibraryQuizApi.md#getlibraryquizversion) | **GET** /content-library/quizzes/{quizId}/versions/{versionId} | Get a reusable quiz version |
|
|
18
|
+
| [**getQuizSettings**](ContentLibraryQuizApi.md#getquizsettings) | **GET** /content-library/quiz-settings | Get the selected portal\'s defaults for new quizzes |
|
|
18
19
|
| [**postCourseLibraryQuizSession**](ContentLibraryQuizApi.md#postcourselibraryquizsession) | **POST** /courses/{courseId}/versions/{courseVersionId}/items/{itemId}/quiz-sessions | Start or resume a live or sandbox-preview attempt for a course-pinned quiz version |
|
|
19
20
|
| [**postLibraryQuiz**](ContentLibraryQuizApi.md#postlibraryquiz) | **POST** /content-library/quizzes | Create a reusable quiz and its first draft version |
|
|
20
21
|
| [**postLibraryQuizArchive**](ContentLibraryQuizApi.md#postlibraryquizarchive) | **POST** /content-library/quizzes/{quizId}/archive | Archive a reusable quiz |
|
|
21
22
|
| [**postLibraryQuizCriteriaPreview**](ContentLibraryQuizApi.md#postlibraryquizcriteriapreview) | **POST** /content-library/quizzes/{quizId}/versions/{versionId}/criteria/preview | Preview questions matching unsaved quiz-selection criteria |
|
|
22
23
|
| [**postLibraryQuizSession**](ContentLibraryQuizApi.md#postlibraryquizsession) | **POST** /content-library/quizzes/{quizId}/versions/{versionId}/sessions | Start or resume a sandbox attempt for an exact quiz version |
|
|
24
|
+
| [**postLibraryQuizSessionAnswerCheck**](ContentLibraryQuizApi.md#postlibraryquizsessionanswercheck) | **POST** /quiz/sessions/{sessionId}/answers/{sessionQuestionId}/check | Check a saved answer for immediate feedback |
|
|
25
|
+
| [**postLibraryQuizSessionStart**](ContentLibraryQuizApi.md#postlibraryquizsessionstart) | **POST** /quiz/sessions/{sessionId}/start | Begin a quiz attempt from its introduction page |
|
|
23
26
|
| [**postLibraryQuizSessionSubmit**](ContentLibraryQuizApi.md#postlibraryquizsessionsubmit) | **POST** /quiz/sessions/{sessionId}/submit | Submit and grade a reusable quiz session |
|
|
24
27
|
| [**postLibraryQuizVersion**](ContentLibraryQuizApi.md#postlibraryquizversion) | **POST** /content-library/quizzes/{quizId}/versions | Create the next draft quiz version |
|
|
25
28
|
| [**postLibraryQuizVersionArchive**](ContentLibraryQuizApi.md#postlibraryquizversionarchive) | **POST** /content-library/quizzes/{quizId}/versions/{versionId}/archive | Archive a published reusable quiz version |
|
|
@@ -30,7 +33,9 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
30
33
|
| [**putLibraryQuizSessionAnswer**](ContentLibraryQuizApi.md#putlibraryquizsessionanswer) | **PUT** /quiz/sessions/{sessionId}/answers/{sessionQuestionId} | Save an answer using version-snapshot identifiers |
|
|
31
34
|
| [**putLibraryQuizSessionGrade**](ContentLibraryQuizApi.md#putlibraryquizsessiongrade) | **PUT** /quiz/sessions/{sessionId}/answers/{sessionQuestionId}/grade | Manually grade a reusable quiz session answer |
|
|
32
35
|
| [**putLibraryQuizSessionOverride**](ContentLibraryQuizApi.md#putlibraryquizsessionoverride) | **PUT** /quiz/sessions/{sessionId}/override | Override a learner\'s live quiz-session progress |
|
|
36
|
+
| [**putLibraryQuizSessionQuestionFlag**](ContentLibraryQuizApi.md#putlibraryquizsessionquestionflag) | **PUT** /quiz/sessions/{sessionId}/questions/{sessionQuestionId}/flag | Flag or unflag a question to review before submitting |
|
|
33
37
|
| [**putLibraryQuizVersion**](ContentLibraryQuizApi.md#putlibraryquizversion) | **PUT** /content-library/quizzes/{quizId}/versions/{versionId} | Edit a draft reusable quiz version |
|
|
38
|
+
| [**putQuizSettings**](ContentLibraryQuizApi.md#putquizsettings) | **PUT** /content-library/quiz-settings | Update the selected portal\'s defaults for new quizzes |
|
|
34
39
|
|
|
35
40
|
|
|
36
41
|
|
|
@@ -811,6 +816,65 @@ No authorization required
|
|
|
811
816
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
812
817
|
|
|
813
818
|
|
|
819
|
+
## getQuizSettings
|
|
820
|
+
|
|
821
|
+
> GetQuizSettings getQuizSettings()
|
|
822
|
+
|
|
823
|
+
Get the selected portal\'s defaults for new quizzes
|
|
824
|
+
|
|
825
|
+
Returns the attempt limit, time limit, and passing score that are copied into each new quiz. A portal that has never saved its own values gets the built-in defaults (5 attempts, 60 minutes, 70%).
|
|
826
|
+
|
|
827
|
+
### Example
|
|
828
|
+
|
|
829
|
+
```ts
|
|
830
|
+
import {
|
|
831
|
+
Configuration,
|
|
832
|
+
ContentLibraryQuizApi,
|
|
833
|
+
} from '@easyedu/js-lsm-api';
|
|
834
|
+
import type { GetQuizSettingsRequest } from '@easyedu/js-lsm-api';
|
|
835
|
+
|
|
836
|
+
async function example() {
|
|
837
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
838
|
+
const api = new ContentLibraryQuizApi();
|
|
839
|
+
|
|
840
|
+
try {
|
|
841
|
+
const data = await api.getQuizSettings();
|
|
842
|
+
console.log(data);
|
|
843
|
+
} catch (error) {
|
|
844
|
+
console.error(error);
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
// Run the test
|
|
849
|
+
example().catch(console.error);
|
|
850
|
+
```
|
|
851
|
+
|
|
852
|
+
### Parameters
|
|
853
|
+
|
|
854
|
+
This endpoint does not need any parameter.
|
|
855
|
+
|
|
856
|
+
### Return type
|
|
857
|
+
|
|
858
|
+
[**GetQuizSettings**](GetQuizSettings.md)
|
|
859
|
+
|
|
860
|
+
### Authorization
|
|
861
|
+
|
|
862
|
+
No authorization required
|
|
863
|
+
|
|
864
|
+
### HTTP request headers
|
|
865
|
+
|
|
866
|
+
- **Content-Type**: Not defined
|
|
867
|
+
- **Accept**: `application/json`
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
### HTTP response details
|
|
871
|
+
| Status code | Description | Response headers |
|
|
872
|
+
|-------------|-------------|------------------|
|
|
873
|
+
| **200** | Portal quiz defaults | - |
|
|
874
|
+
|
|
875
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
876
|
+
|
|
877
|
+
|
|
814
878
|
## postCourseLibraryQuizSession
|
|
815
879
|
|
|
816
880
|
> GetLibraryQuizSession postCourseLibraryQuizSession(courseId, courseVersionId, itemId, preview, postCourseLibraryQuizSession)
|
|
@@ -1165,6 +1229,145 @@ No authorization required
|
|
|
1165
1229
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1166
1230
|
|
|
1167
1231
|
|
|
1232
|
+
## postLibraryQuizSessionAnswerCheck
|
|
1233
|
+
|
|
1234
|
+
> GetLibraryQuizSession postLibraryQuizSessionAnswerCheck(sessionId, sessionQuestionId)
|
|
1235
|
+
|
|
1236
|
+
Check a saved answer for immediate feedback
|
|
1237
|
+
|
|
1238
|
+
Available when the quiz shows feedback after each question. Locks the saved answer and returns the session with that question\'s feedback.
|
|
1239
|
+
|
|
1240
|
+
### Example
|
|
1241
|
+
|
|
1242
|
+
```ts
|
|
1243
|
+
import {
|
|
1244
|
+
Configuration,
|
|
1245
|
+
ContentLibraryQuizApi,
|
|
1246
|
+
} from '@easyedu/js-lsm-api';
|
|
1247
|
+
import type { PostLibraryQuizSessionAnswerCheckRequest } from '@easyedu/js-lsm-api';
|
|
1248
|
+
|
|
1249
|
+
async function example() {
|
|
1250
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
1251
|
+
const api = new ContentLibraryQuizApi();
|
|
1252
|
+
|
|
1253
|
+
const body = {
|
|
1254
|
+
// string
|
|
1255
|
+
sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
1256
|
+
// string
|
|
1257
|
+
sessionQuestionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
1258
|
+
} satisfies PostLibraryQuizSessionAnswerCheckRequest;
|
|
1259
|
+
|
|
1260
|
+
try {
|
|
1261
|
+
const data = await api.postLibraryQuizSessionAnswerCheck(body);
|
|
1262
|
+
console.log(data);
|
|
1263
|
+
} catch (error) {
|
|
1264
|
+
console.error(error);
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
// Run the test
|
|
1269
|
+
example().catch(console.error);
|
|
1270
|
+
```
|
|
1271
|
+
|
|
1272
|
+
### Parameters
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
| Name | Type | Description | Notes |
|
|
1276
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1277
|
+
| **sessionId** | `string` | | [Defaults to `undefined`] |
|
|
1278
|
+
| **sessionQuestionId** | `string` | | [Defaults to `undefined`] |
|
|
1279
|
+
|
|
1280
|
+
### Return type
|
|
1281
|
+
|
|
1282
|
+
[**GetLibraryQuizSession**](GetLibraryQuizSession.md)
|
|
1283
|
+
|
|
1284
|
+
### Authorization
|
|
1285
|
+
|
|
1286
|
+
No authorization required
|
|
1287
|
+
|
|
1288
|
+
### HTTP request headers
|
|
1289
|
+
|
|
1290
|
+
- **Content-Type**: Not defined
|
|
1291
|
+
- **Accept**: `application/json`
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
### HTTP response details
|
|
1295
|
+
| Status code | Description | Response headers |
|
|
1296
|
+
|-------------|-------------|------------------|
|
|
1297
|
+
| **200** | Quiz session including the checked question\'s feedback | - |
|
|
1298
|
+
| **409** | The quiz shows feedback only after submission, the question has no saved answer, or the attempt has already been submitted | - |
|
|
1299
|
+
|
|
1300
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
## postLibraryQuizSessionStart
|
|
1304
|
+
|
|
1305
|
+
> GetLibraryQuizSession postLibraryQuizSessionStart(sessionId)
|
|
1306
|
+
|
|
1307
|
+
Begin a quiz attempt from its introduction page
|
|
1308
|
+
|
|
1309
|
+
Marks the attempt as started and starts its time limit. Answers cannot be saved before the attempt has started. Calling this again for an attempt that already started returns it unchanged.
|
|
1310
|
+
|
|
1311
|
+
### Example
|
|
1312
|
+
|
|
1313
|
+
```ts
|
|
1314
|
+
import {
|
|
1315
|
+
Configuration,
|
|
1316
|
+
ContentLibraryQuizApi,
|
|
1317
|
+
} from '@easyedu/js-lsm-api';
|
|
1318
|
+
import type { PostLibraryQuizSessionStartRequest } from '@easyedu/js-lsm-api';
|
|
1319
|
+
|
|
1320
|
+
async function example() {
|
|
1321
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
1322
|
+
const api = new ContentLibraryQuizApi();
|
|
1323
|
+
|
|
1324
|
+
const body = {
|
|
1325
|
+
// string
|
|
1326
|
+
sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
1327
|
+
} satisfies PostLibraryQuizSessionStartRequest;
|
|
1328
|
+
|
|
1329
|
+
try {
|
|
1330
|
+
const data = await api.postLibraryQuizSessionStart(body);
|
|
1331
|
+
console.log(data);
|
|
1332
|
+
} catch (error) {
|
|
1333
|
+
console.error(error);
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
// Run the test
|
|
1338
|
+
example().catch(console.error);
|
|
1339
|
+
```
|
|
1340
|
+
|
|
1341
|
+
### Parameters
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
| Name | Type | Description | Notes |
|
|
1345
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1346
|
+
| **sessionId** | `string` | | [Defaults to `undefined`] |
|
|
1347
|
+
|
|
1348
|
+
### Return type
|
|
1349
|
+
|
|
1350
|
+
[**GetLibraryQuizSession**](GetLibraryQuizSession.md)
|
|
1351
|
+
|
|
1352
|
+
### Authorization
|
|
1353
|
+
|
|
1354
|
+
No authorization required
|
|
1355
|
+
|
|
1356
|
+
### HTTP request headers
|
|
1357
|
+
|
|
1358
|
+
- **Content-Type**: Not defined
|
|
1359
|
+
- **Accept**: `application/json`
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
### HTTP response details
|
|
1363
|
+
| Status code | Description | Response headers |
|
|
1364
|
+
|-------------|-------------|------------------|
|
|
1365
|
+
| **200** | Started quiz session | - |
|
|
1366
|
+
| **409** | The attempt has already been submitted | - |
|
|
1367
|
+
|
|
1368
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1369
|
+
|
|
1370
|
+
|
|
1168
1371
|
## postLibraryQuizSessionSubmit
|
|
1169
1372
|
|
|
1170
1373
|
> GetLibraryQuizResult postLibraryQuizSessionSubmit(sessionId)
|
|
@@ -1858,6 +2061,78 @@ No authorization required
|
|
|
1858
2061
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1859
2062
|
|
|
1860
2063
|
|
|
2064
|
+
## putLibraryQuizSessionQuestionFlag
|
|
2065
|
+
|
|
2066
|
+
> GetLibraryQuizSession putLibraryQuizSessionQuestionFlag(sessionId, sessionQuestionId, putLibraryQuizSessionQuestionFlag)
|
|
2067
|
+
|
|
2068
|
+
Flag or unflag a question to review before submitting
|
|
2069
|
+
|
|
2070
|
+
### Example
|
|
2071
|
+
|
|
2072
|
+
```ts
|
|
2073
|
+
import {
|
|
2074
|
+
Configuration,
|
|
2075
|
+
ContentLibraryQuizApi,
|
|
2076
|
+
} from '@easyedu/js-lsm-api';
|
|
2077
|
+
import type { PutLibraryQuizSessionQuestionFlagRequest } from '@easyedu/js-lsm-api';
|
|
2078
|
+
|
|
2079
|
+
async function example() {
|
|
2080
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
2081
|
+
const api = new ContentLibraryQuizApi();
|
|
2082
|
+
|
|
2083
|
+
const body = {
|
|
2084
|
+
// string
|
|
2085
|
+
sessionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
2086
|
+
// string
|
|
2087
|
+
sessionQuestionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
2088
|
+
// PutLibraryQuizSessionQuestionFlag
|
|
2089
|
+
putLibraryQuizSessionQuestionFlag: ...,
|
|
2090
|
+
} satisfies PutLibraryQuizSessionQuestionFlagRequest;
|
|
2091
|
+
|
|
2092
|
+
try {
|
|
2093
|
+
const data = await api.putLibraryQuizSessionQuestionFlag(body);
|
|
2094
|
+
console.log(data);
|
|
2095
|
+
} catch (error) {
|
|
2096
|
+
console.error(error);
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
// Run the test
|
|
2101
|
+
example().catch(console.error);
|
|
2102
|
+
```
|
|
2103
|
+
|
|
2104
|
+
### Parameters
|
|
2105
|
+
|
|
2106
|
+
|
|
2107
|
+
| Name | Type | Description | Notes |
|
|
2108
|
+
|------------- | ------------- | ------------- | -------------|
|
|
2109
|
+
| **sessionId** | `string` | | [Defaults to `undefined`] |
|
|
2110
|
+
| **sessionQuestionId** | `string` | | [Defaults to `undefined`] |
|
|
2111
|
+
| **putLibraryQuizSessionQuestionFlag** | [PutLibraryQuizSessionQuestionFlag](PutLibraryQuizSessionQuestionFlag.md) | | |
|
|
2112
|
+
|
|
2113
|
+
### Return type
|
|
2114
|
+
|
|
2115
|
+
[**GetLibraryQuizSession**](GetLibraryQuizSession.md)
|
|
2116
|
+
|
|
2117
|
+
### Authorization
|
|
2118
|
+
|
|
2119
|
+
No authorization required
|
|
2120
|
+
|
|
2121
|
+
### HTTP request headers
|
|
2122
|
+
|
|
2123
|
+
- **Content-Type**: `application/json`
|
|
2124
|
+
- **Accept**: `application/json`
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
### HTTP response details
|
|
2128
|
+
| Status code | Description | Response headers |
|
|
2129
|
+
|-------------|-------------|------------------|
|
|
2130
|
+
| **200** | Updated quiz session | - |
|
|
2131
|
+
| **409** | The attempt has already been submitted | - |
|
|
2132
|
+
|
|
2133
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
2134
|
+
|
|
2135
|
+
|
|
1861
2136
|
## putLibraryQuizVersion
|
|
1862
2137
|
|
|
1863
2138
|
> GetLibraryQuizVersion putLibraryQuizVersion(quizId, versionId, putLibraryQuizVersion)
|
|
@@ -1929,3 +2204,71 @@ No authorization required
|
|
|
1929
2204
|
|
|
1930
2205
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1931
2206
|
|
|
2207
|
+
|
|
2208
|
+
## putQuizSettings
|
|
2209
|
+
|
|
2210
|
+
> GetQuizSettings putQuizSettings(putQuizSettings)
|
|
2211
|
+
|
|
2212
|
+
Update the selected portal\'s defaults for new quizzes
|
|
2213
|
+
|
|
2214
|
+
Existing quizzes keep their own settings; only quizzes created afterwards start from the new defaults.
|
|
2215
|
+
|
|
2216
|
+
### Example
|
|
2217
|
+
|
|
2218
|
+
```ts
|
|
2219
|
+
import {
|
|
2220
|
+
Configuration,
|
|
2221
|
+
ContentLibraryQuizApi,
|
|
2222
|
+
} from '@easyedu/js-lsm-api';
|
|
2223
|
+
import type { PutQuizSettingsRequest } from '@easyedu/js-lsm-api';
|
|
2224
|
+
|
|
2225
|
+
async function example() {
|
|
2226
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
2227
|
+
const api = new ContentLibraryQuizApi();
|
|
2228
|
+
|
|
2229
|
+
const body = {
|
|
2230
|
+
// PutQuizSettings
|
|
2231
|
+
putQuizSettings: ...,
|
|
2232
|
+
} satisfies PutQuizSettingsRequest;
|
|
2233
|
+
|
|
2234
|
+
try {
|
|
2235
|
+
const data = await api.putQuizSettings(body);
|
|
2236
|
+
console.log(data);
|
|
2237
|
+
} catch (error) {
|
|
2238
|
+
console.error(error);
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
// Run the test
|
|
2243
|
+
example().catch(console.error);
|
|
2244
|
+
```
|
|
2245
|
+
|
|
2246
|
+
### Parameters
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
| Name | Type | Description | Notes |
|
|
2250
|
+
|------------- | ------------- | ------------- | -------------|
|
|
2251
|
+
| **putQuizSettings** | [PutQuizSettings](PutQuizSettings.md) | | |
|
|
2252
|
+
|
|
2253
|
+
### Return type
|
|
2254
|
+
|
|
2255
|
+
[**GetQuizSettings**](GetQuizSettings.md)
|
|
2256
|
+
|
|
2257
|
+
### Authorization
|
|
2258
|
+
|
|
2259
|
+
No authorization required
|
|
2260
|
+
|
|
2261
|
+
### HTTP request headers
|
|
2262
|
+
|
|
2263
|
+
- **Content-Type**: `application/json`
|
|
2264
|
+
- **Accept**: `application/json`
|
|
2265
|
+
|
|
2266
|
+
|
|
2267
|
+
### HTTP response details
|
|
2268
|
+
| Status code | Description | Response headers |
|
|
2269
|
+
|-------------|-------------|------------------|
|
|
2270
|
+
| **200** | Updated portal quiz defaults | - |
|
|
2271
|
+
| **400** | Invalid quiz defaults | - |
|
|
2272
|
+
|
|
2273
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
2274
|
+
|