@easyedu/js-lsm-api 1.108.0 → 1.110.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 +16 -0
- package/README.md +19 -2
- package/dist/apis/ContentLibraryApi.d.ts +180 -0
- package/dist/apis/ContentLibraryApi.js +425 -1
- package/dist/apis/ContentLibraryQuizApi.d.ts +1 -0
- package/dist/apis/ContentLibraryQuizApi.js +3 -0
- package/dist/apis/CourseApi.d.ts +2 -2
- package/dist/apis/CourseApi.js +2 -2
- package/dist/apis/QuestionApi.d.ts +1 -12
- package/dist/apis/QuestionApi.js +3 -17
- package/dist/esm/apis/ContentLibraryApi.d.ts +180 -0
- package/dist/esm/apis/ContentLibraryApi.js +424 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +1 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +3 -0
- package/dist/esm/apis/CourseApi.d.ts +2 -2
- package/dist/esm/apis/CourseApi.js +2 -2
- package/dist/esm/apis/QuestionApi.d.ts +1 -12
- package/dist/esm/apis/QuestionApi.js +2 -16
- package/dist/esm/models/ContentLibraryTag.d.ts +110 -0
- package/dist/esm/models/ContentLibraryTag.js +89 -0
- package/dist/esm/models/ContentLibraryTagItem.d.ts +85 -0
- package/dist/esm/models/ContentLibraryTagItem.js +77 -0
- package/dist/esm/models/CourseShareAcceptError.d.ts +54 -0
- package/dist/esm/models/CourseShareAcceptError.js +62 -0
- package/dist/esm/models/GetContentLibraryTagItemList.d.ts +57 -0
- package/dist/esm/models/GetContentLibraryTagItemList.js +60 -0
- package/dist/esm/models/GetContentLibraryTagList.d.ts +57 -0
- package/dist/esm/models/GetContentLibraryTagList.js +60 -0
- package/dist/esm/models/GetLibraryQuiz.d.ts +7 -0
- package/dist/esm/models/GetLibraryQuiz.js +5 -0
- package/dist/esm/models/GetQuestion.d.ts +4 -24
- package/dist/esm/models/GetQuestion.js +3 -18
- package/dist/esm/models/GetQuestionListFilters.d.ts +3 -24
- package/dist/esm/models/GetQuestionListFilters.js +2 -14
- package/dist/esm/models/GetResource.d.ts +7 -0
- package/dist/esm/models/GetResource.js +5 -0
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -21
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -16
- package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -21
- package/dist/esm/models/LibraryQuizCriterion.js +0 -12
- package/dist/esm/models/PostContentLibraryTag.d.ts +32 -0
- package/dist/esm/models/PostContentLibraryTag.js +43 -0
- package/dist/esm/models/PostContentLibraryTagMerge.d.ts +32 -0
- package/dist/esm/models/PostContentLibraryTagMerge.js +43 -0
- package/dist/esm/models/PostLibraryQuiz.d.ts +6 -0
- package/dist/esm/models/PostLibraryQuiz.js +2 -0
- package/dist/esm/models/PostQuestion.d.ts +0 -21
- package/dist/esm/models/PostQuestion.js +0 -16
- package/dist/esm/models/PostResource.d.ts +6 -0
- package/dist/esm/models/PostResource.js +2 -0
- package/dist/esm/models/PutContentLibraryTag.d.ts +32 -0
- package/dist/esm/models/PutContentLibraryTag.js +43 -0
- package/dist/esm/models/PutLibraryQuiz.d.ts +6 -0
- package/dist/esm/models/PutLibraryQuiz.js +2 -0
- package/dist/esm/models/PutQuestion.d.ts +0 -21
- package/dist/esm/models/PutQuestion.js +0 -12
- package/dist/esm/models/PutResource.d.ts +6 -0
- package/dist/esm/models/PutResource.js +2 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/ContentLibraryTag.d.ts +110 -0
- package/dist/models/ContentLibraryTag.js +96 -0
- package/dist/models/ContentLibraryTagItem.d.ts +85 -0
- package/dist/models/ContentLibraryTagItem.js +85 -0
- package/dist/models/CourseShareAcceptError.d.ts +54 -0
- package/dist/models/CourseShareAcceptError.js +70 -0
- package/dist/models/GetContentLibraryTagItemList.d.ts +57 -0
- package/dist/models/GetContentLibraryTagItemList.js +67 -0
- package/dist/models/GetContentLibraryTagList.d.ts +57 -0
- package/dist/models/GetContentLibraryTagList.js +67 -0
- package/dist/models/GetLibraryQuiz.d.ts +7 -0
- package/dist/models/GetLibraryQuiz.js +5 -0
- package/dist/models/GetQuestion.d.ts +4 -24
- package/dist/models/GetQuestion.js +4 -19
- package/dist/models/GetQuestionListFilters.d.ts +3 -24
- package/dist/models/GetQuestionListFilters.js +3 -15
- package/dist/models/GetResource.d.ts +7 -0
- package/dist/models/GetResource.js +5 -0
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -21
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +1 -17
- package/dist/models/LibraryQuizCriterion.d.ts +0 -21
- package/dist/models/LibraryQuizCriterion.js +1 -13
- package/dist/models/PostContentLibraryTag.d.ts +32 -0
- package/dist/models/PostContentLibraryTag.js +50 -0
- package/dist/models/PostContentLibraryTagMerge.d.ts +32 -0
- package/dist/models/PostContentLibraryTagMerge.js +50 -0
- package/dist/models/PostLibraryQuiz.d.ts +6 -0
- package/dist/models/PostLibraryQuiz.js +2 -0
- package/dist/models/PostQuestion.d.ts +0 -21
- package/dist/models/PostQuestion.js +1 -17
- package/dist/models/PostResource.d.ts +6 -0
- package/dist/models/PostResource.js +2 -0
- package/dist/models/PutContentLibraryTag.d.ts +32 -0
- package/dist/models/PutContentLibraryTag.js +50 -0
- package/dist/models/PutLibraryQuiz.d.ts +6 -0
- package/dist/models/PutLibraryQuiz.js +2 -0
- package/dist/models/PutQuestion.d.ts +0 -21
- package/dist/models/PutQuestion.js +1 -13
- package/dist/models/PutResource.d.ts +6 -0
- package/dist/models/PutResource.js +2 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/ContentLibraryApi.md +732 -90
- package/docs/ContentLibraryQuizApi.md +4 -1
- package/docs/ContentLibraryTag.md +60 -0
- package/docs/ContentLibraryTagItem.md +48 -0
- package/docs/CourseApi.md +1 -1
- package/docs/CourseShareAcceptError.md +37 -0
- package/docs/CourseShareApi.md +9 -2
- package/docs/GetContentLibraryTagItemList.md +42 -0
- package/docs/GetContentLibraryTagList.md +42 -0
- package/docs/GetLibraryQuiz.md +2 -0
- package/docs/GetQuestion.md +1 -5
- package/docs/GetQuestionListFilters.md +2 -6
- package/docs/GetResource.md +2 -0
- package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -4
- package/docs/LibraryQuizCriterion.md +0 -4
- package/docs/PostContentLibraryTag.md +34 -0
- package/docs/PostContentLibraryTagMerge.md +34 -0
- package/docs/PostLibraryQuiz.md +2 -0
- package/docs/PostQuestion.md +0 -4
- package/docs/PostResource.md +2 -0
- package/docs/PutContentLibraryTag.md +34 -0
- package/docs/PutLibraryQuiz.md +2 -0
- package/docs/PutQuestion.md +0 -4
- package/docs/PutResource.md +2 -0
- package/docs/QuestionApi.md +4 -10
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +576 -0
- package/src/apis/ContentLibraryQuizApi.ts +5 -0
- package/src/apis/CourseApi.ts +2 -2
- package/src/apis/CourseShareApi.ts +5 -0
- package/src/apis/QuestionApi.ts +3 -22
- package/src/models/ContentLibraryTag.ts +180 -0
- package/src/models/ContentLibraryTagItem.ts +154 -0
- package/src/models/CourseShareAcceptError.ts +94 -0
- package/src/models/GetContentLibraryTagItemList.ts +110 -0
- package/src/models/GetContentLibraryTagList.ts +110 -0
- package/src/models/GetLibraryQuiz.ts +16 -0
- package/src/models/GetQuestion.ts +12 -33
- package/src/models/GetQuestionListFilters.ts +5 -31
- package/src/models/GetResource.ts +16 -0
- package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -28
- package/src/models/LibraryQuizCriterion.ts +0 -26
- package/src/models/PostContentLibraryTag.ts +66 -0
- package/src/models/PostContentLibraryTagMerge.ts +66 -0
- package/src/models/PostLibraryQuiz.ts +8 -0
- package/src/models/PostQuestion.ts +0 -28
- package/src/models/PostResource.ts +8 -0
- package/src/models/PutContentLibraryTag.ts +66 -0
- package/src/models/PutLibraryQuiz.ts +8 -0
- package/src/models/PutQuestion.ts +0 -26
- package/src/models/PutResource.ts +8 -0
- package/src/models/index.ts +8 -0
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.GetQuestionQuestionTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfGetQuestion = instanceOfGetQuestion;
|
|
18
18
|
exports.GetQuestionFromJSON = GetQuestionFromJSON;
|
|
19
19
|
exports.GetQuestionFromJSONTyped = GetQuestionFromJSONTyped;
|
|
20
20
|
exports.GetQuestionToJSON = GetQuestionToJSON;
|
|
21
21
|
exports.GetQuestionToJSONTyped = GetQuestionToJSONTyped;
|
|
22
22
|
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
|
+
const ContentLibraryTag_1 = require("./ContentLibraryTag");
|
|
23
24
|
const GetQuestionAnswerChoicesInner_1 = require("./GetQuestionAnswerChoicesInner");
|
|
24
25
|
const GetQuestionQuizzesInner_1 = require("./GetQuestionQuizzesInner");
|
|
25
26
|
/**
|
|
@@ -33,14 +34,6 @@ exports.GetQuestionQuestionTypeEnum = {
|
|
|
33
34
|
Matching: 'matching',
|
|
34
35
|
Essay: 'essay'
|
|
35
36
|
};
|
|
36
|
-
/**
|
|
37
|
-
* @export
|
|
38
|
-
*/
|
|
39
|
-
exports.GetQuestionDifficultyLevelEnum = {
|
|
40
|
-
Beginner: 'beginner',
|
|
41
|
-
Intermediate: 'intermediate',
|
|
42
|
-
Advanced: 'advanced'
|
|
43
|
-
};
|
|
44
37
|
/**
|
|
45
38
|
* Check if a given object implements the GetQuestion interface.
|
|
46
39
|
*/
|
|
@@ -51,10 +44,6 @@ function instanceOfGetQuestion(value) {
|
|
|
51
44
|
return false;
|
|
52
45
|
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
53
46
|
return false;
|
|
54
|
-
if (!('topic' in value) || value['topic'] === undefined)
|
|
55
|
-
return false;
|
|
56
|
-
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
57
|
-
return false;
|
|
58
47
|
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
59
48
|
return false;
|
|
60
49
|
if (!('createdDate' in value) || value['createdDate'] === undefined)
|
|
@@ -77,9 +66,7 @@ function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
66
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuestionAnswerChoicesInner_1.GetQuestionAnswerChoicesInnerFromJSON)),
|
|
78
67
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
79
68
|
'explanation': json['explanation'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['explanation']),
|
|
80
|
-
'
|
|
81
|
-
'difficultyLevel': json['difficulty_level'],
|
|
82
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
69
|
+
'tags': json['tags'] == null ? undefined : (json['tags'].map(ContentLibraryTag_1.ContentLibraryTagFromJSON)),
|
|
83
70
|
'version': json['version'] == null ? undefined : json['version'],
|
|
84
71
|
'versionNumber': json['version_number'],
|
|
85
72
|
'createdDate': (new Date(json['created_date'])),
|
|
@@ -102,9 +89,7 @@ function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
102
89
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuestionAnswerChoicesInner_1.GetQuestionAnswerChoicesInnerToJSON)),
|
|
103
90
|
'correct_answer': value['correctAnswer'],
|
|
104
91
|
'explanation': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['explanation']),
|
|
105
|
-
'
|
|
106
|
-
'difficulty_level': value['difficultyLevel'],
|
|
107
|
-
'tags': value['tags'],
|
|
92
|
+
'tags': value['tags'] == null ? undefined : (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
|
|
108
93
|
'version': value['version'],
|
|
109
94
|
};
|
|
110
95
|
}
|
|
@@ -15,12 +15,6 @@
|
|
|
15
15
|
* @interface GetQuestionListFilters
|
|
16
16
|
*/
|
|
17
17
|
export interface GetQuestionListFilters {
|
|
18
|
-
/**
|
|
19
|
-
* Filter by topic
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof GetQuestionListFilters
|
|
22
|
-
*/
|
|
23
|
-
topic?: string;
|
|
24
18
|
/**
|
|
25
19
|
* Filter by question type
|
|
26
20
|
* @type {GetQuestionListFiltersQuestionTypeEnum}
|
|
@@ -28,17 +22,11 @@ export interface GetQuestionListFilters {
|
|
|
28
22
|
*/
|
|
29
23
|
questionType?: GetQuestionListFiltersQuestionTypeEnum;
|
|
30
24
|
/**
|
|
31
|
-
* Filter by
|
|
32
|
-
* @type {
|
|
33
|
-
* @memberof GetQuestionListFilters
|
|
34
|
-
*/
|
|
35
|
-
difficultyLevel?: GetQuestionListFiltersDifficultyLevelEnum;
|
|
36
|
-
/**
|
|
37
|
-
* Filter by tags/keywords
|
|
38
|
-
* @type {Array<string>}
|
|
25
|
+
* Filter by a shared tag
|
|
26
|
+
* @type {string}
|
|
39
27
|
* @memberof GetQuestionListFilters
|
|
40
28
|
*/
|
|
41
|
-
|
|
29
|
+
tagId?: string;
|
|
42
30
|
/**
|
|
43
31
|
* Search in question text
|
|
44
32
|
* @type {string}
|
|
@@ -70,15 +58,6 @@ export declare const GetQuestionListFiltersQuestionTypeEnum: {
|
|
|
70
58
|
readonly Essay: "essay";
|
|
71
59
|
};
|
|
72
60
|
export type GetQuestionListFiltersQuestionTypeEnum = typeof GetQuestionListFiltersQuestionTypeEnum[keyof typeof GetQuestionListFiltersQuestionTypeEnum];
|
|
73
|
-
/**
|
|
74
|
-
* @export
|
|
75
|
-
*/
|
|
76
|
-
export declare const GetQuestionListFiltersDifficultyLevelEnum: {
|
|
77
|
-
readonly Beginner: "beginner";
|
|
78
|
-
readonly Intermediate: "intermediate";
|
|
79
|
-
readonly Advanced: "advanced";
|
|
80
|
-
};
|
|
81
|
-
export type GetQuestionListFiltersDifficultyLevelEnum = typeof GetQuestionListFiltersDifficultyLevelEnum[keyof typeof GetQuestionListFiltersDifficultyLevelEnum];
|
|
82
61
|
/**
|
|
83
62
|
* Check if a given object implements the GetQuestionListFilters interface.
|
|
84
63
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.GetQuestionListFiltersQuestionTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfGetQuestionListFilters = instanceOfGetQuestionListFilters;
|
|
18
18
|
exports.GetQuestionListFiltersFromJSON = GetQuestionListFiltersFromJSON;
|
|
19
19
|
exports.GetQuestionListFiltersFromJSONTyped = GetQuestionListFiltersFromJSONTyped;
|
|
@@ -30,14 +30,6 @@ exports.GetQuestionListFiltersQuestionTypeEnum = {
|
|
|
30
30
|
Matching: 'matching',
|
|
31
31
|
Essay: 'essay'
|
|
32
32
|
};
|
|
33
|
-
/**
|
|
34
|
-
* @export
|
|
35
|
-
*/
|
|
36
|
-
exports.GetQuestionListFiltersDifficultyLevelEnum = {
|
|
37
|
-
Beginner: 'beginner',
|
|
38
|
-
Intermediate: 'intermediate',
|
|
39
|
-
Advanced: 'advanced'
|
|
40
|
-
};
|
|
41
33
|
/**
|
|
42
34
|
* Check if a given object implements the GetQuestionListFilters interface.
|
|
43
35
|
*/
|
|
@@ -52,10 +44,8 @@ function GetQuestionListFiltersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
44
|
return json;
|
|
53
45
|
}
|
|
54
46
|
return {
|
|
55
|
-
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
56
47
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
57
|
-
'
|
|
58
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
48
|
+
'tagId': json['tag_id'] == null ? undefined : json['tag_id'],
|
|
59
49
|
'search': json['search'] == null ? undefined : json['search'],
|
|
60
50
|
'createdAfter': json['created_after'] == null ? undefined : (new Date(json['created_after'])),
|
|
61
51
|
'createdBefore': json['created_before'] == null ? undefined : (new Date(json['created_before'])),
|
|
@@ -69,10 +59,8 @@ function GetQuestionListFiltersToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
59
|
return value;
|
|
70
60
|
}
|
|
71
61
|
return {
|
|
72
|
-
'topic': value['topic'],
|
|
73
62
|
'question_type': value['questionType'],
|
|
74
|
-
'
|
|
75
|
-
'tags': value['tags'],
|
|
63
|
+
'tag_id': value['tagId'],
|
|
76
64
|
'search': value['search'],
|
|
77
65
|
'created_after': value['createdAfter'] == null ? value['createdAfter'] : value['createdAfter'].toISOString().substring(0, 10),
|
|
78
66
|
'created_before': value['createdBefore'] == null ? value['createdBefore'] : value['createdBefore'].toISOString().substring(0, 10),
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GetContentLibraryVersion } from './GetContentLibraryVersion';
|
|
13
|
+
import type { ContentLibraryTag } from './ContentLibraryTag';
|
|
13
14
|
import type { ResourceType } from './ResourceType';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -47,6 +48,12 @@ export interface GetResource {
|
|
|
47
48
|
* @memberof GetResource
|
|
48
49
|
*/
|
|
49
50
|
ownerId: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<ContentLibraryTag>}
|
|
54
|
+
* @memberof GetResource
|
|
55
|
+
*/
|
|
56
|
+
tags: Array<ContentLibraryTag>;
|
|
50
57
|
/**
|
|
51
58
|
*
|
|
52
59
|
* @type {GetContentLibraryVersion}
|
|
@@ -19,6 +19,7 @@ exports.GetResourceFromJSONTyped = GetResourceFromJSONTyped;
|
|
|
19
19
|
exports.GetResourceToJSON = GetResourceToJSON;
|
|
20
20
|
exports.GetResourceToJSONTyped = GetResourceToJSONTyped;
|
|
21
21
|
const GetContentLibraryVersion_1 = require("./GetContentLibraryVersion");
|
|
22
|
+
const ContentLibraryTag_1 = require("./ContentLibraryTag");
|
|
22
23
|
const ResourceType_1 = require("./ResourceType");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the GetResource interface.
|
|
@@ -34,6 +35,8 @@ function instanceOfGetResource(value) {
|
|
|
34
35
|
return false;
|
|
35
36
|
if (!('ownerId' in value) || value['ownerId'] === undefined)
|
|
36
37
|
return false;
|
|
38
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
39
|
+
return false;
|
|
37
40
|
if (!('versions' in value) || value['versions'] === undefined)
|
|
38
41
|
return false;
|
|
39
42
|
if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined)
|
|
@@ -63,6 +66,7 @@ function GetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
66
|
'description': json['description'],
|
|
64
67
|
'resourceType': (0, ResourceType_1.ResourceTypeFromJSON)(json['resource_type']),
|
|
65
68
|
'ownerId': json['owner_id'],
|
|
69
|
+
'tags': (json['tags'].map(ContentLibraryTag_1.ContentLibraryTagFromJSON)),
|
|
66
70
|
'latestPublishedVersion': json['latest_published_version'] == null ? undefined : (0, GetContentLibraryVersion_1.GetContentLibraryVersionFromJSON)(json['latest_published_version']),
|
|
67
71
|
'draftVersion': json['draft_version'] == null ? undefined : (0, GetContentLibraryVersion_1.GetContentLibraryVersionFromJSON)(json['draft_version']),
|
|
68
72
|
'versions': (json['versions'].map(GetContentLibraryVersion_1.GetContentLibraryVersionFromJSON)),
|
|
@@ -88,6 +92,7 @@ function GetResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
88
92
|
'description': value['description'],
|
|
89
93
|
'resource_type': (0, ResourceType_1.ResourceTypeToJSON)(value['resourceType']),
|
|
90
94
|
'owner_id': value['ownerId'],
|
|
95
|
+
'tags': (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
|
|
91
96
|
'latest_published_version': (0, GetContentLibraryVersion_1.GetContentLibraryVersionToJSON)(value['latestPublishedVersion']),
|
|
92
97
|
'draft_version': (0, GetContentLibraryVersion_1.GetContentLibraryVersionToJSON)(value['draftVersion']),
|
|
93
98
|
'versions': (value['versions'].map(GetContentLibraryVersion_1.GetContentLibraryVersionToJSON)),
|
|
@@ -46,18 +46,6 @@ export interface LibraryQuizCriteriaPreviewQuestion {
|
|
|
46
46
|
* @memberof LibraryQuizCriteriaPreviewQuestion
|
|
47
47
|
*/
|
|
48
48
|
version?: string | null;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof LibraryQuizCriteriaPreviewQuestion
|
|
53
|
-
*/
|
|
54
|
-
topic: string;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum}
|
|
58
|
-
* @memberof LibraryQuizCriteriaPreviewQuestion
|
|
59
|
-
*/
|
|
60
|
-
difficultyLevel: LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum;
|
|
61
49
|
/**
|
|
62
50
|
*
|
|
63
51
|
* @type {Array<string>}
|
|
@@ -77,15 +65,6 @@ export declare const LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum: {
|
|
|
77
65
|
readonly Essay: "essay";
|
|
78
66
|
};
|
|
79
67
|
export type LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = typeof LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum[keyof typeof LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum];
|
|
80
|
-
/**
|
|
81
|
-
* @export
|
|
82
|
-
*/
|
|
83
|
-
export declare const LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum: {
|
|
84
|
-
readonly Beginner: "beginner";
|
|
85
|
-
readonly Intermediate: "intermediate";
|
|
86
|
-
readonly Advanced: "advanced";
|
|
87
|
-
};
|
|
88
|
-
export type LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum = typeof LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum[keyof typeof LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum];
|
|
89
68
|
/**
|
|
90
69
|
* Check if a given object implements the LibraryQuizCriteriaPreviewQuestion interface.
|
|
91
70
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfLibraryQuizCriteriaPreviewQuestion = instanceOfLibraryQuizCriteriaPreviewQuestion;
|
|
18
18
|
exports.LibraryQuizCriteriaPreviewQuestionFromJSON = LibraryQuizCriteriaPreviewQuestionFromJSON;
|
|
19
19
|
exports.LibraryQuizCriteriaPreviewQuestionFromJSONTyped = LibraryQuizCriteriaPreviewQuestionFromJSONTyped;
|
|
@@ -31,14 +31,6 @@ exports.LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = {
|
|
|
31
31
|
Matching: 'matching',
|
|
32
32
|
Essay: 'essay'
|
|
33
33
|
};
|
|
34
|
-
/**
|
|
35
|
-
* @export
|
|
36
|
-
*/
|
|
37
|
-
exports.LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum = {
|
|
38
|
-
Beginner: 'beginner',
|
|
39
|
-
Intermediate: 'intermediate',
|
|
40
|
-
Advanced: 'advanced'
|
|
41
|
-
};
|
|
42
34
|
/**
|
|
43
35
|
* Check if a given object implements the LibraryQuizCriteriaPreviewQuestion interface.
|
|
44
36
|
*/
|
|
@@ -51,10 +43,6 @@ function instanceOfLibraryQuizCriteriaPreviewQuestion(value) {
|
|
|
51
43
|
return false;
|
|
52
44
|
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
53
45
|
return false;
|
|
54
|
-
if (!('topic' in value) || value['topic'] === undefined)
|
|
55
|
-
return false;
|
|
56
|
-
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
57
|
-
return false;
|
|
58
46
|
if (!('tags' in value) || value['tags'] === undefined)
|
|
59
47
|
return false;
|
|
60
48
|
return true;
|
|
@@ -72,8 +60,6 @@ function LibraryQuizCriteriaPreviewQuestionFromJSONTyped(json, ignoreDiscriminat
|
|
|
72
60
|
'questionType': json['question_type'],
|
|
73
61
|
'versionNumber': json['version_number'],
|
|
74
62
|
'version': json['version'] == null ? undefined : json['version'],
|
|
75
|
-
'topic': json['topic'],
|
|
76
|
-
'difficultyLevel': json['difficulty_level'],
|
|
77
63
|
'tags': json['tags'],
|
|
78
64
|
};
|
|
79
65
|
}
|
|
@@ -90,8 +76,6 @@ function LibraryQuizCriteriaPreviewQuestionToJSONTyped(value, ignoreDiscriminato
|
|
|
90
76
|
'question_type': value['questionType'],
|
|
91
77
|
'version_number': value['versionNumber'],
|
|
92
78
|
'version': value['version'],
|
|
93
|
-
'topic': value['topic'],
|
|
94
|
-
'difficulty_level': value['difficultyLevel'],
|
|
95
79
|
'tags': value['tags'],
|
|
96
80
|
};
|
|
97
81
|
}
|
|
@@ -21,18 +21,6 @@ export interface LibraryQuizCriterion {
|
|
|
21
21
|
* @memberof LibraryQuizCriterion
|
|
22
22
|
*/
|
|
23
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
24
|
/**
|
|
37
25
|
*
|
|
38
26
|
* @type {LibraryQuizCriterionQuestionTypeEnum}
|
|
@@ -64,15 +52,6 @@ export interface LibraryQuizCriterion {
|
|
|
64
52
|
*/
|
|
65
53
|
priority: number;
|
|
66
54
|
}
|
|
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
55
|
/**
|
|
77
56
|
* @export
|
|
78
57
|
*/
|
|
@@ -13,20 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.LibraryQuizCriterionQuestionTypeEnum =
|
|
16
|
+
exports.LibraryQuizCriterionQuestionTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfLibraryQuizCriterion = instanceOfLibraryQuizCriterion;
|
|
18
18
|
exports.LibraryQuizCriterionFromJSON = LibraryQuizCriterionFromJSON;
|
|
19
19
|
exports.LibraryQuizCriterionFromJSONTyped = LibraryQuizCriterionFromJSONTyped;
|
|
20
20
|
exports.LibraryQuizCriterionToJSON = LibraryQuizCriterionToJSON;
|
|
21
21
|
exports.LibraryQuizCriterionToJSONTyped = LibraryQuizCriterionToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.LibraryQuizCriterionDifficultyLevelEnum = {
|
|
26
|
-
Beginner: 'beginner',
|
|
27
|
-
Intermediate: 'intermediate',
|
|
28
|
-
Advanced: 'advanced'
|
|
29
|
-
};
|
|
30
22
|
/**
|
|
31
23
|
* @export
|
|
32
24
|
*/
|
|
@@ -55,8 +47,6 @@ function LibraryQuizCriterionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
47
|
}
|
|
56
48
|
return {
|
|
57
49
|
'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
50
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
61
51
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
62
52
|
'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
|
|
@@ -73,8 +63,6 @@ function LibraryQuizCriterionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
73
63
|
}
|
|
74
64
|
return {
|
|
75
65
|
'id': value['id'],
|
|
76
|
-
'topic': value['topic'],
|
|
77
|
-
'difficulty_level': value['difficultyLevel'],
|
|
78
66
|
'question_type': value['questionType'],
|
|
79
67
|
'tags': value['tags'],
|
|
80
68
|
'min_questions': value['minQuestions'],
|
|
@@ -0,0 +1,32 @@
|
|
|
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 PostContentLibraryTag
|
|
16
|
+
*/
|
|
17
|
+
export interface PostContentLibraryTag {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostContentLibraryTag
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostContentLibraryTag interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostContentLibraryTag(value: object): value is PostContentLibraryTag;
|
|
29
|
+
export declare function PostContentLibraryTagFromJSON(json: any): PostContentLibraryTag;
|
|
30
|
+
export declare function PostContentLibraryTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostContentLibraryTag;
|
|
31
|
+
export declare function PostContentLibraryTagToJSON(json: any): PostContentLibraryTag;
|
|
32
|
+
export declare function PostContentLibraryTagToJSONTyped(value?: PostContentLibraryTag | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPostContentLibraryTag = instanceOfPostContentLibraryTag;
|
|
17
|
+
exports.PostContentLibraryTagFromJSON = PostContentLibraryTagFromJSON;
|
|
18
|
+
exports.PostContentLibraryTagFromJSONTyped = PostContentLibraryTagFromJSONTyped;
|
|
19
|
+
exports.PostContentLibraryTagToJSON = PostContentLibraryTagToJSON;
|
|
20
|
+
exports.PostContentLibraryTagToJSONTyped = PostContentLibraryTagToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostContentLibraryTag interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostContentLibraryTag(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PostContentLibraryTagFromJSON(json) {
|
|
30
|
+
return PostContentLibraryTagFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PostContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PostContentLibraryTagToJSON(json) {
|
|
41
|
+
return PostContentLibraryTagToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PostContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 PostContentLibraryTagMerge
|
|
16
|
+
*/
|
|
17
|
+
export interface PostContentLibraryTagMerge {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostContentLibraryTagMerge
|
|
22
|
+
*/
|
|
23
|
+
targetTagId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostContentLibraryTagMerge interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostContentLibraryTagMerge(value: object): value is PostContentLibraryTagMerge;
|
|
29
|
+
export declare function PostContentLibraryTagMergeFromJSON(json: any): PostContentLibraryTagMerge;
|
|
30
|
+
export declare function PostContentLibraryTagMergeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostContentLibraryTagMerge;
|
|
31
|
+
export declare function PostContentLibraryTagMergeToJSON(json: any): PostContentLibraryTagMerge;
|
|
32
|
+
export declare function PostContentLibraryTagMergeToJSONTyped(value?: PostContentLibraryTagMerge | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPostContentLibraryTagMerge = instanceOfPostContentLibraryTagMerge;
|
|
17
|
+
exports.PostContentLibraryTagMergeFromJSON = PostContentLibraryTagMergeFromJSON;
|
|
18
|
+
exports.PostContentLibraryTagMergeFromJSONTyped = PostContentLibraryTagMergeFromJSONTyped;
|
|
19
|
+
exports.PostContentLibraryTagMergeToJSON = PostContentLibraryTagMergeToJSON;
|
|
20
|
+
exports.PostContentLibraryTagMergeToJSONTyped = PostContentLibraryTagMergeToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostContentLibraryTagMerge interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostContentLibraryTagMerge(value) {
|
|
25
|
+
if (!('targetTagId' in value) || value['targetTagId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PostContentLibraryTagMergeFromJSON(json) {
|
|
30
|
+
return PostContentLibraryTagMergeFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PostContentLibraryTagMergeFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'targetTagId': json['target_tag_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PostContentLibraryTagMergeToJSON(json) {
|
|
41
|
+
return PostContentLibraryTagMergeToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PostContentLibraryTagMergeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'target_tag_id': value['targetTagId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -96,6 +96,12 @@ export interface PostLibraryQuiz {
|
|
|
96
96
|
settings?: {
|
|
97
97
|
[key: string]: any;
|
|
98
98
|
};
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {Set<string>}
|
|
102
|
+
* @memberof PostLibraryQuiz
|
|
103
|
+
*/
|
|
104
|
+
tags?: Set<string>;
|
|
99
105
|
}
|
|
100
106
|
/**
|
|
101
107
|
* Check if a given object implements the PostLibraryQuiz interface.
|
|
@@ -50,6 +50,7 @@ function PostLibraryQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'allowReview': json['allow_review'] == null ? undefined : json['allow_review'],
|
|
51
51
|
'requireAllQuestions': json['require_all_questions'] == null ? undefined : json['require_all_questions'],
|
|
52
52
|
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
53
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
function PostLibraryQuizToJSON(json) {
|
|
@@ -73,5 +74,6 @@ function PostLibraryQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
73
74
|
'allow_review': value['allowReview'],
|
|
74
75
|
'require_all_questions': value['requireAllQuestions'],
|
|
75
76
|
'settings': value['settings'],
|
|
77
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
76
78
|
};
|
|
77
79
|
}
|
|
@@ -47,18 +47,6 @@ export interface PostQuestion {
|
|
|
47
47
|
* @memberof PostQuestion
|
|
48
48
|
*/
|
|
49
49
|
explanation?: RichTextInput;
|
|
50
|
-
/**
|
|
51
|
-
* Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof PostQuestion
|
|
54
|
-
*/
|
|
55
|
-
topic: string;
|
|
56
|
-
/**
|
|
57
|
-
* Difficulty level of the question
|
|
58
|
-
* @type {PostQuestionDifficultyLevelEnum}
|
|
59
|
-
* @memberof PostQuestion
|
|
60
|
-
*/
|
|
61
|
-
difficultyLevel: PostQuestionDifficultyLevelEnum;
|
|
62
50
|
/**
|
|
63
51
|
* Keywords/tags for granular filtering
|
|
64
52
|
* @type {Array<string>}
|
|
@@ -84,15 +72,6 @@ export declare const PostQuestionQuestionTypeEnum: {
|
|
|
84
72
|
readonly Essay: "essay";
|
|
85
73
|
};
|
|
86
74
|
export type PostQuestionQuestionTypeEnum = typeof PostQuestionQuestionTypeEnum[keyof typeof PostQuestionQuestionTypeEnum];
|
|
87
|
-
/**
|
|
88
|
-
* @export
|
|
89
|
-
*/
|
|
90
|
-
export declare const PostQuestionDifficultyLevelEnum: {
|
|
91
|
-
readonly Beginner: "beginner";
|
|
92
|
-
readonly Intermediate: "intermediate";
|
|
93
|
-
readonly Advanced: "advanced";
|
|
94
|
-
};
|
|
95
|
-
export type PostQuestionDifficultyLevelEnum = typeof PostQuestionDifficultyLevelEnum[keyof typeof PostQuestionDifficultyLevelEnum];
|
|
96
75
|
/**
|
|
97
76
|
* Check if a given object implements the PostQuestion interface.
|
|
98
77
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.PostQuestionQuestionTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfPostQuestion = instanceOfPostQuestion;
|
|
18
18
|
exports.PostQuestionFromJSON = PostQuestionFromJSON;
|
|
19
19
|
exports.PostQuestionFromJSONTyped = PostQuestionFromJSONTyped;
|
|
@@ -32,14 +32,6 @@ exports.PostQuestionQuestionTypeEnum = {
|
|
|
32
32
|
Matching: 'matching',
|
|
33
33
|
Essay: 'essay'
|
|
34
34
|
};
|
|
35
|
-
/**
|
|
36
|
-
* @export
|
|
37
|
-
*/
|
|
38
|
-
exports.PostQuestionDifficultyLevelEnum = {
|
|
39
|
-
Beginner: 'beginner',
|
|
40
|
-
Intermediate: 'intermediate',
|
|
41
|
-
Advanced: 'advanced'
|
|
42
|
-
};
|
|
43
35
|
/**
|
|
44
36
|
* Check if a given object implements the PostQuestion interface.
|
|
45
37
|
*/
|
|
@@ -48,10 +40,6 @@ function instanceOfPostQuestion(value) {
|
|
|
48
40
|
return false;
|
|
49
41
|
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
50
42
|
return false;
|
|
51
|
-
if (!('topic' in value) || value['topic'] === undefined)
|
|
52
|
-
return false;
|
|
53
|
-
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
54
|
-
return false;
|
|
55
43
|
return true;
|
|
56
44
|
}
|
|
57
45
|
function PostQuestionFromJSON(json) {
|
|
@@ -67,8 +55,6 @@ function PostQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
55
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PostQuestionAnswerChoicesInner_1.PostQuestionAnswerChoicesInnerFromJSON)),
|
|
68
56
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
69
57
|
'explanation': json['explanation'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['explanation']),
|
|
70
|
-
'topic': json['topic'],
|
|
71
|
-
'difficultyLevel': json['difficulty_level'],
|
|
72
58
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
73
59
|
'version': json['version'] == null ? undefined : json['version'],
|
|
74
60
|
};
|
|
@@ -86,8 +72,6 @@ function PostQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
72
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PostQuestionAnswerChoicesInner_1.PostQuestionAnswerChoicesInnerToJSON)),
|
|
87
73
|
'correct_answer': value['correctAnswer'],
|
|
88
74
|
'explanation': (0, RichTextInput_1.RichTextInputToJSON)(value['explanation']),
|
|
89
|
-
'topic': value['topic'],
|
|
90
|
-
'difficulty_level': value['difficultyLevel'],
|
|
91
75
|
'tags': value['tags'],
|
|
92
76
|
'version': value['version'],
|
|
93
77
|
};
|