ch-api-client-typescript2 5.48.13 → 5.49.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/curations-api.d.ts +12 -12
- package/lib/api/curations-api.d.ts.map +1 -1
- package/lib/api/curations-api.js +15 -12
- package/package.json +1 -1
|
@@ -41,13 +41,13 @@ export declare const CurationsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @summary Get Curations by mutiple Categories with limit
|
|
44
|
+
* @param {Array<string>} curationCategoryIds
|
|
44
45
|
* @param {string} languageCode
|
|
45
46
|
* @param {number} [curationLimit]
|
|
46
|
-
* @param {Array<string>} [requestBody]
|
|
47
47
|
* @param {*} [options] Override http request option.
|
|
48
48
|
* @throws {RequiredError}
|
|
49
49
|
*/
|
|
50
|
-
apiV2CurationsCategoryGet: (languageCode: string, curationLimit?: number,
|
|
50
|
+
apiV2CurationsCategoryGet: (curationCategoryIds: Array<string>, languageCode: string, curationLimit?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
53
|
* @summary Get Curation by Id
|
|
@@ -84,13 +84,13 @@ export declare const CurationsApiFp: (configuration?: Configuration) => {
|
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @summary Get Curations by mutiple Categories with limit
|
|
87
|
+
* @param {Array<string>} curationCategoryIds
|
|
87
88
|
* @param {string} languageCode
|
|
88
89
|
* @param {number} [curationLimit]
|
|
89
|
-
* @param {Array<string>} [requestBody]
|
|
90
90
|
* @param {*} [options] Override http request option.
|
|
91
91
|
* @throws {RequiredError}
|
|
92
92
|
*/
|
|
93
|
-
apiV2CurationsCategoryGet(languageCode: string, curationLimit?: number,
|
|
93
|
+
apiV2CurationsCategoryGet(curationCategoryIds: Array<string>, languageCode: string, curationLimit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CurationsByCategoryModel>>>;
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
96
96
|
* @summary Get Curation by Id
|
|
@@ -127,13 +127,13 @@ export declare const CurationsApiFactory: (configuration?: Configuration, basePa
|
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @summary Get Curations by mutiple Categories with limit
|
|
130
|
+
* @param {Array<string>} curationCategoryIds
|
|
130
131
|
* @param {string} languageCode
|
|
131
132
|
* @param {number} [curationLimit]
|
|
132
|
-
* @param {Array<string>} [requestBody]
|
|
133
133
|
* @param {*} [options] Override http request option.
|
|
134
134
|
* @throws {RequiredError}
|
|
135
135
|
*/
|
|
136
|
-
apiV2CurationsCategoryGet(languageCode: string, curationLimit?: number,
|
|
136
|
+
apiV2CurationsCategoryGet(curationCategoryIds: Array<string>, languageCode: string, curationLimit?: number, options?: any): AxiosPromise<Array<CurationsByCategoryModel>>;
|
|
137
137
|
/**
|
|
138
138
|
*
|
|
139
139
|
* @summary Get Curation by Id
|
|
@@ -190,22 +190,22 @@ export interface CurationsApiApiV2CurationsCategoryCurationCategoryIdGetRequest
|
|
|
190
190
|
export interface CurationsApiApiV2CurationsCategoryGetRequest {
|
|
191
191
|
/**
|
|
192
192
|
*
|
|
193
|
-
* @type {string}
|
|
193
|
+
* @type {Array<string>}
|
|
194
194
|
* @memberof CurationsApiApiV2CurationsCategoryGet
|
|
195
195
|
*/
|
|
196
|
-
readonly
|
|
196
|
+
readonly curationCategoryIds: Array<string>;
|
|
197
197
|
/**
|
|
198
198
|
*
|
|
199
|
-
* @type {
|
|
199
|
+
* @type {string}
|
|
200
200
|
* @memberof CurationsApiApiV2CurationsCategoryGet
|
|
201
201
|
*/
|
|
202
|
-
readonly
|
|
202
|
+
readonly languageCode: string;
|
|
203
203
|
/**
|
|
204
204
|
*
|
|
205
|
-
* @type {
|
|
205
|
+
* @type {number}
|
|
206
206
|
* @memberof CurationsApiApiV2CurationsCategoryGet
|
|
207
207
|
*/
|
|
208
|
-
readonly
|
|
208
|
+
readonly curationLimit?: number;
|
|
209
209
|
}
|
|
210
210
|
/**
|
|
211
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,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAE7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAGrD;;;GAGG;AACH,eAAO,MAAM,6BAA6B,mBAA6B,aAAa;IAE5E;;;;;;;OAOG;gDAC+C,MAAM,uBAAuB,MAAM,YAAW,kBAAkB,KAAQ,OAAO,CAAC,WAAW,CAAC;IAkC9I;;;;;;;OAOG;sEACqE,MAAM,gBAAgB,MAAM,YAAW,kBAAkB,KAAQ,OAAO,CAAC,WAAW,CAAC;IAiC7J;;;;;;;;OAQG;
|
|
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,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAE7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEpD,OAAO,EAAE,aAAa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C,aAAa,CAAC,EAAE,MAAM,CAAA;CAClC;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
|
@@ -190,21 +190,23 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
190
190
|
/**
|
|
191
191
|
*
|
|
192
192
|
* @summary Get Curations by mutiple Categories with limit
|
|
193
|
+
* @param {Array<string>} curationCategoryIds
|
|
193
194
|
* @param {string} languageCode
|
|
194
195
|
* @param {number} [curationLimit]
|
|
195
|
-
* @param {Array<string>} [requestBody]
|
|
196
196
|
* @param {*} [options] Override http request option.
|
|
197
197
|
* @throws {RequiredError}
|
|
198
198
|
*/
|
|
199
|
-
apiV2CurationsCategoryGet: function (languageCode_1, curationLimit_1
|
|
199
|
+
apiV2CurationsCategoryGet: function (curationCategoryIds_1, languageCode_1, curationLimit_1) {
|
|
200
200
|
var args_1 = [];
|
|
201
201
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
202
202
|
args_1[_i - 3] = arguments[_i];
|
|
203
203
|
}
|
|
204
|
-
return __awaiter(_this, __spreadArray([languageCode_1, curationLimit_1
|
|
204
|
+
return __awaiter(_this, __spreadArray([curationCategoryIds_1, languageCode_1, curationLimit_1], args_1, true), void 0, function (curationCategoryIds, languageCode, curationLimit, options) {
|
|
205
205
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
206
206
|
if (options === void 0) { options = {}; }
|
|
207
207
|
return __generator(this, function (_a) {
|
|
208
|
+
// verify required parameter 'curationCategoryIds' is not null or undefined
|
|
209
|
+
(0, common_1.assertParamExists)('apiV2CurationsCategoryGet', 'curationCategoryIds', curationCategoryIds);
|
|
208
210
|
// verify required parameter 'languageCode' is not null or undefined
|
|
209
211
|
(0, common_1.assertParamExists)('apiV2CurationsCategoryGet', 'languageCode', languageCode);
|
|
210
212
|
localVarPath = "/api/v2/curations/category";
|
|
@@ -215,17 +217,18 @@ var CurationsApiAxiosParamCreator = function (configuration) {
|
|
|
215
217
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
216
218
|
localVarHeaderParameter = {};
|
|
217
219
|
localVarQueryParameter = {};
|
|
220
|
+
if (curationCategoryIds) {
|
|
221
|
+
localVarQueryParameter['curationCategoryIds'] = curationCategoryIds;
|
|
222
|
+
}
|
|
218
223
|
if (languageCode !== undefined) {
|
|
219
224
|
localVarQueryParameter['languageCode'] = languageCode;
|
|
220
225
|
}
|
|
221
226
|
if (curationLimit !== undefined) {
|
|
222
227
|
localVarQueryParameter['curationLimit'] = curationLimit;
|
|
223
228
|
}
|
|
224
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
225
229
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
226
230
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
227
231
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
228
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
229
232
|
return [2 /*return*/, {
|
|
230
233
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
231
234
|
options: localVarRequestOptions,
|
|
@@ -331,18 +334,18 @@ var CurationsApiFp = function (configuration) {
|
|
|
331
334
|
/**
|
|
332
335
|
*
|
|
333
336
|
* @summary Get Curations by mutiple Categories with limit
|
|
337
|
+
* @param {Array<string>} curationCategoryIds
|
|
334
338
|
* @param {string} languageCode
|
|
335
339
|
* @param {number} [curationLimit]
|
|
336
|
-
* @param {Array<string>} [requestBody]
|
|
337
340
|
* @param {*} [options] Override http request option.
|
|
338
341
|
* @throws {RequiredError}
|
|
339
342
|
*/
|
|
340
|
-
apiV2CurationsCategoryGet: function (languageCode, curationLimit,
|
|
343
|
+
apiV2CurationsCategoryGet: function (curationCategoryIds, languageCode, curationLimit, options) {
|
|
341
344
|
return __awaiter(this, void 0, void 0, function () {
|
|
342
345
|
var localVarAxiosArgs;
|
|
343
346
|
return __generator(this, function (_a) {
|
|
344
347
|
switch (_a.label) {
|
|
345
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsCategoryGet(languageCode, curationLimit,
|
|
348
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CurationsCategoryGet(curationCategoryIds, languageCode, curationLimit, options)];
|
|
346
349
|
case 1:
|
|
347
350
|
localVarAxiosArgs = _a.sent();
|
|
348
351
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -406,14 +409,14 @@ var CurationsApiFactory = function (configuration, basePath, axios) {
|
|
|
406
409
|
/**
|
|
407
410
|
*
|
|
408
411
|
* @summary Get Curations by mutiple Categories with limit
|
|
412
|
+
* @param {Array<string>} curationCategoryIds
|
|
409
413
|
* @param {string} languageCode
|
|
410
414
|
* @param {number} [curationLimit]
|
|
411
|
-
* @param {Array<string>} [requestBody]
|
|
412
415
|
* @param {*} [options] Override http request option.
|
|
413
416
|
* @throws {RequiredError}
|
|
414
417
|
*/
|
|
415
|
-
apiV2CurationsCategoryGet: function (languageCode, curationLimit,
|
|
416
|
-
return localVarFp.apiV2CurationsCategoryGet(languageCode, curationLimit,
|
|
418
|
+
apiV2CurationsCategoryGet: function (curationCategoryIds, languageCode, curationLimit, options) {
|
|
419
|
+
return localVarFp.apiV2CurationsCategoryGet(curationCategoryIds, languageCode, curationLimit, options).then(function (request) { return request(axios, basePath); });
|
|
417
420
|
},
|
|
418
421
|
/**
|
|
419
422
|
*
|
|
@@ -474,7 +477,7 @@ var CurationsApi = /** @class */ (function (_super) {
|
|
|
474
477
|
*/
|
|
475
478
|
CurationsApi.prototype.apiV2CurationsCategoryGet = function (requestParameters, options) {
|
|
476
479
|
var _this = this;
|
|
477
|
-
return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsCategoryGet(requestParameters.
|
|
480
|
+
return (0, exports.CurationsApiFp)(this.configuration).apiV2CurationsCategoryGet(requestParameters.curationCategoryIds, requestParameters.languageCode, requestParameters.curationLimit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
478
481
|
};
|
|
479
482
|
/**
|
|
480
483
|
*
|