@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,38 @@
|
|
|
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 Matching1PairsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface Matching1PairsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Matching1PairsInner
|
|
22
|
+
*/
|
|
23
|
+
premiseId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof Matching1PairsInner
|
|
28
|
+
*/
|
|
29
|
+
responseId: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Matching1PairsInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMatching1PairsInner(value: object): value is Matching1PairsInner;
|
|
35
|
+
export declare function Matching1PairsInnerFromJSON(json: any): Matching1PairsInner;
|
|
36
|
+
export declare function Matching1PairsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Matching1PairsInner;
|
|
37
|
+
export declare function Matching1PairsInnerToJSON(json: any): Matching1PairsInner;
|
|
38
|
+
export declare function Matching1PairsInnerToJSONTyped(value?: Matching1PairsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfMatching1PairsInner = instanceOfMatching1PairsInner;
|
|
17
|
+
exports.Matching1PairsInnerFromJSON = Matching1PairsInnerFromJSON;
|
|
18
|
+
exports.Matching1PairsInnerFromJSONTyped = Matching1PairsInnerFromJSONTyped;
|
|
19
|
+
exports.Matching1PairsInnerToJSON = Matching1PairsInnerToJSON;
|
|
20
|
+
exports.Matching1PairsInnerToJSONTyped = Matching1PairsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Matching1PairsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMatching1PairsInner(value) {
|
|
25
|
+
if (!('premiseId' in value) || value['premiseId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('responseId' in value) || value['responseId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function Matching1PairsInnerFromJSON(json) {
|
|
32
|
+
return Matching1PairsInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function Matching1PairsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'premiseId': json['premise_id'],
|
|
40
|
+
'responseId': json['response_id'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function Matching1PairsInnerToJSON(json) {
|
|
44
|
+
return Matching1PairsInnerToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function Matching1PairsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'premise_id': value['premiseId'],
|
|
52
|
+
'response_id': value['responseId'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 MatchingPairsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface MatchingPairsInner {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the premise (left side)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof MatchingPairsInner
|
|
22
|
+
*/
|
|
23
|
+
premiseId: number;
|
|
24
|
+
/**
|
|
25
|
+
* ID of the response (right side)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof MatchingPairsInner
|
|
28
|
+
*/
|
|
29
|
+
responseId: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MatchingPairsInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMatchingPairsInner(value: object): value is MatchingPairsInner;
|
|
35
|
+
export declare function MatchingPairsInnerFromJSON(json: any): MatchingPairsInner;
|
|
36
|
+
export declare function MatchingPairsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchingPairsInner;
|
|
37
|
+
export declare function MatchingPairsInnerToJSON(json: any): MatchingPairsInner;
|
|
38
|
+
export declare function MatchingPairsInnerToJSONTyped(value?: MatchingPairsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfMatchingPairsInner = instanceOfMatchingPairsInner;
|
|
17
|
+
exports.MatchingPairsInnerFromJSON = MatchingPairsInnerFromJSON;
|
|
18
|
+
exports.MatchingPairsInnerFromJSONTyped = MatchingPairsInnerFromJSONTyped;
|
|
19
|
+
exports.MatchingPairsInnerToJSON = MatchingPairsInnerToJSON;
|
|
20
|
+
exports.MatchingPairsInnerToJSONTyped = MatchingPairsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MatchingPairsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMatchingPairsInner(value) {
|
|
25
|
+
if (!('premiseId' in value) || value['premiseId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('responseId' in value) || value['responseId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function MatchingPairsInnerFromJSON(json) {
|
|
32
|
+
return MatchingPairsInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function MatchingPairsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'premiseId': json['premise_id'],
|
|
40
|
+
'responseId': json['response_id'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function MatchingPairsInnerToJSON(json) {
|
|
44
|
+
return MatchingPairsInnerToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function MatchingPairsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'premise_id': value['premiseId'],
|
|
52
|
+
'response_id': value['responseId'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -23,7 +23,7 @@ export interface PostQuestion {
|
|
|
23
23
|
*/
|
|
24
24
|
questionText: string;
|
|
25
25
|
/**
|
|
26
|
-
* Type of question
|
|
26
|
+
* Type of question
|
|
27
27
|
* @type {PostQuestionQuestionTypeEnum}
|
|
28
28
|
* @memberof PostQuestion
|
|
29
29
|
*/
|
|
@@ -84,6 +84,9 @@ export declare const PostQuestionQuestionTypeEnum: {
|
|
|
84
84
|
readonly SingleAnswer: "single_answer";
|
|
85
85
|
readonly MultipleAnswer: "multiple_answer";
|
|
86
86
|
readonly FillInBlank: "fill_in_blank";
|
|
87
|
+
readonly ShortAnswer: "short_answer";
|
|
88
|
+
readonly Matching: "matching";
|
|
89
|
+
readonly Essay: "essay";
|
|
87
90
|
};
|
|
88
91
|
export type PostQuestionQuestionTypeEnum = typeof PostQuestionQuestionTypeEnum[keyof typeof PostQuestionQuestionTypeEnum];
|
|
89
92
|
/**
|
|
@@ -26,7 +26,10 @@ const PostQuestionAnswerChoicesInner_1 = require("./PostQuestionAnswerChoicesInn
|
|
|
26
26
|
exports.PostQuestionQuestionTypeEnum = {
|
|
27
27
|
SingleAnswer: 'single_answer',
|
|
28
28
|
MultipleAnswer: 'multiple_answer',
|
|
29
|
-
FillInBlank: 'fill_in_blank'
|
|
29
|
+
FillInBlank: 'fill_in_blank',
|
|
30
|
+
ShortAnswer: 'short_answer',
|
|
31
|
+
Matching: 'matching',
|
|
32
|
+
Essay: 'essay'
|
|
30
33
|
};
|
|
31
34
|
/**
|
|
32
35
|
* @export
|
|
@@ -72,6 +72,9 @@ export declare const PostQuizAttemptQuestionsInnerQuestionTypeEnum: {
|
|
|
72
72
|
readonly SingleAnswer: "single_answer";
|
|
73
73
|
readonly MultipleAnswer: "multiple_answer";
|
|
74
74
|
readonly FillInBlank: "fill_in_blank";
|
|
75
|
+
readonly ShortAnswer: "short_answer";
|
|
76
|
+
readonly Matching: "matching";
|
|
77
|
+
readonly Essay: "essay";
|
|
75
78
|
};
|
|
76
79
|
export type PostQuizAttemptQuestionsInnerQuestionTypeEnum = typeof PostQuizAttemptQuestionsInnerQuestionTypeEnum[keyof typeof PostQuizAttemptQuestionsInnerQuestionTypeEnum];
|
|
77
80
|
/**
|
|
@@ -26,7 +26,10 @@ const PostQuizAttemptQuestionsInnerAnswerChoicesInner_1 = require("./PostQuizAtt
|
|
|
26
26
|
exports.PostQuizAttemptQuestionsInnerQuestionTypeEnum = {
|
|
27
27
|
SingleAnswer: 'single_answer',
|
|
28
28
|
MultipleAnswer: 'multiple_answer',
|
|
29
|
-
FillInBlank: 'fill_in_blank'
|
|
29
|
+
FillInBlank: 'fill_in_blank',
|
|
30
|
+
ShortAnswer: 'short_answer',
|
|
31
|
+
Matching: 'matching',
|
|
32
|
+
Essay: 'essay'
|
|
30
33
|
};
|
|
31
34
|
/**
|
|
32
35
|
* Check if a given object implements the PostQuizAttemptQuestionsInner interface.
|
|
@@ -9,16 +9,19 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { Essay1 } from './Essay1';
|
|
12
13
|
import type { FillInBlank1 } from './FillInBlank1';
|
|
14
|
+
import type { Matching1 } from './Matching1';
|
|
13
15
|
import type { MultipleAnswer1 } from './MultipleAnswer1';
|
|
14
16
|
import type { NoAnswer } from './NoAnswer';
|
|
17
|
+
import type { ShortAnswer1 } from './ShortAnswer1';
|
|
15
18
|
import type { SingleAnswer } from './SingleAnswer';
|
|
16
19
|
/**
|
|
17
20
|
* @type PostQuizAttemptSubmitFinalAnswersInnerAnswer
|
|
18
21
|
* Final answer for this question
|
|
19
22
|
* @export
|
|
20
23
|
*/
|
|
21
|
-
export type PostQuizAttemptSubmitFinalAnswersInnerAnswer = FillInBlank1 | MultipleAnswer1 | NoAnswer | SingleAnswer;
|
|
24
|
+
export type PostQuizAttemptSubmitFinalAnswersInnerAnswer = Essay1 | FillInBlank1 | Matching1 | MultipleAnswer1 | NoAnswer | ShortAnswer1 | SingleAnswer;
|
|
22
25
|
export declare function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSON(json: any): PostQuizAttemptSubmitFinalAnswersInnerAnswer;
|
|
23
26
|
export declare function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostQuizAttemptSubmitFinalAnswersInnerAnswer;
|
|
24
27
|
export declare function PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSON(json: any): any;
|
|
@@ -17,9 +17,12 @@ exports.PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSON = PostQuizAttemptSu
|
|
|
17
17
|
exports.PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped = PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped;
|
|
18
18
|
exports.PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSON = PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSON;
|
|
19
19
|
exports.PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSONTyped = PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSONTyped;
|
|
20
|
+
const Essay1_1 = require("./Essay1");
|
|
20
21
|
const FillInBlank1_1 = require("./FillInBlank1");
|
|
22
|
+
const Matching1_1 = require("./Matching1");
|
|
21
23
|
const MultipleAnswer1_1 = require("./MultipleAnswer1");
|
|
22
24
|
const NoAnswer_1 = require("./NoAnswer");
|
|
25
|
+
const ShortAnswer1_1 = require("./ShortAnswer1");
|
|
23
26
|
const SingleAnswer_1 = require("./SingleAnswer");
|
|
24
27
|
function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSON(json) {
|
|
25
28
|
return PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json, false);
|
|
@@ -31,15 +34,24 @@ function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json, ignoreD
|
|
|
31
34
|
if (typeof json !== 'object') {
|
|
32
35
|
return json;
|
|
33
36
|
}
|
|
37
|
+
if ((0, Essay1_1.instanceOfEssay1)(json)) {
|
|
38
|
+
return (0, Essay1_1.Essay1FromJSONTyped)(json, true);
|
|
39
|
+
}
|
|
34
40
|
if ((0, FillInBlank1_1.instanceOfFillInBlank1)(json)) {
|
|
35
41
|
return (0, FillInBlank1_1.FillInBlank1FromJSONTyped)(json, true);
|
|
36
42
|
}
|
|
43
|
+
if ((0, Matching1_1.instanceOfMatching1)(json)) {
|
|
44
|
+
return (0, Matching1_1.Matching1FromJSONTyped)(json, true);
|
|
45
|
+
}
|
|
37
46
|
if ((0, MultipleAnswer1_1.instanceOfMultipleAnswer1)(json)) {
|
|
38
47
|
return (0, MultipleAnswer1_1.MultipleAnswer1FromJSONTyped)(json, true);
|
|
39
48
|
}
|
|
40
49
|
if ((0, NoAnswer_1.instanceOfNoAnswer)(json)) {
|
|
41
50
|
return (0, NoAnswer_1.NoAnswerFromJSONTyped)(json, true);
|
|
42
51
|
}
|
|
52
|
+
if ((0, ShortAnswer1_1.instanceOfShortAnswer1)(json)) {
|
|
53
|
+
return (0, ShortAnswer1_1.ShortAnswer1FromJSONTyped)(json, true);
|
|
54
|
+
}
|
|
43
55
|
if ((0, SingleAnswer_1.instanceOfSingleAnswer)(json)) {
|
|
44
56
|
return (0, SingleAnswer_1.SingleAnswerFromJSONTyped)(json, true);
|
|
45
57
|
}
|
|
@@ -55,15 +67,24 @@ function PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSONTyped(value, ignoreDi
|
|
|
55
67
|
if (typeof value !== 'object') {
|
|
56
68
|
return value;
|
|
57
69
|
}
|
|
70
|
+
if ((0, Essay1_1.instanceOfEssay1)(value)) {
|
|
71
|
+
return (0, Essay1_1.Essay1ToJSON)(value);
|
|
72
|
+
}
|
|
58
73
|
if ((0, FillInBlank1_1.instanceOfFillInBlank1)(value)) {
|
|
59
74
|
return (0, FillInBlank1_1.FillInBlank1ToJSON)(value);
|
|
60
75
|
}
|
|
76
|
+
if ((0, Matching1_1.instanceOfMatching1)(value)) {
|
|
77
|
+
return (0, Matching1_1.Matching1ToJSON)(value);
|
|
78
|
+
}
|
|
61
79
|
if ((0, MultipleAnswer1_1.instanceOfMultipleAnswer1)(value)) {
|
|
62
80
|
return (0, MultipleAnswer1_1.MultipleAnswer1ToJSON)(value);
|
|
63
81
|
}
|
|
64
82
|
if ((0, NoAnswer_1.instanceOfNoAnswer)(value)) {
|
|
65
83
|
return (0, NoAnswer_1.NoAnswerToJSON)(value);
|
|
66
84
|
}
|
|
85
|
+
if ((0, ShortAnswer1_1.instanceOfShortAnswer1)(value)) {
|
|
86
|
+
return (0, ShortAnswer1_1.ShortAnswer1ToJSON)(value);
|
|
87
|
+
}
|
|
67
88
|
if ((0, SingleAnswer_1.instanceOfSingleAnswer)(value)) {
|
|
68
89
|
return (0, SingleAnswer_1.SingleAnswerToJSON)(value);
|
|
69
90
|
}
|
|
@@ -80,6 +80,9 @@ export declare const PostQuizCriteriaCriteriaInnerQuestionTypeEnum: {
|
|
|
80
80
|
readonly SingleAnswer: "single_answer";
|
|
81
81
|
readonly MultipleAnswer: "multiple_answer";
|
|
82
82
|
readonly FillInBlank: "fill_in_blank";
|
|
83
|
+
readonly ShortAnswer: "short_answer";
|
|
84
|
+
readonly Matching: "matching";
|
|
85
|
+
readonly Essay: "essay";
|
|
83
86
|
};
|
|
84
87
|
export type PostQuizCriteriaCriteriaInnerQuestionTypeEnum = typeof PostQuizCriteriaCriteriaInnerQuestionTypeEnum[keyof typeof PostQuizCriteriaCriteriaInnerQuestionTypeEnum];
|
|
85
88
|
/**
|
|
@@ -33,7 +33,10 @@ exports.PostQuizCriteriaCriteriaInnerDifficultyLevelEnum = {
|
|
|
33
33
|
exports.PostQuizCriteriaCriteriaInnerQuestionTypeEnum = {
|
|
34
34
|
SingleAnswer: 'single_answer',
|
|
35
35
|
MultipleAnswer: 'multiple_answer',
|
|
36
|
-
FillInBlank: 'fill_in_blank'
|
|
36
|
+
FillInBlank: 'fill_in_blank',
|
|
37
|
+
ShortAnswer: 'short_answer',
|
|
38
|
+
Matching: 'matching',
|
|
39
|
+
Essay: 'essay'
|
|
37
40
|
};
|
|
38
41
|
/**
|
|
39
42
|
* Check if a given object implements the PostQuizCriteriaCriteriaInner interface.
|
|
@@ -23,7 +23,7 @@ export interface PutQuestion {
|
|
|
23
23
|
*/
|
|
24
24
|
questionText?: string;
|
|
25
25
|
/**
|
|
26
|
-
* Type of question
|
|
26
|
+
* Type of question
|
|
27
27
|
* @type {PutQuestionQuestionTypeEnum}
|
|
28
28
|
* @memberof PutQuestion
|
|
29
29
|
*/
|
|
@@ -84,6 +84,9 @@ export declare const PutQuestionQuestionTypeEnum: {
|
|
|
84
84
|
readonly SingleAnswer: "single_answer";
|
|
85
85
|
readonly MultipleAnswer: "multiple_answer";
|
|
86
86
|
readonly FillInBlank: "fill_in_blank";
|
|
87
|
+
readonly ShortAnswer: "short_answer";
|
|
88
|
+
readonly Matching: "matching";
|
|
89
|
+
readonly Essay: "essay";
|
|
87
90
|
};
|
|
88
91
|
export type PutQuestionQuestionTypeEnum = typeof PutQuestionQuestionTypeEnum[keyof typeof PutQuestionQuestionTypeEnum];
|
|
89
92
|
/**
|
|
@@ -26,7 +26,10 @@ const PutQuestionAnswerChoicesInner_1 = require("./PutQuestionAnswerChoicesInner
|
|
|
26
26
|
exports.PutQuestionQuestionTypeEnum = {
|
|
27
27
|
SingleAnswer: 'single_answer',
|
|
28
28
|
MultipleAnswer: 'multiple_answer',
|
|
29
|
-
FillInBlank: 'fill_in_blank'
|
|
29
|
+
FillInBlank: 'fill_in_blank',
|
|
30
|
+
ShortAnswer: 'short_answer',
|
|
31
|
+
Matching: 'matching',
|
|
32
|
+
Essay: 'essay'
|
|
30
33
|
};
|
|
31
34
|
/**
|
|
32
35
|
* @export
|
|
@@ -9,15 +9,18 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { Essay } from './Essay';
|
|
12
13
|
import type { FillInBlank } from './FillInBlank';
|
|
14
|
+
import type { Matching } from './Matching';
|
|
13
15
|
import type { MultipleAnswer } from './MultipleAnswer';
|
|
16
|
+
import type { ShortAnswer } from './ShortAnswer';
|
|
14
17
|
import type { SingleAnswer } from './SingleAnswer';
|
|
15
18
|
/**
|
|
16
19
|
* @type PutQuizAnswerAnswer
|
|
17
20
|
* Answer based on question type
|
|
18
21
|
* @export
|
|
19
22
|
*/
|
|
20
|
-
export type PutQuizAnswerAnswer = FillInBlank | MultipleAnswer | SingleAnswer;
|
|
23
|
+
export type PutQuizAnswerAnswer = Essay | FillInBlank | Matching | MultipleAnswer | ShortAnswer | SingleAnswer;
|
|
21
24
|
export declare function PutQuizAnswerAnswerFromJSON(json: any): PutQuizAnswerAnswer;
|
|
22
25
|
export declare function PutQuizAnswerAnswerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerAnswer;
|
|
23
26
|
export declare function PutQuizAnswerAnswerToJSON(json: any): any;
|
|
@@ -17,8 +17,11 @@ exports.PutQuizAnswerAnswerFromJSON = PutQuizAnswerAnswerFromJSON;
|
|
|
17
17
|
exports.PutQuizAnswerAnswerFromJSONTyped = PutQuizAnswerAnswerFromJSONTyped;
|
|
18
18
|
exports.PutQuizAnswerAnswerToJSON = PutQuizAnswerAnswerToJSON;
|
|
19
19
|
exports.PutQuizAnswerAnswerToJSONTyped = PutQuizAnswerAnswerToJSONTyped;
|
|
20
|
+
const Essay_1 = require("./Essay");
|
|
20
21
|
const FillInBlank_1 = require("./FillInBlank");
|
|
22
|
+
const Matching_1 = require("./Matching");
|
|
21
23
|
const MultipleAnswer_1 = require("./MultipleAnswer");
|
|
24
|
+
const ShortAnswer_1 = require("./ShortAnswer");
|
|
22
25
|
const SingleAnswer_1 = require("./SingleAnswer");
|
|
23
26
|
function PutQuizAnswerAnswerFromJSON(json) {
|
|
24
27
|
return PutQuizAnswerAnswerFromJSONTyped(json, false);
|
|
@@ -30,12 +33,21 @@ function PutQuizAnswerAnswerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
33
|
if (typeof json !== 'object') {
|
|
31
34
|
return json;
|
|
32
35
|
}
|
|
36
|
+
if ((0, Essay_1.instanceOfEssay)(json)) {
|
|
37
|
+
return (0, Essay_1.EssayFromJSONTyped)(json, true);
|
|
38
|
+
}
|
|
33
39
|
if ((0, FillInBlank_1.instanceOfFillInBlank)(json)) {
|
|
34
40
|
return (0, FillInBlank_1.FillInBlankFromJSONTyped)(json, true);
|
|
35
41
|
}
|
|
42
|
+
if ((0, Matching_1.instanceOfMatching)(json)) {
|
|
43
|
+
return (0, Matching_1.MatchingFromJSONTyped)(json, true);
|
|
44
|
+
}
|
|
36
45
|
if ((0, MultipleAnswer_1.instanceOfMultipleAnswer)(json)) {
|
|
37
46
|
return (0, MultipleAnswer_1.MultipleAnswerFromJSONTyped)(json, true);
|
|
38
47
|
}
|
|
48
|
+
if ((0, ShortAnswer_1.instanceOfShortAnswer)(json)) {
|
|
49
|
+
return (0, ShortAnswer_1.ShortAnswerFromJSONTyped)(json, true);
|
|
50
|
+
}
|
|
39
51
|
if ((0, SingleAnswer_1.instanceOfSingleAnswer)(json)) {
|
|
40
52
|
return (0, SingleAnswer_1.SingleAnswerFromJSONTyped)(json, true);
|
|
41
53
|
}
|
|
@@ -51,12 +63,21 @@ function PutQuizAnswerAnswerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
63
|
if (typeof value !== 'object') {
|
|
52
64
|
return value;
|
|
53
65
|
}
|
|
66
|
+
if ((0, Essay_1.instanceOfEssay)(value)) {
|
|
67
|
+
return (0, Essay_1.EssayToJSON)(value);
|
|
68
|
+
}
|
|
54
69
|
if ((0, FillInBlank_1.instanceOfFillInBlank)(value)) {
|
|
55
70
|
return (0, FillInBlank_1.FillInBlankToJSON)(value);
|
|
56
71
|
}
|
|
72
|
+
if ((0, Matching_1.instanceOfMatching)(value)) {
|
|
73
|
+
return (0, Matching_1.MatchingToJSON)(value);
|
|
74
|
+
}
|
|
57
75
|
if ((0, MultipleAnswer_1.instanceOfMultipleAnswer)(value)) {
|
|
58
76
|
return (0, MultipleAnswer_1.MultipleAnswerToJSON)(value);
|
|
59
77
|
}
|
|
78
|
+
if ((0, ShortAnswer_1.instanceOfShortAnswer)(value)) {
|
|
79
|
+
return (0, ShortAnswer_1.ShortAnswerToJSON)(value);
|
|
80
|
+
}
|
|
60
81
|
if ((0, SingleAnswer_1.instanceOfSingleAnswer)(value)) {
|
|
61
82
|
return (0, SingleAnswer_1.SingleAnswerToJSON)(value);
|
|
62
83
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 PutQuizAnswerGrade
|
|
16
|
+
*/
|
|
17
|
+
export interface PutQuizAnswerGrade {
|
|
18
|
+
/**
|
|
19
|
+
* Points to award for this answer (0 to max points for the question)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PutQuizAnswerGrade
|
|
22
|
+
*/
|
|
23
|
+
pointsEarned: number;
|
|
24
|
+
/**
|
|
25
|
+
* Optional instructor feedback or comments
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PutQuizAnswerGrade
|
|
28
|
+
*/
|
|
29
|
+
feedback?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PutQuizAnswerGrade interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPutQuizAnswerGrade(value: object): value is PutQuizAnswerGrade;
|
|
35
|
+
export declare function PutQuizAnswerGradeFromJSON(json: any): PutQuizAnswerGrade;
|
|
36
|
+
export declare function PutQuizAnswerGradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerGrade;
|
|
37
|
+
export declare function PutQuizAnswerGradeToJSON(json: any): PutQuizAnswerGrade;
|
|
38
|
+
export declare function PutQuizAnswerGradeToJSONTyped(value?: PutQuizAnswerGrade | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfPutQuizAnswerGrade = instanceOfPutQuizAnswerGrade;
|
|
17
|
+
exports.PutQuizAnswerGradeFromJSON = PutQuizAnswerGradeFromJSON;
|
|
18
|
+
exports.PutQuizAnswerGradeFromJSONTyped = PutQuizAnswerGradeFromJSONTyped;
|
|
19
|
+
exports.PutQuizAnswerGradeToJSON = PutQuizAnswerGradeToJSON;
|
|
20
|
+
exports.PutQuizAnswerGradeToJSONTyped = PutQuizAnswerGradeToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutQuizAnswerGrade interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutQuizAnswerGrade(value) {
|
|
25
|
+
if (!('pointsEarned' in value) || value['pointsEarned'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PutQuizAnswerGradeFromJSON(json) {
|
|
30
|
+
return PutQuizAnswerGradeFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PutQuizAnswerGradeFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'pointsEarned': json['points_earned'],
|
|
38
|
+
'feedback': json['feedback'] == null ? undefined : json['feedback'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PutQuizAnswerGradeToJSON(json) {
|
|
42
|
+
return PutQuizAnswerGradeToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PutQuizAnswerGradeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'points_earned': value['pointsEarned'],
|
|
50
|
+
'feedback': value['feedback'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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 ShortAnswer
|
|
16
|
+
*/
|
|
17
|
+
export interface ShortAnswer {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {ShortAnswerTypeEnum}
|
|
21
|
+
* @memberof ShortAnswer
|
|
22
|
+
*/
|
|
23
|
+
type: ShortAnswerTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Short text answer
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ShortAnswer
|
|
28
|
+
*/
|
|
29
|
+
textAnswer: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ShortAnswerTypeEnum: {
|
|
35
|
+
readonly ShortAnswer: "short_answer";
|
|
36
|
+
};
|
|
37
|
+
export type ShortAnswerTypeEnum = typeof ShortAnswerTypeEnum[keyof typeof ShortAnswerTypeEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ShortAnswer interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfShortAnswer(value: object): value is ShortAnswer;
|
|
42
|
+
export declare function ShortAnswerFromJSON(json: any): ShortAnswer;
|
|
43
|
+
export declare function ShortAnswerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShortAnswer;
|
|
44
|
+
export declare function ShortAnswerToJSON(json: any): ShortAnswer;
|
|
45
|
+
export declare function ShortAnswerToJSONTyped(value?: ShortAnswer | 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.ShortAnswerTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfShortAnswer = instanceOfShortAnswer;
|
|
18
|
+
exports.ShortAnswerFromJSON = ShortAnswerFromJSON;
|
|
19
|
+
exports.ShortAnswerFromJSONTyped = ShortAnswerFromJSONTyped;
|
|
20
|
+
exports.ShortAnswerToJSON = ShortAnswerToJSON;
|
|
21
|
+
exports.ShortAnswerToJSONTyped = ShortAnswerToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ShortAnswerTypeEnum = {
|
|
26
|
+
ShortAnswer: 'short_answer'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the ShortAnswer interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfShortAnswer(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 ShortAnswerFromJSON(json) {
|
|
39
|
+
return ShortAnswerFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ShortAnswerFromJSONTyped(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 ShortAnswerToJSON(json) {
|
|
51
|
+
return ShortAnswerToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ShortAnswerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'type': value['type'],
|
|
59
|
+
'text_answer': value['textAnswer'],
|
|
60
|
+
};
|
|
61
|
+
}
|