ch-admin-api-client-typescript 2.8.6 → 2.8.7

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
@@ -9911,6 +9911,119 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
9911
9911
  });
9912
9912
  });
9913
9913
  },
9914
+ /**
9915
+ *
9916
+ * @summary Get all deals.
9917
+ * @param {string} [id]
9918
+ * @param {string} [name]
9919
+ * @param {MarketingType} [marketingType]
9920
+ * @param {string} [countryId]
9921
+ * @param {string} [hospitalId]
9922
+ * @param {string} [hospitalName]
9923
+ * @param {string} [specialtyId]
9924
+ * @param {string} [specialtyTypeId]
9925
+ * @param {string} [serviceId]
9926
+ * @param {string} [exceptHospitalId]
9927
+ * @param {string} [exceptDealId]
9928
+ * @param {Array<string>} [ids]
9929
+ * @param {string} [languageCode]
9930
+ * @param {boolean} [showHidden]
9931
+ * @param {boolean} [returnDefaultValue]
9932
+ * @param {number} [page]
9933
+ * @param {number} [limit]
9934
+ * @param {Date} [lastRetrieved]
9935
+ * @param {*} [options] Override http request option.
9936
+ * @throws {RequiredError}
9937
+ */
9938
+ apiV1DealsSimpleGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
9939
+ if (options === void 0) { options = {}; }
9940
+ return __awaiter(_this, void 0, void 0, function () {
9941
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9942
+ return __generator(this, function (_a) {
9943
+ switch (_a.label) {
9944
+ case 0:
9945
+ localVarPath = "/api/v1/deals/simple";
9946
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9947
+ if (configuration) {
9948
+ baseOptions = configuration.baseOptions;
9949
+ }
9950
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9951
+ localVarHeaderParameter = {};
9952
+ localVarQueryParameter = {};
9953
+ // authentication oauth2 required
9954
+ // oauth required
9955
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
9956
+ case 1:
9957
+ // authentication oauth2 required
9958
+ // oauth required
9959
+ _a.sent();
9960
+ if (id !== undefined) {
9961
+ localVarQueryParameter['Id'] = id;
9962
+ }
9963
+ if (name !== undefined) {
9964
+ localVarQueryParameter['Name'] = name;
9965
+ }
9966
+ if (marketingType !== undefined) {
9967
+ localVarQueryParameter['MarketingType'] = marketingType;
9968
+ }
9969
+ if (countryId !== undefined) {
9970
+ localVarQueryParameter['CountryId'] = countryId;
9971
+ }
9972
+ if (hospitalId !== undefined) {
9973
+ localVarQueryParameter['HospitalId'] = hospitalId;
9974
+ }
9975
+ if (hospitalName !== undefined) {
9976
+ localVarQueryParameter['HospitalName'] = hospitalName;
9977
+ }
9978
+ if (specialtyId !== undefined) {
9979
+ localVarQueryParameter['SpecialtyId'] = specialtyId;
9980
+ }
9981
+ if (specialtyTypeId !== undefined) {
9982
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
9983
+ }
9984
+ if (serviceId !== undefined) {
9985
+ localVarQueryParameter['ServiceId'] = serviceId;
9986
+ }
9987
+ if (exceptHospitalId !== undefined) {
9988
+ localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
9989
+ }
9990
+ if (exceptDealId !== undefined) {
9991
+ localVarQueryParameter['ExceptDealId'] = exceptDealId;
9992
+ }
9993
+ if (ids) {
9994
+ localVarQueryParameter['Ids'] = ids;
9995
+ }
9996
+ if (languageCode !== undefined) {
9997
+ localVarQueryParameter['LanguageCode'] = languageCode;
9998
+ }
9999
+ if (showHidden !== undefined) {
10000
+ localVarQueryParameter['ShowHidden'] = showHidden;
10001
+ }
10002
+ if (returnDefaultValue !== undefined) {
10003
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
10004
+ }
10005
+ if (page !== undefined) {
10006
+ localVarQueryParameter['page'] = page;
10007
+ }
10008
+ if (limit !== undefined) {
10009
+ localVarQueryParameter['limit'] = limit;
10010
+ }
10011
+ if (lastRetrieved !== undefined) {
10012
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
10013
+ lastRetrieved.toISOString() :
10014
+ lastRetrieved;
10015
+ }
10016
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10017
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10018
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10019
+ return [2 /*return*/, {
10020
+ url: common_1.toPathString(localVarUrlObj),
10021
+ options: localVarRequestOptions,
10022
+ }];
10023
+ }
10024
+ });
10025
+ });
10026
+ },
9914
10027
  /**
9915
10028
  *
9916
10029
  * @summary Get deal by slug.
@@ -10313,6 +10426,43 @@ exports.DealsApiFp = function (configuration) {
10313
10426
  });
10314
10427
  });
10315
10428
  },
10429
+ /**
10430
+ *
10431
+ * @summary Get all deals.
10432
+ * @param {string} [id]
10433
+ * @param {string} [name]
10434
+ * @param {MarketingType} [marketingType]
10435
+ * @param {string} [countryId]
10436
+ * @param {string} [hospitalId]
10437
+ * @param {string} [hospitalName]
10438
+ * @param {string} [specialtyId]
10439
+ * @param {string} [specialtyTypeId]
10440
+ * @param {string} [serviceId]
10441
+ * @param {string} [exceptHospitalId]
10442
+ * @param {string} [exceptDealId]
10443
+ * @param {Array<string>} [ids]
10444
+ * @param {string} [languageCode]
10445
+ * @param {boolean} [showHidden]
10446
+ * @param {boolean} [returnDefaultValue]
10447
+ * @param {number} [page]
10448
+ * @param {number} [limit]
10449
+ * @param {Date} [lastRetrieved]
10450
+ * @param {*} [options] Override http request option.
10451
+ * @throws {RequiredError}
10452
+ */
10453
+ apiV1DealsSimpleGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
10454
+ return __awaiter(this, void 0, void 0, function () {
10455
+ var localVarAxiosArgs;
10456
+ return __generator(this, function (_a) {
10457
+ switch (_a.label) {
10458
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
10459
+ case 1:
10460
+ localVarAxiosArgs = _a.sent();
10461
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
10462
+ }
10463
+ });
10464
+ });
10465
+ },
10316
10466
  /**
10317
10467
  *
10318
10468
  * @summary Get deal by slug.
@@ -10536,6 +10686,33 @@ exports.DealsApiFactory = function (configuration, basePath, axios) {
10536
10686
  apiV1DealsPost: function (createDealCommand, options) {
10537
10687
  return localVarFp.apiV1DealsPost(createDealCommand, options).then(function (request) { return request(axios, basePath); });
10538
10688
  },
10689
+ /**
10690
+ *
10691
+ * @summary Get all deals.
10692
+ * @param {string} [id]
10693
+ * @param {string} [name]
10694
+ * @param {MarketingType} [marketingType]
10695
+ * @param {string} [countryId]
10696
+ * @param {string} [hospitalId]
10697
+ * @param {string} [hospitalName]
10698
+ * @param {string} [specialtyId]
10699
+ * @param {string} [specialtyTypeId]
10700
+ * @param {string} [serviceId]
10701
+ * @param {string} [exceptHospitalId]
10702
+ * @param {string} [exceptDealId]
10703
+ * @param {Array<string>} [ids]
10704
+ * @param {string} [languageCode]
10705
+ * @param {boolean} [showHidden]
10706
+ * @param {boolean} [returnDefaultValue]
10707
+ * @param {number} [page]
10708
+ * @param {number} [limit]
10709
+ * @param {Date} [lastRetrieved]
10710
+ * @param {*} [options] Override http request option.
10711
+ * @throws {RequiredError}
10712
+ */
10713
+ apiV1DealsSimpleGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
10714
+ return localVarFp.apiV1DealsSimpleGet(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); });
10715
+ },
10539
10716
  /**
10540
10717
  *
10541
10718
  * @summary Get deal by slug.
@@ -10783,6 +10960,35 @@ var DealsApi = /** @class */ (function (_super) {
10783
10960
  var _this = this;
10784
10961
  return exports.DealsApiFp(this.configuration).apiV1DealsPost(createDealCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
10785
10962
  };
10963
+ /**
10964
+ *
10965
+ * @summary Get all deals.
10966
+ * @param {string} [id]
10967
+ * @param {string} [name]
10968
+ * @param {MarketingType} [marketingType]
10969
+ * @param {string} [countryId]
10970
+ * @param {string} [hospitalId]
10971
+ * @param {string} [hospitalName]
10972
+ * @param {string} [specialtyId]
10973
+ * @param {string} [specialtyTypeId]
10974
+ * @param {string} [serviceId]
10975
+ * @param {string} [exceptHospitalId]
10976
+ * @param {string} [exceptDealId]
10977
+ * @param {Array<string>} [ids]
10978
+ * @param {string} [languageCode]
10979
+ * @param {boolean} [showHidden]
10980
+ * @param {boolean} [returnDefaultValue]
10981
+ * @param {number} [page]
10982
+ * @param {number} [limit]
10983
+ * @param {Date} [lastRetrieved]
10984
+ * @param {*} [options] Override http request option.
10985
+ * @throws {RequiredError}
10986
+ * @memberof DealsApi
10987
+ */
10988
+ DealsApi.prototype.apiV1DealsSimpleGet = function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
10989
+ var _this = this;
10990
+ return exports.DealsApiFp(this.configuration).apiV1DealsSimpleGet(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); });
10991
+ };
10786
10992
  /**
10787
10993
  *
10788
10994
  * @summary Get deal by slug.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "2.8.6",
3
+ "version": "2.8.7",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/api.ts CHANGED
@@ -4743,6 +4743,67 @@ export interface DealItemModel {
4743
4743
  */
4744
4744
  'auditableEntity'?: AuditableEntity;
4745
4745
  }
4746
+ /**
4747
+ *
4748
+ * @export
4749
+ * @interface DealItemSimpleModel
4750
+ */
4751
+ export interface DealItemSimpleModel {
4752
+ /**
4753
+ *
4754
+ * @type {string}
4755
+ * @memberof DealItemSimpleModel
4756
+ */
4757
+ 'id'?: string;
4758
+ /**
4759
+ *
4760
+ * @type {string}
4761
+ * @memberof DealItemSimpleModel
4762
+ */
4763
+ 'name'?: string | null;
4764
+ /**
4765
+ *
4766
+ * @type {string}
4767
+ * @memberof DealItemSimpleModel
4768
+ */
4769
+ 'normalizedName'?: string | null;
4770
+ /**
4771
+ *
4772
+ * @type {string}
4773
+ * @memberof DealItemSimpleModel
4774
+ */
4775
+ 'slug'?: string | null;
4776
+ /**
4777
+ *
4778
+ * @type {string}
4779
+ * @memberof DealItemSimpleModel
4780
+ */
4781
+ 'hospitalId'?: string;
4782
+ /**
4783
+ *
4784
+ * @type {string}
4785
+ * @memberof DealItemSimpleModel
4786
+ */
4787
+ 'hospitalName'?: string | null;
4788
+ /**
4789
+ *
4790
+ * @type {Array<LocalizedUrlModel>}
4791
+ * @memberof DealItemSimpleModel
4792
+ */
4793
+ 'localizedUrls'?: Array<LocalizedUrlModel> | null;
4794
+ /**
4795
+ *
4796
+ * @type {boolean}
4797
+ * @memberof DealItemSimpleModel
4798
+ */
4799
+ 'confirmed'?: boolean;
4800
+ /**
4801
+ *
4802
+ * @type {AuditableEntity}
4803
+ * @memberof DealItemSimpleModel
4804
+ */
4805
+ 'auditableEntity'?: AuditableEntity;
4806
+ }
4746
4807
  /**
4747
4808
  *
4748
4809
  * @export
@@ -5165,6 +5226,25 @@ export interface DealsModel {
5165
5226
  */
5166
5227
  'metaData'?: PagedListMetaData;
5167
5228
  }
5229
+ /**
5230
+ *
5231
+ * @export
5232
+ * @interface DealsSimpleModel
5233
+ */
5234
+ export interface DealsSimpleModel {
5235
+ /**
5236
+ *
5237
+ * @type {Array<DealItemSimpleModel>}
5238
+ * @memberof DealsSimpleModel
5239
+ */
5240
+ 'items'?: Array<DealItemSimpleModel> | null;
5241
+ /**
5242
+ *
5243
+ * @type {PagedListMetaData}
5244
+ * @memberof DealsSimpleModel
5245
+ */
5246
+ 'metaData'?: PagedListMetaData;
5247
+ }
5168
5248
  /**
5169
5249
  *
5170
5250
  * @export
@@ -21150,6 +21230,132 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
21150
21230
  options: localVarRequestOptions,
21151
21231
  };
21152
21232
  },
21233
+ /**
21234
+ *
21235
+ * @summary Get all deals.
21236
+ * @param {string} [id]
21237
+ * @param {string} [name]
21238
+ * @param {MarketingType} [marketingType]
21239
+ * @param {string} [countryId]
21240
+ * @param {string} [hospitalId]
21241
+ * @param {string} [hospitalName]
21242
+ * @param {string} [specialtyId]
21243
+ * @param {string} [specialtyTypeId]
21244
+ * @param {string} [serviceId]
21245
+ * @param {string} [exceptHospitalId]
21246
+ * @param {string} [exceptDealId]
21247
+ * @param {Array<string>} [ids]
21248
+ * @param {string} [languageCode]
21249
+ * @param {boolean} [showHidden]
21250
+ * @param {boolean} [returnDefaultValue]
21251
+ * @param {number} [page]
21252
+ * @param {number} [limit]
21253
+ * @param {Date} [lastRetrieved]
21254
+ * @param {*} [options] Override http request option.
21255
+ * @throws {RequiredError}
21256
+ */
21257
+ apiV1DealsSimpleGet: 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> => {
21258
+ const localVarPath = `/api/v1/deals/simple`;
21259
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21260
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21261
+ let baseOptions;
21262
+ if (configuration) {
21263
+ baseOptions = configuration.baseOptions;
21264
+ }
21265
+
21266
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21267
+ const localVarHeaderParameter = {} as any;
21268
+ const localVarQueryParameter = {} as any;
21269
+
21270
+ // authentication oauth2 required
21271
+ // oauth required
21272
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
21273
+
21274
+ if (id !== undefined) {
21275
+ localVarQueryParameter['Id'] = id;
21276
+ }
21277
+
21278
+ if (name !== undefined) {
21279
+ localVarQueryParameter['Name'] = name;
21280
+ }
21281
+
21282
+ if (marketingType !== undefined) {
21283
+ localVarQueryParameter['MarketingType'] = marketingType;
21284
+ }
21285
+
21286
+ if (countryId !== undefined) {
21287
+ localVarQueryParameter['CountryId'] = countryId;
21288
+ }
21289
+
21290
+ if (hospitalId !== undefined) {
21291
+ localVarQueryParameter['HospitalId'] = hospitalId;
21292
+ }
21293
+
21294
+ if (hospitalName !== undefined) {
21295
+ localVarQueryParameter['HospitalName'] = hospitalName;
21296
+ }
21297
+
21298
+ if (specialtyId !== undefined) {
21299
+ localVarQueryParameter['SpecialtyId'] = specialtyId;
21300
+ }
21301
+
21302
+ if (specialtyTypeId !== undefined) {
21303
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
21304
+ }
21305
+
21306
+ if (serviceId !== undefined) {
21307
+ localVarQueryParameter['ServiceId'] = serviceId;
21308
+ }
21309
+
21310
+ if (exceptHospitalId !== undefined) {
21311
+ localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
21312
+ }
21313
+
21314
+ if (exceptDealId !== undefined) {
21315
+ localVarQueryParameter['ExceptDealId'] = exceptDealId;
21316
+ }
21317
+
21318
+ if (ids) {
21319
+ localVarQueryParameter['Ids'] = ids;
21320
+ }
21321
+
21322
+ if (languageCode !== undefined) {
21323
+ localVarQueryParameter['LanguageCode'] = languageCode;
21324
+ }
21325
+
21326
+ if (showHidden !== undefined) {
21327
+ localVarQueryParameter['ShowHidden'] = showHidden;
21328
+ }
21329
+
21330
+ if (returnDefaultValue !== undefined) {
21331
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
21332
+ }
21333
+
21334
+ if (page !== undefined) {
21335
+ localVarQueryParameter['page'] = page;
21336
+ }
21337
+
21338
+ if (limit !== undefined) {
21339
+ localVarQueryParameter['limit'] = limit;
21340
+ }
21341
+
21342
+ if (lastRetrieved !== undefined) {
21343
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
21344
+ (lastRetrieved as any).toISOString() :
21345
+ lastRetrieved;
21346
+ }
21347
+
21348
+
21349
+
21350
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21351
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21352
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21353
+
21354
+ return {
21355
+ url: toPathString(localVarUrlObj),
21356
+ options: localVarRequestOptions,
21357
+ };
21358
+ },
21153
21359
  /**
21154
21360
  *
21155
21361
  * @summary Get deal by slug.
@@ -21415,6 +21621,34 @@ export const DealsApiFp = function(configuration?: Configuration) {
21415
21621
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsPost(createDealCommand, options);
21416
21622
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21417
21623
  },
21624
+ /**
21625
+ *
21626
+ * @summary Get all deals.
21627
+ * @param {string} [id]
21628
+ * @param {string} [name]
21629
+ * @param {MarketingType} [marketingType]
21630
+ * @param {string} [countryId]
21631
+ * @param {string} [hospitalId]
21632
+ * @param {string} [hospitalName]
21633
+ * @param {string} [specialtyId]
21634
+ * @param {string} [specialtyTypeId]
21635
+ * @param {string} [serviceId]
21636
+ * @param {string} [exceptHospitalId]
21637
+ * @param {string} [exceptDealId]
21638
+ * @param {Array<string>} [ids]
21639
+ * @param {string} [languageCode]
21640
+ * @param {boolean} [showHidden]
21641
+ * @param {boolean} [returnDefaultValue]
21642
+ * @param {number} [page]
21643
+ * @param {number} [limit]
21644
+ * @param {Date} [lastRetrieved]
21645
+ * @param {*} [options] Override http request option.
21646
+ * @throws {RequiredError}
21647
+ */
21648
+ async apiV1DealsSimpleGet(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>> {
21649
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
21650
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21651
+ },
21418
21652
  /**
21419
21653
  *
21420
21654
  * @summary Get deal by slug.
@@ -21630,6 +21864,33 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
21630
21864
  apiV1DealsPost(createDealCommand?: CreateDealCommand, options?: any): AxiosPromise<DealModel> {
21631
21865
  return localVarFp.apiV1DealsPost(createDealCommand, options).then((request) => request(axios, basePath));
21632
21866
  },
21867
+ /**
21868
+ *
21869
+ * @summary Get all deals.
21870
+ * @param {string} [id]
21871
+ * @param {string} [name]
21872
+ * @param {MarketingType} [marketingType]
21873
+ * @param {string} [countryId]
21874
+ * @param {string} [hospitalId]
21875
+ * @param {string} [hospitalName]
21876
+ * @param {string} [specialtyId]
21877
+ * @param {string} [specialtyTypeId]
21878
+ * @param {string} [serviceId]
21879
+ * @param {string} [exceptHospitalId]
21880
+ * @param {string} [exceptDealId]
21881
+ * @param {Array<string>} [ids]
21882
+ * @param {string} [languageCode]
21883
+ * @param {boolean} [showHidden]
21884
+ * @param {boolean} [returnDefaultValue]
21885
+ * @param {number} [page]
21886
+ * @param {number} [limit]
21887
+ * @param {Date} [lastRetrieved]
21888
+ * @param {*} [options] Override http request option.
21889
+ * @throws {RequiredError}
21890
+ */
21891
+ apiV1DealsSimpleGet(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> {
21892
+ return localVarFp.apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
21893
+ },
21633
21894
  /**
21634
21895
  *
21635
21896
  * @summary Get deal by slug.
@@ -21874,6 +22135,35 @@ export class DealsApi extends BaseAPI {
21874
22135
  return DealsApiFp(this.configuration).apiV1DealsPost(createDealCommand, options).then((request) => request(this.axios, this.basePath));
21875
22136
  }
21876
22137
 
22138
+ /**
22139
+ *
22140
+ * @summary Get all deals.
22141
+ * @param {string} [id]
22142
+ * @param {string} [name]
22143
+ * @param {MarketingType} [marketingType]
22144
+ * @param {string} [countryId]
22145
+ * @param {string} [hospitalId]
22146
+ * @param {string} [hospitalName]
22147
+ * @param {string} [specialtyId]
22148
+ * @param {string} [specialtyTypeId]
22149
+ * @param {string} [serviceId]
22150
+ * @param {string} [exceptHospitalId]
22151
+ * @param {string} [exceptDealId]
22152
+ * @param {Array<string>} [ids]
22153
+ * @param {string} [languageCode]
22154
+ * @param {boolean} [showHidden]
22155
+ * @param {boolean} [returnDefaultValue]
22156
+ * @param {number} [page]
22157
+ * @param {number} [limit]
22158
+ * @param {Date} [lastRetrieved]
22159
+ * @param {*} [options] Override http request option.
22160
+ * @throws {RequiredError}
22161
+ * @memberof DealsApi
22162
+ */
22163
+ public apiV1DealsSimpleGet(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) {
22164
+ return DealsApiFp(this.configuration).apiV1DealsSimpleGet(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));
22165
+ }
22166
+
21877
22167
  /**
21878
22168
  *
21879
22169
  * @summary Get deal by slug.