@easyedu/js-lsm-api 1.108.0 → 1.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +16 -0
- package/README.md +19 -2
- package/dist/apis/ContentLibraryApi.d.ts +180 -0
- package/dist/apis/ContentLibraryApi.js +425 -1
- package/dist/apis/ContentLibraryQuizApi.d.ts +1 -0
- package/dist/apis/ContentLibraryQuizApi.js +3 -0
- package/dist/apis/CourseApi.d.ts +2 -2
- package/dist/apis/CourseApi.js +2 -2
- package/dist/apis/QuestionApi.d.ts +1 -12
- package/dist/apis/QuestionApi.js +3 -17
- package/dist/esm/apis/ContentLibraryApi.d.ts +180 -0
- package/dist/esm/apis/ContentLibraryApi.js +424 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +1 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +3 -0
- package/dist/esm/apis/CourseApi.d.ts +2 -2
- package/dist/esm/apis/CourseApi.js +2 -2
- package/dist/esm/apis/QuestionApi.d.ts +1 -12
- package/dist/esm/apis/QuestionApi.js +2 -16
- package/dist/esm/models/ContentLibraryTag.d.ts +110 -0
- package/dist/esm/models/ContentLibraryTag.js +89 -0
- package/dist/esm/models/ContentLibraryTagItem.d.ts +85 -0
- package/dist/esm/models/ContentLibraryTagItem.js +77 -0
- package/dist/esm/models/CourseShareAcceptError.d.ts +54 -0
- package/dist/esm/models/CourseShareAcceptError.js +62 -0
- package/dist/esm/models/GetContentLibraryTagItemList.d.ts +57 -0
- package/dist/esm/models/GetContentLibraryTagItemList.js +60 -0
- package/dist/esm/models/GetContentLibraryTagList.d.ts +57 -0
- package/dist/esm/models/GetContentLibraryTagList.js +60 -0
- package/dist/esm/models/GetLibraryQuiz.d.ts +7 -0
- package/dist/esm/models/GetLibraryQuiz.js +5 -0
- package/dist/esm/models/GetQuestion.d.ts +4 -24
- package/dist/esm/models/GetQuestion.js +3 -18
- package/dist/esm/models/GetQuestionListFilters.d.ts +3 -24
- package/dist/esm/models/GetQuestionListFilters.js +2 -14
- package/dist/esm/models/GetResource.d.ts +7 -0
- package/dist/esm/models/GetResource.js +5 -0
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -21
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -16
- package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -21
- package/dist/esm/models/LibraryQuizCriterion.js +0 -12
- package/dist/esm/models/PostContentLibraryTag.d.ts +32 -0
- package/dist/esm/models/PostContentLibraryTag.js +43 -0
- package/dist/esm/models/PostContentLibraryTagMerge.d.ts +32 -0
- package/dist/esm/models/PostContentLibraryTagMerge.js +43 -0
- package/dist/esm/models/PostLibraryQuiz.d.ts +6 -0
- package/dist/esm/models/PostLibraryQuiz.js +2 -0
- package/dist/esm/models/PostQuestion.d.ts +0 -21
- package/dist/esm/models/PostQuestion.js +0 -16
- package/dist/esm/models/PostResource.d.ts +6 -0
- package/dist/esm/models/PostResource.js +2 -0
- package/dist/esm/models/PutContentLibraryTag.d.ts +32 -0
- package/dist/esm/models/PutContentLibraryTag.js +43 -0
- package/dist/esm/models/PutLibraryQuiz.d.ts +6 -0
- package/dist/esm/models/PutLibraryQuiz.js +2 -0
- package/dist/esm/models/PutQuestion.d.ts +0 -21
- package/dist/esm/models/PutQuestion.js +0 -12
- package/dist/esm/models/PutResource.d.ts +6 -0
- package/dist/esm/models/PutResource.js +2 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/ContentLibraryTag.d.ts +110 -0
- package/dist/models/ContentLibraryTag.js +96 -0
- package/dist/models/ContentLibraryTagItem.d.ts +85 -0
- package/dist/models/ContentLibraryTagItem.js +85 -0
- package/dist/models/CourseShareAcceptError.d.ts +54 -0
- package/dist/models/CourseShareAcceptError.js +70 -0
- package/dist/models/GetContentLibraryTagItemList.d.ts +57 -0
- package/dist/models/GetContentLibraryTagItemList.js +67 -0
- package/dist/models/GetContentLibraryTagList.d.ts +57 -0
- package/dist/models/GetContentLibraryTagList.js +67 -0
- package/dist/models/GetLibraryQuiz.d.ts +7 -0
- package/dist/models/GetLibraryQuiz.js +5 -0
- package/dist/models/GetQuestion.d.ts +4 -24
- package/dist/models/GetQuestion.js +4 -19
- package/dist/models/GetQuestionListFilters.d.ts +3 -24
- package/dist/models/GetQuestionListFilters.js +3 -15
- package/dist/models/GetResource.d.ts +7 -0
- package/dist/models/GetResource.js +5 -0
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -21
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +1 -17
- package/dist/models/LibraryQuizCriterion.d.ts +0 -21
- package/dist/models/LibraryQuizCriterion.js +1 -13
- package/dist/models/PostContentLibraryTag.d.ts +32 -0
- package/dist/models/PostContentLibraryTag.js +50 -0
- package/dist/models/PostContentLibraryTagMerge.d.ts +32 -0
- package/dist/models/PostContentLibraryTagMerge.js +50 -0
- package/dist/models/PostLibraryQuiz.d.ts +6 -0
- package/dist/models/PostLibraryQuiz.js +2 -0
- package/dist/models/PostQuestion.d.ts +0 -21
- package/dist/models/PostQuestion.js +1 -17
- package/dist/models/PostResource.d.ts +6 -0
- package/dist/models/PostResource.js +2 -0
- package/dist/models/PutContentLibraryTag.d.ts +32 -0
- package/dist/models/PutContentLibraryTag.js +50 -0
- package/dist/models/PutLibraryQuiz.d.ts +6 -0
- package/dist/models/PutLibraryQuiz.js +2 -0
- package/dist/models/PutQuestion.d.ts +0 -21
- package/dist/models/PutQuestion.js +1 -13
- package/dist/models/PutResource.d.ts +6 -0
- package/dist/models/PutResource.js +2 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/ContentLibraryApi.md +732 -90
- package/docs/ContentLibraryQuizApi.md +4 -1
- package/docs/ContentLibraryTag.md +60 -0
- package/docs/ContentLibraryTagItem.md +48 -0
- package/docs/CourseApi.md +1 -1
- package/docs/CourseShareAcceptError.md +37 -0
- package/docs/CourseShareApi.md +9 -2
- package/docs/GetContentLibraryTagItemList.md +42 -0
- package/docs/GetContentLibraryTagList.md +42 -0
- package/docs/GetLibraryQuiz.md +2 -0
- package/docs/GetQuestion.md +1 -5
- package/docs/GetQuestionListFilters.md +2 -6
- package/docs/GetResource.md +2 -0
- package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -4
- package/docs/LibraryQuizCriterion.md +0 -4
- package/docs/PostContentLibraryTag.md +34 -0
- package/docs/PostContentLibraryTagMerge.md +34 -0
- package/docs/PostLibraryQuiz.md +2 -0
- package/docs/PostQuestion.md +0 -4
- package/docs/PostResource.md +2 -0
- package/docs/PutContentLibraryTag.md +34 -0
- package/docs/PutLibraryQuiz.md +2 -0
- package/docs/PutQuestion.md +0 -4
- package/docs/PutResource.md +2 -0
- package/docs/QuestionApi.md +4 -10
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +576 -0
- package/src/apis/ContentLibraryQuizApi.ts +5 -0
- package/src/apis/CourseApi.ts +2 -2
- package/src/apis/CourseShareApi.ts +5 -0
- package/src/apis/QuestionApi.ts +3 -22
- package/src/models/ContentLibraryTag.ts +180 -0
- package/src/models/ContentLibraryTagItem.ts +154 -0
- package/src/models/CourseShareAcceptError.ts +94 -0
- package/src/models/GetContentLibraryTagItemList.ts +110 -0
- package/src/models/GetContentLibraryTagList.ts +110 -0
- package/src/models/GetLibraryQuiz.ts +16 -0
- package/src/models/GetQuestion.ts +12 -33
- package/src/models/GetQuestionListFilters.ts +5 -31
- package/src/models/GetResource.ts +16 -0
- package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -28
- package/src/models/LibraryQuizCriterion.ts +0 -26
- package/src/models/PostContentLibraryTag.ts +66 -0
- package/src/models/PostContentLibraryTagMerge.ts +66 -0
- package/src/models/PostLibraryQuiz.ts +8 -0
- package/src/models/PostQuestion.ts +0 -28
- package/src/models/PostResource.ts +8 -0
- package/src/models/PutContentLibraryTag.ts +66 -0
- package/src/models/PutLibraryQuiz.ts +8 -0
- package/src/models/PutQuestion.ts +0 -26
- package/src/models/PutResource.ts +8 -0
- package/src/models/index.ts +8 -0
|
@@ -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,18 +47,6 @@ export interface PostQuestion {
|
|
|
47
47
|
* @memberof PostQuestion
|
|
48
48
|
*/
|
|
49
49
|
explanation?: RichTextInput;
|
|
50
|
-
/**
|
|
51
|
-
* Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof PostQuestion
|
|
54
|
-
*/
|
|
55
|
-
topic: string;
|
|
56
|
-
/**
|
|
57
|
-
* Difficulty level of the question
|
|
58
|
-
* @type {PostQuestionDifficultyLevelEnum}
|
|
59
|
-
* @memberof PostQuestion
|
|
60
|
-
*/
|
|
61
|
-
difficultyLevel: PostQuestionDifficultyLevelEnum;
|
|
62
50
|
/**
|
|
63
51
|
* Keywords/tags for granular filtering
|
|
64
52
|
* @type {Array<string>}
|
|
@@ -84,15 +72,6 @@ export declare const PostQuestionQuestionTypeEnum: {
|
|
|
84
72
|
readonly Essay: "essay";
|
|
85
73
|
};
|
|
86
74
|
export type PostQuestionQuestionTypeEnum = typeof PostQuestionQuestionTypeEnum[keyof typeof PostQuestionQuestionTypeEnum];
|
|
87
|
-
/**
|
|
88
|
-
* @export
|
|
89
|
-
*/
|
|
90
|
-
export declare const PostQuestionDifficultyLevelEnum: {
|
|
91
|
-
readonly Beginner: "beginner";
|
|
92
|
-
readonly Intermediate: "intermediate";
|
|
93
|
-
readonly Advanced: "advanced";
|
|
94
|
-
};
|
|
95
|
-
export type PostQuestionDifficultyLevelEnum = typeof PostQuestionDifficultyLevelEnum[keyof typeof PostQuestionDifficultyLevelEnum];
|
|
96
75
|
/**
|
|
97
76
|
* Check if a given object implements the PostQuestion interface.
|
|
98
77
|
*/
|
|
@@ -24,14 +24,6 @@ export const PostQuestionQuestionTypeEnum = {
|
|
|
24
24
|
Matching: 'matching',
|
|
25
25
|
Essay: 'essay'
|
|
26
26
|
};
|
|
27
|
-
/**
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
|
-
export const PostQuestionDifficultyLevelEnum = {
|
|
31
|
-
Beginner: 'beginner',
|
|
32
|
-
Intermediate: 'intermediate',
|
|
33
|
-
Advanced: 'advanced'
|
|
34
|
-
};
|
|
35
27
|
/**
|
|
36
28
|
* Check if a given object implements the PostQuestion interface.
|
|
37
29
|
*/
|
|
@@ -40,10 +32,6 @@ export function instanceOfPostQuestion(value) {
|
|
|
40
32
|
return false;
|
|
41
33
|
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
42
34
|
return false;
|
|
43
|
-
if (!('topic' in value) || value['topic'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
46
|
-
return false;
|
|
47
35
|
return true;
|
|
48
36
|
}
|
|
49
37
|
export function PostQuestionFromJSON(json) {
|
|
@@ -59,8 +47,6 @@ export function PostQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
47
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PostQuestionAnswerChoicesInnerFromJSON)),
|
|
60
48
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
61
49
|
'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
|
|
62
|
-
'topic': json['topic'],
|
|
63
|
-
'difficultyLevel': json['difficulty_level'],
|
|
64
50
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
65
51
|
'version': json['version'] == null ? undefined : json['version'],
|
|
66
52
|
};
|
|
@@ -78,8 +64,6 @@ export function PostQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
64
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PostQuestionAnswerChoicesInnerToJSON)),
|
|
79
65
|
'correct_answer': value['correctAnswer'],
|
|
80
66
|
'explanation': RichTextInputToJSON(value['explanation']),
|
|
81
|
-
'topic': value['topic'],
|
|
82
|
-
'difficulty_level': value['difficultyLevel'],
|
|
83
67
|
'tags': value['tags'],
|
|
84
68
|
'version': value['version'],
|
|
85
69
|
};
|
|
@@ -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,18 +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
|
-
/**
|
|
57
|
-
* Difficulty level of the question
|
|
58
|
-
* @type {PutQuestionDifficultyLevelEnum}
|
|
59
|
-
* @memberof PutQuestion
|
|
60
|
-
*/
|
|
61
|
-
difficultyLevel?: PutQuestionDifficultyLevelEnum;
|
|
62
50
|
/**
|
|
63
51
|
* Keywords/tags for granular filtering
|
|
64
52
|
* @type {Array<string>}
|
|
@@ -84,15 +72,6 @@ export declare const PutQuestionQuestionTypeEnum: {
|
|
|
84
72
|
readonly Essay: "essay";
|
|
85
73
|
};
|
|
86
74
|
export type PutQuestionQuestionTypeEnum = typeof PutQuestionQuestionTypeEnum[keyof typeof PutQuestionQuestionTypeEnum];
|
|
87
|
-
/**
|
|
88
|
-
* @export
|
|
89
|
-
*/
|
|
90
|
-
export declare const PutQuestionDifficultyLevelEnum: {
|
|
91
|
-
readonly Beginner: "beginner";
|
|
92
|
-
readonly Intermediate: "intermediate";
|
|
93
|
-
readonly Advanced: "advanced";
|
|
94
|
-
};
|
|
95
|
-
export type PutQuestionDifficultyLevelEnum = typeof PutQuestionDifficultyLevelEnum[keyof typeof PutQuestionDifficultyLevelEnum];
|
|
96
75
|
/**
|
|
97
76
|
* Check if a given object implements the PutQuestion interface.
|
|
98
77
|
*/
|
|
@@ -24,14 +24,6 @@ export const PutQuestionQuestionTypeEnum = {
|
|
|
24
24
|
Matching: 'matching',
|
|
25
25
|
Essay: 'essay'
|
|
26
26
|
};
|
|
27
|
-
/**
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
|
-
export const PutQuestionDifficultyLevelEnum = {
|
|
31
|
-
Beginner: 'beginner',
|
|
32
|
-
Intermediate: 'intermediate',
|
|
33
|
-
Advanced: 'advanced'
|
|
34
|
-
};
|
|
35
27
|
/**
|
|
36
28
|
* Check if a given object implements the PutQuestion interface.
|
|
37
29
|
*/
|
|
@@ -51,8 +43,6 @@ export function PutQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
43
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PutQuestionAnswerChoicesInnerFromJSON)),
|
|
52
44
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
53
45
|
'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
|
|
54
|
-
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
55
|
-
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
56
46
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
57
47
|
'version': json['version'] == null ? undefined : json['version'],
|
|
58
48
|
};
|
|
@@ -70,8 +60,6 @@ export function PutQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
60
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PutQuestionAnswerChoicesInnerToJSON)),
|
|
71
61
|
'correct_answer': value['correctAnswer'],
|
|
72
62
|
'explanation': RichTextInputToJSON(value['explanation']),
|
|
73
|
-
'topic': value['topic'],
|
|
74
|
-
'difficulty_level': value['difficultyLevel'],
|
|
75
63
|
'tags': value['tags'],
|
|
76
64
|
'version': value['version'],
|
|
77
65
|
};
|
|
@@ -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';
|
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,6 +57,8 @@ 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';
|
|
@@ -183,6 +188,8 @@ export * from './PostCertificateTemplateClone';
|
|
|
183
188
|
export * from './PostCertificateTemplatePreview';
|
|
184
189
|
export * from './PostClearSessions';
|
|
185
190
|
export * from './PostClearSessionsResponse';
|
|
191
|
+
export * from './PostContentLibraryTag';
|
|
192
|
+
export * from './PostContentLibraryTagMerge';
|
|
186
193
|
export * from './PostConversation';
|
|
187
194
|
export * from './PostConversationResponse';
|
|
188
195
|
export * from './PostCourse';
|
|
@@ -240,6 +247,7 @@ export * from './PutCertificateConfig';
|
|
|
240
247
|
export * from './PutCertificateTemplate';
|
|
241
248
|
export * from './PutCertificateTemplateDraft';
|
|
242
249
|
export * from './PutChatSettings';
|
|
250
|
+
export * from './PutContentLibraryTag';
|
|
243
251
|
export * from './PutCourse';
|
|
244
252
|
export * from './PutCourseCatalog';
|
|
245
253
|
export * from './PutCourseEnrollment';
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
questionCount: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof ContentLibraryTag
|
|
94
|
+
*/
|
|
95
|
+
createdAt: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof ContentLibraryTag
|
|
100
|
+
*/
|
|
101
|
+
updatedAt: number;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the ContentLibraryTag interface.
|
|
105
|
+
*/
|
|
106
|
+
export declare function instanceOfContentLibraryTag(value: object): value is ContentLibraryTag;
|
|
107
|
+
export declare function ContentLibraryTagFromJSON(json: any): ContentLibraryTag;
|
|
108
|
+
export declare function ContentLibraryTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLibraryTag;
|
|
109
|
+
export declare function ContentLibraryTagToJSON(json: any): ContentLibraryTag;
|
|
110
|
+
export declare function ContentLibraryTagToJSONTyped(value?: ContentLibraryTag | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,96 @@
|
|
|
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.instanceOfContentLibraryTag = instanceOfContentLibraryTag;
|
|
17
|
+
exports.ContentLibraryTagFromJSON = ContentLibraryTagFromJSON;
|
|
18
|
+
exports.ContentLibraryTagFromJSONTyped = ContentLibraryTagFromJSONTyped;
|
|
19
|
+
exports.ContentLibraryTagToJSON = ContentLibraryTagToJSON;
|
|
20
|
+
exports.ContentLibraryTagToJSONTyped = ContentLibraryTagToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ContentLibraryTag interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfContentLibraryTag(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('totalItemCount' in value) || value['totalItemCount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('activeItemCount' in value) || value['activeItemCount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('archivedItemCount' in value) || value['archivedItemCount'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('resourceCount' in value) || value['resourceCount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('quizCount' in value) || value['quizCount'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('questionCount' in value) || value['questionCount'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function ContentLibraryTagFromJSON(json) {
|
|
50
|
+
return ContentLibraryTagFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'name': json['name'],
|
|
59
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
60
|
+
'value': json['value'],
|
|
61
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
62
|
+
'mergedIntoTagId': json['merged_into_tag_id'] == null ? undefined : json['merged_into_tag_id'],
|
|
63
|
+
'totalItemCount': json['total_item_count'],
|
|
64
|
+
'activeItemCount': json['active_item_count'],
|
|
65
|
+
'archivedItemCount': json['archived_item_count'],
|
|
66
|
+
'resourceCount': json['resource_count'],
|
|
67
|
+
'quizCount': json['quiz_count'],
|
|
68
|
+
'questionCount': json['question_count'],
|
|
69
|
+
'createdAt': json['created_at'],
|
|
70
|
+
'updatedAt': json['updated_at'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function ContentLibraryTagToJSON(json) {
|
|
74
|
+
return ContentLibraryTagToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function ContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false) {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'id': value['id'],
|
|
82
|
+
'name': value['name'],
|
|
83
|
+
'key': value['key'],
|
|
84
|
+
'value': value['value'],
|
|
85
|
+
'archived_at': value['archivedAt'],
|
|
86
|
+
'merged_into_tag_id': value['mergedIntoTagId'],
|
|
87
|
+
'total_item_count': value['totalItemCount'],
|
|
88
|
+
'active_item_count': value['activeItemCount'],
|
|
89
|
+
'archived_item_count': value['archivedItemCount'],
|
|
90
|
+
'resource_count': value['resourceCount'],
|
|
91
|
+
'quiz_count': value['quizCount'],
|
|
92
|
+
'question_count': value['questionCount'],
|
|
93
|
+
'created_at': value['createdAt'],
|
|
94
|
+
'updated_at': value['updatedAt'],
|
|
95
|
+
};
|
|
96
|
+
}
|