@easyedu/js-lsm-api 1.107.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 +20 -0
- package/README.md +21 -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/CourseCatalogApi.d.ts +8 -3
- package/dist/apis/CourseCatalogApi.js +14 -7
- package/dist/apis/CourseShareApi.d.ts +12 -7
- package/dist/apis/CourseShareApi.js +20 -5
- 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/CourseCatalogApi.d.ts +8 -3
- package/dist/esm/apis/CourseCatalogApi.js +14 -7
- package/dist/esm/apis/CourseShareApi.d.ts +12 -7
- package/dist/esm/apis/CourseShareApi.js +20 -5
- 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/GetCourseCatalogList.d.ts +57 -0
- package/dist/esm/models/GetCourseCatalogList.js +60 -0
- package/dist/esm/models/GetCourseShareList.d.ts +57 -0
- package/dist/esm/models/GetCourseShareList.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 +10 -0
- package/dist/esm/models/index.js +10 -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/GetCourseCatalogList.d.ts +57 -0
- package/dist/models/GetCourseCatalogList.js +67 -0
- package/dist/models/GetCourseShareList.d.ts +57 -0
- package/dist/models/GetCourseShareList.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 +10 -0
- package/dist/models/index.js +10 -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/CourseCatalogApi.md +15 -4
- package/docs/CourseShareAcceptError.md +37 -0
- package/docs/CourseShareApi.md +29 -7
- package/docs/GetContentLibraryTagItemList.md +42 -0
- package/docs/GetContentLibraryTagList.md +42 -0
- package/docs/GetCourseCatalogList.md +42 -0
- package/docs/GetCourseShareList.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/CourseCatalogApi.ts +24 -6
- package/src/apis/CourseShareApi.ts +42 -12
- 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/GetCourseCatalogList.ts +110 -0
- package/src/models/GetCourseShareList.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 +10 -0
|
@@ -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
|
}
|
|
@@ -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 PutContentLibraryTag
|
|
16
|
+
*/
|
|
17
|
+
export interface PutContentLibraryTag {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutContentLibraryTag
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutContentLibraryTag interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutContentLibraryTag(value: object): value is PutContentLibraryTag;
|
|
29
|
+
export declare function PutContentLibraryTagFromJSON(json: any): PutContentLibraryTag;
|
|
30
|
+
export declare function PutContentLibraryTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutContentLibraryTag;
|
|
31
|
+
export declare function PutContentLibraryTagToJSON(json: any): PutContentLibraryTag;
|
|
32
|
+
export declare function PutContentLibraryTagToJSONTyped(value?: PutContentLibraryTag | 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.instanceOfPutContentLibraryTag = instanceOfPutContentLibraryTag;
|
|
17
|
+
exports.PutContentLibraryTagFromJSON = PutContentLibraryTagFromJSON;
|
|
18
|
+
exports.PutContentLibraryTagFromJSONTyped = PutContentLibraryTagFromJSONTyped;
|
|
19
|
+
exports.PutContentLibraryTagToJSON = PutContentLibraryTagToJSON;
|
|
20
|
+
exports.PutContentLibraryTagToJSONTyped = PutContentLibraryTagToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutContentLibraryTag interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutContentLibraryTag(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PutContentLibraryTagFromJSON(json) {
|
|
30
|
+
return PutContentLibraryTagFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PutContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PutContentLibraryTagToJSON(json) {
|
|
41
|
+
return PutContentLibraryTagToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PutContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -27,6 +27,12 @@ export interface PutLibraryQuiz {
|
|
|
27
27
|
* @memberof PutLibraryQuiz
|
|
28
28
|
*/
|
|
29
29
|
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Set<string>}
|
|
33
|
+
* @memberof PutLibraryQuiz
|
|
34
|
+
*/
|
|
35
|
+
tags?: Set<string>;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the PutLibraryQuiz interface.
|
|
@@ -34,6 +34,7 @@ function PutLibraryQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
37
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
function PutLibraryQuizToJSON(json) {
|
|
@@ -46,5 +47,6 @@ function PutLibraryQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
47
|
return {
|
|
47
48
|
'name': value['name'],
|
|
48
49
|
'description': value['description'],
|
|
50
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
49
51
|
};
|
|
50
52
|
}
|
|
@@ -47,12 +47,6 @@ export interface PutQuestion {
|
|
|
47
47
|
* @memberof PutQuestion
|
|
48
48
|
*/
|
|
49
49
|
explanation?: RichTextInput;
|
|
50
|
-
/**
|
|
51
|
-
* Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof PutQuestion
|
|
54
|
-
*/
|
|
55
|
-
topic?: string;
|
|
56
50
|
/**
|
|
57
51
|
* Difficulty level of the question
|
|
58
52
|
* @type {PutQuestionDifficultyLevelEnum}
|
|
@@ -59,7 +59,6 @@ function PutQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PutQuestionAnswerChoicesInner_1.PutQuestionAnswerChoicesInnerFromJSON)),
|
|
60
60
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
61
61
|
'explanation': json['explanation'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['explanation']),
|
|
62
|
-
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
63
62
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
64
63
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
65
64
|
'version': json['version'] == null ? undefined : json['version'],
|
|
@@ -78,7 +77,6 @@ function PutQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
77
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PutQuestionAnswerChoicesInner_1.PutQuestionAnswerChoicesInnerToJSON)),
|
|
79
78
|
'correct_answer': value['correctAnswer'],
|
|
80
79
|
'explanation': (0, RichTextInput_1.RichTextInputToJSON)(value['explanation']),
|
|
81
|
-
'topic': value['topic'],
|
|
82
80
|
'difficulty_level': value['difficultyLevel'],
|
|
83
81
|
'tags': value['tags'],
|
|
84
82
|
'version': value['version'],
|
|
@@ -27,6 +27,12 @@ export interface PutResource {
|
|
|
27
27
|
* @memberof PutResource
|
|
28
28
|
*/
|
|
29
29
|
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Set<string>}
|
|
33
|
+
* @memberof PutResource
|
|
34
|
+
*/
|
|
35
|
+
tags?: Set<string>;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the PutResource interface.
|
|
@@ -34,6 +34,7 @@ function PutResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
37
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
function PutResourceToJSON(json) {
|
|
@@ -46,5 +47,6 @@ function PutResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
47
|
return {
|
|
47
48
|
'name': value['name'],
|
|
48
49
|
'description': value['description'],
|
|
50
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
49
51
|
};
|
|
50
52
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -32,10 +32,13 @@ export * from './ChatTurnUsage';
|
|
|
32
32
|
export * from './ChatUsageTotals';
|
|
33
33
|
export * from './ChatUserIdentity';
|
|
34
34
|
export * from './ContentLaunchMode';
|
|
35
|
+
export * from './ContentLibraryTag';
|
|
36
|
+
export * from './ContentLibraryTagItem';
|
|
35
37
|
export * from './ContentLibraryVersionStatus';
|
|
36
38
|
export * from './CourseCatalog';
|
|
37
39
|
export * from './CourseProgressionMode';
|
|
38
40
|
export * from './CourseShare';
|
|
41
|
+
export * from './CourseShareAcceptError';
|
|
39
42
|
export * from './EffectiveCertificateConfig';
|
|
40
43
|
export * from './EmailTemplateDefinition';
|
|
41
44
|
export * from './EmailTemplateScope';
|
|
@@ -52,10 +55,13 @@ export * from './GetChangelogList';
|
|
|
52
55
|
export * from './GetChatMessage';
|
|
53
56
|
export * from './GetChatSettings';
|
|
54
57
|
export * from './GetChatUsage';
|
|
58
|
+
export * from './GetContentLibraryTagItemList';
|
|
59
|
+
export * from './GetContentLibraryTagList';
|
|
55
60
|
export * from './GetContentLibraryVersion';
|
|
56
61
|
export * from './GetConversation';
|
|
57
62
|
export * from './GetConversationList';
|
|
58
63
|
export * from './GetCourse';
|
|
64
|
+
export * from './GetCourseCatalogList';
|
|
59
65
|
export * from './GetCourseEnrollment';
|
|
60
66
|
export * from './GetCourseEnrollmentList';
|
|
61
67
|
export * from './GetCourseEnrollmentListItem';
|
|
@@ -63,6 +69,7 @@ export * from './GetCourseExport';
|
|
|
63
69
|
export * from './GetCourseExportList';
|
|
64
70
|
export * from './GetCourseImageUpload';
|
|
65
71
|
export * from './GetCourseList';
|
|
72
|
+
export * from './GetCourseShareList';
|
|
66
73
|
export * from './GetCourseVersion';
|
|
67
74
|
export * from './GetCourseVersionItem';
|
|
68
75
|
export * from './GetCourseVersionItemLaunch';
|
|
@@ -179,6 +186,8 @@ export * from './PostCertificateTemplateClone';
|
|
|
179
186
|
export * from './PostCertificateTemplatePreview';
|
|
180
187
|
export * from './PostClearSessions';
|
|
181
188
|
export * from './PostClearSessionsResponse';
|
|
189
|
+
export * from './PostContentLibraryTag';
|
|
190
|
+
export * from './PostContentLibraryTagMerge';
|
|
182
191
|
export * from './PostConversation';
|
|
183
192
|
export * from './PostConversationResponse';
|
|
184
193
|
export * from './PostCourse';
|
|
@@ -236,6 +245,7 @@ export * from './PutCertificateConfig';
|
|
|
236
245
|
export * from './PutCertificateTemplate';
|
|
237
246
|
export * from './PutCertificateTemplateDraft';
|
|
238
247
|
export * from './PutChatSettings';
|
|
248
|
+
export * from './PutContentLibraryTag';
|
|
239
249
|
export * from './PutCourse';
|
|
240
250
|
export * from './PutCourseCatalog';
|
|
241
251
|
export * from './PutCourseEnrollment';
|
package/dist/models/index.js
CHANGED
|
@@ -50,10 +50,13 @@ __exportStar(require("./ChatTurnUsage"), exports);
|
|
|
50
50
|
__exportStar(require("./ChatUsageTotals"), exports);
|
|
51
51
|
__exportStar(require("./ChatUserIdentity"), exports);
|
|
52
52
|
__exportStar(require("./ContentLaunchMode"), exports);
|
|
53
|
+
__exportStar(require("./ContentLibraryTag"), exports);
|
|
54
|
+
__exportStar(require("./ContentLibraryTagItem"), exports);
|
|
53
55
|
__exportStar(require("./ContentLibraryVersionStatus"), exports);
|
|
54
56
|
__exportStar(require("./CourseCatalog"), exports);
|
|
55
57
|
__exportStar(require("./CourseProgressionMode"), exports);
|
|
56
58
|
__exportStar(require("./CourseShare"), exports);
|
|
59
|
+
__exportStar(require("./CourseShareAcceptError"), exports);
|
|
57
60
|
__exportStar(require("./EffectiveCertificateConfig"), exports);
|
|
58
61
|
__exportStar(require("./EmailTemplateDefinition"), exports);
|
|
59
62
|
__exportStar(require("./EmailTemplateScope"), exports);
|
|
@@ -70,10 +73,13 @@ __exportStar(require("./GetChangelogList"), exports);
|
|
|
70
73
|
__exportStar(require("./GetChatMessage"), exports);
|
|
71
74
|
__exportStar(require("./GetChatSettings"), exports);
|
|
72
75
|
__exportStar(require("./GetChatUsage"), exports);
|
|
76
|
+
__exportStar(require("./GetContentLibraryTagItemList"), exports);
|
|
77
|
+
__exportStar(require("./GetContentLibraryTagList"), exports);
|
|
73
78
|
__exportStar(require("./GetContentLibraryVersion"), exports);
|
|
74
79
|
__exportStar(require("./GetConversation"), exports);
|
|
75
80
|
__exportStar(require("./GetConversationList"), exports);
|
|
76
81
|
__exportStar(require("./GetCourse"), exports);
|
|
82
|
+
__exportStar(require("./GetCourseCatalogList"), exports);
|
|
77
83
|
__exportStar(require("./GetCourseEnrollment"), exports);
|
|
78
84
|
__exportStar(require("./GetCourseEnrollmentList"), exports);
|
|
79
85
|
__exportStar(require("./GetCourseEnrollmentListItem"), exports);
|
|
@@ -81,6 +87,7 @@ __exportStar(require("./GetCourseExport"), exports);
|
|
|
81
87
|
__exportStar(require("./GetCourseExportList"), exports);
|
|
82
88
|
__exportStar(require("./GetCourseImageUpload"), exports);
|
|
83
89
|
__exportStar(require("./GetCourseList"), exports);
|
|
90
|
+
__exportStar(require("./GetCourseShareList"), exports);
|
|
84
91
|
__exportStar(require("./GetCourseVersion"), exports);
|
|
85
92
|
__exportStar(require("./GetCourseVersionItem"), exports);
|
|
86
93
|
__exportStar(require("./GetCourseVersionItemLaunch"), exports);
|
|
@@ -197,6 +204,8 @@ __exportStar(require("./PostCertificateTemplateClone"), exports);
|
|
|
197
204
|
__exportStar(require("./PostCertificateTemplatePreview"), exports);
|
|
198
205
|
__exportStar(require("./PostClearSessions"), exports);
|
|
199
206
|
__exportStar(require("./PostClearSessionsResponse"), exports);
|
|
207
|
+
__exportStar(require("./PostContentLibraryTag"), exports);
|
|
208
|
+
__exportStar(require("./PostContentLibraryTagMerge"), exports);
|
|
200
209
|
__exportStar(require("./PostConversation"), exports);
|
|
201
210
|
__exportStar(require("./PostConversationResponse"), exports);
|
|
202
211
|
__exportStar(require("./PostCourse"), exports);
|
|
@@ -254,6 +263,7 @@ __exportStar(require("./PutCertificateConfig"), exports);
|
|
|
254
263
|
__exportStar(require("./PutCertificateTemplate"), exports);
|
|
255
264
|
__exportStar(require("./PutCertificateTemplateDraft"), exports);
|
|
256
265
|
__exportStar(require("./PutChatSettings"), exports);
|
|
266
|
+
__exportStar(require("./PutContentLibraryTag"), exports);
|
|
257
267
|
__exportStar(require("./PutCourse"), exports);
|
|
258
268
|
__exportStar(require("./PutCourseCatalog"), exports);
|
|
259
269
|
__exportStar(require("./PutCourseEnrollment"), exports);
|