@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
|
@@ -43,8 +43,6 @@ export function instanceOfGetQuestion(value) {
|
|
|
43
43
|
return false;
|
|
44
44
|
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
45
45
|
return false;
|
|
46
|
-
if (!('topic' in value) || value['topic'] === undefined)
|
|
47
|
-
return false;
|
|
48
46
|
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
49
47
|
return false;
|
|
50
48
|
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
@@ -69,7 +67,6 @@ export function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
67
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuestionAnswerChoicesInnerFromJSON)),
|
|
70
68
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
71
69
|
'explanation': json['explanation'] == null ? undefined : RichTextDocumentFromJSON(json['explanation']),
|
|
72
|
-
'topic': json['topic'],
|
|
73
70
|
'difficultyLevel': json['difficulty_level'],
|
|
74
71
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
75
72
|
'version': json['version'] == null ? undefined : json['version'],
|
|
@@ -94,7 +91,6 @@ export function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
94
91
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuestionAnswerChoicesInnerToJSON)),
|
|
95
92
|
'correct_answer': value['correctAnswer'],
|
|
96
93
|
'explanation': RichTextDocumentToJSON(value['explanation']),
|
|
97
|
-
'topic': value['topic'],
|
|
98
94
|
'difficulty_level': value['difficultyLevel'],
|
|
99
95
|
'tags': value['tags'],
|
|
100
96
|
'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}
|
|
@@ -44,7 +44,6 @@ export function GetQuestionListFiltersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
-
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
48
47
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
49
48
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
50
49
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
@@ -61,7 +60,6 @@ export function GetQuestionListFiltersToJSONTyped(value, ignoreDiscriminator = f
|
|
|
61
60
|
return value;
|
|
62
61
|
}
|
|
63
62
|
return {
|
|
64
|
-
'topic': value['topic'],
|
|
65
63
|
'question_type': value['questionType'],
|
|
66
64
|
'difficulty_level': value['difficultyLevel'],
|
|
67
65
|
'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}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GetContentLibraryVersionFromJSON, GetContentLibraryVersionToJSON, } from './GetContentLibraryVersion';
|
|
15
|
+
import { ContentLibraryTagFromJSON, ContentLibraryTagToJSON, } from './ContentLibraryTag';
|
|
15
16
|
import { ResourceTypeFromJSON, ResourceTypeToJSON, } from './ResourceType';
|
|
16
17
|
/**
|
|
17
18
|
* Check if a given object implements the GetResource interface.
|
|
@@ -27,6 +28,8 @@ export function instanceOfGetResource(value) {
|
|
|
27
28
|
return false;
|
|
28
29
|
if (!('ownerId' in value) || value['ownerId'] === undefined)
|
|
29
30
|
return false;
|
|
31
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
32
|
+
return false;
|
|
30
33
|
if (!('versions' in value) || value['versions'] === undefined)
|
|
31
34
|
return false;
|
|
32
35
|
if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined)
|
|
@@ -56,6 +59,7 @@ export function GetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
59
|
'description': json['description'],
|
|
57
60
|
'resourceType': ResourceTypeFromJSON(json['resource_type']),
|
|
58
61
|
'ownerId': json['owner_id'],
|
|
62
|
+
'tags': (json['tags'].map(ContentLibraryTagFromJSON)),
|
|
59
63
|
'latestPublishedVersion': json['latest_published_version'] == null ? undefined : GetContentLibraryVersionFromJSON(json['latest_published_version']),
|
|
60
64
|
'draftVersion': json['draft_version'] == null ? undefined : GetContentLibraryVersionFromJSON(json['draft_version']),
|
|
61
65
|
'versions': (json['versions'].map(GetContentLibraryVersionFromJSON)),
|
|
@@ -81,6 +85,7 @@ export function GetResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
81
85
|
'description': value['description'],
|
|
82
86
|
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
83
87
|
'owner_id': value['ownerId'],
|
|
88
|
+
'tags': (value['tags'].map(ContentLibraryTagToJSON)),
|
|
84
89
|
'latest_published_version': GetContentLibraryVersionToJSON(value['latestPublishedVersion']),
|
|
85
90
|
'draft_version': GetContentLibraryVersionToJSON(value['draftVersion']),
|
|
86
91
|
'versions': (value['versions'].map(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}
|
|
@@ -43,8 +43,6 @@ export function instanceOfLibraryQuizCriteriaPreviewQuestion(value) {
|
|
|
43
43
|
return false;
|
|
44
44
|
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
45
45
|
return false;
|
|
46
|
-
if (!('topic' in value) || value['topic'] === undefined)
|
|
47
|
-
return false;
|
|
48
46
|
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
49
47
|
return false;
|
|
50
48
|
if (!('tags' in value) || value['tags'] === undefined)
|
|
@@ -64,7 +62,6 @@ export function LibraryQuizCriteriaPreviewQuestionFromJSONTyped(json, ignoreDisc
|
|
|
64
62
|
'questionType': json['question_type'],
|
|
65
63
|
'versionNumber': json['version_number'],
|
|
66
64
|
'version': json['version'] == null ? undefined : json['version'],
|
|
67
|
-
'topic': json['topic'],
|
|
68
65
|
'difficultyLevel': json['difficulty_level'],
|
|
69
66
|
'tags': json['tags'],
|
|
70
67
|
};
|
|
@@ -82,7 +79,6 @@ export function LibraryQuizCriteriaPreviewQuestionToJSONTyped(value, ignoreDiscr
|
|
|
82
79
|
'question_type': value['questionType'],
|
|
83
80
|
'version_number': value['versionNumber'],
|
|
84
81
|
'version': value['version'],
|
|
85
|
-
'topic': value['topic'],
|
|
86
82
|
'difficulty_level': value['difficultyLevel'],
|
|
87
83
|
'tags': value['tags'],
|
|
88
84
|
};
|
|
@@ -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}
|
|
@@ -47,7 +47,6 @@ export function LibraryQuizCriterionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
-
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
51
50
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
52
51
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
53
52
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
@@ -65,7 +64,6 @@ export function LibraryQuizCriterionToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
65
64
|
}
|
|
66
65
|
return {
|
|
67
66
|
'id': value['id'],
|
|
68
|
-
'topic': value['topic'],
|
|
69
67
|
'difficulty_level': value['difficultyLevel'],
|
|
70
68
|
'question_type': value['questionType'],
|
|
71
69
|
'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,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,6 +55,8 @@ 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';
|
|
@@ -181,6 +186,8 @@ export * from './PostCertificateTemplateClone';
|
|
|
181
186
|
export * from './PostCertificateTemplatePreview';
|
|
182
187
|
export * from './PostClearSessions';
|
|
183
188
|
export * from './PostClearSessionsResponse';
|
|
189
|
+
export * from './PostContentLibraryTag';
|
|
190
|
+
export * from './PostContentLibraryTagMerge';
|
|
184
191
|
export * from './PostConversation';
|
|
185
192
|
export * from './PostConversationResponse';
|
|
186
193
|
export * from './PostCourse';
|
|
@@ -238,6 +245,7 @@ export * from './PutCertificateConfig';
|
|
|
238
245
|
export * from './PutCertificateTemplate';
|
|
239
246
|
export * from './PutCertificateTemplateDraft';
|
|
240
247
|
export * from './PutChatSettings';
|
|
248
|
+
export * from './PutContentLibraryTag';
|
|
241
249
|
export * from './PutCourse';
|
|
242
250
|
export * from './PutCourseCatalog';
|
|
243
251
|
export * from './PutCourseEnrollment';
|