ch-admin-api-client-typescript 2.5.8 → 2.5.9
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.d.ts +82 -12
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +70 -21
- package/package.json +1 -1
- package/src/api.ts +119 -21
package/lib/api.js
CHANGED
|
@@ -8996,10 +8996,12 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
8996
8996
|
*
|
|
8997
8997
|
* @summary Get deal.
|
|
8998
8998
|
* @param {string} dealId
|
|
8999
|
+
* @param {string} [languageCode]
|
|
9000
|
+
* @param {boolean} [returnDefaultValue]
|
|
8999
9001
|
* @param {*} [options] Override http request option.
|
|
9000
9002
|
* @throws {RequiredError}
|
|
9001
9003
|
*/
|
|
9002
|
-
apiV1DealsDealIdGet: function (dealId, options) {
|
|
9004
|
+
apiV1DealsDealIdGet: function (dealId, languageCode, returnDefaultValue, options) {
|
|
9003
9005
|
if (options === void 0) { options = {}; }
|
|
9004
9006
|
return __awaiter(_this, void 0, void 0, function () {
|
|
9005
9007
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -9024,6 +9026,12 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
9024
9026
|
// authentication oauth2 required
|
|
9025
9027
|
// oauth required
|
|
9026
9028
|
_a.sent();
|
|
9029
|
+
if (languageCode !== undefined) {
|
|
9030
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
9031
|
+
}
|
|
9032
|
+
if (returnDefaultValue !== undefined) {
|
|
9033
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
9034
|
+
}
|
|
9027
9035
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9028
9036
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9029
9037
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -9613,13 +9621,16 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
9613
9621
|
* @param {string} [exceptHospitalId]
|
|
9614
9622
|
* @param {string} [exceptDealId]
|
|
9615
9623
|
* @param {Array<string>} [ids]
|
|
9624
|
+
* @param {string} [languageCode]
|
|
9625
|
+
* @param {boolean} [showHidden]
|
|
9626
|
+
* @param {boolean} [returnDefaultValue]
|
|
9616
9627
|
* @param {number} [page]
|
|
9617
9628
|
* @param {number} [limit]
|
|
9618
9629
|
* @param {Date} [lastRetrieved]
|
|
9619
9630
|
* @param {*} [options] Override http request option.
|
|
9620
9631
|
* @throws {RequiredError}
|
|
9621
9632
|
*/
|
|
9622
|
-
apiV1DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options) {
|
|
9633
|
+
apiV1DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
9623
9634
|
if (options === void 0) { options = {}; }
|
|
9624
9635
|
return __awaiter(_this, void 0, void 0, function () {
|
|
9625
9636
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -9674,6 +9685,15 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
9674
9685
|
if (ids) {
|
|
9675
9686
|
localVarQueryParameter['Ids'] = ids;
|
|
9676
9687
|
}
|
|
9688
|
+
if (languageCode !== undefined) {
|
|
9689
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
9690
|
+
}
|
|
9691
|
+
if (showHidden !== undefined) {
|
|
9692
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
9693
|
+
}
|
|
9694
|
+
if (returnDefaultValue !== undefined) {
|
|
9695
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
9696
|
+
}
|
|
9677
9697
|
if (page !== undefined) {
|
|
9678
9698
|
localVarQueryParameter['page'] = page;
|
|
9679
9699
|
}
|
|
@@ -9742,10 +9762,12 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
9742
9762
|
*
|
|
9743
9763
|
* @summary Get deal by slug.
|
|
9744
9764
|
* @param {string} slug
|
|
9765
|
+
* @param {string} [languageCode]
|
|
9766
|
+
* @param {boolean} [returnDefaultValue]
|
|
9745
9767
|
* @param {*} [options] Override http request option.
|
|
9746
9768
|
* @throws {RequiredError}
|
|
9747
9769
|
*/
|
|
9748
|
-
apiV1DealsSlugGet: function (slug, options) {
|
|
9770
|
+
apiV1DealsSlugGet: function (slug, languageCode, returnDefaultValue, options) {
|
|
9749
9771
|
if (options === void 0) { options = {}; }
|
|
9750
9772
|
return __awaiter(_this, void 0, void 0, function () {
|
|
9751
9773
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -9770,6 +9792,12 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
9770
9792
|
// authentication oauth2 required
|
|
9771
9793
|
// oauth required
|
|
9772
9794
|
_a.sent();
|
|
9795
|
+
if (languageCode !== undefined) {
|
|
9796
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
9797
|
+
}
|
|
9798
|
+
if (returnDefaultValue !== undefined) {
|
|
9799
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
9800
|
+
}
|
|
9773
9801
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9774
9802
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9775
9803
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -9814,15 +9842,17 @@ exports.DealsApiFp = function (configuration) {
|
|
|
9814
9842
|
*
|
|
9815
9843
|
* @summary Get deal.
|
|
9816
9844
|
* @param {string} dealId
|
|
9845
|
+
* @param {string} [languageCode]
|
|
9846
|
+
* @param {boolean} [returnDefaultValue]
|
|
9817
9847
|
* @param {*} [options] Override http request option.
|
|
9818
9848
|
* @throws {RequiredError}
|
|
9819
9849
|
*/
|
|
9820
|
-
apiV1DealsDealIdGet: function (dealId, options) {
|
|
9850
|
+
apiV1DealsDealIdGet: function (dealId, languageCode, returnDefaultValue, options) {
|
|
9821
9851
|
return __awaiter(this, void 0, void 0, function () {
|
|
9822
9852
|
var localVarAxiosArgs;
|
|
9823
9853
|
return __generator(this, function (_a) {
|
|
9824
9854
|
switch (_a.label) {
|
|
9825
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdGet(dealId, options)];
|
|
9855
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdGet(dealId, languageCode, returnDefaultValue, options)];
|
|
9826
9856
|
case 1:
|
|
9827
9857
|
localVarAxiosArgs = _a.sent();
|
|
9828
9858
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -10087,18 +10117,21 @@ exports.DealsApiFp = function (configuration) {
|
|
|
10087
10117
|
* @param {string} [exceptHospitalId]
|
|
10088
10118
|
* @param {string} [exceptDealId]
|
|
10089
10119
|
* @param {Array<string>} [ids]
|
|
10120
|
+
* @param {string} [languageCode]
|
|
10121
|
+
* @param {boolean} [showHidden]
|
|
10122
|
+
* @param {boolean} [returnDefaultValue]
|
|
10090
10123
|
* @param {number} [page]
|
|
10091
10124
|
* @param {number} [limit]
|
|
10092
10125
|
* @param {Date} [lastRetrieved]
|
|
10093
10126
|
* @param {*} [options] Override http request option.
|
|
10094
10127
|
* @throws {RequiredError}
|
|
10095
10128
|
*/
|
|
10096
|
-
apiV1DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options) {
|
|
10129
|
+
apiV1DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
10097
10130
|
return __awaiter(this, void 0, void 0, function () {
|
|
10098
10131
|
var localVarAxiosArgs;
|
|
10099
10132
|
return __generator(this, function (_a) {
|
|
10100
10133
|
switch (_a.label) {
|
|
10101
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options)];
|
|
10134
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
10102
10135
|
case 1:
|
|
10103
10136
|
localVarAxiosArgs = _a.sent();
|
|
10104
10137
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -10130,15 +10163,17 @@ exports.DealsApiFp = function (configuration) {
|
|
|
10130
10163
|
*
|
|
10131
10164
|
* @summary Get deal by slug.
|
|
10132
10165
|
* @param {string} slug
|
|
10166
|
+
* @param {string} [languageCode]
|
|
10167
|
+
* @param {boolean} [returnDefaultValue]
|
|
10133
10168
|
* @param {*} [options] Override http request option.
|
|
10134
10169
|
* @throws {RequiredError}
|
|
10135
10170
|
*/
|
|
10136
|
-
apiV1DealsSlugGet: function (slug, options) {
|
|
10171
|
+
apiV1DealsSlugGet: function (slug, languageCode, returnDefaultValue, options) {
|
|
10137
10172
|
return __awaiter(this, void 0, void 0, function () {
|
|
10138
10173
|
var localVarAxiosArgs;
|
|
10139
10174
|
return __generator(this, function (_a) {
|
|
10140
10175
|
switch (_a.label) {
|
|
10141
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsSlugGet(slug, options)];
|
|
10176
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsSlugGet(slug, languageCode, returnDefaultValue, options)];
|
|
10142
10177
|
case 1:
|
|
10143
10178
|
localVarAxiosArgs = _a.sent();
|
|
10144
10179
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -10169,11 +10204,13 @@ exports.DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
10169
10204
|
*
|
|
10170
10205
|
* @summary Get deal.
|
|
10171
10206
|
* @param {string} dealId
|
|
10207
|
+
* @param {string} [languageCode]
|
|
10208
|
+
* @param {boolean} [returnDefaultValue]
|
|
10172
10209
|
* @param {*} [options] Override http request option.
|
|
10173
10210
|
* @throws {RequiredError}
|
|
10174
10211
|
*/
|
|
10175
|
-
apiV1DealsDealIdGet: function (dealId, options) {
|
|
10176
|
-
return localVarFp.apiV1DealsDealIdGet(dealId, options).then(function (request) { return request(axios, basePath); });
|
|
10212
|
+
apiV1DealsDealIdGet: function (dealId, languageCode, returnDefaultValue, options) {
|
|
10213
|
+
return localVarFp.apiV1DealsDealIdGet(dealId, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
|
|
10177
10214
|
},
|
|
10178
10215
|
/**
|
|
10179
10216
|
*
|
|
@@ -10322,14 +10359,17 @@ exports.DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
10322
10359
|
* @param {string} [exceptHospitalId]
|
|
10323
10360
|
* @param {string} [exceptDealId]
|
|
10324
10361
|
* @param {Array<string>} [ids]
|
|
10362
|
+
* @param {string} [languageCode]
|
|
10363
|
+
* @param {boolean} [showHidden]
|
|
10364
|
+
* @param {boolean} [returnDefaultValue]
|
|
10325
10365
|
* @param {number} [page]
|
|
10326
10366
|
* @param {number} [limit]
|
|
10327
10367
|
* @param {Date} [lastRetrieved]
|
|
10328
10368
|
* @param {*} [options] Override http request option.
|
|
10329
10369
|
* @throws {RequiredError}
|
|
10330
10370
|
*/
|
|
10331
|
-
apiV1DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options) {
|
|
10332
|
-
return localVarFp.apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
10371
|
+
apiV1DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
10372
|
+
return localVarFp.apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
10333
10373
|
},
|
|
10334
10374
|
/**
|
|
10335
10375
|
*
|
|
@@ -10345,11 +10385,13 @@ exports.DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
10345
10385
|
*
|
|
10346
10386
|
* @summary Get deal by slug.
|
|
10347
10387
|
* @param {string} slug
|
|
10388
|
+
* @param {string} [languageCode]
|
|
10389
|
+
* @param {boolean} [returnDefaultValue]
|
|
10348
10390
|
* @param {*} [options] Override http request option.
|
|
10349
10391
|
* @throws {RequiredError}
|
|
10350
10392
|
*/
|
|
10351
|
-
apiV1DealsSlugGet: function (slug, options) {
|
|
10352
|
-
return localVarFp.apiV1DealsSlugGet(slug, options).then(function (request) { return request(axios, basePath); });
|
|
10393
|
+
apiV1DealsSlugGet: function (slug, languageCode, returnDefaultValue, options) {
|
|
10394
|
+
return localVarFp.apiV1DealsSlugGet(slug, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
|
|
10353
10395
|
},
|
|
10354
10396
|
};
|
|
10355
10397
|
};
|
|
@@ -10380,13 +10422,15 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
10380
10422
|
*
|
|
10381
10423
|
* @summary Get deal.
|
|
10382
10424
|
* @param {string} dealId
|
|
10425
|
+
* @param {string} [languageCode]
|
|
10426
|
+
* @param {boolean} [returnDefaultValue]
|
|
10383
10427
|
* @param {*} [options] Override http request option.
|
|
10384
10428
|
* @throws {RequiredError}
|
|
10385
10429
|
* @memberof DealsApi
|
|
10386
10430
|
*/
|
|
10387
|
-
DealsApi.prototype.apiV1DealsDealIdGet = function (dealId, options) {
|
|
10431
|
+
DealsApi.prototype.apiV1DealsDealIdGet = function (dealId, languageCode, returnDefaultValue, options) {
|
|
10388
10432
|
var _this = this;
|
|
10389
|
-
return exports.DealsApiFp(this.configuration).apiV1DealsDealIdGet(dealId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10433
|
+
return exports.DealsApiFp(this.configuration).apiV1DealsDealIdGet(dealId, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10390
10434
|
};
|
|
10391
10435
|
/**
|
|
10392
10436
|
*
|
|
@@ -10557,6 +10601,9 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
10557
10601
|
* @param {string} [exceptHospitalId]
|
|
10558
10602
|
* @param {string} [exceptDealId]
|
|
10559
10603
|
* @param {Array<string>} [ids]
|
|
10604
|
+
* @param {string} [languageCode]
|
|
10605
|
+
* @param {boolean} [showHidden]
|
|
10606
|
+
* @param {boolean} [returnDefaultValue]
|
|
10560
10607
|
* @param {number} [page]
|
|
10561
10608
|
* @param {number} [limit]
|
|
10562
10609
|
* @param {Date} [lastRetrieved]
|
|
@@ -10564,9 +10611,9 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
10564
10611
|
* @throws {RequiredError}
|
|
10565
10612
|
* @memberof DealsApi
|
|
10566
10613
|
*/
|
|
10567
|
-
DealsApi.prototype.apiV1DealsGet = function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options) {
|
|
10614
|
+
DealsApi.prototype.apiV1DealsGet = function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
10568
10615
|
var _this = this;
|
|
10569
|
-
return exports.DealsApiFp(this.configuration).apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10616
|
+
return exports.DealsApiFp(this.configuration).apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10570
10617
|
};
|
|
10571
10618
|
/**
|
|
10572
10619
|
*
|
|
@@ -10584,13 +10631,15 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
10584
10631
|
*
|
|
10585
10632
|
* @summary Get deal by slug.
|
|
10586
10633
|
* @param {string} slug
|
|
10634
|
+
* @param {string} [languageCode]
|
|
10635
|
+
* @param {boolean} [returnDefaultValue]
|
|
10587
10636
|
* @param {*} [options] Override http request option.
|
|
10588
10637
|
* @throws {RequiredError}
|
|
10589
10638
|
* @memberof DealsApi
|
|
10590
10639
|
*/
|
|
10591
|
-
DealsApi.prototype.apiV1DealsSlugGet = function (slug, options) {
|
|
10640
|
+
DealsApi.prototype.apiV1DealsSlugGet = function (slug, languageCode, returnDefaultValue, options) {
|
|
10592
10641
|
var _this = this;
|
|
10593
|
-
return exports.DealsApiFp(this.configuration).apiV1DealsSlugGet(slug, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10642
|
+
return exports.DealsApiFp(this.configuration).apiV1DealsSlugGet(slug, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10594
10643
|
};
|
|
10595
10644
|
return DealsApi;
|
|
10596
10645
|
}(base_1.BaseAPI));
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -4462,6 +4462,18 @@ export interface DealItemModel {
|
|
|
4462
4462
|
* @memberof DealItemModel
|
|
4463
4463
|
*/
|
|
4464
4464
|
'auditableEntity'?: AuditableEntity;
|
|
4465
|
+
/**
|
|
4466
|
+
*
|
|
4467
|
+
* @type {Array<LocalizedUrlModel>}
|
|
4468
|
+
* @memberof DealItemModel
|
|
4469
|
+
*/
|
|
4470
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
4471
|
+
/**
|
|
4472
|
+
*
|
|
4473
|
+
* @type {boolean}
|
|
4474
|
+
* @memberof DealItemModel
|
|
4475
|
+
*/
|
|
4476
|
+
'confirmed'?: boolean;
|
|
4465
4477
|
}
|
|
4466
4478
|
/**
|
|
4467
4479
|
*
|
|
@@ -4553,6 +4565,24 @@ export interface DealModel {
|
|
|
4553
4565
|
* @memberof DealModel
|
|
4554
4566
|
*/
|
|
4555
4567
|
'auditableEntity'?: AuditableEntity;
|
|
4568
|
+
/**
|
|
4569
|
+
*
|
|
4570
|
+
* @type {Array<LocalizedUrlModel>}
|
|
4571
|
+
* @memberof DealModel
|
|
4572
|
+
*/
|
|
4573
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
4574
|
+
/**
|
|
4575
|
+
*
|
|
4576
|
+
* @type {boolean}
|
|
4577
|
+
* @memberof DealModel
|
|
4578
|
+
*/
|
|
4579
|
+
'confirmed'?: boolean;
|
|
4580
|
+
/**
|
|
4581
|
+
*
|
|
4582
|
+
* @type {string}
|
|
4583
|
+
* @memberof DealModel
|
|
4584
|
+
*/
|
|
4585
|
+
'languageCode'?: string | null;
|
|
4556
4586
|
}
|
|
4557
4587
|
/**
|
|
4558
4588
|
*
|
|
@@ -10219,6 +10249,18 @@ export interface UpdateDealCommand {
|
|
|
10219
10249
|
* @memberof UpdateDealCommand
|
|
10220
10250
|
*/
|
|
10221
10251
|
'photoThumbnail'?: string | null;
|
|
10252
|
+
/**
|
|
10253
|
+
*
|
|
10254
|
+
* @type {string}
|
|
10255
|
+
* @memberof UpdateDealCommand
|
|
10256
|
+
*/
|
|
10257
|
+
'languageCode'?: string | null;
|
|
10258
|
+
/**
|
|
10259
|
+
*
|
|
10260
|
+
* @type {boolean}
|
|
10261
|
+
* @memberof UpdateDealCommand
|
|
10262
|
+
*/
|
|
10263
|
+
'confirmed'?: boolean;
|
|
10222
10264
|
}
|
|
10223
10265
|
/**
|
|
10224
10266
|
*
|
|
@@ -19196,10 +19238,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
19196
19238
|
*
|
|
19197
19239
|
* @summary Get deal.
|
|
19198
19240
|
* @param {string} dealId
|
|
19241
|
+
* @param {string} [languageCode]
|
|
19242
|
+
* @param {boolean} [returnDefaultValue]
|
|
19199
19243
|
* @param {*} [options] Override http request option.
|
|
19200
19244
|
* @throws {RequiredError}
|
|
19201
19245
|
*/
|
|
19202
|
-
apiV1DealsDealIdGet: async (dealId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19246
|
+
apiV1DealsDealIdGet: async (dealId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19203
19247
|
// verify required parameter 'dealId' is not null or undefined
|
|
19204
19248
|
assertParamExists('apiV1DealsDealIdGet', 'dealId', dealId)
|
|
19205
19249
|
const localVarPath = `/api/v1/deals/{dealId}`
|
|
@@ -19219,6 +19263,14 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
19219
19263
|
// oauth required
|
|
19220
19264
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
19221
19265
|
|
|
19266
|
+
if (languageCode !== undefined) {
|
|
19267
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
19268
|
+
}
|
|
19269
|
+
|
|
19270
|
+
if (returnDefaultValue !== undefined) {
|
|
19271
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
19272
|
+
}
|
|
19273
|
+
|
|
19222
19274
|
|
|
19223
19275
|
|
|
19224
19276
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -19770,13 +19822,16 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
19770
19822
|
* @param {string} [exceptHospitalId]
|
|
19771
19823
|
* @param {string} [exceptDealId]
|
|
19772
19824
|
* @param {Array<string>} [ids]
|
|
19825
|
+
* @param {string} [languageCode]
|
|
19826
|
+
* @param {boolean} [showHidden]
|
|
19827
|
+
* @param {boolean} [returnDefaultValue]
|
|
19773
19828
|
* @param {number} [page]
|
|
19774
19829
|
* @param {number} [limit]
|
|
19775
19830
|
* @param {Date} [lastRetrieved]
|
|
19776
19831
|
* @param {*} [options] Override http request option.
|
|
19777
19832
|
* @throws {RequiredError}
|
|
19778
19833
|
*/
|
|
19779
|
-
apiV1DealsGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19834
|
+
apiV1DealsGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19780
19835
|
const localVarPath = `/api/v1/deals`;
|
|
19781
19836
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19782
19837
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -19837,6 +19892,18 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
19837
19892
|
localVarQueryParameter['Ids'] = ids;
|
|
19838
19893
|
}
|
|
19839
19894
|
|
|
19895
|
+
if (languageCode !== undefined) {
|
|
19896
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
19897
|
+
}
|
|
19898
|
+
|
|
19899
|
+
if (showHidden !== undefined) {
|
|
19900
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
19901
|
+
}
|
|
19902
|
+
|
|
19903
|
+
if (returnDefaultValue !== undefined) {
|
|
19904
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
19905
|
+
}
|
|
19906
|
+
|
|
19840
19907
|
if (page !== undefined) {
|
|
19841
19908
|
localVarQueryParameter['page'] = page;
|
|
19842
19909
|
}
|
|
@@ -19904,10 +19971,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
19904
19971
|
*
|
|
19905
19972
|
* @summary Get deal by slug.
|
|
19906
19973
|
* @param {string} slug
|
|
19974
|
+
* @param {string} [languageCode]
|
|
19975
|
+
* @param {boolean} [returnDefaultValue]
|
|
19907
19976
|
* @param {*} [options] Override http request option.
|
|
19908
19977
|
* @throws {RequiredError}
|
|
19909
19978
|
*/
|
|
19910
|
-
apiV1DealsSlugGet: async (slug: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19979
|
+
apiV1DealsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19911
19980
|
// verify required parameter 'slug' is not null or undefined
|
|
19912
19981
|
assertParamExists('apiV1DealsSlugGet', 'slug', slug)
|
|
19913
19982
|
const localVarPath = `/api/v1/deals/{slug}`
|
|
@@ -19927,6 +19996,14 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
19927
19996
|
// oauth required
|
|
19928
19997
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
19929
19998
|
|
|
19999
|
+
if (languageCode !== undefined) {
|
|
20000
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
20001
|
+
}
|
|
20002
|
+
|
|
20003
|
+
if (returnDefaultValue !== undefined) {
|
|
20004
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
20005
|
+
}
|
|
20006
|
+
|
|
19930
20007
|
|
|
19931
20008
|
|
|
19932
20009
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -19963,11 +20040,13 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
19963
20040
|
*
|
|
19964
20041
|
* @summary Get deal.
|
|
19965
20042
|
* @param {string} dealId
|
|
20043
|
+
* @param {string} [languageCode]
|
|
20044
|
+
* @param {boolean} [returnDefaultValue]
|
|
19966
20045
|
* @param {*} [options] Override http request option.
|
|
19967
20046
|
* @throws {RequiredError}
|
|
19968
20047
|
*/
|
|
19969
|
-
async apiV1DealsDealIdGet(dealId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
19970
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdGet(dealId, options);
|
|
20048
|
+
async apiV1DealsDealIdGet(dealId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
20049
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdGet(dealId, languageCode, returnDefaultValue, options);
|
|
19971
20050
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19972
20051
|
},
|
|
19973
20052
|
/**
|
|
@@ -20128,14 +20207,17 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
20128
20207
|
* @param {string} [exceptHospitalId]
|
|
20129
20208
|
* @param {string} [exceptDealId]
|
|
20130
20209
|
* @param {Array<string>} [ids]
|
|
20210
|
+
* @param {string} [languageCode]
|
|
20211
|
+
* @param {boolean} [showHidden]
|
|
20212
|
+
* @param {boolean} [returnDefaultValue]
|
|
20131
20213
|
* @param {number} [page]
|
|
20132
20214
|
* @param {number} [limit]
|
|
20133
20215
|
* @param {Date} [lastRetrieved]
|
|
20134
20216
|
* @param {*} [options] Override http request option.
|
|
20135
20217
|
* @throws {RequiredError}
|
|
20136
20218
|
*/
|
|
20137
|
-
async apiV1DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealsModel>> {
|
|
20138
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options);
|
|
20219
|
+
async apiV1DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealsModel>> {
|
|
20220
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
20139
20221
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20140
20222
|
},
|
|
20141
20223
|
/**
|
|
@@ -20153,11 +20235,13 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
20153
20235
|
*
|
|
20154
20236
|
* @summary Get deal by slug.
|
|
20155
20237
|
* @param {string} slug
|
|
20238
|
+
* @param {string} [languageCode]
|
|
20239
|
+
* @param {boolean} [returnDefaultValue]
|
|
20156
20240
|
* @param {*} [options] Override http request option.
|
|
20157
20241
|
* @throws {RequiredError}
|
|
20158
20242
|
*/
|
|
20159
|
-
async apiV1DealsSlugGet(slug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
20160
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsSlugGet(slug, options);
|
|
20243
|
+
async apiV1DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
20244
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
20161
20245
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20162
20246
|
},
|
|
20163
20247
|
}
|
|
@@ -20184,11 +20268,13 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
20184
20268
|
*
|
|
20185
20269
|
* @summary Get deal.
|
|
20186
20270
|
* @param {string} dealId
|
|
20271
|
+
* @param {string} [languageCode]
|
|
20272
|
+
* @param {boolean} [returnDefaultValue]
|
|
20187
20273
|
* @param {*} [options] Override http request option.
|
|
20188
20274
|
* @throws {RequiredError}
|
|
20189
20275
|
*/
|
|
20190
|
-
apiV1DealsDealIdGet(dealId: string, options?: any): AxiosPromise<DealModel> {
|
|
20191
|
-
return localVarFp.apiV1DealsDealIdGet(dealId, options).then((request) => request(axios, basePath));
|
|
20276
|
+
apiV1DealsDealIdGet(dealId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<DealModel> {
|
|
20277
|
+
return localVarFp.apiV1DealsDealIdGet(dealId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
20192
20278
|
},
|
|
20193
20279
|
/**
|
|
20194
20280
|
*
|
|
@@ -20337,14 +20423,17 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
20337
20423
|
* @param {string} [exceptHospitalId]
|
|
20338
20424
|
* @param {string} [exceptDealId]
|
|
20339
20425
|
* @param {Array<string>} [ids]
|
|
20426
|
+
* @param {string} [languageCode]
|
|
20427
|
+
* @param {boolean} [showHidden]
|
|
20428
|
+
* @param {boolean} [returnDefaultValue]
|
|
20340
20429
|
* @param {number} [page]
|
|
20341
20430
|
* @param {number} [limit]
|
|
20342
20431
|
* @param {Date} [lastRetrieved]
|
|
20343
20432
|
* @param {*} [options] Override http request option.
|
|
20344
20433
|
* @throws {RequiredError}
|
|
20345
20434
|
*/
|
|
20346
|
-
apiV1DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsModel> {
|
|
20347
|
-
return localVarFp.apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
20435
|
+
apiV1DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsModel> {
|
|
20436
|
+
return localVarFp.apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
20348
20437
|
},
|
|
20349
20438
|
/**
|
|
20350
20439
|
*
|
|
@@ -20360,11 +20449,13 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
20360
20449
|
*
|
|
20361
20450
|
* @summary Get deal by slug.
|
|
20362
20451
|
* @param {string} slug
|
|
20452
|
+
* @param {string} [languageCode]
|
|
20453
|
+
* @param {boolean} [returnDefaultValue]
|
|
20363
20454
|
* @param {*} [options] Override http request option.
|
|
20364
20455
|
* @throws {RequiredError}
|
|
20365
20456
|
*/
|
|
20366
|
-
apiV1DealsSlugGet(slug: string, options?: any): AxiosPromise<DealModel> {
|
|
20367
|
-
return localVarFp.apiV1DealsSlugGet(slug, options).then((request) => request(axios, basePath));
|
|
20457
|
+
apiV1DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<DealModel> {
|
|
20458
|
+
return localVarFp.apiV1DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
20368
20459
|
},
|
|
20369
20460
|
};
|
|
20370
20461
|
};
|
|
@@ -20392,12 +20483,14 @@ export class DealsApi extends BaseAPI {
|
|
|
20392
20483
|
*
|
|
20393
20484
|
* @summary Get deal.
|
|
20394
20485
|
* @param {string} dealId
|
|
20486
|
+
* @param {string} [languageCode]
|
|
20487
|
+
* @param {boolean} [returnDefaultValue]
|
|
20395
20488
|
* @param {*} [options] Override http request option.
|
|
20396
20489
|
* @throws {RequiredError}
|
|
20397
20490
|
* @memberof DealsApi
|
|
20398
20491
|
*/
|
|
20399
|
-
public apiV1DealsDealIdGet(dealId: string, options?: AxiosRequestConfig) {
|
|
20400
|
-
return DealsApiFp(this.configuration).apiV1DealsDealIdGet(dealId, options).then((request) => request(this.axios, this.basePath));
|
|
20492
|
+
public apiV1DealsDealIdGet(dealId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
20493
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdGet(dealId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
20401
20494
|
}
|
|
20402
20495
|
|
|
20403
20496
|
/**
|
|
@@ -20569,6 +20662,9 @@ export class DealsApi extends BaseAPI {
|
|
|
20569
20662
|
* @param {string} [exceptHospitalId]
|
|
20570
20663
|
* @param {string} [exceptDealId]
|
|
20571
20664
|
* @param {Array<string>} [ids]
|
|
20665
|
+
* @param {string} [languageCode]
|
|
20666
|
+
* @param {boolean} [showHidden]
|
|
20667
|
+
* @param {boolean} [returnDefaultValue]
|
|
20572
20668
|
* @param {number} [page]
|
|
20573
20669
|
* @param {number} [limit]
|
|
20574
20670
|
* @param {Date} [lastRetrieved]
|
|
@@ -20576,8 +20672,8 @@ export class DealsApi extends BaseAPI {
|
|
|
20576
20672
|
* @throws {RequiredError}
|
|
20577
20673
|
* @memberof DealsApi
|
|
20578
20674
|
*/
|
|
20579
|
-
public apiV1DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
20580
|
-
return DealsApiFp(this.configuration).apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
20675
|
+
public apiV1DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
20676
|
+
return DealsApiFp(this.configuration).apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
20581
20677
|
}
|
|
20582
20678
|
|
|
20583
20679
|
/**
|
|
@@ -20596,12 +20692,14 @@ export class DealsApi extends BaseAPI {
|
|
|
20596
20692
|
*
|
|
20597
20693
|
* @summary Get deal by slug.
|
|
20598
20694
|
* @param {string} slug
|
|
20695
|
+
* @param {string} [languageCode]
|
|
20696
|
+
* @param {boolean} [returnDefaultValue]
|
|
20599
20697
|
* @param {*} [options] Override http request option.
|
|
20600
20698
|
* @throws {RequiredError}
|
|
20601
20699
|
* @memberof DealsApi
|
|
20602
20700
|
*/
|
|
20603
|
-
public apiV1DealsSlugGet(slug: string, options?: AxiosRequestConfig) {
|
|
20604
|
-
return DealsApiFp(this.configuration).apiV1DealsSlugGet(slug, options).then((request) => request(this.axios, this.basePath));
|
|
20701
|
+
public apiV1DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
20702
|
+
return DealsApiFp(this.configuration).apiV1DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
20605
20703
|
}
|
|
20606
20704
|
}
|
|
20607
20705
|
|