@easyedu/js-lsm-api 1.107.0 → 1.109.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +21 -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/CourseCatalogApi.d.ts +8 -3
  10. package/dist/apis/CourseCatalogApi.js +14 -7
  11. package/dist/apis/CourseShareApi.d.ts +12 -7
  12. package/dist/apis/CourseShareApi.js +20 -5
  13. package/dist/apis/QuestionApi.d.ts +0 -1
  14. package/dist/apis/QuestionApi.js +0 -3
  15. package/dist/esm/apis/ContentLibraryApi.d.ts +179 -0
  16. package/dist/esm/apis/ContentLibraryApi.js +423 -0
  17. package/dist/esm/apis/ContentLibraryQuizApi.d.ts +1 -0
  18. package/dist/esm/apis/ContentLibraryQuizApi.js +3 -0
  19. package/dist/esm/apis/CourseApi.d.ts +2 -2
  20. package/dist/esm/apis/CourseApi.js +2 -2
  21. package/dist/esm/apis/CourseCatalogApi.d.ts +8 -3
  22. package/dist/esm/apis/CourseCatalogApi.js +14 -7
  23. package/dist/esm/apis/CourseShareApi.d.ts +12 -7
  24. package/dist/esm/apis/CourseShareApi.js +20 -5
  25. package/dist/esm/apis/QuestionApi.d.ts +0 -1
  26. package/dist/esm/apis/QuestionApi.js +0 -3
  27. package/dist/esm/models/ContentLibraryTag.d.ts +104 -0
  28. package/dist/esm/models/ContentLibraryTag.js +85 -0
  29. package/dist/esm/models/ContentLibraryTagItem.d.ts +84 -0
  30. package/dist/esm/models/ContentLibraryTagItem.js +76 -0
  31. package/dist/esm/models/CourseShareAcceptError.d.ts +54 -0
  32. package/dist/esm/models/CourseShareAcceptError.js +62 -0
  33. package/dist/esm/models/GetContentLibraryTagItemList.d.ts +57 -0
  34. package/dist/esm/models/GetContentLibraryTagItemList.js +60 -0
  35. package/dist/esm/models/GetContentLibraryTagList.d.ts +57 -0
  36. package/dist/esm/models/GetContentLibraryTagList.js +60 -0
  37. package/dist/esm/models/GetCourseCatalogList.d.ts +57 -0
  38. package/dist/esm/models/GetCourseCatalogList.js +60 -0
  39. package/dist/esm/models/GetCourseShareList.d.ts +57 -0
  40. package/dist/esm/models/GetCourseShareList.js +60 -0
  41. package/dist/esm/models/GetLibraryQuiz.d.ts +7 -0
  42. package/dist/esm/models/GetLibraryQuiz.js +5 -0
  43. package/dist/esm/models/GetQuestion.d.ts +0 -6
  44. package/dist/esm/models/GetQuestion.js +0 -4
  45. package/dist/esm/models/GetQuestionListFilters.d.ts +0 -6
  46. package/dist/esm/models/GetQuestionListFilters.js +0 -2
  47. package/dist/esm/models/GetResource.d.ts +7 -0
  48. package/dist/esm/models/GetResource.js +5 -0
  49. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
  50. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
  51. package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -6
  52. package/dist/esm/models/LibraryQuizCriterion.js +0 -2
  53. package/dist/esm/models/PostContentLibraryTag.d.ts +32 -0
  54. package/dist/esm/models/PostContentLibraryTag.js +43 -0
  55. package/dist/esm/models/PostContentLibraryTagMerge.d.ts +32 -0
  56. package/dist/esm/models/PostContentLibraryTagMerge.js +43 -0
  57. package/dist/esm/models/PostLibraryQuiz.d.ts +6 -0
  58. package/dist/esm/models/PostLibraryQuiz.js +2 -0
  59. package/dist/esm/models/PostQuestion.d.ts +0 -6
  60. package/dist/esm/models/PostQuestion.js +0 -4
  61. package/dist/esm/models/PostResource.d.ts +6 -0
  62. package/dist/esm/models/PostResource.js +2 -0
  63. package/dist/esm/models/PutContentLibraryTag.d.ts +32 -0
  64. package/dist/esm/models/PutContentLibraryTag.js +43 -0
  65. package/dist/esm/models/PutLibraryQuiz.d.ts +6 -0
  66. package/dist/esm/models/PutLibraryQuiz.js +2 -0
  67. package/dist/esm/models/PutQuestion.d.ts +0 -6
  68. package/dist/esm/models/PutQuestion.js +0 -2
  69. package/dist/esm/models/PutResource.d.ts +6 -0
  70. package/dist/esm/models/PutResource.js +2 -0
  71. package/dist/esm/models/index.d.ts +10 -0
  72. package/dist/esm/models/index.js +10 -0
  73. package/dist/models/ContentLibraryTag.d.ts +104 -0
  74. package/dist/models/ContentLibraryTag.js +92 -0
  75. package/dist/models/ContentLibraryTagItem.d.ts +84 -0
  76. package/dist/models/ContentLibraryTagItem.js +84 -0
  77. package/dist/models/CourseShareAcceptError.d.ts +54 -0
  78. package/dist/models/CourseShareAcceptError.js +70 -0
  79. package/dist/models/GetContentLibraryTagItemList.d.ts +57 -0
  80. package/dist/models/GetContentLibraryTagItemList.js +67 -0
  81. package/dist/models/GetContentLibraryTagList.d.ts +57 -0
  82. package/dist/models/GetContentLibraryTagList.js +67 -0
  83. package/dist/models/GetCourseCatalogList.d.ts +57 -0
  84. package/dist/models/GetCourseCatalogList.js +67 -0
  85. package/dist/models/GetCourseShareList.d.ts +57 -0
  86. package/dist/models/GetCourseShareList.js +67 -0
  87. package/dist/models/GetLibraryQuiz.d.ts +7 -0
  88. package/dist/models/GetLibraryQuiz.js +5 -0
  89. package/dist/models/GetQuestion.d.ts +0 -6
  90. package/dist/models/GetQuestion.js +0 -4
  91. package/dist/models/GetQuestionListFilters.d.ts +0 -6
  92. package/dist/models/GetQuestionListFilters.js +0 -2
  93. package/dist/models/GetResource.d.ts +7 -0
  94. package/dist/models/GetResource.js +5 -0
  95. package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
  96. package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
  97. package/dist/models/LibraryQuizCriterion.d.ts +0 -6
  98. package/dist/models/LibraryQuizCriterion.js +0 -2
  99. package/dist/models/PostContentLibraryTag.d.ts +32 -0
  100. package/dist/models/PostContentLibraryTag.js +50 -0
  101. package/dist/models/PostContentLibraryTagMerge.d.ts +32 -0
  102. package/dist/models/PostContentLibraryTagMerge.js +50 -0
  103. package/dist/models/PostLibraryQuiz.d.ts +6 -0
  104. package/dist/models/PostLibraryQuiz.js +2 -0
  105. package/dist/models/PostQuestion.d.ts +0 -6
  106. package/dist/models/PostQuestion.js +0 -4
  107. package/dist/models/PostResource.d.ts +6 -0
  108. package/dist/models/PostResource.js +2 -0
  109. package/dist/models/PutContentLibraryTag.d.ts +32 -0
  110. package/dist/models/PutContentLibraryTag.js +50 -0
  111. package/dist/models/PutLibraryQuiz.d.ts +6 -0
  112. package/dist/models/PutLibraryQuiz.js +2 -0
  113. package/dist/models/PutQuestion.d.ts +0 -6
  114. package/dist/models/PutQuestion.js +0 -2
  115. package/dist/models/PutResource.d.ts +6 -0
  116. package/dist/models/PutResource.js +2 -0
  117. package/dist/models/index.d.ts +10 -0
  118. package/dist/models/index.js +10 -0
  119. package/docs/ContentLibraryApi.md +732 -90
  120. package/docs/ContentLibraryQuizApi.md +4 -1
  121. package/docs/ContentLibraryTag.md +58 -0
  122. package/docs/ContentLibraryTagItem.md +48 -0
  123. package/docs/CourseApi.md +1 -1
  124. package/docs/CourseCatalogApi.md +15 -4
  125. package/docs/CourseShareAcceptError.md +37 -0
  126. package/docs/CourseShareApi.md +29 -7
  127. package/docs/GetContentLibraryTagItemList.md +42 -0
  128. package/docs/GetContentLibraryTagList.md +42 -0
  129. package/docs/GetCourseCatalogList.md +42 -0
  130. package/docs/GetCourseShareList.md +42 -0
  131. package/docs/GetLibraryQuiz.md +2 -0
  132. package/docs/GetQuestion.md +0 -2
  133. package/docs/GetQuestionListFilters.md +0 -2
  134. package/docs/GetResource.md +2 -0
  135. package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -2
  136. package/docs/LibraryQuizCriterion.md +0 -2
  137. package/docs/PostContentLibraryTag.md +34 -0
  138. package/docs/PostContentLibraryTagMerge.md +34 -0
  139. package/docs/PostLibraryQuiz.md +2 -0
  140. package/docs/PostQuestion.md +0 -2
  141. package/docs/PostResource.md +2 -0
  142. package/docs/PutContentLibraryTag.md +34 -0
  143. package/docs/PutLibraryQuiz.md +2 -0
  144. package/docs/PutQuestion.md +0 -2
  145. package/docs/PutResource.md +2 -0
  146. package/docs/QuestionApi.md +1 -4
  147. package/package.json +1 -1
  148. package/src/apis/ContentLibraryApi.ts +575 -0
  149. package/src/apis/ContentLibraryQuizApi.ts +5 -0
  150. package/src/apis/CourseApi.ts +2 -2
  151. package/src/apis/CourseCatalogApi.ts +24 -6
  152. package/src/apis/CourseShareApi.ts +42 -12
  153. package/src/apis/QuestionApi.ts +0 -5
  154. package/src/models/ContentLibraryTag.ts +171 -0
  155. package/src/models/ContentLibraryTagItem.ts +153 -0
  156. package/src/models/CourseShareAcceptError.ts +94 -0
  157. package/src/models/GetContentLibraryTagItemList.ts +110 -0
  158. package/src/models/GetContentLibraryTagList.ts +110 -0
  159. package/src/models/GetCourseCatalogList.ts +110 -0
  160. package/src/models/GetCourseShareList.ts +110 -0
  161. package/src/models/GetLibraryQuiz.ts +16 -0
  162. package/src/models/GetQuestion.ts +0 -9
  163. package/src/models/GetQuestionListFilters.ts +0 -8
  164. package/src/models/GetResource.ts +16 -0
  165. package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -9
  166. package/src/models/LibraryQuizCriterion.ts +0 -8
  167. package/src/models/PostContentLibraryTag.ts +66 -0
  168. package/src/models/PostContentLibraryTagMerge.ts +66 -0
  169. package/src/models/PostLibraryQuiz.ts +8 -0
  170. package/src/models/PostQuestion.ts +0 -9
  171. package/src/models/PostResource.ts +8 -0
  172. package/src/models/PutContentLibraryTag.ts +66 -0
  173. package/src/models/PutLibraryQuiz.ts +8 -0
  174. package/src/models/PutQuestion.ts +0 -8
  175. package/src/models/PutResource.ts +8 -0
  176. package/src/models/index.ts +10 -0
@@ -21,23 +21,67 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
+ import { ContentLibraryTagFromJSON, } from '../models/ContentLibraryTag';
25
+ import { GetContentLibraryTagItemListFromJSON, } from '../models/GetContentLibraryTagItemList';
26
+ import { GetContentLibraryTagListFromJSON, } from '../models/GetContentLibraryTagList';
24
27
  import { GetContentLibraryVersionFromJSON, } from '../models/GetContentLibraryVersion';
25
28
  import { GetResourceFromJSON, } from '../models/GetResource';
26
29
  import { GetResourceListFromJSON, } from '../models/GetResourceList';
27
30
  import { GetResourceSessionFromJSON, } from '../models/GetResourceSession';
28
31
  import { GetResourceUsageFromJSON, } from '../models/GetResourceUsage';
29
32
  import { GetResourceVersionUploadFromJSON, } from '../models/GetResourceVersionUpload';
33
+ import { PostContentLibraryTagToJSON, } from '../models/PostContentLibraryTag';
34
+ import { PostContentLibraryTagMergeToJSON, } from '../models/PostContentLibraryTagMerge';
30
35
  import { PostResourceToJSON, } from '../models/PostResource';
31
36
  import { PostResourceVersionToJSON, } from '../models/PostResourceVersion';
32
37
  import { PostResourceVersionCompleteToJSON, } from '../models/PostResourceVersionComplete';
33
38
  import { PostResourceVersionSessionToJSON, } from '../models/PostResourceVersionSession';
34
39
  import { PostResourceVersionUploadToJSON, } from '../models/PostResourceVersionUpload';
40
+ import { PutContentLibraryTagToJSON, } from '../models/PutContentLibraryTag';
35
41
  import { PutResourceToJSON, } from '../models/PutResource';
36
42
  import { PutResourceVersionToJSON, } from '../models/PutResourceVersion';
37
43
  /**
38
44
  *
39
45
  */
40
46
  export class ContentLibraryApi extends runtime.BaseAPI {
47
+ /**
48
+ * Creates request options for deleteContentLibraryTag without sending the request
49
+ */
50
+ deleteContentLibraryTagRequestOpts(requestParameters) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ if (requestParameters['tagId'] == null) {
53
+ throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling deleteContentLibraryTag().');
54
+ }
55
+ const queryParameters = {};
56
+ const headerParameters = {};
57
+ let urlPath = `/content-library/tags/{tagId}`;
58
+ urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
59
+ return {
60
+ path: urlPath,
61
+ method: 'DELETE',
62
+ headers: headerParameters,
63
+ query: queryParameters,
64
+ };
65
+ });
66
+ }
67
+ /**
68
+ * Delete an archived, unused Content Library tag
69
+ */
70
+ deleteContentLibraryTagRaw(requestParameters, initOverrides) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ const requestOptions = yield this.deleteContentLibraryTagRequestOpts(requestParameters);
73
+ const response = yield this.request(requestOptions, initOverrides);
74
+ return new runtime.VoidApiResponse(response);
75
+ });
76
+ }
77
+ /**
78
+ * Delete an archived, unused Content Library tag
79
+ */
80
+ deleteContentLibraryTag(requestParameters, initOverrides) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ yield this.deleteContentLibraryTagRaw(requestParameters, initOverrides);
83
+ });
84
+ }
41
85
  /**
42
86
  * Creates request options for deleteResourceVersion without sending the request
43
87
  */
@@ -95,6 +139,9 @@ export class ContentLibraryApi extends runtime.BaseAPI {
95
139
  if (requestParameters['resourceType'] != null) {
96
140
  queryParameters['resource_type'] = requestParameters['resourceType'];
97
141
  }
142
+ if (requestParameters['tagId'] != null) {
143
+ queryParameters['tag_id'] = requestParameters['tagId'];
144
+ }
98
145
  if (requestParameters['page'] != null) {
99
146
  queryParameters['page'] = requestParameters['page'];
100
147
  }
@@ -130,6 +177,152 @@ export class ContentLibraryApi extends runtime.BaseAPI {
130
177
  return yield response.value();
131
178
  });
132
179
  }
180
+ /**
181
+ * Creates request options for getContentLibraryTag without sending the request
182
+ */
183
+ getContentLibraryTagRequestOpts(requestParameters) {
184
+ return __awaiter(this, void 0, void 0, function* () {
185
+ if (requestParameters['tagId'] == null) {
186
+ throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling getContentLibraryTag().');
187
+ }
188
+ const queryParameters = {};
189
+ const headerParameters = {};
190
+ let urlPath = `/content-library/tags/{tagId}`;
191
+ urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
192
+ return {
193
+ path: urlPath,
194
+ method: 'GET',
195
+ headers: headerParameters,
196
+ query: queryParameters,
197
+ };
198
+ });
199
+ }
200
+ /**
201
+ * Get a Content Library tag
202
+ */
203
+ getContentLibraryTagRaw(requestParameters, initOverrides) {
204
+ return __awaiter(this, void 0, void 0, function* () {
205
+ const requestOptions = yield this.getContentLibraryTagRequestOpts(requestParameters);
206
+ const response = yield this.request(requestOptions, initOverrides);
207
+ return new runtime.JSONApiResponse(response, (jsonValue) => ContentLibraryTagFromJSON(jsonValue));
208
+ });
209
+ }
210
+ /**
211
+ * Get a Content Library tag
212
+ */
213
+ getContentLibraryTag(requestParameters, initOverrides) {
214
+ return __awaiter(this, void 0, void 0, function* () {
215
+ const response = yield this.getContentLibraryTagRaw(requestParameters, initOverrides);
216
+ return yield response.value();
217
+ });
218
+ }
219
+ /**
220
+ * Creates request options for getContentLibraryTagItemList without sending the request
221
+ */
222
+ getContentLibraryTagItemListRequestOpts(requestParameters) {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ if (requestParameters['tagId'] == null) {
225
+ throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling getContentLibraryTagItemList().');
226
+ }
227
+ const queryParameters = {};
228
+ if (requestParameters['kind'] != null) {
229
+ queryParameters['kind'] = requestParameters['kind'];
230
+ }
231
+ if (requestParameters['search'] != null) {
232
+ queryParameters['search'] = requestParameters['search'];
233
+ }
234
+ if (requestParameters['includeArchived'] != null) {
235
+ queryParameters['include_archived'] = requestParameters['includeArchived'];
236
+ }
237
+ if (requestParameters['page'] != null) {
238
+ queryParameters['page'] = requestParameters['page'];
239
+ }
240
+ if (requestParameters['pageSize'] != null) {
241
+ queryParameters['pageSize'] = requestParameters['pageSize'];
242
+ }
243
+ const headerParameters = {};
244
+ let urlPath = `/content-library/tags/{tagId}/items`;
245
+ urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
246
+ return {
247
+ path: urlPath,
248
+ method: 'GET',
249
+ headers: headerParameters,
250
+ query: queryParameters,
251
+ };
252
+ });
253
+ }
254
+ /**
255
+ * List resources and quizzes associated with a tag
256
+ */
257
+ getContentLibraryTagItemListRaw(requestParameters, initOverrides) {
258
+ return __awaiter(this, void 0, void 0, function* () {
259
+ const requestOptions = yield this.getContentLibraryTagItemListRequestOpts(requestParameters);
260
+ const response = yield this.request(requestOptions, initOverrides);
261
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetContentLibraryTagItemListFromJSON(jsonValue));
262
+ });
263
+ }
264
+ /**
265
+ * List resources and quizzes associated with a tag
266
+ */
267
+ getContentLibraryTagItemList(requestParameters, initOverrides) {
268
+ return __awaiter(this, void 0, void 0, function* () {
269
+ const response = yield this.getContentLibraryTagItemListRaw(requestParameters, initOverrides);
270
+ return yield response.value();
271
+ });
272
+ }
273
+ /**
274
+ * Creates request options for getContentLibraryTagList without sending the request
275
+ */
276
+ getContentLibraryTagListRequestOpts(requestParameters) {
277
+ return __awaiter(this, void 0, void 0, function* () {
278
+ const queryParameters = {};
279
+ if (requestParameters['search'] != null) {
280
+ queryParameters['search'] = requestParameters['search'];
281
+ }
282
+ if (requestParameters['includeArchived'] != null) {
283
+ queryParameters['include_archived'] = requestParameters['includeArchived'];
284
+ }
285
+ if (requestParameters['orderBy'] != null) {
286
+ queryParameters['order_by'] = requestParameters['orderBy'];
287
+ }
288
+ if (requestParameters['order'] != null) {
289
+ queryParameters['order'] = requestParameters['order'];
290
+ }
291
+ if (requestParameters['page'] != null) {
292
+ queryParameters['page'] = requestParameters['page'];
293
+ }
294
+ if (requestParameters['pageSize'] != null) {
295
+ queryParameters['pageSize'] = requestParameters['pageSize'];
296
+ }
297
+ const headerParameters = {};
298
+ let urlPath = `/content-library/tags`;
299
+ return {
300
+ path: urlPath,
301
+ method: 'GET',
302
+ headers: headerParameters,
303
+ query: queryParameters,
304
+ };
305
+ });
306
+ }
307
+ /**
308
+ * List portal Content Library tags
309
+ */
310
+ getContentLibraryTagListRaw(requestParameters, initOverrides) {
311
+ return __awaiter(this, void 0, void 0, function* () {
312
+ const requestOptions = yield this.getContentLibraryTagListRequestOpts(requestParameters);
313
+ const response = yield this.request(requestOptions, initOverrides);
314
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetContentLibraryTagListFromJSON(jsonValue));
315
+ });
316
+ }
317
+ /**
318
+ * List portal Content Library tags
319
+ */
320
+ getContentLibraryTagList() {
321
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
322
+ const response = yield this.getContentLibraryTagListRaw(requestParameters, initOverrides);
323
+ return yield response.value();
324
+ });
325
+ }
133
326
  /**
134
327
  * Creates request options for getResource without sending the request
135
328
  */
@@ -181,6 +374,9 @@ export class ContentLibraryApi extends runtime.BaseAPI {
181
374
  if (requestParameters['resourceType'] != null) {
182
375
  queryParameters['resource_type'] = requestParameters['resourceType'];
183
376
  }
377
+ if (requestParameters['tagId'] != null) {
378
+ queryParameters['tag_id'] = requestParameters['tagId'];
379
+ }
184
380
  if (requestParameters['page'] != null) {
185
381
  queryParameters['page'] = requestParameters['page'];
186
382
  }
@@ -298,6 +494,168 @@ export class ContentLibraryApi extends runtime.BaseAPI {
298
494
  return yield response.value();
299
495
  });
300
496
  }
497
+ /**
498
+ * Creates request options for postContentLibraryTag without sending the request
499
+ */
500
+ postContentLibraryTagRequestOpts(requestParameters) {
501
+ return __awaiter(this, void 0, void 0, function* () {
502
+ if (requestParameters['postContentLibraryTag'] == null) {
503
+ throw new runtime.RequiredError('postContentLibraryTag', 'Required parameter "postContentLibraryTag" was null or undefined when calling postContentLibraryTag().');
504
+ }
505
+ const queryParameters = {};
506
+ const headerParameters = {};
507
+ headerParameters['Content-Type'] = 'application/json';
508
+ let urlPath = `/content-library/tags`;
509
+ return {
510
+ path: urlPath,
511
+ method: 'POST',
512
+ headers: headerParameters,
513
+ query: queryParameters,
514
+ body: PostContentLibraryTagToJSON(requestParameters['postContentLibraryTag']),
515
+ };
516
+ });
517
+ }
518
+ /**
519
+ * Create a portal Content Library tag
520
+ */
521
+ postContentLibraryTagRaw(requestParameters, initOverrides) {
522
+ return __awaiter(this, void 0, void 0, function* () {
523
+ const requestOptions = yield this.postContentLibraryTagRequestOpts(requestParameters);
524
+ const response = yield this.request(requestOptions, initOverrides);
525
+ return new runtime.JSONApiResponse(response, (jsonValue) => ContentLibraryTagFromJSON(jsonValue));
526
+ });
527
+ }
528
+ /**
529
+ * Create a portal Content Library tag
530
+ */
531
+ postContentLibraryTag(requestParameters, initOverrides) {
532
+ return __awaiter(this, void 0, void 0, function* () {
533
+ const response = yield this.postContentLibraryTagRaw(requestParameters, initOverrides);
534
+ return yield response.value();
535
+ });
536
+ }
537
+ /**
538
+ * Creates request options for postContentLibraryTagArchive without sending the request
539
+ */
540
+ postContentLibraryTagArchiveRequestOpts(requestParameters) {
541
+ return __awaiter(this, void 0, void 0, function* () {
542
+ if (requestParameters['tagId'] == null) {
543
+ throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling postContentLibraryTagArchive().');
544
+ }
545
+ const queryParameters = {};
546
+ const headerParameters = {};
547
+ let urlPath = `/content-library/tags/{tagId}/archive`;
548
+ urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
549
+ return {
550
+ path: urlPath,
551
+ method: 'POST',
552
+ headers: headerParameters,
553
+ query: queryParameters,
554
+ };
555
+ });
556
+ }
557
+ /**
558
+ * Archive a Content Library tag
559
+ */
560
+ postContentLibraryTagArchiveRaw(requestParameters, initOverrides) {
561
+ return __awaiter(this, void 0, void 0, function* () {
562
+ const requestOptions = yield this.postContentLibraryTagArchiveRequestOpts(requestParameters);
563
+ const response = yield this.request(requestOptions, initOverrides);
564
+ return new runtime.JSONApiResponse(response, (jsonValue) => ContentLibraryTagFromJSON(jsonValue));
565
+ });
566
+ }
567
+ /**
568
+ * Archive a Content Library tag
569
+ */
570
+ postContentLibraryTagArchive(requestParameters, initOverrides) {
571
+ return __awaiter(this, void 0, void 0, function* () {
572
+ const response = yield this.postContentLibraryTagArchiveRaw(requestParameters, initOverrides);
573
+ return yield response.value();
574
+ });
575
+ }
576
+ /**
577
+ * Creates request options for postContentLibraryTagMerge without sending the request
578
+ */
579
+ postContentLibraryTagMergeRequestOpts(requestParameters) {
580
+ return __awaiter(this, void 0, void 0, function* () {
581
+ if (requestParameters['tagId'] == null) {
582
+ throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling postContentLibraryTagMerge().');
583
+ }
584
+ if (requestParameters['postContentLibraryTagMerge'] == null) {
585
+ throw new runtime.RequiredError('postContentLibraryTagMerge', 'Required parameter "postContentLibraryTagMerge" was null or undefined when calling postContentLibraryTagMerge().');
586
+ }
587
+ const queryParameters = {};
588
+ const headerParameters = {};
589
+ headerParameters['Content-Type'] = 'application/json';
590
+ let urlPath = `/content-library/tags/{tagId}/merge`;
591
+ urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
592
+ return {
593
+ path: urlPath,
594
+ method: 'POST',
595
+ headers: headerParameters,
596
+ query: queryParameters,
597
+ body: PostContentLibraryTagMergeToJSON(requestParameters['postContentLibraryTagMerge']),
598
+ };
599
+ });
600
+ }
601
+ /**
602
+ * Merge a Content Library tag into another tag
603
+ */
604
+ postContentLibraryTagMergeRaw(requestParameters, initOverrides) {
605
+ return __awaiter(this, void 0, void 0, function* () {
606
+ const requestOptions = yield this.postContentLibraryTagMergeRequestOpts(requestParameters);
607
+ const response = yield this.request(requestOptions, initOverrides);
608
+ return new runtime.JSONApiResponse(response, (jsonValue) => ContentLibraryTagFromJSON(jsonValue));
609
+ });
610
+ }
611
+ /**
612
+ * Merge a Content Library tag into another tag
613
+ */
614
+ postContentLibraryTagMerge(requestParameters, initOverrides) {
615
+ return __awaiter(this, void 0, void 0, function* () {
616
+ const response = yield this.postContentLibraryTagMergeRaw(requestParameters, initOverrides);
617
+ return yield response.value();
618
+ });
619
+ }
620
+ /**
621
+ * Creates request options for postContentLibraryTagRestore without sending the request
622
+ */
623
+ postContentLibraryTagRestoreRequestOpts(requestParameters) {
624
+ return __awaiter(this, void 0, void 0, function* () {
625
+ if (requestParameters['tagId'] == null) {
626
+ throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling postContentLibraryTagRestore().');
627
+ }
628
+ const queryParameters = {};
629
+ const headerParameters = {};
630
+ let urlPath = `/content-library/tags/{tagId}/restore`;
631
+ urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
632
+ return {
633
+ path: urlPath,
634
+ method: 'POST',
635
+ headers: headerParameters,
636
+ query: queryParameters,
637
+ };
638
+ });
639
+ }
640
+ /**
641
+ * Restore a Content Library tag
642
+ */
643
+ postContentLibraryTagRestoreRaw(requestParameters, initOverrides) {
644
+ return __awaiter(this, void 0, void 0, function* () {
645
+ const requestOptions = yield this.postContentLibraryTagRestoreRequestOpts(requestParameters);
646
+ const response = yield this.request(requestOptions, initOverrides);
647
+ return new runtime.JSONApiResponse(response, (jsonValue) => ContentLibraryTagFromJSON(jsonValue));
648
+ });
649
+ }
650
+ /**
651
+ * Restore a Content Library tag
652
+ */
653
+ postContentLibraryTagRestore(requestParameters, initOverrides) {
654
+ return __awaiter(this, void 0, void 0, function* () {
655
+ const response = yield this.postContentLibraryTagRestoreRaw(requestParameters, initOverrides);
656
+ return yield response.value();
657
+ });
658
+ }
301
659
  /**
302
660
  * Creates request options for postResource without sending the request
303
661
  */
@@ -645,6 +1003,50 @@ export class ContentLibraryApi extends runtime.BaseAPI {
645
1003
  return yield response.value();
646
1004
  });
647
1005
  }
1006
+ /**
1007
+ * Creates request options for putContentLibraryTag without sending the request
1008
+ */
1009
+ putContentLibraryTagRequestOpts(requestParameters) {
1010
+ return __awaiter(this, void 0, void 0, function* () {
1011
+ if (requestParameters['tagId'] == null) {
1012
+ throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling putContentLibraryTag().');
1013
+ }
1014
+ if (requestParameters['putContentLibraryTag'] == null) {
1015
+ throw new runtime.RequiredError('putContentLibraryTag', 'Required parameter "putContentLibraryTag" was null or undefined when calling putContentLibraryTag().');
1016
+ }
1017
+ const queryParameters = {};
1018
+ const headerParameters = {};
1019
+ headerParameters['Content-Type'] = 'application/json';
1020
+ let urlPath = `/content-library/tags/{tagId}`;
1021
+ urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
1022
+ return {
1023
+ path: urlPath,
1024
+ method: 'PUT',
1025
+ headers: headerParameters,
1026
+ query: queryParameters,
1027
+ body: PutContentLibraryTagToJSON(requestParameters['putContentLibraryTag']),
1028
+ };
1029
+ });
1030
+ }
1031
+ /**
1032
+ * Rename a Content Library tag
1033
+ */
1034
+ putContentLibraryTagRaw(requestParameters, initOverrides) {
1035
+ return __awaiter(this, void 0, void 0, function* () {
1036
+ const requestOptions = yield this.putContentLibraryTagRequestOpts(requestParameters);
1037
+ const response = yield this.request(requestOptions, initOverrides);
1038
+ return new runtime.JSONApiResponse(response, (jsonValue) => ContentLibraryTagFromJSON(jsonValue));
1039
+ });
1040
+ }
1041
+ /**
1042
+ * Rename a Content Library tag
1043
+ */
1044
+ putContentLibraryTag(requestParameters, initOverrides) {
1045
+ return __awaiter(this, void 0, void 0, function* () {
1046
+ const response = yield this.putContentLibraryTagRaw(requestParameters, initOverrides);
1047
+ return yield response.value();
1048
+ });
1049
+ }
648
1050
  /**
649
1051
  * Creates request options for putResource without sending the request
650
1052
  */
@@ -785,3 +1187,24 @@ export class ContentLibraryApi extends runtime.BaseAPI {
785
1187
  });
786
1188
  }
787
1189
  }
1190
+ /**
1191
+ * @export
1192
+ */
1193
+ export const GetContentLibraryTagItemListKindEnum = {
1194
+ Resource: 'resource',
1195
+ Quiz: 'quiz'
1196
+ };
1197
+ /**
1198
+ * @export
1199
+ */
1200
+ export const GetContentLibraryTagListOrderByEnum = {
1201
+ Name: 'name',
1202
+ UsageCount: 'usage_count'
1203
+ };
1204
+ /**
1205
+ * @export
1206
+ */
1207
+ export const GetContentLibraryTagListOrderEnum = {
1208
+ Asc: 'asc',
1209
+ Desc: 'desc'
1210
+ };
@@ -53,6 +53,7 @@ export interface GetLibraryQuizCriteriaRequest {
53
53
  export interface GetLibraryQuizListRequest {
54
54
  search?: string;
55
55
  includeArchived?: boolean;
56
+ tagId?: string;
56
57
  page?: number;
57
58
  pageSize?: number;
58
59
  }
@@ -231,6 +231,9 @@ export class ContentLibraryQuizApi extends runtime.BaseAPI {
231
231
  if (requestParameters['includeArchived'] != null) {
232
232
  queryParameters['include_archived'] = requestParameters['includeArchived'];
233
233
  }
234
+ if (requestParameters['tagId'] != null) {
235
+ queryParameters['tag_id'] = requestParameters['tagId'];
236
+ }
234
237
  if (requestParameters['page'] != null) {
235
238
  queryParameters['page'] = requestParameters['page'];
236
239
  }
@@ -547,12 +547,12 @@ export declare class CourseApi extends runtime.BaseAPI {
547
547
  */
548
548
  postCourseExportRequestOpts(requestParameters: PostCourseExportRequest): Promise<runtime.RequestOpts>;
549
549
  /**
550
- * Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
550
+ * Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Visible resource placements in the selected sections are exported - Reusable quiz placements are skipped and do not block the export - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
551
551
  * Create a new SCORM export for a course
552
552
  */
553
553
  postCourseExportRaw(requestParameters: PostCourseExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseExport>>;
554
554
  /**
555
- * Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
555
+ * Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Visible resource placements in the selected sections are exported - Reusable quiz placements are skipped and do not block the export - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
556
556
  * Create a new SCORM export for a course
557
557
  */
558
558
  postCourseExport(requestParameters: PostCourseExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseExport>;
@@ -1178,7 +1178,7 @@ export class CourseApi extends runtime.BaseAPI {
1178
1178
  });
1179
1179
  }
1180
1180
  /**
1181
- * Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
1181
+ * Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Visible resource placements in the selected sections are exported - Reusable quiz placements are skipped and do not block the export - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
1182
1182
  * Create a new SCORM export for a course
1183
1183
  */
1184
1184
  postCourseExportRaw(requestParameters, initOverrides) {
@@ -1189,7 +1189,7 @@ export class CourseApi extends runtime.BaseAPI {
1189
1189
  });
1190
1190
  }
1191
1191
  /**
1192
- * Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
1192
+ * Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Visible resource placements in the selected sections are exported - Reusable quiz placements are skipped and do not block the export - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
1193
1193
  * Create a new SCORM export for a course
1194
1194
  */
1195
1195
  postCourseExport(requestParameters, initOverrides) {
@@ -12,6 +12,7 @@
12
12
  import * as runtime from '../runtime';
13
13
  import { type CourseCatalog } from '../models/CourseCatalog';
14
14
  import { type GetCourse } from '../models/GetCourse';
15
+ import { type GetCourseCatalogList } from '../models/GetCourseCatalogList';
15
16
  import { type PostCourseCatalog } from '../models/PostCourseCatalog';
16
17
  import { type PutCourseCatalog } from '../models/PutCourseCatalog';
17
18
  export interface AddCourseToCatalogRequest {
@@ -27,6 +28,10 @@ export interface GetCatalogCoursesRequest {
27
28
  export interface GetCourseCatalogRequest {
28
29
  catalogId: string;
29
30
  }
31
+ export interface GetCourseCatalogsRequest {
32
+ page?: number;
33
+ pageSize?: number;
34
+ }
30
35
  export interface PostCourseCatalogRequest {
31
36
  postCourseCatalog: PostCourseCatalog;
32
37
  }
@@ -93,15 +98,15 @@ export declare class CourseCatalogApi extends runtime.BaseAPI {
93
98
  /**
94
99
  * Creates request options for getCourseCatalogs without sending the request
95
100
  */
96
- getCourseCatalogsRequestOpts(): Promise<runtime.RequestOpts>;
101
+ getCourseCatalogsRequestOpts(requestParameters: GetCourseCatalogsRequest): Promise<runtime.RequestOpts>;
97
102
  /**
98
103
  * List catalogs in the current portal
99
104
  */
100
- getCourseCatalogsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CourseCatalog>>>;
105
+ getCourseCatalogsRaw(requestParameters: GetCourseCatalogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseCatalogList>>;
101
106
  /**
102
107
  * List catalogs in the current portal
103
108
  */
104
- getCourseCatalogs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CourseCatalog>>;
109
+ getCourseCatalogs(requestParameters?: GetCourseCatalogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseCatalogList>;
105
110
  /**
106
111
  * Creates request options for postCourseCatalog without sending the request
107
112
  */
@@ -23,6 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  import * as runtime from '../runtime';
24
24
  import { CourseCatalogFromJSON, } from '../models/CourseCatalog';
25
25
  import { GetCourseFromJSON, } from '../models/GetCourse';
26
+ import { GetCourseCatalogListFromJSON, } from '../models/GetCourseCatalogList';
26
27
  import { PostCourseCatalogToJSON, } from '../models/PostCourseCatalog';
27
28
  import { PutCourseCatalogToJSON, } from '../models/PutCourseCatalog';
28
29
  /**
@@ -190,9 +191,15 @@ export class CourseCatalogApi extends runtime.BaseAPI {
190
191
  /**
191
192
  * Creates request options for getCourseCatalogs without sending the request
192
193
  */
193
- getCourseCatalogsRequestOpts() {
194
+ getCourseCatalogsRequestOpts(requestParameters) {
194
195
  return __awaiter(this, void 0, void 0, function* () {
195
196
  const queryParameters = {};
197
+ if (requestParameters['page'] != null) {
198
+ queryParameters['page'] = requestParameters['page'];
199
+ }
200
+ if (requestParameters['pageSize'] != null) {
201
+ queryParameters['page_size'] = requestParameters['pageSize'];
202
+ }
196
203
  const headerParameters = {};
197
204
  let urlPath = `/catalogs`;
198
205
  return {
@@ -206,19 +213,19 @@ export class CourseCatalogApi extends runtime.BaseAPI {
206
213
  /**
207
214
  * List catalogs in the current portal
208
215
  */
209
- getCourseCatalogsRaw(initOverrides) {
216
+ getCourseCatalogsRaw(requestParameters, initOverrides) {
210
217
  return __awaiter(this, void 0, void 0, function* () {
211
- const requestOptions = yield this.getCourseCatalogsRequestOpts();
218
+ const requestOptions = yield this.getCourseCatalogsRequestOpts(requestParameters);
212
219
  const response = yield this.request(requestOptions, initOverrides);
213
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CourseCatalogFromJSON));
220
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseCatalogListFromJSON(jsonValue));
214
221
  });
215
222
  }
216
223
  /**
217
224
  * List catalogs in the current portal
218
225
  */
219
- getCourseCatalogs(initOverrides) {
220
- return __awaiter(this, void 0, void 0, function* () {
221
- const response = yield this.getCourseCatalogsRaw(initOverrides);
226
+ getCourseCatalogs() {
227
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
228
+ const response = yield this.getCourseCatalogsRaw(requestParameters, initOverrides);
222
229
  return yield response.value();
223
230
  });
224
231
  }