@easyedu/js-lsm-api 1.91.0 → 1.93.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 +50 -0
- package/README.md +52 -2
- package/dist/apis/ContentLibraryQuizApi.d.ts +451 -0
- package/dist/apis/ContentLibraryQuizApi.js +1162 -0
- package/dist/apis/PlayerApi.d.ts +15 -0
- package/dist/apis/PlayerApi.js +44 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +451 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +1158 -0
- package/dist/esm/apis/PlayerApi.d.ts +15 -0
- package/dist/esm/apis/PlayerApi.js +44 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetCourseVersionItem.d.ts +14 -0
- package/dist/esm/models/GetCourseVersionItem.js +9 -0
- package/dist/esm/models/GetLibraryQuiz.d.ts +124 -0
- package/dist/esm/models/GetLibraryQuiz.js +100 -0
- package/dist/esm/models/GetLibraryQuizAnalytics.d.ts +68 -0
- package/dist/esm/models/GetLibraryQuizAnalytics.js +67 -0
- package/dist/esm/models/GetLibraryQuizList.d.ts +57 -0
- package/dist/esm/models/GetLibraryQuizList.js +60 -0
- package/dist/esm/models/GetLibraryQuizResult.d.ts +94 -0
- package/dist/esm/models/GetLibraryQuizResult.js +79 -0
- package/dist/esm/models/GetLibraryQuizSession.d.ts +177 -0
- package/dist/esm/models/GetLibraryQuizSession.js +129 -0
- package/dist/esm/models/GetLibraryQuizSessionList.d.ts +57 -0
- package/dist/esm/models/GetLibraryQuizSessionList.js +60 -0
- package/dist/esm/models/GetLibraryQuizUsage.d.ts +56 -0
- package/dist/esm/models/GetLibraryQuizUsage.js +59 -0
- package/dist/esm/models/GetLibraryQuizVersion.d.ts +170 -0
- package/dist/esm/models/GetLibraryQuizVersion.js +125 -0
- package/dist/esm/models/GetQuestion.d.ts +7 -1
- package/dist/esm/models/GetQuestion.js +3 -0
- package/dist/esm/models/LibraryQuizCriterion.d.ts +95 -0
- package/dist/esm/models/LibraryQuizCriterion.js +76 -0
- package/dist/esm/models/LibraryQuizQuestion.d.ts +113 -0
- package/dist/esm/models/LibraryQuizQuestion.js +93 -0
- package/dist/esm/models/LibraryQuizQuestionInput.d.ts +50 -0
- package/dist/esm/models/LibraryQuizQuestionInput.js +51 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +51 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +54 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +96 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.js +84 -0
- package/dist/esm/models/PostCourseLibraryQuizSession.d.ts +32 -0
- package/dist/esm/models/PostCourseLibraryQuizSession.js +41 -0
- package/dist/esm/models/PostLibraryQuiz.d.ts +107 -0
- package/dist/esm/models/PostLibraryQuiz.js +70 -0
- package/dist/esm/models/PostLibraryQuizSession.d.ts +32 -0
- package/dist/esm/models/PostLibraryQuizSession.js +41 -0
- package/dist/esm/models/PostLibraryQuizVersion.d.ts +32 -0
- package/dist/esm/models/PostLibraryQuizVersion.js +41 -0
- package/dist/esm/models/PutLibraryQuiz.d.ts +38 -0
- package/dist/esm/models/PutLibraryQuiz.js +43 -0
- package/dist/esm/models/PutLibraryQuizCriteria.d.ts +33 -0
- package/dist/esm/models/PutLibraryQuizCriteria.js +44 -0
- package/dist/esm/models/PutLibraryQuizQuestions.d.ts +33 -0
- package/dist/esm/models/PutLibraryQuizQuestions.js +44 -0
- package/dist/esm/models/PutLibraryQuizSessionAnswer.d.ts +40 -0
- package/dist/esm/models/PutLibraryQuizSessionAnswer.js +45 -0
- package/dist/esm/models/PutLibraryQuizSessionGrade.d.ts +38 -0
- package/dist/esm/models/PutLibraryQuizSessionGrade.js +45 -0
- package/dist/esm/models/PutLibraryQuizVersion.d.ts +101 -0
- package/dist/esm/models/PutLibraryQuizVersion.js +64 -0
- package/dist/esm/models/QuestionSelectionMethod.d.ts +25 -0
- package/dist/esm/models/QuestionSelectionMethod.js +43 -0
- package/dist/esm/models/index.d.ts +24 -0
- package/dist/esm/models/index.js +24 -0
- package/dist/models/GetCourseVersionItem.d.ts +14 -0
- package/dist/models/GetCourseVersionItem.js +10 -1
- package/dist/models/GetLibraryQuiz.d.ts +124 -0
- package/dist/models/GetLibraryQuiz.js +108 -0
- package/dist/models/GetLibraryQuizAnalytics.d.ts +68 -0
- package/dist/models/GetLibraryQuizAnalytics.js +74 -0
- package/dist/models/GetLibraryQuizList.d.ts +57 -0
- package/dist/models/GetLibraryQuizList.js +67 -0
- package/dist/models/GetLibraryQuizResult.d.ts +94 -0
- package/dist/models/GetLibraryQuizResult.js +86 -0
- package/dist/models/GetLibraryQuizSession.d.ts +177 -0
- package/dist/models/GetLibraryQuizSession.js +137 -0
- package/dist/models/GetLibraryQuizSessionList.d.ts +57 -0
- package/dist/models/GetLibraryQuizSessionList.js +67 -0
- package/dist/models/GetLibraryQuizUsage.d.ts +56 -0
- package/dist/models/GetLibraryQuizUsage.js +66 -0
- package/dist/models/GetLibraryQuizVersion.d.ts +170 -0
- package/dist/models/GetLibraryQuizVersion.js +132 -0
- package/dist/models/GetQuestion.d.ts +7 -1
- package/dist/models/GetQuestion.js +3 -0
- package/dist/models/LibraryQuizCriterion.d.ts +95 -0
- package/dist/models/LibraryQuizCriterion.js +84 -0
- package/dist/models/LibraryQuizQuestion.d.ts +113 -0
- package/dist/models/LibraryQuizQuestion.js +101 -0
- package/dist/models/LibraryQuizQuestionInput.d.ts +50 -0
- package/dist/models/LibraryQuizQuestionInput.js +58 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +51 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.js +61 -0
- package/dist/models/LibraryQuizSessionQuestion.d.ts +96 -0
- package/dist/models/LibraryQuizSessionQuestion.js +92 -0
- package/dist/models/PostCourseLibraryQuizSession.d.ts +32 -0
- package/dist/models/PostCourseLibraryQuizSession.js +48 -0
- package/dist/models/PostLibraryQuiz.d.ts +107 -0
- package/dist/models/PostLibraryQuiz.js +77 -0
- package/dist/models/PostLibraryQuizSession.d.ts +32 -0
- package/dist/models/PostLibraryQuizSession.js +48 -0
- package/dist/models/PostLibraryQuizVersion.d.ts +32 -0
- package/dist/models/PostLibraryQuizVersion.js +48 -0
- package/dist/models/PutLibraryQuiz.d.ts +38 -0
- package/dist/models/PutLibraryQuiz.js +50 -0
- package/dist/models/PutLibraryQuizCriteria.d.ts +33 -0
- package/dist/models/PutLibraryQuizCriteria.js +51 -0
- package/dist/models/PutLibraryQuizQuestions.d.ts +33 -0
- package/dist/models/PutLibraryQuizQuestions.js +51 -0
- package/dist/models/PutLibraryQuizSessionAnswer.d.ts +40 -0
- package/dist/models/PutLibraryQuizSessionAnswer.js +52 -0
- package/dist/models/PutLibraryQuizSessionGrade.d.ts +38 -0
- package/dist/models/PutLibraryQuizSessionGrade.js +52 -0
- package/dist/models/PutLibraryQuizVersion.d.ts +101 -0
- package/dist/models/PutLibraryQuizVersion.js +71 -0
- package/dist/models/QuestionSelectionMethod.d.ts +25 -0
- package/dist/models/QuestionSelectionMethod.js +51 -0
- package/dist/models/index.d.ts +24 -0
- package/dist/models/index.js +24 -0
- package/docs/ContentLibraryQuizApi.md +1780 -0
- package/docs/GetCourseVersionItem.md +2 -0
- package/docs/GetLibraryQuiz.md +62 -0
- package/docs/GetLibraryQuizAnalytics.md +46 -0
- package/docs/GetLibraryQuizList.md +42 -0
- package/docs/GetLibraryQuizResult.md +54 -0
- package/docs/GetLibraryQuizSession.md +78 -0
- package/docs/GetLibraryQuizSessionList.md +42 -0
- package/docs/GetLibraryQuizUsage.md +42 -0
- package/docs/GetLibraryQuizVersion.md +78 -0
- package/docs/GetQuestion.md +2 -0
- package/docs/LibraryQuizCriterion.md +48 -0
- package/docs/LibraryQuizQuestion.md +56 -0
- package/docs/LibraryQuizQuestionInput.md +40 -0
- package/docs/LibraryQuizSessionAnswerChoice.md +40 -0
- package/docs/LibraryQuizSessionQuestion.md +50 -0
- package/docs/PlayerApi.md +66 -0
- package/docs/PostCourseLibraryQuizSession.md +34 -0
- package/docs/PostLibraryQuiz.md +58 -0
- package/docs/PostLibraryQuizSession.md +34 -0
- package/docs/PostLibraryQuizVersion.md +34 -0
- package/docs/PutLibraryQuiz.md +36 -0
- package/docs/PutLibraryQuizCriteria.md +34 -0
- package/docs/PutLibraryQuizQuestions.md +34 -0
- package/docs/PutLibraryQuizSessionAnswer.md +36 -0
- package/docs/PutLibraryQuizSessionGrade.md +36 -0
- package/docs/PutLibraryQuizVersion.md +56 -0
- package/docs/QuestionSelectionMethod.md +32 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryQuizApi.ts +1624 -0
- package/src/apis/PlayerApi.ts +53 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetCourseVersionItem.ts +17 -0
- package/src/models/GetLibraryQuiz.ts +207 -0
- package/src/models/GetLibraryQuizAnalytics.ts +120 -0
- package/src/models/GetLibraryQuizList.ts +110 -0
- package/src/models/GetLibraryQuizResult.ts +154 -0
- package/src/models/GetLibraryQuizSession.ts +286 -0
- package/src/models/GetLibraryQuizSessionList.ts +110 -0
- package/src/models/GetLibraryQuizUsage.ts +102 -0
- package/src/models/GetLibraryQuizVersion.ts +290 -0
- package/src/models/GetQuestion.ts +9 -1
- package/src/models/LibraryQuizCriterion.ts +147 -0
- package/src/models/LibraryQuizQuestion.ts +185 -0
- package/src/models/LibraryQuizQuestionInput.ts +91 -0
- package/src/models/LibraryQuizSessionAnswerChoice.ts +100 -0
- package/src/models/LibraryQuizSessionQuestion.ts +166 -0
- package/src/models/PostCourseLibraryQuizSession.ts +65 -0
- package/src/models/PostLibraryQuiz.ts +173 -0
- package/src/models/PostLibraryQuizSession.ts +65 -0
- package/src/models/PostLibraryQuizVersion.ts +65 -0
- package/src/models/PutLibraryQuiz.ts +73 -0
- package/src/models/PutLibraryQuizCriteria.ts +74 -0
- package/src/models/PutLibraryQuizQuestions.ts +74 -0
- package/src/models/PutLibraryQuizSessionAnswer.ts +74 -0
- package/src/models/PutLibraryQuizSessionGrade.ts +74 -0
- package/src/models/PutLibraryQuizVersion.ts +163 -0
- package/src/models/QuestionSelectionMethod.ts +53 -0
- package/src/models/index.ts +24 -0
|
@@ -78,6 +78,12 @@ export interface GetQuestion {
|
|
|
78
78
|
* @memberof GetQuestion
|
|
79
79
|
*/
|
|
80
80
|
version?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Canonical numeric version within the question's version history
|
|
83
|
+
* @type {number}
|
|
84
|
+
* @memberof GetQuestion
|
|
85
|
+
*/
|
|
86
|
+
readonly versionNumber: number;
|
|
81
87
|
/**
|
|
82
88
|
* When the question was created
|
|
83
89
|
* @type {Date}
|
|
@@ -137,4 +143,4 @@ export declare function instanceOfGetQuestion(value: object): value is GetQuesti
|
|
|
137
143
|
export declare function GetQuestionFromJSON(json: any): GetQuestion;
|
|
138
144
|
export declare function GetQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuestion;
|
|
139
145
|
export declare function GetQuestionToJSON(json: any): GetQuestion;
|
|
140
|
-
export declare function GetQuestionToJSONTyped(value?: Omit<GetQuestion, 'id' | 'created_date' | 'updated_date' | 'created_by' | 'quiz_count' | 'quizzes'> | null, ignoreDiscriminator?: boolean): any;
|
|
146
|
+
export declare function GetQuestionToJSONTyped(value?: Omit<GetQuestion, 'id' | 'version_number' | 'created_date' | 'updated_date' | 'created_by' | 'quiz_count' | 'quizzes'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -55,6 +55,8 @@ function instanceOfGetQuestion(value) {
|
|
|
55
55
|
return false;
|
|
56
56
|
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
57
57
|
return false;
|
|
58
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
59
|
+
return false;
|
|
58
60
|
if (!('createdDate' in value) || value['createdDate'] === undefined)
|
|
59
61
|
return false;
|
|
60
62
|
if (!('updatedDate' in value) || value['updatedDate'] === undefined)
|
|
@@ -79,6 +81,7 @@ function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
81
|
'difficultyLevel': json['difficulty_level'],
|
|
80
82
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
81
83
|
'version': json['version'] == null ? undefined : json['version'],
|
|
84
|
+
'versionNumber': json['version_number'],
|
|
82
85
|
'createdDate': (new Date(json['created_date'])),
|
|
83
86
|
'updatedDate': (new Date(json['updated_date'])),
|
|
84
87
|
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
|
@@ -0,0 +1,95 @@
|
|
|
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 LibraryQuizCriterion
|
|
16
|
+
*/
|
|
17
|
+
export interface LibraryQuizCriterion {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LibraryQuizCriterion
|
|
22
|
+
*/
|
|
23
|
+
id?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LibraryQuizCriterion
|
|
28
|
+
*/
|
|
29
|
+
topic?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {LibraryQuizCriterionDifficultyLevelEnum}
|
|
33
|
+
* @memberof LibraryQuizCriterion
|
|
34
|
+
*/
|
|
35
|
+
difficultyLevel?: LibraryQuizCriterionDifficultyLevelEnum | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {LibraryQuizCriterionQuestionTypeEnum}
|
|
39
|
+
* @memberof LibraryQuizCriterion
|
|
40
|
+
*/
|
|
41
|
+
questionType?: LibraryQuizCriterionQuestionTypeEnum | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof LibraryQuizCriterion
|
|
46
|
+
*/
|
|
47
|
+
tags?: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof LibraryQuizCriterion
|
|
52
|
+
*/
|
|
53
|
+
minQuestions?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof LibraryQuizCriterion
|
|
58
|
+
*/
|
|
59
|
+
maxQuestions?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof LibraryQuizCriterion
|
|
64
|
+
*/
|
|
65
|
+
priority: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const LibraryQuizCriterionDifficultyLevelEnum: {
|
|
71
|
+
readonly Beginner: "beginner";
|
|
72
|
+
readonly Intermediate: "intermediate";
|
|
73
|
+
readonly Advanced: "advanced";
|
|
74
|
+
};
|
|
75
|
+
export type LibraryQuizCriterionDifficultyLevelEnum = typeof LibraryQuizCriterionDifficultyLevelEnum[keyof typeof LibraryQuizCriterionDifficultyLevelEnum];
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const LibraryQuizCriterionQuestionTypeEnum: {
|
|
80
|
+
readonly SingleAnswer: "single_answer";
|
|
81
|
+
readonly MultipleAnswer: "multiple_answer";
|
|
82
|
+
readonly FillInBlank: "fill_in_blank";
|
|
83
|
+
readonly ShortAnswer: "short_answer";
|
|
84
|
+
readonly Matching: "matching";
|
|
85
|
+
readonly Essay: "essay";
|
|
86
|
+
};
|
|
87
|
+
export type LibraryQuizCriterionQuestionTypeEnum = typeof LibraryQuizCriterionQuestionTypeEnum[keyof typeof LibraryQuizCriterionQuestionTypeEnum];
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the LibraryQuizCriterion interface.
|
|
90
|
+
*/
|
|
91
|
+
export declare function instanceOfLibraryQuizCriterion(value: object): value is LibraryQuizCriterion;
|
|
92
|
+
export declare function LibraryQuizCriterionFromJSON(json: any): LibraryQuizCriterion;
|
|
93
|
+
export declare function LibraryQuizCriterionFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizCriterion;
|
|
94
|
+
export declare function LibraryQuizCriterionToJSON(json: any): LibraryQuizCriterion;
|
|
95
|
+
export declare function LibraryQuizCriterionToJSONTyped(value?: LibraryQuizCriterion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
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.LibraryQuizCriterionQuestionTypeEnum = exports.LibraryQuizCriterionDifficultyLevelEnum = void 0;
|
|
17
|
+
exports.instanceOfLibraryQuizCriterion = instanceOfLibraryQuizCriterion;
|
|
18
|
+
exports.LibraryQuizCriterionFromJSON = LibraryQuizCriterionFromJSON;
|
|
19
|
+
exports.LibraryQuizCriterionFromJSONTyped = LibraryQuizCriterionFromJSONTyped;
|
|
20
|
+
exports.LibraryQuizCriterionToJSON = LibraryQuizCriterionToJSON;
|
|
21
|
+
exports.LibraryQuizCriterionToJSONTyped = LibraryQuizCriterionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.LibraryQuizCriterionDifficultyLevelEnum = {
|
|
26
|
+
Beginner: 'beginner',
|
|
27
|
+
Intermediate: 'intermediate',
|
|
28
|
+
Advanced: 'advanced'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.LibraryQuizCriterionQuestionTypeEnum = {
|
|
34
|
+
SingleAnswer: 'single_answer',
|
|
35
|
+
MultipleAnswer: 'multiple_answer',
|
|
36
|
+
FillInBlank: 'fill_in_blank',
|
|
37
|
+
ShortAnswer: 'short_answer',
|
|
38
|
+
Matching: 'matching',
|
|
39
|
+
Essay: 'essay'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the LibraryQuizCriterion interface.
|
|
43
|
+
*/
|
|
44
|
+
function instanceOfLibraryQuizCriterion(value) {
|
|
45
|
+
if (!('priority' in value) || value['priority'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function LibraryQuizCriterionFromJSON(json) {
|
|
50
|
+
return LibraryQuizCriterionFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function LibraryQuizCriterionFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
58
|
+
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
59
|
+
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
60
|
+
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
61
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
62
|
+
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
63
|
+
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
64
|
+
'priority': json['priority'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function LibraryQuizCriterionToJSON(json) {
|
|
68
|
+
return LibraryQuizCriterionToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function LibraryQuizCriterionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': value['id'],
|
|
76
|
+
'topic': value['topic'],
|
|
77
|
+
'difficulty_level': value['difficultyLevel'],
|
|
78
|
+
'question_type': value['questionType'],
|
|
79
|
+
'tags': value['tags'],
|
|
80
|
+
'min_questions': value['minQuestions'],
|
|
81
|
+
'max_questions': value['maxQuestions'],
|
|
82
|
+
'priority': value['priority'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LibraryQuizQuestion
|
|
17
|
+
*/
|
|
18
|
+
export interface LibraryQuizQuestion {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof LibraryQuizQuestion
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof LibraryQuizQuestion
|
|
29
|
+
*/
|
|
30
|
+
questionId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof LibraryQuizQuestion
|
|
35
|
+
*/
|
|
36
|
+
questionGroupId?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Exact question version currently represented by this quiz selection
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof LibraryQuizQuestion
|
|
41
|
+
*/
|
|
42
|
+
effectiveQuestionId: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {RichTextDocument}
|
|
46
|
+
* @memberof LibraryQuizQuestion
|
|
47
|
+
*/
|
|
48
|
+
questionText: RichTextDocument;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {LibraryQuizQuestionQuestionTypeEnum}
|
|
52
|
+
* @memberof LibraryQuizQuestion
|
|
53
|
+
*/
|
|
54
|
+
questionType: LibraryQuizQuestionQuestionTypeEnum;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof LibraryQuizQuestion
|
|
59
|
+
*/
|
|
60
|
+
questionVersionNumber: number;
|
|
61
|
+
/**
|
|
62
|
+
* Optional human-readable identifier for the represented question version
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof LibraryQuizQuestion
|
|
65
|
+
*/
|
|
66
|
+
questionVersion?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof LibraryQuizQuestion
|
|
71
|
+
*/
|
|
72
|
+
displayOrder: number;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof LibraryQuizQuestion
|
|
77
|
+
*/
|
|
78
|
+
points: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof LibraryQuizQuestion
|
|
83
|
+
*/
|
|
84
|
+
versionLocked: boolean;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {{ [key: string]: any; }}
|
|
88
|
+
* @memberof LibraryQuizQuestion
|
|
89
|
+
*/
|
|
90
|
+
snapshot?: {
|
|
91
|
+
[key: string]: any;
|
|
92
|
+
} | null;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export declare const LibraryQuizQuestionQuestionTypeEnum: {
|
|
98
|
+
readonly SingleAnswer: "single_answer";
|
|
99
|
+
readonly MultipleAnswer: "multiple_answer";
|
|
100
|
+
readonly FillInBlank: "fill_in_blank";
|
|
101
|
+
readonly ShortAnswer: "short_answer";
|
|
102
|
+
readonly Matching: "matching";
|
|
103
|
+
readonly Essay: "essay";
|
|
104
|
+
};
|
|
105
|
+
export type LibraryQuizQuestionQuestionTypeEnum = typeof LibraryQuizQuestionQuestionTypeEnum[keyof typeof LibraryQuizQuestionQuestionTypeEnum];
|
|
106
|
+
/**
|
|
107
|
+
* Check if a given object implements the LibraryQuizQuestion interface.
|
|
108
|
+
*/
|
|
109
|
+
export declare function instanceOfLibraryQuizQuestion(value: object): value is LibraryQuizQuestion;
|
|
110
|
+
export declare function LibraryQuizQuestionFromJSON(json: any): LibraryQuizQuestion;
|
|
111
|
+
export declare function LibraryQuizQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizQuestion;
|
|
112
|
+
export declare function LibraryQuizQuestionToJSON(json: any): LibraryQuizQuestion;
|
|
113
|
+
export declare function LibraryQuizQuestionToJSONTyped(value?: LibraryQuizQuestion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,101 @@
|
|
|
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.LibraryQuizQuestionQuestionTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfLibraryQuizQuestion = instanceOfLibraryQuizQuestion;
|
|
18
|
+
exports.LibraryQuizQuestionFromJSON = LibraryQuizQuestionFromJSON;
|
|
19
|
+
exports.LibraryQuizQuestionFromJSONTyped = LibraryQuizQuestionFromJSONTyped;
|
|
20
|
+
exports.LibraryQuizQuestionToJSON = LibraryQuizQuestionToJSON;
|
|
21
|
+
exports.LibraryQuizQuestionToJSONTyped = LibraryQuizQuestionToJSONTyped;
|
|
22
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.LibraryQuizQuestionQuestionTypeEnum = {
|
|
27
|
+
SingleAnswer: 'single_answer',
|
|
28
|
+
MultipleAnswer: 'multiple_answer',
|
|
29
|
+
FillInBlank: 'fill_in_blank',
|
|
30
|
+
ShortAnswer: 'short_answer',
|
|
31
|
+
Matching: 'matching',
|
|
32
|
+
Essay: 'essay'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the LibraryQuizQuestion interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfLibraryQuizQuestion(value) {
|
|
38
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('effectiveQuestionId' in value) || value['effectiveQuestionId'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('questionText' in value) || value['questionText'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('questionVersionNumber' in value) || value['questionVersionNumber'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('points' in value) || value['points'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('versionLocked' in value) || value['versionLocked'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
function LibraryQuizQuestionFromJSON(json) {
|
|
59
|
+
return LibraryQuizQuestionFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function LibraryQuizQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': json['id'],
|
|
67
|
+
'questionId': json['question_id'],
|
|
68
|
+
'questionGroupId': json['question_group_id'] == null ? undefined : json['question_group_id'],
|
|
69
|
+
'effectiveQuestionId': json['effective_question_id'],
|
|
70
|
+
'questionText': (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['question_text']),
|
|
71
|
+
'questionType': json['question_type'],
|
|
72
|
+
'questionVersionNumber': json['question_version_number'],
|
|
73
|
+
'questionVersion': json['question_version'] == null ? undefined : json['question_version'],
|
|
74
|
+
'displayOrder': json['display_order'],
|
|
75
|
+
'points': json['points'],
|
|
76
|
+
'versionLocked': json['version_locked'],
|
|
77
|
+
'snapshot': json['snapshot'] == null ? undefined : json['snapshot'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function LibraryQuizQuestionToJSON(json) {
|
|
81
|
+
return LibraryQuizQuestionToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
function LibraryQuizQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
'id': value['id'],
|
|
89
|
+
'question_id': value['questionId'],
|
|
90
|
+
'question_group_id': value['questionGroupId'],
|
|
91
|
+
'effective_question_id': value['effectiveQuestionId'],
|
|
92
|
+
'question_text': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['questionText']),
|
|
93
|
+
'question_type': value['questionType'],
|
|
94
|
+
'question_version_number': value['questionVersionNumber'],
|
|
95
|
+
'question_version': value['questionVersion'],
|
|
96
|
+
'display_order': value['displayOrder'],
|
|
97
|
+
'points': value['points'],
|
|
98
|
+
'version_locked': value['versionLocked'],
|
|
99
|
+
'snapshot': value['snapshot'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 LibraryQuizQuestionInput
|
|
16
|
+
*/
|
|
17
|
+
export interface LibraryQuizQuestionInput {
|
|
18
|
+
/**
|
|
19
|
+
* External ID of the selected question version.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LibraryQuizQuestionInput
|
|
22
|
+
*/
|
|
23
|
+
questionId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof LibraryQuizQuestionInput
|
|
28
|
+
*/
|
|
29
|
+
displayOrder: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LibraryQuizQuestionInput
|
|
34
|
+
*/
|
|
35
|
+
points?: number;
|
|
36
|
+
/**
|
|
37
|
+
* When false, publication resolves the latest question in the same version group.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof LibraryQuizQuestionInput
|
|
40
|
+
*/
|
|
41
|
+
versionLocked?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the LibraryQuizQuestionInput interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfLibraryQuizQuestionInput(value: object): value is LibraryQuizQuestionInput;
|
|
47
|
+
export declare function LibraryQuizQuestionInputFromJSON(json: any): LibraryQuizQuestionInput;
|
|
48
|
+
export declare function LibraryQuizQuestionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizQuestionInput;
|
|
49
|
+
export declare function LibraryQuizQuestionInputToJSON(json: any): LibraryQuizQuestionInput;
|
|
50
|
+
export declare function LibraryQuizQuestionInputToJSONTyped(value?: LibraryQuizQuestionInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfLibraryQuizQuestionInput = instanceOfLibraryQuizQuestionInput;
|
|
17
|
+
exports.LibraryQuizQuestionInputFromJSON = LibraryQuizQuestionInputFromJSON;
|
|
18
|
+
exports.LibraryQuizQuestionInputFromJSONTyped = LibraryQuizQuestionInputFromJSONTyped;
|
|
19
|
+
exports.LibraryQuizQuestionInputToJSON = LibraryQuizQuestionInputToJSON;
|
|
20
|
+
exports.LibraryQuizQuestionInputToJSONTyped = LibraryQuizQuestionInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LibraryQuizQuestionInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLibraryQuizQuestionInput(value) {
|
|
25
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function LibraryQuizQuestionInputFromJSON(json) {
|
|
32
|
+
return LibraryQuizQuestionInputFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function LibraryQuizQuestionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'questionId': json['question_id'],
|
|
40
|
+
'displayOrder': json['display_order'],
|
|
41
|
+
'points': json['points'] == null ? undefined : json['points'],
|
|
42
|
+
'versionLocked': json['version_locked'] == null ? undefined : json['version_locked'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function LibraryQuizQuestionInputToJSON(json) {
|
|
46
|
+
return LibraryQuizQuestionInputToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function LibraryQuizQuestionInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'question_id': value['questionId'],
|
|
54
|
+
'display_order': value['displayOrder'],
|
|
55
|
+
'points': value['points'],
|
|
56
|
+
'version_locked': value['versionLocked'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LibraryQuizSessionAnswerChoice
|
|
17
|
+
*/
|
|
18
|
+
export interface LibraryQuizSessionAnswerChoice {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof LibraryQuizSessionAnswerChoice
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof LibraryQuizSessionAnswerChoice
|
|
29
|
+
*/
|
|
30
|
+
text: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RichTextDocument}
|
|
34
|
+
* @memberof LibraryQuizSessionAnswerChoice
|
|
35
|
+
*/
|
|
36
|
+
textRich?: RichTextDocument | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof LibraryQuizSessionAnswerChoice
|
|
41
|
+
*/
|
|
42
|
+
displayOrder: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the LibraryQuizSessionAnswerChoice interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfLibraryQuizSessionAnswerChoice(value: object): value is LibraryQuizSessionAnswerChoice;
|
|
48
|
+
export declare function LibraryQuizSessionAnswerChoiceFromJSON(json: any): LibraryQuizSessionAnswerChoice;
|
|
49
|
+
export declare function LibraryQuizSessionAnswerChoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryQuizSessionAnswerChoice;
|
|
50
|
+
export declare function LibraryQuizSessionAnswerChoiceToJSON(json: any): LibraryQuizSessionAnswerChoice;
|
|
51
|
+
export declare function LibraryQuizSessionAnswerChoiceToJSONTyped(value?: LibraryQuizSessionAnswerChoice | 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.instanceOfLibraryQuizSessionAnswerChoice = instanceOfLibraryQuizSessionAnswerChoice;
|
|
17
|
+
exports.LibraryQuizSessionAnswerChoiceFromJSON = LibraryQuizSessionAnswerChoiceFromJSON;
|
|
18
|
+
exports.LibraryQuizSessionAnswerChoiceFromJSONTyped = LibraryQuizSessionAnswerChoiceFromJSONTyped;
|
|
19
|
+
exports.LibraryQuizSessionAnswerChoiceToJSON = LibraryQuizSessionAnswerChoiceToJSON;
|
|
20
|
+
exports.LibraryQuizSessionAnswerChoiceToJSONTyped = LibraryQuizSessionAnswerChoiceToJSONTyped;
|
|
21
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LibraryQuizSessionAnswerChoice interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLibraryQuizSessionAnswerChoice(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function LibraryQuizSessionAnswerChoiceFromJSON(json) {
|
|
35
|
+
return LibraryQuizSessionAnswerChoiceFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function LibraryQuizSessionAnswerChoiceFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'text': json['text'],
|
|
44
|
+
'textRich': json['text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['text_rich']),
|
|
45
|
+
'displayOrder': json['display_order'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function LibraryQuizSessionAnswerChoiceToJSON(json) {
|
|
49
|
+
return LibraryQuizSessionAnswerChoiceToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function LibraryQuizSessionAnswerChoiceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': value['id'],
|
|
57
|
+
'text': value['text'],
|
|
58
|
+
'text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['textRich']),
|
|
59
|
+
'display_order': value['displayOrder'],
|
|
60
|
+
};
|
|
61
|
+
}
|