@easyedu/js-lsm-api 1.34.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 +13 -2
- package/dist/apis/QuizApi.d.ts +20 -1
- package/dist/apis/QuizApi.js +49 -0
- package/dist/apis/UserApi.d.ts +14 -0
- package/dist/apis/UserApi.js +37 -0
- package/dist/esm/apis/QuizApi.d.ts +20 -1
- package/dist/esm/apis/QuizApi.js +50 -1
- package/dist/esm/apis/UserApi.d.ts +14 -0
- package/dist/esm/apis/UserApi.js +37 -0
- 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/docs/UserApi.md +61 -0
- package/package.json +1 -1
- package/src/apis/QuizApi.ts +73 -0
- package/src/apis/UserApi.ts +39 -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
|
@@ -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 ShortAnswer1
|
|
16
|
+
*/
|
|
17
|
+
export interface ShortAnswer1 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {ShortAnswer1TypeEnum}
|
|
21
|
+
* @memberof ShortAnswer1
|
|
22
|
+
*/
|
|
23
|
+
type: ShortAnswer1TypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Short text answer
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ShortAnswer1
|
|
28
|
+
*/
|
|
29
|
+
textAnswer: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ShortAnswer1TypeEnum: {
|
|
35
|
+
readonly ShortAnswer: "short_answer";
|
|
36
|
+
};
|
|
37
|
+
export type ShortAnswer1TypeEnum = typeof ShortAnswer1TypeEnum[keyof typeof ShortAnswer1TypeEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ShortAnswer1 interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfShortAnswer1(value: object): value is ShortAnswer1;
|
|
42
|
+
export declare function ShortAnswer1FromJSON(json: any): ShortAnswer1;
|
|
43
|
+
export declare function ShortAnswer1FromJSONTyped(json: any, ignoreDiscriminator: boolean): ShortAnswer1;
|
|
44
|
+
export declare function ShortAnswer1ToJSON(json: any): ShortAnswer1;
|
|
45
|
+
export declare function ShortAnswer1ToJSONTyped(value?: ShortAnswer1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ShortAnswer1TypeEnum = void 0;
|
|
17
|
+
exports.instanceOfShortAnswer1 = instanceOfShortAnswer1;
|
|
18
|
+
exports.ShortAnswer1FromJSON = ShortAnswer1FromJSON;
|
|
19
|
+
exports.ShortAnswer1FromJSONTyped = ShortAnswer1FromJSONTyped;
|
|
20
|
+
exports.ShortAnswer1ToJSON = ShortAnswer1ToJSON;
|
|
21
|
+
exports.ShortAnswer1ToJSONTyped = ShortAnswer1ToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ShortAnswer1TypeEnum = {
|
|
26
|
+
ShortAnswer: 'short_answer'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the ShortAnswer1 interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfShortAnswer1(value) {
|
|
32
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('textAnswer' in value) || value['textAnswer'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function ShortAnswer1FromJSON(json) {
|
|
39
|
+
return ShortAnswer1FromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ShortAnswer1FromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'type': json['type'],
|
|
47
|
+
'textAnswer': json['text_answer'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ShortAnswer1ToJSON(json) {
|
|
51
|
+
return ShortAnswer1ToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ShortAnswer1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'type': value['type'],
|
|
59
|
+
'text_answer': value['textAnswer'],
|
|
60
|
+
};
|
|
61
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './CriteriaBasedSelection';
|
|
2
2
|
export * from './CriteriaBasedSelectionCriteria';
|
|
3
3
|
export * from './CriteriaBasedSelectionDistribution';
|
|
4
|
+
export * from './Essay';
|
|
5
|
+
export * from './Essay1';
|
|
4
6
|
export * from './FillInBlank';
|
|
5
7
|
export * from './FillInBlank1';
|
|
6
8
|
export * from './GetContent';
|
|
@@ -128,6 +130,10 @@ export * from './LoginResAuthData';
|
|
|
128
130
|
export * from './LoginResUserData';
|
|
129
131
|
export * from './LoginResUserDataSelectedPortal';
|
|
130
132
|
export * from './ManualSelection';
|
|
133
|
+
export * from './Matching';
|
|
134
|
+
export * from './Matching1';
|
|
135
|
+
export * from './Matching1PairsInner';
|
|
136
|
+
export * from './MatchingPairsInner';
|
|
131
137
|
export * from './MediaContent';
|
|
132
138
|
export * from './MultipleAnswer';
|
|
133
139
|
export * from './MultipleAnswer1';
|
|
@@ -180,6 +186,7 @@ export * from './PutQuestionAnswerChoicesInner';
|
|
|
180
186
|
export * from './PutQuiz';
|
|
181
187
|
export * from './PutQuizAnswer';
|
|
182
188
|
export * from './PutQuizAnswerAnswer';
|
|
189
|
+
export * from './PutQuizAnswerGrade';
|
|
183
190
|
export * from './PutQuizSettings';
|
|
184
191
|
export * from './PutRole';
|
|
185
192
|
export * from './PutRolePermissions';
|
|
@@ -197,4 +204,6 @@ export * from './ScormSessionDataStatus';
|
|
|
197
204
|
export * from './ScormSessionDataTime';
|
|
198
205
|
export * from './ScormSetValueRequest';
|
|
199
206
|
export * from './ScormSetValueResponse';
|
|
207
|
+
export * from './ShortAnswer';
|
|
208
|
+
export * from './ShortAnswer1';
|
|
200
209
|
export * from './SingleAnswer';
|
package/dist/models/index.js
CHANGED
|
@@ -19,6 +19,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./CriteriaBasedSelection"), exports);
|
|
20
20
|
__exportStar(require("./CriteriaBasedSelectionCriteria"), exports);
|
|
21
21
|
__exportStar(require("./CriteriaBasedSelectionDistribution"), exports);
|
|
22
|
+
__exportStar(require("./Essay"), exports);
|
|
23
|
+
__exportStar(require("./Essay1"), exports);
|
|
22
24
|
__exportStar(require("./FillInBlank"), exports);
|
|
23
25
|
__exportStar(require("./FillInBlank1"), exports);
|
|
24
26
|
__exportStar(require("./GetContent"), exports);
|
|
@@ -146,6 +148,10 @@ __exportStar(require("./LoginResAuthData"), exports);
|
|
|
146
148
|
__exportStar(require("./LoginResUserData"), exports);
|
|
147
149
|
__exportStar(require("./LoginResUserDataSelectedPortal"), exports);
|
|
148
150
|
__exportStar(require("./ManualSelection"), exports);
|
|
151
|
+
__exportStar(require("./Matching"), exports);
|
|
152
|
+
__exportStar(require("./Matching1"), exports);
|
|
153
|
+
__exportStar(require("./Matching1PairsInner"), exports);
|
|
154
|
+
__exportStar(require("./MatchingPairsInner"), exports);
|
|
149
155
|
__exportStar(require("./MediaContent"), exports);
|
|
150
156
|
__exportStar(require("./MultipleAnswer"), exports);
|
|
151
157
|
__exportStar(require("./MultipleAnswer1"), exports);
|
|
@@ -198,6 +204,7 @@ __exportStar(require("./PutQuestionAnswerChoicesInner"), exports);
|
|
|
198
204
|
__exportStar(require("./PutQuiz"), exports);
|
|
199
205
|
__exportStar(require("./PutQuizAnswer"), exports);
|
|
200
206
|
__exportStar(require("./PutQuizAnswerAnswer"), exports);
|
|
207
|
+
__exportStar(require("./PutQuizAnswerGrade"), exports);
|
|
201
208
|
__exportStar(require("./PutQuizSettings"), exports);
|
|
202
209
|
__exportStar(require("./PutRole"), exports);
|
|
203
210
|
__exportStar(require("./PutRolePermissions"), exports);
|
|
@@ -215,4 +222,6 @@ __exportStar(require("./ScormSessionDataStatus"), exports);
|
|
|
215
222
|
__exportStar(require("./ScormSessionDataTime"), exports);
|
|
216
223
|
__exportStar(require("./ScormSetValueRequest"), exports);
|
|
217
224
|
__exportStar(require("./ScormSetValueResponse"), exports);
|
|
225
|
+
__exportStar(require("./ShortAnswer"), exports);
|
|
226
|
+
__exportStar(require("./ShortAnswer1"), exports);
|
|
218
227
|
__exportStar(require("./SingleAnswer"), exports);
|
package/docs/Essay.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# Essay
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | string
|
|
10
|
+
`textAnswer` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { Essay } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"type": null,
|
|
20
|
+
"textAnswer": null,
|
|
21
|
+
} satisfies Essay
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as Essay
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/Essay1.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# Essay1
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | string
|
|
10
|
+
`textAnswer` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { Essay1 } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"type": null,
|
|
20
|
+
"textAnswer": null,
|
|
21
|
+
} satisfies Essay1
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as Essay1
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/Matching.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# Matching
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | string
|
|
10
|
+
`pairs` | [Array<MatchingPairsInner>](MatchingPairsInner.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { Matching } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"type": null,
|
|
20
|
+
"pairs": null,
|
|
21
|
+
} satisfies Matching
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as Matching
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# Matching1
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | string
|
|
10
|
+
`pairs` | [Array<Matching1PairsInner>](Matching1PairsInner.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { Matching1 } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"type": null,
|
|
20
|
+
"pairs": null,
|
|
21
|
+
} satisfies Matching1
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as Matching1
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# Matching1PairsInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`premiseId` | number
|
|
10
|
+
`responseId` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { Matching1PairsInner } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"premiseId": null,
|
|
20
|
+
"responseId": null,
|
|
21
|
+
} satisfies Matching1PairsInner
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as Matching1PairsInner
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# MatchingPairsInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`premiseId` | number
|
|
10
|
+
`responseId` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { MatchingPairsInner } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"premiseId": null,
|
|
20
|
+
"responseId": null,
|
|
21
|
+
} satisfies MatchingPairsInner
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as MatchingPairsInner
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`answerChoiceId` | string
|
|
12
12
|
`answerChoiceIds` | Array<string>
|
|
13
13
|
`textAnswer` | string
|
|
14
|
+
`pairs` | [Array<Matching1PairsInner>](Matching1PairsInner.md)
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -23,6 +24,7 @@ const example = {
|
|
|
23
24
|
"answerChoiceId": null,
|
|
24
25
|
"answerChoiceIds": null,
|
|
25
26
|
"textAnswer": null,
|
|
27
|
+
"pairs": null,
|
|
26
28
|
} satisfies PostQuizAttemptSubmitFinalAnswersInnerAnswer
|
|
27
29
|
|
|
28
30
|
console.log(example)
|
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`answerChoiceId` | string
|
|
12
12
|
`answerChoiceIds` | Array<string>
|
|
13
13
|
`textAnswer` | string
|
|
14
|
+
`pairs` | [Array<MatchingPairsInner>](MatchingPairsInner.md)
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -23,6 +24,7 @@ const example = {
|
|
|
23
24
|
"answerChoiceId": null,
|
|
24
25
|
"answerChoiceIds": null,
|
|
25
26
|
"textAnswer": null,
|
|
27
|
+
"pairs": null,
|
|
26
28
|
} satisfies PutQuizAnswerAnswer
|
|
27
29
|
|
|
28
30
|
console.log(example)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PutQuizAnswerGrade
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`pointsEarned` | number
|
|
10
|
+
`feedback` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PutQuizAnswerGrade } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"pointsEarned": null,
|
|
20
|
+
"feedback": null,
|
|
21
|
+
} satisfies PutQuizAnswerGrade
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PutQuizAnswerGrade
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/QuizApi.md
CHANGED
|
@@ -23,6 +23,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
23
23
|
| [**getQuizManualQuestionSelectionList**](QuizApi.md#getquizmanualquestionselectionlist) | **GET** /quizzes/{quizId}/manual-question-selection | Get manually selected questions for quiz |
|
|
24
24
|
| [**getQuizQuestions**](QuizApi.md#getquizquestions) | **GET** /quizzes/{quizId}/questions | Get quiz questions (paginated) |
|
|
25
25
|
| [**getUserQuizAttempts**](QuizApi.md#getuserquizattempts) | **GET** /users/{userId}/quiz-attempts | Get user\'s quiz attempts across all quizzes |
|
|
26
|
+
| [**gradeQuizAnswer**](QuizApi.md#gradequizanswer) | **PUT** /quiz-attempts/{attemptId}/answers/{questionId}/grade | Grade or override score for a question answer |
|
|
26
27
|
| [**removeQuizQuestion**](QuizApi.md#removequizquestion) | **DELETE** /quizzes/{quizId}/questions/{questionId} | Remove question from quiz |
|
|
27
28
|
| [**saveQuizAnswer**](QuizApi.md#savequizanswer) | **PUT** /quiz-attempts/{attemptId}/answers/{questionId} | Save answer for a specific question |
|
|
28
29
|
| [**startQuizAttempt**](QuizApi.md#startquizattempt) | **POST** /quizzes/{quizId}/attempts | Start a new quiz attempt |
|
|
@@ -1369,6 +1370,82 @@ No authorization required
|
|
|
1369
1370
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1370
1371
|
|
|
1371
1372
|
|
|
1373
|
+
## gradeQuizAnswer
|
|
1374
|
+
|
|
1375
|
+
> gradeQuizAnswer(attemptId, questionId, putQuizAnswerGrade)
|
|
1376
|
+
|
|
1377
|
+
Grade or override score for a question answer
|
|
1378
|
+
|
|
1379
|
+
Allows an instructor to grade an essay or override the score for any question type.
|
|
1380
|
+
|
|
1381
|
+
### Example
|
|
1382
|
+
|
|
1383
|
+
```ts
|
|
1384
|
+
import {
|
|
1385
|
+
Configuration,
|
|
1386
|
+
QuizApi,
|
|
1387
|
+
} from '@easyedu/js-lsm-api';
|
|
1388
|
+
import type { GradeQuizAnswerRequest } from '@easyedu/js-lsm-api';
|
|
1389
|
+
|
|
1390
|
+
async function example() {
|
|
1391
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
1392
|
+
const api = new QuizApi();
|
|
1393
|
+
|
|
1394
|
+
const body = {
|
|
1395
|
+
// string
|
|
1396
|
+
attemptId: attemptId_example,
|
|
1397
|
+
// string
|
|
1398
|
+
questionId: questionId_example,
|
|
1399
|
+
// PutQuizAnswerGrade
|
|
1400
|
+
putQuizAnswerGrade: ...,
|
|
1401
|
+
} satisfies GradeQuizAnswerRequest;
|
|
1402
|
+
|
|
1403
|
+
try {
|
|
1404
|
+
const data = await api.gradeQuizAnswer(body);
|
|
1405
|
+
console.log(data);
|
|
1406
|
+
} catch (error) {
|
|
1407
|
+
console.error(error);
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
// Run the test
|
|
1412
|
+
example().catch(console.error);
|
|
1413
|
+
```
|
|
1414
|
+
|
|
1415
|
+
### Parameters
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
| Name | Type | Description | Notes |
|
|
1419
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1420
|
+
| **attemptId** | `string` | | [Defaults to `undefined`] |
|
|
1421
|
+
| **questionId** | `string` | | [Defaults to `undefined`] |
|
|
1422
|
+
| **putQuizAnswerGrade** | [PutQuizAnswerGrade](PutQuizAnswerGrade.md) | | |
|
|
1423
|
+
|
|
1424
|
+
### Return type
|
|
1425
|
+
|
|
1426
|
+
`void` (Empty response body)
|
|
1427
|
+
|
|
1428
|
+
### Authorization
|
|
1429
|
+
|
|
1430
|
+
No authorization required
|
|
1431
|
+
|
|
1432
|
+
### HTTP request headers
|
|
1433
|
+
|
|
1434
|
+
- **Content-Type**: `application/json`
|
|
1435
|
+
- **Accept**: Not defined
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
### HTTP response details
|
|
1439
|
+
| Status code | Description | Response headers |
|
|
1440
|
+
|-------------|-------------|------------------|
|
|
1441
|
+
| **200** | Answer graded successfully | - |
|
|
1442
|
+
| **400** | Invalid grade (points out of range) | - |
|
|
1443
|
+
| **403** | Not authorized to grade answers | - |
|
|
1444
|
+
| **404** | Attempt, question, or answer not found | - |
|
|
1445
|
+
|
|
1446
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1447
|
+
|
|
1448
|
+
|
|
1372
1449
|
## removeQuizQuestion
|
|
1373
1450
|
|
|
1374
1451
|
> removeQuizQuestion(quizId, questionId)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ShortAnswer
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | string
|
|
10
|
+
`textAnswer` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ShortAnswer } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"type": null,
|
|
20
|
+
"textAnswer": null,
|
|
21
|
+
} satisfies ShortAnswer
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ShortAnswer
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ShortAnswer1
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | string
|
|
10
|
+
`textAnswer` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ShortAnswer1 } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"type": null,
|
|
20
|
+
"textAnswer": null,
|
|
21
|
+
} satisfies ShortAnswer1
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ShortAnswer1
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|