ch-admin-api-client-typescript 5.43.20 → 5.45.2
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 +45 -173
- package/lib/api/curations-api.d.ts.map +1 -1
- package/lib/api/curations-api.js +58 -260
- package/lib/api/form-results-api.d.ts +20 -20
- package/lib/api/form-results-api.js +20 -20
- 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-translation.d.ts +31 -0
- package/lib/models/create-curation-category-command-translation.d.ts.map +1 -0
- package/lib/models/create-curation-category-command.d.ts +38 -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-categories-model.js +15 -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 +16 -5
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +16 -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 +44 -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-translation.js} +0 -0
- /package/lib/models/{search-curation-item-input-model.js → create-curation-category-command.js} +0 -0
- /package/lib/models/{search-curation-item-model.js → create-curation-command-translation.js} +0 -0
- /package/lib/models/{search-curation-primary-item-model.js → create-whats-app-template-media-command.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,28 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
399
303
|
},
|
|
400
304
|
/**
|
|
401
305
|
*
|
|
402
|
-
* @summary Get
|
|
403
|
-
* @param {string}
|
|
404
|
-
* @param {string}
|
|
405
|
-
* @param {string} [languageCode]
|
|
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} [title]
|
|
408
309
|
* @param {number} [page]
|
|
409
310
|
* @param {number} [limit]
|
|
410
311
|
* @param {Date} [lastRetrieved]
|
|
411
312
|
* @param {*} [options] Override http request option.
|
|
412
313
|
* @throws {RequiredError}
|
|
413
314
|
*/
|
|
414
|
-
apiV1CurationsGet: function (
|
|
315
|
+
apiV1CurationsGet: function (languageCode_1, title_1, page_1, limit_1, lastRetrieved_1) {
|
|
415
316
|
var args_1 = [];
|
|
416
|
-
for (var _i =
|
|
417
|
-
args_1[_i -
|
|
317
|
+
for (var _i = 5; _i < arguments.length; _i++) {
|
|
318
|
+
args_1[_i - 5] = arguments[_i];
|
|
418
319
|
}
|
|
419
|
-
return __awaiter(_this, __spreadArray([
|
|
320
|
+
return __awaiter(_this, __spreadArray([languageCode_1, title_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (languageCode, title, page, limit, lastRetrieved, options) {
|
|
420
321
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
421
322
|
if (options === void 0) { options = {}; }
|
|
422
323
|
return __generator(this, function (_a) {
|
|
423
324
|
switch (_a.label) {
|
|
424
325
|
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);
|
|
326
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
327
|
+
(0, common_1.assertParamExists)('apiV1CurationsGet', 'languageCode', languageCode);
|
|
429
328
|
localVarPath = "/api/v1/curations";
|
|
430
329
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
431
330
|
if (configuration) {
|
|
@@ -441,20 +340,11 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
441
340
|
// authentication oauth2 required
|
|
442
341
|
// oauth required
|
|
443
342
|
_a.sent();
|
|
444
|
-
if (countryId !== undefined) {
|
|
445
|
-
localVarQueryParameter['CountryId'] = countryId;
|
|
446
|
-
}
|
|
447
|
-
if (specialtyTypeId !== undefined) {
|
|
448
|
-
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
449
|
-
}
|
|
450
343
|
if (languageCode !== undefined) {
|
|
451
344
|
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
452
345
|
}
|
|
453
|
-
if (
|
|
454
|
-
localVarQueryParameter['
|
|
455
|
-
}
|
|
456
|
-
if (showHidden !== undefined) {
|
|
457
|
-
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
346
|
+
if (title !== undefined) {
|
|
347
|
+
localVarQueryParameter['Title'] = title;
|
|
458
348
|
}
|
|
459
349
|
if (page !== undefined) {
|
|
460
350
|
localVarQueryParameter['page'] = page;
|
|
@@ -480,7 +370,7 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
480
370
|
},
|
|
481
371
|
/**
|
|
482
372
|
*
|
|
483
|
-
* @summary Create a Curation. (Auth
|
|
373
|
+
* @summary Create a Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
484
374
|
* @param {CreateCurationCommand} [createCurationCommand]
|
|
485
375
|
* @param {*} [options] Override http request option.
|
|
486
376
|
* @throws {RequiredError}
|
|
@@ -536,18 +426,17 @@ var CurationsApiFp = function (configuration) {
|
|
|
536
426
|
return {
|
|
537
427
|
/**
|
|
538
428
|
*
|
|
539
|
-
* @summary Delete CurationItem (Auth
|
|
429
|
+
* @summary Delete CurationItem (Auth roles: Admin,Manager,ContentManager)
|
|
540
430
|
* @param {string} curationId
|
|
541
|
-
* @param {boolean} [isPermanent]
|
|
542
431
|
* @param {*} [options] Override http request option.
|
|
543
432
|
* @throws {RequiredError}
|
|
544
433
|
*/
|
|
545
|
-
apiV1CurationsCurationIdDelete: function (curationId,
|
|
434
|
+
apiV1CurationsCurationIdDelete: function (curationId, options) {
|
|
546
435
|
return __awaiter(this, void 0, void 0, function () {
|
|
547
436
|
var localVarAxiosArgs;
|
|
548
437
|
return __generator(this, function (_a) {
|
|
549
438
|
switch (_a.label) {
|
|
550
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationsCurationIdDelete(curationId,
|
|
439
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationsCurationIdDelete(curationId, options)];
|
|
551
440
|
case 1:
|
|
552
441
|
localVarAxiosArgs = _a.sent();
|
|
553
442
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -557,9 +446,9 @@ var CurationsApiFp = function (configuration) {
|
|
|
557
446
|
},
|
|
558
447
|
/**
|
|
559
448
|
*
|
|
560
|
-
* @summary Get Curation by id (Auth
|
|
449
|
+
* @summary Get Curation by id (Auth roles: Admin,Manager,ContentManager)
|
|
561
450
|
* @param {string} curationId
|
|
562
|
-
* @param {string}
|
|
451
|
+
* @param {string} languageCode
|
|
563
452
|
* @param {*} [options] Override http request option.
|
|
564
453
|
* @throws {RequiredError}
|
|
565
454
|
*/
|
|
@@ -578,7 +467,7 @@ var CurationsApiFp = function (configuration) {
|
|
|
578
467
|
},
|
|
579
468
|
/**
|
|
580
469
|
*
|
|
581
|
-
* @summary Update Curation. (Auth
|
|
470
|
+
* @summary Update Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
582
471
|
* @param {string} curationId
|
|
583
472
|
* @param {UpdateCurationCommand} [updateCurationCommand]
|
|
584
473
|
* @param {*} [options] Override http request option.
|
|
@@ -599,47 +488,7 @@ var CurationsApiFp = function (configuration) {
|
|
|
599
488
|
},
|
|
600
489
|
/**
|
|
601
490
|
*
|
|
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)
|
|
491
|
+
* @summary Translate curation (Auth roles: Admin,Manager,ContentManager)
|
|
643
492
|
* @param {string} curationId
|
|
644
493
|
* @param {TranslateCurationCommand} [translateCurationCommand]
|
|
645
494
|
* @param {*} [options] Override http request option.
|
|
@@ -660,24 +509,21 @@ var CurationsApiFp = function (configuration) {
|
|
|
660
509
|
},
|
|
661
510
|
/**
|
|
662
511
|
*
|
|
663
|
-
* @summary Get
|
|
664
|
-
* @param {string}
|
|
665
|
-
* @param {string}
|
|
666
|
-
* @param {string} [languageCode]
|
|
667
|
-
* @param {string} [serarchTerm]
|
|
668
|
-
* @param {boolean} [showHidden]
|
|
512
|
+
* @summary Get Curations of CurationCategory Ordered by it\'s order (Auth roles: Admin,Manager,ContentManager)
|
|
513
|
+
* @param {string} languageCode
|
|
514
|
+
* @param {string} [title]
|
|
669
515
|
* @param {number} [page]
|
|
670
516
|
* @param {number} [limit]
|
|
671
517
|
* @param {Date} [lastRetrieved]
|
|
672
518
|
* @param {*} [options] Override http request option.
|
|
673
519
|
* @throws {RequiredError}
|
|
674
520
|
*/
|
|
675
|
-
apiV1CurationsGet: function (
|
|
521
|
+
apiV1CurationsGet: function (languageCode, title, page, limit, lastRetrieved, options) {
|
|
676
522
|
return __awaiter(this, void 0, void 0, function () {
|
|
677
523
|
var localVarAxiosArgs;
|
|
678
524
|
return __generator(this, function (_a) {
|
|
679
525
|
switch (_a.label) {
|
|
680
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationsGet(
|
|
526
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationsGet(languageCode, title, page, limit, lastRetrieved, options)];
|
|
681
527
|
case 1:
|
|
682
528
|
localVarAxiosArgs = _a.sent();
|
|
683
529
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -687,7 +533,7 @@ var CurationsApiFp = function (configuration) {
|
|
|
687
533
|
},
|
|
688
534
|
/**
|
|
689
535
|
*
|
|
690
|
-
* @summary Create a Curation. (Auth
|
|
536
|
+
* @summary Create a Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
691
537
|
* @param {CreateCurationCommand} [createCurationCommand]
|
|
692
538
|
* @param {*} [options] Override http request option.
|
|
693
539
|
* @throws {RequiredError}
|
|
@@ -717,20 +563,19 @@ var CurationsApiFactory = function (configuration, basePath, axios) {
|
|
|
717
563
|
return {
|
|
718
564
|
/**
|
|
719
565
|
*
|
|
720
|
-
* @summary Delete CurationItem (Auth
|
|
566
|
+
* @summary Delete CurationItem (Auth roles: Admin,Manager,ContentManager)
|
|
721
567
|
* @param {string} curationId
|
|
722
|
-
* @param {boolean} [isPermanent]
|
|
723
568
|
* @param {*} [options] Override http request option.
|
|
724
569
|
* @throws {RequiredError}
|
|
725
570
|
*/
|
|
726
|
-
apiV1CurationsCurationIdDelete: function (curationId,
|
|
727
|
-
return localVarFp.apiV1CurationsCurationIdDelete(curationId,
|
|
571
|
+
apiV1CurationsCurationIdDelete: function (curationId, options) {
|
|
572
|
+
return localVarFp.apiV1CurationsCurationIdDelete(curationId, options).then(function (request) { return request(axios, basePath); });
|
|
728
573
|
},
|
|
729
574
|
/**
|
|
730
575
|
*
|
|
731
|
-
* @summary Get Curation by id (Auth
|
|
576
|
+
* @summary Get Curation by id (Auth roles: Admin,Manager,ContentManager)
|
|
732
577
|
* @param {string} curationId
|
|
733
|
-
* @param {string}
|
|
578
|
+
* @param {string} languageCode
|
|
734
579
|
* @param {*} [options] Override http request option.
|
|
735
580
|
* @throws {RequiredError}
|
|
736
581
|
*/
|
|
@@ -739,7 +584,7 @@ var CurationsApiFactory = function (configuration, basePath, axios) {
|
|
|
739
584
|
},
|
|
740
585
|
/**
|
|
741
586
|
*
|
|
742
|
-
* @summary Update Curation. (Auth
|
|
587
|
+
* @summary Update Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
743
588
|
* @param {string} curationId
|
|
744
589
|
* @param {UpdateCurationCommand} [updateCurationCommand]
|
|
745
590
|
* @param {*} [options] Override http request option.
|
|
@@ -750,27 +595,7 @@ var CurationsApiFactory = function (configuration, basePath, axios) {
|
|
|
750
595
|
},
|
|
751
596
|
/**
|
|
752
597
|
*
|
|
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)
|
|
598
|
+
* @summary Translate curation (Auth roles: Admin,Manager,ContentManager)
|
|
774
599
|
* @param {string} curationId
|
|
775
600
|
* @param {TranslateCurationCommand} [translateCurationCommand]
|
|
776
601
|
* @param {*} [options] Override http request option.
|
|
@@ -781,24 +606,21 @@ var CurationsApiFactory = function (configuration, basePath, axios) {
|
|
|
781
606
|
},
|
|
782
607
|
/**
|
|
783
608
|
*
|
|
784
|
-
* @summary Get
|
|
785
|
-
* @param {string}
|
|
786
|
-
* @param {string}
|
|
787
|
-
* @param {string} [languageCode]
|
|
788
|
-
* @param {string} [serarchTerm]
|
|
789
|
-
* @param {boolean} [showHidden]
|
|
609
|
+
* @summary Get Curations of CurationCategory Ordered by it\'s order (Auth roles: Admin,Manager,ContentManager)
|
|
610
|
+
* @param {string} languageCode
|
|
611
|
+
* @param {string} [title]
|
|
790
612
|
* @param {number} [page]
|
|
791
613
|
* @param {number} [limit]
|
|
792
614
|
* @param {Date} [lastRetrieved]
|
|
793
615
|
* @param {*} [options] Override http request option.
|
|
794
616
|
* @throws {RequiredError}
|
|
795
617
|
*/
|
|
796
|
-
apiV1CurationsGet: function (
|
|
797
|
-
return localVarFp.apiV1CurationsGet(
|
|
618
|
+
apiV1CurationsGet: function (languageCode, title, page, limit, lastRetrieved, options) {
|
|
619
|
+
return localVarFp.apiV1CurationsGet(languageCode, title, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
798
620
|
},
|
|
799
621
|
/**
|
|
800
622
|
*
|
|
801
|
-
* @summary Create a Curation. (Auth
|
|
623
|
+
* @summary Create a Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
802
624
|
* @param {CreateCurationCommand} [createCurationCommand]
|
|
803
625
|
* @param {*} [options] Override http request option.
|
|
804
626
|
* @throws {RequiredError}
|
|
@@ -822,7 +644,7 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
822
644
|
}
|
|
823
645
|
/**
|
|
824
646
|
*
|
|
825
|
-
* @summary Delete CurationItem (Auth
|
|
647
|
+
* @summary Delete CurationItem (Auth roles: Admin,Manager,ContentManager)
|
|
826
648
|
* @param {CurationsApiApiV1CurationsCurationIdDeleteRequest} requestParameters Request parameters.
|
|
827
649
|
* @param {*} [options] Override http request option.
|
|
828
650
|
* @throws {RequiredError}
|
|
@@ -830,11 +652,11 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
830
652
|
*/
|
|
831
653
|
CurationsApi.prototype.apiV1CurationsCurationIdDelete = function (requestParameters, options) {
|
|
832
654
|
var _this = this;
|
|
833
|
-
return (0, exports.CurationsApiFp)(this.configuration).apiV1CurationsCurationIdDelete(requestParameters.curationId,
|
|
655
|
+
return (0, exports.CurationsApiFp)(this.configuration).apiV1CurationsCurationIdDelete(requestParameters.curationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
834
656
|
};
|
|
835
657
|
/**
|
|
836
658
|
*
|
|
837
|
-
* @summary Get Curation by id (Auth
|
|
659
|
+
* @summary Get Curation by id (Auth roles: Admin,Manager,ContentManager)
|
|
838
660
|
* @param {CurationsApiApiV1CurationsCurationIdGetRequest} requestParameters Request parameters.
|
|
839
661
|
* @param {*} [options] Override http request option.
|
|
840
662
|
* @throws {RequiredError}
|
|
@@ -846,7 +668,7 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
846
668
|
};
|
|
847
669
|
/**
|
|
848
670
|
*
|
|
849
|
-
* @summary Update Curation. (Auth
|
|
671
|
+
* @summary Update Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
850
672
|
* @param {CurationsApiApiV1CurationsCurationIdPutRequest} requestParameters Request parameters.
|
|
851
673
|
* @param {*} [options] Override http request option.
|
|
852
674
|
* @throws {RequiredError}
|
|
@@ -858,31 +680,7 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
858
680
|
};
|
|
859
681
|
/**
|
|
860
682
|
*
|
|
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)
|
|
683
|
+
* @summary Translate curation (Auth roles: Admin,Manager,ContentManager)
|
|
886
684
|
* @param {CurationsApiApiV1CurationsCurationIdTranslatePostRequest} requestParameters Request parameters.
|
|
887
685
|
* @param {*} [options] Override http request option.
|
|
888
686
|
* @throws {RequiredError}
|
|
@@ -894,7 +692,7 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
894
692
|
};
|
|
895
693
|
/**
|
|
896
694
|
*
|
|
897
|
-
* @summary Get
|
|
695
|
+
* @summary Get Curations of CurationCategory Ordered by it\'s order (Auth roles: Admin,Manager,ContentManager)
|
|
898
696
|
* @param {CurationsApiApiV1CurationsGetRequest} requestParameters Request parameters.
|
|
899
697
|
* @param {*} [options] Override http request option.
|
|
900
698
|
* @throws {RequiredError}
|
|
@@ -902,11 +700,11 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
902
700
|
*/
|
|
903
701
|
CurationsApi.prototype.apiV1CurationsGet = function (requestParameters, options) {
|
|
904
702
|
var _this = this;
|
|
905
|
-
return (0, exports.CurationsApiFp)(this.configuration).apiV1CurationsGet(requestParameters.
|
|
703
|
+
return (0, exports.CurationsApiFp)(this.configuration).apiV1CurationsGet(requestParameters.languageCode, requestParameters.title, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
906
704
|
};
|
|
907
705
|
/**
|
|
908
706
|
*
|
|
909
|
-
* @summary Create a Curation. (Auth
|
|
707
|
+
* @summary Create a Curation. (Auth roles: Admin,Manager,ContentManager)
|
|
910
708
|
* @param {CurationsApiApiV1CurationsPostRequest} requestParameters Request parameters.
|
|
911
709
|
* @param {*} [options] Override http request option.
|
|
912
710
|
* @throws {RequiredError}
|