ch-admin-api-client-typescript 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/api.ts CHANGED
@@ -10159,6 +10159,27 @@ export enum ReviewType {
10159
10159
  RealStory = 'RealStory'
10160
10160
  }
10161
10161
 
10162
+ /**
10163
+ *
10164
+ * @export
10165
+ * @enum {string}
10166
+ */
10167
+
10168
+ export enum SearchIndexType {
10169
+ Hospitals = 'hospitals',
10170
+ Specialtytypes = 'specialtytypes',
10171
+ Specialties = 'specialties',
10172
+ Hospitalspecialies = 'hospitalspecialies',
10173
+ Doctors = 'doctors',
10174
+ Deals = 'deals',
10175
+ Articles = 'articles',
10176
+ Contributors = 'contributors',
10177
+ Countries = 'countries',
10178
+ Faqcategories = 'faqcategories',
10179
+ Faqs = 'faqs',
10180
+ Services = 'services'
10181
+ }
10182
+
10162
10183
  /**
10163
10184
  *
10164
10185
  * @export
@@ -11991,19 +12012,6 @@ export interface UpdateDealServiceCommand {
11991
12012
  */
11992
12013
  'order'?: number;
11993
12014
  }
11994
- /**
11995
- *
11996
- * @export
11997
- * @interface UpdateDealsSearchIndexCommand
11998
- */
11999
- export interface UpdateDealsSearchIndexCommand {
12000
- /**
12001
- *
12002
- * @type {boolean}
12003
- * @memberof UpdateDealsSearchIndexCommand
12004
- */
12005
- 'reCreate'?: boolean | null;
12006
- }
12007
12015
  /**
12008
12016
  *
12009
12017
  * @export
@@ -12293,19 +12301,6 @@ export interface UpdateDoctorSpecialtyCommand {
12293
12301
  */
12294
12302
  'order'?: number;
12295
12303
  }
12296
- /**
12297
- *
12298
- * @export
12299
- * @interface UpdateDoctorsSearchIndexCommand
12300
- */
12301
- export interface UpdateDoctorsSearchIndexCommand {
12302
- /**
12303
- *
12304
- * @type {boolean}
12305
- * @memberof UpdateDoctorsSearchIndexCommand
12306
- */
12307
- 'reCreate'?: boolean | null;
12308
- }
12309
12304
  /**
12310
12305
  *
12311
12306
  * @export
@@ -12726,19 +12721,6 @@ export interface UpdateHospitalSnsHandleCommand {
12726
12721
  */
12727
12722
  'handle'?: string | null;
12728
12723
  }
12729
- /**
12730
- *
12731
- * @export
12732
- * @interface UpdateHospitalSpecialtiesSearchIndexCommand
12733
- */
12734
- export interface UpdateHospitalSpecialtiesSearchIndexCommand {
12735
- /**
12736
- *
12737
- * @type {boolean}
12738
- * @memberof UpdateHospitalSpecialtiesSearchIndexCommand
12739
- */
12740
- 'reCreate'?: boolean | null;
12741
- }
12742
12724
  /**
12743
12725
  *
12744
12726
  * @export
@@ -12855,19 +12837,6 @@ export interface UpdateHospitalWorkingDayCommand {
12855
12837
  */
12856
12838
  'checkHoliday'?: boolean;
12857
12839
  }
12858
- /**
12859
- *
12860
- * @export
12861
- * @interface UpdateHospitalsSearchIndexCommand
12862
- */
12863
- export interface UpdateHospitalsSearchIndexCommand {
12864
- /**
12865
- *
12866
- * @type {boolean}
12867
- * @memberof UpdateHospitalsSearchIndexCommand
12868
- */
12869
- 'reCreate'?: boolean | null;
12870
- }
12871
12840
  /**
12872
12841
  *
12873
12842
  * @export
@@ -13199,6 +13168,19 @@ export interface UpdateProfileCommand {
13199
13168
  */
13200
13169
  'locations'?: Array<UserLocationModel> | null;
13201
13170
  }
13171
+ /**
13172
+ *
13173
+ * @export
13174
+ * @interface UpdateSearchIndexCommand
13175
+ */
13176
+ export interface UpdateSearchIndexCommand {
13177
+ /**
13178
+ *
13179
+ * @type {boolean}
13180
+ * @memberof UpdateSearchIndexCommand
13181
+ */
13182
+ 'reCreate'?: boolean | null;
13183
+ }
13202
13184
  /**
13203
13185
  *
13204
13186
  * @export
@@ -13279,19 +13261,6 @@ export interface UpdateServiceReviewCommand {
13279
13261
  */
13280
13262
  'confirmed'?: boolean;
13281
13263
  }
13282
- /**
13283
- *
13284
- * @export
13285
- * @interface UpdateSpecialtiesSearchIndexCommand
13286
- */
13287
- export interface UpdateSpecialtiesSearchIndexCommand {
13288
- /**
13289
- *
13290
- * @type {boolean}
13291
- * @memberof UpdateSpecialtiesSearchIndexCommand
13292
- */
13293
- 'reCreate'?: boolean | null;
13294
- }
13295
13264
  /**
13296
13265
  *
13297
13266
  * @export
@@ -13420,19 +13389,6 @@ export interface UpdateSpecialtyTypeCommand {
13420
13389
  */
13421
13390
  'content'?: string | null;
13422
13391
  }
13423
- /**
13424
- *
13425
- * @export
13426
- * @interface UpdateSpecialtyTypesSearchIndexCommand
13427
- */
13428
- export interface UpdateSpecialtyTypesSearchIndexCommand {
13429
- /**
13430
- *
13431
- * @type {boolean}
13432
- * @memberof UpdateSpecialtyTypesSearchIndexCommand
13433
- */
13434
- 'reCreate'?: boolean | null;
13435
- }
13436
13392
  /**
13437
13393
  *
13438
13394
  * @export
@@ -32508,6 +32464,95 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
32508
32464
 
32509
32465
 
32510
32466
 
32467
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32468
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32469
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32470
+
32471
+ return {
32472
+ url: toPathString(localVarUrlObj),
32473
+ options: localVarRequestOptions,
32474
+ };
32475
+ },
32476
+ /**
32477
+ *
32478
+ * @summary Delete HospitalSpecialty.
32479
+ * @param {string} hospitalId
32480
+ * @param {string} hospitalSpecialtyId
32481
+ * @param {*} [options] Override http request option.
32482
+ * @throws {RequiredError}
32483
+ */
32484
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete: async (hospitalId: string, hospitalSpecialtyId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32485
+ // verify required parameter 'hospitalId' is not null or undefined
32486
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete', 'hospitalId', hospitalId)
32487
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32488
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete', 'hospitalSpecialtyId', hospitalSpecialtyId)
32489
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}`
32490
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32491
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)));
32492
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32493
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32494
+ let baseOptions;
32495
+ if (configuration) {
32496
+ baseOptions = configuration.baseOptions;
32497
+ }
32498
+
32499
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
32500
+ const localVarHeaderParameter = {} as any;
32501
+ const localVarQueryParameter = {} as any;
32502
+
32503
+ // authentication oauth2 required
32504
+ // oauth required
32505
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32506
+
32507
+
32508
+
32509
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32510
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32511
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32512
+
32513
+ return {
32514
+ url: toPathString(localVarUrlObj),
32515
+ options: localVarRequestOptions,
32516
+ };
32517
+ },
32518
+ /**
32519
+ *
32520
+ * @summary Get HospitalSpecialty.
32521
+ * @param {string} hospitalId
32522
+ * @param {string} hospitalSpecialtyId
32523
+ * @param {string} [languageCode]
32524
+ * @param {*} [options] Override http request option.
32525
+ * @throws {RequiredError}
32526
+ */
32527
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet: async (hospitalId: string, hospitalSpecialtyId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32528
+ // verify required parameter 'hospitalId' is not null or undefined
32529
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet', 'hospitalId', hospitalId)
32530
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32531
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId)
32532
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}`
32533
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32534
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)));
32535
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32536
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32537
+ let baseOptions;
32538
+ if (configuration) {
32539
+ baseOptions = configuration.baseOptions;
32540
+ }
32541
+
32542
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32543
+ const localVarHeaderParameter = {} as any;
32544
+ const localVarQueryParameter = {} as any;
32545
+
32546
+ // authentication oauth2 required
32547
+ // oauth required
32548
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32549
+
32550
+ if (languageCode !== undefined) {
32551
+ localVarQueryParameter['languageCode'] = languageCode;
32552
+ }
32553
+
32554
+
32555
+
32511
32556
  setSearchParams(localVarUrlObj, localVarQueryParameter);
32512
32557
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32513
32558
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -32774,6 +32819,52 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
32774
32819
  options: localVarRequestOptions,
32775
32820
  };
32776
32821
  },
32822
+ /**
32823
+ *
32824
+ * @summary Update HospitalSpecialty.
32825
+ * @param {string} hospitalId
32826
+ * @param {string} hospitalSpecialtyId
32827
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
32828
+ * @param {*} [options] Override http request option.
32829
+ * @throws {RequiredError}
32830
+ */
32831
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut: async (hospitalId: string, hospitalSpecialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32832
+ // verify required parameter 'hospitalId' is not null or undefined
32833
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut', 'hospitalId', hospitalId)
32834
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32835
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut', 'hospitalSpecialtyId', hospitalSpecialtyId)
32836
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}`
32837
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32838
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)));
32839
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32840
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32841
+ let baseOptions;
32842
+ if (configuration) {
32843
+ baseOptions = configuration.baseOptions;
32844
+ }
32845
+
32846
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
32847
+ const localVarHeaderParameter = {} as any;
32848
+ const localVarQueryParameter = {} as any;
32849
+
32850
+ // authentication oauth2 required
32851
+ // oauth required
32852
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32853
+
32854
+
32855
+
32856
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32857
+
32858
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32859
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32860
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32861
+ localVarRequestOptions.data = serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration)
32862
+
32863
+ return {
32864
+ url: toPathString(localVarUrlObj),
32865
+ options: localVarRequestOptions,
32866
+ };
32867
+ },
32777
32868
  /**
32778
32869
  *
32779
32870
  * @summary Create HospitalSpecialty.
@@ -32980,18 +33071,30 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
32980
33071
  },
32981
33072
  /**
32982
33073
  *
32983
- * @summary Delete HospitalSpecialty.
33074
+ * @summary Get all HospitalServices.
32984
33075
  * @param {string} hospitalId
32985
33076
  * @param {string} specialtyId
33077
+ * @param {string} [id]
33078
+ * @param {string} [name]
33079
+ * @param {string} [slug]
33080
+ * @param {string} [serviceCategoryId]
33081
+ * @param {MarketingType} [marketingType]
33082
+ * @param {Procedure} [procedure]
33083
+ * @param {Date} [created]
33084
+ * @param {boolean} [showHidden]
33085
+ * @param {string} [languageCode]
33086
+ * @param {number} [page]
33087
+ * @param {number} [limit]
33088
+ * @param {Date} [lastRetrieved]
32986
33089
  * @param {*} [options] Override http request option.
32987
33090
  * @throws {RequiredError}
32988
33091
  */
32989
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: async (hospitalId: string, specialtyId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33092
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: async (hospitalId: string, specialtyId: string, id?: string, name?: string, slug?: string, serviceCategoryId?: string, marketingType?: MarketingType, procedure?: Procedure, created?: Date, showHidden?: boolean, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32990
33093
  // verify required parameter 'hospitalId' is not null or undefined
32991
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'hospitalId', hospitalId)
33094
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'hospitalId', hospitalId)
32992
33095
  // verify required parameter 'specialtyId' is not null or undefined
32993
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId)
32994
- const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
33096
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'specialtyId', specialtyId)
33097
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services`
32995
33098
  .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32996
33099
  .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
32997
33100
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -33001,7 +33104,7 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
33001
33104
  baseOptions = configuration.baseOptions;
33002
33105
  }
33003
33106
 
33004
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
33107
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33005
33108
  const localVarHeaderParameter = {} as any;
33006
33109
  const localVarQueryParameter = {} as any;
33007
33110
 
@@ -33009,163 +33112,16 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
33009
33112
  // oauth required
33010
33113
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
33011
33114
 
33115
+ if (id !== undefined) {
33116
+ localVarQueryParameter['Id'] = id;
33117
+ }
33012
33118
 
33013
-
33014
- setSearchParams(localVarUrlObj, localVarQueryParameter);
33015
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33016
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33119
+ if (name !== undefined) {
33120
+ localVarQueryParameter['Name'] = name;
33121
+ }
33017
33122
 
33018
- return {
33019
- url: toPathString(localVarUrlObj),
33020
- options: localVarRequestOptions,
33021
- };
33022
- },
33023
- /**
33024
- *
33025
- * @summary Get HospitalSpecialty.
33026
- * @param {string} hospitalId
33027
- * @param {string} specialtyId
33028
- * @param {string} [languageCode]
33029
- * @param {*} [options] Override http request option.
33030
- * @throws {RequiredError}
33031
- */
33032
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: async (hospitalId: string, specialtyId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33033
- // verify required parameter 'hospitalId' is not null or undefined
33034
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'hospitalId', hospitalId)
33035
- // verify required parameter 'specialtyId' is not null or undefined
33036
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId)
33037
- const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
33038
- .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
33039
- .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
33040
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
33041
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33042
- let baseOptions;
33043
- if (configuration) {
33044
- baseOptions = configuration.baseOptions;
33045
- }
33046
-
33047
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33048
- const localVarHeaderParameter = {} as any;
33049
- const localVarQueryParameter = {} as any;
33050
-
33051
- // authentication oauth2 required
33052
- // oauth required
33053
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
33054
-
33055
- if (languageCode !== undefined) {
33056
- localVarQueryParameter['languageCode'] = languageCode;
33057
- }
33058
-
33059
-
33060
-
33061
- setSearchParams(localVarUrlObj, localVarQueryParameter);
33062
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33063
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33064
-
33065
- return {
33066
- url: toPathString(localVarUrlObj),
33067
- options: localVarRequestOptions,
33068
- };
33069
- },
33070
- /**
33071
- *
33072
- * @summary Update HospitalSpecialty.
33073
- * @param {string} hospitalId
33074
- * @param {string} specialtyId
33075
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
33076
- * @param {*} [options] Override http request option.
33077
- * @throws {RequiredError}
33078
- */
33079
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: async (hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33080
- // verify required parameter 'hospitalId' is not null or undefined
33081
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'hospitalId', hospitalId)
33082
- // verify required parameter 'specialtyId' is not null or undefined
33083
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId)
33084
- const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
33085
- .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
33086
- .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
33087
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
33088
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33089
- let baseOptions;
33090
- if (configuration) {
33091
- baseOptions = configuration.baseOptions;
33092
- }
33093
-
33094
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
33095
- const localVarHeaderParameter = {} as any;
33096
- const localVarQueryParameter = {} as any;
33097
-
33098
- // authentication oauth2 required
33099
- // oauth required
33100
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
33101
-
33102
-
33103
-
33104
- localVarHeaderParameter['Content-Type'] = 'application/json';
33105
-
33106
- setSearchParams(localVarUrlObj, localVarQueryParameter);
33107
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33108
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33109
- localVarRequestOptions.data = serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration)
33110
-
33111
- return {
33112
- url: toPathString(localVarUrlObj),
33113
- options: localVarRequestOptions,
33114
- };
33115
- },
33116
- /**
33117
- *
33118
- * @summary Get all HospitalServices.
33119
- * @param {string} hospitalId
33120
- * @param {string} specialtyId
33121
- * @param {string} [id]
33122
- * @param {string} [name]
33123
- * @param {string} [slug]
33124
- * @param {string} [serviceCategoryId]
33125
- * @param {MarketingType} [marketingType]
33126
- * @param {Procedure} [procedure]
33127
- * @param {Date} [created]
33128
- * @param {boolean} [showHidden]
33129
- * @param {string} [languageCode]
33130
- * @param {number} [page]
33131
- * @param {number} [limit]
33132
- * @param {Date} [lastRetrieved]
33133
- * @param {*} [options] Override http request option.
33134
- * @throws {RequiredError}
33135
- */
33136
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: async (hospitalId: string, specialtyId: string, id?: string, name?: string, slug?: string, serviceCategoryId?: string, marketingType?: MarketingType, procedure?: Procedure, created?: Date, showHidden?: boolean, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33137
- // verify required parameter 'hospitalId' is not null or undefined
33138
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'hospitalId', hospitalId)
33139
- // verify required parameter 'specialtyId' is not null or undefined
33140
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'specialtyId', specialtyId)
33141
- const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services`
33142
- .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
33143
- .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
33144
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
33145
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33146
- let baseOptions;
33147
- if (configuration) {
33148
- baseOptions = configuration.baseOptions;
33149
- }
33150
-
33151
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33152
- const localVarHeaderParameter = {} as any;
33153
- const localVarQueryParameter = {} as any;
33154
-
33155
- // authentication oauth2 required
33156
- // oauth required
33157
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
33158
-
33159
- if (id !== undefined) {
33160
- localVarQueryParameter['Id'] = id;
33161
- }
33162
-
33163
- if (name !== undefined) {
33164
- localVarQueryParameter['Name'] = name;
33165
- }
33166
-
33167
- if (slug !== undefined) {
33168
- localVarQueryParameter['Slug'] = slug;
33123
+ if (slug !== undefined) {
33124
+ localVarQueryParameter['Slug'] = slug;
33169
33125
  }
33170
33126
 
33171
33127
  if (serviceCategoryId !== undefined) {
@@ -34718,6 +34674,31 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
34718
34674
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, languageCode, showHidden, page, limit, lastRetrieved, options);
34719
34675
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34720
34676
  },
34677
+ /**
34678
+ *
34679
+ * @summary Delete HospitalSpecialty.
34680
+ * @param {string} hospitalId
34681
+ * @param {string} hospitalSpecialtyId
34682
+ * @param {*} [options] Override http request option.
34683
+ * @throws {RequiredError}
34684
+ */
34685
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId: string, hospitalSpecialtyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
34686
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId, hospitalSpecialtyId, options);
34687
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34688
+ },
34689
+ /**
34690
+ *
34691
+ * @summary Get HospitalSpecialty.
34692
+ * @param {string} hospitalId
34693
+ * @param {string} hospitalSpecialtyId
34694
+ * @param {string} [languageCode]
34695
+ * @param {*} [options] Override http request option.
34696
+ * @throws {RequiredError}
34697
+ */
34698
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId: string, hospitalSpecialtyId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalSpecialtyModel>> {
34699
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId, hospitalSpecialtyId, languageCode, options);
34700
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34701
+ },
34721
34702
  /**
34722
34703
  *
34723
34704
  * @summary Get all HospitalServiceMedias.
@@ -34788,6 +34769,19 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
34788
34769
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options);
34789
34770
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34790
34771
  },
34772
+ /**
34773
+ *
34774
+ * @summary Update HospitalSpecialty.
34775
+ * @param {string} hospitalId
34776
+ * @param {string} hospitalSpecialtyId
34777
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
34778
+ * @param {*} [options] Override http request option.
34779
+ * @throws {RequiredError}
34780
+ */
34781
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId: string, hospitalSpecialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalSpecialtyModel>> {
34782
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options);
34783
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34784
+ },
34791
34785
  /**
34792
34786
  *
34793
34787
  * @summary Create HospitalSpecialty.
@@ -34839,44 +34833,6 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
34839
34833
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, includeServices, options);
34840
34834
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34841
34835
  },
34842
- /**
34843
- *
34844
- * @summary Delete HospitalSpecialty.
34845
- * @param {string} hospitalId
34846
- * @param {string} specialtyId
34847
- * @param {*} [options] Override http request option.
34848
- * @throws {RequiredError}
34849
- */
34850
- async apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId: string, specialtyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
34851
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options);
34852
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34853
- },
34854
- /**
34855
- *
34856
- * @summary Get HospitalSpecialty.
34857
- * @param {string} hospitalId
34858
- * @param {string} specialtyId
34859
- * @param {string} [languageCode]
34860
- * @param {*} [options] Override http request option.
34861
- * @throws {RequiredError}
34862
- */
34863
- async apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId: string, specialtyId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalSpecialtyModel>> {
34864
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, options);
34865
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34866
- },
34867
- /**
34868
- *
34869
- * @summary Update HospitalSpecialty.
34870
- * @param {string} hospitalId
34871
- * @param {string} specialtyId
34872
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
34873
- * @param {*} [options] Override http request option.
34874
- * @throws {RequiredError}
34875
- */
34876
- async apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalSpecialtyModel>> {
34877
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options);
34878
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34879
- },
34880
34836
  /**
34881
34837
  *
34882
34838
  * @summary Get all HospitalServices.
@@ -35652,6 +35608,29 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
35652
35608
  apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalSpecialtiesModel> {
35653
35609
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
35654
35610
  },
35611
+ /**
35612
+ *
35613
+ * @summary Delete HospitalSpecialty.
35614
+ * @param {string} hospitalId
35615
+ * @param {string} hospitalSpecialtyId
35616
+ * @param {*} [options] Override http request option.
35617
+ * @throws {RequiredError}
35618
+ */
35619
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId: string, hospitalSpecialtyId: string, options?: any): AxiosPromise<boolean> {
35620
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId, hospitalSpecialtyId, options).then((request) => request(axios, basePath));
35621
+ },
35622
+ /**
35623
+ *
35624
+ * @summary Get HospitalSpecialty.
35625
+ * @param {string} hospitalId
35626
+ * @param {string} hospitalSpecialtyId
35627
+ * @param {string} [languageCode]
35628
+ * @param {*} [options] Override http request option.
35629
+ * @throws {RequiredError}
35630
+ */
35631
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId: string, hospitalSpecialtyId: string, languageCode?: string, options?: any): AxiosPromise<HospitalSpecialtyModel> {
35632
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId, hospitalSpecialtyId, languageCode, options).then((request) => request(axios, basePath));
35633
+ },
35655
35634
  /**
35656
35635
  *
35657
35636
  * @summary Get all HospitalServiceMedias.
@@ -35717,6 +35696,18 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
35717
35696
  apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel> {
35718
35697
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then((request) => request(axios, basePath));
35719
35698
  },
35699
+ /**
35700
+ *
35701
+ * @summary Update HospitalSpecialty.
35702
+ * @param {string} hospitalId
35703
+ * @param {string} hospitalSpecialtyId
35704
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
35705
+ * @param {*} [options] Override http request option.
35706
+ * @throws {RequiredError}
35707
+ */
35708
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId: string, hospitalSpecialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options?: any): AxiosPromise<HospitalSpecialtyModel> {
35709
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options).then((request) => request(axios, basePath));
35710
+ },
35720
35711
  /**
35721
35712
  *
35722
35713
  * @summary Create HospitalSpecialty.
@@ -35765,41 +35756,6 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
35765
35756
  apiV1HospitalsHospitalIdSpecialtiesSlugGet(hospitalId: string, slug: string, languageCode?: string, returnDefaultValue?: boolean, includeServices?: boolean, options?: any): AxiosPromise<HospitalSpecialtyModel> {
35766
35757
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, includeServices, options).then((request) => request(axios, basePath));
35767
35758
  },
35768
- /**
35769
- *
35770
- * @summary Delete HospitalSpecialty.
35771
- * @param {string} hospitalId
35772
- * @param {string} specialtyId
35773
- * @param {*} [options] Override http request option.
35774
- * @throws {RequiredError}
35775
- */
35776
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId: string, specialtyId: string, options?: any): AxiosPromise<boolean> {
35777
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then((request) => request(axios, basePath));
35778
- },
35779
- /**
35780
- *
35781
- * @summary Get HospitalSpecialty.
35782
- * @param {string} hospitalId
35783
- * @param {string} specialtyId
35784
- * @param {string} [languageCode]
35785
- * @param {*} [options] Override http request option.
35786
- * @throws {RequiredError}
35787
- */
35788
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId: string, specialtyId: string, languageCode?: string, options?: any): AxiosPromise<HospitalSpecialtyModel> {
35789
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, options).then((request) => request(axios, basePath));
35790
- },
35791
- /**
35792
- *
35793
- * @summary Update HospitalSpecialty.
35794
- * @param {string} hospitalId
35795
- * @param {string} specialtyId
35796
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
35797
- * @param {*} [options] Override http request option.
35798
- * @throws {RequiredError}
35799
- */
35800
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options?: any): AxiosPromise<HospitalSpecialtyModel> {
35801
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then((request) => request(axios, basePath));
35802
- },
35803
35759
  /**
35804
35760
  *
35805
35761
  * @summary Get all HospitalServices.
@@ -36634,33 +36590,60 @@ export class HospitalsApi extends BaseAPI {
36634
36590
 
36635
36591
  /**
36636
36592
  *
36637
- * @summary Get all HospitalServiceMedias.
36593
+ * @summary Delete HospitalSpecialty.
36638
36594
  * @param {string} hospitalId
36639
36595
  * @param {string} hospitalSpecialtyId
36640
- * @param {string} [id]
36641
- * @param {MediaType} [mediaType]
36642
- * @param {number} [page]
36643
- * @param {number} [limit]
36644
- * @param {Date} [lastRetrieved]
36645
36596
  * @param {*} [options] Override http request option.
36646
36597
  * @throws {RequiredError}
36647
36598
  * @memberof HospitalsApi
36648
36599
  */
36649
- public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
36650
- return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
36600
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId: string, hospitalSpecialtyId: string, options?: AxiosRequestConfig) {
36601
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId, hospitalSpecialtyId, options).then((request) => request(this.axios, this.basePath));
36651
36602
  }
36652
36603
 
36653
36604
  /**
36654
36605
  *
36655
- * @summary Delete HospitalServiceMedia
36606
+ * @summary Get HospitalSpecialty.
36656
36607
  * @param {string} hospitalId
36657
36608
  * @param {string} hospitalSpecialtyId
36658
- * @param {string} mediaId
36609
+ * @param {string} [languageCode]
36659
36610
  * @param {*} [options] Override http request option.
36660
36611
  * @throws {RequiredError}
36661
36612
  * @memberof HospitalsApi
36662
36613
  */
36663
- public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig) {
36614
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId: string, hospitalSpecialtyId: string, languageCode?: string, options?: AxiosRequestConfig) {
36615
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId, hospitalSpecialtyId, languageCode, options).then((request) => request(this.axios, this.basePath));
36616
+ }
36617
+
36618
+ /**
36619
+ *
36620
+ * @summary Get all HospitalServiceMedias.
36621
+ * @param {string} hospitalId
36622
+ * @param {string} hospitalSpecialtyId
36623
+ * @param {string} [id]
36624
+ * @param {MediaType} [mediaType]
36625
+ * @param {number} [page]
36626
+ * @param {number} [limit]
36627
+ * @param {Date} [lastRetrieved]
36628
+ * @param {*} [options] Override http request option.
36629
+ * @throws {RequiredError}
36630
+ * @memberof HospitalsApi
36631
+ */
36632
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
36633
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
36634
+ }
36635
+
36636
+ /**
36637
+ *
36638
+ * @summary Delete HospitalServiceMedia
36639
+ * @param {string} hospitalId
36640
+ * @param {string} hospitalSpecialtyId
36641
+ * @param {string} mediaId
36642
+ * @param {*} [options] Override http request option.
36643
+ * @throws {RequiredError}
36644
+ * @memberof HospitalsApi
36645
+ */
36646
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig) {
36664
36647
  return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(this.axios, this.basePath));
36665
36648
  }
36666
36649
 
@@ -36707,6 +36690,20 @@ export class HospitalsApi extends BaseAPI {
36707
36690
  return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then((request) => request(this.axios, this.basePath));
36708
36691
  }
36709
36692
 
36693
+ /**
36694
+ *
36695
+ * @summary Update HospitalSpecialty.
36696
+ * @param {string} hospitalId
36697
+ * @param {string} hospitalSpecialtyId
36698
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
36699
+ * @param {*} [options] Override http request option.
36700
+ * @throws {RequiredError}
36701
+ * @memberof HospitalsApi
36702
+ */
36703
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId: string, hospitalSpecialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options?: AxiosRequestConfig) {
36704
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
36705
+ }
36706
+
36710
36707
  /**
36711
36708
  *
36712
36709
  * @summary Create HospitalSpecialty.
@@ -36761,47 +36758,6 @@ export class HospitalsApi extends BaseAPI {
36761
36758
  return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, includeServices, options).then((request) => request(this.axios, this.basePath));
36762
36759
  }
36763
36760
 
36764
- /**
36765
- *
36766
- * @summary Delete HospitalSpecialty.
36767
- * @param {string} hospitalId
36768
- * @param {string} specialtyId
36769
- * @param {*} [options] Override http request option.
36770
- * @throws {RequiredError}
36771
- * @memberof HospitalsApi
36772
- */
36773
- public apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId: string, specialtyId: string, options?: AxiosRequestConfig) {
36774
- return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then((request) => request(this.axios, this.basePath));
36775
- }
36776
-
36777
- /**
36778
- *
36779
- * @summary Get HospitalSpecialty.
36780
- * @param {string} hospitalId
36781
- * @param {string} specialtyId
36782
- * @param {string} [languageCode]
36783
- * @param {*} [options] Override http request option.
36784
- * @throws {RequiredError}
36785
- * @memberof HospitalsApi
36786
- */
36787
- public apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId: string, specialtyId: string, languageCode?: string, options?: AxiosRequestConfig) {
36788
- return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, options).then((request) => request(this.axios, this.basePath));
36789
- }
36790
-
36791
- /**
36792
- *
36793
- * @summary Update HospitalSpecialty.
36794
- * @param {string} hospitalId
36795
- * @param {string} specialtyId
36796
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
36797
- * @param {*} [options] Override http request option.
36798
- * @throws {RequiredError}
36799
- * @memberof HospitalsApi
36800
- */
36801
- public apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options?: AxiosRequestConfig) {
36802
- return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
36803
- }
36804
-
36805
36761
  /**
36806
36762
  *
36807
36763
  * @summary Get all HospitalServices.
@@ -40862,127 +40818,14 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
40862
40818
  return {
40863
40819
  /**
40864
40820
  *
40865
- * @summary Update or Re-create deals Azure Search Services Index
40866
- * @param {UpdateDealsSearchIndexCommand} [updateDealsSearchIndexCommand]
40867
- * @param {*} [options] Override http request option.
40868
- * @throws {RequiredError}
40869
- */
40870
- apiV1SearchDealsPost: async (updateDealsSearchIndexCommand?: UpdateDealsSearchIndexCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40871
- const localVarPath = `/api/v1/search/deals`;
40872
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
40873
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40874
- let baseOptions;
40875
- if (configuration) {
40876
- baseOptions = configuration.baseOptions;
40877
- }
40878
-
40879
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40880
- const localVarHeaderParameter = {} as any;
40881
- const localVarQueryParameter = {} as any;
40882
-
40883
- // authentication oauth2 required
40884
- // oauth required
40885
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
40886
-
40887
-
40888
-
40889
- localVarHeaderParameter['Content-Type'] = 'application/json';
40890
-
40891
- setSearchParams(localVarUrlObj, localVarQueryParameter);
40892
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40893
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40894
- localVarRequestOptions.data = serializeDataIfNeeded(updateDealsSearchIndexCommand, localVarRequestOptions, configuration)
40895
-
40896
- return {
40897
- url: toPathString(localVarUrlObj),
40898
- options: localVarRequestOptions,
40899
- };
40900
- },
40901
- /**
40902
- *
40903
- * @summary Update or Re-create doctors Azure Search Services Index
40904
- * @param {UpdateDoctorsSearchIndexCommand} [updateDoctorsSearchIndexCommand]
40905
- * @param {*} [options] Override http request option.
40906
- * @throws {RequiredError}
40907
- */
40908
- apiV1SearchDoctorsPost: async (updateDoctorsSearchIndexCommand?: UpdateDoctorsSearchIndexCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40909
- const localVarPath = `/api/v1/search/doctors`;
40910
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
40911
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40912
- let baseOptions;
40913
- if (configuration) {
40914
- baseOptions = configuration.baseOptions;
40915
- }
40916
-
40917
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40918
- const localVarHeaderParameter = {} as any;
40919
- const localVarQueryParameter = {} as any;
40920
-
40921
- // authentication oauth2 required
40922
- // oauth required
40923
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
40924
-
40925
-
40926
-
40927
- localVarHeaderParameter['Content-Type'] = 'application/json';
40928
-
40929
- setSearchParams(localVarUrlObj, localVarQueryParameter);
40930
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40931
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40932
- localVarRequestOptions.data = serializeDataIfNeeded(updateDoctorsSearchIndexCommand, localVarRequestOptions, configuration)
40933
-
40934
- return {
40935
- url: toPathString(localVarUrlObj),
40936
- options: localVarRequestOptions,
40937
- };
40938
- },
40939
- /**
40940
- *
40941
- * @summary Update or Re-create hospitals Azure Search Services Index
40942
- * @param {UpdateHospitalsSearchIndexCommand} [updateHospitalsSearchIndexCommand]
40943
- * @param {*} [options] Override http request option.
40944
- * @throws {RequiredError}
40945
- */
40946
- apiV1SearchHospitalsPost: async (updateHospitalsSearchIndexCommand?: UpdateHospitalsSearchIndexCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40947
- const localVarPath = `/api/v1/search/hospitals`;
40948
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
40949
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40950
- let baseOptions;
40951
- if (configuration) {
40952
- baseOptions = configuration.baseOptions;
40953
- }
40954
-
40955
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40956
- const localVarHeaderParameter = {} as any;
40957
- const localVarQueryParameter = {} as any;
40958
-
40959
- // authentication oauth2 required
40960
- // oauth required
40961
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
40962
-
40963
-
40964
-
40965
- localVarHeaderParameter['Content-Type'] = 'application/json';
40966
-
40967
- setSearchParams(localVarUrlObj, localVarQueryParameter);
40968
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40969
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40970
- localVarRequestOptions.data = serializeDataIfNeeded(updateHospitalsSearchIndexCommand, localVarRequestOptions, configuration)
40971
-
40972
- return {
40973
- url: toPathString(localVarUrlObj),
40974
- options: localVarRequestOptions,
40975
- };
40976
- },
40977
- /**
40978
- *
40979
- * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
40980
- * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
40821
+ * @summary RecreateIndex
40822
+ * @param {SearchIndexType} [searchIndexType]
40823
+ * @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
40981
40824
  * @param {*} [options] Override http request option.
40982
40825
  * @throws {RequiredError}
40983
40826
  */
40984
- apiV1SearchHospitalspecialtiesPost: async (updateHospitalSpecialtiesSearchIndexCommand?: UpdateHospitalSpecialtiesSearchIndexCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40985
- const localVarPath = `/api/v1/search/hospitalspecialties`;
40827
+ apiV1SearchRecreatePost: async (searchIndexType?: SearchIndexType, updateSearchIndexCommand?: UpdateSearchIndexCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40828
+ const localVarPath = `/api/v1/search/recreate`;
40986
40829
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
40987
40830
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40988
40831
  let baseOptions;
@@ -40998,44 +40841,10 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
40998
40841
  // oauth required
40999
40842
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
41000
40843
 
41001
-
41002
-
41003
- localVarHeaderParameter['Content-Type'] = 'application/json';
41004
-
41005
- setSearchParams(localVarUrlObj, localVarQueryParameter);
41006
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41007
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41008
- localVarRequestOptions.data = serializeDataIfNeeded(updateHospitalSpecialtiesSearchIndexCommand, localVarRequestOptions, configuration)
41009
-
41010
- return {
41011
- url: toPathString(localVarUrlObj),
41012
- options: localVarRequestOptions,
41013
- };
41014
- },
41015
- /**
41016
- *
41017
- * @summary Update or Re-create specialties Azure Search Services Index
41018
- * @param {UpdateSpecialtiesSearchIndexCommand} [updateSpecialtiesSearchIndexCommand]
41019
- * @param {*} [options] Override http request option.
41020
- * @throws {RequiredError}
41021
- */
41022
- apiV1SearchSpecialtiesPost: async (updateSpecialtiesSearchIndexCommand?: UpdateSpecialtiesSearchIndexCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41023
- const localVarPath = `/api/v1/search/specialties`;
41024
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
41025
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41026
- let baseOptions;
41027
- if (configuration) {
41028
- baseOptions = configuration.baseOptions;
40844
+ if (searchIndexType !== undefined) {
40845
+ localVarQueryParameter['searchIndexType'] = searchIndexType;
41029
40846
  }
41030
40847
 
41031
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41032
- const localVarHeaderParameter = {} as any;
41033
- const localVarQueryParameter = {} as any;
41034
-
41035
- // authentication oauth2 required
41036
- // oauth required
41037
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
41038
-
41039
40848
 
41040
40849
 
41041
40850
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -41043,45 +40852,7 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
41043
40852
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41044
40853
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41045
40854
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41046
- localVarRequestOptions.data = serializeDataIfNeeded(updateSpecialtiesSearchIndexCommand, localVarRequestOptions, configuration)
41047
-
41048
- return {
41049
- url: toPathString(localVarUrlObj),
41050
- options: localVarRequestOptions,
41051
- };
41052
- },
41053
- /**
41054
- *
41055
- * @summary Update or Re-create specialtyTypes Azure Search Services Index
41056
- * @param {UpdateSpecialtyTypesSearchIndexCommand} [updateSpecialtyTypesSearchIndexCommand]
41057
- * @param {*} [options] Override http request option.
41058
- * @throws {RequiredError}
41059
- */
41060
- apiV1SearchSpecialtytypesPost: async (updateSpecialtyTypesSearchIndexCommand?: UpdateSpecialtyTypesSearchIndexCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41061
- const localVarPath = `/api/v1/search/specialtytypes`;
41062
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
41063
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41064
- let baseOptions;
41065
- if (configuration) {
41066
- baseOptions = configuration.baseOptions;
41067
- }
41068
-
41069
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41070
- const localVarHeaderParameter = {} as any;
41071
- const localVarQueryParameter = {} as any;
41072
-
41073
- // authentication oauth2 required
41074
- // oauth required
41075
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
41076
-
41077
-
41078
-
41079
- localVarHeaderParameter['Content-Type'] = 'application/json';
41080
-
41081
- setSearchParams(localVarUrlObj, localVarQueryParameter);
41082
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41083
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41084
- localVarRequestOptions.data = serializeDataIfNeeded(updateSpecialtyTypesSearchIndexCommand, localVarRequestOptions, configuration)
40855
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSearchIndexCommand, localVarRequestOptions, configuration)
41085
40856
 
41086
40857
  return {
41087
40858
  url: toPathString(localVarUrlObj),
@@ -41100,68 +40871,14 @@ export const SearchApiFp = function(configuration?: Configuration) {
41100
40871
  return {
41101
40872
  /**
41102
40873
  *
41103
- * @summary Update or Re-create deals Azure Search Services Index
41104
- * @param {UpdateDealsSearchIndexCommand} [updateDealsSearchIndexCommand]
40874
+ * @summary RecreateIndex
40875
+ * @param {SearchIndexType} [searchIndexType]
40876
+ * @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
41105
40877
  * @param {*} [options] Override http request option.
41106
40878
  * @throws {RequiredError}
41107
40879
  */
41108
- async apiV1SearchDealsPost(updateDealsSearchIndexCommand?: UpdateDealsSearchIndexCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
41109
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SearchDealsPost(updateDealsSearchIndexCommand, options);
41110
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41111
- },
41112
- /**
41113
- *
41114
- * @summary Update or Re-create doctors Azure Search Services Index
41115
- * @param {UpdateDoctorsSearchIndexCommand} [updateDoctorsSearchIndexCommand]
41116
- * @param {*} [options] Override http request option.
41117
- * @throws {RequiredError}
41118
- */
41119
- async apiV1SearchDoctorsPost(updateDoctorsSearchIndexCommand?: UpdateDoctorsSearchIndexCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
41120
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SearchDoctorsPost(updateDoctorsSearchIndexCommand, options);
41121
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41122
- },
41123
- /**
41124
- *
41125
- * @summary Update or Re-create hospitals Azure Search Services Index
41126
- * @param {UpdateHospitalsSearchIndexCommand} [updateHospitalsSearchIndexCommand]
41127
- * @param {*} [options] Override http request option.
41128
- * @throws {RequiredError}
41129
- */
41130
- async apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand?: UpdateHospitalsSearchIndexCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
41131
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options);
41132
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41133
- },
41134
- /**
41135
- *
41136
- * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
41137
- * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
41138
- * @param {*} [options] Override http request option.
41139
- * @throws {RequiredError}
41140
- */
41141
- async apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand?: UpdateHospitalSpecialtiesSearchIndexCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
41142
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options);
41143
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41144
- },
41145
- /**
41146
- *
41147
- * @summary Update or Re-create specialties Azure Search Services Index
41148
- * @param {UpdateSpecialtiesSearchIndexCommand} [updateSpecialtiesSearchIndexCommand]
41149
- * @param {*} [options] Override http request option.
41150
- * @throws {RequiredError}
41151
- */
41152
- async apiV1SearchSpecialtiesPost(updateSpecialtiesSearchIndexCommand?: UpdateSpecialtiesSearchIndexCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
41153
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SearchSpecialtiesPost(updateSpecialtiesSearchIndexCommand, options);
41154
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41155
- },
41156
- /**
41157
- *
41158
- * @summary Update or Re-create specialtyTypes Azure Search Services Index
41159
- * @param {UpdateSpecialtyTypesSearchIndexCommand} [updateSpecialtyTypesSearchIndexCommand]
41160
- * @param {*} [options] Override http request option.
41161
- * @throws {RequiredError}
41162
- */
41163
- async apiV1SearchSpecialtytypesPost(updateSpecialtyTypesSearchIndexCommand?: UpdateSpecialtyTypesSearchIndexCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
41164
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SearchSpecialtytypesPost(updateSpecialtyTypesSearchIndexCommand, options);
40880
+ async apiV1SearchRecreatePost(searchIndexType?: SearchIndexType, updateSearchIndexCommand?: UpdateSearchIndexCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
40881
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SearchRecreatePost(searchIndexType, updateSearchIndexCommand, options);
41165
40882
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41166
40883
  },
41167
40884
  }
@@ -41176,63 +40893,14 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
41176
40893
  return {
41177
40894
  /**
41178
40895
  *
41179
- * @summary Update or Re-create deals Azure Search Services Index
41180
- * @param {UpdateDealsSearchIndexCommand} [updateDealsSearchIndexCommand]
41181
- * @param {*} [options] Override http request option.
41182
- * @throws {RequiredError}
41183
- */
41184
- apiV1SearchDealsPost(updateDealsSearchIndexCommand?: UpdateDealsSearchIndexCommand, options?: any): AxiosPromise<string> {
41185
- return localVarFp.apiV1SearchDealsPost(updateDealsSearchIndexCommand, options).then((request) => request(axios, basePath));
41186
- },
41187
- /**
41188
- *
41189
- * @summary Update or Re-create doctors Azure Search Services Index
41190
- * @param {UpdateDoctorsSearchIndexCommand} [updateDoctorsSearchIndexCommand]
41191
- * @param {*} [options] Override http request option.
41192
- * @throws {RequiredError}
41193
- */
41194
- apiV1SearchDoctorsPost(updateDoctorsSearchIndexCommand?: UpdateDoctorsSearchIndexCommand, options?: any): AxiosPromise<string> {
41195
- return localVarFp.apiV1SearchDoctorsPost(updateDoctorsSearchIndexCommand, options).then((request) => request(axios, basePath));
41196
- },
41197
- /**
41198
- *
41199
- * @summary Update or Re-create hospitals Azure Search Services Index
41200
- * @param {UpdateHospitalsSearchIndexCommand} [updateHospitalsSearchIndexCommand]
41201
- * @param {*} [options] Override http request option.
41202
- * @throws {RequiredError}
41203
- */
41204
- apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand?: UpdateHospitalsSearchIndexCommand, options?: any): AxiosPromise<string> {
41205
- return localVarFp.apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then((request) => request(axios, basePath));
41206
- },
41207
- /**
41208
- *
41209
- * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
41210
- * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
41211
- * @param {*} [options] Override http request option.
41212
- * @throws {RequiredError}
41213
- */
41214
- apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand?: UpdateHospitalSpecialtiesSearchIndexCommand, options?: any): AxiosPromise<string> {
41215
- return localVarFp.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then((request) => request(axios, basePath));
41216
- },
41217
- /**
41218
- *
41219
- * @summary Update or Re-create specialties Azure Search Services Index
41220
- * @param {UpdateSpecialtiesSearchIndexCommand} [updateSpecialtiesSearchIndexCommand]
41221
- * @param {*} [options] Override http request option.
41222
- * @throws {RequiredError}
41223
- */
41224
- apiV1SearchSpecialtiesPost(updateSpecialtiesSearchIndexCommand?: UpdateSpecialtiesSearchIndexCommand, options?: any): AxiosPromise<string> {
41225
- return localVarFp.apiV1SearchSpecialtiesPost(updateSpecialtiesSearchIndexCommand, options).then((request) => request(axios, basePath));
41226
- },
41227
- /**
41228
- *
41229
- * @summary Update or Re-create specialtyTypes Azure Search Services Index
41230
- * @param {UpdateSpecialtyTypesSearchIndexCommand} [updateSpecialtyTypesSearchIndexCommand]
40896
+ * @summary RecreateIndex
40897
+ * @param {SearchIndexType} [searchIndexType]
40898
+ * @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
41231
40899
  * @param {*} [options] Override http request option.
41232
40900
  * @throws {RequiredError}
41233
40901
  */
41234
- apiV1SearchSpecialtytypesPost(updateSpecialtyTypesSearchIndexCommand?: UpdateSpecialtyTypesSearchIndexCommand, options?: any): AxiosPromise<string> {
41235
- return localVarFp.apiV1SearchSpecialtytypesPost(updateSpecialtyTypesSearchIndexCommand, options).then((request) => request(axios, basePath));
40902
+ apiV1SearchRecreatePost(searchIndexType?: SearchIndexType, updateSearchIndexCommand?: UpdateSearchIndexCommand, options?: any): AxiosPromise<string> {
40903
+ return localVarFp.apiV1SearchRecreatePost(searchIndexType, updateSearchIndexCommand, options).then((request) => request(axios, basePath));
41236
40904
  },
41237
40905
  };
41238
40906
  };
@@ -41246,74 +40914,15 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
41246
40914
  export class SearchApi extends BaseAPI {
41247
40915
  /**
41248
40916
  *
41249
- * @summary Update or Re-create deals Azure Search Services Index
41250
- * @param {UpdateDealsSearchIndexCommand} [updateDealsSearchIndexCommand]
41251
- * @param {*} [options] Override http request option.
41252
- * @throws {RequiredError}
41253
- * @memberof SearchApi
41254
- */
41255
- public apiV1SearchDealsPost(updateDealsSearchIndexCommand?: UpdateDealsSearchIndexCommand, options?: AxiosRequestConfig) {
41256
- return SearchApiFp(this.configuration).apiV1SearchDealsPost(updateDealsSearchIndexCommand, options).then((request) => request(this.axios, this.basePath));
41257
- }
41258
-
41259
- /**
41260
- *
41261
- * @summary Update or Re-create doctors Azure Search Services Index
41262
- * @param {UpdateDoctorsSearchIndexCommand} [updateDoctorsSearchIndexCommand]
41263
- * @param {*} [options] Override http request option.
41264
- * @throws {RequiredError}
41265
- * @memberof SearchApi
41266
- */
41267
- public apiV1SearchDoctorsPost(updateDoctorsSearchIndexCommand?: UpdateDoctorsSearchIndexCommand, options?: AxiosRequestConfig) {
41268
- return SearchApiFp(this.configuration).apiV1SearchDoctorsPost(updateDoctorsSearchIndexCommand, options).then((request) => request(this.axios, this.basePath));
41269
- }
41270
-
41271
- /**
41272
- *
41273
- * @summary Update or Re-create hospitals Azure Search Services Index
41274
- * @param {UpdateHospitalsSearchIndexCommand} [updateHospitalsSearchIndexCommand]
41275
- * @param {*} [options] Override http request option.
41276
- * @throws {RequiredError}
41277
- * @memberof SearchApi
41278
- */
41279
- public apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand?: UpdateHospitalsSearchIndexCommand, options?: AxiosRequestConfig) {
41280
- return SearchApiFp(this.configuration).apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then((request) => request(this.axios, this.basePath));
41281
- }
41282
-
41283
- /**
41284
- *
41285
- * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
41286
- * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
41287
- * @param {*} [options] Override http request option.
41288
- * @throws {RequiredError}
41289
- * @memberof SearchApi
41290
- */
41291
- public apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand?: UpdateHospitalSpecialtiesSearchIndexCommand, options?: AxiosRequestConfig) {
41292
- return SearchApiFp(this.configuration).apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then((request) => request(this.axios, this.basePath));
41293
- }
41294
-
41295
- /**
41296
- *
41297
- * @summary Update or Re-create specialties Azure Search Services Index
41298
- * @param {UpdateSpecialtiesSearchIndexCommand} [updateSpecialtiesSearchIndexCommand]
41299
- * @param {*} [options] Override http request option.
41300
- * @throws {RequiredError}
41301
- * @memberof SearchApi
41302
- */
41303
- public apiV1SearchSpecialtiesPost(updateSpecialtiesSearchIndexCommand?: UpdateSpecialtiesSearchIndexCommand, options?: AxiosRequestConfig) {
41304
- return SearchApiFp(this.configuration).apiV1SearchSpecialtiesPost(updateSpecialtiesSearchIndexCommand, options).then((request) => request(this.axios, this.basePath));
41305
- }
41306
-
41307
- /**
41308
- *
41309
- * @summary Update or Re-create specialtyTypes Azure Search Services Index
41310
- * @param {UpdateSpecialtyTypesSearchIndexCommand} [updateSpecialtyTypesSearchIndexCommand]
40917
+ * @summary RecreateIndex
40918
+ * @param {SearchIndexType} [searchIndexType]
40919
+ * @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
41311
40920
  * @param {*} [options] Override http request option.
41312
40921
  * @throws {RequiredError}
41313
40922
  * @memberof SearchApi
41314
40923
  */
41315
- public apiV1SearchSpecialtytypesPost(updateSpecialtyTypesSearchIndexCommand?: UpdateSpecialtyTypesSearchIndexCommand, options?: AxiosRequestConfig) {
41316
- return SearchApiFp(this.configuration).apiV1SearchSpecialtytypesPost(updateSpecialtyTypesSearchIndexCommand, options).then((request) => request(this.axios, this.basePath));
40924
+ public apiV1SearchRecreatePost(searchIndexType?: SearchIndexType, updateSearchIndexCommand?: UpdateSearchIndexCommand, options?: AxiosRequestConfig) {
40925
+ return SearchApiFp(this.configuration).apiV1SearchRecreatePost(searchIndexType, updateSearchIndexCommand, options).then((request) => request(this.axios, this.basePath));
41317
40926
  }
41318
40927
  }
41319
40928