ch-api-client-typescript2 5.45.6 → 5.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/curations-api.d.ts +15 -42
- package/lib/api/curations-api.d.ts.map +1 -1
- package/lib/api/curations-api.js +22 -45
- package/package.json +1 -1
- package/src/api/curations-api.ts +29 -76
|
@@ -25,13 +25,10 @@ export declare const CurationsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
25
25
|
* @summary Get CurationCategories
|
|
26
26
|
* @param {string} languageCode
|
|
27
27
|
* @param {string} [curationCategoryId]
|
|
28
|
-
* @param {number} [page]
|
|
29
|
-
* @param {number} [limit]
|
|
30
|
-
* @param {Date} [lastRetrieved]
|
|
31
28
|
* @param {*} [options] Override http request option.
|
|
32
29
|
* @throws {RequiredError}
|
|
33
30
|
*/
|
|
34
|
-
apiV2CurationsCategoriesGet: (languageCode: string, curationCategoryId?: string,
|
|
31
|
+
apiV2CurationsCategoriesGet: (languageCode: string, curationCategoryId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
32
|
/**
|
|
36
33
|
*
|
|
37
34
|
* @summary Get Curations by single Category
|
|
@@ -44,13 +41,13 @@ export declare const CurationsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
44
41
|
/**
|
|
45
42
|
*
|
|
46
43
|
* @summary Get Curations by mutiple Categories with limit
|
|
47
|
-
* @param {Array<string>} curationCategoryIds
|
|
48
44
|
* @param {string} languageCode
|
|
49
45
|
* @param {number} [curationLimit]
|
|
46
|
+
* @param {Array<string>} [requestBody]
|
|
50
47
|
* @param {*} [options] Override http request option.
|
|
51
48
|
* @throws {RequiredError}
|
|
52
49
|
*/
|
|
53
|
-
apiV2CurationsCategoryGet: (
|
|
50
|
+
apiV2CurationsCategoryGet: (languageCode: string, curationLimit?: number, requestBody?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
51
|
/**
|
|
55
52
|
*
|
|
56
53
|
* @summary Get Curation by Id
|
|
@@ -71,13 +68,10 @@ export declare const CurationsApiFp: (configuration?: Configuration) => {
|
|
|
71
68
|
* @summary Get CurationCategories
|
|
72
69
|
* @param {string} languageCode
|
|
73
70
|
* @param {string} [curationCategoryId]
|
|
74
|
-
* @param {number} [page]
|
|
75
|
-
* @param {number} [limit]
|
|
76
|
-
* @param {Date} [lastRetrieved]
|
|
77
71
|
* @param {*} [options] Override http request option.
|
|
78
72
|
* @throws {RequiredError}
|
|
79
73
|
*/
|
|
80
|
-
apiV2CurationsCategoriesGet(languageCode: string, curationCategoryId?: string,
|
|
74
|
+
apiV2CurationsCategoriesGet(languageCode: string, curationCategoryId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CurationCategoriesModel>>;
|
|
81
75
|
/**
|
|
82
76
|
*
|
|
83
77
|
* @summary Get Curations by single Category
|
|
@@ -90,13 +84,13 @@ export declare const CurationsApiFp: (configuration?: Configuration) => {
|
|
|
90
84
|
/**
|
|
91
85
|
*
|
|
92
86
|
* @summary Get Curations by mutiple Categories with limit
|
|
93
|
-
* @param {Array<string>} curationCategoryIds
|
|
94
87
|
* @param {string} languageCode
|
|
95
88
|
* @param {number} [curationLimit]
|
|
89
|
+
* @param {Array<string>} [requestBody]
|
|
96
90
|
* @param {*} [options] Override http request option.
|
|
97
91
|
* @throws {RequiredError}
|
|
98
92
|
*/
|
|
99
|
-
apiV2CurationsCategoryGet(
|
|
93
|
+
apiV2CurationsCategoryGet(languageCode: string, curationLimit?: number, requestBody?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CurationsByCategoryModel>>>;
|
|
100
94
|
/**
|
|
101
95
|
*
|
|
102
96
|
* @summary Get Curation by Id
|
|
@@ -117,13 +111,10 @@ export declare const CurationsApiFactory: (configuration?: Configuration, basePa
|
|
|
117
111
|
* @summary Get CurationCategories
|
|
118
112
|
* @param {string} languageCode
|
|
119
113
|
* @param {string} [curationCategoryId]
|
|
120
|
-
* @param {number} [page]
|
|
121
|
-
* @param {number} [limit]
|
|
122
|
-
* @param {Date} [lastRetrieved]
|
|
123
114
|
* @param {*} [options] Override http request option.
|
|
124
115
|
* @throws {RequiredError}
|
|
125
116
|
*/
|
|
126
|
-
apiV2CurationsCategoriesGet(languageCode: string, curationCategoryId?: string,
|
|
117
|
+
apiV2CurationsCategoriesGet(languageCode: string, curationCategoryId?: string, options?: any): AxiosPromise<CurationCategoriesModel>;
|
|
127
118
|
/**
|
|
128
119
|
*
|
|
129
120
|
* @summary Get Curations by single Category
|
|
@@ -136,13 +127,13 @@ export declare const CurationsApiFactory: (configuration?: Configuration, basePa
|
|
|
136
127
|
/**
|
|
137
128
|
*
|
|
138
129
|
* @summary Get Curations by mutiple Categories with limit
|
|
139
|
-
* @param {Array<string>} curationCategoryIds
|
|
140
130
|
* @param {string} languageCode
|
|
141
131
|
* @param {number} [curationLimit]
|
|
132
|
+
* @param {Array<string>} [requestBody]
|
|
142
133
|
* @param {*} [options] Override http request option.
|
|
143
134
|
* @throws {RequiredError}
|
|
144
135
|
*/
|
|
145
|
-
apiV2CurationsCategoryGet(
|
|
136
|
+
apiV2CurationsCategoryGet(languageCode: string, curationLimit?: number, requestBody?: Array<string>, options?: any): AxiosPromise<Array<CurationsByCategoryModel>>;
|
|
146
137
|
/**
|
|
147
138
|
*
|
|
148
139
|
* @summary Get Curation by Id
|
|
@@ -171,24 +162,6 @@ export interface CurationsApiApiV2CurationsCategoriesGetRequest {
|
|
|
171
162
|
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
172
163
|
*/
|
|
173
164
|
readonly curationCategoryId?: string;
|
|
174
|
-
/**
|
|
175
|
-
*
|
|
176
|
-
* @type {number}
|
|
177
|
-
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
178
|
-
*/
|
|
179
|
-
readonly page?: number;
|
|
180
|
-
/**
|
|
181
|
-
*
|
|
182
|
-
* @type {number}
|
|
183
|
-
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
184
|
-
*/
|
|
185
|
-
readonly limit?: number;
|
|
186
|
-
/**
|
|
187
|
-
*
|
|
188
|
-
* @type {Date}
|
|
189
|
-
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
190
|
-
*/
|
|
191
|
-
readonly lastRetrieved?: Date;
|
|
192
165
|
}
|
|
193
166
|
/**
|
|
194
167
|
* Request parameters for apiV2CurationsCategoryCurationCategoryIdGet operation in CurationsApi.
|
|
@@ -215,12 +188,6 @@ export interface CurationsApiApiV2CurationsCategoryCurationCategoryIdGetRequest
|
|
|
215
188
|
* @interface CurationsApiApiV2CurationsCategoryGetRequest
|
|
216
189
|
*/
|
|
217
190
|
export interface CurationsApiApiV2CurationsCategoryGetRequest {
|
|
218
|
-
/**
|
|
219
|
-
*
|
|
220
|
-
* @type {Array<string>}
|
|
221
|
-
* @memberof CurationsApiApiV2CurationsCategoryGet
|
|
222
|
-
*/
|
|
223
|
-
readonly curationCategoryIds: Array<string>;
|
|
224
191
|
/**
|
|
225
192
|
*
|
|
226
193
|
* @type {string}
|
|
@@ -233,6 +200,12 @@ export interface CurationsApiApiV2CurationsCategoryGetRequest {
|
|
|
233
200
|
* @memberof CurationsApiApiV2CurationsCategoryGet
|
|
234
201
|
*/
|
|
235
202
|
readonly curationLimit?: number;
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @type {Array<string>}
|
|
206
|
+
* @memberof CurationsApiApiV2CurationsCategoryGet
|
|
207
|
+
*/
|
|
208
|
+
readonly requestBody?: Array<string>;
|
|
236
209
|
}
|
|
237
210
|
/**
|
|
238
211
|
* Request parameters for apiV2CurationsCurationIdGet operation in CurationsApi.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curations-api.d.ts","sourceRoot":"","sources":["../../src/api/curations-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAoB,EAAE,YAAY,EAAE,aAAa,EA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QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAA;CACvC;AAED;;;;GAIG;AACH,MAAM,WAAW,8DAA8D;IAC3E;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAA;IAEnC;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,4CAA4C;IACzD;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAE7B;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;IAE/B;;;;OAIG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CACvC;AAED;;;;GAIG;AACH,MAAM,WAAW,8CAA8C;IAC3D;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAE3B;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;CAChC;AAED;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,OAAO;IACrC;;;;;;;OAOG;IACI,2BAA2B,CAAC,iBAAiB,EAAE,8CAA8C,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAIlI;;;;;;;OAOG;IACI,2CAA2C,CAAC,iBAAiB,EAAE,8DAA8D,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAIlK;;;;;;;OAOG;IACI,yBAAyB,CAAC,iBAAiB,EAAE,4CAA4C,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAI9H;;;;;;;OAOG;IACI,2BAA2B,CAAC,iBAAiB,EAAE,8CAA8C,EAAE,OAAO,CAAC,EAAE,kBAAkB;CAGrI"}
|
package/lib/api/curations-api.js
CHANGED
|
@@ -97,13 +97,10 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
* @summary Get CurationCategories
|
|
98
98
|
* @param {string} languageCode
|
|
99
99
|
* @param {string} [curationCategoryId]
|
|
100
|
-
* @param {number} [page]
|
|
101
|
-
* @param {number} [limit]
|
|
102
|
-
* @param {Date} [lastRetrieved]
|
|
103
100
|
* @param {*} [options] Override http request option.
|
|
104
101
|
* @throws {RequiredError}
|
|
105
102
|
*/
|
|
106
|
-
apiV2CurationsCategoriesGet: function (languageCode, curationCategoryId,
|
|
103
|
+
apiV2CurationsCategoriesGet: function (languageCode, curationCategoryId, options) {
|
|
107
104
|
if (options === void 0) { options = {}; }
|
|
108
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
109
106
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -119,21 +116,10 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
119
116
|
localVarHeaderParameter = {};
|
|
120
117
|
localVarQueryParameter = {};
|
|
121
118
|
if (languageCode !== undefined) {
|
|
122
|
-
localVarQueryParameter['
|
|
119
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
123
120
|
}
|
|
124
121
|
if (curationCategoryId !== undefined) {
|
|
125
|
-
localVarQueryParameter['
|
|
126
|
-
}
|
|
127
|
-
if (page !== undefined) {
|
|
128
|
-
localVarQueryParameter['page'] = page;
|
|
129
|
-
}
|
|
130
|
-
if (limit !== undefined) {
|
|
131
|
-
localVarQueryParameter['limit'] = limit;
|
|
132
|
-
}
|
|
133
|
-
if (lastRetrieved !== undefined) {
|
|
134
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
135
|
-
lastRetrieved.toISOString() :
|
|
136
|
-
lastRetrieved;
|
|
122
|
+
localVarQueryParameter['curationCategoryId'] = curationCategoryId;
|
|
137
123
|
}
|
|
138
124
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
139
125
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -172,7 +158,7 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
172
158
|
localVarHeaderParameter = {};
|
|
173
159
|
localVarQueryParameter = {};
|
|
174
160
|
if (languageCode !== undefined) {
|
|
175
|
-
localVarQueryParameter['
|
|
161
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
176
162
|
}
|
|
177
163
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
178
164
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -187,19 +173,17 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
187
173
|
/**
|
|
188
174
|
*
|
|
189
175
|
* @summary Get Curations by mutiple Categories with limit
|
|
190
|
-
* @param {Array<string>} curationCategoryIds
|
|
191
176
|
* @param {string} languageCode
|
|
192
177
|
* @param {number} [curationLimit]
|
|
178
|
+
* @param {Array<string>} [requestBody]
|
|
193
179
|
* @param {*} [options] Override http request option.
|
|
194
180
|
* @throws {RequiredError}
|
|
195
181
|
*/
|
|
196
|
-
apiV2CurationsCategoryGet: function (
|
|
182
|
+
apiV2CurationsCategoryGet: function (languageCode, curationLimit, requestBody, options) {
|
|
197
183
|
if (options === void 0) { options = {}; }
|
|
198
184
|
return __awaiter(_this, void 0, void 0, function () {
|
|
199
185
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
200
186
|
return __generator(this, function (_a) {
|
|
201
|
-
// verify required parameter 'curationCategoryIds' is not null or undefined
|
|
202
|
-
(0, common_1.assertParamExists)('apiV2CurationsCategoryGet', 'curationCategoryIds', curationCategoryIds);
|
|
203
187
|
// verify required parameter 'languageCode' is not null or undefined
|
|
204
188
|
(0, common_1.assertParamExists)('apiV2CurationsCategoryGet', 'languageCode', languageCode);
|
|
205
189
|
localVarPath = "/api/v2/curations/category";
|
|
@@ -210,18 +194,17 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
210
194
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
211
195
|
localVarHeaderParameter = {};
|
|
212
196
|
localVarQueryParameter = {};
|
|
213
|
-
if (curationCategoryIds) {
|
|
214
|
-
localVarQueryParameter['CurationCategoryIds'] = curationCategoryIds;
|
|
215
|
-
}
|
|
216
197
|
if (languageCode !== undefined) {
|
|
217
|
-
localVarQueryParameter['
|
|
198
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
218
199
|
}
|
|
219
200
|
if (curationLimit !== undefined) {
|
|
220
201
|
localVarQueryParameter['CurationLimit'] = curationLimit;
|
|
221
202
|
}
|
|
203
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
222
204
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
223
205
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
224
206
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
207
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
225
208
|
return [2 /*return*/, {
|
|
226
209
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
227
210
|
options: localVarRequestOptions,
|
|
@@ -256,7 +239,7 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
256
239
|
localVarHeaderParameter = {};
|
|
257
240
|
localVarQueryParameter = {};
|
|
258
241
|
if (languageCode !== undefined) {
|
|
259
|
-
localVarQueryParameter['
|
|
242
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
260
243
|
}
|
|
261
244
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
262
245
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -283,18 +266,15 @@ var CurationsApiFp = function (configuration) {
|
|
|
283
266
|
* @summary Get CurationCategories
|
|
284
267
|
* @param {string} languageCode
|
|
285
268
|
* @param {string} [curationCategoryId]
|
|
286
|
-
* @param {number} [page]
|
|
287
|
-
* @param {number} [limit]
|
|
288
|
-
* @param {Date} [lastRetrieved]
|
|
289
269
|
* @param {*} [options] Override http request option.
|
|
290
270
|
* @throws {RequiredError}
|
|
291
271
|
*/
|
|
292
|
-
apiV2CurationsCategoriesGet: function (languageCode, curationCategoryId,
|
|
272
|
+
apiV2CurationsCategoriesGet: function (languageCode, curationCategoryId, options) {
|
|
293
273
|
return __awaiter(this, void 0, void 0, function () {
|
|
294
274
|
var localVarAxiosArgs;
|
|
295
275
|
return __generator(this, function (_a) {
|
|
296
276
|
switch (_a.label) {
|
|
297
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsCategoriesGet(languageCode, curationCategoryId,
|
|
277
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsCategoriesGet(languageCode, curationCategoryId, options)];
|
|
298
278
|
case 1:
|
|
299
279
|
localVarAxiosArgs = _a.sent();
|
|
300
280
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -326,18 +306,18 @@ var CurationsApiFp = function (configuration) {
|
|
|
326
306
|
/**
|
|
327
307
|
*
|
|
328
308
|
* @summary Get Curations by mutiple Categories with limit
|
|
329
|
-
* @param {Array<string>} curationCategoryIds
|
|
330
309
|
* @param {string} languageCode
|
|
331
310
|
* @param {number} [curationLimit]
|
|
311
|
+
* @param {Array<string>} [requestBody]
|
|
332
312
|
* @param {*} [options] Override http request option.
|
|
333
313
|
* @throws {RequiredError}
|
|
334
314
|
*/
|
|
335
|
-
apiV2CurationsCategoryGet: function (
|
|
315
|
+
apiV2CurationsCategoryGet: function (languageCode, curationLimit, requestBody, options) {
|
|
336
316
|
return __awaiter(this, void 0, void 0, function () {
|
|
337
317
|
var localVarAxiosArgs;
|
|
338
318
|
return __generator(this, function (_a) {
|
|
339
319
|
switch (_a.label) {
|
|
340
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsCategoryGet(
|
|
320
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsCategoryGet(languageCode, curationLimit, requestBody, options)];
|
|
341
321
|
case 1:
|
|
342
322
|
localVarAxiosArgs = _a.sent();
|
|
343
323
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -381,14 +361,11 @@ var CurationsApiFactory = function (configuration, basePath, axios) {
|
|
|
381
361
|
* @summary Get CurationCategories
|
|
382
362
|
* @param {string} languageCode
|
|
383
363
|
* @param {string} [curationCategoryId]
|
|
384
|
-
* @param {number} [page]
|
|
385
|
-
* @param {number} [limit]
|
|
386
|
-
* @param {Date} [lastRetrieved]
|
|
387
364
|
* @param {*} [options] Override http request option.
|
|
388
365
|
* @throws {RequiredError}
|
|
389
366
|
*/
|
|
390
|
-
apiV2CurationsCategoriesGet: function (languageCode, curationCategoryId,
|
|
391
|
-
return localVarFp.apiV2CurationsCategoriesGet(languageCode, curationCategoryId,
|
|
367
|
+
apiV2CurationsCategoriesGet: function (languageCode, curationCategoryId, options) {
|
|
368
|
+
return localVarFp.apiV2CurationsCategoriesGet(languageCode, curationCategoryId, options).then(function (request) { return request(axios, basePath); });
|
|
392
369
|
},
|
|
393
370
|
/**
|
|
394
371
|
*
|
|
@@ -404,14 +381,14 @@ var CurationsApiFactory = function (configuration, basePath, axios) {
|
|
|
404
381
|
/**
|
|
405
382
|
*
|
|
406
383
|
* @summary Get Curations by mutiple Categories with limit
|
|
407
|
-
* @param {Array<string>} curationCategoryIds
|
|
408
384
|
* @param {string} languageCode
|
|
409
385
|
* @param {number} [curationLimit]
|
|
386
|
+
* @param {Array<string>} [requestBody]
|
|
410
387
|
* @param {*} [options] Override http request option.
|
|
411
388
|
* @throws {RequiredError}
|
|
412
389
|
*/
|
|
413
|
-
apiV2CurationsCategoryGet: function (
|
|
414
|
-
return localVarFp.apiV2CurationsCategoryGet(
|
|
390
|
+
apiV2CurationsCategoryGet: function (languageCode, curationLimit, requestBody, options) {
|
|
391
|
+
return localVarFp.apiV2CurationsCategoryGet(languageCode, curationLimit, requestBody, options).then(function (request) { return request(axios, basePath); });
|
|
415
392
|
},
|
|
416
393
|
/**
|
|
417
394
|
*
|
|
@@ -448,7 +425,7 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
448
425
|
*/
|
|
449
426
|
CurationsApi.prototype.apiV2CurationsCategoriesGet = function (requestParameters, options) {
|
|
450
427
|
var _this = this;
|
|
451
|
-
return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsCategoriesGet(requestParameters.languageCode, requestParameters.curationCategoryId,
|
|
428
|
+
return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsCategoriesGet(requestParameters.languageCode, requestParameters.curationCategoryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
452
429
|
};
|
|
453
430
|
/**
|
|
454
431
|
*
|
|
@@ -472,7 +449,7 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
472
449
|
*/
|
|
473
450
|
CurationsApi.prototype.apiV2CurationsCategoryGet = function (requestParameters, options) {
|
|
474
451
|
var _this = this;
|
|
475
|
-
return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsCategoryGet(requestParameters.
|
|
452
|
+
return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsCategoryGet(requestParameters.languageCode, requestParameters.curationLimit, requestParameters.requestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
476
453
|
};
|
|
477
454
|
/**
|
|
478
455
|
*
|
package/package.json
CHANGED
package/src/api/curations-api.ts
CHANGED
|
@@ -39,13 +39,10 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
39
39
|
* @summary Get CurationCategories
|
|
40
40
|
* @param {string} languageCode
|
|
41
41
|
* @param {string} [curationCategoryId]
|
|
42
|
-
* @param {number} [page]
|
|
43
|
-
* @param {number} [limit]
|
|
44
|
-
* @param {Date} [lastRetrieved]
|
|
45
42
|
* @param {*} [options] Override http request option.
|
|
46
43
|
* @throws {RequiredError}
|
|
47
44
|
*/
|
|
48
|
-
apiV2CurationsCategoriesGet: async (languageCode: string, curationCategoryId?: string,
|
|
45
|
+
apiV2CurationsCategoriesGet: async (languageCode: string, curationCategoryId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
46
|
// verify required parameter 'languageCode' is not null or undefined
|
|
50
47
|
assertParamExists('apiV2CurationsCategoriesGet', 'languageCode', languageCode)
|
|
51
48
|
const localVarPath = `/api/v2/curations/categories`;
|
|
@@ -61,25 +58,11 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
61
58
|
const localVarQueryParameter = {} as any;
|
|
62
59
|
|
|
63
60
|
if (languageCode !== undefined) {
|
|
64
|
-
localVarQueryParameter['
|
|
61
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
65
62
|
}
|
|
66
63
|
|
|
67
64
|
if (curationCategoryId !== undefined) {
|
|
68
|
-
localVarQueryParameter['
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (page !== undefined) {
|
|
72
|
-
localVarQueryParameter['page'] = page;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (limit !== undefined) {
|
|
76
|
-
localVarQueryParameter['limit'] = limit;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
if (lastRetrieved !== undefined) {
|
|
80
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
81
|
-
(lastRetrieved as any).toISOString() :
|
|
82
|
-
lastRetrieved;
|
|
65
|
+
localVarQueryParameter['curationCategoryId'] = curationCategoryId;
|
|
83
66
|
}
|
|
84
67
|
|
|
85
68
|
|
|
@@ -120,7 +103,7 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
120
103
|
const localVarQueryParameter = {} as any;
|
|
121
104
|
|
|
122
105
|
if (languageCode !== undefined) {
|
|
123
|
-
localVarQueryParameter['
|
|
106
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
124
107
|
}
|
|
125
108
|
|
|
126
109
|
|
|
@@ -137,15 +120,13 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
137
120
|
/**
|
|
138
121
|
*
|
|
139
122
|
* @summary Get Curations by mutiple Categories with limit
|
|
140
|
-
* @param {Array<string>} curationCategoryIds
|
|
141
123
|
* @param {string} languageCode
|
|
142
124
|
* @param {number} [curationLimit]
|
|
125
|
+
* @param {Array<string>} [requestBody]
|
|
143
126
|
* @param {*} [options] Override http request option.
|
|
144
127
|
* @throws {RequiredError}
|
|
145
128
|
*/
|
|
146
|
-
apiV2CurationsCategoryGet: async (
|
|
147
|
-
// verify required parameter 'curationCategoryIds' is not null or undefined
|
|
148
|
-
assertParamExists('apiV2CurationsCategoryGet', 'curationCategoryIds', curationCategoryIds)
|
|
129
|
+
apiV2CurationsCategoryGet: async (languageCode: string, curationLimit?: number, requestBody?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
149
130
|
// verify required parameter 'languageCode' is not null or undefined
|
|
150
131
|
assertParamExists('apiV2CurationsCategoryGet', 'languageCode', languageCode)
|
|
151
132
|
const localVarPath = `/api/v2/curations/category`;
|
|
@@ -160,12 +141,8 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
160
141
|
const localVarHeaderParameter = {} as any;
|
|
161
142
|
const localVarQueryParameter = {} as any;
|
|
162
143
|
|
|
163
|
-
if (curationCategoryIds) {
|
|
164
|
-
localVarQueryParameter['CurationCategoryIds'] = curationCategoryIds;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
144
|
if (languageCode !== undefined) {
|
|
168
|
-
localVarQueryParameter['
|
|
145
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
169
146
|
}
|
|
170
147
|
|
|
171
148
|
if (curationLimit !== undefined) {
|
|
@@ -174,9 +151,12 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
174
151
|
|
|
175
152
|
|
|
176
153
|
|
|
154
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
155
|
+
|
|
177
156
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
178
157
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
179
158
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
159
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
180
160
|
|
|
181
161
|
return {
|
|
182
162
|
url: toPathString(localVarUrlObj),
|
|
@@ -210,7 +190,7 @@ export const CurationsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
210
190
|
const localVarQueryParameter = {} as any;
|
|
211
191
|
|
|
212
192
|
if (languageCode !== undefined) {
|
|
213
|
-
localVarQueryParameter['
|
|
193
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
214
194
|
}
|
|
215
195
|
|
|
216
196
|
|
|
@@ -239,14 +219,11 @@ export const CurationsApiFp = function(configuration?: Configuration) {
|
|
|
239
219
|
* @summary Get CurationCategories
|
|
240
220
|
* @param {string} languageCode
|
|
241
221
|
* @param {string} [curationCategoryId]
|
|
242
|
-
* @param {number} [page]
|
|
243
|
-
* @param {number} [limit]
|
|
244
|
-
* @param {Date} [lastRetrieved]
|
|
245
222
|
* @param {*} [options] Override http request option.
|
|
246
223
|
* @throws {RequiredError}
|
|
247
224
|
*/
|
|
248
|
-
async apiV2CurationsCategoriesGet(languageCode: string, curationCategoryId?: string,
|
|
249
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CurationsCategoriesGet(languageCode, curationCategoryId,
|
|
225
|
+
async apiV2CurationsCategoriesGet(languageCode: string, curationCategoryId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CurationCategoriesModel>> {
|
|
226
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CurationsCategoriesGet(languageCode, curationCategoryId, options);
|
|
250
227
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
251
228
|
},
|
|
252
229
|
/**
|
|
@@ -264,14 +241,14 @@ export const CurationsApiFp = function(configuration?: Configuration) {
|
|
|
264
241
|
/**
|
|
265
242
|
*
|
|
266
243
|
* @summary Get Curations by mutiple Categories with limit
|
|
267
|
-
* @param {Array<string>} curationCategoryIds
|
|
268
244
|
* @param {string} languageCode
|
|
269
245
|
* @param {number} [curationLimit]
|
|
246
|
+
* @param {Array<string>} [requestBody]
|
|
270
247
|
* @param {*} [options] Override http request option.
|
|
271
248
|
* @throws {RequiredError}
|
|
272
249
|
*/
|
|
273
|
-
async apiV2CurationsCategoryGet(
|
|
274
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CurationsCategoryGet(
|
|
250
|
+
async apiV2CurationsCategoryGet(languageCode: string, curationLimit?: number, requestBody?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CurationsByCategoryModel>>> {
|
|
251
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CurationsCategoryGet(languageCode, curationLimit, requestBody, options);
|
|
275
252
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
276
253
|
},
|
|
277
254
|
/**
|
|
@@ -301,14 +278,11 @@ export const CurationsApiFactory = function (configuration?: Configuration, base
|
|
|
301
278
|
* @summary Get CurationCategories
|
|
302
279
|
* @param {string} languageCode
|
|
303
280
|
* @param {string} [curationCategoryId]
|
|
304
|
-
* @param {number} [page]
|
|
305
|
-
* @param {number} [limit]
|
|
306
|
-
* @param {Date} [lastRetrieved]
|
|
307
281
|
* @param {*} [options] Override http request option.
|
|
308
282
|
* @throws {RequiredError}
|
|
309
283
|
*/
|
|
310
|
-
apiV2CurationsCategoriesGet(languageCode: string, curationCategoryId?: string,
|
|
311
|
-
return localVarFp.apiV2CurationsCategoriesGet(languageCode, curationCategoryId,
|
|
284
|
+
apiV2CurationsCategoriesGet(languageCode: string, curationCategoryId?: string, options?: any): AxiosPromise<CurationCategoriesModel> {
|
|
285
|
+
return localVarFp.apiV2CurationsCategoriesGet(languageCode, curationCategoryId, options).then((request) => request(axios, basePath));
|
|
312
286
|
},
|
|
313
287
|
/**
|
|
314
288
|
*
|
|
@@ -324,14 +298,14 @@ export const CurationsApiFactory = function (configuration?: Configuration, base
|
|
|
324
298
|
/**
|
|
325
299
|
*
|
|
326
300
|
* @summary Get Curations by mutiple Categories with limit
|
|
327
|
-
* @param {Array<string>} curationCategoryIds
|
|
328
301
|
* @param {string} languageCode
|
|
329
302
|
* @param {number} [curationLimit]
|
|
303
|
+
* @param {Array<string>} [requestBody]
|
|
330
304
|
* @param {*} [options] Override http request option.
|
|
331
305
|
* @throws {RequiredError}
|
|
332
306
|
*/
|
|
333
|
-
apiV2CurationsCategoryGet(
|
|
334
|
-
return localVarFp.apiV2CurationsCategoryGet(
|
|
307
|
+
apiV2CurationsCategoryGet(languageCode: string, curationLimit?: number, requestBody?: Array<string>, options?: any): AxiosPromise<Array<CurationsByCategoryModel>> {
|
|
308
|
+
return localVarFp.apiV2CurationsCategoryGet(languageCode, curationLimit, requestBody, options).then((request) => request(axios, basePath));
|
|
335
309
|
},
|
|
336
310
|
/**
|
|
337
311
|
*
|
|
@@ -366,27 +340,6 @@ export interface CurationsApiApiV2CurationsCategoriesGetRequest {
|
|
|
366
340
|
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
367
341
|
*/
|
|
368
342
|
readonly curationCategoryId?: string
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
*
|
|
372
|
-
* @type {number}
|
|
373
|
-
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
374
|
-
*/
|
|
375
|
-
readonly page?: number
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
*
|
|
379
|
-
* @type {number}
|
|
380
|
-
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
381
|
-
*/
|
|
382
|
-
readonly limit?: number
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
*
|
|
386
|
-
* @type {Date}
|
|
387
|
-
* @memberof CurationsApiApiV2CurationsCategoriesGet
|
|
388
|
-
*/
|
|
389
|
-
readonly lastRetrieved?: Date
|
|
390
343
|
}
|
|
391
344
|
|
|
392
345
|
/**
|
|
@@ -418,24 +371,24 @@ export interface CurationsApiApiV2CurationsCategoryCurationCategoryIdGetRequest
|
|
|
418
371
|
export interface CurationsApiApiV2CurationsCategoryGetRequest {
|
|
419
372
|
/**
|
|
420
373
|
*
|
|
421
|
-
* @type {
|
|
374
|
+
* @type {string}
|
|
422
375
|
* @memberof CurationsApiApiV2CurationsCategoryGet
|
|
423
376
|
*/
|
|
424
|
-
readonly
|
|
377
|
+
readonly languageCode: string
|
|
425
378
|
|
|
426
379
|
/**
|
|
427
380
|
*
|
|
428
|
-
* @type {
|
|
381
|
+
* @type {number}
|
|
429
382
|
* @memberof CurationsApiApiV2CurationsCategoryGet
|
|
430
383
|
*/
|
|
431
|
-
readonly
|
|
384
|
+
readonly curationLimit?: number
|
|
432
385
|
|
|
433
386
|
/**
|
|
434
387
|
*
|
|
435
|
-
* @type {
|
|
388
|
+
* @type {Array<string>}
|
|
436
389
|
* @memberof CurationsApiApiV2CurationsCategoryGet
|
|
437
390
|
*/
|
|
438
|
-
readonly
|
|
391
|
+
readonly requestBody?: Array<string>
|
|
439
392
|
}
|
|
440
393
|
|
|
441
394
|
/**
|
|
@@ -475,7 +428,7 @@ export class CurationsApi extends BaseAPI {
|
|
|
475
428
|
* @memberof CurationsApi
|
|
476
429
|
*/
|
|
477
430
|
public apiV2CurationsCategoriesGet(requestParameters: CurationsApiApiV2CurationsCategoriesGetRequest, options?: AxiosRequestConfig) {
|
|
478
|
-
return CurationsApiFp(this.configuration).apiV2CurationsCategoriesGet(requestParameters.languageCode, requestParameters.curationCategoryId,
|
|
431
|
+
return CurationsApiFp(this.configuration).apiV2CurationsCategoriesGet(requestParameters.languageCode, requestParameters.curationCategoryId, options).then((request) => request(this.axios, this.basePath));
|
|
479
432
|
}
|
|
480
433
|
|
|
481
434
|
/**
|
|
@@ -499,7 +452,7 @@ export class CurationsApi extends BaseAPI {
|
|
|
499
452
|
* @memberof CurationsApi
|
|
500
453
|
*/
|
|
501
454
|
public apiV2CurationsCategoryGet(requestParameters: CurationsApiApiV2CurationsCategoryGetRequest, options?: AxiosRequestConfig) {
|
|
502
|
-
return CurationsApiFp(this.configuration).apiV2CurationsCategoryGet(requestParameters.
|
|
455
|
+
return CurationsApiFp(this.configuration).apiV2CurationsCategoryGet(requestParameters.languageCode, requestParameters.curationLimit, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
503
456
|
}
|
|
504
457
|
|
|
505
458
|
/**
|