ch-admin-api-client-typescript 5.43.20 → 5.45.4
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/lib/api/appointments-api.d.ts +52 -52
- package/lib/api/appointments-api.js +52 -52
- package/lib/api/curation-categories-api.d.ts +385 -0
- package/lib/api/curation-categories-api.d.ts.map +1 -0
- package/lib/api/{search-curations-api.js → curation-categories-api.js} +192 -175
- package/lib/api/curations-api.d.ts +49 -168
- package/lib/api/curations-api.d.ts.map +1 -1
- package/lib/api/curations-api.js +63 -259
- package/lib/api/form-results-api.d.ts +20 -20
- package/lib/api/form-results-api.js +20 -20
- package/lib/api/hospitals-api.d.ts +25 -6
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +30 -18
- package/lib/api/patient-affiliations-api.d.ts +8 -8
- package/lib/api/patient-affiliations-api.js +8 -8
- package/lib/api/patients-api.d.ts +48 -48
- package/lib/api/patients-api.js +48 -48
- package/lib/api/survey-results-api.d.ts +16 -16
- package/lib/api/survey-results-api.js +16 -16
- package/lib/api/whats-app-template-media-api.d.ts +321 -0
- package/lib/api/whats-app-template-media-api.d.ts.map +1 -0
- package/lib/api/whats-app-template-media-api.js +618 -0
- package/lib/api.d.ts +2 -1
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +2 -1
- package/lib/models/chadmin-model.d.ts +0 -7
- package/lib/models/chadmin-model.d.ts.map +1 -1
- package/lib/models/chmanager-model.d.ts +0 -7
- package/lib/models/chmanager-model.d.ts.map +1 -1
- package/lib/models/content-manager-model.d.ts +0 -7
- package/lib/models/content-manager-model.d.ts.map +1 -1
- package/lib/models/create-curation-category-command.d.ts +37 -0
- package/lib/models/create-curation-category-command.d.ts.map +1 -0
- package/lib/models/create-curation-command-translation.d.ts +37 -0
- package/lib/models/create-curation-command-translation.d.ts.map +1 -0
- package/lib/models/create-curation-command.d.ts +4 -57
- package/lib/models/create-curation-command.d.ts.map +1 -1
- package/lib/models/create-doctor-command.d.ts +6 -0
- package/lib/models/create-doctor-command.d.ts.map +1 -1
- package/lib/models/create-patient-command.d.ts +6 -0
- package/lib/models/create-patient-command.d.ts.map +1 -1
- package/lib/models/create-whats-app-template-media-command.d.ts +45 -0
- package/lib/models/create-whats-app-template-media-command.d.ts.map +1 -0
- package/lib/models/curation-categories-model.d.ts +33 -0
- package/lib/models/curation-categories-model.d.ts.map +1 -0
- package/lib/models/curation-category-model.d.ts +49 -0
- package/lib/models/curation-category-model.d.ts.map +1 -0
- package/lib/models/curation-category-model.js +15 -0
- package/lib/models/curation-model.d.ts +8 -51
- package/lib/models/curation-model.d.ts.map +1 -1
- package/lib/models/delete-whats-app-template-media-by-tag-command.d.ts +31 -0
- package/lib/models/delete-whats-app-template-media-by-tag-command.d.ts.map +1 -0
- package/lib/models/delete-whats-app-template-media-by-tag-command.js +15 -0
- package/lib/models/doctor-model.d.ts +0 -7
- package/lib/models/doctor-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +15 -5
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +15 -5
- package/lib/models/manager-model.d.ts +0 -7
- package/lib/models/manager-model.d.ts.map +1 -1
- package/lib/models/{user-type.js → meta-media-type.d.ts} +8 -14
- package/lib/models/meta-media-type.d.ts.map +1 -0
- package/lib/models/meta-media-type.js +28 -0
- package/lib/models/patient-manager-model.d.ts +0 -7
- package/lib/models/patient-manager-model.d.ts.map +1 -1
- package/lib/models/patient-model.d.ts +0 -7
- package/lib/models/patient-model.d.ts.map +1 -1
- package/lib/models/translate-curation-category-command.d.ts +31 -0
- package/lib/models/translate-curation-category-command.d.ts.map +1 -0
- package/lib/models/translate-curation-category-command.js +15 -0
- package/lib/models/translate-curation-command.d.ts +0 -13
- package/lib/models/translate-curation-command.d.ts.map +1 -1
- package/lib/models/update-curation-category-command-translation.d.ts +31 -0
- package/lib/models/update-curation-category-command-translation.d.ts.map +1 -0
- package/lib/models/update-curation-category-command-translation.js +15 -0
- package/lib/models/update-curation-category-command.d.ts +38 -0
- package/lib/models/update-curation-category-command.d.ts.map +1 -0
- package/lib/models/update-curation-category-command.js +15 -0
- package/lib/models/update-curation-command-translation.d.ts +37 -0
- package/lib/models/update-curation-command-translation.d.ts.map +1 -0
- package/lib/models/update-curation-command-translation.js +15 -0
- package/lib/models/update-curation-command.d.ts +5 -46
- package/lib/models/update-curation-command.d.ts.map +1 -1
- package/lib/models/user-model.d.ts +0 -7
- package/lib/models/user-model.d.ts.map +1 -1
- package/lib/models/whats-app-template-media-item-model.d.ts +76 -0
- package/lib/models/whats-app-template-media-item-model.d.ts.map +1 -0
- package/lib/models/whats-app-template-media-item-model.js +15 -0
- package/lib/models/whats-app-template-media-model.d.ts +76 -0
- package/lib/models/whats-app-template-media-model.d.ts.map +1 -0
- package/lib/models/whats-app-template-media-model.js +15 -0
- package/lib/models/{search-curation-primary-item-model.d.ts → whats-app-template-media-tags-model.d.ts} +7 -7
- package/lib/models/whats-app-template-media-tags-model.d.ts.map +1 -0
- package/lib/models/whats-app-template-media-tags-model.js +15 -0
- package/lib/models/whats-app-template-medias-model.d.ts +33 -0
- package/lib/models/whats-app-template-medias-model.d.ts.map +1 -0
- package/lib/models/whats-app-template-medias-model.js +15 -0
- package/package.json +1 -1
- package/lib/api/search-curations-api.d.ts +0 -364
- package/lib/api/search-curations-api.d.ts.map +0 -1
- package/lib/models/save-search-curations-command.d.ts +0 -26
- package/lib/models/save-search-curations-command.d.ts.map +0 -1
- package/lib/models/search-curation-item-input-model.d.ts +0 -92
- package/lib/models/search-curation-item-input-model.d.ts.map +0 -1
- package/lib/models/search-curation-item-model.d.ts +0 -98
- package/lib/models/search-curation-item-model.d.ts.map +0 -1
- package/lib/models/search-curation-primary-item-model.d.ts.map +0 -1
- package/lib/models/user-type.d.ts +0 -28
- package/lib/models/user-type.d.ts.map +0 -1
- /package/lib/models/{save-search-curations-command.js → create-curation-category-command.js} +0 -0
- /package/lib/models/{search-curation-item-input-model.js → create-curation-command-translation.js} +0 -0
- /package/lib/models/{search-curation-item-model.js → create-whats-app-template-media-command.js} +0 -0
- /package/lib/models/{search-curation-primary-item-model.js → curation-categories-model.js} +0 -0
package/lib/api/curations-api.js
CHANGED
|
@@ -103,18 +103,17 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
return {
|
|
104
104
|
/**
|
|
105
105
|
*
|
|
106
|
-
* @summary Delete CurationItem (Auth
|
|
106
|
+
* @summary Delete CurationItem (Auth roles: Admin,Manager,ContentManager)
|
|
107
107
|
* @param {string} curationId
|
|
108
|
-
* @param {boolean} [isPermanent]
|
|
109
108
|
* @param {*} [options] Override http request option.
|
|
110
109
|
* @throws {RequiredError}
|
|
111
110
|
*/
|
|
112
|
-
apiV1CurationsCurationIdDelete: function (curationId_1
|
|
111
|
+
apiV1CurationsCurationIdDelete: function (curationId_1) {
|
|
113
112
|
var args_1 = [];
|
|
114
|
-
for (var _i =
|
|
115
|
-
args_1[_i -
|
|
113
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
114
|
+
args_1[_i - 1] = arguments[_i];
|
|
116
115
|
}
|
|
117
|
-
return __awaiter(_this, __spreadArray([curationId_1
|
|
116
|
+
return __awaiter(_this, __spreadArray([curationId_1], args_1, true), void 0, function (curationId, options) {
|
|
118
117
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
119
118
|
if (options === void 0) { options = {}; }
|
|
120
119
|
return __generator(this, function (_a) {
|
|
@@ -138,9 +137,6 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
138
137
|
// authentication oauth2 required
|
|
139
138
|
// oauth required
|
|
140
139
|
_a.sent();
|
|
141
|
-
if (isPermanent !== undefined) {
|
|
142
|
-
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
143
|
-
}
|
|
144
140
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
141
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
142
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -154,9 +150,9 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
154
150
|
},
|
|
155
151
|
/**
|
|
156
152
|
*
|
|
157
|
-
* @summary Get Curation by id (Auth
|
|
153
|
+
* @summary Get Curation by id (Auth roles: Admin,Manager,ContentManager)
|
|
158
154
|
* @param {string} curationId
|
|
159
|
-
* @param {string}
|
|
155
|
+
* @param {string} languageCode
|
|
160
156
|
* @param {*} [options] Override http request option.
|
|
161
157
|
* @throws {RequiredError}
|
|
162
158
|
*/
|
|
@@ -173,6 +169,8 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
173
169
|
case 0:
|
|
174
170
|
// verify required parameter 'curationId' is not null or undefined
|
|
175
171
|
(0, common_1.assertParamExists)('apiV1CurationsCurationIdGet', 'curationId', curationId);
|
|
172
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
173
|
+
(0, common_1.assertParamExists)('apiV1CurationsCurationIdGet', 'languageCode', languageCode);
|
|
176
174
|
localVarPath = "/api/v1/curations/{curationId}"
|
|
177
175
|
.replace("{".concat("curationId", "}"), encodeURIComponent(String(curationId)));
|
|
178
176
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -190,7 +188,7 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
190
188
|
// oauth required
|
|
191
189
|
_a.sent();
|
|
192
190
|
if (languageCode !== undefined) {
|
|
193
|
-
localVarQueryParameter['
|
|
191
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
194
192
|
}
|
|
195
193
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
196
194
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -205,7 +203,7 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
205
203
|
},
|
|
206
204
|
/**
|
|
207
205
|
*
|
|
208
|
-
* @summary Update Curation. (Auth
|
|
206
|
+
* @summary Update Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
209
207
|
* @param {string} curationId
|
|
210
208
|
* @param {UpdateCurationCommand} [updateCurationCommand]
|
|
211
209
|
* @param {*} [options] Override http request option.
|
|
@@ -255,101 +253,7 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
255
253
|
},
|
|
256
254
|
/**
|
|
257
255
|
*
|
|
258
|
-
* @summary
|
|
259
|
-
* @param {string} curationId
|
|
260
|
-
* @param {*} [options] Override http request option.
|
|
261
|
-
* @throws {RequiredError}
|
|
262
|
-
*/
|
|
263
|
-
apiV1CurationsCurationIdReactivatePut: function (curationId_1) {
|
|
264
|
-
var args_1 = [];
|
|
265
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
266
|
-
args_1[_i - 1] = arguments[_i];
|
|
267
|
-
}
|
|
268
|
-
return __awaiter(_this, __spreadArray([curationId_1], args_1, true), void 0, function (curationId, options) {
|
|
269
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
270
|
-
if (options === void 0) { options = {}; }
|
|
271
|
-
return __generator(this, function (_a) {
|
|
272
|
-
switch (_a.label) {
|
|
273
|
-
case 0:
|
|
274
|
-
// verify required parameter 'curationId' is not null or undefined
|
|
275
|
-
(0, common_1.assertParamExists)('apiV1CurationsCurationIdReactivatePut', 'curationId', curationId);
|
|
276
|
-
localVarPath = "/api/v1/curations/{curationId}/reactivate"
|
|
277
|
-
.replace("{".concat("curationId", "}"), encodeURIComponent(String(curationId)));
|
|
278
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
279
|
-
if (configuration) {
|
|
280
|
-
baseOptions = configuration.baseOptions;
|
|
281
|
-
}
|
|
282
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
283
|
-
localVarHeaderParameter = {};
|
|
284
|
-
localVarQueryParameter = {};
|
|
285
|
-
// authentication oauth2 required
|
|
286
|
-
// oauth required
|
|
287
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
288
|
-
case 1:
|
|
289
|
-
// authentication oauth2 required
|
|
290
|
-
// oauth required
|
|
291
|
-
_a.sent();
|
|
292
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
293
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
295
|
-
return [2 /*return*/, {
|
|
296
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
297
|
-
options: localVarRequestOptions,
|
|
298
|
-
}];
|
|
299
|
-
}
|
|
300
|
-
});
|
|
301
|
-
});
|
|
302
|
-
},
|
|
303
|
-
/**
|
|
304
|
-
*
|
|
305
|
-
* @summary Revalidate CurationItem (Auth policies: RequireManagerRole)
|
|
306
|
-
* @param {string} curationId
|
|
307
|
-
* @param {*} [options] Override http request option.
|
|
308
|
-
* @throws {RequiredError}
|
|
309
|
-
*/
|
|
310
|
-
apiV1CurationsCurationIdRevalidatePost: function (curationId_1) {
|
|
311
|
-
var args_1 = [];
|
|
312
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
313
|
-
args_1[_i - 1] = arguments[_i];
|
|
314
|
-
}
|
|
315
|
-
return __awaiter(_this, __spreadArray([curationId_1], args_1, true), void 0, function (curationId, options) {
|
|
316
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
317
|
-
if (options === void 0) { options = {}; }
|
|
318
|
-
return __generator(this, function (_a) {
|
|
319
|
-
switch (_a.label) {
|
|
320
|
-
case 0:
|
|
321
|
-
// verify required parameter 'curationId' is not null or undefined
|
|
322
|
-
(0, common_1.assertParamExists)('apiV1CurationsCurationIdRevalidatePost', 'curationId', curationId);
|
|
323
|
-
localVarPath = "/api/v1/curations/{curationId}/revalidate"
|
|
324
|
-
.replace("{".concat("curationId", "}"), encodeURIComponent(String(curationId)));
|
|
325
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
326
|
-
if (configuration) {
|
|
327
|
-
baseOptions = configuration.baseOptions;
|
|
328
|
-
}
|
|
329
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
330
|
-
localVarHeaderParameter = {};
|
|
331
|
-
localVarQueryParameter = {};
|
|
332
|
-
// authentication oauth2 required
|
|
333
|
-
// oauth required
|
|
334
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
335
|
-
case 1:
|
|
336
|
-
// authentication oauth2 required
|
|
337
|
-
// oauth required
|
|
338
|
-
_a.sent();
|
|
339
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
340
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
341
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
342
|
-
return [2 /*return*/, {
|
|
343
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
344
|
-
options: localVarRequestOptions,
|
|
345
|
-
}];
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
});
|
|
349
|
-
},
|
|
350
|
-
/**
|
|
351
|
-
*
|
|
352
|
-
* @summary Translate curation (Auth policies: RequireManagerRole)
|
|
256
|
+
* @summary Translate curation (Auth roles: Admin,Manager,ContentManager)
|
|
353
257
|
* @param {string} curationId
|
|
354
258
|
* @param {TranslateCurationCommand} [translateCurationCommand]
|
|
355
259
|
* @param {*} [options] Override http request option.
|
|
@@ -399,33 +303,29 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
399
303
|
},
|
|
400
304
|
/**
|
|
401
305
|
*
|
|
402
|
-
* @summary Get
|
|
403
|
-
* @param {string}
|
|
404
|
-
* @param {string}
|
|
405
|
-
* @param {string} [
|
|
406
|
-
* @param {string} [serarchTerm]
|
|
407
|
-
* @param {boolean} [showHidden]
|
|
306
|
+
* @summary Get Curations of CurationCategory Ordered by it\'s order (Auth roles: Admin,Manager,ContentManager)
|
|
307
|
+
* @param {string} languageCode
|
|
308
|
+
* @param {string} [curationCategoryId]
|
|
309
|
+
* @param {string} [title]
|
|
408
310
|
* @param {number} [page]
|
|
409
311
|
* @param {number} [limit]
|
|
410
312
|
* @param {Date} [lastRetrieved]
|
|
411
313
|
* @param {*} [options] Override http request option.
|
|
412
314
|
* @throws {RequiredError}
|
|
413
315
|
*/
|
|
414
|
-
apiV1CurationsGet: function (
|
|
316
|
+
apiV1CurationsGet: function (languageCode_1, curationCategoryId_1, title_1, page_1, limit_1, lastRetrieved_1) {
|
|
415
317
|
var args_1 = [];
|
|
416
|
-
for (var _i =
|
|
417
|
-
args_1[_i -
|
|
318
|
+
for (var _i = 6; _i < arguments.length; _i++) {
|
|
319
|
+
args_1[_i - 6] = arguments[_i];
|
|
418
320
|
}
|
|
419
|
-
return __awaiter(_this, __spreadArray([
|
|
321
|
+
return __awaiter(_this, __spreadArray([languageCode_1, curationCategoryId_1, title_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (languageCode, curationCategoryId, title, page, limit, lastRetrieved, options) {
|
|
420
322
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
421
323
|
if (options === void 0) { options = {}; }
|
|
422
324
|
return __generator(this, function (_a) {
|
|
423
325
|
switch (_a.label) {
|
|
424
326
|
case 0:
|
|
425
|
-
// verify required parameter '
|
|
426
|
-
(0, common_1.assertParamExists)('apiV1CurationsGet', '
|
|
427
|
-
// verify required parameter 'specialtyTypeId' is not null or undefined
|
|
428
|
-
(0, common_1.assertParamExists)('apiV1CurationsGet', 'specialtyTypeId', specialtyTypeId);
|
|
327
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
328
|
+
(0, common_1.assertParamExists)('apiV1CurationsGet', 'languageCode', languageCode);
|
|
429
329
|
localVarPath = "/api/v1/curations";
|
|
430
330
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
431
331
|
if (configuration) {
|
|
@@ -441,20 +341,14 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
441
341
|
// authentication oauth2 required
|
|
442
342
|
// oauth required
|
|
443
343
|
_a.sent();
|
|
444
|
-
if (countryId !== undefined) {
|
|
445
|
-
localVarQueryParameter['CountryId'] = countryId;
|
|
446
|
-
}
|
|
447
|
-
if (specialtyTypeId !== undefined) {
|
|
448
|
-
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
449
|
-
}
|
|
450
344
|
if (languageCode !== undefined) {
|
|
451
345
|
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
452
346
|
}
|
|
453
|
-
if (
|
|
454
|
-
localVarQueryParameter['
|
|
347
|
+
if (curationCategoryId !== undefined) {
|
|
348
|
+
localVarQueryParameter['CurationCategoryId'] = curationCategoryId;
|
|
455
349
|
}
|
|
456
|
-
if (
|
|
457
|
-
localVarQueryParameter['
|
|
350
|
+
if (title !== undefined) {
|
|
351
|
+
localVarQueryParameter['Title'] = title;
|
|
458
352
|
}
|
|
459
353
|
if (page !== undefined) {
|
|
460
354
|
localVarQueryParameter['page'] = page;
|
|
@@ -480,7 +374,7 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
480
374
|
},
|
|
481
375
|
/**
|
|
482
376
|
*
|
|
483
|
-
* @summary Create a Curation. (Auth
|
|
377
|
+
* @summary Create a Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
484
378
|
* @param {CreateCurationCommand} [createCurationCommand]
|
|
485
379
|
* @param {*} [options] Override http request option.
|
|
486
380
|
* @throws {RequiredError}
|
|
@@ -536,18 +430,17 @@ var CurationsApiFp = function (configuration) {
|
|
|
536
430
|
return {
|
|
537
431
|
/**
|
|
538
432
|
*
|
|
539
|
-
* @summary Delete CurationItem (Auth
|
|
433
|
+
* @summary Delete CurationItem (Auth roles: Admin,Manager,ContentManager)
|
|
540
434
|
* @param {string} curationId
|
|
541
|
-
* @param {boolean} [isPermanent]
|
|
542
435
|
* @param {*} [options] Override http request option.
|
|
543
436
|
* @throws {RequiredError}
|
|
544
437
|
*/
|
|
545
|
-
apiV1CurationsCurationIdDelete: function (curationId,
|
|
438
|
+
apiV1CurationsCurationIdDelete: function (curationId, options) {
|
|
546
439
|
return __awaiter(this, void 0, void 0, function () {
|
|
547
440
|
var localVarAxiosArgs;
|
|
548
441
|
return __generator(this, function (_a) {
|
|
549
442
|
switch (_a.label) {
|
|
550
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationsCurationIdDelete(curationId,
|
|
443
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationsCurationIdDelete(curationId, options)];
|
|
551
444
|
case 1:
|
|
552
445
|
localVarAxiosArgs = _a.sent();
|
|
553
446
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -557,9 +450,9 @@ var CurationsApiFp = function (configuration) {
|
|
|
557
450
|
},
|
|
558
451
|
/**
|
|
559
452
|
*
|
|
560
|
-
* @summary Get Curation by id (Auth
|
|
453
|
+
* @summary Get Curation by id (Auth roles: Admin,Manager,ContentManager)
|
|
561
454
|
* @param {string} curationId
|
|
562
|
-
* @param {string}
|
|
455
|
+
* @param {string} languageCode
|
|
563
456
|
* @param {*} [options] Override http request option.
|
|
564
457
|
* @throws {RequiredError}
|
|
565
458
|
*/
|
|
@@ -578,7 +471,7 @@ var CurationsApiFp = function (configuration) {
|
|
|
578
471
|
},
|
|
579
472
|
/**
|
|
580
473
|
*
|
|
581
|
-
* @summary Update Curation. (Auth
|
|
474
|
+
* @summary Update Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
582
475
|
* @param {string} curationId
|
|
583
476
|
* @param {UpdateCurationCommand} [updateCurationCommand]
|
|
584
477
|
* @param {*} [options] Override http request option.
|
|
@@ -599,47 +492,7 @@ var CurationsApiFp = function (configuration) {
|
|
|
599
492
|
},
|
|
600
493
|
/**
|
|
601
494
|
*
|
|
602
|
-
* @summary
|
|
603
|
-
* @param {string} curationId
|
|
604
|
-
* @param {*} [options] Override http request option.
|
|
605
|
-
* @throws {RequiredError}
|
|
606
|
-
*/
|
|
607
|
-
apiV1CurationsCurationIdReactivatePut: function (curationId, options) {
|
|
608
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
609
|
-
var localVarAxiosArgs;
|
|
610
|
-
return __generator(this, function (_a) {
|
|
611
|
-
switch (_a.label) {
|
|
612
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationsCurationIdReactivatePut(curationId, options)];
|
|
613
|
-
case 1:
|
|
614
|
-
localVarAxiosArgs = _a.sent();
|
|
615
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
616
|
-
}
|
|
617
|
-
});
|
|
618
|
-
});
|
|
619
|
-
},
|
|
620
|
-
/**
|
|
621
|
-
*
|
|
622
|
-
* @summary Revalidate CurationItem (Auth policies: RequireManagerRole)
|
|
623
|
-
* @param {string} curationId
|
|
624
|
-
* @param {*} [options] Override http request option.
|
|
625
|
-
* @throws {RequiredError}
|
|
626
|
-
*/
|
|
627
|
-
apiV1CurationsCurationIdRevalidatePost: function (curationId, options) {
|
|
628
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
629
|
-
var localVarAxiosArgs;
|
|
630
|
-
return __generator(this, function (_a) {
|
|
631
|
-
switch (_a.label) {
|
|
632
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationsCurationIdRevalidatePost(curationId, options)];
|
|
633
|
-
case 1:
|
|
634
|
-
localVarAxiosArgs = _a.sent();
|
|
635
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
636
|
-
}
|
|
637
|
-
});
|
|
638
|
-
});
|
|
639
|
-
},
|
|
640
|
-
/**
|
|
641
|
-
*
|
|
642
|
-
* @summary Translate curation (Auth policies: RequireManagerRole)
|
|
495
|
+
* @summary Translate curation (Auth roles: Admin,Manager,ContentManager)
|
|
643
496
|
* @param {string} curationId
|
|
644
497
|
* @param {TranslateCurationCommand} [translateCurationCommand]
|
|
645
498
|
* @param {*} [options] Override http request option.
|
|
@@ -660,24 +513,22 @@ var CurationsApiFp = function (configuration) {
|
|
|
660
513
|
},
|
|
661
514
|
/**
|
|
662
515
|
*
|
|
663
|
-
* @summary Get
|
|
664
|
-
* @param {string}
|
|
665
|
-
* @param {string}
|
|
666
|
-
* @param {string} [
|
|
667
|
-
* @param {string} [serarchTerm]
|
|
668
|
-
* @param {boolean} [showHidden]
|
|
516
|
+
* @summary Get Curations of CurationCategory Ordered by it\'s order (Auth roles: Admin,Manager,ContentManager)
|
|
517
|
+
* @param {string} languageCode
|
|
518
|
+
* @param {string} [curationCategoryId]
|
|
519
|
+
* @param {string} [title]
|
|
669
520
|
* @param {number} [page]
|
|
670
521
|
* @param {number} [limit]
|
|
671
522
|
* @param {Date} [lastRetrieved]
|
|
672
523
|
* @param {*} [options] Override http request option.
|
|
673
524
|
* @throws {RequiredError}
|
|
674
525
|
*/
|
|
675
|
-
apiV1CurationsGet: function (
|
|
526
|
+
apiV1CurationsGet: function (languageCode, curationCategoryId, title, page, limit, lastRetrieved, options) {
|
|
676
527
|
return __awaiter(this, void 0, void 0, function () {
|
|
677
528
|
var localVarAxiosArgs;
|
|
678
529
|
return __generator(this, function (_a) {
|
|
679
530
|
switch (_a.label) {
|
|
680
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationsGet(
|
|
531
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationsGet(languageCode, curationCategoryId, title, page, limit, lastRetrieved, options)];
|
|
681
532
|
case 1:
|
|
682
533
|
localVarAxiosArgs = _a.sent();
|
|
683
534
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -687,7 +538,7 @@ var CurationsApiFp = function (configuration) {
|
|
|
687
538
|
},
|
|
688
539
|
/**
|
|
689
540
|
*
|
|
690
|
-
* @summary Create a Curation. (Auth
|
|
541
|
+
* @summary Create a Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
691
542
|
* @param {CreateCurationCommand} [createCurationCommand]
|
|
692
543
|
* @param {*} [options] Override http request option.
|
|
693
544
|
* @throws {RequiredError}
|
|
@@ -717,20 +568,19 @@ var CurationsApiFactory = function (configuration, basePath, axios) {
|
|
|
717
568
|
return {
|
|
718
569
|
/**
|
|
719
570
|
*
|
|
720
|
-
* @summary Delete CurationItem (Auth
|
|
571
|
+
* @summary Delete CurationItem (Auth roles: Admin,Manager,ContentManager)
|
|
721
572
|
* @param {string} curationId
|
|
722
|
-
* @param {boolean} [isPermanent]
|
|
723
573
|
* @param {*} [options] Override http request option.
|
|
724
574
|
* @throws {RequiredError}
|
|
725
575
|
*/
|
|
726
|
-
apiV1CurationsCurationIdDelete: function (curationId,
|
|
727
|
-
return localVarFp.apiV1CurationsCurationIdDelete(curationId,
|
|
576
|
+
apiV1CurationsCurationIdDelete: function (curationId, options) {
|
|
577
|
+
return localVarFp.apiV1CurationsCurationIdDelete(curationId, options).then(function (request) { return request(axios, basePath); });
|
|
728
578
|
},
|
|
729
579
|
/**
|
|
730
580
|
*
|
|
731
|
-
* @summary Get Curation by id (Auth
|
|
581
|
+
* @summary Get Curation by id (Auth roles: Admin,Manager,ContentManager)
|
|
732
582
|
* @param {string} curationId
|
|
733
|
-
* @param {string}
|
|
583
|
+
* @param {string} languageCode
|
|
734
584
|
* @param {*} [options] Override http request option.
|
|
735
585
|
* @throws {RequiredError}
|
|
736
586
|
*/
|
|
@@ -739,7 +589,7 @@ var CurationsApiFactory = function (configuration, basePath, axios) {
|
|
|
739
589
|
},
|
|
740
590
|
/**
|
|
741
591
|
*
|
|
742
|
-
* @summary Update Curation. (Auth
|
|
592
|
+
* @summary Update Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
743
593
|
* @param {string} curationId
|
|
744
594
|
* @param {UpdateCurationCommand} [updateCurationCommand]
|
|
745
595
|
* @param {*} [options] Override http request option.
|
|
@@ -750,27 +600,7 @@ var CurationsApiFactory = function (configuration, basePath, axios) {
|
|
|
750
600
|
},
|
|
751
601
|
/**
|
|
752
602
|
*
|
|
753
|
-
* @summary
|
|
754
|
-
* @param {string} curationId
|
|
755
|
-
* @param {*} [options] Override http request option.
|
|
756
|
-
* @throws {RequiredError}
|
|
757
|
-
*/
|
|
758
|
-
apiV1CurationsCurationIdReactivatePut: function (curationId, options) {
|
|
759
|
-
return localVarFp.apiV1CurationsCurationIdReactivatePut(curationId, options).then(function (request) { return request(axios, basePath); });
|
|
760
|
-
},
|
|
761
|
-
/**
|
|
762
|
-
*
|
|
763
|
-
* @summary Revalidate CurationItem (Auth policies: RequireManagerRole)
|
|
764
|
-
* @param {string} curationId
|
|
765
|
-
* @param {*} [options] Override http request option.
|
|
766
|
-
* @throws {RequiredError}
|
|
767
|
-
*/
|
|
768
|
-
apiV1CurationsCurationIdRevalidatePost: function (curationId, options) {
|
|
769
|
-
return localVarFp.apiV1CurationsCurationIdRevalidatePost(curationId, options).then(function (request) { return request(axios, basePath); });
|
|
770
|
-
},
|
|
771
|
-
/**
|
|
772
|
-
*
|
|
773
|
-
* @summary Translate curation (Auth policies: RequireManagerRole)
|
|
603
|
+
* @summary Translate curation (Auth roles: Admin,Manager,ContentManager)
|
|
774
604
|
* @param {string} curationId
|
|
775
605
|
* @param {TranslateCurationCommand} [translateCurationCommand]
|
|
776
606
|
* @param {*} [options] Override http request option.
|
|
@@ -781,24 +611,22 @@ var CurationsApiFactory = function (configuration, basePath, axios) {
|
|
|
781
611
|
},
|
|
782
612
|
/**
|
|
783
613
|
*
|
|
784
|
-
* @summary Get
|
|
785
|
-
* @param {string}
|
|
786
|
-
* @param {string}
|
|
787
|
-
* @param {string} [
|
|
788
|
-
* @param {string} [serarchTerm]
|
|
789
|
-
* @param {boolean} [showHidden]
|
|
614
|
+
* @summary Get Curations of CurationCategory Ordered by it\'s order (Auth roles: Admin,Manager,ContentManager)
|
|
615
|
+
* @param {string} languageCode
|
|
616
|
+
* @param {string} [curationCategoryId]
|
|
617
|
+
* @param {string} [title]
|
|
790
618
|
* @param {number} [page]
|
|
791
619
|
* @param {number} [limit]
|
|
792
620
|
* @param {Date} [lastRetrieved]
|
|
793
621
|
* @param {*} [options] Override http request option.
|
|
794
622
|
* @throws {RequiredError}
|
|
795
623
|
*/
|
|
796
|
-
apiV1CurationsGet: function (
|
|
797
|
-
return localVarFp.apiV1CurationsGet(
|
|
624
|
+
apiV1CurationsGet: function (languageCode, curationCategoryId, title, page, limit, lastRetrieved, options) {
|
|
625
|
+
return localVarFp.apiV1CurationsGet(languageCode, curationCategoryId, title, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
798
626
|
},
|
|
799
627
|
/**
|
|
800
628
|
*
|
|
801
|
-
* @summary Create a Curation. (Auth
|
|
629
|
+
* @summary Create a Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
802
630
|
* @param {CreateCurationCommand} [createCurationCommand]
|
|
803
631
|
* @param {*} [options] Override http request option.
|
|
804
632
|
* @throws {RequiredError}
|
|
@@ -822,7 +650,7 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
822
650
|
}
|
|
823
651
|
/**
|
|
824
652
|
*
|
|
825
|
-
* @summary Delete CurationItem (Auth
|
|
653
|
+
* @summary Delete CurationItem (Auth roles: Admin,Manager,ContentManager)
|
|
826
654
|
* @param {CurationsApiApiV1CurationsCurationIdDeleteRequest} requestParameters Request parameters.
|
|
827
655
|
* @param {*} [options] Override http request option.
|
|
828
656
|
* @throws {RequiredError}
|
|
@@ -830,11 +658,11 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
830
658
|
*/
|
|
831
659
|
CurationsApi.prototype.apiV1CurationsCurationIdDelete = function (requestParameters, options) {
|
|
832
660
|
var _this = this;
|
|
833
|
-
return (0, exports.CurationsApiFp)(this.configuration).apiV1CurationsCurationIdDelete(requestParameters.curationId,
|
|
661
|
+
return (0, exports.CurationsApiFp)(this.configuration).apiV1CurationsCurationIdDelete(requestParameters.curationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
834
662
|
};
|
|
835
663
|
/**
|
|
836
664
|
*
|
|
837
|
-
* @summary Get Curation by id (Auth
|
|
665
|
+
* @summary Get Curation by id (Auth roles: Admin,Manager,ContentManager)
|
|
838
666
|
* @param {CurationsApiApiV1CurationsCurationIdGetRequest} requestParameters Request parameters.
|
|
839
667
|
* @param {*} [options] Override http request option.
|
|
840
668
|
* @throws {RequiredError}
|
|
@@ -846,7 +674,7 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
846
674
|
};
|
|
847
675
|
/**
|
|
848
676
|
*
|
|
849
|
-
* @summary Update Curation. (Auth
|
|
677
|
+
* @summary Update Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
850
678
|
* @param {CurationsApiApiV1CurationsCurationIdPutRequest} requestParameters Request parameters.
|
|
851
679
|
* @param {*} [options] Override http request option.
|
|
852
680
|
* @throws {RequiredError}
|
|
@@ -858,31 +686,7 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
858
686
|
};
|
|
859
687
|
/**
|
|
860
688
|
*
|
|
861
|
-
* @summary
|
|
862
|
-
* @param {CurationsApiApiV1CurationsCurationIdReactivatePutRequest} requestParameters Request parameters.
|
|
863
|
-
* @param {*} [options] Override http request option.
|
|
864
|
-
* @throws {RequiredError}
|
|
865
|
-
* @memberof CurationsApi
|
|
866
|
-
*/
|
|
867
|
-
CurationsApi.prototype.apiV1CurationsCurationIdReactivatePut = function (requestParameters, options) {
|
|
868
|
-
var _this = this;
|
|
869
|
-
return (0, exports.CurationsApiFp)(this.configuration).apiV1CurationsCurationIdReactivatePut(requestParameters.curationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
870
|
-
};
|
|
871
|
-
/**
|
|
872
|
-
*
|
|
873
|
-
* @summary Revalidate CurationItem (Auth policies: RequireManagerRole)
|
|
874
|
-
* @param {CurationsApiApiV1CurationsCurationIdRevalidatePostRequest} requestParameters Request parameters.
|
|
875
|
-
* @param {*} [options] Override http request option.
|
|
876
|
-
* @throws {RequiredError}
|
|
877
|
-
* @memberof CurationsApi
|
|
878
|
-
*/
|
|
879
|
-
CurationsApi.prototype.apiV1CurationsCurationIdRevalidatePost = function (requestParameters, options) {
|
|
880
|
-
var _this = this;
|
|
881
|
-
return (0, exports.CurationsApiFp)(this.configuration).apiV1CurationsCurationIdRevalidatePost(requestParameters.curationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
882
|
-
};
|
|
883
|
-
/**
|
|
884
|
-
*
|
|
885
|
-
* @summary Translate curation (Auth policies: RequireManagerRole)
|
|
689
|
+
* @summary Translate curation (Auth roles: Admin,Manager,ContentManager)
|
|
886
690
|
* @param {CurationsApiApiV1CurationsCurationIdTranslatePostRequest} requestParameters Request parameters.
|
|
887
691
|
* @param {*} [options] Override http request option.
|
|
888
692
|
* @throws {RequiredError}
|
|
@@ -894,7 +698,7 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
894
698
|
};
|
|
895
699
|
/**
|
|
896
700
|
*
|
|
897
|
-
* @summary Get
|
|
701
|
+
* @summary Get Curations of CurationCategory Ordered by it\'s order (Auth roles: Admin,Manager,ContentManager)
|
|
898
702
|
* @param {CurationsApiApiV1CurationsGetRequest} requestParameters Request parameters.
|
|
899
703
|
* @param {*} [options] Override http request option.
|
|
900
704
|
* @throws {RequiredError}
|
|
@@ -902,11 +706,11 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
902
706
|
*/
|
|
903
707
|
CurationsApi.prototype.apiV1CurationsGet = function (requestParameters, options) {
|
|
904
708
|
var _this = this;
|
|
905
|
-
return (0, exports.CurationsApiFp)(this.configuration).apiV1CurationsGet(requestParameters.
|
|
709
|
+
return (0, exports.CurationsApiFp)(this.configuration).apiV1CurationsGet(requestParameters.languageCode, requestParameters.curationCategoryId, requestParameters.title, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
906
710
|
};
|
|
907
711
|
/**
|
|
908
712
|
*
|
|
909
|
-
* @summary Create a Curation. (Auth
|
|
713
|
+
* @summary Create a Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
910
714
|
* @param {CurationsApiApiV1CurationsPostRequest} requestParameters Request parameters.
|
|
911
715
|
* @param {*} [options] Override http request option.
|
|
912
716
|
* @throws {RequiredError}
|