@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.
Files changed (154) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +19 -2
  3. package/dist/apis/ContentLibraryApi.d.ts +179 -0
  4. package/dist/apis/ContentLibraryApi.js +424 -1
  5. package/dist/apis/ContentLibraryQuizApi.d.ts +1 -0
  6. package/dist/apis/ContentLibraryQuizApi.js +3 -0
  7. package/dist/apis/CourseApi.d.ts +2 -2
  8. package/dist/apis/CourseApi.js +2 -2
  9. package/dist/apis/QuestionApi.d.ts +0 -1
  10. package/dist/apis/QuestionApi.js +0 -3
  11. package/dist/esm/apis/ContentLibraryApi.d.ts +179 -0
  12. package/dist/esm/apis/ContentLibraryApi.js +423 -0
  13. package/dist/esm/apis/ContentLibraryQuizApi.d.ts +1 -0
  14. package/dist/esm/apis/ContentLibraryQuizApi.js +3 -0
  15. package/dist/esm/apis/CourseApi.d.ts +2 -2
  16. package/dist/esm/apis/CourseApi.js +2 -2
  17. package/dist/esm/apis/QuestionApi.d.ts +0 -1
  18. package/dist/esm/apis/QuestionApi.js +0 -3
  19. package/dist/esm/models/ContentLibraryTag.d.ts +104 -0
  20. package/dist/esm/models/ContentLibraryTag.js +85 -0
  21. package/dist/esm/models/ContentLibraryTagItem.d.ts +84 -0
  22. package/dist/esm/models/ContentLibraryTagItem.js +76 -0
  23. package/dist/esm/models/CourseShareAcceptError.d.ts +54 -0
  24. package/dist/esm/models/CourseShareAcceptError.js +62 -0
  25. package/dist/esm/models/GetContentLibraryTagItemList.d.ts +57 -0
  26. package/dist/esm/models/GetContentLibraryTagItemList.js +60 -0
  27. package/dist/esm/models/GetContentLibraryTagList.d.ts +57 -0
  28. package/dist/esm/models/GetContentLibraryTagList.js +60 -0
  29. package/dist/esm/models/GetLibraryQuiz.d.ts +7 -0
  30. package/dist/esm/models/GetLibraryQuiz.js +5 -0
  31. package/dist/esm/models/GetQuestion.d.ts +0 -6
  32. package/dist/esm/models/GetQuestion.js +0 -4
  33. package/dist/esm/models/GetQuestionListFilters.d.ts +0 -6
  34. package/dist/esm/models/GetQuestionListFilters.js +0 -2
  35. package/dist/esm/models/GetResource.d.ts +7 -0
  36. package/dist/esm/models/GetResource.js +5 -0
  37. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
  38. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
  39. package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -6
  40. package/dist/esm/models/LibraryQuizCriterion.js +0 -2
  41. package/dist/esm/models/PostContentLibraryTag.d.ts +32 -0
  42. package/dist/esm/models/PostContentLibraryTag.js +43 -0
  43. package/dist/esm/models/PostContentLibraryTagMerge.d.ts +32 -0
  44. package/dist/esm/models/PostContentLibraryTagMerge.js +43 -0
  45. package/dist/esm/models/PostLibraryQuiz.d.ts +6 -0
  46. package/dist/esm/models/PostLibraryQuiz.js +2 -0
  47. package/dist/esm/models/PostQuestion.d.ts +0 -6
  48. package/dist/esm/models/PostQuestion.js +0 -4
  49. package/dist/esm/models/PostResource.d.ts +6 -0
  50. package/dist/esm/models/PostResource.js +2 -0
  51. package/dist/esm/models/PutContentLibraryTag.d.ts +32 -0
  52. package/dist/esm/models/PutContentLibraryTag.js +43 -0
  53. package/dist/esm/models/PutLibraryQuiz.d.ts +6 -0
  54. package/dist/esm/models/PutLibraryQuiz.js +2 -0
  55. package/dist/esm/models/PutQuestion.d.ts +0 -6
  56. package/dist/esm/models/PutQuestion.js +0 -2
  57. package/dist/esm/models/PutResource.d.ts +6 -0
  58. package/dist/esm/models/PutResource.js +2 -0
  59. package/dist/esm/models/index.d.ts +8 -0
  60. package/dist/esm/models/index.js +8 -0
  61. package/dist/models/ContentLibraryTag.d.ts +104 -0
  62. package/dist/models/ContentLibraryTag.js +92 -0
  63. package/dist/models/ContentLibraryTagItem.d.ts +84 -0
  64. package/dist/models/ContentLibraryTagItem.js +84 -0
  65. package/dist/models/CourseShareAcceptError.d.ts +54 -0
  66. package/dist/models/CourseShareAcceptError.js +70 -0
  67. package/dist/models/GetContentLibraryTagItemList.d.ts +57 -0
  68. package/dist/models/GetContentLibraryTagItemList.js +67 -0
  69. package/dist/models/GetContentLibraryTagList.d.ts +57 -0
  70. package/dist/models/GetContentLibraryTagList.js +67 -0
  71. package/dist/models/GetLibraryQuiz.d.ts +7 -0
  72. package/dist/models/GetLibraryQuiz.js +5 -0
  73. package/dist/models/GetQuestion.d.ts +0 -6
  74. package/dist/models/GetQuestion.js +0 -4
  75. package/dist/models/GetQuestionListFilters.d.ts +0 -6
  76. package/dist/models/GetQuestionListFilters.js +0 -2
  77. package/dist/models/GetResource.d.ts +7 -0
  78. package/dist/models/GetResource.js +5 -0
  79. package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
  80. package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
  81. package/dist/models/LibraryQuizCriterion.d.ts +0 -6
  82. package/dist/models/LibraryQuizCriterion.js +0 -2
  83. package/dist/models/PostContentLibraryTag.d.ts +32 -0
  84. package/dist/models/PostContentLibraryTag.js +50 -0
  85. package/dist/models/PostContentLibraryTagMerge.d.ts +32 -0
  86. package/dist/models/PostContentLibraryTagMerge.js +50 -0
  87. package/dist/models/PostLibraryQuiz.d.ts +6 -0
  88. package/dist/models/PostLibraryQuiz.js +2 -0
  89. package/dist/models/PostQuestion.d.ts +0 -6
  90. package/dist/models/PostQuestion.js +0 -4
  91. package/dist/models/PostResource.d.ts +6 -0
  92. package/dist/models/PostResource.js +2 -0
  93. package/dist/models/PutContentLibraryTag.d.ts +32 -0
  94. package/dist/models/PutContentLibraryTag.js +50 -0
  95. package/dist/models/PutLibraryQuiz.d.ts +6 -0
  96. package/dist/models/PutLibraryQuiz.js +2 -0
  97. package/dist/models/PutQuestion.d.ts +0 -6
  98. package/dist/models/PutQuestion.js +0 -2
  99. package/dist/models/PutResource.d.ts +6 -0
  100. package/dist/models/PutResource.js +2 -0
  101. package/dist/models/index.d.ts +8 -0
  102. package/dist/models/index.js +8 -0
  103. package/docs/ContentLibraryApi.md +732 -90
  104. package/docs/ContentLibraryQuizApi.md +4 -1
  105. package/docs/ContentLibraryTag.md +58 -0
  106. package/docs/ContentLibraryTagItem.md +48 -0
  107. package/docs/CourseApi.md +1 -1
  108. package/docs/CourseShareAcceptError.md +37 -0
  109. package/docs/CourseShareApi.md +9 -2
  110. package/docs/GetContentLibraryTagItemList.md +42 -0
  111. package/docs/GetContentLibraryTagList.md +42 -0
  112. package/docs/GetLibraryQuiz.md +2 -0
  113. package/docs/GetQuestion.md +0 -2
  114. package/docs/GetQuestionListFilters.md +0 -2
  115. package/docs/GetResource.md +2 -0
  116. package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -2
  117. package/docs/LibraryQuizCriterion.md +0 -2
  118. package/docs/PostContentLibraryTag.md +34 -0
  119. package/docs/PostContentLibraryTagMerge.md +34 -0
  120. package/docs/PostLibraryQuiz.md +2 -0
  121. package/docs/PostQuestion.md +0 -2
  122. package/docs/PostResource.md +2 -0
  123. package/docs/PutContentLibraryTag.md +34 -0
  124. package/docs/PutLibraryQuiz.md +2 -0
  125. package/docs/PutQuestion.md +0 -2
  126. package/docs/PutResource.md +2 -0
  127. package/docs/QuestionApi.md +1 -4
  128. package/package.json +1 -1
  129. package/src/apis/ContentLibraryApi.ts +575 -0
  130. package/src/apis/ContentLibraryQuizApi.ts +5 -0
  131. package/src/apis/CourseApi.ts +2 -2
  132. package/src/apis/CourseShareApi.ts +5 -0
  133. package/src/apis/QuestionApi.ts +0 -5
  134. package/src/models/ContentLibraryTag.ts +171 -0
  135. package/src/models/ContentLibraryTagItem.ts +153 -0
  136. package/src/models/CourseShareAcceptError.ts +94 -0
  137. package/src/models/GetContentLibraryTagItemList.ts +110 -0
  138. package/src/models/GetContentLibraryTagList.ts +110 -0
  139. package/src/models/GetLibraryQuiz.ts +16 -0
  140. package/src/models/GetQuestion.ts +0 -9
  141. package/src/models/GetQuestionListFilters.ts +0 -8
  142. package/src/models/GetResource.ts +16 -0
  143. package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -9
  144. package/src/models/LibraryQuizCriterion.ts +0 -8
  145. package/src/models/PostContentLibraryTag.ts +66 -0
  146. package/src/models/PostContentLibraryTagMerge.ts +66 -0
  147. package/src/models/PostLibraryQuiz.ts +8 -0
  148. package/src/models/PostQuestion.ts +0 -9
  149. package/src/models/PostResource.ts +8 -0
  150. package/src/models/PutContentLibraryTag.ts +66 -0
  151. package/src/models/PutLibraryQuiz.ts +8 -0
  152. package/src/models/PutQuestion.ts +0 -8
  153. package/src/models/PutResource.ts +8 -0
  154. package/src/models/index.ts +8 -0
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { ContentLibraryTag } from './ContentLibraryTag';
17
+ import {
18
+ ContentLibraryTagFromJSON,
19
+ ContentLibraryTagFromJSONTyped,
20
+ ContentLibraryTagToJSON,
21
+ ContentLibraryTagToJSONTyped,
22
+ } from './ContentLibraryTag';
16
23
  import type { GetLibraryQuizVersion } from './GetLibraryQuizVersion';
17
24
  import {
18
25
  GetLibraryQuizVersionFromJSON,
@@ -57,6 +64,12 @@ export interface GetLibraryQuiz {
57
64
  * @memberof GetLibraryQuiz
58
65
  */
59
66
  ownerId: string;
67
+ /**
68
+ *
69
+ * @type {Array<ContentLibraryTag>}
70
+ * @memberof GetLibraryQuiz
71
+ */
72
+ tags: Array<ContentLibraryTag>;
60
73
  /**
61
74
  *
62
75
  * @type {GetLibraryQuizVersion}
@@ -138,6 +151,7 @@ export function instanceOfGetLibraryQuiz(value: object): value is GetLibraryQuiz
138
151
  if (!('name' in value) || value['name'] === undefined) return false;
139
152
  if (!('description' in value) || value['description'] === undefined) return false;
140
153
  if (!('ownerId' in value) || value['ownerId'] === undefined) return false;
154
+ if (!('tags' in value) || value['tags'] === undefined) return false;
141
155
  if (!('versions' in value) || value['versions'] === undefined) return false;
142
156
  if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined) return false;
143
157
  if (!('draftCourseCount' in value) || value['draftCourseCount'] === undefined) return false;
@@ -163,6 +177,7 @@ export function GetLibraryQuizFromJSONTyped(json: any, ignoreDiscriminator: bool
163
177
  'name': json['name'],
164
178
  'description': json['description'],
165
179
  'ownerId': json['owner_id'],
180
+ 'tags': ((json['tags'] as Array<any>).map(ContentLibraryTagFromJSON)),
166
181
  'latestPublishedVersion': json['latest_published_version'] == null ? undefined : GetLibraryQuizVersionFromJSON(json['latest_published_version']),
167
182
  'draftVersion': json['draft_version'] == null ? undefined : GetLibraryQuizVersionFromJSON(json['draft_version']),
168
183
  'versions': ((json['versions'] as Array<any>).map(GetLibraryQuizVersionFromJSON)),
@@ -192,6 +207,7 @@ export function GetLibraryQuizToJSONTyped(value?: GetLibraryQuiz | null, ignoreD
192
207
  'name': value['name'],
193
208
  'description': value['description'],
194
209
  'owner_id': value['ownerId'],
210
+ 'tags': ((value['tags'] as Array<any>).map(ContentLibraryTagToJSON)),
195
211
  'latest_published_version': GetLibraryQuizVersionToJSON(value['latestPublishedVersion']),
196
212
  'draft_version': GetLibraryQuizVersionToJSON(value['draftVersion']),
197
213
  'versions': ((value['versions'] as Array<any>).map(GetLibraryQuizVersionToJSON)),
@@ -77,12 +77,6 @@ export interface GetQuestion {
77
77
  * @memberof GetQuestion
78
78
  */
79
79
  explanation?: RichTextDocument;
80
- /**
81
- * Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
82
- * @type {string}
83
- * @memberof GetQuestion
84
- */
85
- topic: string;
86
80
  /**
87
81
  * Difficulty level of the question
88
82
  * @type {GetQuestionDifficultyLevelEnum}
@@ -171,7 +165,6 @@ export function instanceOfGetQuestion(value: object): value is GetQuestion {
171
165
  if (!('id' in value) || value['id'] === undefined) return false;
172
166
  if (!('questionText' in value) || value['questionText'] === undefined) return false;
173
167
  if (!('questionType' in value) || value['questionType'] === undefined) return false;
174
- if (!('topic' in value) || value['topic'] === undefined) return false;
175
168
  if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined) return false;
176
169
  if (!('versionNumber' in value) || value['versionNumber'] === undefined) return false;
177
170
  if (!('createdDate' in value) || value['createdDate'] === undefined) return false;
@@ -195,7 +188,6 @@ export function GetQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean
195
188
  'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(GetQuestionAnswerChoicesInnerFromJSON)),
196
189
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
197
190
  'explanation': json['explanation'] == null ? undefined : RichTextDocumentFromJSON(json['explanation']),
198
- 'topic': json['topic'],
199
191
  'difficultyLevel': json['difficulty_level'],
200
192
  'tags': json['tags'] == null ? undefined : json['tags'],
201
193
  'version': json['version'] == null ? undefined : json['version'],
@@ -224,7 +216,6 @@ export function GetQuestionToJSONTyped(value?: Omit<GetQuestion, 'id'|'version_n
224
216
  'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(GetQuestionAnswerChoicesInnerToJSON)),
225
217
  'correct_answer': value['correctAnswer'],
226
218
  'explanation': RichTextDocumentToJSON(value['explanation']),
227
- 'topic': value['topic'],
228
219
  'difficulty_level': value['difficultyLevel'],
229
220
  'tags': value['tags'],
230
221
  'version': value['version'],
@@ -19,12 +19,6 @@ import { mapValues } from '../runtime';
19
19
  * @interface GetQuestionListFilters
20
20
  */
21
21
  export interface GetQuestionListFilters {
22
- /**
23
- * Filter by topic
24
- * @type {string}
25
- * @memberof GetQuestionListFilters
26
- */
27
- topic?: string;
28
22
  /**
29
23
  * Filter by question type
30
24
  * @type {GetQuestionListFiltersQuestionTypeEnum}
@@ -105,7 +99,6 @@ export function GetQuestionListFiltersFromJSONTyped(json: any, ignoreDiscriminat
105
99
  }
106
100
  return {
107
101
 
108
- 'topic': json['topic'] == null ? undefined : json['topic'],
109
102
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
110
103
  'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
111
104
  'tags': json['tags'] == null ? undefined : json['tags'],
@@ -126,7 +119,6 @@ export function GetQuestionListFiltersToJSONTyped(value?: GetQuestionListFilters
126
119
 
127
120
  return {
128
121
 
129
- 'topic': value['topic'],
130
122
  'question_type': value['questionType'],
131
123
  'difficulty_level': value['difficultyLevel'],
132
124
  'tags': value['tags'],
@@ -20,6 +20,13 @@ import {
20
20
  GetContentLibraryVersionToJSON,
21
21
  GetContentLibraryVersionToJSONTyped,
22
22
  } from './GetContentLibraryVersion';
23
+ import type { ContentLibraryTag } from './ContentLibraryTag';
24
+ import {
25
+ ContentLibraryTagFromJSON,
26
+ ContentLibraryTagFromJSONTyped,
27
+ ContentLibraryTagToJSON,
28
+ ContentLibraryTagToJSONTyped,
29
+ } from './ContentLibraryTag';
23
30
  import type { ResourceType } from './ResourceType';
24
31
  import {
25
32
  ResourceTypeFromJSON,
@@ -64,6 +71,12 @@ export interface GetResource {
64
71
  * @memberof GetResource
65
72
  */
66
73
  ownerId: string;
74
+ /**
75
+ *
76
+ * @type {Array<ContentLibraryTag>}
77
+ * @memberof GetResource
78
+ */
79
+ tags: Array<ContentLibraryTag>;
67
80
  /**
68
81
  *
69
82
  * @type {GetContentLibraryVersion}
@@ -137,6 +150,7 @@ export function instanceOfGetResource(value: object): value is GetResource {
137
150
  if (!('description' in value) || value['description'] === undefined) return false;
138
151
  if (!('resourceType' in value) || value['resourceType'] === undefined) return false;
139
152
  if (!('ownerId' in value) || value['ownerId'] === undefined) return false;
153
+ if (!('tags' in value) || value['tags'] === undefined) return false;
140
154
  if (!('versions' in value) || value['versions'] === undefined) return false;
141
155
  if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined) return false;
142
156
  if (!('draftCourseCount' in value) || value['draftCourseCount'] === undefined) return false;
@@ -162,6 +176,7 @@ export function GetResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
162
176
  'description': json['description'],
163
177
  'resourceType': ResourceTypeFromJSON(json['resource_type']),
164
178
  'ownerId': json['owner_id'],
179
+ 'tags': ((json['tags'] as Array<any>).map(ContentLibraryTagFromJSON)),
165
180
  'latestPublishedVersion': json['latest_published_version'] == null ? undefined : GetContentLibraryVersionFromJSON(json['latest_published_version']),
166
181
  'draftVersion': json['draft_version'] == null ? undefined : GetContentLibraryVersionFromJSON(json['draft_version']),
167
182
  'versions': ((json['versions'] as Array<any>).map(GetContentLibraryVersionFromJSON)),
@@ -191,6 +206,7 @@ export function GetResourceToJSONTyped(value?: GetResource | null, ignoreDiscrim
191
206
  'description': value['description'],
192
207
  'resource_type': ResourceTypeToJSON(value['resourceType']),
193
208
  'owner_id': value['ownerId'],
209
+ 'tags': ((value['tags'] as Array<any>).map(ContentLibraryTagToJSON)),
194
210
  'latest_published_version': GetContentLibraryVersionToJSON(value['latestPublishedVersion']),
195
211
  'draft_version': GetContentLibraryVersionToJSON(value['draftVersion']),
196
212
  'versions': ((value['versions'] as Array<any>).map(GetContentLibraryVersionToJSON)),
@@ -57,12 +57,6 @@ export interface LibraryQuizCriteriaPreviewQuestion {
57
57
  * @memberof LibraryQuizCriteriaPreviewQuestion
58
58
  */
59
59
  version?: string | null;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof LibraryQuizCriteriaPreviewQuestion
64
- */
65
- topic: string;
66
60
  /**
67
61
  *
68
62
  * @type {LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum}
@@ -110,7 +104,6 @@ export function instanceOfLibraryQuizCriteriaPreviewQuestion(value: object): val
110
104
  if (!('questionText' in value) || value['questionText'] === undefined) return false;
111
105
  if (!('questionType' in value) || value['questionType'] === undefined) return false;
112
106
  if (!('versionNumber' in value) || value['versionNumber'] === undefined) return false;
113
- if (!('topic' in value) || value['topic'] === undefined) return false;
114
107
  if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined) return false;
115
108
  if (!('tags' in value) || value['tags'] === undefined) return false;
116
109
  return true;
@@ -131,7 +124,6 @@ export function LibraryQuizCriteriaPreviewQuestionFromJSONTyped(json: any, ignor
131
124
  'questionType': json['question_type'],
132
125
  'versionNumber': json['version_number'],
133
126
  'version': json['version'] == null ? undefined : json['version'],
134
- 'topic': json['topic'],
135
127
  'difficultyLevel': json['difficulty_level'],
136
128
  'tags': json['tags'],
137
129
  };
@@ -153,7 +145,6 @@ export function LibraryQuizCriteriaPreviewQuestionToJSONTyped(value?: LibraryQui
153
145
  'question_type': value['questionType'],
154
146
  'version_number': value['versionNumber'],
155
147
  'version': value['version'],
156
- 'topic': value['topic'],
157
148
  'difficulty_level': value['difficultyLevel'],
158
149
  'tags': value['tags'],
159
150
  };
@@ -25,12 +25,6 @@ export interface LibraryQuizCriterion {
25
25
  * @memberof LibraryQuizCriterion
26
26
  */
27
27
  id?: string | null;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof LibraryQuizCriterion
32
- */
33
- topic?: string | null;
34
28
  /**
35
29
  *
36
30
  * @type {LibraryQuizCriterionDifficultyLevelEnum}
@@ -113,7 +107,6 @@ export function LibraryQuizCriterionFromJSONTyped(json: any, ignoreDiscriminator
113
107
  return {
114
108
 
115
109
  'id': json['id'] == null ? undefined : json['id'],
116
- 'topic': json['topic'] == null ? undefined : json['topic'],
117
110
  'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
118
111
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
119
112
  'tags': json['tags'] == null ? undefined : json['tags'],
@@ -135,7 +128,6 @@ export function LibraryQuizCriterionToJSONTyped(value?: LibraryQuizCriterion | n
135
128
  return {
136
129
 
137
130
  'id': value['id'],
138
- 'topic': value['topic'],
139
131
  'difficulty_level': value['difficultyLevel'],
140
132
  'question_type': value['questionType'],
141
133
  'tags': value['tags'],
@@ -0,0 +1,66 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PostContentLibraryTag
20
+ */
21
+ export interface PostContentLibraryTag {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PostContentLibraryTag
26
+ */
27
+ name: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PostContentLibraryTag interface.
32
+ */
33
+ export function instanceOfPostContentLibraryTag(value: object): value is PostContentLibraryTag {
34
+ if (!('name' in value) || value['name'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function PostContentLibraryTagFromJSON(json: any): PostContentLibraryTag {
39
+ return PostContentLibraryTagFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function PostContentLibraryTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostContentLibraryTag {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'name': json['name'],
49
+ };
50
+ }
51
+
52
+ export function PostContentLibraryTagToJSON(json: any): PostContentLibraryTag {
53
+ return PostContentLibraryTagToJSONTyped(json, false);
54
+ }
55
+
56
+ export function PostContentLibraryTagToJSONTyped(value?: PostContentLibraryTag | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'name': value['name'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,66 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PostContentLibraryTagMerge
20
+ */
21
+ export interface PostContentLibraryTagMerge {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PostContentLibraryTagMerge
26
+ */
27
+ targetTagId: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PostContentLibraryTagMerge interface.
32
+ */
33
+ export function instanceOfPostContentLibraryTagMerge(value: object): value is PostContentLibraryTagMerge {
34
+ if (!('targetTagId' in value) || value['targetTagId'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function PostContentLibraryTagMergeFromJSON(json: any): PostContentLibraryTagMerge {
39
+ return PostContentLibraryTagMergeFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function PostContentLibraryTagMergeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostContentLibraryTagMerge {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'targetTagId': json['target_tag_id'],
49
+ };
50
+ }
51
+
52
+ export function PostContentLibraryTagMergeToJSON(json: any): PostContentLibraryTagMerge {
53
+ return PostContentLibraryTagMergeToJSONTyped(json, false);
54
+ }
55
+
56
+ export function PostContentLibraryTagMergeToJSONTyped(value?: PostContentLibraryTagMerge | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'target_tag_id': value['targetTagId'],
64
+ };
65
+ }
66
+
@@ -105,6 +105,12 @@ export interface PostLibraryQuiz {
105
105
  * @memberof PostLibraryQuiz
106
106
  */
107
107
  settings?: { [key: string]: any; };
108
+ /**
109
+ *
110
+ * @type {Set<string>}
111
+ * @memberof PostLibraryQuiz
112
+ */
113
+ tags?: Set<string>;
108
114
  }
109
115
 
110
116
 
@@ -141,6 +147,7 @@ export function PostLibraryQuizFromJSONTyped(json: any, ignoreDiscriminator: boo
141
147
  'allowReview': json['allow_review'] == null ? undefined : json['allow_review'],
142
148
  'requireAllQuestions': json['require_all_questions'] == null ? undefined : json['require_all_questions'],
143
149
  'settings': json['settings'] == null ? undefined : json['settings'],
150
+ 'tags': json['tags'] == null ? undefined : new Set(json['tags']),
144
151
  };
145
152
  }
146
153
 
@@ -168,6 +175,7 @@ export function PostLibraryQuizToJSONTyped(value?: PostLibraryQuiz | null, ignor
168
175
  'allow_review': value['allowReview'],
169
176
  'require_all_questions': value['requireAllQuestions'],
170
177
  'settings': value['settings'],
178
+ 'tags': value['tags'] == null ? undefined : Array.from(value['tags'] as Set<any>),
171
179
  };
172
180
  }
173
181
 
@@ -64,12 +64,6 @@ export interface PostQuestion {
64
64
  * @memberof PostQuestion
65
65
  */
66
66
  explanation?: RichTextInput;
67
- /**
68
- * Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
69
- * @type {string}
70
- * @memberof PostQuestion
71
- */
72
- topic: string;
73
67
  /**
74
68
  * Difficulty level of the question
75
69
  * @type {PostQuestionDifficultyLevelEnum}
@@ -121,7 +115,6 @@ export type PostQuestionDifficultyLevelEnum = typeof PostQuestionDifficultyLevel
121
115
  export function instanceOfPostQuestion(value: object): value is PostQuestion {
122
116
  if (!('questionText' in value) || value['questionText'] === undefined) return false;
123
117
  if (!('questionType' in value) || value['questionType'] === undefined) return false;
124
- if (!('topic' in value) || value['topic'] === undefined) return false;
125
118
  if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined) return false;
126
119
  return true;
127
120
  }
@@ -141,7 +134,6 @@ export function PostQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolea
141
134
  'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(PostQuestionAnswerChoicesInnerFromJSON)),
142
135
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
143
136
  'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
144
- 'topic': json['topic'],
145
137
  'difficultyLevel': json['difficulty_level'],
146
138
  'tags': json['tags'] == null ? undefined : json['tags'],
147
139
  'version': json['version'] == null ? undefined : json['version'],
@@ -164,7 +156,6 @@ export function PostQuestionToJSONTyped(value?: PostQuestion | null, ignoreDiscr
164
156
  'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(PostQuestionAnswerChoicesInnerToJSON)),
165
157
  'correct_answer': value['correctAnswer'],
166
158
  'explanation': RichTextInputToJSON(value['explanation']),
167
- 'topic': value['topic'],
168
159
  'difficulty_level': value['difficultyLevel'],
169
160
  'tags': value['tags'],
170
161
  'version': value['version'],
@@ -64,6 +64,12 @@ export interface PostResource {
64
64
  * @memberof PostResource
65
65
  */
66
66
  richText?: RichTextInput | null;
67
+ /**
68
+ *
69
+ * @type {Set<string>}
70
+ * @memberof PostResource
71
+ */
72
+ tags?: Set<string>;
67
73
  }
68
74
 
69
75
 
@@ -92,6 +98,7 @@ export function PostResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
92
98
  'resourceType': ResourceTypeFromJSON(json['resource_type']),
93
99
  'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
94
100
  'richText': json['rich_text'] == null ? undefined : RichTextInputFromJSON(json['rich_text']),
101
+ 'tags': json['tags'] == null ? undefined : new Set(json['tags']),
95
102
  };
96
103
  }
97
104
 
@@ -111,6 +118,7 @@ export function PostResourceToJSONTyped(value?: PostResource | null, ignoreDiscr
111
118
  'resource_type': ResourceTypeToJSON(value['resourceType']),
112
119
  'link_url': value['linkUrl'],
113
120
  'rich_text': RichTextInputToJSON(value['richText']),
121
+ 'tags': value['tags'] == null ? undefined : Array.from(value['tags'] as Set<any>),
114
122
  };
115
123
  }
116
124
 
@@ -0,0 +1,66 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PutContentLibraryTag
20
+ */
21
+ export interface PutContentLibraryTag {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PutContentLibraryTag
26
+ */
27
+ name: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PutContentLibraryTag interface.
32
+ */
33
+ export function instanceOfPutContentLibraryTag(value: object): value is PutContentLibraryTag {
34
+ if (!('name' in value) || value['name'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function PutContentLibraryTagFromJSON(json: any): PutContentLibraryTag {
39
+ return PutContentLibraryTagFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function PutContentLibraryTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutContentLibraryTag {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'name': json['name'],
49
+ };
50
+ }
51
+
52
+ export function PutContentLibraryTagToJSON(json: any): PutContentLibraryTag {
53
+ return PutContentLibraryTagToJSONTyped(json, false);
54
+ }
55
+
56
+ export function PutContentLibraryTagToJSONTyped(value?: PutContentLibraryTag | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'name': value['name'],
64
+ };
65
+ }
66
+
@@ -31,6 +31,12 @@ export interface PutLibraryQuiz {
31
31
  * @memberof PutLibraryQuiz
32
32
  */
33
33
  description?: string;
34
+ /**
35
+ *
36
+ * @type {Set<string>}
37
+ * @memberof PutLibraryQuiz
38
+ */
39
+ tags?: Set<string>;
34
40
  }
35
41
 
36
42
  /**
@@ -52,6 +58,7 @@ export function PutLibraryQuizFromJSONTyped(json: any, ignoreDiscriminator: bool
52
58
 
53
59
  'name': json['name'] == null ? undefined : json['name'],
54
60
  'description': json['description'] == null ? undefined : json['description'],
61
+ 'tags': json['tags'] == null ? undefined : new Set(json['tags']),
55
62
  };
56
63
  }
57
64
 
@@ -68,6 +75,7 @@ export function PutLibraryQuizToJSONTyped(value?: PutLibraryQuiz | null, ignoreD
68
75
 
69
76
  'name': value['name'],
70
77
  'description': value['description'],
78
+ 'tags': value['tags'] == null ? undefined : Array.from(value['tags'] as Set<any>),
71
79
  };
72
80
  }
73
81
 
@@ -64,12 +64,6 @@ export interface PutQuestion {
64
64
  * @memberof PutQuestion
65
65
  */
66
66
  explanation?: RichTextInput;
67
- /**
68
- * Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
69
- * @type {string}
70
- * @memberof PutQuestion
71
- */
72
- topic?: string;
73
67
  /**
74
68
  * Difficulty level of the question
75
69
  * @type {PutQuestionDifficultyLevelEnum}
@@ -137,7 +131,6 @@ export function PutQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean
137
131
  'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(PutQuestionAnswerChoicesInnerFromJSON)),
138
132
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
139
133
  'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
140
- 'topic': json['topic'] == null ? undefined : json['topic'],
141
134
  'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
142
135
  'tags': json['tags'] == null ? undefined : json['tags'],
143
136
  'version': json['version'] == null ? undefined : json['version'],
@@ -160,7 +153,6 @@ export function PutQuestionToJSONTyped(value?: PutQuestion | null, ignoreDiscrim
160
153
  'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(PutQuestionAnswerChoicesInnerToJSON)),
161
154
  'correct_answer': value['correctAnswer'],
162
155
  'explanation': RichTextInputToJSON(value['explanation']),
163
- 'topic': value['topic'],
164
156
  'difficulty_level': value['difficultyLevel'],
165
157
  'tags': value['tags'],
166
158
  'version': value['version'],
@@ -31,6 +31,12 @@ export interface PutResource {
31
31
  * @memberof PutResource
32
32
  */
33
33
  description?: string;
34
+ /**
35
+ *
36
+ * @type {Set<string>}
37
+ * @memberof PutResource
38
+ */
39
+ tags?: Set<string>;
34
40
  }
35
41
 
36
42
  /**
@@ -52,6 +58,7 @@ export function PutResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
52
58
 
53
59
  'name': json['name'] == null ? undefined : json['name'],
54
60
  'description': json['description'] == null ? undefined : json['description'],
61
+ 'tags': json['tags'] == null ? undefined : new Set(json['tags']),
55
62
  };
56
63
  }
57
64
 
@@ -68,6 +75,7 @@ export function PutResourceToJSONTyped(value?: PutResource | null, ignoreDiscrim
68
75
 
69
76
  'name': value['name'],
70
77
  'description': value['description'],
78
+ 'tags': value['tags'] == null ? undefined : Array.from(value['tags'] as Set<any>),
71
79
  };
72
80
  }
73
81
 
@@ -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';