@easyedu/js-lsm-api 1.31.0 → 1.33.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 +14 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +20 -4
- package/dist/apis/ContentApi.d.ts +93 -3
- package/dist/apis/ContentApi.js +308 -106
- package/dist/apis/CourseApi.d.ts +48 -0
- package/dist/apis/CourseApi.js +157 -49
- package/dist/apis/ModuleApi.d.ts +16 -0
- package/dist/apis/ModuleApi.js +52 -16
- package/dist/apis/OtherApi.d.ts +4 -0
- package/dist/apis/OtherApi.js +13 -4
- package/dist/apis/PortalApi.d.ts +30 -3
- package/dist/apis/PortalApi.js +92 -32
- package/dist/apis/QuestionApi.d.ts +20 -0
- package/dist/apis/QuestionApi.js +65 -20
- package/dist/apis/QuizApi.d.ts +100 -0
- package/dist/apis/QuizApi.js +325 -100
- package/dist/apis/ReportingApi.d.ts +36 -0
- package/dist/apis/ReportingApi.js +117 -36
- package/dist/apis/RoleApi.d.ts +169 -0
- package/dist/apis/RoleApi.js +442 -0
- package/dist/apis/UserApi.d.ts +28 -0
- package/dist/apis/UserApi.js +91 -28
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ContentApi.d.ts +93 -3
- package/dist/esm/apis/ContentApi.js +307 -105
- package/dist/esm/apis/CourseApi.d.ts +48 -0
- package/dist/esm/apis/CourseApi.js +157 -49
- package/dist/esm/apis/ModuleApi.d.ts +16 -0
- package/dist/esm/apis/ModuleApi.js +52 -16
- package/dist/esm/apis/OtherApi.d.ts +4 -0
- package/dist/esm/apis/OtherApi.js +13 -4
- package/dist/esm/apis/PortalApi.d.ts +30 -3
- package/dist/esm/apis/PortalApi.js +92 -32
- package/dist/esm/apis/QuestionApi.d.ts +20 -0
- package/dist/esm/apis/QuestionApi.js +65 -20
- package/dist/esm/apis/QuizApi.d.ts +100 -0
- package/dist/esm/apis/QuizApi.js +325 -100
- package/dist/esm/apis/ReportingApi.d.ts +36 -0
- package/dist/esm/apis/ReportingApi.js +117 -36
- package/dist/esm/apis/RoleApi.d.ts +169 -0
- package/dist/esm/apis/RoleApi.js +438 -0
- package/dist/esm/apis/UserApi.d.ts +28 -0
- package/dist/esm/apis/UserApi.js +91 -28
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/CriteriaBasedSelection.d.ts +1 -1
- package/dist/esm/models/CriteriaBasedSelectionCriteria.d.ts +2 -2
- package/dist/esm/models/FillInBlank.d.ts +1 -1
- package/dist/esm/models/FillInBlank1.d.ts +1 -1
- package/dist/esm/models/GetContent.d.ts +1 -1
- package/dist/esm/models/GetContentGradeDetail.d.ts +3 -3
- package/dist/esm/models/GetContentGradesItemsInner.d.ts +2 -2
- package/dist/esm/models/GetContentInstructorBasicReportingContentInfo.d.ts +1 -1
- package/dist/esm/models/GetContentSessionDetail.d.ts +2 -2
- package/dist/esm/models/GetCourseEnrollment.d.ts +2 -2
- package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +2 -2
- package/dist/esm/models/GetCourseExport.d.ts +2 -2
- package/dist/esm/models/GetPermission.d.ts +50 -0
- package/dist/esm/models/GetPermission.js +53 -0
- package/dist/esm/models/GetPortal.d.ts +23 -4
- package/dist/esm/models/GetPortal.js +14 -0
- package/dist/esm/models/GetPortalUser.d.ts +2 -11
- package/dist/esm/models/GetPortalUser.js +0 -8
- package/dist/esm/models/GetQuestion.d.ts +2 -2
- package/dist/esm/models/GetQuestionListFilters.d.ts +2 -2
- package/dist/esm/models/GetQuiz.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsBasicInfo.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +2 -2
- package/dist/esm/models/GetQuizAttemptAttempt.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptListAllOfAttempts.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptListAllOfFilters.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +1 -1
- package/dist/esm/models/GetQuizCriteriaItem.d.ts +2 -2
- package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +2 -2
- package/dist/esm/models/GetQuizListAllOfFilters.d.ts +1 -1
- package/dist/esm/models/GetQuizListAllOfQuizzes.d.ts +1 -1
- package/dist/esm/models/GetQuizQuestions.d.ts +1 -1
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +2 -2
- package/dist/esm/models/GetQuizResults.d.ts +1 -1
- package/dist/esm/models/GetQuizResultsFeedbackDifficultyPerformanceInner.d.ts +1 -1
- package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +1 -1
- package/dist/esm/models/GetRole.d.ts +88 -0
- package/dist/esm/models/GetRole.js +80 -0
- package/dist/esm/models/GetScormApiLogItem.d.ts +1 -1
- package/dist/esm/models/GetUserQuizAttemptsAllOfAttempts.d.ts +1 -1
- package/dist/esm/models/GetUserQuizAttemptsAllOfFilters.d.ts +1 -1
- package/dist/esm/models/GetUserRole.d.ts +63 -0
- package/dist/esm/models/GetUserRole.js +67 -0
- package/dist/esm/models/ManualSelection.d.ts +1 -1
- package/dist/esm/models/MultipleAnswer.d.ts +1 -1
- package/dist/esm/models/MultipleAnswer1.d.ts +1 -1
- package/dist/esm/models/NoAnswer.d.ts +1 -1
- package/dist/esm/models/PostContentUpload.d.ts +1 -1
- package/dist/esm/models/PostCourseExport.d.ts +1 -1
- package/dist/esm/models/PostPortalInvite.d.ts +6 -2
- package/dist/esm/models/PostPortalInvite.js +5 -1
- package/dist/esm/models/PostQuestion.d.ts +2 -2
- package/dist/esm/models/PostQuiz.d.ts +1 -1
- package/dist/esm/models/PostQuizAttemptAttempt.d.ts +1 -1
- package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +1 -1
- package/dist/esm/models/PostQuizAttemptSubmit.d.ts +1 -1
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.d.ts +2 -2
- package/dist/esm/models/PostRole.d.ts +57 -0
- package/dist/esm/models/PostRole.js +61 -0
- package/dist/esm/models/PutCourseEnrollment.d.ts +2 -2
- package/dist/esm/models/PutQuestion.d.ts +2 -2
- package/dist/esm/models/PutQuiz.d.ts +1 -1
- package/dist/esm/models/PutRole.d.ts +38 -0
- package/dist/esm/models/PutRole.js +45 -0
- package/dist/esm/models/PutRolePermissions.d.ts +32 -0
- package/dist/esm/models/PutRolePermissions.js +43 -0
- package/dist/esm/models/QuizContent.d.ts +1 -1
- package/dist/esm/models/SingleAnswer.d.ts +1 -1
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/runtime.js +15 -0
- package/dist/models/CriteriaBasedSelection.d.ts +1 -1
- package/dist/models/CriteriaBasedSelectionCriteria.d.ts +2 -2
- package/dist/models/FillInBlank.d.ts +1 -1
- package/dist/models/FillInBlank1.d.ts +1 -1
- package/dist/models/GetContent.d.ts +1 -1
- package/dist/models/GetContentGradeDetail.d.ts +3 -3
- package/dist/models/GetContentGradesItemsInner.d.ts +2 -2
- package/dist/models/GetContentInstructorBasicReportingContentInfo.d.ts +1 -1
- package/dist/models/GetContentSessionDetail.d.ts +2 -2
- package/dist/models/GetCourseEnrollment.d.ts +2 -2
- package/dist/models/GetCourseEnrollmentListItem.d.ts +2 -2
- package/dist/models/GetCourseExport.d.ts +2 -2
- package/dist/models/GetPermission.d.ts +50 -0
- package/dist/models/GetPermission.js +60 -0
- package/dist/models/GetPortal.d.ts +23 -4
- package/dist/models/GetPortal.js +15 -1
- package/dist/models/GetPortalUser.d.ts +2 -11
- package/dist/models/GetPortalUser.js +0 -9
- package/dist/models/GetQuestion.d.ts +2 -2
- package/dist/models/GetQuestionListFilters.d.ts +2 -2
- package/dist/models/GetQuiz.d.ts +1 -1
- package/dist/models/GetQuizAttemptAnalyticsBasicInfo.d.ts +1 -1
- package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.d.ts +1 -1
- package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +1 -1
- package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +2 -2
- package/dist/models/GetQuizAttemptAttempt.d.ts +1 -1
- package/dist/models/GetQuizAttemptListAllOfAttempts.d.ts +1 -1
- package/dist/models/GetQuizAttemptListAllOfFilters.d.ts +1 -1
- package/dist/models/GetQuizAttemptQuestionsInner.d.ts +1 -1
- package/dist/models/GetQuizCriteriaItem.d.ts +2 -2
- package/dist/models/GetQuizCriteriaListItemsInner.d.ts +2 -2
- package/dist/models/GetQuizListAllOfFilters.d.ts +1 -1
- package/dist/models/GetQuizListAllOfQuizzes.d.ts +1 -1
- package/dist/models/GetQuizQuestions.d.ts +1 -1
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +2 -2
- package/dist/models/GetQuizResults.d.ts +1 -1
- package/dist/models/GetQuizResultsFeedbackDifficultyPerformanceInner.d.ts +1 -1
- package/dist/models/GetQuizResultsQuestionsInner.d.ts +1 -1
- package/dist/models/GetRole.d.ts +88 -0
- package/dist/models/GetRole.js +88 -0
- package/dist/models/GetScormApiLogItem.d.ts +1 -1
- package/dist/models/GetUserQuizAttemptsAllOfAttempts.d.ts +1 -1
- package/dist/models/GetUserQuizAttemptsAllOfFilters.d.ts +1 -1
- package/dist/models/GetUserRole.d.ts +63 -0
- package/dist/models/GetUserRole.js +75 -0
- package/dist/models/ManualSelection.d.ts +1 -1
- package/dist/models/MultipleAnswer.d.ts +1 -1
- package/dist/models/MultipleAnswer1.d.ts +1 -1
- package/dist/models/NoAnswer.d.ts +1 -1
- package/dist/models/PostContentUpload.d.ts +1 -1
- package/dist/models/PostCourseExport.d.ts +1 -1
- package/dist/models/PostPortalInvite.d.ts +6 -2
- package/dist/models/PostPortalInvite.js +5 -1
- package/dist/models/PostQuestion.d.ts +2 -2
- package/dist/models/PostQuiz.d.ts +1 -1
- package/dist/models/PostQuizAttemptAttempt.d.ts +1 -1
- package/dist/models/PostQuizAttemptQuestionsInner.d.ts +1 -1
- package/dist/models/PostQuizAttemptSubmit.d.ts +1 -1
- package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +2 -2
- package/dist/models/PostRole.d.ts +57 -0
- package/dist/models/PostRole.js +69 -0
- package/dist/models/PutCourseEnrollment.d.ts +2 -2
- package/dist/models/PutQuestion.d.ts +2 -2
- package/dist/models/PutQuiz.d.ts +1 -1
- package/dist/models/PutRole.d.ts +38 -0
- package/dist/models/PutRole.js +52 -0
- package/dist/models/PutRolePermissions.d.ts +32 -0
- package/dist/models/PutRolePermissions.js +50 -0
- package/dist/models/QuizContent.d.ts +1 -1
- package/dist/models/SingleAnswer.d.ts +1 -1
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/runtime.js +15 -0
- package/docs/ContentApi.md +6 -3
- package/docs/GetPermission.md +41 -0
- package/docs/GetPortal.md +2 -0
- package/docs/GetRole.md +49 -0
- package/docs/GetUserRole.md +41 -0
- package/docs/PortalApi.md +3 -6
- package/docs/PostRole.md +39 -0
- package/docs/PutRole.md +37 -0
- package/docs/PutRolePermissions.md +35 -0
- package/docs/RoleApi.md +685 -0
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +289 -107
- package/src/apis/CourseApi.ts +145 -49
- package/src/apis/ModuleApi.ts +48 -16
- package/src/apis/OtherApi.ts +12 -4
- package/src/apis/PortalApi.ts +85 -34
- package/src/apis/QuestionApi.ts +60 -20
- package/src/apis/QuizApi.ts +300 -100
- package/src/apis/ReportingApi.ts +108 -36
- package/src/apis/RoleApi.ts +576 -0
- package/src/apis/UserApi.ts +84 -28
- package/src/apis/index.ts +1 -0
- package/src/models/CriteriaBasedSelection.ts +1 -1
- package/src/models/CriteriaBasedSelectionCriteria.ts +2 -2
- package/src/models/FillInBlank.ts +1 -1
- package/src/models/FillInBlank1.ts +1 -1
- package/src/models/GetContent.ts +1 -1
- package/src/models/GetContentGradeDetail.ts +3 -3
- package/src/models/GetContentGradesItemsInner.ts +2 -2
- package/src/models/GetContentInstructorBasicReportingContentInfo.ts +1 -1
- package/src/models/GetContentSessionDetail.ts +2 -2
- package/src/models/GetCourseEnrollment.ts +2 -2
- package/src/models/GetCourseEnrollmentListItem.ts +2 -2
- package/src/models/GetCourseExport.ts +2 -2
- package/src/models/GetPermission.ts +92 -0
- package/src/models/GetPortal.ts +26 -4
- package/src/models/GetPortalUser.ts +2 -14
- package/src/models/GetQuestion.ts +2 -2
- package/src/models/GetQuestionListFilters.ts +2 -2
- package/src/models/GetQuiz.ts +1 -1
- package/src/models/GetQuizAttemptAnalyticsBasicInfo.ts +1 -1
- package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.ts +1 -1
- package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.ts +1 -1
- package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +2 -2
- package/src/models/GetQuizAttemptAttempt.ts +1 -1
- package/src/models/GetQuizAttemptListAllOfAttempts.ts +1 -1
- package/src/models/GetQuizAttemptListAllOfFilters.ts +1 -1
- package/src/models/GetQuizAttemptQuestionsInner.ts +1 -1
- package/src/models/GetQuizCriteriaItem.ts +2 -2
- package/src/models/GetQuizCriteriaListItemsInner.ts +2 -2
- package/src/models/GetQuizListAllOfFilters.ts +1 -1
- package/src/models/GetQuizListAllOfQuizzes.ts +1 -1
- package/src/models/GetQuizQuestions.ts +1 -1
- package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +2 -2
- package/src/models/GetQuizResults.ts +1 -1
- package/src/models/GetQuizResultsFeedbackDifficultyPerformanceInner.ts +1 -1
- package/src/models/GetQuizResultsQuestionsInner.ts +1 -1
- package/src/models/GetRole.ts +151 -0
- package/src/models/GetScormApiLogItem.ts +1 -1
- package/src/models/GetUserQuizAttemptsAllOfAttempts.ts +1 -1
- package/src/models/GetUserQuizAttemptsAllOfFilters.ts +1 -1
- package/src/models/GetUserRole.ts +109 -0
- package/src/models/ManualSelection.ts +1 -1
- package/src/models/MultipleAnswer.ts +1 -1
- package/src/models/MultipleAnswer1.ts +1 -1
- package/src/models/NoAnswer.ts +1 -1
- package/src/models/PostContentUpload.ts +1 -1
- package/src/models/PostCourseExport.ts +1 -1
- package/src/models/PostPortalInvite.ts +7 -3
- package/src/models/PostQuestion.ts +2 -2
- package/src/models/PostQuiz.ts +1 -1
- package/src/models/PostQuizAttemptAttempt.ts +1 -1
- package/src/models/PostQuizAttemptQuestionsInner.ts +1 -1
- package/src/models/PostQuizAttemptSubmit.ts +1 -1
- package/src/models/PostQuizCriteriaCriteriaInner.ts +2 -2
- package/src/models/PostRole.ts +99 -0
- package/src/models/PutCourseEnrollment.ts +2 -2
- package/src/models/PutQuestion.ts +2 -2
- package/src/models/PutQuiz.ts +1 -1
- package/src/models/PutRole.ts +74 -0
- package/src/models/PutRolePermissions.ts +66 -0
- package/src/models/QuizContent.ts +1 -1
- package/src/models/SingleAnswer.ts +1 -1
- package/src/models/index.ts +6 -0
- package/src/runtime.ts +18 -0
package/dist/esm/apis/QuizApi.js
CHANGED
|
@@ -27,9 +27,9 @@ import { GetManualQuestionSelectionItemFromJSON, GetManualQuestionSelectionListF
|
|
|
27
27
|
*/
|
|
28
28
|
export class QuizApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Creates request options for addQuizCriteriaQuestionSelection without sending the request
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
addQuizCriteriaQuestionSelectionRequestOpts(requestParameters) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
if (requestParameters['quizId'] == null) {
|
|
35
35
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling addQuizCriteriaQuestionSelection().');
|
|
@@ -42,13 +42,22 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
43
|
let urlPath = `/quizzes/{quizId}/criteria-question-selection`;
|
|
44
44
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
45
|
-
|
|
45
|
+
return {
|
|
46
46
|
path: urlPath,
|
|
47
47
|
method: 'POST',
|
|
48
48
|
headers: headerParameters,
|
|
49
49
|
query: queryParameters,
|
|
50
50
|
body: PostQuizCriteriaToJSON(requestParameters['postQuizCriteria']),
|
|
51
|
-
}
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Add question selection criteria
|
|
56
|
+
*/
|
|
57
|
+
addQuizCriteriaQuestionSelectionRaw(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const requestOptions = yield this.addQuizCriteriaQuestionSelectionRequestOpts(requestParameters);
|
|
60
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
52
61
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizCriteriaFromJSON(jsonValue));
|
|
53
62
|
});
|
|
54
63
|
}
|
|
@@ -62,9 +71,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
62
71
|
});
|
|
63
72
|
}
|
|
64
73
|
/**
|
|
65
|
-
*
|
|
74
|
+
* Creates request options for addQuizManualQuestionSelection without sending the request
|
|
66
75
|
*/
|
|
67
|
-
|
|
76
|
+
addQuizManualQuestionSelectionRequestOpts(requestParameters) {
|
|
68
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
78
|
if (requestParameters['quizId'] == null) {
|
|
70
79
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling addQuizManualQuestionSelection().');
|
|
@@ -77,13 +86,22 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
77
86
|
headerParameters['Content-Type'] = 'application/json';
|
|
78
87
|
let urlPath = `/quizzes/{quizId}/manual-question-selection`;
|
|
79
88
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
80
|
-
|
|
89
|
+
return {
|
|
81
90
|
path: urlPath,
|
|
82
91
|
method: 'POST',
|
|
83
92
|
headers: headerParameters,
|
|
84
93
|
query: queryParameters,
|
|
85
94
|
body: PostManualQuestionSelectionToJSON(requestParameters['postManualQuestionSelection']),
|
|
86
|
-
}
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Add questions to quiz manually
|
|
100
|
+
*/
|
|
101
|
+
addQuizManualQuestionSelectionRaw(requestParameters, initOverrides) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const requestOptions = yield this.addQuizManualQuestionSelectionRequestOpts(requestParameters);
|
|
104
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
87
105
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetManualQuestionSelectionItemFromJSON(jsonValue));
|
|
88
106
|
});
|
|
89
107
|
}
|
|
@@ -97,9 +115,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
97
115
|
});
|
|
98
116
|
}
|
|
99
117
|
/**
|
|
100
|
-
*
|
|
118
|
+
* Creates request options for addQuizQuestions without sending the request
|
|
101
119
|
*/
|
|
102
|
-
|
|
120
|
+
addQuizQuestionsRequestOpts(requestParameters) {
|
|
103
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
122
|
if (requestParameters['quizId'] == null) {
|
|
105
123
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling addQuizQuestions().');
|
|
@@ -112,13 +130,22 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
112
130
|
headerParameters['Content-Type'] = 'application/json';
|
|
113
131
|
let urlPath = `/quizzes/{quizId}/questions`;
|
|
114
132
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
115
|
-
|
|
133
|
+
return {
|
|
116
134
|
path: urlPath,
|
|
117
135
|
method: 'POST',
|
|
118
136
|
headers: headerParameters,
|
|
119
137
|
query: queryParameters,
|
|
120
138
|
body: PostQuizQuestionsToJSON(requestParameters['postQuizQuestions']),
|
|
121
|
-
}
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Add questions to quiz (manual selection)
|
|
144
|
+
*/
|
|
145
|
+
addQuizQuestionsRaw(requestParameters, initOverrides) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
const requestOptions = yield this.addQuizQuestionsRequestOpts(requestParameters);
|
|
148
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
122
149
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizQuestionsFromJSON(jsonValue));
|
|
123
150
|
});
|
|
124
151
|
}
|
|
@@ -132,9 +159,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
132
159
|
});
|
|
133
160
|
}
|
|
134
161
|
/**
|
|
135
|
-
*
|
|
162
|
+
* Creates request options for createQuiz without sending the request
|
|
136
163
|
*/
|
|
137
|
-
|
|
164
|
+
createQuizRequestOpts(requestParameters) {
|
|
138
165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
139
166
|
if (requestParameters['postQuiz'] == null) {
|
|
140
167
|
throw new runtime.RequiredError('postQuiz', 'Required parameter "postQuiz" was null or undefined when calling createQuiz().');
|
|
@@ -143,13 +170,22 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
143
170
|
const headerParameters = {};
|
|
144
171
|
headerParameters['Content-Type'] = 'application/json';
|
|
145
172
|
let urlPath = `/quizzes`;
|
|
146
|
-
|
|
173
|
+
return {
|
|
147
174
|
path: urlPath,
|
|
148
175
|
method: 'POST',
|
|
149
176
|
headers: headerParameters,
|
|
150
177
|
query: queryParameters,
|
|
151
178
|
body: PostQuizToJSON(requestParameters['postQuiz']),
|
|
152
|
-
}
|
|
179
|
+
};
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Create a new quiz configuration
|
|
184
|
+
*/
|
|
185
|
+
createQuizRaw(requestParameters, initOverrides) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
const requestOptions = yield this.createQuizRequestOpts(requestParameters);
|
|
188
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
153
189
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizFromJSON(jsonValue));
|
|
154
190
|
});
|
|
155
191
|
}
|
|
@@ -163,9 +199,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
163
199
|
});
|
|
164
200
|
}
|
|
165
201
|
/**
|
|
166
|
-
*
|
|
202
|
+
* Creates request options for deleteQuiz without sending the request
|
|
167
203
|
*/
|
|
168
|
-
|
|
204
|
+
deleteQuizRequestOpts(requestParameters) {
|
|
169
205
|
return __awaiter(this, void 0, void 0, function* () {
|
|
170
206
|
if (requestParameters['quizId'] == null) {
|
|
171
207
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling deleteQuiz().');
|
|
@@ -174,12 +210,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
174
210
|
const headerParameters = {};
|
|
175
211
|
let urlPath = `/quizzes/{quizId}`;
|
|
176
212
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
177
|
-
|
|
213
|
+
return {
|
|
178
214
|
path: urlPath,
|
|
179
215
|
method: 'DELETE',
|
|
180
216
|
headers: headerParameters,
|
|
181
217
|
query: queryParameters,
|
|
182
|
-
}
|
|
218
|
+
};
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Delete quiz configuration
|
|
223
|
+
*/
|
|
224
|
+
deleteQuizRaw(requestParameters, initOverrides) {
|
|
225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
const requestOptions = yield this.deleteQuizRequestOpts(requestParameters);
|
|
227
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
183
228
|
return new runtime.VoidApiResponse(response);
|
|
184
229
|
});
|
|
185
230
|
}
|
|
@@ -192,9 +237,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
192
237
|
});
|
|
193
238
|
}
|
|
194
239
|
/**
|
|
195
|
-
*
|
|
240
|
+
* Creates request options for deleteQuizCriteriaQuestionSelection without sending the request
|
|
196
241
|
*/
|
|
197
|
-
|
|
242
|
+
deleteQuizCriteriaQuestionSelectionRequestOpts(requestParameters) {
|
|
198
243
|
return __awaiter(this, void 0, void 0, function* () {
|
|
199
244
|
if (requestParameters['quizId'] == null) {
|
|
200
245
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling deleteQuizCriteriaQuestionSelection().');
|
|
@@ -207,12 +252,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
207
252
|
let urlPath = `/quizzes/{quizId}/criteria-question-selection/{criteriaId}`;
|
|
208
253
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
209
254
|
urlPath = urlPath.replace(`{${"criteriaId"}}`, encodeURIComponent(String(requestParameters['criteriaId'])));
|
|
210
|
-
|
|
255
|
+
return {
|
|
211
256
|
path: urlPath,
|
|
212
257
|
method: 'DELETE',
|
|
213
258
|
headers: headerParameters,
|
|
214
259
|
query: queryParameters,
|
|
215
|
-
}
|
|
260
|
+
};
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Delete question selection criteria
|
|
265
|
+
*/
|
|
266
|
+
deleteQuizCriteriaQuestionSelectionRaw(requestParameters, initOverrides) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
+
const requestOptions = yield this.deleteQuizCriteriaQuestionSelectionRequestOpts(requestParameters);
|
|
269
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
216
270
|
return new runtime.VoidApiResponse(response);
|
|
217
271
|
});
|
|
218
272
|
}
|
|
@@ -225,9 +279,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
225
279
|
});
|
|
226
280
|
}
|
|
227
281
|
/**
|
|
228
|
-
*
|
|
282
|
+
* Creates request options for deleteQuizManualQuestionSelection without sending the request
|
|
229
283
|
*/
|
|
230
|
-
|
|
284
|
+
deleteQuizManualQuestionSelectionRequestOpts(requestParameters) {
|
|
231
285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
232
286
|
if (requestParameters['quizId'] == null) {
|
|
233
287
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling deleteQuizManualQuestionSelection().');
|
|
@@ -240,12 +294,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
240
294
|
let urlPath = `/quizzes/{quizId}/manual-question-selection/{questionId}`;
|
|
241
295
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
242
296
|
urlPath = urlPath.replace(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId'])));
|
|
243
|
-
|
|
297
|
+
return {
|
|
244
298
|
path: urlPath,
|
|
245
299
|
method: 'DELETE',
|
|
246
300
|
headers: headerParameters,
|
|
247
301
|
query: queryParameters,
|
|
248
|
-
}
|
|
302
|
+
};
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Remove manually selected question from quiz
|
|
307
|
+
*/
|
|
308
|
+
deleteQuizManualQuestionSelectionRaw(requestParameters, initOverrides) {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
const requestOptions = yield this.deleteQuizManualQuestionSelectionRequestOpts(requestParameters);
|
|
311
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
249
312
|
return new runtime.VoidApiResponse(response);
|
|
250
313
|
});
|
|
251
314
|
}
|
|
@@ -258,9 +321,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
258
321
|
});
|
|
259
322
|
}
|
|
260
323
|
/**
|
|
261
|
-
*
|
|
324
|
+
* Creates request options for getQuiz without sending the request
|
|
262
325
|
*/
|
|
263
|
-
|
|
326
|
+
getQuizRequestOpts(requestParameters) {
|
|
264
327
|
return __awaiter(this, void 0, void 0, function* () {
|
|
265
328
|
if (requestParameters['quizId'] == null) {
|
|
266
329
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuiz().');
|
|
@@ -269,12 +332,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
269
332
|
const headerParameters = {};
|
|
270
333
|
let urlPath = `/quizzes/{quizId}`;
|
|
271
334
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
272
|
-
|
|
335
|
+
return {
|
|
273
336
|
path: urlPath,
|
|
274
337
|
method: 'GET',
|
|
275
338
|
headers: headerParameters,
|
|
276
339
|
query: queryParameters,
|
|
277
|
-
}
|
|
340
|
+
};
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Get quiz configuration by ID
|
|
345
|
+
*/
|
|
346
|
+
getQuizRaw(requestParameters, initOverrides) {
|
|
347
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
348
|
+
const requestOptions = yield this.getQuizRequestOpts(requestParameters);
|
|
349
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
278
350
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizFromJSON(jsonValue));
|
|
279
351
|
});
|
|
280
352
|
}
|
|
@@ -288,9 +360,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
288
360
|
});
|
|
289
361
|
}
|
|
290
362
|
/**
|
|
291
|
-
*
|
|
363
|
+
* Creates request options for getQuizAttempt without sending the request
|
|
292
364
|
*/
|
|
293
|
-
|
|
365
|
+
getQuizAttemptRequestOpts(requestParameters) {
|
|
294
366
|
return __awaiter(this, void 0, void 0, function* () {
|
|
295
367
|
if (requestParameters['attemptId'] == null) {
|
|
296
368
|
throw new runtime.RequiredError('attemptId', 'Required parameter "attemptId" was null or undefined when calling getQuizAttempt().');
|
|
@@ -299,12 +371,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
299
371
|
const headerParameters = {};
|
|
300
372
|
let urlPath = `/quiz-attempts/{attemptId}`;
|
|
301
373
|
urlPath = urlPath.replace(`{${"attemptId"}}`, encodeURIComponent(String(requestParameters['attemptId'])));
|
|
302
|
-
|
|
374
|
+
return {
|
|
303
375
|
path: urlPath,
|
|
304
376
|
method: 'GET',
|
|
305
377
|
headers: headerParameters,
|
|
306
378
|
query: queryParameters,
|
|
307
|
-
}
|
|
379
|
+
};
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Get current quiz attempt status and questions
|
|
384
|
+
*/
|
|
385
|
+
getQuizAttemptRaw(requestParameters, initOverrides) {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
387
|
+
const requestOptions = yield this.getQuizAttemptRequestOpts(requestParameters);
|
|
388
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
308
389
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizAttemptFromJSON(jsonValue));
|
|
309
390
|
});
|
|
310
391
|
}
|
|
@@ -318,9 +399,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
318
399
|
});
|
|
319
400
|
}
|
|
320
401
|
/**
|
|
321
|
-
*
|
|
402
|
+
* Creates request options for getQuizAttemptAnalytics without sending the request
|
|
322
403
|
*/
|
|
323
|
-
|
|
404
|
+
getQuizAttemptAnalyticsRequestOpts(requestParameters) {
|
|
324
405
|
return __awaiter(this, void 0, void 0, function* () {
|
|
325
406
|
if (requestParameters['attemptId'] == null) {
|
|
326
407
|
throw new runtime.RequiredError('attemptId', 'Required parameter "attemptId" was null or undefined when calling getQuizAttemptAnalytics().');
|
|
@@ -329,12 +410,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
329
410
|
const headerParameters = {};
|
|
330
411
|
let urlPath = `/quiz-attempts/{attemptId}/analytics`;
|
|
331
412
|
urlPath = urlPath.replace(`{${"attemptId"}}`, encodeURIComponent(String(requestParameters['attemptId'])));
|
|
332
|
-
|
|
413
|
+
return {
|
|
333
414
|
path: urlPath,
|
|
334
415
|
method: 'GET',
|
|
335
416
|
headers: headerParameters,
|
|
336
417
|
query: queryParameters,
|
|
337
|
-
}
|
|
418
|
+
};
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Get detailed analytics for quiz attempt (admin)
|
|
423
|
+
*/
|
|
424
|
+
getQuizAttemptAnalyticsRaw(requestParameters, initOverrides) {
|
|
425
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
426
|
+
const requestOptions = yield this.getQuizAttemptAnalyticsRequestOpts(requestParameters);
|
|
427
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
338
428
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizAttemptAnalyticsFromJSON(jsonValue));
|
|
339
429
|
});
|
|
340
430
|
}
|
|
@@ -348,9 +438,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
348
438
|
});
|
|
349
439
|
}
|
|
350
440
|
/**
|
|
351
|
-
*
|
|
441
|
+
* Creates request options for getQuizAttemptResults without sending the request
|
|
352
442
|
*/
|
|
353
|
-
|
|
443
|
+
getQuizAttemptResultsRequestOpts(requestParameters) {
|
|
354
444
|
return __awaiter(this, void 0, void 0, function* () {
|
|
355
445
|
if (requestParameters['attemptId'] == null) {
|
|
356
446
|
throw new runtime.RequiredError('attemptId', 'Required parameter "attemptId" was null or undefined when calling getQuizAttemptResults().');
|
|
@@ -359,12 +449,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
359
449
|
const headerParameters = {};
|
|
360
450
|
let urlPath = `/quiz-attempts/{attemptId}/results`;
|
|
361
451
|
urlPath = urlPath.replace(`{${"attemptId"}}`, encodeURIComponent(String(requestParameters['attemptId'])));
|
|
362
|
-
|
|
452
|
+
return {
|
|
363
453
|
path: urlPath,
|
|
364
454
|
method: 'GET',
|
|
365
455
|
headers: headerParameters,
|
|
366
456
|
query: queryParameters,
|
|
367
|
-
}
|
|
457
|
+
};
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Get quiz attempt results
|
|
462
|
+
*/
|
|
463
|
+
getQuizAttemptResultsRaw(requestParameters, initOverrides) {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
+
const requestOptions = yield this.getQuizAttemptResultsRequestOpts(requestParameters);
|
|
466
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
368
467
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizResultsFromJSON(jsonValue));
|
|
369
468
|
});
|
|
370
469
|
}
|
|
@@ -378,9 +477,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
378
477
|
});
|
|
379
478
|
}
|
|
380
479
|
/**
|
|
381
|
-
*
|
|
480
|
+
* Creates request options for getQuizAttempts without sending the request
|
|
382
481
|
*/
|
|
383
|
-
|
|
482
|
+
getQuizAttemptsRequestOpts(requestParameters) {
|
|
384
483
|
return __awaiter(this, void 0, void 0, function* () {
|
|
385
484
|
if (requestParameters['quizId'] == null) {
|
|
386
485
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuizAttempts().');
|
|
@@ -401,12 +500,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
401
500
|
const headerParameters = {};
|
|
402
501
|
let urlPath = `/quizzes/{quizId}/attempts`;
|
|
403
502
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
404
|
-
|
|
503
|
+
return {
|
|
405
504
|
path: urlPath,
|
|
406
505
|
method: 'GET',
|
|
407
506
|
headers: headerParameters,
|
|
408
507
|
query: queryParameters,
|
|
409
|
-
}
|
|
508
|
+
};
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* List attempts for this quiz (admin)
|
|
513
|
+
*/
|
|
514
|
+
getQuizAttemptsRaw(requestParameters, initOverrides) {
|
|
515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
516
|
+
const requestOptions = yield this.getQuizAttemptsRequestOpts(requestParameters);
|
|
517
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
410
518
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizAttemptListFromJSON(jsonValue));
|
|
411
519
|
});
|
|
412
520
|
}
|
|
@@ -420,9 +528,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
420
528
|
});
|
|
421
529
|
}
|
|
422
530
|
/**
|
|
423
|
-
*
|
|
531
|
+
* Creates request options for getQuizCriteriaQuestionSelection without sending the request
|
|
424
532
|
*/
|
|
425
|
-
|
|
533
|
+
getQuizCriteriaQuestionSelectionRequestOpts(requestParameters) {
|
|
426
534
|
return __awaiter(this, void 0, void 0, function* () {
|
|
427
535
|
if (requestParameters['quizId'] == null) {
|
|
428
536
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuizCriteriaQuestionSelection().');
|
|
@@ -435,12 +543,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
435
543
|
let urlPath = `/quizzes/{quizId}/criteria-question-selection/{criteriaId}`;
|
|
436
544
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
437
545
|
urlPath = urlPath.replace(`{${"criteriaId"}}`, encodeURIComponent(String(requestParameters['criteriaId'])));
|
|
438
|
-
|
|
546
|
+
return {
|
|
439
547
|
path: urlPath,
|
|
440
548
|
method: 'GET',
|
|
441
549
|
headers: headerParameters,
|
|
442
550
|
query: queryParameters,
|
|
443
|
-
}
|
|
551
|
+
};
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Get single question selection criteria
|
|
556
|
+
*/
|
|
557
|
+
getQuizCriteriaQuestionSelectionRaw(requestParameters, initOverrides) {
|
|
558
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
559
|
+
const requestOptions = yield this.getQuizCriteriaQuestionSelectionRequestOpts(requestParameters);
|
|
560
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
444
561
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizCriteriaItemFromJSON(jsonValue));
|
|
445
562
|
});
|
|
446
563
|
}
|
|
@@ -454,9 +571,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
454
571
|
});
|
|
455
572
|
}
|
|
456
573
|
/**
|
|
457
|
-
*
|
|
574
|
+
* Creates request options for getQuizCriteriaQuestionSelectionList without sending the request
|
|
458
575
|
*/
|
|
459
|
-
|
|
576
|
+
getQuizCriteriaQuestionSelectionListRequestOpts(requestParameters) {
|
|
460
577
|
return __awaiter(this, void 0, void 0, function* () {
|
|
461
578
|
if (requestParameters['quizId'] == null) {
|
|
462
579
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuizCriteriaQuestionSelectionList().');
|
|
@@ -471,12 +588,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
471
588
|
const headerParameters = {};
|
|
472
589
|
let urlPath = `/quizzes/{quizId}/criteria-question-selection`;
|
|
473
590
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
474
|
-
|
|
591
|
+
return {
|
|
475
592
|
path: urlPath,
|
|
476
593
|
method: 'GET',
|
|
477
594
|
headers: headerParameters,
|
|
478
595
|
query: queryParameters,
|
|
479
|
-
}
|
|
596
|
+
};
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Get quiz question selection criteria list
|
|
601
|
+
*/
|
|
602
|
+
getQuizCriteriaQuestionSelectionListRaw(requestParameters, initOverrides) {
|
|
603
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
604
|
+
const requestOptions = yield this.getQuizCriteriaQuestionSelectionListRequestOpts(requestParameters);
|
|
605
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
480
606
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizCriteriaListFromJSON(jsonValue));
|
|
481
607
|
});
|
|
482
608
|
}
|
|
@@ -490,9 +616,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
490
616
|
});
|
|
491
617
|
}
|
|
492
618
|
/**
|
|
493
|
-
*
|
|
619
|
+
* Creates request options for getQuizList without sending the request
|
|
494
620
|
*/
|
|
495
|
-
|
|
621
|
+
getQuizListRequestOpts(requestParameters) {
|
|
496
622
|
return __awaiter(this, void 0, void 0, function* () {
|
|
497
623
|
const queryParameters = {};
|
|
498
624
|
if (requestParameters['page'] != null) {
|
|
@@ -512,12 +638,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
512
638
|
}
|
|
513
639
|
const headerParameters = {};
|
|
514
640
|
let urlPath = `/quizzes`;
|
|
515
|
-
|
|
641
|
+
return {
|
|
516
642
|
path: urlPath,
|
|
517
643
|
method: 'GET',
|
|
518
644
|
headers: headerParameters,
|
|
519
645
|
query: queryParameters,
|
|
520
|
-
}
|
|
646
|
+
};
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* List quiz configurations
|
|
651
|
+
*/
|
|
652
|
+
getQuizListRaw(requestParameters, initOverrides) {
|
|
653
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
654
|
+
const requestOptions = yield this.getQuizListRequestOpts(requestParameters);
|
|
655
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
521
656
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizListFromJSON(jsonValue));
|
|
522
657
|
});
|
|
523
658
|
}
|
|
@@ -531,9 +666,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
531
666
|
});
|
|
532
667
|
}
|
|
533
668
|
/**
|
|
534
|
-
*
|
|
669
|
+
* Creates request options for getQuizManualQuestionSelection without sending the request
|
|
535
670
|
*/
|
|
536
|
-
|
|
671
|
+
getQuizManualQuestionSelectionRequestOpts(requestParameters) {
|
|
537
672
|
return __awaiter(this, void 0, void 0, function* () {
|
|
538
673
|
if (requestParameters['quizId'] == null) {
|
|
539
674
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuizManualQuestionSelection().');
|
|
@@ -546,12 +681,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
546
681
|
let urlPath = `/quizzes/{quizId}/manual-question-selection/{questionId}`;
|
|
547
682
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
548
683
|
urlPath = urlPath.replace(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId'])));
|
|
549
|
-
|
|
684
|
+
return {
|
|
550
685
|
path: urlPath,
|
|
551
686
|
method: 'GET',
|
|
552
687
|
headers: headerParameters,
|
|
553
688
|
query: queryParameters,
|
|
554
|
-
}
|
|
689
|
+
};
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Get single manually selected question
|
|
694
|
+
*/
|
|
695
|
+
getQuizManualQuestionSelectionRaw(requestParameters, initOverrides) {
|
|
696
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
697
|
+
const requestOptions = yield this.getQuizManualQuestionSelectionRequestOpts(requestParameters);
|
|
698
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
555
699
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetManualQuestionSelectionItemFromJSON(jsonValue));
|
|
556
700
|
});
|
|
557
701
|
}
|
|
@@ -565,9 +709,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
565
709
|
});
|
|
566
710
|
}
|
|
567
711
|
/**
|
|
568
|
-
*
|
|
712
|
+
* Creates request options for getQuizManualQuestionSelectionList without sending the request
|
|
569
713
|
*/
|
|
570
|
-
|
|
714
|
+
getQuizManualQuestionSelectionListRequestOpts(requestParameters) {
|
|
571
715
|
return __awaiter(this, void 0, void 0, function* () {
|
|
572
716
|
if (requestParameters['quizId'] == null) {
|
|
573
717
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuizManualQuestionSelectionList().');
|
|
@@ -582,12 +726,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
582
726
|
const headerParameters = {};
|
|
583
727
|
let urlPath = `/quizzes/{quizId}/manual-question-selection`;
|
|
584
728
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
585
|
-
|
|
729
|
+
return {
|
|
586
730
|
path: urlPath,
|
|
587
731
|
method: 'GET',
|
|
588
732
|
headers: headerParameters,
|
|
589
733
|
query: queryParameters,
|
|
590
|
-
}
|
|
734
|
+
};
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Get manually selected questions for quiz
|
|
739
|
+
*/
|
|
740
|
+
getQuizManualQuestionSelectionListRaw(requestParameters, initOverrides) {
|
|
741
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
742
|
+
const requestOptions = yield this.getQuizManualQuestionSelectionListRequestOpts(requestParameters);
|
|
743
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
591
744
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetManualQuestionSelectionListFromJSON(jsonValue));
|
|
592
745
|
});
|
|
593
746
|
}
|
|
@@ -601,9 +754,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
601
754
|
});
|
|
602
755
|
}
|
|
603
756
|
/**
|
|
604
|
-
*
|
|
757
|
+
* Creates request options for getQuizQuestions without sending the request
|
|
605
758
|
*/
|
|
606
|
-
|
|
759
|
+
getQuizQuestionsRequestOpts(requestParameters) {
|
|
607
760
|
return __awaiter(this, void 0, void 0, function* () {
|
|
608
761
|
if (requestParameters['quizId'] == null) {
|
|
609
762
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling getQuizQuestions().');
|
|
@@ -618,12 +771,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
618
771
|
const headerParameters = {};
|
|
619
772
|
let urlPath = `/quizzes/{quizId}/questions`;
|
|
620
773
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
621
|
-
|
|
774
|
+
return {
|
|
622
775
|
path: urlPath,
|
|
623
776
|
method: 'GET',
|
|
624
777
|
headers: headerParameters,
|
|
625
778
|
query: queryParameters,
|
|
626
|
-
}
|
|
779
|
+
};
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Get quiz questions (paginated)
|
|
784
|
+
*/
|
|
785
|
+
getQuizQuestionsRaw(requestParameters, initOverrides) {
|
|
786
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
787
|
+
const requestOptions = yield this.getQuizQuestionsRequestOpts(requestParameters);
|
|
788
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
627
789
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizQuestionsFromJSON(jsonValue));
|
|
628
790
|
});
|
|
629
791
|
}
|
|
@@ -637,9 +799,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
637
799
|
});
|
|
638
800
|
}
|
|
639
801
|
/**
|
|
640
|
-
*
|
|
802
|
+
* Creates request options for getUserQuizAttempts without sending the request
|
|
641
803
|
*/
|
|
642
|
-
|
|
804
|
+
getUserQuizAttemptsRequestOpts(requestParameters) {
|
|
643
805
|
return __awaiter(this, void 0, void 0, function* () {
|
|
644
806
|
if (requestParameters['userId'] == null) {
|
|
645
807
|
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUserQuizAttempts().');
|
|
@@ -660,12 +822,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
660
822
|
const headerParameters = {};
|
|
661
823
|
let urlPath = `/users/{userId}/quiz-attempts`;
|
|
662
824
|
urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
663
|
-
|
|
825
|
+
return {
|
|
664
826
|
path: urlPath,
|
|
665
827
|
method: 'GET',
|
|
666
828
|
headers: headerParameters,
|
|
667
829
|
query: queryParameters,
|
|
668
|
-
}
|
|
830
|
+
};
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* Get user\'s quiz attempts across all quizzes
|
|
835
|
+
*/
|
|
836
|
+
getUserQuizAttemptsRaw(requestParameters, initOverrides) {
|
|
837
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
838
|
+
const requestOptions = yield this.getUserQuizAttemptsRequestOpts(requestParameters);
|
|
839
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
669
840
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetUserQuizAttemptsFromJSON(jsonValue));
|
|
670
841
|
});
|
|
671
842
|
}
|
|
@@ -679,9 +850,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
679
850
|
});
|
|
680
851
|
}
|
|
681
852
|
/**
|
|
682
|
-
*
|
|
853
|
+
* Creates request options for removeQuizQuestion without sending the request
|
|
683
854
|
*/
|
|
684
|
-
|
|
855
|
+
removeQuizQuestionRequestOpts(requestParameters) {
|
|
685
856
|
return __awaiter(this, void 0, void 0, function* () {
|
|
686
857
|
if (requestParameters['quizId'] == null) {
|
|
687
858
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling removeQuizQuestion().');
|
|
@@ -694,12 +865,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
694
865
|
let urlPath = `/quizzes/{quizId}/questions/{questionId}`;
|
|
695
866
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
696
867
|
urlPath = urlPath.replace(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId'])));
|
|
697
|
-
|
|
868
|
+
return {
|
|
698
869
|
path: urlPath,
|
|
699
870
|
method: 'DELETE',
|
|
700
871
|
headers: headerParameters,
|
|
701
872
|
query: queryParameters,
|
|
702
|
-
}
|
|
873
|
+
};
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Remove question from quiz
|
|
878
|
+
*/
|
|
879
|
+
removeQuizQuestionRaw(requestParameters, initOverrides) {
|
|
880
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
881
|
+
const requestOptions = yield this.removeQuizQuestionRequestOpts(requestParameters);
|
|
882
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
703
883
|
return new runtime.VoidApiResponse(response);
|
|
704
884
|
});
|
|
705
885
|
}
|
|
@@ -712,9 +892,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
712
892
|
});
|
|
713
893
|
}
|
|
714
894
|
/**
|
|
715
|
-
*
|
|
895
|
+
* Creates request options for saveQuizAnswer without sending the request
|
|
716
896
|
*/
|
|
717
|
-
|
|
897
|
+
saveQuizAnswerRequestOpts(requestParameters) {
|
|
718
898
|
return __awaiter(this, void 0, void 0, function* () {
|
|
719
899
|
if (requestParameters['attemptId'] == null) {
|
|
720
900
|
throw new runtime.RequiredError('attemptId', 'Required parameter "attemptId" was null or undefined when calling saveQuizAnswer().');
|
|
@@ -731,13 +911,22 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
731
911
|
let urlPath = `/quiz-attempts/{attemptId}/answers/{questionId}`;
|
|
732
912
|
urlPath = urlPath.replace(`{${"attemptId"}}`, encodeURIComponent(String(requestParameters['attemptId'])));
|
|
733
913
|
urlPath = urlPath.replace(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId'])));
|
|
734
|
-
|
|
914
|
+
return {
|
|
735
915
|
path: urlPath,
|
|
736
916
|
method: 'PUT',
|
|
737
917
|
headers: headerParameters,
|
|
738
918
|
query: queryParameters,
|
|
739
919
|
body: PutQuizAnswerToJSON(requestParameters['putQuizAnswer']),
|
|
740
|
-
}
|
|
920
|
+
};
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* Save answer for a specific question
|
|
925
|
+
*/
|
|
926
|
+
saveQuizAnswerRaw(requestParameters, initOverrides) {
|
|
927
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
928
|
+
const requestOptions = yield this.saveQuizAnswerRequestOpts(requestParameters);
|
|
929
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
741
930
|
return new runtime.VoidApiResponse(response);
|
|
742
931
|
});
|
|
743
932
|
}
|
|
@@ -750,9 +939,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
750
939
|
});
|
|
751
940
|
}
|
|
752
941
|
/**
|
|
753
|
-
*
|
|
942
|
+
* Creates request options for startQuizAttempt without sending the request
|
|
754
943
|
*/
|
|
755
|
-
|
|
944
|
+
startQuizAttemptRequestOpts(requestParameters) {
|
|
756
945
|
return __awaiter(this, void 0, void 0, function* () {
|
|
757
946
|
if (requestParameters['quizId'] == null) {
|
|
758
947
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling startQuizAttempt().');
|
|
@@ -761,12 +950,21 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
761
950
|
const headerParameters = {};
|
|
762
951
|
let urlPath = `/quizzes/{quizId}/attempts`;
|
|
763
952
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
764
|
-
|
|
953
|
+
return {
|
|
765
954
|
path: urlPath,
|
|
766
955
|
method: 'POST',
|
|
767
956
|
headers: headerParameters,
|
|
768
957
|
query: queryParameters,
|
|
769
|
-
}
|
|
958
|
+
};
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* Start a new quiz attempt
|
|
963
|
+
*/
|
|
964
|
+
startQuizAttemptRaw(requestParameters, initOverrides) {
|
|
965
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
966
|
+
const requestOptions = yield this.startQuizAttemptRequestOpts(requestParameters);
|
|
967
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
770
968
|
return new runtime.JSONApiResponse(response, (jsonValue) => PostQuizAttemptFromJSON(jsonValue));
|
|
771
969
|
});
|
|
772
970
|
}
|
|
@@ -780,9 +978,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
780
978
|
});
|
|
781
979
|
}
|
|
782
980
|
/**
|
|
783
|
-
*
|
|
981
|
+
* Creates request options for submitQuizAttempt without sending the request
|
|
784
982
|
*/
|
|
785
|
-
|
|
983
|
+
submitQuizAttemptRequestOpts(requestParameters) {
|
|
786
984
|
return __awaiter(this, void 0, void 0, function* () {
|
|
787
985
|
if (requestParameters['attemptId'] == null) {
|
|
788
986
|
throw new runtime.RequiredError('attemptId', 'Required parameter "attemptId" was null or undefined when calling submitQuizAttempt().');
|
|
@@ -795,13 +993,22 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
795
993
|
headerParameters['Content-Type'] = 'application/json';
|
|
796
994
|
let urlPath = `/quiz-attempts/{attemptId}/submit`;
|
|
797
995
|
urlPath = urlPath.replace(`{${"attemptId"}}`, encodeURIComponent(String(requestParameters['attemptId'])));
|
|
798
|
-
|
|
996
|
+
return {
|
|
799
997
|
path: urlPath,
|
|
800
998
|
method: 'POST',
|
|
801
999
|
headers: headerParameters,
|
|
802
1000
|
query: queryParameters,
|
|
803
1001
|
body: PostQuizAttemptSubmitToJSON(requestParameters['postQuizAttemptSubmit']),
|
|
804
|
-
}
|
|
1002
|
+
};
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* Submit quiz attempt for final scoring
|
|
1007
|
+
*/
|
|
1008
|
+
submitQuizAttemptRaw(requestParameters, initOverrides) {
|
|
1009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1010
|
+
const requestOptions = yield this.submitQuizAttemptRequestOpts(requestParameters);
|
|
1011
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
805
1012
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizResultsFromJSON(jsonValue));
|
|
806
1013
|
});
|
|
807
1014
|
}
|
|
@@ -815,9 +1022,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
815
1022
|
});
|
|
816
1023
|
}
|
|
817
1024
|
/**
|
|
818
|
-
*
|
|
1025
|
+
* Creates request options for updateQuiz without sending the request
|
|
819
1026
|
*/
|
|
820
|
-
|
|
1027
|
+
updateQuizRequestOpts(requestParameters) {
|
|
821
1028
|
return __awaiter(this, void 0, void 0, function* () {
|
|
822
1029
|
if (requestParameters['quizId'] == null) {
|
|
823
1030
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling updateQuiz().');
|
|
@@ -830,13 +1037,22 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
830
1037
|
headerParameters['Content-Type'] = 'application/json';
|
|
831
1038
|
let urlPath = `/quizzes/{quizId}`;
|
|
832
1039
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
833
|
-
|
|
1040
|
+
return {
|
|
834
1041
|
path: urlPath,
|
|
835
1042
|
method: 'PUT',
|
|
836
1043
|
headers: headerParameters,
|
|
837
1044
|
query: queryParameters,
|
|
838
1045
|
body: PutQuizToJSON(requestParameters['putQuiz']),
|
|
839
|
-
}
|
|
1046
|
+
};
|
|
1047
|
+
});
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* Update quiz configuration
|
|
1051
|
+
*/
|
|
1052
|
+
updateQuizRaw(requestParameters, initOverrides) {
|
|
1053
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1054
|
+
const requestOptions = yield this.updateQuizRequestOpts(requestParameters);
|
|
1055
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
840
1056
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizFromJSON(jsonValue));
|
|
841
1057
|
});
|
|
842
1058
|
}
|
|
@@ -850,9 +1066,9 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
850
1066
|
});
|
|
851
1067
|
}
|
|
852
1068
|
/**
|
|
853
|
-
*
|
|
1069
|
+
* Creates request options for updateQuizQuestions without sending the request
|
|
854
1070
|
*/
|
|
855
|
-
|
|
1071
|
+
updateQuizQuestionsRequestOpts(requestParameters) {
|
|
856
1072
|
return __awaiter(this, void 0, void 0, function* () {
|
|
857
1073
|
if (requestParameters['quizId'] == null) {
|
|
858
1074
|
throw new runtime.RequiredError('quizId', 'Required parameter "quizId" was null or undefined when calling updateQuizQuestions().');
|
|
@@ -865,13 +1081,22 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
865
1081
|
headerParameters['Content-Type'] = 'application/json';
|
|
866
1082
|
let urlPath = `/quizzes/{quizId}/questions`;
|
|
867
1083
|
urlPath = urlPath.replace(`{${"quizId"}}`, encodeURIComponent(String(requestParameters['quizId'])));
|
|
868
|
-
|
|
1084
|
+
return {
|
|
869
1085
|
path: urlPath,
|
|
870
1086
|
method: 'PUT',
|
|
871
1087
|
headers: headerParameters,
|
|
872
1088
|
query: queryParameters,
|
|
873
1089
|
body: PostQuizQuestionsToJSON(requestParameters['postQuizQuestions']),
|
|
874
|
-
}
|
|
1090
|
+
};
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
* Update quiz question selection
|
|
1095
|
+
*/
|
|
1096
|
+
updateQuizQuestionsRaw(requestParameters, initOverrides) {
|
|
1097
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1098
|
+
const requestOptions = yield this.updateQuizQuestionsRequestOpts(requestParameters);
|
|
1099
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
875
1100
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetQuizQuestionsFromJSON(jsonValue));
|
|
876
1101
|
});
|
|
877
1102
|
}
|