@easyedu/js-lsm-api 1.35.0 → 1.36.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 +18 -0
- package/README.md +12 -2
- package/dist/apis/QuizApi.d.ts +20 -1
- package/dist/apis/QuizApi.js +49 -0
- package/dist/esm/apis/QuizApi.d.ts +20 -1
- package/dist/esm/apis/QuizApi.js +50 -1
- package/dist/esm/models/CriteriaBasedSelectionCriteria.d.ts +3 -0
- package/dist/esm/models/CriteriaBasedSelectionCriteria.js +4 -1
- package/dist/esm/models/Essay.d.ts +45 -0
- package/dist/esm/models/Essay.js +53 -0
- package/dist/esm/models/Essay1.d.ts +45 -0
- package/dist/esm/models/Essay1.js +53 -0
- package/dist/esm/models/GetQuestion.d.ts +4 -1
- package/dist/esm/models/GetQuestion.js +4 -1
- package/dist/esm/models/GetQuestionListFilters.d.ts +3 -0
- package/dist/esm/models/GetQuestionListFilters.js +4 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +3 -0
- package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.js +4 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +3 -0
- package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +4 -1
- package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +3 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInner.js +4 -1
- package/dist/esm/models/GetQuizCriteriaItem.d.ts +3 -0
- package/dist/esm/models/GetQuizCriteriaItem.js +4 -1
- package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +3 -0
- package/dist/esm/models/GetQuizCriteriaListItemsInner.js +4 -1
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +3 -0
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.js +4 -1
- package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +3 -0
- package/dist/esm/models/GetQuizResultsQuestionsInner.js +4 -1
- package/dist/esm/models/Matching.d.ts +46 -0
- package/dist/esm/models/Matching.js +54 -0
- package/dist/esm/models/Matching1.d.ts +46 -0
- package/dist/esm/models/Matching1.js +54 -0
- package/dist/esm/models/Matching1PairsInner.d.ts +38 -0
- package/dist/esm/models/Matching1PairsInner.js +47 -0
- package/dist/esm/models/MatchingPairsInner.d.ts +38 -0
- package/dist/esm/models/MatchingPairsInner.js +47 -0
- package/dist/esm/models/PostQuestion.d.ts +4 -1
- package/dist/esm/models/PostQuestion.js +4 -1
- package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +3 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInner.js +4 -1
- package/dist/esm/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.d.ts +4 -1
- package/dist/esm/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +21 -0
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.d.ts +3 -0
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.js +4 -1
- package/dist/esm/models/PutQuestion.d.ts +4 -1
- package/dist/esm/models/PutQuestion.js +4 -1
- package/dist/esm/models/PutQuizAnswerAnswer.d.ts +4 -1
- package/dist/esm/models/PutQuizAnswerAnswer.js +21 -0
- package/dist/esm/models/PutQuizAnswerGrade.d.ts +38 -0
- package/dist/esm/models/PutQuizAnswerGrade.js +45 -0
- package/dist/esm/models/ShortAnswer.d.ts +45 -0
- package/dist/esm/models/ShortAnswer.js +53 -0
- package/dist/esm/models/ShortAnswer1.d.ts +45 -0
- package/dist/esm/models/ShortAnswer1.js +53 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/CriteriaBasedSelectionCriteria.d.ts +3 -0
- package/dist/models/CriteriaBasedSelectionCriteria.js +4 -1
- package/dist/models/Essay.d.ts +45 -0
- package/dist/models/Essay.js +61 -0
- package/dist/models/Essay1.d.ts +45 -0
- package/dist/models/Essay1.js +61 -0
- package/dist/models/GetQuestion.d.ts +4 -1
- package/dist/models/GetQuestion.js +4 -1
- package/dist/models/GetQuestionListFilters.d.ts +3 -0
- package/dist/models/GetQuestionListFilters.js +4 -1
- package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +3 -0
- package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.js +4 -1
- package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +3 -0
- package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +4 -1
- package/dist/models/GetQuizAttemptQuestionsInner.d.ts +3 -0
- package/dist/models/GetQuizAttemptQuestionsInner.js +4 -1
- package/dist/models/GetQuizCriteriaItem.d.ts +3 -0
- package/dist/models/GetQuizCriteriaItem.js +4 -1
- package/dist/models/GetQuizCriteriaListItemsInner.d.ts +3 -0
- package/dist/models/GetQuizCriteriaListItemsInner.js +4 -1
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +3 -0
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.js +4 -1
- package/dist/models/GetQuizResultsQuestionsInner.d.ts +3 -0
- package/dist/models/GetQuizResultsQuestionsInner.js +4 -1
- package/dist/models/Matching.d.ts +46 -0
- package/dist/models/Matching.js +62 -0
- package/dist/models/Matching1.d.ts +46 -0
- package/dist/models/Matching1.js +62 -0
- package/dist/models/Matching1PairsInner.d.ts +38 -0
- package/dist/models/Matching1PairsInner.js +54 -0
- package/dist/models/MatchingPairsInner.d.ts +38 -0
- package/dist/models/MatchingPairsInner.js +54 -0
- package/dist/models/PostQuestion.d.ts +4 -1
- package/dist/models/PostQuestion.js +4 -1
- package/dist/models/PostQuizAttemptQuestionsInner.d.ts +3 -0
- package/dist/models/PostQuizAttemptQuestionsInner.js +4 -1
- package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.d.ts +4 -1
- package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +21 -0
- package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +3 -0
- package/dist/models/PostQuizCriteriaCriteriaInner.js +4 -1
- package/dist/models/PutQuestion.d.ts +4 -1
- package/dist/models/PutQuestion.js +4 -1
- package/dist/models/PutQuizAnswerAnswer.d.ts +4 -1
- package/dist/models/PutQuizAnswerAnswer.js +21 -0
- package/dist/models/PutQuizAnswerGrade.d.ts +38 -0
- package/dist/models/PutQuizAnswerGrade.js +52 -0
- package/dist/models/ShortAnswer.d.ts +45 -0
- package/dist/models/ShortAnswer.js +61 -0
- package/dist/models/ShortAnswer1.d.ts +45 -0
- package/dist/models/ShortAnswer1.js +61 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/Essay.md +36 -0
- package/docs/Essay1.md +36 -0
- package/docs/Matching.md +36 -0
- package/docs/Matching1.md +36 -0
- package/docs/Matching1PairsInner.md +36 -0
- package/docs/MatchingPairsInner.md +36 -0
- package/docs/PostQuizAttemptSubmitFinalAnswersInnerAnswer.md +2 -0
- package/docs/PutQuizAnswerAnswer.md +2 -0
- package/docs/PutQuizAnswerGrade.md +36 -0
- package/docs/QuizApi.md +77 -0
- package/docs/ShortAnswer.md +36 -0
- package/docs/ShortAnswer1.md +36 -0
- package/package.json +1 -1
- package/src/apis/QuizApi.ts +73 -0
- package/src/models/CriteriaBasedSelectionCriteria.ts +4 -1
- package/src/models/Essay.ts +85 -0
- package/src/models/Essay1.ts +85 -0
- package/src/models/GetQuestion.ts +5 -2
- package/src/models/GetQuestionListFilters.ts +4 -1
- package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.ts +4 -1
- package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +4 -1
- package/src/models/GetQuizAttemptQuestionsInner.ts +4 -1
- package/src/models/GetQuizCriteriaItem.ts +4 -1
- package/src/models/GetQuizCriteriaListItemsInner.ts +4 -1
- package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +4 -1
- package/src/models/GetQuizResultsQuestionsInner.ts +4 -1
- package/src/models/Matching.ts +93 -0
- package/src/models/Matching1.ts +93 -0
- package/src/models/Matching1PairsInner.ts +75 -0
- package/src/models/MatchingPairsInner.ts +75 -0
- package/src/models/PostQuestion.ts +5 -2
- package/src/models/PostQuizAttemptQuestionsInner.ts +4 -1
- package/src/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.ts +40 -1
- package/src/models/PostQuizCriteriaCriteriaInner.ts +4 -1
- package/src/models/PutQuestion.ts +5 -2
- package/src/models/PutQuizAnswerAnswer.ts +40 -1
- package/src/models/PutQuizAnswerGrade.ts +74 -0
- package/src/models/ShortAnswer.ts +85 -0
- package/src/models/ShortAnswer1.ts +85 -0
- package/src/models/index.ts +9 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -7,6 +7,8 @@ docs/CourseApi.md
|
|
|
7
7
|
docs/CriteriaBasedSelection.md
|
|
8
8
|
docs/CriteriaBasedSelectionCriteria.md
|
|
9
9
|
docs/CriteriaBasedSelectionDistribution.md
|
|
10
|
+
docs/Essay.md
|
|
11
|
+
docs/Essay1.md
|
|
10
12
|
docs/FillInBlank.md
|
|
11
13
|
docs/FillInBlank1.md
|
|
12
14
|
docs/GetContent.md
|
|
@@ -134,6 +136,10 @@ docs/LoginResAuthData.md
|
|
|
134
136
|
docs/LoginResUserData.md
|
|
135
137
|
docs/LoginResUserDataSelectedPortal.md
|
|
136
138
|
docs/ManualSelection.md
|
|
139
|
+
docs/Matching.md
|
|
140
|
+
docs/Matching1.md
|
|
141
|
+
docs/Matching1PairsInner.md
|
|
142
|
+
docs/MatchingPairsInner.md
|
|
137
143
|
docs/MediaContent.md
|
|
138
144
|
docs/ModuleApi.md
|
|
139
145
|
docs/MultipleAnswer.md
|
|
@@ -189,6 +195,7 @@ docs/PutQuestionAnswerChoicesInner.md
|
|
|
189
195
|
docs/PutQuiz.md
|
|
190
196
|
docs/PutQuizAnswer.md
|
|
191
197
|
docs/PutQuizAnswerAnswer.md
|
|
198
|
+
docs/PutQuizAnswerGrade.md
|
|
192
199
|
docs/PutQuizSettings.md
|
|
193
200
|
docs/PutRole.md
|
|
194
201
|
docs/PutRolePermissions.md
|
|
@@ -210,6 +217,8 @@ docs/ScormSessionDataStatus.md
|
|
|
210
217
|
docs/ScormSessionDataTime.md
|
|
211
218
|
docs/ScormSetValueRequest.md
|
|
212
219
|
docs/ScormSetValueResponse.md
|
|
220
|
+
docs/ShortAnswer.md
|
|
221
|
+
docs/ShortAnswer1.md
|
|
213
222
|
docs/SingleAnswer.md
|
|
214
223
|
docs/UserApi.md
|
|
215
224
|
package.json
|
|
@@ -228,6 +237,8 @@ src/index.ts
|
|
|
228
237
|
src/models/CriteriaBasedSelection.ts
|
|
229
238
|
src/models/CriteriaBasedSelectionCriteria.ts
|
|
230
239
|
src/models/CriteriaBasedSelectionDistribution.ts
|
|
240
|
+
src/models/Essay.ts
|
|
241
|
+
src/models/Essay1.ts
|
|
231
242
|
src/models/FillInBlank.ts
|
|
232
243
|
src/models/FillInBlank1.ts
|
|
233
244
|
src/models/GetContent.ts
|
|
@@ -355,6 +366,10 @@ src/models/LoginResAuthData.ts
|
|
|
355
366
|
src/models/LoginResUserData.ts
|
|
356
367
|
src/models/LoginResUserDataSelectedPortal.ts
|
|
357
368
|
src/models/ManualSelection.ts
|
|
369
|
+
src/models/Matching.ts
|
|
370
|
+
src/models/Matching1.ts
|
|
371
|
+
src/models/Matching1PairsInner.ts
|
|
372
|
+
src/models/MatchingPairsInner.ts
|
|
358
373
|
src/models/MediaContent.ts
|
|
359
374
|
src/models/MultipleAnswer.ts
|
|
360
375
|
src/models/MultipleAnswer1.ts
|
|
@@ -407,6 +422,7 @@ src/models/PutQuestionAnswerChoicesInner.ts
|
|
|
407
422
|
src/models/PutQuiz.ts
|
|
408
423
|
src/models/PutQuizAnswer.ts
|
|
409
424
|
src/models/PutQuizAnswerAnswer.ts
|
|
425
|
+
src/models/PutQuizAnswerGrade.ts
|
|
410
426
|
src/models/PutQuizSettings.ts
|
|
411
427
|
src/models/PutRole.ts
|
|
412
428
|
src/models/PutRolePermissions.ts
|
|
@@ -424,6 +440,8 @@ src/models/ScormSessionDataStatus.ts
|
|
|
424
440
|
src/models/ScormSessionDataTime.ts
|
|
425
441
|
src/models/ScormSetValueRequest.ts
|
|
426
442
|
src/models/ScormSetValueResponse.ts
|
|
443
|
+
src/models/ShortAnswer.ts
|
|
444
|
+
src/models/ShortAnswer1.ts
|
|
427
445
|
src/models/SingleAnswer.ts
|
|
428
446
|
src/models/index.ts
|
|
429
447
|
src/runtime.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.36.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -120,6 +120,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
120
120
|
*QuizApi* | [**getQuizManualQuestionSelectionList**](docs/QuizApi.md#getquizmanualquestionselectionlist) | **GET** /quizzes/{quizId}/manual-question-selection | Get manually selected questions for quiz
|
|
121
121
|
*QuizApi* | [**getQuizQuestions**](docs/QuizApi.md#getquizquestions) | **GET** /quizzes/{quizId}/questions | Get quiz questions (paginated)
|
|
122
122
|
*QuizApi* | [**getUserQuizAttempts**](docs/QuizApi.md#getuserquizattempts) | **GET** /users/{userId}/quiz-attempts | Get user\'s quiz attempts across all quizzes
|
|
123
|
+
*QuizApi* | [**gradeQuizAnswer**](docs/QuizApi.md#gradequizanswer) | **PUT** /quiz-attempts/{attemptId}/answers/{questionId}/grade | Grade or override score for a question answer
|
|
123
124
|
*QuizApi* | [**removeQuizQuestion**](docs/QuizApi.md#removequizquestion) | **DELETE** /quizzes/{quizId}/questions/{questionId} | Remove question from quiz
|
|
124
125
|
*QuizApi* | [**saveQuizAnswer**](docs/QuizApi.md#savequizanswer) | **PUT** /quiz-attempts/{attemptId}/answers/{questionId} | Save answer for a specific question
|
|
125
126
|
*QuizApi* | [**startQuizAttempt**](docs/QuizApi.md#startquizattempt) | **POST** /quizzes/{quizId}/attempts | Start a new quiz attempt
|
|
@@ -160,6 +161,8 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
160
161
|
- [CriteriaBasedSelection](docs/CriteriaBasedSelection.md)
|
|
161
162
|
- [CriteriaBasedSelectionCriteria](docs/CriteriaBasedSelectionCriteria.md)
|
|
162
163
|
- [CriteriaBasedSelectionDistribution](docs/CriteriaBasedSelectionDistribution.md)
|
|
164
|
+
- [Essay](docs/Essay.md)
|
|
165
|
+
- [Essay1](docs/Essay1.md)
|
|
163
166
|
- [FillInBlank](docs/FillInBlank.md)
|
|
164
167
|
- [FillInBlank1](docs/FillInBlank1.md)
|
|
165
168
|
- [GetContent](docs/GetContent.md)
|
|
@@ -287,6 +290,10 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
287
290
|
- [LoginResUserData](docs/LoginResUserData.md)
|
|
288
291
|
- [LoginResUserDataSelectedPortal](docs/LoginResUserDataSelectedPortal.md)
|
|
289
292
|
- [ManualSelection](docs/ManualSelection.md)
|
|
293
|
+
- [Matching](docs/Matching.md)
|
|
294
|
+
- [Matching1](docs/Matching1.md)
|
|
295
|
+
- [Matching1PairsInner](docs/Matching1PairsInner.md)
|
|
296
|
+
- [MatchingPairsInner](docs/MatchingPairsInner.md)
|
|
290
297
|
- [MediaContent](docs/MediaContent.md)
|
|
291
298
|
- [MultipleAnswer](docs/MultipleAnswer.md)
|
|
292
299
|
- [MultipleAnswer1](docs/MultipleAnswer1.md)
|
|
@@ -339,6 +346,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
339
346
|
- [PutQuiz](docs/PutQuiz.md)
|
|
340
347
|
- [PutQuizAnswer](docs/PutQuizAnswer.md)
|
|
341
348
|
- [PutQuizAnswerAnswer](docs/PutQuizAnswerAnswer.md)
|
|
349
|
+
- [PutQuizAnswerGrade](docs/PutQuizAnswerGrade.md)
|
|
342
350
|
- [PutQuizSettings](docs/PutQuizSettings.md)
|
|
343
351
|
- [PutRole](docs/PutRole.md)
|
|
344
352
|
- [PutRolePermissions](docs/PutRolePermissions.md)
|
|
@@ -356,6 +364,8 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
356
364
|
- [ScormSessionDataTime](docs/ScormSessionDataTime.md)
|
|
357
365
|
- [ScormSetValueRequest](docs/ScormSetValueRequest.md)
|
|
358
366
|
- [ScormSetValueResponse](docs/ScormSetValueResponse.md)
|
|
367
|
+
- [ShortAnswer](docs/ShortAnswer.md)
|
|
368
|
+
- [ShortAnswer1](docs/ShortAnswer1.md)
|
|
359
369
|
- [SingleAnswer](docs/SingleAnswer.md)
|
|
360
370
|
|
|
361
371
|
### Authorization
|
|
@@ -370,7 +380,7 @@ and is automatically generated by the
|
|
|
370
380
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
371
381
|
|
|
372
382
|
- API version: `1.0.0`
|
|
373
|
-
- Package version: `1.
|
|
383
|
+
- Package version: `1.36.0`
|
|
374
384
|
- Generator version: `7.21.0`
|
|
375
385
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
376
386
|
|
package/dist/apis/QuizApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GetManualQuestionSelectionItem, GetManualQuestionSelectionList, GetQuiz, GetQuizAttempt, GetQuizAttemptAnalytics, GetQuizAttemptList, GetQuizCriteria, GetQuizCriteriaItem, GetQuizCriteriaList, GetQuizList, GetQuizQuestions, GetQuizResults, GetUserQuizAttempts, PostManualQuestionSelection, PostQuiz, PostQuizAttempt, PostQuizAttemptSubmit, PostQuizCriteria, PostQuizQuestions, PutQuiz, PutQuizAnswer } from '../models/index';
|
|
13
|
+
import type { GetManualQuestionSelectionItem, GetManualQuestionSelectionList, GetQuiz, GetQuizAttempt, GetQuizAttemptAnalytics, GetQuizAttemptList, GetQuizCriteria, GetQuizCriteriaItem, GetQuizCriteriaList, GetQuizList, GetQuizQuestions, GetQuizResults, GetUserQuizAttempts, PostManualQuestionSelection, PostQuiz, PostQuizAttempt, PostQuizAttemptSubmit, PostQuizCriteria, PostQuizQuestions, PutQuiz, PutQuizAnswer, PutQuizAnswerGrade } from '../models/index';
|
|
14
14
|
export interface AddQuizCriteriaQuestionSelectionRequest {
|
|
15
15
|
quizId: string;
|
|
16
16
|
postQuizCriteria: PostQuizCriteria;
|
|
@@ -93,6 +93,11 @@ export interface GetUserQuizAttemptsRequest {
|
|
|
93
93
|
courseId?: string;
|
|
94
94
|
status?: GetUserQuizAttemptsStatusEnum;
|
|
95
95
|
}
|
|
96
|
+
export interface GradeQuizAnswerRequest {
|
|
97
|
+
attemptId: string;
|
|
98
|
+
questionId: string;
|
|
99
|
+
putQuizAnswerGrade: PutQuizAnswerGrade;
|
|
100
|
+
}
|
|
96
101
|
export interface RemoveQuizQuestionRequest {
|
|
97
102
|
quizId: string;
|
|
98
103
|
questionId: string;
|
|
@@ -349,6 +354,20 @@ export declare class QuizApi extends runtime.BaseAPI {
|
|
|
349
354
|
* Get user\'s quiz attempts across all quizzes
|
|
350
355
|
*/
|
|
351
356
|
getUserQuizAttempts(requestParameters: GetUserQuizAttemptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserQuizAttempts>;
|
|
357
|
+
/**
|
|
358
|
+
* Creates request options for gradeQuizAnswer without sending the request
|
|
359
|
+
*/
|
|
360
|
+
gradeQuizAnswerRequestOpts(requestParameters: GradeQuizAnswerRequest): Promise<runtime.RequestOpts>;
|
|
361
|
+
/**
|
|
362
|
+
* Allows an instructor to grade an essay or override the score for any question type.
|
|
363
|
+
* Grade or override score for a question answer
|
|
364
|
+
*/
|
|
365
|
+
gradeQuizAnswerRaw(requestParameters: GradeQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
366
|
+
/**
|
|
367
|
+
* Allows an instructor to grade an essay or override the score for any question type.
|
|
368
|
+
* Grade or override score for a question answer
|
|
369
|
+
*/
|
|
370
|
+
gradeQuizAnswer(requestParameters: GradeQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
352
371
|
/**
|
|
353
372
|
* Creates request options for removeQuizQuestion without sending the request
|
|
354
373
|
*/
|
package/dist/apis/QuizApi.js
CHANGED
|
@@ -852,6 +852,55 @@ class QuizApi extends runtime.BaseAPI {
|
|
|
852
852
|
return yield response.value();
|
|
853
853
|
});
|
|
854
854
|
}
|
|
855
|
+
/**
|
|
856
|
+
* Creates request options for gradeQuizAnswer without sending the request
|
|
857
|
+
*/
|
|
858
|
+
gradeQuizAnswerRequestOpts(requestParameters) {
|
|
859
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
860
|
+
if (requestParameters['attemptId'] == null) {
|
|
861
|
+
throw new runtime.RequiredError('attemptId', 'Required parameter "attemptId" was null or undefined when calling gradeQuizAnswer().');
|
|
862
|
+
}
|
|
863
|
+
if (requestParameters['questionId'] == null) {
|
|
864
|
+
throw new runtime.RequiredError('questionId', 'Required parameter "questionId" was null or undefined when calling gradeQuizAnswer().');
|
|
865
|
+
}
|
|
866
|
+
if (requestParameters['putQuizAnswerGrade'] == null) {
|
|
867
|
+
throw new runtime.RequiredError('putQuizAnswerGrade', 'Required parameter "putQuizAnswerGrade" was null or undefined when calling gradeQuizAnswer().');
|
|
868
|
+
}
|
|
869
|
+
const queryParameters = {};
|
|
870
|
+
const headerParameters = {};
|
|
871
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
872
|
+
let urlPath = `/quiz-attempts/{attemptId}/answers/{questionId}/grade`;
|
|
873
|
+
urlPath = urlPath.replace(`{${"attemptId"}}`, encodeURIComponent(String(requestParameters['attemptId'])));
|
|
874
|
+
urlPath = urlPath.replace(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId'])));
|
|
875
|
+
return {
|
|
876
|
+
path: urlPath,
|
|
877
|
+
method: 'PUT',
|
|
878
|
+
headers: headerParameters,
|
|
879
|
+
query: queryParameters,
|
|
880
|
+
body: (0, index_1.PutQuizAnswerGradeToJSON)(requestParameters['putQuizAnswerGrade']),
|
|
881
|
+
};
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Allows an instructor to grade an essay or override the score for any question type.
|
|
886
|
+
* Grade or override score for a question answer
|
|
887
|
+
*/
|
|
888
|
+
gradeQuizAnswerRaw(requestParameters, initOverrides) {
|
|
889
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
890
|
+
const requestOptions = yield this.gradeQuizAnswerRequestOpts(requestParameters);
|
|
891
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
892
|
+
return new runtime.VoidApiResponse(response);
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Allows an instructor to grade an essay or override the score for any question type.
|
|
897
|
+
* Grade or override score for a question answer
|
|
898
|
+
*/
|
|
899
|
+
gradeQuizAnswer(requestParameters, initOverrides) {
|
|
900
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
901
|
+
yield this.gradeQuizAnswerRaw(requestParameters, initOverrides);
|
|
902
|
+
});
|
|
903
|
+
}
|
|
855
904
|
/**
|
|
856
905
|
* Creates request options for removeQuizQuestion without sending the request
|
|
857
906
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GetManualQuestionSelectionItem, GetManualQuestionSelectionList, GetQuiz, GetQuizAttempt, GetQuizAttemptAnalytics, GetQuizAttemptList, GetQuizCriteria, GetQuizCriteriaItem, GetQuizCriteriaList, GetQuizList, GetQuizQuestions, GetQuizResults, GetUserQuizAttempts, PostManualQuestionSelection, PostQuiz, PostQuizAttempt, PostQuizAttemptSubmit, PostQuizCriteria, PostQuizQuestions, PutQuiz, PutQuizAnswer } from '../models/index';
|
|
13
|
+
import type { GetManualQuestionSelectionItem, GetManualQuestionSelectionList, GetQuiz, GetQuizAttempt, GetQuizAttemptAnalytics, GetQuizAttemptList, GetQuizCriteria, GetQuizCriteriaItem, GetQuizCriteriaList, GetQuizList, GetQuizQuestions, GetQuizResults, GetUserQuizAttempts, PostManualQuestionSelection, PostQuiz, PostQuizAttempt, PostQuizAttemptSubmit, PostQuizCriteria, PostQuizQuestions, PutQuiz, PutQuizAnswer, PutQuizAnswerGrade } from '../models/index';
|
|
14
14
|
export interface AddQuizCriteriaQuestionSelectionRequest {
|
|
15
15
|
quizId: string;
|
|
16
16
|
postQuizCriteria: PostQuizCriteria;
|
|
@@ -93,6 +93,11 @@ export interface GetUserQuizAttemptsRequest {
|
|
|
93
93
|
courseId?: string;
|
|
94
94
|
status?: GetUserQuizAttemptsStatusEnum;
|
|
95
95
|
}
|
|
96
|
+
export interface GradeQuizAnswerRequest {
|
|
97
|
+
attemptId: string;
|
|
98
|
+
questionId: string;
|
|
99
|
+
putQuizAnswerGrade: PutQuizAnswerGrade;
|
|
100
|
+
}
|
|
96
101
|
export interface RemoveQuizQuestionRequest {
|
|
97
102
|
quizId: string;
|
|
98
103
|
questionId: string;
|
|
@@ -349,6 +354,20 @@ export declare class QuizApi extends runtime.BaseAPI {
|
|
|
349
354
|
* Get user\'s quiz attempts across all quizzes
|
|
350
355
|
*/
|
|
351
356
|
getUserQuizAttempts(requestParameters: GetUserQuizAttemptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserQuizAttempts>;
|
|
357
|
+
/**
|
|
358
|
+
* Creates request options for gradeQuizAnswer without sending the request
|
|
359
|
+
*/
|
|
360
|
+
gradeQuizAnswerRequestOpts(requestParameters: GradeQuizAnswerRequest): Promise<runtime.RequestOpts>;
|
|
361
|
+
/**
|
|
362
|
+
* Allows an instructor to grade an essay or override the score for any question type.
|
|
363
|
+
* Grade or override score for a question answer
|
|
364
|
+
*/
|
|
365
|
+
gradeQuizAnswerRaw(requestParameters: GradeQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
366
|
+
/**
|
|
367
|
+
* Allows an instructor to grade an essay or override the score for any question type.
|
|
368
|
+
* Grade or override score for a question answer
|
|
369
|
+
*/
|
|
370
|
+
gradeQuizAnswer(requestParameters: GradeQuizAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
352
371
|
/**
|
|
353
372
|
* Creates request options for removeQuizQuestion without sending the request
|
|
354
373
|
*/
|
package/dist/esm/apis/QuizApi.js
CHANGED
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetManualQuestionSelectionItemFromJSON, GetManualQuestionSelectionListFromJSON, GetQuizFromJSON, GetQuizAttemptFromJSON, GetQuizAttemptAnalyticsFromJSON, GetQuizAttemptListFromJSON, GetQuizCriteriaFromJSON, GetQuizCriteriaItemFromJSON, GetQuizCriteriaListFromJSON, GetQuizListFromJSON, GetQuizQuestionsFromJSON, GetQuizResultsFromJSON, GetUserQuizAttemptsFromJSON, PostManualQuestionSelectionToJSON, PostQuizToJSON, PostQuizAttemptFromJSON, PostQuizAttemptSubmitToJSON, PostQuizCriteriaToJSON, PostQuizQuestionsToJSON, PutQuizToJSON, PutQuizAnswerToJSON, } from '../models/index';
|
|
24
|
+
import { GetManualQuestionSelectionItemFromJSON, GetManualQuestionSelectionListFromJSON, GetQuizFromJSON, GetQuizAttemptFromJSON, GetQuizAttemptAnalyticsFromJSON, GetQuizAttemptListFromJSON, GetQuizCriteriaFromJSON, GetQuizCriteriaItemFromJSON, GetQuizCriteriaListFromJSON, GetQuizListFromJSON, GetQuizQuestionsFromJSON, GetQuizResultsFromJSON, GetUserQuizAttemptsFromJSON, PostManualQuestionSelectionToJSON, PostQuizToJSON, PostQuizAttemptFromJSON, PostQuizAttemptSubmitToJSON, PostQuizCriteriaToJSON, PostQuizQuestionsToJSON, PutQuizToJSON, PutQuizAnswerToJSON, PutQuizAnswerGradeToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -849,6 +849,55 @@ export class QuizApi extends runtime.BaseAPI {
|
|
|
849
849
|
return yield response.value();
|
|
850
850
|
});
|
|
851
851
|
}
|
|
852
|
+
/**
|
|
853
|
+
* Creates request options for gradeQuizAnswer without sending the request
|
|
854
|
+
*/
|
|
855
|
+
gradeQuizAnswerRequestOpts(requestParameters) {
|
|
856
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
857
|
+
if (requestParameters['attemptId'] == null) {
|
|
858
|
+
throw new runtime.RequiredError('attemptId', 'Required parameter "attemptId" was null or undefined when calling gradeQuizAnswer().');
|
|
859
|
+
}
|
|
860
|
+
if (requestParameters['questionId'] == null) {
|
|
861
|
+
throw new runtime.RequiredError('questionId', 'Required parameter "questionId" was null or undefined when calling gradeQuizAnswer().');
|
|
862
|
+
}
|
|
863
|
+
if (requestParameters['putQuizAnswerGrade'] == null) {
|
|
864
|
+
throw new runtime.RequiredError('putQuizAnswerGrade', 'Required parameter "putQuizAnswerGrade" was null or undefined when calling gradeQuizAnswer().');
|
|
865
|
+
}
|
|
866
|
+
const queryParameters = {};
|
|
867
|
+
const headerParameters = {};
|
|
868
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
869
|
+
let urlPath = `/quiz-attempts/{attemptId}/answers/{questionId}/grade`;
|
|
870
|
+
urlPath = urlPath.replace(`{${"attemptId"}}`, encodeURIComponent(String(requestParameters['attemptId'])));
|
|
871
|
+
urlPath = urlPath.replace(`{${"questionId"}}`, encodeURIComponent(String(requestParameters['questionId'])));
|
|
872
|
+
return {
|
|
873
|
+
path: urlPath,
|
|
874
|
+
method: 'PUT',
|
|
875
|
+
headers: headerParameters,
|
|
876
|
+
query: queryParameters,
|
|
877
|
+
body: PutQuizAnswerGradeToJSON(requestParameters['putQuizAnswerGrade']),
|
|
878
|
+
};
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* Allows an instructor to grade an essay or override the score for any question type.
|
|
883
|
+
* Grade or override score for a question answer
|
|
884
|
+
*/
|
|
885
|
+
gradeQuizAnswerRaw(requestParameters, initOverrides) {
|
|
886
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
887
|
+
const requestOptions = yield this.gradeQuizAnswerRequestOpts(requestParameters);
|
|
888
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
889
|
+
return new runtime.VoidApiResponse(response);
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Allows an instructor to grade an essay or override the score for any question type.
|
|
894
|
+
* Grade or override score for a question answer
|
|
895
|
+
*/
|
|
896
|
+
gradeQuizAnswer(requestParameters, initOverrides) {
|
|
897
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
898
|
+
yield this.gradeQuizAnswerRaw(requestParameters, initOverrides);
|
|
899
|
+
});
|
|
900
|
+
}
|
|
852
901
|
/**
|
|
853
902
|
* Creates request options for removeQuizQuestion without sending the request
|
|
854
903
|
*/
|
|
@@ -62,6 +62,9 @@ export declare const CriteriaBasedSelectionCriteriaQuestionTypesEnum: {
|
|
|
62
62
|
readonly SingleAnswer: "single_answer";
|
|
63
63
|
readonly MultipleAnswer: "multiple_answer";
|
|
64
64
|
readonly FillInBlank: "fill_in_blank";
|
|
65
|
+
readonly ShortAnswer: "short_answer";
|
|
66
|
+
readonly Matching: "matching";
|
|
67
|
+
readonly Essay: "essay";
|
|
65
68
|
};
|
|
66
69
|
export type CriteriaBasedSelectionCriteriaQuestionTypesEnum = typeof CriteriaBasedSelectionCriteriaQuestionTypesEnum[keyof typeof CriteriaBasedSelectionCriteriaQuestionTypesEnum];
|
|
67
70
|
/**
|
|
@@ -25,7 +25,10 @@ export const CriteriaBasedSelectionCriteriaDifficultyLevelsEnum = {
|
|
|
25
25
|
export const CriteriaBasedSelectionCriteriaQuestionTypesEnum = {
|
|
26
26
|
SingleAnswer: 'single_answer',
|
|
27
27
|
MultipleAnswer: 'multiple_answer',
|
|
28
|
-
FillInBlank: 'fill_in_blank'
|
|
28
|
+
FillInBlank: 'fill_in_blank',
|
|
29
|
+
ShortAnswer: 'short_answer',
|
|
30
|
+
Matching: 'matching',
|
|
31
|
+
Essay: 'essay'
|
|
29
32
|
};
|
|
30
33
|
/**
|
|
31
34
|
* Check if a given object implements the CriteriaBasedSelectionCriteria interface.
|
|
@@ -0,0 +1,45 @@
|
|
|
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 Essay
|
|
16
|
+
*/
|
|
17
|
+
export interface Essay {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {EssayTypeEnum}
|
|
21
|
+
* @memberof Essay
|
|
22
|
+
*/
|
|
23
|
+
type: EssayTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Essay response text
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Essay
|
|
28
|
+
*/
|
|
29
|
+
textAnswer: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const EssayTypeEnum: {
|
|
35
|
+
readonly Essay: "essay";
|
|
36
|
+
};
|
|
37
|
+
export type EssayTypeEnum = typeof EssayTypeEnum[keyof typeof EssayTypeEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the Essay interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfEssay(value: object): value is Essay;
|
|
42
|
+
export declare function EssayFromJSON(json: any): Essay;
|
|
43
|
+
export declare function EssayFromJSONTyped(json: any, ignoreDiscriminator: boolean): Essay;
|
|
44
|
+
export declare function EssayToJSON(json: any): Essay;
|
|
45
|
+
export declare function EssayToJSONTyped(value?: Essay | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const EssayTypeEnum = {
|
|
18
|
+
Essay: 'essay'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the Essay interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfEssay(value) {
|
|
24
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('textAnswer' in value) || value['textAnswer'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function EssayFromJSON(json) {
|
|
31
|
+
return EssayFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function EssayFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'type': json['type'],
|
|
39
|
+
'textAnswer': json['text_answer'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function EssayToJSON(json) {
|
|
43
|
+
return EssayToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function EssayToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'type': value['type'],
|
|
51
|
+
'text_answer': value['textAnswer'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 Essay1
|
|
16
|
+
*/
|
|
17
|
+
export interface Essay1 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Essay1TypeEnum}
|
|
21
|
+
* @memberof Essay1
|
|
22
|
+
*/
|
|
23
|
+
type: Essay1TypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Essay response text
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Essay1
|
|
28
|
+
*/
|
|
29
|
+
textAnswer: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const Essay1TypeEnum: {
|
|
35
|
+
readonly Essay: "essay";
|
|
36
|
+
};
|
|
37
|
+
export type Essay1TypeEnum = typeof Essay1TypeEnum[keyof typeof Essay1TypeEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the Essay1 interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfEssay1(value: object): value is Essay1;
|
|
42
|
+
export declare function Essay1FromJSON(json: any): Essay1;
|
|
43
|
+
export declare function Essay1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Essay1;
|
|
44
|
+
export declare function Essay1ToJSON(json: any): Essay1;
|
|
45
|
+
export declare function Essay1ToJSONTyped(value?: Essay1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const Essay1TypeEnum = {
|
|
18
|
+
Essay: 'essay'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the Essay1 interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfEssay1(value) {
|
|
24
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('textAnswer' in value) || value['textAnswer'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function Essay1FromJSON(json) {
|
|
31
|
+
return Essay1FromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function Essay1FromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'type': json['type'],
|
|
39
|
+
'textAnswer': json['text_answer'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function Essay1ToJSON(json) {
|
|
43
|
+
return Essay1ToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function Essay1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'type': value['type'],
|
|
51
|
+
'text_answer': value['textAnswer'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -29,7 +29,7 @@ export interface GetQuestion {
|
|
|
29
29
|
*/
|
|
30
30
|
questionText: string;
|
|
31
31
|
/**
|
|
32
|
-
* Type of question
|
|
32
|
+
* Type of question
|
|
33
33
|
* @type {GetQuestionQuestionTypeEnum}
|
|
34
34
|
* @memberof GetQuestion
|
|
35
35
|
*/
|
|
@@ -114,6 +114,9 @@ export declare const GetQuestionQuestionTypeEnum: {
|
|
|
114
114
|
readonly SingleAnswer: "single_answer";
|
|
115
115
|
readonly MultipleAnswer: "multiple_answer";
|
|
116
116
|
readonly FillInBlank: "fill_in_blank";
|
|
117
|
+
readonly ShortAnswer: "short_answer";
|
|
118
|
+
readonly Matching: "matching";
|
|
119
|
+
readonly Essay: "essay";
|
|
117
120
|
};
|
|
118
121
|
export type GetQuestionQuestionTypeEnum = typeof GetQuestionQuestionTypeEnum[keyof typeof GetQuestionQuestionTypeEnum];
|
|
119
122
|
/**
|
|
@@ -18,7 +18,10 @@ import { GetQuestionAnswerChoicesInnerFromJSON, GetQuestionAnswerChoicesInnerToJ
|
|
|
18
18
|
export const GetQuestionQuestionTypeEnum = {
|
|
19
19
|
SingleAnswer: 'single_answer',
|
|
20
20
|
MultipleAnswer: 'multiple_answer',
|
|
21
|
-
FillInBlank: 'fill_in_blank'
|
|
21
|
+
FillInBlank: 'fill_in_blank',
|
|
22
|
+
ShortAnswer: 'short_answer',
|
|
23
|
+
Matching: 'matching',
|
|
24
|
+
Essay: 'essay'
|
|
22
25
|
};
|
|
23
26
|
/**
|
|
24
27
|
* @export
|
|
@@ -71,6 +71,9 @@ export declare const GetQuestionListFiltersQuestionTypeEnum: {
|
|
|
71
71
|
readonly SingleAnswer: "single_answer";
|
|
72
72
|
readonly MultipleAnswer: "multiple_answer";
|
|
73
73
|
readonly FillInBlank: "fill_in_blank";
|
|
74
|
+
readonly ShortAnswer: "short_answer";
|
|
75
|
+
readonly Matching: "matching";
|
|
76
|
+
readonly Essay: "essay";
|
|
74
77
|
};
|
|
75
78
|
export type GetQuestionListFiltersQuestionTypeEnum = typeof GetQuestionListFiltersQuestionTypeEnum[keyof typeof GetQuestionListFiltersQuestionTypeEnum];
|
|
76
79
|
/**
|
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
export const GetQuestionListFiltersQuestionTypeEnum = {
|
|
18
18
|
SingleAnswer: 'single_answer',
|
|
19
19
|
MultipleAnswer: 'multiple_answer',
|
|
20
|
-
FillInBlank: 'fill_in_blank'
|
|
20
|
+
FillInBlank: 'fill_in_blank',
|
|
21
|
+
ShortAnswer: 'short_answer',
|
|
22
|
+
Matching: 'matching',
|
|
23
|
+
Essay: 'essay'
|
|
21
24
|
};
|
|
22
25
|
/**
|
|
23
26
|
* @export
|
|
@@ -59,6 +59,9 @@ export declare const GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeIn
|
|
|
59
59
|
readonly SingleAnswer: "single_answer";
|
|
60
60
|
readonly MultipleAnswer: "multiple_answer";
|
|
61
61
|
readonly FillInBlank: "fill_in_blank";
|
|
62
|
+
readonly ShortAnswer: "short_answer";
|
|
63
|
+
readonly Matching: "matching";
|
|
64
|
+
readonly Essay: "essay";
|
|
62
65
|
};
|
|
63
66
|
export type GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInnerQuestionTypeEnum = typeof GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInnerQuestionTypeEnum[keyof typeof GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInnerQuestionTypeEnum];
|
|
64
67
|
/**
|
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
export const GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInnerQuestionTypeEnum = {
|
|
18
18
|
SingleAnswer: 'single_answer',
|
|
19
19
|
MultipleAnswer: 'multiple_answer',
|
|
20
|
-
FillInBlank: 'fill_in_blank'
|
|
20
|
+
FillInBlank: 'fill_in_blank',
|
|
21
|
+
ShortAnswer: 'short_answer',
|
|
22
|
+
Matching: 'matching',
|
|
23
|
+
Essay: 'essay'
|
|
21
24
|
};
|
|
22
25
|
/**
|
|
23
26
|
* Check if a given object implements the GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner interface.
|
|
@@ -103,6 +103,9 @@ export declare const GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnu
|
|
|
103
103
|
readonly SingleAnswer: "single_answer";
|
|
104
104
|
readonly MultipleAnswer: "multiple_answer";
|
|
105
105
|
readonly FillInBlank: "fill_in_blank";
|
|
106
|
+
readonly ShortAnswer: "short_answer";
|
|
107
|
+
readonly Matching: "matching";
|
|
108
|
+
readonly Essay: "essay";
|
|
106
109
|
};
|
|
107
110
|
export type GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnum = typeof GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnum[keyof typeof GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnum];
|
|
108
111
|
/**
|
|
@@ -19,7 +19,10 @@ import { GetQuizAttemptAnalyticsQuestionAnalysisInnerUserAnswerFromJSON, GetQuiz
|
|
|
19
19
|
export const GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnum = {
|
|
20
20
|
SingleAnswer: 'single_answer',
|
|
21
21
|
MultipleAnswer: 'multiple_answer',
|
|
22
|
-
FillInBlank: 'fill_in_blank'
|
|
22
|
+
FillInBlank: 'fill_in_blank',
|
|
23
|
+
ShortAnswer: 'short_answer',
|
|
24
|
+
Matching: 'matching',
|
|
25
|
+
Essay: 'essay'
|
|
23
26
|
};
|
|
24
27
|
/**
|
|
25
28
|
* @export
|