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
|
@@ -87,7 +87,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
87
87
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
88
|
};
|
|
89
89
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
|
-
exports.
|
|
90
|
+
exports.CurationCategoriesApi = exports.CurationCategoriesApiFactory = exports.CurationCategoriesApiFp = exports.CurationCategoriesApiAxiosParamCreator = void 0;
|
|
91
91
|
var axios_1 = __importDefault(require("axios"));
|
|
92
92
|
// Some imports not used depending on template conditions
|
|
93
93
|
// @ts-ignore
|
|
@@ -95,39 +95,39 @@ var common_1 = require("../common");
|
|
|
95
95
|
// @ts-ignore
|
|
96
96
|
var base_1 = require("../base");
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* CurationCategoriesApi - axios parameter creator
|
|
99
99
|
* @export
|
|
100
100
|
*/
|
|
101
|
-
var
|
|
101
|
+
var CurationCategoriesApiAxiosParamCreator = function (configuration) {
|
|
102
102
|
var _this = this;
|
|
103
103
|
return {
|
|
104
104
|
/**
|
|
105
105
|
*
|
|
106
|
-
* @summary
|
|
107
|
-
* @param {string}
|
|
106
|
+
* @summary Delete CurationCategory (Auth roles: Admin,Manager)
|
|
107
|
+
* @param {string} curationCategoryId
|
|
108
108
|
* @param {*} [options] Override http request option.
|
|
109
109
|
* @throws {RequiredError}
|
|
110
110
|
*/
|
|
111
|
-
|
|
111
|
+
apiV1CurationcategoriesCurationCategoryIdDelete: function (curationCategoryId_1) {
|
|
112
112
|
var args_1 = [];
|
|
113
113
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
114
114
|
args_1[_i - 1] = arguments[_i];
|
|
115
115
|
}
|
|
116
|
-
return __awaiter(_this, __spreadArray([
|
|
116
|
+
return __awaiter(_this, __spreadArray([curationCategoryId_1], args_1, true), void 0, function (curationCategoryId, options) {
|
|
117
117
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
118
118
|
if (options === void 0) { options = {}; }
|
|
119
119
|
return __generator(this, function (_a) {
|
|
120
120
|
switch (_a.label) {
|
|
121
121
|
case 0:
|
|
122
|
-
// verify required parameter '
|
|
123
|
-
(0, common_1.assertParamExists)('
|
|
124
|
-
localVarPath = "/api/v1/
|
|
125
|
-
.replace("{".concat("
|
|
122
|
+
// verify required parameter 'curationCategoryId' is not null or undefined
|
|
123
|
+
(0, common_1.assertParamExists)('apiV1CurationcategoriesCurationCategoryIdDelete', 'curationCategoryId', curationCategoryId);
|
|
124
|
+
localVarPath = "/api/v1/curationcategories/{curationCategoryId}"
|
|
125
|
+
.replace("{".concat("curationCategoryId", "}"), encodeURIComponent(String(curationCategoryId)));
|
|
126
126
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
127
127
|
if (configuration) {
|
|
128
128
|
baseOptions = configuration.baseOptions;
|
|
129
129
|
}
|
|
130
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
130
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
131
131
|
localVarHeaderParameter = {};
|
|
132
132
|
localVarQueryParameter = {};
|
|
133
133
|
// authentication oauth2 required
|
|
@@ -150,35 +150,34 @@ var SearchCurationsApiAxiosParamCreator = function (configuration) {
|
|
|
150
150
|
},
|
|
151
151
|
/**
|
|
152
152
|
*
|
|
153
|
-
* @summary
|
|
153
|
+
* @summary Get CurationCategory by id (Auth roles: Admin,Manager)
|
|
154
|
+
* @param {string} curationCategoryId
|
|
154
155
|
* @param {string} languageCode
|
|
155
|
-
* @param {string} id
|
|
156
156
|
* @param {*} [options] Override http request option.
|
|
157
157
|
* @throws {RequiredError}
|
|
158
158
|
*/
|
|
159
|
-
|
|
159
|
+
apiV1CurationcategoriesCurationCategoryIdGet: function (curationCategoryId_1, languageCode_1) {
|
|
160
160
|
var args_1 = [];
|
|
161
161
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
162
162
|
args_1[_i - 2] = arguments[_i];
|
|
163
163
|
}
|
|
164
|
-
return __awaiter(_this, __spreadArray([
|
|
164
|
+
return __awaiter(_this, __spreadArray([curationCategoryId_1, languageCode_1], args_1, true), void 0, function (curationCategoryId, languageCode, options) {
|
|
165
165
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
166
166
|
if (options === void 0) { options = {}; }
|
|
167
167
|
return __generator(this, function (_a) {
|
|
168
168
|
switch (_a.label) {
|
|
169
169
|
case 0:
|
|
170
|
+
// verify required parameter 'curationCategoryId' is not null or undefined
|
|
171
|
+
(0, common_1.assertParamExists)('apiV1CurationcategoriesCurationCategoryIdGet', 'curationCategoryId', curationCategoryId);
|
|
170
172
|
// verify required parameter 'languageCode' is not null or undefined
|
|
171
|
-
(0, common_1.assertParamExists)('
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
localVarPath = "/api/v1/searchcurations/{languageCode}/{id}"
|
|
175
|
-
.replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)))
|
|
176
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
173
|
+
(0, common_1.assertParamExists)('apiV1CurationcategoriesCurationCategoryIdGet', 'languageCode', languageCode);
|
|
174
|
+
localVarPath = "/api/v1/curationcategories/{curationCategoryId}"
|
|
175
|
+
.replace("{".concat("curationCategoryId", "}"), encodeURIComponent(String(curationCategoryId)));
|
|
177
176
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
178
177
|
if (configuration) {
|
|
179
178
|
baseOptions = configuration.baseOptions;
|
|
180
179
|
}
|
|
181
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
180
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
182
181
|
localVarHeaderParameter = {};
|
|
183
182
|
localVarQueryParameter = {};
|
|
184
183
|
// authentication oauth2 required
|
|
@@ -188,6 +187,9 @@ var SearchCurationsApiAxiosParamCreator = function (configuration) {
|
|
|
188
187
|
// authentication oauth2 required
|
|
189
188
|
// oauth required
|
|
190
189
|
_a.sent();
|
|
190
|
+
if (languageCode !== undefined) {
|
|
191
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
192
|
+
}
|
|
191
193
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
192
194
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
193
195
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -201,35 +203,32 @@ var SearchCurationsApiAxiosParamCreator = function (configuration) {
|
|
|
201
203
|
},
|
|
202
204
|
/**
|
|
203
205
|
*
|
|
204
|
-
* @summary
|
|
205
|
-
* @param {string}
|
|
206
|
-
* @param {
|
|
206
|
+
* @summary Update CurationCategory (Auth roles: Admin,Manager)
|
|
207
|
+
* @param {string} curationCategoryId
|
|
208
|
+
* @param {UpdateCurationCategoryCommand} [updateCurationCategoryCommand]
|
|
207
209
|
* @param {*} [options] Override http request option.
|
|
208
210
|
* @throws {RequiredError}
|
|
209
211
|
*/
|
|
210
|
-
|
|
212
|
+
apiV1CurationcategoriesCurationCategoryIdPut: function (curationCategoryId_1, updateCurationCategoryCommand_1) {
|
|
211
213
|
var args_1 = [];
|
|
212
214
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
213
215
|
args_1[_i - 2] = arguments[_i];
|
|
214
216
|
}
|
|
215
|
-
return __awaiter(_this, __spreadArray([
|
|
217
|
+
return __awaiter(_this, __spreadArray([curationCategoryId_1, updateCurationCategoryCommand_1], args_1, true), void 0, function (curationCategoryId, updateCurationCategoryCommand, options) {
|
|
216
218
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
217
219
|
if (options === void 0) { options = {}; }
|
|
218
220
|
return __generator(this, function (_a) {
|
|
219
221
|
switch (_a.label) {
|
|
220
222
|
case 0:
|
|
221
|
-
// verify required parameter '
|
|
222
|
-
(0, common_1.assertParamExists)('
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
localVarPath = "/api/v1/searchcurations/{languageCode}/{id}"
|
|
226
|
-
.replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)))
|
|
227
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
223
|
+
// verify required parameter 'curationCategoryId' is not null or undefined
|
|
224
|
+
(0, common_1.assertParamExists)('apiV1CurationcategoriesCurationCategoryIdPut', 'curationCategoryId', curationCategoryId);
|
|
225
|
+
localVarPath = "/api/v1/curationcategories/{curationCategoryId}"
|
|
226
|
+
.replace("{".concat("curationCategoryId", "}"), encodeURIComponent(String(curationCategoryId)));
|
|
228
227
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
229
228
|
if (configuration) {
|
|
230
229
|
baseOptions = configuration.baseOptions;
|
|
231
230
|
}
|
|
232
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
231
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
233
232
|
localVarHeaderParameter = {};
|
|
234
233
|
localVarQueryParameter = {};
|
|
235
234
|
// authentication oauth2 required
|
|
@@ -239,9 +238,11 @@ var SearchCurationsApiAxiosParamCreator = function (configuration) {
|
|
|
239
238
|
// authentication oauth2 required
|
|
240
239
|
// oauth required
|
|
241
240
|
_a.sent();
|
|
241
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
242
242
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
243
243
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
244
244
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
245
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCurationCategoryCommand, localVarRequestOptions, configuration);
|
|
245
246
|
return [2 /*return*/, {
|
|
246
247
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
247
248
|
options: localVarRequestOptions,
|
|
@@ -252,35 +253,32 @@ var SearchCurationsApiAxiosParamCreator = function (configuration) {
|
|
|
252
253
|
},
|
|
253
254
|
/**
|
|
254
255
|
*
|
|
255
|
-
* @summary
|
|
256
|
-
* @param {string}
|
|
257
|
-
* @param {
|
|
256
|
+
* @summary Translate CurationCategory (Auth roles: Admin,Manager)
|
|
257
|
+
* @param {string} curationCategoryId
|
|
258
|
+
* @param {TranslateCurationCategoryCommand} [translateCurationCategoryCommand]
|
|
258
259
|
* @param {*} [options] Override http request option.
|
|
259
260
|
* @throws {RequiredError}
|
|
260
261
|
*/
|
|
261
|
-
|
|
262
|
+
apiV1CurationcategoriesCurationCategoryIdTranslatePost: function (curationCategoryId_1, translateCurationCategoryCommand_1) {
|
|
262
263
|
var args_1 = [];
|
|
263
264
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
264
265
|
args_1[_i - 2] = arguments[_i];
|
|
265
266
|
}
|
|
266
|
-
return __awaiter(_this, __spreadArray([
|
|
267
|
+
return __awaiter(_this, __spreadArray([curationCategoryId_1, translateCurationCategoryCommand_1], args_1, true), void 0, function (curationCategoryId, translateCurationCategoryCommand, options) {
|
|
267
268
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
268
269
|
if (options === void 0) { options = {}; }
|
|
269
270
|
return __generator(this, function (_a) {
|
|
270
271
|
switch (_a.label) {
|
|
271
272
|
case 0:
|
|
272
|
-
// verify required parameter '
|
|
273
|
-
(0, common_1.assertParamExists)('
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
localVarPath = "/api/v1/searchcurations/{languageCode}/{parentId}/subitems"
|
|
277
|
-
.replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)))
|
|
278
|
-
.replace("{".concat("parentId", "}"), encodeURIComponent(String(parentId)));
|
|
273
|
+
// verify required parameter 'curationCategoryId' is not null or undefined
|
|
274
|
+
(0, common_1.assertParamExists)('apiV1CurationcategoriesCurationCategoryIdTranslatePost', 'curationCategoryId', curationCategoryId);
|
|
275
|
+
localVarPath = "/api/v1/curationcategories/{curationCategoryId}/translate"
|
|
276
|
+
.replace("{".concat("curationCategoryId", "}"), encodeURIComponent(String(curationCategoryId)));
|
|
279
277
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
280
278
|
if (configuration) {
|
|
281
279
|
baseOptions = configuration.baseOptions;
|
|
282
280
|
}
|
|
283
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
281
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
284
282
|
localVarHeaderParameter = {};
|
|
285
283
|
localVarQueryParameter = {};
|
|
286
284
|
// authentication oauth2 required
|
|
@@ -290,9 +288,11 @@ var SearchCurationsApiAxiosParamCreator = function (configuration) {
|
|
|
290
288
|
// authentication oauth2 required
|
|
291
289
|
// oauth required
|
|
292
290
|
_a.sent();
|
|
291
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
293
292
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
294
293
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
295
294
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
295
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(translateCurationCategoryCommand, localVarRequestOptions, configuration);
|
|
296
296
|
return [2 /*return*/, {
|
|
297
297
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
298
298
|
options: localVarRequestOptions,
|
|
@@ -303,32 +303,34 @@ var SearchCurationsApiAxiosParamCreator = function (configuration) {
|
|
|
303
303
|
},
|
|
304
304
|
/**
|
|
305
305
|
*
|
|
306
|
-
* @summary
|
|
306
|
+
* @summary Get all CurationCategories (Auth roles: Admin,Manager)
|
|
307
307
|
* @param {string} languageCode
|
|
308
|
-
* @param {
|
|
308
|
+
* @param {string} [title]
|
|
309
|
+
* @param {number} [page]
|
|
310
|
+
* @param {number} [limit]
|
|
311
|
+
* @param {Date} [lastRetrieved]
|
|
309
312
|
* @param {*} [options] Override http request option.
|
|
310
313
|
* @throws {RequiredError}
|
|
311
314
|
*/
|
|
312
|
-
|
|
315
|
+
apiV1CurationcategoriesGet: function (languageCode_1, title_1, page_1, limit_1, lastRetrieved_1) {
|
|
313
316
|
var args_1 = [];
|
|
314
|
-
for (var _i =
|
|
315
|
-
args_1[_i -
|
|
317
|
+
for (var _i = 5; _i < arguments.length; _i++) {
|
|
318
|
+
args_1[_i - 5] = arguments[_i];
|
|
316
319
|
}
|
|
317
|
-
return __awaiter(_this, __spreadArray([languageCode_1,
|
|
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) {
|
|
318
321
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
319
322
|
if (options === void 0) { options = {}; }
|
|
320
323
|
return __generator(this, function (_a) {
|
|
321
324
|
switch (_a.label) {
|
|
322
325
|
case 0:
|
|
323
326
|
// verify required parameter 'languageCode' is not null or undefined
|
|
324
|
-
(0, common_1.assertParamExists)('
|
|
325
|
-
localVarPath = "/api/v1/
|
|
326
|
-
.replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)));
|
|
327
|
+
(0, common_1.assertParamExists)('apiV1CurationcategoriesGet', 'languageCode', languageCode);
|
|
328
|
+
localVarPath = "/api/v1/curationcategories";
|
|
327
329
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
328
330
|
if (configuration) {
|
|
329
331
|
baseOptions = configuration.baseOptions;
|
|
330
332
|
}
|
|
331
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
333
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
332
334
|
localVarHeaderParameter = {};
|
|
333
335
|
localVarQueryParameter = {};
|
|
334
336
|
// authentication oauth2 required
|
|
@@ -338,11 +340,26 @@ var SearchCurationsApiAxiosParamCreator = function (configuration) {
|
|
|
338
340
|
// authentication oauth2 required
|
|
339
341
|
// oauth required
|
|
340
342
|
_a.sent();
|
|
341
|
-
|
|
343
|
+
if (languageCode !== undefined) {
|
|
344
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
345
|
+
}
|
|
346
|
+
if (title !== undefined) {
|
|
347
|
+
localVarQueryParameter['Title'] = title;
|
|
348
|
+
}
|
|
349
|
+
if (page !== undefined) {
|
|
350
|
+
localVarQueryParameter['page'] = page;
|
|
351
|
+
}
|
|
352
|
+
if (limit !== undefined) {
|
|
353
|
+
localVarQueryParameter['limit'] = limit;
|
|
354
|
+
}
|
|
355
|
+
if (lastRetrieved !== undefined) {
|
|
356
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
357
|
+
lastRetrieved.toISOString() :
|
|
358
|
+
lastRetrieved;
|
|
359
|
+
}
|
|
342
360
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
343
361
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
344
362
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
345
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveSearchCurationsCommand, localVarRequestOptions, configuration);
|
|
346
363
|
return [2 /*return*/, {
|
|
347
364
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
348
365
|
options: localVarRequestOptions,
|
|
@@ -353,27 +370,23 @@ var SearchCurationsApiAxiosParamCreator = function (configuration) {
|
|
|
353
370
|
},
|
|
354
371
|
/**
|
|
355
372
|
*
|
|
356
|
-
* @summary
|
|
357
|
-
* @param {
|
|
358
|
-
* @param {string} [languageCode]
|
|
373
|
+
* @summary Create a CurationCategory (Auth roles: Admin,Manager)
|
|
374
|
+
* @param {CreateCurationCategoryCommand} [createCurationCategoryCommand]
|
|
359
375
|
* @param {*} [options] Override http request option.
|
|
360
376
|
* @throws {RequiredError}
|
|
361
377
|
*/
|
|
362
|
-
|
|
378
|
+
apiV1CurationcategoriesPost: function (createCurationCategoryCommand_1) {
|
|
363
379
|
var args_1 = [];
|
|
364
|
-
for (var _i =
|
|
365
|
-
args_1[_i -
|
|
380
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
381
|
+
args_1[_i - 1] = arguments[_i];
|
|
366
382
|
}
|
|
367
|
-
return __awaiter(_this, __spreadArray([
|
|
383
|
+
return __awaiter(_this, __spreadArray([createCurationCategoryCommand_1], args_1, true), void 0, function (createCurationCategoryCommand, options) {
|
|
368
384
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
369
385
|
if (options === void 0) { options = {}; }
|
|
370
386
|
return __generator(this, function (_a) {
|
|
371
387
|
switch (_a.label) {
|
|
372
388
|
case 0:
|
|
373
|
-
|
|
374
|
-
(0, common_1.assertParamExists)('apiV1SearchcurationsSlugRevalidatePost', 'slug', slug);
|
|
375
|
-
localVarPath = "/api/v1/searchcurations/{slug}/revalidate"
|
|
376
|
-
.replace("{".concat("slug", "}"), encodeURIComponent(String(slug)));
|
|
389
|
+
localVarPath = "/api/v1/curationcategories";
|
|
377
390
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
378
391
|
if (configuration) {
|
|
379
392
|
baseOptions = configuration.baseOptions;
|
|
@@ -388,12 +401,11 @@ var SearchCurationsApiAxiosParamCreator = function (configuration) {
|
|
|
388
401
|
// authentication oauth2 required
|
|
389
402
|
// oauth required
|
|
390
403
|
_a.sent();
|
|
391
|
-
|
|
392
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
393
|
-
}
|
|
404
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
394
405
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
395
406
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
396
407
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
408
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCurationCategoryCommand, localVarRequestOptions, configuration);
|
|
397
409
|
return [2 /*return*/, {
|
|
398
410
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
399
411
|
options: localVarRequestOptions,
|
|
@@ -404,27 +416,27 @@ var SearchCurationsApiAxiosParamCreator = function (configuration) {
|
|
|
404
416
|
},
|
|
405
417
|
};
|
|
406
418
|
};
|
|
407
|
-
exports.
|
|
419
|
+
exports.CurationCategoriesApiAxiosParamCreator = CurationCategoriesApiAxiosParamCreator;
|
|
408
420
|
/**
|
|
409
|
-
*
|
|
421
|
+
* CurationCategoriesApi - functional programming interface
|
|
410
422
|
* @export
|
|
411
423
|
*/
|
|
412
|
-
var
|
|
413
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
424
|
+
var CurationCategoriesApiFp = function (configuration) {
|
|
425
|
+
var localVarAxiosParamCreator = (0, exports.CurationCategoriesApiAxiosParamCreator)(configuration);
|
|
414
426
|
return {
|
|
415
427
|
/**
|
|
416
428
|
*
|
|
417
|
-
* @summary
|
|
418
|
-
* @param {string}
|
|
429
|
+
* @summary Delete CurationCategory (Auth roles: Admin,Manager)
|
|
430
|
+
* @param {string} curationCategoryId
|
|
419
431
|
* @param {*} [options] Override http request option.
|
|
420
432
|
* @throws {RequiredError}
|
|
421
433
|
*/
|
|
422
|
-
|
|
434
|
+
apiV1CurationcategoriesCurationCategoryIdDelete: function (curationCategoryId, options) {
|
|
423
435
|
return __awaiter(this, void 0, void 0, function () {
|
|
424
436
|
var localVarAxiosArgs;
|
|
425
437
|
return __generator(this, function (_a) {
|
|
426
438
|
switch (_a.label) {
|
|
427
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
439
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationcategoriesCurationCategoryIdDelete(curationCategoryId, options)];
|
|
428
440
|
case 1:
|
|
429
441
|
localVarAxiosArgs = _a.sent();
|
|
430
442
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -434,18 +446,18 @@ var SearchCurationsApiFp = function (configuration) {
|
|
|
434
446
|
},
|
|
435
447
|
/**
|
|
436
448
|
*
|
|
437
|
-
* @summary
|
|
449
|
+
* @summary Get CurationCategory by id (Auth roles: Admin,Manager)
|
|
450
|
+
* @param {string} curationCategoryId
|
|
438
451
|
* @param {string} languageCode
|
|
439
|
-
* @param {string} id
|
|
440
452
|
* @param {*} [options] Override http request option.
|
|
441
453
|
* @throws {RequiredError}
|
|
442
454
|
*/
|
|
443
|
-
|
|
455
|
+
apiV1CurationcategoriesCurationCategoryIdGet: function (curationCategoryId, languageCode, options) {
|
|
444
456
|
return __awaiter(this, void 0, void 0, function () {
|
|
445
457
|
var localVarAxiosArgs;
|
|
446
458
|
return __generator(this, function (_a) {
|
|
447
459
|
switch (_a.label) {
|
|
448
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
460
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationcategoriesCurationCategoryIdGet(curationCategoryId, languageCode, options)];
|
|
449
461
|
case 1:
|
|
450
462
|
localVarAxiosArgs = _a.sent();
|
|
451
463
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -455,18 +467,18 @@ var SearchCurationsApiFp = function (configuration) {
|
|
|
455
467
|
},
|
|
456
468
|
/**
|
|
457
469
|
*
|
|
458
|
-
* @summary
|
|
459
|
-
* @param {string}
|
|
460
|
-
* @param {
|
|
470
|
+
* @summary Update CurationCategory (Auth roles: Admin,Manager)
|
|
471
|
+
* @param {string} curationCategoryId
|
|
472
|
+
* @param {UpdateCurationCategoryCommand} [updateCurationCategoryCommand]
|
|
461
473
|
* @param {*} [options] Override http request option.
|
|
462
474
|
* @throws {RequiredError}
|
|
463
475
|
*/
|
|
464
|
-
|
|
476
|
+
apiV1CurationcategoriesCurationCategoryIdPut: function (curationCategoryId, updateCurationCategoryCommand, options) {
|
|
465
477
|
return __awaiter(this, void 0, void 0, function () {
|
|
466
478
|
var localVarAxiosArgs;
|
|
467
479
|
return __generator(this, function (_a) {
|
|
468
480
|
switch (_a.label) {
|
|
469
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
481
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationcategoriesCurationCategoryIdPut(curationCategoryId, updateCurationCategoryCommand, options)];
|
|
470
482
|
case 1:
|
|
471
483
|
localVarAxiosArgs = _a.sent();
|
|
472
484
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -476,18 +488,18 @@ var SearchCurationsApiFp = function (configuration) {
|
|
|
476
488
|
},
|
|
477
489
|
/**
|
|
478
490
|
*
|
|
479
|
-
* @summary
|
|
480
|
-
* @param {string}
|
|
481
|
-
* @param {
|
|
491
|
+
* @summary Translate CurationCategory (Auth roles: Admin,Manager)
|
|
492
|
+
* @param {string} curationCategoryId
|
|
493
|
+
* @param {TranslateCurationCategoryCommand} [translateCurationCategoryCommand]
|
|
482
494
|
* @param {*} [options] Override http request option.
|
|
483
495
|
* @throws {RequiredError}
|
|
484
496
|
*/
|
|
485
|
-
|
|
497
|
+
apiV1CurationcategoriesCurationCategoryIdTranslatePost: function (curationCategoryId, translateCurationCategoryCommand, options) {
|
|
486
498
|
return __awaiter(this, void 0, void 0, function () {
|
|
487
499
|
var localVarAxiosArgs;
|
|
488
500
|
return __generator(this, function (_a) {
|
|
489
501
|
switch (_a.label) {
|
|
490
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
502
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationcategoriesCurationCategoryIdTranslatePost(curationCategoryId, translateCurationCategoryCommand, options)];
|
|
491
503
|
case 1:
|
|
492
504
|
localVarAxiosArgs = _a.sent();
|
|
493
505
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -497,18 +509,21 @@ var SearchCurationsApiFp = function (configuration) {
|
|
|
497
509
|
},
|
|
498
510
|
/**
|
|
499
511
|
*
|
|
500
|
-
* @summary
|
|
512
|
+
* @summary Get all CurationCategories (Auth roles: Admin,Manager)
|
|
501
513
|
* @param {string} languageCode
|
|
502
|
-
* @param {
|
|
514
|
+
* @param {string} [title]
|
|
515
|
+
* @param {number} [page]
|
|
516
|
+
* @param {number} [limit]
|
|
517
|
+
* @param {Date} [lastRetrieved]
|
|
503
518
|
* @param {*} [options] Override http request option.
|
|
504
519
|
* @throws {RequiredError}
|
|
505
520
|
*/
|
|
506
|
-
|
|
521
|
+
apiV1CurationcategoriesGet: function (languageCode, title, page, limit, lastRetrieved, options) {
|
|
507
522
|
return __awaiter(this, void 0, void 0, function () {
|
|
508
523
|
var localVarAxiosArgs;
|
|
509
524
|
return __generator(this, function (_a) {
|
|
510
525
|
switch (_a.label) {
|
|
511
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
526
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationcategoriesGet(languageCode, title, page, limit, lastRetrieved, options)];
|
|
512
527
|
case 1:
|
|
513
528
|
localVarAxiosArgs = _a.sent();
|
|
514
529
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -518,18 +533,17 @@ var SearchCurationsApiFp = function (configuration) {
|
|
|
518
533
|
},
|
|
519
534
|
/**
|
|
520
535
|
*
|
|
521
|
-
* @summary
|
|
522
|
-
* @param {
|
|
523
|
-
* @param {string} [languageCode]
|
|
536
|
+
* @summary Create a CurationCategory (Auth roles: Admin,Manager)
|
|
537
|
+
* @param {CreateCurationCategoryCommand} [createCurationCategoryCommand]
|
|
524
538
|
* @param {*} [options] Override http request option.
|
|
525
539
|
* @throws {RequiredError}
|
|
526
540
|
*/
|
|
527
|
-
|
|
541
|
+
apiV1CurationcategoriesPost: function (createCurationCategoryCommand, options) {
|
|
528
542
|
return __awaiter(this, void 0, void 0, function () {
|
|
529
543
|
var localVarAxiosArgs;
|
|
530
544
|
return __generator(this, function (_a) {
|
|
531
545
|
switch (_a.label) {
|
|
532
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
546
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CurationcategoriesPost(createCurationCategoryCommand, options)];
|
|
533
547
|
case 1:
|
|
534
548
|
localVarAxiosArgs = _a.sent();
|
|
535
549
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -539,165 +553,168 @@ var SearchCurationsApiFp = function (configuration) {
|
|
|
539
553
|
},
|
|
540
554
|
};
|
|
541
555
|
};
|
|
542
|
-
exports.
|
|
556
|
+
exports.CurationCategoriesApiFp = CurationCategoriesApiFp;
|
|
543
557
|
/**
|
|
544
|
-
*
|
|
558
|
+
* CurationCategoriesApi - factory interface
|
|
545
559
|
* @export
|
|
546
560
|
*/
|
|
547
|
-
var
|
|
548
|
-
var localVarFp = (0, exports.
|
|
561
|
+
var CurationCategoriesApiFactory = function (configuration, basePath, axios) {
|
|
562
|
+
var localVarFp = (0, exports.CurationCategoriesApiFp)(configuration);
|
|
549
563
|
return {
|
|
550
564
|
/**
|
|
551
565
|
*
|
|
552
|
-
* @summary
|
|
553
|
-
* @param {string}
|
|
566
|
+
* @summary Delete CurationCategory (Auth roles: Admin,Manager)
|
|
567
|
+
* @param {string} curationCategoryId
|
|
554
568
|
* @param {*} [options] Override http request option.
|
|
555
569
|
* @throws {RequiredError}
|
|
556
570
|
*/
|
|
557
|
-
|
|
558
|
-
return localVarFp.
|
|
571
|
+
apiV1CurationcategoriesCurationCategoryIdDelete: function (curationCategoryId, options) {
|
|
572
|
+
return localVarFp.apiV1CurationcategoriesCurationCategoryIdDelete(curationCategoryId, options).then(function (request) { return request(axios, basePath); });
|
|
559
573
|
},
|
|
560
574
|
/**
|
|
561
575
|
*
|
|
562
|
-
* @summary
|
|
576
|
+
* @summary Get CurationCategory by id (Auth roles: Admin,Manager)
|
|
577
|
+
* @param {string} curationCategoryId
|
|
563
578
|
* @param {string} languageCode
|
|
564
|
-
* @param {string} id
|
|
565
579
|
* @param {*} [options] Override http request option.
|
|
566
580
|
* @throws {RequiredError}
|
|
567
581
|
*/
|
|
568
|
-
|
|
569
|
-
return localVarFp.
|
|
582
|
+
apiV1CurationcategoriesCurationCategoryIdGet: function (curationCategoryId, languageCode, options) {
|
|
583
|
+
return localVarFp.apiV1CurationcategoriesCurationCategoryIdGet(curationCategoryId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
570
584
|
},
|
|
571
585
|
/**
|
|
572
586
|
*
|
|
573
|
-
* @summary
|
|
574
|
-
* @param {string}
|
|
575
|
-
* @param {
|
|
587
|
+
* @summary Update CurationCategory (Auth roles: Admin,Manager)
|
|
588
|
+
* @param {string} curationCategoryId
|
|
589
|
+
* @param {UpdateCurationCategoryCommand} [updateCurationCategoryCommand]
|
|
576
590
|
* @param {*} [options] Override http request option.
|
|
577
591
|
* @throws {RequiredError}
|
|
578
592
|
*/
|
|
579
|
-
|
|
580
|
-
return localVarFp.
|
|
593
|
+
apiV1CurationcategoriesCurationCategoryIdPut: function (curationCategoryId, updateCurationCategoryCommand, options) {
|
|
594
|
+
return localVarFp.apiV1CurationcategoriesCurationCategoryIdPut(curationCategoryId, updateCurationCategoryCommand, options).then(function (request) { return request(axios, basePath); });
|
|
581
595
|
},
|
|
582
596
|
/**
|
|
583
597
|
*
|
|
584
|
-
* @summary
|
|
585
|
-
* @param {string}
|
|
586
|
-
* @param {
|
|
598
|
+
* @summary Translate CurationCategory (Auth roles: Admin,Manager)
|
|
599
|
+
* @param {string} curationCategoryId
|
|
600
|
+
* @param {TranslateCurationCategoryCommand} [translateCurationCategoryCommand]
|
|
587
601
|
* @param {*} [options] Override http request option.
|
|
588
602
|
* @throws {RequiredError}
|
|
589
603
|
*/
|
|
590
|
-
|
|
591
|
-
return localVarFp.
|
|
604
|
+
apiV1CurationcategoriesCurationCategoryIdTranslatePost: function (curationCategoryId, translateCurationCategoryCommand, options) {
|
|
605
|
+
return localVarFp.apiV1CurationcategoriesCurationCategoryIdTranslatePost(curationCategoryId, translateCurationCategoryCommand, options).then(function (request) { return request(axios, basePath); });
|
|
592
606
|
},
|
|
593
607
|
/**
|
|
594
608
|
*
|
|
595
|
-
* @summary
|
|
609
|
+
* @summary Get all CurationCategories (Auth roles: Admin,Manager)
|
|
596
610
|
* @param {string} languageCode
|
|
597
|
-
* @param {
|
|
611
|
+
* @param {string} [title]
|
|
612
|
+
* @param {number} [page]
|
|
613
|
+
* @param {number} [limit]
|
|
614
|
+
* @param {Date} [lastRetrieved]
|
|
598
615
|
* @param {*} [options] Override http request option.
|
|
599
616
|
* @throws {RequiredError}
|
|
600
617
|
*/
|
|
601
|
-
|
|
602
|
-
return localVarFp.
|
|
618
|
+
apiV1CurationcategoriesGet: function (languageCode, title, page, limit, lastRetrieved, options) {
|
|
619
|
+
return localVarFp.apiV1CurationcategoriesGet(languageCode, title, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
603
620
|
},
|
|
604
621
|
/**
|
|
605
622
|
*
|
|
606
|
-
* @summary
|
|
607
|
-
* @param {
|
|
608
|
-
* @param {string} [languageCode]
|
|
623
|
+
* @summary Create a CurationCategory (Auth roles: Admin,Manager)
|
|
624
|
+
* @param {CreateCurationCategoryCommand} [createCurationCategoryCommand]
|
|
609
625
|
* @param {*} [options] Override http request option.
|
|
610
626
|
* @throws {RequiredError}
|
|
611
627
|
*/
|
|
612
|
-
|
|
613
|
-
return localVarFp.
|
|
628
|
+
apiV1CurationcategoriesPost: function (createCurationCategoryCommand, options) {
|
|
629
|
+
return localVarFp.apiV1CurationcategoriesPost(createCurationCategoryCommand, options).then(function (request) { return request(axios, basePath); });
|
|
614
630
|
},
|
|
615
631
|
};
|
|
616
632
|
};
|
|
617
|
-
exports.
|
|
633
|
+
exports.CurationCategoriesApiFactory = CurationCategoriesApiFactory;
|
|
618
634
|
/**
|
|
619
|
-
*
|
|
635
|
+
* CurationCategoriesApi - object-oriented interface
|
|
620
636
|
* @export
|
|
621
|
-
* @class
|
|
637
|
+
* @class CurationCategoriesApi
|
|
622
638
|
* @extends {BaseAPI}
|
|
623
639
|
*/
|
|
624
|
-
var
|
|
625
|
-
__extends(
|
|
626
|
-
function
|
|
640
|
+
var CurationCategoriesApi = /** @class */ (function (_super) {
|
|
641
|
+
__extends(CurationCategoriesApi, _super);
|
|
642
|
+
function CurationCategoriesApi() {
|
|
627
643
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
628
644
|
}
|
|
629
645
|
/**
|
|
630
646
|
*
|
|
631
|
-
* @summary
|
|
632
|
-
* @param {
|
|
647
|
+
* @summary Delete CurationCategory (Auth roles: Admin,Manager)
|
|
648
|
+
* @param {CurationCategoriesApiApiV1CurationcategoriesCurationCategoryIdDeleteRequest} requestParameters Request parameters.
|
|
633
649
|
* @param {*} [options] Override http request option.
|
|
634
650
|
* @throws {RequiredError}
|
|
635
|
-
* @memberof
|
|
651
|
+
* @memberof CurationCategoriesApi
|
|
636
652
|
*/
|
|
637
|
-
|
|
653
|
+
CurationCategoriesApi.prototype.apiV1CurationcategoriesCurationCategoryIdDelete = function (requestParameters, options) {
|
|
638
654
|
var _this = this;
|
|
639
|
-
return (0, exports.
|
|
655
|
+
return (0, exports.CurationCategoriesApiFp)(this.configuration).apiV1CurationcategoriesCurationCategoryIdDelete(requestParameters.curationCategoryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
640
656
|
};
|
|
641
657
|
/**
|
|
642
658
|
*
|
|
643
|
-
* @summary
|
|
644
|
-
* @param {
|
|
659
|
+
* @summary Get CurationCategory by id (Auth roles: Admin,Manager)
|
|
660
|
+
* @param {CurationCategoriesApiApiV1CurationcategoriesCurationCategoryIdGetRequest} requestParameters Request parameters.
|
|
645
661
|
* @param {*} [options] Override http request option.
|
|
646
662
|
* @throws {RequiredError}
|
|
647
|
-
* @memberof
|
|
663
|
+
* @memberof CurationCategoriesApi
|
|
648
664
|
*/
|
|
649
|
-
|
|
665
|
+
CurationCategoriesApi.prototype.apiV1CurationcategoriesCurationCategoryIdGet = function (requestParameters, options) {
|
|
650
666
|
var _this = this;
|
|
651
|
-
return (0, exports.
|
|
667
|
+
return (0, exports.CurationCategoriesApiFp)(this.configuration).apiV1CurationcategoriesCurationCategoryIdGet(requestParameters.curationCategoryId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
652
668
|
};
|
|
653
669
|
/**
|
|
654
670
|
*
|
|
655
|
-
* @summary
|
|
656
|
-
* @param {
|
|
671
|
+
* @summary Update CurationCategory (Auth roles: Admin,Manager)
|
|
672
|
+
* @param {CurationCategoriesApiApiV1CurationcategoriesCurationCategoryIdPutRequest} requestParameters Request parameters.
|
|
657
673
|
* @param {*} [options] Override http request option.
|
|
658
674
|
* @throws {RequiredError}
|
|
659
|
-
* @memberof
|
|
675
|
+
* @memberof CurationCategoriesApi
|
|
660
676
|
*/
|
|
661
|
-
|
|
677
|
+
CurationCategoriesApi.prototype.apiV1CurationcategoriesCurationCategoryIdPut = function (requestParameters, options) {
|
|
662
678
|
var _this = this;
|
|
663
|
-
return (0, exports.
|
|
679
|
+
return (0, exports.CurationCategoriesApiFp)(this.configuration).apiV1CurationcategoriesCurationCategoryIdPut(requestParameters.curationCategoryId, requestParameters.updateCurationCategoryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
664
680
|
};
|
|
665
681
|
/**
|
|
666
682
|
*
|
|
667
|
-
* @summary
|
|
668
|
-
* @param {
|
|
683
|
+
* @summary Translate CurationCategory (Auth roles: Admin,Manager)
|
|
684
|
+
* @param {CurationCategoriesApiApiV1CurationcategoriesCurationCategoryIdTranslatePostRequest} requestParameters Request parameters.
|
|
669
685
|
* @param {*} [options] Override http request option.
|
|
670
686
|
* @throws {RequiredError}
|
|
671
|
-
* @memberof
|
|
687
|
+
* @memberof CurationCategoriesApi
|
|
672
688
|
*/
|
|
673
|
-
|
|
689
|
+
CurationCategoriesApi.prototype.apiV1CurationcategoriesCurationCategoryIdTranslatePost = function (requestParameters, options) {
|
|
674
690
|
var _this = this;
|
|
675
|
-
return (0, exports.
|
|
691
|
+
return (0, exports.CurationCategoriesApiFp)(this.configuration).apiV1CurationcategoriesCurationCategoryIdTranslatePost(requestParameters.curationCategoryId, requestParameters.translateCurationCategoryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
676
692
|
};
|
|
677
693
|
/**
|
|
678
694
|
*
|
|
679
|
-
* @summary
|
|
680
|
-
* @param {
|
|
695
|
+
* @summary Get all CurationCategories (Auth roles: Admin,Manager)
|
|
696
|
+
* @param {CurationCategoriesApiApiV1CurationcategoriesGetRequest} requestParameters Request parameters.
|
|
681
697
|
* @param {*} [options] Override http request option.
|
|
682
698
|
* @throws {RequiredError}
|
|
683
|
-
* @memberof
|
|
699
|
+
* @memberof CurationCategoriesApi
|
|
684
700
|
*/
|
|
685
|
-
|
|
701
|
+
CurationCategoriesApi.prototype.apiV1CurationcategoriesGet = function (requestParameters, options) {
|
|
686
702
|
var _this = this;
|
|
687
|
-
return (0, exports.
|
|
703
|
+
return (0, exports.CurationCategoriesApiFp)(this.configuration).apiV1CurationcategoriesGet(requestParameters.languageCode, requestParameters.title, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
688
704
|
};
|
|
689
705
|
/**
|
|
690
706
|
*
|
|
691
|
-
* @summary
|
|
692
|
-
* @param {
|
|
707
|
+
* @summary Create a CurationCategory (Auth roles: Admin,Manager)
|
|
708
|
+
* @param {CurationCategoriesApiApiV1CurationcategoriesPostRequest} requestParameters Request parameters.
|
|
693
709
|
* @param {*} [options] Override http request option.
|
|
694
710
|
* @throws {RequiredError}
|
|
695
|
-
* @memberof
|
|
711
|
+
* @memberof CurationCategoriesApi
|
|
696
712
|
*/
|
|
697
|
-
|
|
713
|
+
CurationCategoriesApi.prototype.apiV1CurationcategoriesPost = function (requestParameters, options) {
|
|
698
714
|
var _this = this;
|
|
699
|
-
|
|
715
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
716
|
+
return (0, exports.CurationCategoriesApiFp)(this.configuration).apiV1CurationcategoriesPost(requestParameters.createCurationCategoryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
700
717
|
};
|
|
701
|
-
return
|
|
718
|
+
return CurationCategoriesApi;
|
|
702
719
|
}(base_1.BaseAPI));
|
|
703
|
-
exports.
|
|
720
|
+
exports.CurationCategoriesApi = CurationCategoriesApi;
|