@easyedu/js-lsm-api 1.108.0 → 1.109.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 +179 -0
- package/dist/apis/ContentLibraryApi.js +424 -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 +0 -1
- package/dist/apis/QuestionApi.js +0 -3
- package/dist/esm/apis/ContentLibraryApi.d.ts +179 -0
- package/dist/esm/apis/ContentLibraryApi.js +423 -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 +0 -1
- package/dist/esm/apis/QuestionApi.js +0 -3
- package/dist/esm/models/ContentLibraryTag.d.ts +104 -0
- package/dist/esm/models/ContentLibraryTag.js +85 -0
- package/dist/esm/models/ContentLibraryTagItem.d.ts +84 -0
- package/dist/esm/models/ContentLibraryTagItem.js +76 -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 +0 -6
- package/dist/esm/models/GetQuestion.js +0 -4
- package/dist/esm/models/GetQuestionListFilters.d.ts +0 -6
- package/dist/esm/models/GetQuestionListFilters.js +0 -2
- 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 -6
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
- package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -6
- package/dist/esm/models/LibraryQuizCriterion.js +0 -2
- 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 -6
- package/dist/esm/models/PostQuestion.js +0 -4
- 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 -6
- package/dist/esm/models/PutQuestion.js +0 -2
- 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 +104 -0
- package/dist/models/ContentLibraryTag.js +92 -0
- package/dist/models/ContentLibraryTagItem.d.ts +84 -0
- package/dist/models/ContentLibraryTagItem.js +84 -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 +0 -6
- package/dist/models/GetQuestion.js +0 -4
- package/dist/models/GetQuestionListFilters.d.ts +0 -6
- package/dist/models/GetQuestionListFilters.js +0 -2
- package/dist/models/GetResource.d.ts +7 -0
- package/dist/models/GetResource.js +5 -0
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
- package/dist/models/LibraryQuizCriterion.d.ts +0 -6
- package/dist/models/LibraryQuizCriterion.js +0 -2
- 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 -6
- package/dist/models/PostQuestion.js +0 -4
- 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 -6
- package/dist/models/PutQuestion.js +0 -2
- 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 +58 -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 +0 -2
- package/docs/GetQuestionListFilters.md +0 -2
- package/docs/GetResource.md +2 -0
- package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -2
- package/docs/LibraryQuizCriterion.md +0 -2
- package/docs/PostContentLibraryTag.md +34 -0
- package/docs/PostContentLibraryTagMerge.md +34 -0
- package/docs/PostLibraryQuiz.md +2 -0
- package/docs/PostQuestion.md +0 -2
- package/docs/PostResource.md +2 -0
- package/docs/PutContentLibraryTag.md +34 -0
- package/docs/PutLibraryQuiz.md +2 -0
- package/docs/PutQuestion.md +0 -2
- package/docs/PutResource.md +2 -0
- package/docs/QuestionApi.md +1 -4
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +575 -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 +0 -5
- package/src/models/ContentLibraryTag.ts +171 -0
- package/src/models/ContentLibraryTagItem.ts +153 -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 +0 -9
- package/src/models/GetQuestionListFilters.ts +0 -8
- package/src/models/GetResource.ts +16 -0
- package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -9
- package/src/models/LibraryQuizCriterion.ts +0 -8
- 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 -9
- 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 -8
- package/src/models/PutResource.ts +8 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,57 @@
|
|
|
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 { ContentLibraryTag } from './ContentLibraryTag';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetContentLibraryTagList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetContentLibraryTagList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetContentLibraryTagList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetContentLibraryTagList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetContentLibraryTagList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetContentLibraryTagList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<ContentLibraryTag>}
|
|
46
|
+
* @memberof GetContentLibraryTagList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<ContentLibraryTag>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetContentLibraryTagList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetContentLibraryTagList(value: object): value is GetContentLibraryTagList;
|
|
54
|
+
export declare function GetContentLibraryTagListFromJSON(json: any): GetContentLibraryTagList;
|
|
55
|
+
export declare function GetContentLibraryTagListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentLibraryTagList;
|
|
56
|
+
export declare function GetContentLibraryTagListToJSON(json: any): GetContentLibraryTagList;
|
|
57
|
+
export declare function GetContentLibraryTagListToJSONTyped(value?: GetContentLibraryTagList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfGetContentLibraryTagList = instanceOfGetContentLibraryTagList;
|
|
17
|
+
exports.GetContentLibraryTagListFromJSON = GetContentLibraryTagListFromJSON;
|
|
18
|
+
exports.GetContentLibraryTagListFromJSONTyped = GetContentLibraryTagListFromJSONTyped;
|
|
19
|
+
exports.GetContentLibraryTagListToJSON = GetContentLibraryTagListToJSON;
|
|
20
|
+
exports.GetContentLibraryTagListToJSONTyped = GetContentLibraryTagListToJSONTyped;
|
|
21
|
+
const ContentLibraryTag_1 = require("./ContentLibraryTag");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetContentLibraryTagList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetContentLibraryTagList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetContentLibraryTagListFromJSON(json) {
|
|
39
|
+
return GetContentLibraryTagListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetContentLibraryTagListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['pageSize'],
|
|
48
|
+
'totalPages': json['totalPages'],
|
|
49
|
+
'totalItems': json['totalItems'],
|
|
50
|
+
'items': (json['items'].map(ContentLibraryTag_1.ContentLibraryTagFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetContentLibraryTagListToJSON(json) {
|
|
54
|
+
return GetContentLibraryTagListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetContentLibraryTagListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'pageSize': value['pageSize'],
|
|
63
|
+
'totalPages': value['totalPages'],
|
|
64
|
+
'totalItems': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ContentLibraryTag } from './ContentLibraryTag';
|
|
12
13
|
import type { GetLibraryQuizVersion } from './GetLibraryQuizVersion';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -46,6 +47,12 @@ export interface GetLibraryQuiz {
|
|
|
46
47
|
* @memberof GetLibraryQuiz
|
|
47
48
|
*/
|
|
48
49
|
ownerId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<ContentLibraryTag>}
|
|
53
|
+
* @memberof GetLibraryQuiz
|
|
54
|
+
*/
|
|
55
|
+
tags: Array<ContentLibraryTag>;
|
|
49
56
|
/**
|
|
50
57
|
*
|
|
51
58
|
* @type {GetLibraryQuizVersion}
|
|
@@ -19,6 +19,7 @@ exports.GetLibraryQuizFromJSON = GetLibraryQuizFromJSON;
|
|
|
19
19
|
exports.GetLibraryQuizFromJSONTyped = GetLibraryQuizFromJSONTyped;
|
|
20
20
|
exports.GetLibraryQuizToJSON = GetLibraryQuizToJSON;
|
|
21
21
|
exports.GetLibraryQuizToJSONTyped = GetLibraryQuizToJSONTyped;
|
|
22
|
+
const ContentLibraryTag_1 = require("./ContentLibraryTag");
|
|
22
23
|
const GetLibraryQuizVersion_1 = require("./GetLibraryQuizVersion");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
@@ -40,6 +41,8 @@ function instanceOfGetLibraryQuiz(value) {
|
|
|
40
41
|
return false;
|
|
41
42
|
if (!('ownerId' in value) || value['ownerId'] === undefined)
|
|
42
43
|
return false;
|
|
44
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
45
|
+
return false;
|
|
43
46
|
if (!('versions' in value) || value['versions'] === undefined)
|
|
44
47
|
return false;
|
|
45
48
|
if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined)
|
|
@@ -69,6 +72,7 @@ function GetLibraryQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
72
|
'name': json['name'],
|
|
70
73
|
'description': json['description'],
|
|
71
74
|
'ownerId': json['owner_id'],
|
|
75
|
+
'tags': (json['tags'].map(ContentLibraryTag_1.ContentLibraryTagFromJSON)),
|
|
72
76
|
'latestPublishedVersion': json['latest_published_version'] == null ? undefined : (0, GetLibraryQuizVersion_1.GetLibraryQuizVersionFromJSON)(json['latest_published_version']),
|
|
73
77
|
'draftVersion': json['draft_version'] == null ? undefined : (0, GetLibraryQuizVersion_1.GetLibraryQuizVersionFromJSON)(json['draft_version']),
|
|
74
78
|
'versions': (json['versions'].map(GetLibraryQuizVersion_1.GetLibraryQuizVersionFromJSON)),
|
|
@@ -94,6 +98,7 @@ function GetLibraryQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
94
98
|
'name': value['name'],
|
|
95
99
|
'description': value['description'],
|
|
96
100
|
'owner_id': value['ownerId'],
|
|
101
|
+
'tags': (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
|
|
97
102
|
'latest_published_version': (0, GetLibraryQuizVersion_1.GetLibraryQuizVersionToJSON)(value['latestPublishedVersion']),
|
|
98
103
|
'draft_version': (0, GetLibraryQuizVersion_1.GetLibraryQuizVersionToJSON)(value['draftVersion']),
|
|
99
104
|
'versions': (value['versions'].map(GetLibraryQuizVersion_1.GetLibraryQuizVersionToJSON)),
|
|
@@ -54,12 +54,6 @@ export interface GetQuestion {
|
|
|
54
54
|
* @memberof GetQuestion
|
|
55
55
|
*/
|
|
56
56
|
explanation?: RichTextDocument;
|
|
57
|
-
/**
|
|
58
|
-
* Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
|
|
59
|
-
* @type {string}
|
|
60
|
-
* @memberof GetQuestion
|
|
61
|
-
*/
|
|
62
|
-
topic: string;
|
|
63
57
|
/**
|
|
64
58
|
* Difficulty level of the question
|
|
65
59
|
* @type {GetQuestionDifficultyLevelEnum}
|
|
@@ -51,8 +51,6 @@ function instanceOfGetQuestion(value) {
|
|
|
51
51
|
return false;
|
|
52
52
|
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
53
53
|
return false;
|
|
54
|
-
if (!('topic' in value) || value['topic'] === undefined)
|
|
55
|
-
return false;
|
|
56
54
|
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
57
55
|
return false;
|
|
58
56
|
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
@@ -77,7 +75,6 @@ function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
75
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuestionAnswerChoicesInner_1.GetQuestionAnswerChoicesInnerFromJSON)),
|
|
78
76
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
79
77
|
'explanation': json['explanation'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['explanation']),
|
|
80
|
-
'topic': json['topic'],
|
|
81
78
|
'difficultyLevel': json['difficulty_level'],
|
|
82
79
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
83
80
|
'version': json['version'] == null ? undefined : json['version'],
|
|
@@ -102,7 +99,6 @@ function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
102
99
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuestionAnswerChoicesInner_1.GetQuestionAnswerChoicesInnerToJSON)),
|
|
103
100
|
'correct_answer': value['correctAnswer'],
|
|
104
101
|
'explanation': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['explanation']),
|
|
105
|
-
'topic': value['topic'],
|
|
106
102
|
'difficulty_level': value['difficultyLevel'],
|
|
107
103
|
'tags': value['tags'],
|
|
108
104
|
'version': value['version'],
|
|
@@ -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}
|
|
@@ -52,7 +52,6 @@ function GetQuestionListFiltersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
return json;
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
|
-
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
56
55
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
57
56
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
58
57
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
@@ -69,7 +68,6 @@ function GetQuestionListFiltersToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
68
|
return value;
|
|
70
69
|
}
|
|
71
70
|
return {
|
|
72
|
-
'topic': value['topic'],
|
|
73
71
|
'question_type': value['questionType'],
|
|
74
72
|
'difficulty_level': value['difficultyLevel'],
|
|
75
73
|
'tags': value['tags'],
|
|
@@ -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,12 +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
49
|
/**
|
|
56
50
|
*
|
|
57
51
|
* @type {LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum}
|
|
@@ -51,8 +51,6 @@ function instanceOfLibraryQuizCriteriaPreviewQuestion(value) {
|
|
|
51
51
|
return false;
|
|
52
52
|
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
53
53
|
return false;
|
|
54
|
-
if (!('topic' in value) || value['topic'] === undefined)
|
|
55
|
-
return false;
|
|
56
54
|
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
57
55
|
return false;
|
|
58
56
|
if (!('tags' in value) || value['tags'] === undefined)
|
|
@@ -72,7 +70,6 @@ function LibraryQuizCriteriaPreviewQuestionFromJSONTyped(json, ignoreDiscriminat
|
|
|
72
70
|
'questionType': json['question_type'],
|
|
73
71
|
'versionNumber': json['version_number'],
|
|
74
72
|
'version': json['version'] == null ? undefined : json['version'],
|
|
75
|
-
'topic': json['topic'],
|
|
76
73
|
'difficultyLevel': json['difficulty_level'],
|
|
77
74
|
'tags': json['tags'],
|
|
78
75
|
};
|
|
@@ -90,7 +87,6 @@ function LibraryQuizCriteriaPreviewQuestionToJSONTyped(value, ignoreDiscriminato
|
|
|
90
87
|
'question_type': value['questionType'],
|
|
91
88
|
'version_number': value['versionNumber'],
|
|
92
89
|
'version': value['version'],
|
|
93
|
-
'topic': value['topic'],
|
|
94
90
|
'difficulty_level': value['difficultyLevel'],
|
|
95
91
|
'tags': value['tags'],
|
|
96
92
|
};
|
|
@@ -21,12 +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
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {LibraryQuizCriterionDifficultyLevelEnum}
|
|
@@ -55,7 +55,6 @@ function LibraryQuizCriterionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
57
|
'id': json['id'] == null ? undefined : json['id'],
|
|
58
|
-
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
59
58
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
60
59
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
61
60
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
@@ -73,7 +72,6 @@ function LibraryQuizCriterionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
73
72
|
}
|
|
74
73
|
return {
|
|
75
74
|
'id': value['id'],
|
|
76
|
-
'topic': value['topic'],
|
|
77
75
|
'difficulty_level': value['difficultyLevel'],
|
|
78
76
|
'question_type': value['questionType'],
|
|
79
77
|
'tags': value['tags'],
|
|
@@ -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,12 +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
50
|
/**
|
|
57
51
|
* Difficulty level of the question
|
|
58
52
|
* @type {PostQuestionDifficultyLevelEnum}
|
|
@@ -48,8 +48,6 @@ function instanceOfPostQuestion(value) {
|
|
|
48
48
|
return false;
|
|
49
49
|
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
50
50
|
return false;
|
|
51
|
-
if (!('topic' in value) || value['topic'] === undefined)
|
|
52
|
-
return false;
|
|
53
51
|
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
54
52
|
return false;
|
|
55
53
|
return true;
|
|
@@ -67,7 +65,6 @@ function PostQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
65
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PostQuestionAnswerChoicesInner_1.PostQuestionAnswerChoicesInnerFromJSON)),
|
|
68
66
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
69
67
|
'explanation': json['explanation'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['explanation']),
|
|
70
|
-
'topic': json['topic'],
|
|
71
68
|
'difficultyLevel': json['difficulty_level'],
|
|
72
69
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
73
70
|
'version': json['version'] == null ? undefined : json['version'],
|
|
@@ -86,7 +83,6 @@ function PostQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
83
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PostQuestionAnswerChoicesInner_1.PostQuestionAnswerChoicesInnerToJSON)),
|
|
87
84
|
'correct_answer': value['correctAnswer'],
|
|
88
85
|
'explanation': (0, RichTextInput_1.RichTextInputToJSON)(value['explanation']),
|
|
89
|
-
'topic': value['topic'],
|
|
90
86
|
'difficulty_level': value['difficultyLevel'],
|
|
91
87
|
'tags': value['tags'],
|
|
92
88
|
'version': value['version'],
|
|
@@ -47,6 +47,12 @@ export interface PostResource {
|
|
|
47
47
|
* @memberof PostResource
|
|
48
48
|
*/
|
|
49
49
|
richText?: RichTextInput | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Set<string>}
|
|
53
|
+
* @memberof PostResource
|
|
54
|
+
*/
|
|
55
|
+
tags?: Set<string>;
|
|
50
56
|
}
|
|
51
57
|
/**
|
|
52
58
|
* Check if a given object implements the PostResource interface.
|
|
@@ -43,6 +43,7 @@ function PostResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'resourceType': (0, ResourceType_1.ResourceTypeFromJSON)(json['resource_type']),
|
|
44
44
|
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
45
45
|
'richText': json['rich_text'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['rich_text']),
|
|
46
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
function PostResourceToJSON(json) {
|
|
@@ -58,5 +59,6 @@ function PostResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
59
|
'resource_type': (0, ResourceType_1.ResourceTypeToJSON)(value['resourceType']),
|
|
59
60
|
'link_url': value['linkUrl'],
|
|
60
61
|
'rich_text': (0, RichTextInput_1.RichTextInputToJSON)(value['richText']),
|
|
62
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
61
63
|
};
|
|
62
64
|
}
|