ch-api-client-typescript2 2.6.8 → 2.7.1

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/src/api.ts CHANGED
@@ -751,6 +751,18 @@ export interface AuditableEntity {
751
751
  */
752
752
  'isDeleted'?: boolean;
753
753
  }
754
+ /**
755
+ *
756
+ * @export
757
+ * @enum {string}
758
+ */
759
+
760
+ export enum AutocompleteMode {
761
+ OneTerm = 'OneTerm',
762
+ TwoTerms = 'TwoTerms',
763
+ OneTermWithContext = 'OneTermWithContext'
764
+ }
765
+
754
766
  /**
755
767
  *
756
768
  * @export
@@ -782,6 +794,69 @@ export interface AwardModel {
782
794
  */
783
795
  'date'?: Date;
784
796
  }
797
+ /**
798
+ *
799
+ * @export
800
+ * @interface AzureSearchModel
801
+ */
802
+ export interface AzureSearchModel {
803
+ /**
804
+ *
805
+ * @type {number}
806
+ * @memberof AzureSearchModel
807
+ */
808
+ 'hospitals'?: number;
809
+ /**
810
+ *
811
+ * @type {number}
812
+ * @memberof AzureSearchModel
813
+ */
814
+ 'doctors'?: number;
815
+ /**
816
+ *
817
+ * @type {number}
818
+ * @memberof AzureSearchModel
819
+ */
820
+ 'deals'?: number;
821
+ /**
822
+ *
823
+ * @type {number}
824
+ * @memberof AzureSearchModel
825
+ */
826
+ 'specialties'?: number;
827
+ /**
828
+ *
829
+ * @type {number}
830
+ * @memberof AzureSearchModel
831
+ */
832
+ 'specialtyTypes'?: number;
833
+ }
834
+ /**
835
+ *
836
+ * @export
837
+ * @interface AzureSearchServiceAutocompleteModel
838
+ */
839
+ export interface AzureSearchServiceAutocompleteModel {
840
+ /**
841
+ *
842
+ * @type {Array<string>}
843
+ * @memberof AzureSearchServiceAutocompleteModel
844
+ */
845
+ 'values'?: Array<string> | null;
846
+ }
847
+ /**
848
+ *
849
+ * @export
850
+ * @interface AzureSearchServiceSuggestModel
851
+ */
852
+ export interface AzureSearchServiceSuggestModel {
853
+ /**
854
+ *
855
+ * @type {Array<string>}
856
+ * @memberof AzureSearchServiceSuggestModel
857
+ */
858
+ 'values'?: Array<string> | null;
859
+ }
785
860
  /**
786
861
  *
787
862
  * @export
@@ -3575,6 +3650,12 @@ export interface DoctorItemModel {
3575
3650
  * @memberof DoctorItemModel
3576
3651
  */
3577
3652
  'id'?: string;
3653
+ /**
3654
+ *
3655
+ * @type {string}
3656
+ * @memberof DoctorItemModel
3657
+ */
3658
+ 'userType'?: string | null;
3578
3659
  /**
3579
3660
  *
3580
3661
  * @type {string}
@@ -3653,12 +3734,6 @@ export interface DoctorItemModel {
3653
3734
  * @memberof DoctorItemModel
3654
3735
  */
3655
3736
  'auditableEntity'?: AuditableEntity;
3656
- /**
3657
- *
3658
- * @type {string}
3659
- * @memberof DoctorItemModel
3660
- */
3661
- 'userType'?: string | null;
3662
3737
  /**
3663
3738
  *
3664
3739
  * @type {Array<UserLanguageModel>}
@@ -3713,6 +3788,30 @@ export interface DoctorItemModel {
3713
3788
  * @memberof DoctorItemModel
3714
3789
  */
3715
3790
  'consultationFee'?: number | null;
3791
+ /**
3792
+ *
3793
+ * @type {number}
3794
+ * @memberof DoctorItemModel
3795
+ */
3796
+ 'doctorSpecialtiesCount'?: number;
3797
+ /**
3798
+ *
3799
+ * @type {Array<DoctorSpecialtyItemModel>}
3800
+ * @memberof DoctorItemModel
3801
+ */
3802
+ 'doctorSpecialties'?: Array<DoctorSpecialtyItemModel> | null;
3803
+ /**
3804
+ *
3805
+ * @type {number}
3806
+ * @memberof DoctorItemModel
3807
+ */
3808
+ 'doctorAffiliationsCount'?: number;
3809
+ /**
3810
+ *
3811
+ * @type {Array<HospitalAffiliationModel>}
3812
+ * @memberof DoctorItemModel
3813
+ */
3814
+ 'doctorAffiliations'?: Array<HospitalAffiliationModel> | null;
3716
3815
  /**
3717
3816
  *
3718
3817
  * @type {Array<LocalizedUrlModel>}
@@ -3738,6 +3837,12 @@ export interface DoctorModel {
3738
3837
  * @memberof DoctorModel
3739
3838
  */
3740
3839
  'id'?: string;
3840
+ /**
3841
+ *
3842
+ * @type {string}
3843
+ * @memberof DoctorModel
3844
+ */
3845
+ 'userType'?: string | null;
3741
3846
  /**
3742
3847
  *
3743
3848
  * @type {string}
@@ -3816,12 +3921,6 @@ export interface DoctorModel {
3816
3921
  * @memberof DoctorModel
3817
3922
  */
3818
3923
  'auditableEntity'?: AuditableEntity;
3819
- /**
3820
- *
3821
- * @type {string}
3822
- * @memberof DoctorModel
3823
- */
3824
- 'userType'?: string | null;
3825
3924
  /**
3826
3925
  *
3827
3926
  * @type {Array<UserLanguageModel>}
@@ -3876,6 +3975,30 @@ export interface DoctorModel {
3876
3975
  * @memberof DoctorModel
3877
3976
  */
3878
3977
  'consultationFee'?: number | null;
3978
+ /**
3979
+ *
3980
+ * @type {number}
3981
+ * @memberof DoctorModel
3982
+ */
3983
+ 'doctorSpecialtiesCount'?: number;
3984
+ /**
3985
+ *
3986
+ * @type {Array<DoctorSpecialtyItemModel>}
3987
+ * @memberof DoctorModel
3988
+ */
3989
+ 'doctorSpecialties'?: Array<DoctorSpecialtyItemModel> | null;
3990
+ /**
3991
+ *
3992
+ * @type {number}
3993
+ * @memberof DoctorModel
3994
+ */
3995
+ 'doctorAffiliationsCount'?: number;
3996
+ /**
3997
+ *
3998
+ * @type {Array<HospitalAffiliationModel>}
3999
+ * @memberof DoctorModel
4000
+ */
4001
+ 'doctorAffiliations'?: Array<HospitalAffiliationModel> | null;
3879
4002
  /**
3880
4003
  *
3881
4004
  * @type {Array<LocalizedUrlModel>}
@@ -4031,6 +4154,49 @@ export interface DoctorSpecialtiesModel {
4031
4154
  */
4032
4155
  'metaData'?: PagedListMetaData;
4033
4156
  }
4157
+ /**
4158
+ *
4159
+ * @export
4160
+ * @interface DoctorSpecialtyItemModel
4161
+ */
4162
+ export interface DoctorSpecialtyItemModel {
4163
+ /**
4164
+ *
4165
+ * @type {string}
4166
+ * @memberof DoctorSpecialtyItemModel
4167
+ */
4168
+ 'specialtyId'?: string;
4169
+ /**
4170
+ *
4171
+ * @type {string}
4172
+ * @memberof DoctorSpecialtyItemModel
4173
+ */
4174
+ 'specialtyName'?: string | null;
4175
+ /**
4176
+ *
4177
+ * @type {string}
4178
+ * @memberof DoctorSpecialtyItemModel
4179
+ */
4180
+ 'specialtySlug'?: string | null;
4181
+ /**
4182
+ *
4183
+ * @type {string}
4184
+ * @memberof DoctorSpecialtyItemModel
4185
+ */
4186
+ 'specialtyTypeId'?: string;
4187
+ /**
4188
+ *
4189
+ * @type {string}
4190
+ * @memberof DoctorSpecialtyItemModel
4191
+ */
4192
+ 'specialtyTypeName'?: string | null;
4193
+ /**
4194
+ *
4195
+ * @type {number}
4196
+ * @memberof DoctorSpecialtyItemModel
4197
+ */
4198
+ 'order'?: number;
4199
+ }
4034
4200
  /**
4035
4201
  *
4036
4202
  * @export
@@ -4537,6 +4703,55 @@ export interface HospitalAccreditationsModel {
4537
4703
  */
4538
4704
  'metaData'?: PagedListMetaData;
4539
4705
  }
4706
+ /**
4707
+ *
4708
+ * @export
4709
+ * @interface HospitalAffiliationModel
4710
+ */
4711
+ export interface HospitalAffiliationModel {
4712
+ /**
4713
+ *
4714
+ * @type {string}
4715
+ * @memberof HospitalAffiliationModel
4716
+ */
4717
+ 'hospitalId'?: string;
4718
+ /**
4719
+ *
4720
+ * @type {string}
4721
+ * @memberof HospitalAffiliationModel
4722
+ */
4723
+ 'hospitalName'?: string | null;
4724
+ /**
4725
+ *
4726
+ * @type {string}
4727
+ * @memberof HospitalAffiliationModel
4728
+ */
4729
+ 'hospitalSlug'?: string | null;
4730
+ /**
4731
+ *
4732
+ * @type {string}
4733
+ * @memberof HospitalAffiliationModel
4734
+ */
4735
+ 'countryId'?: string;
4736
+ /**
4737
+ *
4738
+ * @type {string}
4739
+ * @memberof HospitalAffiliationModel
4740
+ */
4741
+ 'countryName'?: string | null;
4742
+ /**
4743
+ *
4744
+ * @type {string}
4745
+ * @memberof HospitalAffiliationModel
4746
+ */
4747
+ 'stateName'?: string | null;
4748
+ /**
4749
+ *
4750
+ * @type {string}
4751
+ * @memberof HospitalAffiliationModel
4752
+ */
4753
+ 'cityName'?: string | null;
4754
+ }
4540
4755
  /**
4541
4756
  *
4542
4757
  * @export
@@ -6266,6 +6481,12 @@ export interface NotificationModel {
6266
6481
  * @memberof NotificationModel
6267
6482
  */
6268
6483
  'isChecked'?: boolean;
6484
+ /**
6485
+ *
6486
+ * @type {boolean}
6487
+ * @memberof NotificationModel
6488
+ */
6489
+ 'isDeleted'?: boolean;
6269
6490
  }
6270
6491
  /**
6271
6492
  *
@@ -6371,6 +6592,12 @@ export interface PatientModel {
6371
6592
  * @memberof PatientModel
6372
6593
  */
6373
6594
  'id'?: string;
6595
+ /**
6596
+ *
6597
+ * @type {string}
6598
+ * @memberof PatientModel
6599
+ */
6600
+ 'userType'?: string | null;
6374
6601
  /**
6375
6602
  *
6376
6603
  * @type {string}
@@ -6449,12 +6676,6 @@ export interface PatientModel {
6449
6676
  * @memberof PatientModel
6450
6677
  */
6451
6678
  'auditableEntity'?: AuditableEntity;
6452
- /**
6453
- *
6454
- * @type {string}
6455
- * @memberof PatientModel
6456
- */
6457
- 'userType'?: string | null;
6458
6679
  /**
6459
6680
  *
6460
6681
  * @type {Array<UserLanguageModel>}
@@ -7931,6 +8152,12 @@ export interface UserModel {
7931
8152
  * @memberof UserModel
7932
8153
  */
7933
8154
  'id'?: string;
8155
+ /**
8156
+ *
8157
+ * @type {string}
8158
+ * @memberof UserModel
8159
+ */
8160
+ 'userType'?: string | null;
7934
8161
  /**
7935
8162
  *
7936
8163
  * @type {string}
@@ -8009,12 +8236,6 @@ export interface UserModel {
8009
8236
  * @memberof UserModel
8010
8237
  */
8011
8238
  'auditableEntity'?: AuditableEntity;
8012
- /**
8013
- *
8014
- * @type {string}
8015
- * @memberof UserModel
8016
- */
8017
- 'userType'?: string | null;
8018
8239
  /**
8019
8240
  *
8020
8241
  * @type {Array<UserLanguageModel>}
@@ -14270,6 +14491,7 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
14270
14491
  * @param {string} [hospitalId]
14271
14492
  * @param {string} [languageCode]
14272
14493
  * @param {boolean} [returnDefaultValue]
14494
+ * @param {Array<string>} [ids]
14273
14495
  * @param {string} [id]
14274
14496
  * @param {string} [fullname]
14275
14497
  * @param {string} [email]
@@ -14283,7 +14505,7 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
14283
14505
  * @param {*} [options] Override http request option.
14284
14506
  * @throws {RequiredError}
14285
14507
  */
14286
- apiV2DoctorsGet: async (hospitalId?: string, languageCode?: string, returnDefaultValue?: boolean, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14508
+ apiV2DoctorsGet: async (hospitalId?: string, languageCode?: string, returnDefaultValue?: boolean, ids?: Array<string>, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14287
14509
  const localVarPath = `/api/v2/doctors`;
14288
14510
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14289
14511
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14308,6 +14530,10 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
14308
14530
  localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
14309
14531
  }
14310
14532
 
14533
+ if (ids) {
14534
+ localVarQueryParameter['Ids'] = ids;
14535
+ }
14536
+
14311
14537
  if (id !== undefined) {
14312
14538
  localVarQueryParameter['Id'] = id;
14313
14539
  }
@@ -14611,6 +14837,7 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
14611
14837
  * @param {string} [hospitalId]
14612
14838
  * @param {string} [languageCode]
14613
14839
  * @param {boolean} [returnDefaultValue]
14840
+ * @param {Array<string>} [ids]
14614
14841
  * @param {string} [id]
14615
14842
  * @param {string} [fullname]
14616
14843
  * @param {string} [email]
@@ -14624,8 +14851,8 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
14624
14851
  * @param {*} [options] Override http request option.
14625
14852
  * @throws {RequiredError}
14626
14853
  */
14627
- async apiV2DoctorsGet(hospitalId?: string, languageCode?: string, returnDefaultValue?: boolean, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorsModel>> {
14628
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctorsGet(hospitalId, languageCode, returnDefaultValue, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options);
14854
+ async apiV2DoctorsGet(hospitalId?: string, languageCode?: string, returnDefaultValue?: boolean, ids?: Array<string>, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorsModel>> {
14855
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctorsGet(hospitalId, languageCode, returnDefaultValue, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options);
14629
14856
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14630
14857
  },
14631
14858
  /**
@@ -14830,6 +15057,7 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
14830
15057
  * @param {string} [hospitalId]
14831
15058
  * @param {string} [languageCode]
14832
15059
  * @param {boolean} [returnDefaultValue]
15060
+ * @param {Array<string>} [ids]
14833
15061
  * @param {string} [id]
14834
15062
  * @param {string} [fullname]
14835
15063
  * @param {string} [email]
@@ -14843,8 +15071,8 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
14843
15071
  * @param {*} [options] Override http request option.
14844
15072
  * @throws {RequiredError}
14845
15073
  */
14846
- apiV2DoctorsGet(hospitalId?: string, languageCode?: string, returnDefaultValue?: boolean, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorsModel> {
14847
- return localVarFp.apiV2DoctorsGet(hospitalId, languageCode, returnDefaultValue, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
15074
+ apiV2DoctorsGet(hospitalId?: string, languageCode?: string, returnDefaultValue?: boolean, ids?: Array<string>, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorsModel> {
15075
+ return localVarFp.apiV2DoctorsGet(hospitalId, languageCode, returnDefaultValue, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
14848
15076
  },
14849
15077
  /**
14850
15078
  *
@@ -15073,6 +15301,7 @@ export class DoctorsApi extends BaseAPI {
15073
15301
  * @param {string} [hospitalId]
15074
15302
  * @param {string} [languageCode]
15075
15303
  * @param {boolean} [returnDefaultValue]
15304
+ * @param {Array<string>} [ids]
15076
15305
  * @param {string} [id]
15077
15306
  * @param {string} [fullname]
15078
15307
  * @param {string} [email]
@@ -15087,8 +15316,8 @@ export class DoctorsApi extends BaseAPI {
15087
15316
  * @throws {RequiredError}
15088
15317
  * @memberof DoctorsApi
15089
15318
  */
15090
- public apiV2DoctorsGet(hospitalId?: string, languageCode?: string, returnDefaultValue?: boolean, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
15091
- return DoctorsApiFp(this.configuration).apiV2DoctorsGet(hospitalId, languageCode, returnDefaultValue, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
15319
+ public apiV2DoctorsGet(hospitalId?: string, languageCode?: string, returnDefaultValue?: boolean, ids?: Array<string>, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
15320
+ return DoctorsApiFp(this.configuration).apiV2DoctorsGet(hospitalId, languageCode, returnDefaultValue, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
15092
15321
  }
15093
15322
 
15094
15323
  /**
@@ -20303,6 +20532,1020 @@ export class ProfilesApi extends BaseAPI {
20303
20532
  }
20304
20533
 
20305
20534
 
20535
+ /**
20536
+ * SearchApi - axios parameter creator
20537
+ * @export
20538
+ */
20539
+ export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
20540
+ return {
20541
+ /**
20542
+ *
20543
+ * @param {string} keyword
20544
+ * @param {AutocompleteMode} [mode]
20545
+ * @param {boolean} [fuzzy]
20546
+ * @param {boolean} [highlights]
20547
+ * @param {number} [size]
20548
+ * @param {number} [minimumCoverage]
20549
+ * @param {*} [options] Override http request option.
20550
+ * @throws {RequiredError}
20551
+ */
20552
+ apiV2SearchAutocompleteGet: async (keyword: string, mode?: AutocompleteMode, fuzzy?: boolean, highlights?: boolean, size?: number, minimumCoverage?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20553
+ // verify required parameter 'keyword' is not null or undefined
20554
+ assertParamExists('apiV2SearchAutocompleteGet', 'keyword', keyword)
20555
+ const localVarPath = `/api/v2/search/autocomplete`;
20556
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20557
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20558
+ let baseOptions;
20559
+ if (configuration) {
20560
+ baseOptions = configuration.baseOptions;
20561
+ }
20562
+
20563
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20564
+ const localVarHeaderParameter = {} as any;
20565
+ const localVarQueryParameter = {} as any;
20566
+
20567
+ if (mode !== undefined) {
20568
+ localVarQueryParameter['Mode'] = mode;
20569
+ }
20570
+
20571
+ if (keyword !== undefined) {
20572
+ localVarQueryParameter['Keyword'] = keyword;
20573
+ }
20574
+
20575
+ if (fuzzy !== undefined) {
20576
+ localVarQueryParameter['Fuzzy'] = fuzzy;
20577
+ }
20578
+
20579
+ if (highlights !== undefined) {
20580
+ localVarQueryParameter['Highlights'] = highlights;
20581
+ }
20582
+
20583
+ if (size !== undefined) {
20584
+ localVarQueryParameter['Size'] = size;
20585
+ }
20586
+
20587
+ if (minimumCoverage !== undefined) {
20588
+ localVarQueryParameter['MinimumCoverage'] = minimumCoverage;
20589
+ }
20590
+
20591
+
20592
+
20593
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20594
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20595
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20596
+
20597
+ return {
20598
+ url: toPathString(localVarUrlObj),
20599
+ options: localVarRequestOptions,
20600
+ };
20601
+ },
20602
+ /**
20603
+ *
20604
+ * @param {string} [searchTerm]
20605
+ * @param {boolean} [countOnly]
20606
+ * @param {string} [countryId]
20607
+ * @param {string} [hospitalId]
20608
+ * @param {MarketingType} [marketingType]
20609
+ * @param {string} [languageCode]
20610
+ * @param {number} [page]
20611
+ * @param {number} [limit]
20612
+ * @param {Date} [lastRetrieved]
20613
+ * @param {*} [options] Override http request option.
20614
+ * @throws {RequiredError}
20615
+ */
20616
+ apiV2SearchDealsGet: async (searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20617
+ const localVarPath = `/api/v2/search/deals`;
20618
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20619
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20620
+ let baseOptions;
20621
+ if (configuration) {
20622
+ baseOptions = configuration.baseOptions;
20623
+ }
20624
+
20625
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20626
+ const localVarHeaderParameter = {} as any;
20627
+ const localVarQueryParameter = {} as any;
20628
+
20629
+ if (searchTerm !== undefined) {
20630
+ localVarQueryParameter['SearchTerm'] = searchTerm;
20631
+ }
20632
+
20633
+ if (countOnly !== undefined) {
20634
+ localVarQueryParameter['CountOnly'] = countOnly;
20635
+ }
20636
+
20637
+ if (countryId !== undefined) {
20638
+ localVarQueryParameter['CountryId'] = countryId;
20639
+ }
20640
+
20641
+ if (hospitalId !== undefined) {
20642
+ localVarQueryParameter['HospitalId'] = hospitalId;
20643
+ }
20644
+
20645
+ if (marketingType !== undefined) {
20646
+ localVarQueryParameter['MarketingType'] = marketingType;
20647
+ }
20648
+
20649
+ if (languageCode !== undefined) {
20650
+ localVarQueryParameter['LanguageCode'] = languageCode;
20651
+ }
20652
+
20653
+ if (page !== undefined) {
20654
+ localVarQueryParameter['page'] = page;
20655
+ }
20656
+
20657
+ if (limit !== undefined) {
20658
+ localVarQueryParameter['limit'] = limit;
20659
+ }
20660
+
20661
+ if (lastRetrieved !== undefined) {
20662
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
20663
+ (lastRetrieved as any).toISOString() :
20664
+ lastRetrieved;
20665
+ }
20666
+
20667
+
20668
+
20669
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20670
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20671
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20672
+
20673
+ return {
20674
+ url: toPathString(localVarUrlObj),
20675
+ options: localVarRequestOptions,
20676
+ };
20677
+ },
20678
+ /**
20679
+ *
20680
+ * @param {string} [searchTerm]
20681
+ * @param {boolean} [countOnly]
20682
+ * @param {string} [countryId]
20683
+ * @param {string} [hospitalId]
20684
+ * @param {MarketingType} [marketingType]
20685
+ * @param {string} [languageCode]
20686
+ * @param {number} [page]
20687
+ * @param {number} [limit]
20688
+ * @param {Date} [lastRetrieved]
20689
+ * @param {*} [options] Override http request option.
20690
+ * @throws {RequiredError}
20691
+ */
20692
+ apiV2SearchDoctorsGet: async (searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20693
+ const localVarPath = `/api/v2/search/doctors`;
20694
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20695
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20696
+ let baseOptions;
20697
+ if (configuration) {
20698
+ baseOptions = configuration.baseOptions;
20699
+ }
20700
+
20701
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20702
+ const localVarHeaderParameter = {} as any;
20703
+ const localVarQueryParameter = {} as any;
20704
+
20705
+ if (searchTerm !== undefined) {
20706
+ localVarQueryParameter['SearchTerm'] = searchTerm;
20707
+ }
20708
+
20709
+ if (countOnly !== undefined) {
20710
+ localVarQueryParameter['CountOnly'] = countOnly;
20711
+ }
20712
+
20713
+ if (countryId !== undefined) {
20714
+ localVarQueryParameter['CountryId'] = countryId;
20715
+ }
20716
+
20717
+ if (hospitalId !== undefined) {
20718
+ localVarQueryParameter['HospitalId'] = hospitalId;
20719
+ }
20720
+
20721
+ if (marketingType !== undefined) {
20722
+ localVarQueryParameter['MarketingType'] = marketingType;
20723
+ }
20724
+
20725
+ if (languageCode !== undefined) {
20726
+ localVarQueryParameter['LanguageCode'] = languageCode;
20727
+ }
20728
+
20729
+ if (page !== undefined) {
20730
+ localVarQueryParameter['page'] = page;
20731
+ }
20732
+
20733
+ if (limit !== undefined) {
20734
+ localVarQueryParameter['limit'] = limit;
20735
+ }
20736
+
20737
+ if (lastRetrieved !== undefined) {
20738
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
20739
+ (lastRetrieved as any).toISOString() :
20740
+ lastRetrieved;
20741
+ }
20742
+
20743
+
20744
+
20745
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20746
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20747
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20748
+
20749
+ return {
20750
+ url: toPathString(localVarUrlObj),
20751
+ options: localVarRequestOptions,
20752
+ };
20753
+ },
20754
+ /**
20755
+ *
20756
+ * @param {string} [searchTerm]
20757
+ * @param {boolean} [countOnly]
20758
+ * @param {string} [countryId]
20759
+ * @param {string} [hospitalId]
20760
+ * @param {MarketingType} [marketingType]
20761
+ * @param {string} [languageCode]
20762
+ * @param {number} [page]
20763
+ * @param {number} [limit]
20764
+ * @param {Date} [lastRetrieved]
20765
+ * @param {*} [options] Override http request option.
20766
+ * @throws {RequiredError}
20767
+ */
20768
+ apiV2SearchGetcountGet: async (searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20769
+ const localVarPath = `/api/v2/search/getcount`;
20770
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20771
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20772
+ let baseOptions;
20773
+ if (configuration) {
20774
+ baseOptions = configuration.baseOptions;
20775
+ }
20776
+
20777
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20778
+ const localVarHeaderParameter = {} as any;
20779
+ const localVarQueryParameter = {} as any;
20780
+
20781
+ if (searchTerm !== undefined) {
20782
+ localVarQueryParameter['SearchTerm'] = searchTerm;
20783
+ }
20784
+
20785
+ if (countOnly !== undefined) {
20786
+ localVarQueryParameter['CountOnly'] = countOnly;
20787
+ }
20788
+
20789
+ if (countryId !== undefined) {
20790
+ localVarQueryParameter['CountryId'] = countryId;
20791
+ }
20792
+
20793
+ if (hospitalId !== undefined) {
20794
+ localVarQueryParameter['HospitalId'] = hospitalId;
20795
+ }
20796
+
20797
+ if (marketingType !== undefined) {
20798
+ localVarQueryParameter['MarketingType'] = marketingType;
20799
+ }
20800
+
20801
+ if (languageCode !== undefined) {
20802
+ localVarQueryParameter['LanguageCode'] = languageCode;
20803
+ }
20804
+
20805
+ if (page !== undefined) {
20806
+ localVarQueryParameter['page'] = page;
20807
+ }
20808
+
20809
+ if (limit !== undefined) {
20810
+ localVarQueryParameter['limit'] = limit;
20811
+ }
20812
+
20813
+ if (lastRetrieved !== undefined) {
20814
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
20815
+ (lastRetrieved as any).toISOString() :
20816
+ lastRetrieved;
20817
+ }
20818
+
20819
+
20820
+
20821
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20822
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20823
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20824
+
20825
+ return {
20826
+ url: toPathString(localVarUrlObj),
20827
+ options: localVarRequestOptions,
20828
+ };
20829
+ },
20830
+ /**
20831
+ *
20832
+ * @param {string} [searchTerm]
20833
+ * @param {boolean} [countOnly]
20834
+ * @param {string} [countryId]
20835
+ * @param {string} [hospitalId]
20836
+ * @param {MarketingType} [marketingType]
20837
+ * @param {string} [languageCode]
20838
+ * @param {number} [page]
20839
+ * @param {number} [limit]
20840
+ * @param {Date} [lastRetrieved]
20841
+ * @param {*} [options] Override http request option.
20842
+ * @throws {RequiredError}
20843
+ */
20844
+ apiV2SearchHospitalsGet: async (searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20845
+ const localVarPath = `/api/v2/search/hospitals`;
20846
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20847
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20848
+ let baseOptions;
20849
+ if (configuration) {
20850
+ baseOptions = configuration.baseOptions;
20851
+ }
20852
+
20853
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20854
+ const localVarHeaderParameter = {} as any;
20855
+ const localVarQueryParameter = {} as any;
20856
+
20857
+ if (searchTerm !== undefined) {
20858
+ localVarQueryParameter['SearchTerm'] = searchTerm;
20859
+ }
20860
+
20861
+ if (countOnly !== undefined) {
20862
+ localVarQueryParameter['CountOnly'] = countOnly;
20863
+ }
20864
+
20865
+ if (countryId !== undefined) {
20866
+ localVarQueryParameter['CountryId'] = countryId;
20867
+ }
20868
+
20869
+ if (hospitalId !== undefined) {
20870
+ localVarQueryParameter['HospitalId'] = hospitalId;
20871
+ }
20872
+
20873
+ if (marketingType !== undefined) {
20874
+ localVarQueryParameter['MarketingType'] = marketingType;
20875
+ }
20876
+
20877
+ if (languageCode !== undefined) {
20878
+ localVarQueryParameter['LanguageCode'] = languageCode;
20879
+ }
20880
+
20881
+ if (page !== undefined) {
20882
+ localVarQueryParameter['page'] = page;
20883
+ }
20884
+
20885
+ if (limit !== undefined) {
20886
+ localVarQueryParameter['limit'] = limit;
20887
+ }
20888
+
20889
+ if (lastRetrieved !== undefined) {
20890
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
20891
+ (lastRetrieved as any).toISOString() :
20892
+ lastRetrieved;
20893
+ }
20894
+
20895
+
20896
+
20897
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20898
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20899
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20900
+
20901
+ return {
20902
+ url: toPathString(localVarUrlObj),
20903
+ options: localVarRequestOptions,
20904
+ };
20905
+ },
20906
+ /**
20907
+ *
20908
+ * @param {string} [searchTerm]
20909
+ * @param {boolean} [countOnly]
20910
+ * @param {string} [countryId]
20911
+ * @param {string} [hospitalId]
20912
+ * @param {MarketingType} [marketingType]
20913
+ * @param {string} [languageCode]
20914
+ * @param {number} [page]
20915
+ * @param {number} [limit]
20916
+ * @param {Date} [lastRetrieved]
20917
+ * @param {*} [options] Override http request option.
20918
+ * @throws {RequiredError}
20919
+ */
20920
+ apiV2SearchSpecialtiesGet: async (searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20921
+ const localVarPath = `/api/v2/search/specialties`;
20922
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20923
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20924
+ let baseOptions;
20925
+ if (configuration) {
20926
+ baseOptions = configuration.baseOptions;
20927
+ }
20928
+
20929
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20930
+ const localVarHeaderParameter = {} as any;
20931
+ const localVarQueryParameter = {} as any;
20932
+
20933
+ if (searchTerm !== undefined) {
20934
+ localVarQueryParameter['SearchTerm'] = searchTerm;
20935
+ }
20936
+
20937
+ if (countOnly !== undefined) {
20938
+ localVarQueryParameter['CountOnly'] = countOnly;
20939
+ }
20940
+
20941
+ if (countryId !== undefined) {
20942
+ localVarQueryParameter['CountryId'] = countryId;
20943
+ }
20944
+
20945
+ if (hospitalId !== undefined) {
20946
+ localVarQueryParameter['HospitalId'] = hospitalId;
20947
+ }
20948
+
20949
+ if (marketingType !== undefined) {
20950
+ localVarQueryParameter['MarketingType'] = marketingType;
20951
+ }
20952
+
20953
+ if (languageCode !== undefined) {
20954
+ localVarQueryParameter['LanguageCode'] = languageCode;
20955
+ }
20956
+
20957
+ if (page !== undefined) {
20958
+ localVarQueryParameter['page'] = page;
20959
+ }
20960
+
20961
+ if (limit !== undefined) {
20962
+ localVarQueryParameter['limit'] = limit;
20963
+ }
20964
+
20965
+ if (lastRetrieved !== undefined) {
20966
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
20967
+ (lastRetrieved as any).toISOString() :
20968
+ lastRetrieved;
20969
+ }
20970
+
20971
+
20972
+
20973
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20974
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20975
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20976
+
20977
+ return {
20978
+ url: toPathString(localVarUrlObj),
20979
+ options: localVarRequestOptions,
20980
+ };
20981
+ },
20982
+ /**
20983
+ *
20984
+ * @param {string} [searchTerm]
20985
+ * @param {boolean} [countOnly]
20986
+ * @param {string} [countryId]
20987
+ * @param {string} [hospitalId]
20988
+ * @param {MarketingType} [marketingType]
20989
+ * @param {string} [languageCode]
20990
+ * @param {number} [page]
20991
+ * @param {number} [limit]
20992
+ * @param {Date} [lastRetrieved]
20993
+ * @param {*} [options] Override http request option.
20994
+ * @throws {RequiredError}
20995
+ */
20996
+ apiV2SearchSpecialtytypesGet: async (searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20997
+ const localVarPath = `/api/v2/search/specialtytypes`;
20998
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20999
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21000
+ let baseOptions;
21001
+ if (configuration) {
21002
+ baseOptions = configuration.baseOptions;
21003
+ }
21004
+
21005
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21006
+ const localVarHeaderParameter = {} as any;
21007
+ const localVarQueryParameter = {} as any;
21008
+
21009
+ if (searchTerm !== undefined) {
21010
+ localVarQueryParameter['SearchTerm'] = searchTerm;
21011
+ }
21012
+
21013
+ if (countOnly !== undefined) {
21014
+ localVarQueryParameter['CountOnly'] = countOnly;
21015
+ }
21016
+
21017
+ if (countryId !== undefined) {
21018
+ localVarQueryParameter['CountryId'] = countryId;
21019
+ }
21020
+
21021
+ if (hospitalId !== undefined) {
21022
+ localVarQueryParameter['HospitalId'] = hospitalId;
21023
+ }
21024
+
21025
+ if (marketingType !== undefined) {
21026
+ localVarQueryParameter['MarketingType'] = marketingType;
21027
+ }
21028
+
21029
+ if (languageCode !== undefined) {
21030
+ localVarQueryParameter['LanguageCode'] = languageCode;
21031
+ }
21032
+
21033
+ if (page !== undefined) {
21034
+ localVarQueryParameter['page'] = page;
21035
+ }
21036
+
21037
+ if (limit !== undefined) {
21038
+ localVarQueryParameter['limit'] = limit;
21039
+ }
21040
+
21041
+ if (lastRetrieved !== undefined) {
21042
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
21043
+ (lastRetrieved as any).toISOString() :
21044
+ lastRetrieved;
21045
+ }
21046
+
21047
+
21048
+
21049
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21050
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21051
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21052
+
21053
+ return {
21054
+ url: toPathString(localVarUrlObj),
21055
+ options: localVarRequestOptions,
21056
+ };
21057
+ },
21058
+ /**
21059
+ *
21060
+ * @param {string} keyword
21061
+ * @param {boolean} [fuzzy]
21062
+ * @param {boolean} [highlights]
21063
+ * @param {number} [size]
21064
+ * @param {*} [options] Override http request option.
21065
+ * @throws {RequiredError}
21066
+ */
21067
+ apiV2SearchSuggestGet: async (keyword: string, fuzzy?: boolean, highlights?: boolean, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
21068
+ // verify required parameter 'keyword' is not null or undefined
21069
+ assertParamExists('apiV2SearchSuggestGet', 'keyword', keyword)
21070
+ const localVarPath = `/api/v2/search/suggest`;
21071
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21072
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21073
+ let baseOptions;
21074
+ if (configuration) {
21075
+ baseOptions = configuration.baseOptions;
21076
+ }
21077
+
21078
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21079
+ const localVarHeaderParameter = {} as any;
21080
+ const localVarQueryParameter = {} as any;
21081
+
21082
+ if (keyword !== undefined) {
21083
+ localVarQueryParameter['Keyword'] = keyword;
21084
+ }
21085
+
21086
+ if (fuzzy !== undefined) {
21087
+ localVarQueryParameter['Fuzzy'] = fuzzy;
21088
+ }
21089
+
21090
+ if (highlights !== undefined) {
21091
+ localVarQueryParameter['Highlights'] = highlights;
21092
+ }
21093
+
21094
+ if (size !== undefined) {
21095
+ localVarQueryParameter['Size'] = size;
21096
+ }
21097
+
21098
+
21099
+
21100
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21101
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21102
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21103
+
21104
+ return {
21105
+ url: toPathString(localVarUrlObj),
21106
+ options: localVarRequestOptions,
21107
+ };
21108
+ },
21109
+ }
21110
+ };
21111
+
21112
+ /**
21113
+ * SearchApi - functional programming interface
21114
+ * @export
21115
+ */
21116
+ export const SearchApiFp = function(configuration?: Configuration) {
21117
+ const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
21118
+ return {
21119
+ /**
21120
+ *
21121
+ * @param {string} keyword
21122
+ * @param {AutocompleteMode} [mode]
21123
+ * @param {boolean} [fuzzy]
21124
+ * @param {boolean} [highlights]
21125
+ * @param {number} [size]
21126
+ * @param {number} [minimumCoverage]
21127
+ * @param {*} [options] Override http request option.
21128
+ * @throws {RequiredError}
21129
+ */
21130
+ async apiV2SearchAutocompleteGet(keyword: string, mode?: AutocompleteMode, fuzzy?: boolean, highlights?: boolean, size?: number, minimumCoverage?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AzureSearchServiceAutocompleteModel>> {
21131
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SearchAutocompleteGet(keyword, mode, fuzzy, highlights, size, minimumCoverage, options);
21132
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21133
+ },
21134
+ /**
21135
+ *
21136
+ * @param {string} [searchTerm]
21137
+ * @param {boolean} [countOnly]
21138
+ * @param {string} [countryId]
21139
+ * @param {string} [hospitalId]
21140
+ * @param {MarketingType} [marketingType]
21141
+ * @param {string} [languageCode]
21142
+ * @param {number} [page]
21143
+ * @param {number} [limit]
21144
+ * @param {Date} [lastRetrieved]
21145
+ * @param {*} [options] Override http request option.
21146
+ * @throws {RequiredError}
21147
+ */
21148
+ async apiV2SearchDealsGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealsModel>> {
21149
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SearchDealsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options);
21150
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21151
+ },
21152
+ /**
21153
+ *
21154
+ * @param {string} [searchTerm]
21155
+ * @param {boolean} [countOnly]
21156
+ * @param {string} [countryId]
21157
+ * @param {string} [hospitalId]
21158
+ * @param {MarketingType} [marketingType]
21159
+ * @param {string} [languageCode]
21160
+ * @param {number} [page]
21161
+ * @param {number} [limit]
21162
+ * @param {Date} [lastRetrieved]
21163
+ * @param {*} [options] Override http request option.
21164
+ * @throws {RequiredError}
21165
+ */
21166
+ async apiV2SearchDoctorsGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorsModel>> {
21167
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SearchDoctorsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options);
21168
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21169
+ },
21170
+ /**
21171
+ *
21172
+ * @param {string} [searchTerm]
21173
+ * @param {boolean} [countOnly]
21174
+ * @param {string} [countryId]
21175
+ * @param {string} [hospitalId]
21176
+ * @param {MarketingType} [marketingType]
21177
+ * @param {string} [languageCode]
21178
+ * @param {number} [page]
21179
+ * @param {number} [limit]
21180
+ * @param {Date} [lastRetrieved]
21181
+ * @param {*} [options] Override http request option.
21182
+ * @throws {RequiredError}
21183
+ */
21184
+ async apiV2SearchGetcountGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AzureSearchModel>> {
21185
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SearchGetcountGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options);
21186
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21187
+ },
21188
+ /**
21189
+ *
21190
+ * @param {string} [searchTerm]
21191
+ * @param {boolean} [countOnly]
21192
+ * @param {string} [countryId]
21193
+ * @param {string} [hospitalId]
21194
+ * @param {MarketingType} [marketingType]
21195
+ * @param {string} [languageCode]
21196
+ * @param {number} [page]
21197
+ * @param {number} [limit]
21198
+ * @param {Date} [lastRetrieved]
21199
+ * @param {*} [options] Override http request option.
21200
+ * @throws {RequiredError}
21201
+ */
21202
+ async apiV2SearchHospitalsGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalsModel>> {
21203
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SearchHospitalsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options);
21204
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21205
+ },
21206
+ /**
21207
+ *
21208
+ * @param {string} [searchTerm]
21209
+ * @param {boolean} [countOnly]
21210
+ * @param {string} [countryId]
21211
+ * @param {string} [hospitalId]
21212
+ * @param {MarketingType} [marketingType]
21213
+ * @param {string} [languageCode]
21214
+ * @param {number} [page]
21215
+ * @param {number} [limit]
21216
+ * @param {Date} [lastRetrieved]
21217
+ * @param {*} [options] Override http request option.
21218
+ * @throws {RequiredError}
21219
+ */
21220
+ async apiV2SearchSpecialtiesGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SpecialtiesModel>> {
21221
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SearchSpecialtiesGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options);
21222
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21223
+ },
21224
+ /**
21225
+ *
21226
+ * @param {string} [searchTerm]
21227
+ * @param {boolean} [countOnly]
21228
+ * @param {string} [countryId]
21229
+ * @param {string} [hospitalId]
21230
+ * @param {MarketingType} [marketingType]
21231
+ * @param {string} [languageCode]
21232
+ * @param {number} [page]
21233
+ * @param {number} [limit]
21234
+ * @param {Date} [lastRetrieved]
21235
+ * @param {*} [options] Override http request option.
21236
+ * @throws {RequiredError}
21237
+ */
21238
+ async apiV2SearchSpecialtytypesGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SpecialtyTypesModel>> {
21239
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SearchSpecialtytypesGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options);
21240
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21241
+ },
21242
+ /**
21243
+ *
21244
+ * @param {string} keyword
21245
+ * @param {boolean} [fuzzy]
21246
+ * @param {boolean} [highlights]
21247
+ * @param {number} [size]
21248
+ * @param {*} [options] Override http request option.
21249
+ * @throws {RequiredError}
21250
+ */
21251
+ async apiV2SearchSuggestGet(keyword: string, fuzzy?: boolean, highlights?: boolean, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AzureSearchServiceSuggestModel>> {
21252
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SearchSuggestGet(keyword, fuzzy, highlights, size, options);
21253
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21254
+ },
21255
+ }
21256
+ };
21257
+
21258
+ /**
21259
+ * SearchApi - factory interface
21260
+ * @export
21261
+ */
21262
+ export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
21263
+ const localVarFp = SearchApiFp(configuration)
21264
+ return {
21265
+ /**
21266
+ *
21267
+ * @param {string} keyword
21268
+ * @param {AutocompleteMode} [mode]
21269
+ * @param {boolean} [fuzzy]
21270
+ * @param {boolean} [highlights]
21271
+ * @param {number} [size]
21272
+ * @param {number} [minimumCoverage]
21273
+ * @param {*} [options] Override http request option.
21274
+ * @throws {RequiredError}
21275
+ */
21276
+ apiV2SearchAutocompleteGet(keyword: string, mode?: AutocompleteMode, fuzzy?: boolean, highlights?: boolean, size?: number, minimumCoverage?: number, options?: any): AxiosPromise<AzureSearchServiceAutocompleteModel> {
21277
+ return localVarFp.apiV2SearchAutocompleteGet(keyword, mode, fuzzy, highlights, size, minimumCoverage, options).then((request) => request(axios, basePath));
21278
+ },
21279
+ /**
21280
+ *
21281
+ * @param {string} [searchTerm]
21282
+ * @param {boolean} [countOnly]
21283
+ * @param {string} [countryId]
21284
+ * @param {string} [hospitalId]
21285
+ * @param {MarketingType} [marketingType]
21286
+ * @param {string} [languageCode]
21287
+ * @param {number} [page]
21288
+ * @param {number} [limit]
21289
+ * @param {Date} [lastRetrieved]
21290
+ * @param {*} [options] Override http request option.
21291
+ * @throws {RequiredError}
21292
+ */
21293
+ apiV2SearchDealsGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealsModel> {
21294
+ return localVarFp.apiV2SearchDealsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
21295
+ },
21296
+ /**
21297
+ *
21298
+ * @param {string} [searchTerm]
21299
+ * @param {boolean} [countOnly]
21300
+ * @param {string} [countryId]
21301
+ * @param {string} [hospitalId]
21302
+ * @param {MarketingType} [marketingType]
21303
+ * @param {string} [languageCode]
21304
+ * @param {number} [page]
21305
+ * @param {number} [limit]
21306
+ * @param {Date} [lastRetrieved]
21307
+ * @param {*} [options] Override http request option.
21308
+ * @throws {RequiredError}
21309
+ */
21310
+ apiV2SearchDoctorsGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorsModel> {
21311
+ return localVarFp.apiV2SearchDoctorsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
21312
+ },
21313
+ /**
21314
+ *
21315
+ * @param {string} [searchTerm]
21316
+ * @param {boolean} [countOnly]
21317
+ * @param {string} [countryId]
21318
+ * @param {string} [hospitalId]
21319
+ * @param {MarketingType} [marketingType]
21320
+ * @param {string} [languageCode]
21321
+ * @param {number} [page]
21322
+ * @param {number} [limit]
21323
+ * @param {Date} [lastRetrieved]
21324
+ * @param {*} [options] Override http request option.
21325
+ * @throws {RequiredError}
21326
+ */
21327
+ apiV2SearchGetcountGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AzureSearchModel> {
21328
+ return localVarFp.apiV2SearchGetcountGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
21329
+ },
21330
+ /**
21331
+ *
21332
+ * @param {string} [searchTerm]
21333
+ * @param {boolean} [countOnly]
21334
+ * @param {string} [countryId]
21335
+ * @param {string} [hospitalId]
21336
+ * @param {MarketingType} [marketingType]
21337
+ * @param {string} [languageCode]
21338
+ * @param {number} [page]
21339
+ * @param {number} [limit]
21340
+ * @param {Date} [lastRetrieved]
21341
+ * @param {*} [options] Override http request option.
21342
+ * @throws {RequiredError}
21343
+ */
21344
+ apiV2SearchHospitalsGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalsModel> {
21345
+ return localVarFp.apiV2SearchHospitalsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
21346
+ },
21347
+ /**
21348
+ *
21349
+ * @param {string} [searchTerm]
21350
+ * @param {boolean} [countOnly]
21351
+ * @param {string} [countryId]
21352
+ * @param {string} [hospitalId]
21353
+ * @param {MarketingType} [marketingType]
21354
+ * @param {string} [languageCode]
21355
+ * @param {number} [page]
21356
+ * @param {number} [limit]
21357
+ * @param {Date} [lastRetrieved]
21358
+ * @param {*} [options] Override http request option.
21359
+ * @throws {RequiredError}
21360
+ */
21361
+ apiV2SearchSpecialtiesGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<SpecialtiesModel> {
21362
+ return localVarFp.apiV2SearchSpecialtiesGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
21363
+ },
21364
+ /**
21365
+ *
21366
+ * @param {string} [searchTerm]
21367
+ * @param {boolean} [countOnly]
21368
+ * @param {string} [countryId]
21369
+ * @param {string} [hospitalId]
21370
+ * @param {MarketingType} [marketingType]
21371
+ * @param {string} [languageCode]
21372
+ * @param {number} [page]
21373
+ * @param {number} [limit]
21374
+ * @param {Date} [lastRetrieved]
21375
+ * @param {*} [options] Override http request option.
21376
+ * @throws {RequiredError}
21377
+ */
21378
+ apiV2SearchSpecialtytypesGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<SpecialtyTypesModel> {
21379
+ return localVarFp.apiV2SearchSpecialtytypesGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
21380
+ },
21381
+ /**
21382
+ *
21383
+ * @param {string} keyword
21384
+ * @param {boolean} [fuzzy]
21385
+ * @param {boolean} [highlights]
21386
+ * @param {number} [size]
21387
+ * @param {*} [options] Override http request option.
21388
+ * @throws {RequiredError}
21389
+ */
21390
+ apiV2SearchSuggestGet(keyword: string, fuzzy?: boolean, highlights?: boolean, size?: number, options?: any): AxiosPromise<AzureSearchServiceSuggestModel> {
21391
+ return localVarFp.apiV2SearchSuggestGet(keyword, fuzzy, highlights, size, options).then((request) => request(axios, basePath));
21392
+ },
21393
+ };
21394
+ };
21395
+
21396
+ /**
21397
+ * SearchApi - object-oriented interface
21398
+ * @export
21399
+ * @class SearchApi
21400
+ * @extends {BaseAPI}
21401
+ */
21402
+ export class SearchApi extends BaseAPI {
21403
+ /**
21404
+ *
21405
+ * @param {string} keyword
21406
+ * @param {AutocompleteMode} [mode]
21407
+ * @param {boolean} [fuzzy]
21408
+ * @param {boolean} [highlights]
21409
+ * @param {number} [size]
21410
+ * @param {number} [minimumCoverage]
21411
+ * @param {*} [options] Override http request option.
21412
+ * @throws {RequiredError}
21413
+ * @memberof SearchApi
21414
+ */
21415
+ public apiV2SearchAutocompleteGet(keyword: string, mode?: AutocompleteMode, fuzzy?: boolean, highlights?: boolean, size?: number, minimumCoverage?: number, options?: AxiosRequestConfig) {
21416
+ return SearchApiFp(this.configuration).apiV2SearchAutocompleteGet(keyword, mode, fuzzy, highlights, size, minimumCoverage, options).then((request) => request(this.axios, this.basePath));
21417
+ }
21418
+
21419
+ /**
21420
+ *
21421
+ * @param {string} [searchTerm]
21422
+ * @param {boolean} [countOnly]
21423
+ * @param {string} [countryId]
21424
+ * @param {string} [hospitalId]
21425
+ * @param {MarketingType} [marketingType]
21426
+ * @param {string} [languageCode]
21427
+ * @param {number} [page]
21428
+ * @param {number} [limit]
21429
+ * @param {Date} [lastRetrieved]
21430
+ * @param {*} [options] Override http request option.
21431
+ * @throws {RequiredError}
21432
+ * @memberof SearchApi
21433
+ */
21434
+ public apiV2SearchDealsGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
21435
+ return SearchApiFp(this.configuration).apiV2SearchDealsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
21436
+ }
21437
+
21438
+ /**
21439
+ *
21440
+ * @param {string} [searchTerm]
21441
+ * @param {boolean} [countOnly]
21442
+ * @param {string} [countryId]
21443
+ * @param {string} [hospitalId]
21444
+ * @param {MarketingType} [marketingType]
21445
+ * @param {string} [languageCode]
21446
+ * @param {number} [page]
21447
+ * @param {number} [limit]
21448
+ * @param {Date} [lastRetrieved]
21449
+ * @param {*} [options] Override http request option.
21450
+ * @throws {RequiredError}
21451
+ * @memberof SearchApi
21452
+ */
21453
+ public apiV2SearchDoctorsGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
21454
+ return SearchApiFp(this.configuration).apiV2SearchDoctorsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
21455
+ }
21456
+
21457
+ /**
21458
+ *
21459
+ * @param {string} [searchTerm]
21460
+ * @param {boolean} [countOnly]
21461
+ * @param {string} [countryId]
21462
+ * @param {string} [hospitalId]
21463
+ * @param {MarketingType} [marketingType]
21464
+ * @param {string} [languageCode]
21465
+ * @param {number} [page]
21466
+ * @param {number} [limit]
21467
+ * @param {Date} [lastRetrieved]
21468
+ * @param {*} [options] Override http request option.
21469
+ * @throws {RequiredError}
21470
+ * @memberof SearchApi
21471
+ */
21472
+ public apiV2SearchGetcountGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
21473
+ return SearchApiFp(this.configuration).apiV2SearchGetcountGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
21474
+ }
21475
+
21476
+ /**
21477
+ *
21478
+ * @param {string} [searchTerm]
21479
+ * @param {boolean} [countOnly]
21480
+ * @param {string} [countryId]
21481
+ * @param {string} [hospitalId]
21482
+ * @param {MarketingType} [marketingType]
21483
+ * @param {string} [languageCode]
21484
+ * @param {number} [page]
21485
+ * @param {number} [limit]
21486
+ * @param {Date} [lastRetrieved]
21487
+ * @param {*} [options] Override http request option.
21488
+ * @throws {RequiredError}
21489
+ * @memberof SearchApi
21490
+ */
21491
+ public apiV2SearchHospitalsGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
21492
+ return SearchApiFp(this.configuration).apiV2SearchHospitalsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
21493
+ }
21494
+
21495
+ /**
21496
+ *
21497
+ * @param {string} [searchTerm]
21498
+ * @param {boolean} [countOnly]
21499
+ * @param {string} [countryId]
21500
+ * @param {string} [hospitalId]
21501
+ * @param {MarketingType} [marketingType]
21502
+ * @param {string} [languageCode]
21503
+ * @param {number} [page]
21504
+ * @param {number} [limit]
21505
+ * @param {Date} [lastRetrieved]
21506
+ * @param {*} [options] Override http request option.
21507
+ * @throws {RequiredError}
21508
+ * @memberof SearchApi
21509
+ */
21510
+ public apiV2SearchSpecialtiesGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
21511
+ return SearchApiFp(this.configuration).apiV2SearchSpecialtiesGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
21512
+ }
21513
+
21514
+ /**
21515
+ *
21516
+ * @param {string} [searchTerm]
21517
+ * @param {boolean} [countOnly]
21518
+ * @param {string} [countryId]
21519
+ * @param {string} [hospitalId]
21520
+ * @param {MarketingType} [marketingType]
21521
+ * @param {string} [languageCode]
21522
+ * @param {number} [page]
21523
+ * @param {number} [limit]
21524
+ * @param {Date} [lastRetrieved]
21525
+ * @param {*} [options] Override http request option.
21526
+ * @throws {RequiredError}
21527
+ * @memberof SearchApi
21528
+ */
21529
+ public apiV2SearchSpecialtytypesGet(searchTerm?: string, countOnly?: boolean, countryId?: string, hospitalId?: string, marketingType?: MarketingType, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
21530
+ return SearchApiFp(this.configuration).apiV2SearchSpecialtytypesGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
21531
+ }
21532
+
21533
+ /**
21534
+ *
21535
+ * @param {string} keyword
21536
+ * @param {boolean} [fuzzy]
21537
+ * @param {boolean} [highlights]
21538
+ * @param {number} [size]
21539
+ * @param {*} [options] Override http request option.
21540
+ * @throws {RequiredError}
21541
+ * @memberof SearchApi
21542
+ */
21543
+ public apiV2SearchSuggestGet(keyword: string, fuzzy?: boolean, highlights?: boolean, size?: number, options?: AxiosRequestConfig) {
21544
+ return SearchApiFp(this.configuration).apiV2SearchSuggestGet(keyword, fuzzy, highlights, size, options).then((request) => request(this.axios, this.basePath));
21545
+ }
21546
+ }
21547
+
21548
+
20306
21549
  /**
20307
21550
  * ServicesApi - axios parameter creator
20308
21551
  * @export