@easyedu/js-lsm-api 1.107.0 → 1.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +20 -0
- package/README.md +21 -2
- package/dist/apis/ContentLibraryApi.d.ts +179 -0
- package/dist/apis/ContentLibraryApi.js +424 -1
- package/dist/apis/ContentLibraryQuizApi.d.ts +1 -0
- package/dist/apis/ContentLibraryQuizApi.js +3 -0
- package/dist/apis/CourseApi.d.ts +2 -2
- package/dist/apis/CourseApi.js +2 -2
- package/dist/apis/CourseCatalogApi.d.ts +8 -3
- package/dist/apis/CourseCatalogApi.js +14 -7
- package/dist/apis/CourseShareApi.d.ts +12 -7
- package/dist/apis/CourseShareApi.js +20 -5
- package/dist/apis/QuestionApi.d.ts +0 -1
- package/dist/apis/QuestionApi.js +0 -3
- package/dist/esm/apis/ContentLibraryApi.d.ts +179 -0
- package/dist/esm/apis/ContentLibraryApi.js +423 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +1 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +3 -0
- package/dist/esm/apis/CourseApi.d.ts +2 -2
- package/dist/esm/apis/CourseApi.js +2 -2
- package/dist/esm/apis/CourseCatalogApi.d.ts +8 -3
- package/dist/esm/apis/CourseCatalogApi.js +14 -7
- package/dist/esm/apis/CourseShareApi.d.ts +12 -7
- package/dist/esm/apis/CourseShareApi.js +20 -5
- package/dist/esm/apis/QuestionApi.d.ts +0 -1
- package/dist/esm/apis/QuestionApi.js +0 -3
- package/dist/esm/models/ContentLibraryTag.d.ts +104 -0
- package/dist/esm/models/ContentLibraryTag.js +85 -0
- package/dist/esm/models/ContentLibraryTagItem.d.ts +84 -0
- package/dist/esm/models/ContentLibraryTagItem.js +76 -0
- package/dist/esm/models/CourseShareAcceptError.d.ts +54 -0
- package/dist/esm/models/CourseShareAcceptError.js +62 -0
- package/dist/esm/models/GetContentLibraryTagItemList.d.ts +57 -0
- package/dist/esm/models/GetContentLibraryTagItemList.js +60 -0
- package/dist/esm/models/GetContentLibraryTagList.d.ts +57 -0
- package/dist/esm/models/GetContentLibraryTagList.js +60 -0
- package/dist/esm/models/GetCourseCatalogList.d.ts +57 -0
- package/dist/esm/models/GetCourseCatalogList.js +60 -0
- package/dist/esm/models/GetCourseShareList.d.ts +57 -0
- package/dist/esm/models/GetCourseShareList.js +60 -0
- package/dist/esm/models/GetLibraryQuiz.d.ts +7 -0
- package/dist/esm/models/GetLibraryQuiz.js +5 -0
- package/dist/esm/models/GetQuestion.d.ts +0 -6
- package/dist/esm/models/GetQuestion.js +0 -4
- package/dist/esm/models/GetQuestionListFilters.d.ts +0 -6
- package/dist/esm/models/GetQuestionListFilters.js +0 -2
- package/dist/esm/models/GetResource.d.ts +7 -0
- package/dist/esm/models/GetResource.js +5 -0
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
- package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -6
- package/dist/esm/models/LibraryQuizCriterion.js +0 -2
- package/dist/esm/models/PostContentLibraryTag.d.ts +32 -0
- package/dist/esm/models/PostContentLibraryTag.js +43 -0
- package/dist/esm/models/PostContentLibraryTagMerge.d.ts +32 -0
- package/dist/esm/models/PostContentLibraryTagMerge.js +43 -0
- package/dist/esm/models/PostLibraryQuiz.d.ts +6 -0
- package/dist/esm/models/PostLibraryQuiz.js +2 -0
- package/dist/esm/models/PostQuestion.d.ts +0 -6
- package/dist/esm/models/PostQuestion.js +0 -4
- package/dist/esm/models/PostResource.d.ts +6 -0
- package/dist/esm/models/PostResource.js +2 -0
- package/dist/esm/models/PutContentLibraryTag.d.ts +32 -0
- package/dist/esm/models/PutContentLibraryTag.js +43 -0
- package/dist/esm/models/PutLibraryQuiz.d.ts +6 -0
- package/dist/esm/models/PutLibraryQuiz.js +2 -0
- package/dist/esm/models/PutQuestion.d.ts +0 -6
- package/dist/esm/models/PutQuestion.js +0 -2
- package/dist/esm/models/PutResource.d.ts +6 -0
- package/dist/esm/models/PutResource.js +2 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/ContentLibraryTag.d.ts +104 -0
- package/dist/models/ContentLibraryTag.js +92 -0
- package/dist/models/ContentLibraryTagItem.d.ts +84 -0
- package/dist/models/ContentLibraryTagItem.js +84 -0
- package/dist/models/CourseShareAcceptError.d.ts +54 -0
- package/dist/models/CourseShareAcceptError.js +70 -0
- package/dist/models/GetContentLibraryTagItemList.d.ts +57 -0
- package/dist/models/GetContentLibraryTagItemList.js +67 -0
- package/dist/models/GetContentLibraryTagList.d.ts +57 -0
- package/dist/models/GetContentLibraryTagList.js +67 -0
- package/dist/models/GetCourseCatalogList.d.ts +57 -0
- package/dist/models/GetCourseCatalogList.js +67 -0
- package/dist/models/GetCourseShareList.d.ts +57 -0
- package/dist/models/GetCourseShareList.js +67 -0
- package/dist/models/GetLibraryQuiz.d.ts +7 -0
- package/dist/models/GetLibraryQuiz.js +5 -0
- package/dist/models/GetQuestion.d.ts +0 -6
- package/dist/models/GetQuestion.js +0 -4
- package/dist/models/GetQuestionListFilters.d.ts +0 -6
- package/dist/models/GetQuestionListFilters.js +0 -2
- package/dist/models/GetResource.d.ts +7 -0
- package/dist/models/GetResource.js +5 -0
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
- package/dist/models/LibraryQuizCriterion.d.ts +0 -6
- package/dist/models/LibraryQuizCriterion.js +0 -2
- package/dist/models/PostContentLibraryTag.d.ts +32 -0
- package/dist/models/PostContentLibraryTag.js +50 -0
- package/dist/models/PostContentLibraryTagMerge.d.ts +32 -0
- package/dist/models/PostContentLibraryTagMerge.js +50 -0
- package/dist/models/PostLibraryQuiz.d.ts +6 -0
- package/dist/models/PostLibraryQuiz.js +2 -0
- package/dist/models/PostQuestion.d.ts +0 -6
- package/dist/models/PostQuestion.js +0 -4
- package/dist/models/PostResource.d.ts +6 -0
- package/dist/models/PostResource.js +2 -0
- package/dist/models/PutContentLibraryTag.d.ts +32 -0
- package/dist/models/PutContentLibraryTag.js +50 -0
- package/dist/models/PutLibraryQuiz.d.ts +6 -0
- package/dist/models/PutLibraryQuiz.js +2 -0
- package/dist/models/PutQuestion.d.ts +0 -6
- package/dist/models/PutQuestion.js +0 -2
- package/dist/models/PutResource.d.ts +6 -0
- package/dist/models/PutResource.js +2 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/docs/ContentLibraryApi.md +732 -90
- package/docs/ContentLibraryQuizApi.md +4 -1
- package/docs/ContentLibraryTag.md +58 -0
- package/docs/ContentLibraryTagItem.md +48 -0
- package/docs/CourseApi.md +1 -1
- package/docs/CourseCatalogApi.md +15 -4
- package/docs/CourseShareAcceptError.md +37 -0
- package/docs/CourseShareApi.md +29 -7
- package/docs/GetContentLibraryTagItemList.md +42 -0
- package/docs/GetContentLibraryTagList.md +42 -0
- package/docs/GetCourseCatalogList.md +42 -0
- package/docs/GetCourseShareList.md +42 -0
- package/docs/GetLibraryQuiz.md +2 -0
- package/docs/GetQuestion.md +0 -2
- package/docs/GetQuestionListFilters.md +0 -2
- package/docs/GetResource.md +2 -0
- package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -2
- package/docs/LibraryQuizCriterion.md +0 -2
- package/docs/PostContentLibraryTag.md +34 -0
- package/docs/PostContentLibraryTagMerge.md +34 -0
- package/docs/PostLibraryQuiz.md +2 -0
- package/docs/PostQuestion.md +0 -2
- package/docs/PostResource.md +2 -0
- package/docs/PutContentLibraryTag.md +34 -0
- package/docs/PutLibraryQuiz.md +2 -0
- package/docs/PutQuestion.md +0 -2
- package/docs/PutResource.md +2 -0
- package/docs/QuestionApi.md +1 -4
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +575 -0
- package/src/apis/ContentLibraryQuizApi.ts +5 -0
- package/src/apis/CourseApi.ts +2 -2
- package/src/apis/CourseCatalogApi.ts +24 -6
- package/src/apis/CourseShareApi.ts +42 -12
- package/src/apis/QuestionApi.ts +0 -5
- package/src/models/ContentLibraryTag.ts +171 -0
- package/src/models/ContentLibraryTagItem.ts +153 -0
- package/src/models/CourseShareAcceptError.ts +94 -0
- package/src/models/GetContentLibraryTagItemList.ts +110 -0
- package/src/models/GetContentLibraryTagList.ts +110 -0
- package/src/models/GetCourseCatalogList.ts +110 -0
- package/src/models/GetCourseShareList.ts +110 -0
- package/src/models/GetLibraryQuiz.ts +16 -0
- package/src/models/GetQuestion.ts +0 -9
- package/src/models/GetQuestionListFilters.ts +0 -8
- package/src/models/GetResource.ts +16 -0
- package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -9
- package/src/models/LibraryQuizCriterion.ts +0 -8
- package/src/models/PostContentLibraryTag.ts +66 -0
- package/src/models/PostContentLibraryTagMerge.ts +66 -0
- package/src/models/PostLibraryQuiz.ts +8 -0
- package/src/models/PostQuestion.ts +0 -9
- package/src/models/PostResource.ts +8 -0
- package/src/models/PutContentLibraryTag.ts +66 -0
- package/src/models/PutLibraryQuiz.ts +8 -0
- package/src/models/PutQuestion.ts +0 -8
- package/src/models/PutResource.ts +8 -0
- package/src/models/index.ts +10 -0
|
@@ -22,25 +22,69 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ContentLibraryApi = void 0;
|
|
25
|
+
exports.GetContentLibraryTagListOrderEnum = exports.GetContentLibraryTagListOrderByEnum = exports.GetContentLibraryTagItemListKindEnum = exports.ContentLibraryApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
+
const ContentLibraryTag_1 = require("../models/ContentLibraryTag");
|
|
28
|
+
const GetContentLibraryTagItemList_1 = require("../models/GetContentLibraryTagItemList");
|
|
29
|
+
const GetContentLibraryTagList_1 = require("../models/GetContentLibraryTagList");
|
|
27
30
|
const GetContentLibraryVersion_1 = require("../models/GetContentLibraryVersion");
|
|
28
31
|
const GetResource_1 = require("../models/GetResource");
|
|
29
32
|
const GetResourceList_1 = require("../models/GetResourceList");
|
|
30
33
|
const GetResourceSession_1 = require("../models/GetResourceSession");
|
|
31
34
|
const GetResourceUsage_1 = require("../models/GetResourceUsage");
|
|
32
35
|
const GetResourceVersionUpload_1 = require("../models/GetResourceVersionUpload");
|
|
36
|
+
const PostContentLibraryTag_1 = require("../models/PostContentLibraryTag");
|
|
37
|
+
const PostContentLibraryTagMerge_1 = require("../models/PostContentLibraryTagMerge");
|
|
33
38
|
const PostResource_1 = require("../models/PostResource");
|
|
34
39
|
const PostResourceVersion_1 = require("../models/PostResourceVersion");
|
|
35
40
|
const PostResourceVersionComplete_1 = require("../models/PostResourceVersionComplete");
|
|
36
41
|
const PostResourceVersionSession_1 = require("../models/PostResourceVersionSession");
|
|
37
42
|
const PostResourceVersionUpload_1 = require("../models/PostResourceVersionUpload");
|
|
43
|
+
const PutContentLibraryTag_1 = require("../models/PutContentLibraryTag");
|
|
38
44
|
const PutResource_1 = require("../models/PutResource");
|
|
39
45
|
const PutResourceVersion_1 = require("../models/PutResourceVersion");
|
|
40
46
|
/**
|
|
41
47
|
*
|
|
42
48
|
*/
|
|
43
49
|
class ContentLibraryApi extends runtime.BaseAPI {
|
|
50
|
+
/**
|
|
51
|
+
* Creates request options for deleteContentLibraryTag without sending the request
|
|
52
|
+
*/
|
|
53
|
+
deleteContentLibraryTagRequestOpts(requestParameters) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
if (requestParameters['tagId'] == null) {
|
|
56
|
+
throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling deleteContentLibraryTag().');
|
|
57
|
+
}
|
|
58
|
+
const queryParameters = {};
|
|
59
|
+
const headerParameters = {};
|
|
60
|
+
let urlPath = `/content-library/tags/{tagId}`;
|
|
61
|
+
urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
|
|
62
|
+
return {
|
|
63
|
+
path: urlPath,
|
|
64
|
+
method: 'DELETE',
|
|
65
|
+
headers: headerParameters,
|
|
66
|
+
query: queryParameters,
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Delete an archived, unused Content Library tag
|
|
72
|
+
*/
|
|
73
|
+
deleteContentLibraryTagRaw(requestParameters, initOverrides) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const requestOptions = yield this.deleteContentLibraryTagRequestOpts(requestParameters);
|
|
76
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
77
|
+
return new runtime.VoidApiResponse(response);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Delete an archived, unused Content Library tag
|
|
82
|
+
*/
|
|
83
|
+
deleteContentLibraryTag(requestParameters, initOverrides) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
yield this.deleteContentLibraryTagRaw(requestParameters, initOverrides);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
44
88
|
/**
|
|
45
89
|
* Creates request options for deleteResourceVersion without sending the request
|
|
46
90
|
*/
|
|
@@ -98,6 +142,9 @@ class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
98
142
|
if (requestParameters['resourceType'] != null) {
|
|
99
143
|
queryParameters['resource_type'] = requestParameters['resourceType'];
|
|
100
144
|
}
|
|
145
|
+
if (requestParameters['tagId'] != null) {
|
|
146
|
+
queryParameters['tag_id'] = requestParameters['tagId'];
|
|
147
|
+
}
|
|
101
148
|
if (requestParameters['page'] != null) {
|
|
102
149
|
queryParameters['page'] = requestParameters['page'];
|
|
103
150
|
}
|
|
@@ -133,6 +180,152 @@ class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
133
180
|
return yield response.value();
|
|
134
181
|
});
|
|
135
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* Creates request options for getContentLibraryTag without sending the request
|
|
185
|
+
*/
|
|
186
|
+
getContentLibraryTagRequestOpts(requestParameters) {
|
|
187
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
188
|
+
if (requestParameters['tagId'] == null) {
|
|
189
|
+
throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling getContentLibraryTag().');
|
|
190
|
+
}
|
|
191
|
+
const queryParameters = {};
|
|
192
|
+
const headerParameters = {};
|
|
193
|
+
let urlPath = `/content-library/tags/{tagId}`;
|
|
194
|
+
urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
|
|
195
|
+
return {
|
|
196
|
+
path: urlPath,
|
|
197
|
+
method: 'GET',
|
|
198
|
+
headers: headerParameters,
|
|
199
|
+
query: queryParameters,
|
|
200
|
+
};
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Get a Content Library tag
|
|
205
|
+
*/
|
|
206
|
+
getContentLibraryTagRaw(requestParameters, initOverrides) {
|
|
207
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
+
const requestOptions = yield this.getContentLibraryTagRequestOpts(requestParameters);
|
|
209
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
210
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ContentLibraryTag_1.ContentLibraryTagFromJSON)(jsonValue));
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Get a Content Library tag
|
|
215
|
+
*/
|
|
216
|
+
getContentLibraryTag(requestParameters, initOverrides) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
+
const response = yield this.getContentLibraryTagRaw(requestParameters, initOverrides);
|
|
219
|
+
return yield response.value();
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Creates request options for getContentLibraryTagItemList without sending the request
|
|
224
|
+
*/
|
|
225
|
+
getContentLibraryTagItemListRequestOpts(requestParameters) {
|
|
226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
+
if (requestParameters['tagId'] == null) {
|
|
228
|
+
throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling getContentLibraryTagItemList().');
|
|
229
|
+
}
|
|
230
|
+
const queryParameters = {};
|
|
231
|
+
if (requestParameters['kind'] != null) {
|
|
232
|
+
queryParameters['kind'] = requestParameters['kind'];
|
|
233
|
+
}
|
|
234
|
+
if (requestParameters['search'] != null) {
|
|
235
|
+
queryParameters['search'] = requestParameters['search'];
|
|
236
|
+
}
|
|
237
|
+
if (requestParameters['includeArchived'] != null) {
|
|
238
|
+
queryParameters['include_archived'] = requestParameters['includeArchived'];
|
|
239
|
+
}
|
|
240
|
+
if (requestParameters['page'] != null) {
|
|
241
|
+
queryParameters['page'] = requestParameters['page'];
|
|
242
|
+
}
|
|
243
|
+
if (requestParameters['pageSize'] != null) {
|
|
244
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
245
|
+
}
|
|
246
|
+
const headerParameters = {};
|
|
247
|
+
let urlPath = `/content-library/tags/{tagId}/items`;
|
|
248
|
+
urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
|
|
249
|
+
return {
|
|
250
|
+
path: urlPath,
|
|
251
|
+
method: 'GET',
|
|
252
|
+
headers: headerParameters,
|
|
253
|
+
query: queryParameters,
|
|
254
|
+
};
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* List resources and quizzes associated with a tag
|
|
259
|
+
*/
|
|
260
|
+
getContentLibraryTagItemListRaw(requestParameters, initOverrides) {
|
|
261
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
262
|
+
const requestOptions = yield this.getContentLibraryTagItemListRequestOpts(requestParameters);
|
|
263
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
264
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentLibraryTagItemList_1.GetContentLibraryTagItemListFromJSON)(jsonValue));
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* List resources and quizzes associated with a tag
|
|
269
|
+
*/
|
|
270
|
+
getContentLibraryTagItemList(requestParameters, initOverrides) {
|
|
271
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
272
|
+
const response = yield this.getContentLibraryTagItemListRaw(requestParameters, initOverrides);
|
|
273
|
+
return yield response.value();
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Creates request options for getContentLibraryTagList without sending the request
|
|
278
|
+
*/
|
|
279
|
+
getContentLibraryTagListRequestOpts(requestParameters) {
|
|
280
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
281
|
+
const queryParameters = {};
|
|
282
|
+
if (requestParameters['search'] != null) {
|
|
283
|
+
queryParameters['search'] = requestParameters['search'];
|
|
284
|
+
}
|
|
285
|
+
if (requestParameters['includeArchived'] != null) {
|
|
286
|
+
queryParameters['include_archived'] = requestParameters['includeArchived'];
|
|
287
|
+
}
|
|
288
|
+
if (requestParameters['orderBy'] != null) {
|
|
289
|
+
queryParameters['order_by'] = requestParameters['orderBy'];
|
|
290
|
+
}
|
|
291
|
+
if (requestParameters['order'] != null) {
|
|
292
|
+
queryParameters['order'] = requestParameters['order'];
|
|
293
|
+
}
|
|
294
|
+
if (requestParameters['page'] != null) {
|
|
295
|
+
queryParameters['page'] = requestParameters['page'];
|
|
296
|
+
}
|
|
297
|
+
if (requestParameters['pageSize'] != null) {
|
|
298
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
299
|
+
}
|
|
300
|
+
const headerParameters = {};
|
|
301
|
+
let urlPath = `/content-library/tags`;
|
|
302
|
+
return {
|
|
303
|
+
path: urlPath,
|
|
304
|
+
method: 'GET',
|
|
305
|
+
headers: headerParameters,
|
|
306
|
+
query: queryParameters,
|
|
307
|
+
};
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* List portal Content Library tags
|
|
312
|
+
*/
|
|
313
|
+
getContentLibraryTagListRaw(requestParameters, initOverrides) {
|
|
314
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
315
|
+
const requestOptions = yield this.getContentLibraryTagListRequestOpts(requestParameters);
|
|
316
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
317
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentLibraryTagList_1.GetContentLibraryTagListFromJSON)(jsonValue));
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* List portal Content Library tags
|
|
322
|
+
*/
|
|
323
|
+
getContentLibraryTagList() {
|
|
324
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
325
|
+
const response = yield this.getContentLibraryTagListRaw(requestParameters, initOverrides);
|
|
326
|
+
return yield response.value();
|
|
327
|
+
});
|
|
328
|
+
}
|
|
136
329
|
/**
|
|
137
330
|
* Creates request options for getResource without sending the request
|
|
138
331
|
*/
|
|
@@ -184,6 +377,9 @@ class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
184
377
|
if (requestParameters['resourceType'] != null) {
|
|
185
378
|
queryParameters['resource_type'] = requestParameters['resourceType'];
|
|
186
379
|
}
|
|
380
|
+
if (requestParameters['tagId'] != null) {
|
|
381
|
+
queryParameters['tag_id'] = requestParameters['tagId'];
|
|
382
|
+
}
|
|
187
383
|
if (requestParameters['page'] != null) {
|
|
188
384
|
queryParameters['page'] = requestParameters['page'];
|
|
189
385
|
}
|
|
@@ -301,6 +497,168 @@ class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
301
497
|
return yield response.value();
|
|
302
498
|
});
|
|
303
499
|
}
|
|
500
|
+
/**
|
|
501
|
+
* Creates request options for postContentLibraryTag without sending the request
|
|
502
|
+
*/
|
|
503
|
+
postContentLibraryTagRequestOpts(requestParameters) {
|
|
504
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
505
|
+
if (requestParameters['postContentLibraryTag'] == null) {
|
|
506
|
+
throw new runtime.RequiredError('postContentLibraryTag', 'Required parameter "postContentLibraryTag" was null or undefined when calling postContentLibraryTag().');
|
|
507
|
+
}
|
|
508
|
+
const queryParameters = {};
|
|
509
|
+
const headerParameters = {};
|
|
510
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
511
|
+
let urlPath = `/content-library/tags`;
|
|
512
|
+
return {
|
|
513
|
+
path: urlPath,
|
|
514
|
+
method: 'POST',
|
|
515
|
+
headers: headerParameters,
|
|
516
|
+
query: queryParameters,
|
|
517
|
+
body: (0, PostContentLibraryTag_1.PostContentLibraryTagToJSON)(requestParameters['postContentLibraryTag']),
|
|
518
|
+
};
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Create a portal Content Library tag
|
|
523
|
+
*/
|
|
524
|
+
postContentLibraryTagRaw(requestParameters, initOverrides) {
|
|
525
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
526
|
+
const requestOptions = yield this.postContentLibraryTagRequestOpts(requestParameters);
|
|
527
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
528
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ContentLibraryTag_1.ContentLibraryTagFromJSON)(jsonValue));
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Create a portal Content Library tag
|
|
533
|
+
*/
|
|
534
|
+
postContentLibraryTag(requestParameters, initOverrides) {
|
|
535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
536
|
+
const response = yield this.postContentLibraryTagRaw(requestParameters, initOverrides);
|
|
537
|
+
return yield response.value();
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Creates request options for postContentLibraryTagArchive without sending the request
|
|
542
|
+
*/
|
|
543
|
+
postContentLibraryTagArchiveRequestOpts(requestParameters) {
|
|
544
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
545
|
+
if (requestParameters['tagId'] == null) {
|
|
546
|
+
throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling postContentLibraryTagArchive().');
|
|
547
|
+
}
|
|
548
|
+
const queryParameters = {};
|
|
549
|
+
const headerParameters = {};
|
|
550
|
+
let urlPath = `/content-library/tags/{tagId}/archive`;
|
|
551
|
+
urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
|
|
552
|
+
return {
|
|
553
|
+
path: urlPath,
|
|
554
|
+
method: 'POST',
|
|
555
|
+
headers: headerParameters,
|
|
556
|
+
query: queryParameters,
|
|
557
|
+
};
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Archive a Content Library tag
|
|
562
|
+
*/
|
|
563
|
+
postContentLibraryTagArchiveRaw(requestParameters, initOverrides) {
|
|
564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
+
const requestOptions = yield this.postContentLibraryTagArchiveRequestOpts(requestParameters);
|
|
566
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
567
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ContentLibraryTag_1.ContentLibraryTagFromJSON)(jsonValue));
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* Archive a Content Library tag
|
|
572
|
+
*/
|
|
573
|
+
postContentLibraryTagArchive(requestParameters, initOverrides) {
|
|
574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
+
const response = yield this.postContentLibraryTagArchiveRaw(requestParameters, initOverrides);
|
|
576
|
+
return yield response.value();
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* Creates request options for postContentLibraryTagMerge without sending the request
|
|
581
|
+
*/
|
|
582
|
+
postContentLibraryTagMergeRequestOpts(requestParameters) {
|
|
583
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
584
|
+
if (requestParameters['tagId'] == null) {
|
|
585
|
+
throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling postContentLibraryTagMerge().');
|
|
586
|
+
}
|
|
587
|
+
if (requestParameters['postContentLibraryTagMerge'] == null) {
|
|
588
|
+
throw new runtime.RequiredError('postContentLibraryTagMerge', 'Required parameter "postContentLibraryTagMerge" was null or undefined when calling postContentLibraryTagMerge().');
|
|
589
|
+
}
|
|
590
|
+
const queryParameters = {};
|
|
591
|
+
const headerParameters = {};
|
|
592
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
593
|
+
let urlPath = `/content-library/tags/{tagId}/merge`;
|
|
594
|
+
urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
|
|
595
|
+
return {
|
|
596
|
+
path: urlPath,
|
|
597
|
+
method: 'POST',
|
|
598
|
+
headers: headerParameters,
|
|
599
|
+
query: queryParameters,
|
|
600
|
+
body: (0, PostContentLibraryTagMerge_1.PostContentLibraryTagMergeToJSON)(requestParameters['postContentLibraryTagMerge']),
|
|
601
|
+
};
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* Merge a Content Library tag into another tag
|
|
606
|
+
*/
|
|
607
|
+
postContentLibraryTagMergeRaw(requestParameters, initOverrides) {
|
|
608
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
609
|
+
const requestOptions = yield this.postContentLibraryTagMergeRequestOpts(requestParameters);
|
|
610
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
611
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ContentLibraryTag_1.ContentLibraryTagFromJSON)(jsonValue));
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Merge a Content Library tag into another tag
|
|
616
|
+
*/
|
|
617
|
+
postContentLibraryTagMerge(requestParameters, initOverrides) {
|
|
618
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
619
|
+
const response = yield this.postContentLibraryTagMergeRaw(requestParameters, initOverrides);
|
|
620
|
+
return yield response.value();
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Creates request options for postContentLibraryTagRestore without sending the request
|
|
625
|
+
*/
|
|
626
|
+
postContentLibraryTagRestoreRequestOpts(requestParameters) {
|
|
627
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
628
|
+
if (requestParameters['tagId'] == null) {
|
|
629
|
+
throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling postContentLibraryTagRestore().');
|
|
630
|
+
}
|
|
631
|
+
const queryParameters = {};
|
|
632
|
+
const headerParameters = {};
|
|
633
|
+
let urlPath = `/content-library/tags/{tagId}/restore`;
|
|
634
|
+
urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
|
|
635
|
+
return {
|
|
636
|
+
path: urlPath,
|
|
637
|
+
method: 'POST',
|
|
638
|
+
headers: headerParameters,
|
|
639
|
+
query: queryParameters,
|
|
640
|
+
};
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* Restore a Content Library tag
|
|
645
|
+
*/
|
|
646
|
+
postContentLibraryTagRestoreRaw(requestParameters, initOverrides) {
|
|
647
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
648
|
+
const requestOptions = yield this.postContentLibraryTagRestoreRequestOpts(requestParameters);
|
|
649
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
650
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ContentLibraryTag_1.ContentLibraryTagFromJSON)(jsonValue));
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* Restore a Content Library tag
|
|
655
|
+
*/
|
|
656
|
+
postContentLibraryTagRestore(requestParameters, initOverrides) {
|
|
657
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
658
|
+
const response = yield this.postContentLibraryTagRestoreRaw(requestParameters, initOverrides);
|
|
659
|
+
return yield response.value();
|
|
660
|
+
});
|
|
661
|
+
}
|
|
304
662
|
/**
|
|
305
663
|
* Creates request options for postResource without sending the request
|
|
306
664
|
*/
|
|
@@ -648,6 +1006,50 @@ class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
648
1006
|
return yield response.value();
|
|
649
1007
|
});
|
|
650
1008
|
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Creates request options for putContentLibraryTag without sending the request
|
|
1011
|
+
*/
|
|
1012
|
+
putContentLibraryTagRequestOpts(requestParameters) {
|
|
1013
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1014
|
+
if (requestParameters['tagId'] == null) {
|
|
1015
|
+
throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling putContentLibraryTag().');
|
|
1016
|
+
}
|
|
1017
|
+
if (requestParameters['putContentLibraryTag'] == null) {
|
|
1018
|
+
throw new runtime.RequiredError('putContentLibraryTag', 'Required parameter "putContentLibraryTag" was null or undefined when calling putContentLibraryTag().');
|
|
1019
|
+
}
|
|
1020
|
+
const queryParameters = {};
|
|
1021
|
+
const headerParameters = {};
|
|
1022
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1023
|
+
let urlPath = `/content-library/tags/{tagId}`;
|
|
1024
|
+
urlPath = urlPath.replace('{tagId}', encodeURIComponent(String(requestParameters['tagId'])));
|
|
1025
|
+
return {
|
|
1026
|
+
path: urlPath,
|
|
1027
|
+
method: 'PUT',
|
|
1028
|
+
headers: headerParameters,
|
|
1029
|
+
query: queryParameters,
|
|
1030
|
+
body: (0, PutContentLibraryTag_1.PutContentLibraryTagToJSON)(requestParameters['putContentLibraryTag']),
|
|
1031
|
+
};
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* Rename a Content Library tag
|
|
1036
|
+
*/
|
|
1037
|
+
putContentLibraryTagRaw(requestParameters, initOverrides) {
|
|
1038
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1039
|
+
const requestOptions = yield this.putContentLibraryTagRequestOpts(requestParameters);
|
|
1040
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1041
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ContentLibraryTag_1.ContentLibraryTagFromJSON)(jsonValue));
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Rename a Content Library tag
|
|
1046
|
+
*/
|
|
1047
|
+
putContentLibraryTag(requestParameters, initOverrides) {
|
|
1048
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1049
|
+
const response = yield this.putContentLibraryTagRaw(requestParameters, initOverrides);
|
|
1050
|
+
return yield response.value();
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
651
1053
|
/**
|
|
652
1054
|
* Creates request options for putResource without sending the request
|
|
653
1055
|
*/
|
|
@@ -789,3 +1191,24 @@ class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
789
1191
|
}
|
|
790
1192
|
}
|
|
791
1193
|
exports.ContentLibraryApi = ContentLibraryApi;
|
|
1194
|
+
/**
|
|
1195
|
+
* @export
|
|
1196
|
+
*/
|
|
1197
|
+
exports.GetContentLibraryTagItemListKindEnum = {
|
|
1198
|
+
Resource: 'resource',
|
|
1199
|
+
Quiz: 'quiz'
|
|
1200
|
+
};
|
|
1201
|
+
/**
|
|
1202
|
+
* @export
|
|
1203
|
+
*/
|
|
1204
|
+
exports.GetContentLibraryTagListOrderByEnum = {
|
|
1205
|
+
Name: 'name',
|
|
1206
|
+
UsageCount: 'usage_count'
|
|
1207
|
+
};
|
|
1208
|
+
/**
|
|
1209
|
+
* @export
|
|
1210
|
+
*/
|
|
1211
|
+
exports.GetContentLibraryTagListOrderEnum = {
|
|
1212
|
+
Asc: 'asc',
|
|
1213
|
+
Desc: 'desc'
|
|
1214
|
+
};
|
|
@@ -234,6 +234,9 @@ class ContentLibraryQuizApi extends runtime.BaseAPI {
|
|
|
234
234
|
if (requestParameters['includeArchived'] != null) {
|
|
235
235
|
queryParameters['include_archived'] = requestParameters['includeArchived'];
|
|
236
236
|
}
|
|
237
|
+
if (requestParameters['tagId'] != null) {
|
|
238
|
+
queryParameters['tag_id'] = requestParameters['tagId'];
|
|
239
|
+
}
|
|
237
240
|
if (requestParameters['page'] != null) {
|
|
238
241
|
queryParameters['page'] = requestParameters['page'];
|
|
239
242
|
}
|
package/dist/apis/CourseApi.d.ts
CHANGED
|
@@ -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>;
|
package/dist/apis/CourseApi.js
CHANGED
|
@@ -1181,7 +1181,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
1181
1181
|
});
|
|
1182
1182
|
}
|
|
1183
1183
|
/**
|
|
1184
|
-
* 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
|
|
1184
|
+
* 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
|
|
1185
1185
|
* Create a new SCORM export for a course
|
|
1186
1186
|
*/
|
|
1187
1187
|
postCourseExportRaw(requestParameters, initOverrides) {
|
|
@@ -1192,7 +1192,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
1192
1192
|
});
|
|
1193
1193
|
}
|
|
1194
1194
|
/**
|
|
1195
|
-
* 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
|
|
1195
|
+
* 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
|
|
1196
1196
|
* Create a new SCORM export for a course
|
|
1197
1197
|
*/
|
|
1198
1198
|
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<
|
|
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<
|
|
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
|
*/
|
|
@@ -26,6 +26,7 @@ exports.CourseCatalogApi = void 0;
|
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const CourseCatalog_1 = require("../models/CourseCatalog");
|
|
28
28
|
const GetCourse_1 = require("../models/GetCourse");
|
|
29
|
+
const GetCourseCatalogList_1 = require("../models/GetCourseCatalogList");
|
|
29
30
|
const PostCourseCatalog_1 = require("../models/PostCourseCatalog");
|
|
30
31
|
const PutCourseCatalog_1 = require("../models/PutCourseCatalog");
|
|
31
32
|
/**
|
|
@@ -193,9 +194,15 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
193
194
|
/**
|
|
194
195
|
* Creates request options for getCourseCatalogs without sending the request
|
|
195
196
|
*/
|
|
196
|
-
getCourseCatalogsRequestOpts() {
|
|
197
|
+
getCourseCatalogsRequestOpts(requestParameters) {
|
|
197
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
198
199
|
const queryParameters = {};
|
|
200
|
+
if (requestParameters['page'] != null) {
|
|
201
|
+
queryParameters['page'] = requestParameters['page'];
|
|
202
|
+
}
|
|
203
|
+
if (requestParameters['pageSize'] != null) {
|
|
204
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
205
|
+
}
|
|
199
206
|
const headerParameters = {};
|
|
200
207
|
let urlPath = `/catalogs`;
|
|
201
208
|
return {
|
|
@@ -209,19 +216,19 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
209
216
|
/**
|
|
210
217
|
* List catalogs in the current portal
|
|
211
218
|
*/
|
|
212
|
-
getCourseCatalogsRaw(initOverrides) {
|
|
219
|
+
getCourseCatalogsRaw(requestParameters, initOverrides) {
|
|
213
220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
-
const requestOptions = yield this.getCourseCatalogsRequestOpts();
|
|
221
|
+
const requestOptions = yield this.getCourseCatalogsRequestOpts(requestParameters);
|
|
215
222
|
const response = yield this.request(requestOptions, initOverrides);
|
|
216
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
223
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseCatalogList_1.GetCourseCatalogListFromJSON)(jsonValue));
|
|
217
224
|
});
|
|
218
225
|
}
|
|
219
226
|
/**
|
|
220
227
|
* List catalogs in the current portal
|
|
221
228
|
*/
|
|
222
|
-
getCourseCatalogs(
|
|
223
|
-
return __awaiter(this,
|
|
224
|
-
const response = yield this.getCourseCatalogsRaw(initOverrides);
|
|
229
|
+
getCourseCatalogs() {
|
|
230
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
231
|
+
const response = yield this.getCourseCatalogsRaw(requestParameters, initOverrides);
|
|
225
232
|
return yield response.value();
|
|
226
233
|
});
|
|
227
234
|
}
|