ch-api-client-typescript2 2.8.7 → 2.8.10

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.js CHANGED
@@ -5928,6 +5928,109 @@ var DealsApiAxiosParamCreator = function (configuration) {
5928
5928
  });
5929
5929
  });
5930
5930
  },
5931
+ /**
5932
+ *
5933
+ * @summary Get all deals.
5934
+ * @param {string} [id]
5935
+ * @param {string} [name]
5936
+ * @param {MarketingType} [marketingType]
5937
+ * @param {string} [countryId]
5938
+ * @param {string} [hospitalId]
5939
+ * @param {string} [hospitalName]
5940
+ * @param {string} [specialtyId]
5941
+ * @param {string} [specialtyTypeId]
5942
+ * @param {string} [serviceId]
5943
+ * @param {string} [exceptHospitalId]
5944
+ * @param {string} [exceptDealId]
5945
+ * @param {Array<string>} [ids]
5946
+ * @param {string} [languageCode]
5947
+ * @param {boolean} [showHidden]
5948
+ * @param {boolean} [returnDefaultValue]
5949
+ * @param {number} [page]
5950
+ * @param {number} [limit]
5951
+ * @param {Date} [lastRetrieved]
5952
+ * @param {*} [options] Override http request option.
5953
+ * @throws {RequiredError}
5954
+ */
5955
+ apiV2DealsSimpleGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
5956
+ if (options === void 0) { options = {}; }
5957
+ return __awaiter(_this, void 0, void 0, function () {
5958
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
5959
+ return __generator(this, function (_a) {
5960
+ localVarPath = "/api/v2/deals/simple";
5961
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5962
+ if (configuration) {
5963
+ baseOptions = configuration.baseOptions;
5964
+ }
5965
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
5966
+ localVarHeaderParameter = {};
5967
+ localVarQueryParameter = {};
5968
+ if (id !== undefined) {
5969
+ localVarQueryParameter['Id'] = id;
5970
+ }
5971
+ if (name !== undefined) {
5972
+ localVarQueryParameter['Name'] = name;
5973
+ }
5974
+ if (marketingType !== undefined) {
5975
+ localVarQueryParameter['MarketingType'] = marketingType;
5976
+ }
5977
+ if (countryId !== undefined) {
5978
+ localVarQueryParameter['CountryId'] = countryId;
5979
+ }
5980
+ if (hospitalId !== undefined) {
5981
+ localVarQueryParameter['HospitalId'] = hospitalId;
5982
+ }
5983
+ if (hospitalName !== undefined) {
5984
+ localVarQueryParameter['HospitalName'] = hospitalName;
5985
+ }
5986
+ if (specialtyId !== undefined) {
5987
+ localVarQueryParameter['SpecialtyId'] = specialtyId;
5988
+ }
5989
+ if (specialtyTypeId !== undefined) {
5990
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
5991
+ }
5992
+ if (serviceId !== undefined) {
5993
+ localVarQueryParameter['ServiceId'] = serviceId;
5994
+ }
5995
+ if (exceptHospitalId !== undefined) {
5996
+ localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
5997
+ }
5998
+ if (exceptDealId !== undefined) {
5999
+ localVarQueryParameter['ExceptDealId'] = exceptDealId;
6000
+ }
6001
+ if (ids) {
6002
+ localVarQueryParameter['Ids'] = ids;
6003
+ }
6004
+ if (languageCode !== undefined) {
6005
+ localVarQueryParameter['LanguageCode'] = languageCode;
6006
+ }
6007
+ if (showHidden !== undefined) {
6008
+ localVarQueryParameter['ShowHidden'] = showHidden;
6009
+ }
6010
+ if (returnDefaultValue !== undefined) {
6011
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
6012
+ }
6013
+ if (page !== undefined) {
6014
+ localVarQueryParameter['page'] = page;
6015
+ }
6016
+ if (limit !== undefined) {
6017
+ localVarQueryParameter['limit'] = limit;
6018
+ }
6019
+ if (lastRetrieved !== undefined) {
6020
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
6021
+ lastRetrieved.toISOString() :
6022
+ lastRetrieved;
6023
+ }
6024
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6025
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6026
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6027
+ return [2 /*return*/, {
6028
+ url: (0, common_1.toPathString)(localVarUrlObj),
6029
+ options: localVarRequestOptions,
6030
+ }];
6031
+ });
6032
+ });
6033
+ },
5931
6034
  /**
5932
6035
  *
5933
6036
  * @summary Get deal by slug.
@@ -6132,6 +6235,43 @@ var DealsApiFp = function (configuration) {
6132
6235
  });
6133
6236
  });
6134
6237
  },
6238
+ /**
6239
+ *
6240
+ * @summary Get all deals.
6241
+ * @param {string} [id]
6242
+ * @param {string} [name]
6243
+ * @param {MarketingType} [marketingType]
6244
+ * @param {string} [countryId]
6245
+ * @param {string} [hospitalId]
6246
+ * @param {string} [hospitalName]
6247
+ * @param {string} [specialtyId]
6248
+ * @param {string} [specialtyTypeId]
6249
+ * @param {string} [serviceId]
6250
+ * @param {string} [exceptHospitalId]
6251
+ * @param {string} [exceptDealId]
6252
+ * @param {Array<string>} [ids]
6253
+ * @param {string} [languageCode]
6254
+ * @param {boolean} [showHidden]
6255
+ * @param {boolean} [returnDefaultValue]
6256
+ * @param {number} [page]
6257
+ * @param {number} [limit]
6258
+ * @param {Date} [lastRetrieved]
6259
+ * @param {*} [options] Override http request option.
6260
+ * @throws {RequiredError}
6261
+ */
6262
+ apiV2DealsSimpleGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
6263
+ return __awaiter(this, void 0, void 0, function () {
6264
+ var localVarAxiosArgs;
6265
+ return __generator(this, function (_a) {
6266
+ switch (_a.label) {
6267
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
6268
+ case 1:
6269
+ localVarAxiosArgs = _a.sent();
6270
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
6271
+ }
6272
+ });
6273
+ });
6274
+ },
6135
6275
  /**
6136
6276
  *
6137
6277
  * @summary Get deal by slug.
@@ -6257,6 +6397,33 @@ var DealsApiFactory = function (configuration, basePath, axios) {
6257
6397
  apiV2DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
6258
6398
  return localVarFp.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
6259
6399
  },
6400
+ /**
6401
+ *
6402
+ * @summary Get all deals.
6403
+ * @param {string} [id]
6404
+ * @param {string} [name]
6405
+ * @param {MarketingType} [marketingType]
6406
+ * @param {string} [countryId]
6407
+ * @param {string} [hospitalId]
6408
+ * @param {string} [hospitalName]
6409
+ * @param {string} [specialtyId]
6410
+ * @param {string} [specialtyTypeId]
6411
+ * @param {string} [serviceId]
6412
+ * @param {string} [exceptHospitalId]
6413
+ * @param {string} [exceptDealId]
6414
+ * @param {Array<string>} [ids]
6415
+ * @param {string} [languageCode]
6416
+ * @param {boolean} [showHidden]
6417
+ * @param {boolean} [returnDefaultValue]
6418
+ * @param {number} [page]
6419
+ * @param {number} [limit]
6420
+ * @param {Date} [lastRetrieved]
6421
+ * @param {*} [options] Override http request option.
6422
+ * @throws {RequiredError}
6423
+ */
6424
+ apiV2DealsSimpleGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
6425
+ return localVarFp.apiV2DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
6426
+ },
6260
6427
  /**
6261
6428
  *
6262
6429
  * @summary Get deal by slug.
@@ -6388,6 +6555,35 @@ var DealsApi = /** @class */ (function (_super) {
6388
6555
  var _this = this;
6389
6556
  return (0, exports.DealsApiFp)(this.configuration).apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
6390
6557
  };
6558
+ /**
6559
+ *
6560
+ * @summary Get all deals.
6561
+ * @param {string} [id]
6562
+ * @param {string} [name]
6563
+ * @param {MarketingType} [marketingType]
6564
+ * @param {string} [countryId]
6565
+ * @param {string} [hospitalId]
6566
+ * @param {string} [hospitalName]
6567
+ * @param {string} [specialtyId]
6568
+ * @param {string} [specialtyTypeId]
6569
+ * @param {string} [serviceId]
6570
+ * @param {string} [exceptHospitalId]
6571
+ * @param {string} [exceptDealId]
6572
+ * @param {Array<string>} [ids]
6573
+ * @param {string} [languageCode]
6574
+ * @param {boolean} [showHidden]
6575
+ * @param {boolean} [returnDefaultValue]
6576
+ * @param {number} [page]
6577
+ * @param {number} [limit]
6578
+ * @param {Date} [lastRetrieved]
6579
+ * @param {*} [options] Override http request option.
6580
+ * @throws {RequiredError}
6581
+ * @memberof DealsApi
6582
+ */
6583
+ DealsApi.prototype.apiV2DealsSimpleGet = function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
6584
+ var _this = this;
6585
+ return (0, exports.DealsApiFp)(this.configuration).apiV2DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
6586
+ };
6391
6587
  /**
6392
6588
  *
6393
6589
  * @summary Get deal by slug.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "2.8.7",
3
+ "version": "2.8.10",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/api.ts CHANGED
@@ -3065,6 +3065,67 @@ export interface DealItemModel {
3065
3065
  */
3066
3066
  'auditableEntity'?: AuditableEntity;
3067
3067
  }
3068
+ /**
3069
+ *
3070
+ * @export
3071
+ * @interface DealItemSimpleModel
3072
+ */
3073
+ export interface DealItemSimpleModel {
3074
+ /**
3075
+ *
3076
+ * @type {string}
3077
+ * @memberof DealItemSimpleModel
3078
+ */
3079
+ 'id'?: string;
3080
+ /**
3081
+ *
3082
+ * @type {string}
3083
+ * @memberof DealItemSimpleModel
3084
+ */
3085
+ 'name'?: string | null;
3086
+ /**
3087
+ *
3088
+ * @type {string}
3089
+ * @memberof DealItemSimpleModel
3090
+ */
3091
+ 'normalizedName'?: string | null;
3092
+ /**
3093
+ *
3094
+ * @type {string}
3095
+ * @memberof DealItemSimpleModel
3096
+ */
3097
+ 'slug'?: string | null;
3098
+ /**
3099
+ *
3100
+ * @type {string}
3101
+ * @memberof DealItemSimpleModel
3102
+ */
3103
+ 'hospitalId'?: string;
3104
+ /**
3105
+ *
3106
+ * @type {string}
3107
+ * @memberof DealItemSimpleModel
3108
+ */
3109
+ 'hospitalName'?: string | null;
3110
+ /**
3111
+ *
3112
+ * @type {Array<LocalizedUrlModel>}
3113
+ * @memberof DealItemSimpleModel
3114
+ */
3115
+ 'localizedUrls'?: Array<LocalizedUrlModel> | null;
3116
+ /**
3117
+ *
3118
+ * @type {boolean}
3119
+ * @memberof DealItemSimpleModel
3120
+ */
3121
+ 'confirmed'?: boolean;
3122
+ /**
3123
+ *
3124
+ * @type {AuditableEntity}
3125
+ * @memberof DealItemSimpleModel
3126
+ */
3127
+ 'auditableEntity'?: AuditableEntity;
3128
+ }
3068
3129
  /**
3069
3130
  *
3070
3131
  * @export
@@ -3487,6 +3548,25 @@ export interface DealsModel {
3487
3548
  */
3488
3549
  'metaData'?: PagedListMetaData;
3489
3550
  }
3551
+ /**
3552
+ *
3553
+ * @export
3554
+ * @interface DealsSimpleModel
3555
+ */
3556
+ export interface DealsSimpleModel {
3557
+ /**
3558
+ *
3559
+ * @type {Array<DealItemSimpleModel>}
3560
+ * @memberof DealsSimpleModel
3561
+ */
3562
+ 'items'?: Array<DealItemSimpleModel> | null;
3563
+ /**
3564
+ *
3565
+ * @type {PagedListMetaData}
3566
+ * @memberof DealsSimpleModel
3567
+ */
3568
+ 'metaData'?: PagedListMetaData;
3569
+ }
3490
3570
  /**
3491
3571
  *
3492
3572
  * @export
@@ -5489,6 +5569,12 @@ export interface HospitalItemModel {
5489
5569
  * @memberof HospitalItemModel
5490
5570
  */
5491
5571
  'timeZone'?: string | null;
5572
+ /**
5573
+ *
5574
+ * @type {string}
5575
+ * @memberof HospitalItemModel
5576
+ */
5577
+ 'websiteUrl'?: string | null;
5492
5578
  /**
5493
5579
  *
5494
5580
  * @type {number}
@@ -5706,6 +5792,12 @@ export interface HospitalModel {
5706
5792
  * @memberof HospitalModel
5707
5793
  */
5708
5794
  'timeZone'?: string | null;
5795
+ /**
5796
+ *
5797
+ * @type {string}
5798
+ * @memberof HospitalModel
5799
+ */
5800
+ 'websiteUrl'?: string | null;
5709
5801
  /**
5710
5802
  *
5711
5803
  * @type {number}
@@ -5965,6 +6057,12 @@ export interface HospitalServiceItemModel {
5965
6057
  * @memberof HospitalServiceItemModel
5966
6058
  */
5967
6059
  'photoThumbnail'?: string | null;
6060
+ /**
6061
+ *
6062
+ * @type {Array<MediaModel>}
6063
+ * @memberof HospitalServiceItemModel
6064
+ */
6065
+ 'medias'?: Array<MediaModel> | null;
5968
6066
  /**
5969
6067
  *
5970
6068
  * @type {AuditableEntity}
@@ -6116,6 +6214,12 @@ export interface HospitalServiceModel {
6116
6214
  * @memberof HospitalServiceModel
6117
6215
  */
6118
6216
  'photoThumbnail'?: string | null;
6217
+ /**
6218
+ *
6219
+ * @type {Array<MediaModel>}
6220
+ * @memberof HospitalServiceModel
6221
+ */
6222
+ 'medias'?: Array<MediaModel> | null;
6119
6223
  /**
6120
6224
  *
6121
6225
  * @type {AuditableEntity}
@@ -6519,6 +6623,12 @@ export interface HospitalSpecialtySimpleItemModel {
6519
6623
  * @memberof HospitalSpecialtySimpleItemModel
6520
6624
  */
6521
6625
  'id'?: string;
6626
+ /**
6627
+ *
6628
+ * @type {string}
6629
+ * @memberof HospitalSpecialtySimpleItemModel
6630
+ */
6631
+ 'title'?: string | null;
6522
6632
  /**
6523
6633
  *
6524
6634
  * @type {string}
@@ -8200,6 +8310,12 @@ export interface SpecialtyItemModel {
8200
8310
  * @memberof SpecialtyItemModel
8201
8311
  */
8202
8312
  'returnDefaultValue'?: boolean | null;
8313
+ /**
8314
+ *
8315
+ * @type {Array<MediaModel>}
8316
+ * @memberof SpecialtyItemModel
8317
+ */
8318
+ 'medias'?: Array<MediaModel> | null;
8203
8319
  }
8204
8320
  /**
8205
8321
  *
@@ -8279,6 +8395,12 @@ export interface SpecialtyModel {
8279
8395
  * @memberof SpecialtyModel
8280
8396
  */
8281
8397
  'returnDefaultValue'?: boolean | null;
8398
+ /**
8399
+ *
8400
+ * @type {Array<MediaModel>}
8401
+ * @memberof SpecialtyModel
8402
+ */
8403
+ 'medias'?: Array<MediaModel> | null;
8282
8404
  /**
8283
8405
  *
8284
8406
  * @type {string}
@@ -14337,6 +14459,128 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
14337
14459
 
14338
14460
 
14339
14461
 
14462
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14464
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14465
+
14466
+ return {
14467
+ url: toPathString(localVarUrlObj),
14468
+ options: localVarRequestOptions,
14469
+ };
14470
+ },
14471
+ /**
14472
+ *
14473
+ * @summary Get all deals.
14474
+ * @param {string} [id]
14475
+ * @param {string} [name]
14476
+ * @param {MarketingType} [marketingType]
14477
+ * @param {string} [countryId]
14478
+ * @param {string} [hospitalId]
14479
+ * @param {string} [hospitalName]
14480
+ * @param {string} [specialtyId]
14481
+ * @param {string} [specialtyTypeId]
14482
+ * @param {string} [serviceId]
14483
+ * @param {string} [exceptHospitalId]
14484
+ * @param {string} [exceptDealId]
14485
+ * @param {Array<string>} [ids]
14486
+ * @param {string} [languageCode]
14487
+ * @param {boolean} [showHidden]
14488
+ * @param {boolean} [returnDefaultValue]
14489
+ * @param {number} [page]
14490
+ * @param {number} [limit]
14491
+ * @param {Date} [lastRetrieved]
14492
+ * @param {*} [options] Override http request option.
14493
+ * @throws {RequiredError}
14494
+ */
14495
+ apiV2DealsSimpleGet: async (id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14496
+ const localVarPath = `/api/v2/deals/simple`;
14497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14498
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14499
+ let baseOptions;
14500
+ if (configuration) {
14501
+ baseOptions = configuration.baseOptions;
14502
+ }
14503
+
14504
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14505
+ const localVarHeaderParameter = {} as any;
14506
+ const localVarQueryParameter = {} as any;
14507
+
14508
+ if (id !== undefined) {
14509
+ localVarQueryParameter['Id'] = id;
14510
+ }
14511
+
14512
+ if (name !== undefined) {
14513
+ localVarQueryParameter['Name'] = name;
14514
+ }
14515
+
14516
+ if (marketingType !== undefined) {
14517
+ localVarQueryParameter['MarketingType'] = marketingType;
14518
+ }
14519
+
14520
+ if (countryId !== undefined) {
14521
+ localVarQueryParameter['CountryId'] = countryId;
14522
+ }
14523
+
14524
+ if (hospitalId !== undefined) {
14525
+ localVarQueryParameter['HospitalId'] = hospitalId;
14526
+ }
14527
+
14528
+ if (hospitalName !== undefined) {
14529
+ localVarQueryParameter['HospitalName'] = hospitalName;
14530
+ }
14531
+
14532
+ if (specialtyId !== undefined) {
14533
+ localVarQueryParameter['SpecialtyId'] = specialtyId;
14534
+ }
14535
+
14536
+ if (specialtyTypeId !== undefined) {
14537
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
14538
+ }
14539
+
14540
+ if (serviceId !== undefined) {
14541
+ localVarQueryParameter['ServiceId'] = serviceId;
14542
+ }
14543
+
14544
+ if (exceptHospitalId !== undefined) {
14545
+ localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
14546
+ }
14547
+
14548
+ if (exceptDealId !== undefined) {
14549
+ localVarQueryParameter['ExceptDealId'] = exceptDealId;
14550
+ }
14551
+
14552
+ if (ids) {
14553
+ localVarQueryParameter['Ids'] = ids;
14554
+ }
14555
+
14556
+ if (languageCode !== undefined) {
14557
+ localVarQueryParameter['LanguageCode'] = languageCode;
14558
+ }
14559
+
14560
+ if (showHidden !== undefined) {
14561
+ localVarQueryParameter['ShowHidden'] = showHidden;
14562
+ }
14563
+
14564
+ if (returnDefaultValue !== undefined) {
14565
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
14566
+ }
14567
+
14568
+ if (page !== undefined) {
14569
+ localVarQueryParameter['page'] = page;
14570
+ }
14571
+
14572
+ if (limit !== undefined) {
14573
+ localVarQueryParameter['limit'] = limit;
14574
+ }
14575
+
14576
+ if (lastRetrieved !== undefined) {
14577
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
14578
+ (lastRetrieved as any).toISOString() :
14579
+ lastRetrieved;
14580
+ }
14581
+
14582
+
14583
+
14340
14584
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14341
14585
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14342
14586
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -14499,6 +14743,34 @@ export const DealsApiFp = function(configuration?: Configuration) {
14499
14743
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
14500
14744
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14501
14745
  },
14746
+ /**
14747
+ *
14748
+ * @summary Get all deals.
14749
+ * @param {string} [id]
14750
+ * @param {string} [name]
14751
+ * @param {MarketingType} [marketingType]
14752
+ * @param {string} [countryId]
14753
+ * @param {string} [hospitalId]
14754
+ * @param {string} [hospitalName]
14755
+ * @param {string} [specialtyId]
14756
+ * @param {string} [specialtyTypeId]
14757
+ * @param {string} [serviceId]
14758
+ * @param {string} [exceptHospitalId]
14759
+ * @param {string} [exceptDealId]
14760
+ * @param {Array<string>} [ids]
14761
+ * @param {string} [languageCode]
14762
+ * @param {boolean} [showHidden]
14763
+ * @param {boolean} [returnDefaultValue]
14764
+ * @param {number} [page]
14765
+ * @param {number} [limit]
14766
+ * @param {Date} [lastRetrieved]
14767
+ * @param {*} [options] Override http request option.
14768
+ * @throws {RequiredError}
14769
+ */
14770
+ async apiV2DealsSimpleGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: 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<DealsSimpleModel>> {
14771
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
14772
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14773
+ },
14502
14774
  /**
14503
14775
  *
14504
14776
  * @summary Get deal by slug.
@@ -14615,6 +14887,33 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
14615
14887
  apiV2DealsGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsModel> {
14616
14888
  return localVarFp.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
14617
14889
  },
14890
+ /**
14891
+ *
14892
+ * @summary Get all deals.
14893
+ * @param {string} [id]
14894
+ * @param {string} [name]
14895
+ * @param {MarketingType} [marketingType]
14896
+ * @param {string} [countryId]
14897
+ * @param {string} [hospitalId]
14898
+ * @param {string} [hospitalName]
14899
+ * @param {string} [specialtyId]
14900
+ * @param {string} [specialtyTypeId]
14901
+ * @param {string} [serviceId]
14902
+ * @param {string} [exceptHospitalId]
14903
+ * @param {string} [exceptDealId]
14904
+ * @param {Array<string>} [ids]
14905
+ * @param {string} [languageCode]
14906
+ * @param {boolean} [showHidden]
14907
+ * @param {boolean} [returnDefaultValue]
14908
+ * @param {number} [page]
14909
+ * @param {number} [limit]
14910
+ * @param {Date} [lastRetrieved]
14911
+ * @param {*} [options] Override http request option.
14912
+ * @throws {RequiredError}
14913
+ */
14914
+ apiV2DealsSimpleGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsSimpleModel> {
14915
+ return localVarFp.apiV2DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
14916
+ },
14618
14917
  /**
14619
14918
  *
14620
14919
  * @summary Get deal by slug.
@@ -14742,6 +15041,35 @@ export class DealsApi extends BaseAPI {
14742
15041
  return DealsApiFp(this.configuration).apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
14743
15042
  }
14744
15043
 
15044
+ /**
15045
+ *
15046
+ * @summary Get all deals.
15047
+ * @param {string} [id]
15048
+ * @param {string} [name]
15049
+ * @param {MarketingType} [marketingType]
15050
+ * @param {string} [countryId]
15051
+ * @param {string} [hospitalId]
15052
+ * @param {string} [hospitalName]
15053
+ * @param {string} [specialtyId]
15054
+ * @param {string} [specialtyTypeId]
15055
+ * @param {string} [serviceId]
15056
+ * @param {string} [exceptHospitalId]
15057
+ * @param {string} [exceptDealId]
15058
+ * @param {Array<string>} [ids]
15059
+ * @param {string} [languageCode]
15060
+ * @param {boolean} [showHidden]
15061
+ * @param {boolean} [returnDefaultValue]
15062
+ * @param {number} [page]
15063
+ * @param {number} [limit]
15064
+ * @param {Date} [lastRetrieved]
15065
+ * @param {*} [options] Override http request option.
15066
+ * @throws {RequiredError}
15067
+ * @memberof DealsApi
15068
+ */
15069
+ public apiV2DealsSimpleGet(id?: string, name?: string, marketingType?: MarketingType, countryId?: string, hospitalId?: string, hospitalName?: string, specialtyId?: string, specialtyTypeId?: string, serviceId?: string, exceptHospitalId?: string, exceptDealId?: string, ids?: Array<string>, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
15070
+ return DealsApiFp(this.configuration).apiV2DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
15071
+ }
15072
+
14745
15073
  /**
14746
15074
  *
14747
15075
  * @summary Get deal by slug.