@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
|
@@ -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,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PostContentLibraryTag interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostContentLibraryTag(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostContentLibraryTagFromJSON(json) {
|
|
23
|
+
return PostContentLibraryTagFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PostContentLibraryTagToJSON(json) {
|
|
34
|
+
return PostContentLibraryTagToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PostContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': value['name'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PostContentLibraryTagMerge interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostContentLibraryTagMerge(value) {
|
|
18
|
+
if (!('targetTagId' in value) || value['targetTagId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostContentLibraryTagMergeFromJSON(json) {
|
|
23
|
+
return PostContentLibraryTagMergeFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostContentLibraryTagMergeFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'targetTagId': json['target_tag_id'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PostContentLibraryTagMergeToJSON(json) {
|
|
34
|
+
return PostContentLibraryTagMergeToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PostContentLibraryTagMergeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'target_tag_id': value['targetTagId'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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.
|
|
@@ -43,6 +43,7 @@ export function PostLibraryQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'allowReview': json['allow_review'] == null ? undefined : json['allow_review'],
|
|
44
44
|
'requireAllQuestions': json['require_all_questions'] == null ? undefined : json['require_all_questions'],
|
|
45
45
|
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
46
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
export function PostLibraryQuizToJSON(json) {
|
|
@@ -66,5 +67,6 @@ export function PostLibraryQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
67
|
'allow_review': value['allowReview'],
|
|
67
68
|
'require_all_questions': value['requireAllQuestions'],
|
|
68
69
|
'settings': value['settings'],
|
|
70
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
69
71
|
};
|
|
70
72
|
}
|
|
@@ -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}
|
|
@@ -40,8 +40,6 @@ export function instanceOfPostQuestion(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
-
if (!('topic' in value) || value['topic'] === undefined)
|
|
44
|
-
return false;
|
|
45
43
|
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
46
44
|
return false;
|
|
47
45
|
return true;
|
|
@@ -59,7 +57,6 @@ export function PostQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
57
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PostQuestionAnswerChoicesInnerFromJSON)),
|
|
60
58
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
61
59
|
'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
|
|
62
|
-
'topic': json['topic'],
|
|
63
60
|
'difficultyLevel': json['difficulty_level'],
|
|
64
61
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
65
62
|
'version': json['version'] == null ? undefined : json['version'],
|
|
@@ -78,7 +75,6 @@ export function PostQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
75
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PostQuestionAnswerChoicesInnerToJSON)),
|
|
79
76
|
'correct_answer': value['correctAnswer'],
|
|
80
77
|
'explanation': RichTextInputToJSON(value['explanation']),
|
|
81
|
-
'topic': value['topic'],
|
|
82
78
|
'difficulty_level': value['difficultyLevel'],
|
|
83
79
|
'tags': value['tags'],
|
|
84
80
|
'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.
|
|
@@ -36,6 +36,7 @@ export function PostResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'resourceType': ResourceTypeFromJSON(json['resource_type']),
|
|
37
37
|
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
38
38
|
'richText': json['rich_text'] == null ? undefined : RichTextInputFromJSON(json['rich_text']),
|
|
39
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
export function PostResourceToJSON(json) {
|
|
@@ -51,5 +52,6 @@ export function PostResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
52
|
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
52
53
|
'link_url': value['linkUrl'],
|
|
53
54
|
'rich_text': RichTextInputToJSON(value['richText']),
|
|
55
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -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,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PutContentLibraryTag interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPutContentLibraryTag(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PutContentLibraryTagFromJSON(json) {
|
|
23
|
+
return PutContentLibraryTagFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PutContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PutContentLibraryTagToJSON(json) {
|
|
34
|
+
return PutContentLibraryTagToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PutContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': value['name'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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.
|
|
@@ -27,6 +27,7 @@ export function PutLibraryQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
return {
|
|
28
28
|
'name': json['name'] == null ? undefined : json['name'],
|
|
29
29
|
'description': json['description'] == null ? undefined : json['description'],
|
|
30
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
export function PutLibraryQuizToJSON(json) {
|
|
@@ -39,5 +40,6 @@ export function PutLibraryQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
39
40
|
return {
|
|
40
41
|
'name': value['name'],
|
|
41
42
|
'description': value['description'],
|
|
43
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
42
44
|
};
|
|
43
45
|
}
|
|
@@ -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}
|
|
@@ -51,7 +51,6 @@ export function PutQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PutQuestionAnswerChoicesInnerFromJSON)),
|
|
52
52
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
53
53
|
'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
|
|
54
|
-
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
55
54
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
56
55
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
57
56
|
'version': json['version'] == null ? undefined : json['version'],
|
|
@@ -70,7 +69,6 @@ export function PutQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
69
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PutQuestionAnswerChoicesInnerToJSON)),
|
|
71
70
|
'correct_answer': value['correctAnswer'],
|
|
72
71
|
'explanation': RichTextInputToJSON(value['explanation']),
|
|
73
|
-
'topic': value['topic'],
|
|
74
72
|
'difficulty_level': value['difficultyLevel'],
|
|
75
73
|
'tags': value['tags'],
|
|
76
74
|
'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.
|
|
@@ -27,6 +27,7 @@ export function PutResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
return {
|
|
28
28
|
'name': json['name'] == null ? undefined : json['name'],
|
|
29
29
|
'description': json['description'] == null ? undefined : json['description'],
|
|
30
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
export function PutResourceToJSON(json) {
|
|
@@ -39,5 +40,6 @@ export function PutResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
39
40
|
return {
|
|
40
41
|
'name': value['name'],
|
|
41
42
|
'description': value['description'],
|
|
43
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
42
44
|
};
|
|
43
45
|
}
|
|
@@ -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/esm/models/index.js
CHANGED
|
@@ -34,10 +34,13 @@ export * from './ChatTurnUsage';
|
|
|
34
34
|
export * from './ChatUsageTotals';
|
|
35
35
|
export * from './ChatUserIdentity';
|
|
36
36
|
export * from './ContentLaunchMode';
|
|
37
|
+
export * from './ContentLibraryTag';
|
|
38
|
+
export * from './ContentLibraryTagItem';
|
|
37
39
|
export * from './ContentLibraryVersionStatus';
|
|
38
40
|
export * from './CourseCatalog';
|
|
39
41
|
export * from './CourseProgressionMode';
|
|
40
42
|
export * from './CourseShare';
|
|
43
|
+
export * from './CourseShareAcceptError';
|
|
41
44
|
export * from './EffectiveCertificateConfig';
|
|
42
45
|
export * from './EmailTemplateDefinition';
|
|
43
46
|
export * from './EmailTemplateScope';
|
|
@@ -54,10 +57,13 @@ export * from './GetChangelogList';
|
|
|
54
57
|
export * from './GetChatMessage';
|
|
55
58
|
export * from './GetChatSettings';
|
|
56
59
|
export * from './GetChatUsage';
|
|
60
|
+
export * from './GetContentLibraryTagItemList';
|
|
61
|
+
export * from './GetContentLibraryTagList';
|
|
57
62
|
export * from './GetContentLibraryVersion';
|
|
58
63
|
export * from './GetConversation';
|
|
59
64
|
export * from './GetConversationList';
|
|
60
65
|
export * from './GetCourse';
|
|
66
|
+
export * from './GetCourseCatalogList';
|
|
61
67
|
export * from './GetCourseEnrollment';
|
|
62
68
|
export * from './GetCourseEnrollmentList';
|
|
63
69
|
export * from './GetCourseEnrollmentListItem';
|
|
@@ -65,6 +71,7 @@ export * from './GetCourseExport';
|
|
|
65
71
|
export * from './GetCourseExportList';
|
|
66
72
|
export * from './GetCourseImageUpload';
|
|
67
73
|
export * from './GetCourseList';
|
|
74
|
+
export * from './GetCourseShareList';
|
|
68
75
|
export * from './GetCourseVersion';
|
|
69
76
|
export * from './GetCourseVersionItem';
|
|
70
77
|
export * from './GetCourseVersionItemLaunch';
|
|
@@ -181,6 +188,8 @@ export * from './PostCertificateTemplateClone';
|
|
|
181
188
|
export * from './PostCertificateTemplatePreview';
|
|
182
189
|
export * from './PostClearSessions';
|
|
183
190
|
export * from './PostClearSessionsResponse';
|
|
191
|
+
export * from './PostContentLibraryTag';
|
|
192
|
+
export * from './PostContentLibraryTagMerge';
|
|
184
193
|
export * from './PostConversation';
|
|
185
194
|
export * from './PostConversationResponse';
|
|
186
195
|
export * from './PostCourse';
|
|
@@ -238,6 +247,7 @@ export * from './PutCertificateConfig';
|
|
|
238
247
|
export * from './PutCertificateTemplate';
|
|
239
248
|
export * from './PutCertificateTemplateDraft';
|
|
240
249
|
export * from './PutChatSettings';
|
|
250
|
+
export * from './PutContentLibraryTag';
|
|
241
251
|
export * from './PutCourse';
|
|
242
252
|
export * from './PutCourseCatalog';
|
|
243
253
|
export * from './PutCourseEnrollment';
|
|
@@ -0,0 +1,104 @@
|
|
|
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 ContentLibraryTag
|
|
16
|
+
*/
|
|
17
|
+
export interface ContentLibraryTag {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ContentLibraryTag
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ContentLibraryTag
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ContentLibraryTag
|
|
34
|
+
*/
|
|
35
|
+
key?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ContentLibraryTag
|
|
40
|
+
*/
|
|
41
|
+
value: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ContentLibraryTag
|
|
46
|
+
*/
|
|
47
|
+
archivedAt?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ContentLibraryTag
|
|
52
|
+
*/
|
|
53
|
+
mergedIntoTagId?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ContentLibraryTag
|
|
58
|
+
*/
|
|
59
|
+
totalItemCount: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ContentLibraryTag
|
|
64
|
+
*/
|
|
65
|
+
activeItemCount: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof ContentLibraryTag
|
|
70
|
+
*/
|
|
71
|
+
archivedItemCount: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof ContentLibraryTag
|
|
76
|
+
*/
|
|
77
|
+
resourceCount: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof ContentLibraryTag
|
|
82
|
+
*/
|
|
83
|
+
quizCount: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof ContentLibraryTag
|
|
88
|
+
*/
|
|
89
|
+
createdAt: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof ContentLibraryTag
|
|
94
|
+
*/
|
|
95
|
+
updatedAt: number;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the ContentLibraryTag interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfContentLibraryTag(value: object): value is ContentLibraryTag;
|
|
101
|
+
export declare function ContentLibraryTagFromJSON(json: any): ContentLibraryTag;
|
|
102
|
+
export declare function ContentLibraryTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLibraryTag;
|
|
103
|
+
export declare function ContentLibraryTagToJSON(json: any): ContentLibraryTag;
|
|
104
|
+
export declare function ContentLibraryTagToJSONTyped(value?: ContentLibraryTag | null, ignoreDiscriminator?: boolean): any;
|