ch-admin-api-client-typescript 3.1.3 → 3.2.0

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
@@ -5199,6 +5199,12 @@ export interface DealItemModel {
5199
5199
  * @memberof DealItemModel
5200
5200
  */
5201
5201
  'photoThumbnail'?: string | null;
5202
+ /**
5203
+ *
5204
+ * @type {number}
5205
+ * @memberof DealItemModel
5206
+ */
5207
+ 'order'?: number;
5202
5208
  /**
5203
5209
  *
5204
5210
  * @type {Array<DealPackageItemModel>}
@@ -5278,6 +5284,12 @@ export interface DealItemSimpleModel {
5278
5284
  * @memberof DealItemSimpleModel
5279
5285
  */
5280
5286
  'localizedUrls'?: Array<LocalizedUrlModel> | null;
5287
+ /**
5288
+ *
5289
+ * @type {number}
5290
+ * @memberof DealItemSimpleModel
5291
+ */
5292
+ 'order'?: number;
5281
5293
  /**
5282
5294
  *
5283
5295
  * @type {boolean}
@@ -5387,6 +5399,12 @@ export interface DealModel {
5387
5399
  * @memberof DealModel
5388
5400
  */
5389
5401
  'photoThumbnail'?: string | null;
5402
+ /**
5403
+ *
5404
+ * @type {number}
5405
+ * @memberof DealModel
5406
+ */
5407
+ 'order'?: number;
5390
5408
  /**
5391
5409
  *
5392
5410
  * @type {Array<DealPackageItemModel>}
@@ -10650,12 +10668,30 @@ export interface ServiceReviewItemModel {
10650
10668
  * @memberof ServiceReviewItemModel
10651
10669
  */
10652
10670
  'reviewType'?: ReviewType;
10671
+ /**
10672
+ *
10673
+ * @type {Array<LocalizedUrlModel>}
10674
+ * @memberof ServiceReviewItemModel
10675
+ */
10676
+ 'localizedUrls'?: Array<LocalizedUrlModel> | null;
10677
+ /**
10678
+ *
10679
+ * @type {boolean}
10680
+ * @memberof ServiceReviewItemModel
10681
+ */
10682
+ 'confirmed'?: boolean;
10653
10683
  /**
10654
10684
  *
10655
10685
  * @type {Array<MediaModel>}
10656
10686
  * @memberof ServiceReviewItemModel
10657
10687
  */
10658
10688
  'medias'?: Array<MediaModel> | null;
10689
+ /**
10690
+ *
10691
+ * @type {AuditableEntity}
10692
+ * @memberof ServiceReviewItemModel
10693
+ */
10694
+ 'auditableEntity'?: AuditableEntity;
10659
10695
  }
10660
10696
  /**
10661
10697
  *
@@ -10717,12 +10753,30 @@ export interface ServiceReviewModel {
10717
10753
  * @memberof ServiceReviewModel
10718
10754
  */
10719
10755
  'reviewType'?: ReviewType;
10756
+ /**
10757
+ *
10758
+ * @type {Array<LocalizedUrlModel>}
10759
+ * @memberof ServiceReviewModel
10760
+ */
10761
+ 'localizedUrls'?: Array<LocalizedUrlModel> | null;
10762
+ /**
10763
+ *
10764
+ * @type {boolean}
10765
+ * @memberof ServiceReviewModel
10766
+ */
10767
+ 'confirmed'?: boolean;
10720
10768
  /**
10721
10769
  *
10722
10770
  * @type {Array<MediaModel>}
10723
10771
  * @memberof ServiceReviewModel
10724
10772
  */
10725
10773
  'medias'?: Array<MediaModel> | null;
10774
+ /**
10775
+ *
10776
+ * @type {AuditableEntity}
10777
+ * @memberof ServiceReviewModel
10778
+ */
10779
+ 'auditableEntity'?: AuditableEntity;
10726
10780
  }
10727
10781
  /**
10728
10782
  *
@@ -10804,7 +10858,8 @@ export enum SnsType {
10804
10858
  Facebook = 'Facebook',
10805
10859
  Instagram = 'Instagram',
10806
10860
  LinkedIn = 'LinkedIn',
10807
- Youtube = 'Youtube'
10861
+ Youtube = 'Youtube',
10862
+ KakaoTalk = 'KakaoTalk'
10808
10863
  }
10809
10864
 
10810
10865
  /**
@@ -10868,6 +10923,25 @@ export interface SpecialtiesModel {
10868
10923
  */
10869
10924
  'metaData'?: PagedListMetaData;
10870
10925
  }
10926
+ /**
10927
+ *
10928
+ * @export
10929
+ * @interface SpecialtiesSimpleModel
10930
+ */
10931
+ export interface SpecialtiesSimpleModel {
10932
+ /**
10933
+ *
10934
+ * @type {Array<SpecialtyItemSimpleModel>}
10935
+ * @memberof SpecialtiesSimpleModel
10936
+ */
10937
+ 'items'?: Array<SpecialtyItemSimpleModel> | null;
10938
+ /**
10939
+ *
10940
+ * @type {PagedListMetaData}
10941
+ * @memberof SpecialtiesSimpleModel
10942
+ */
10943
+ 'metaData'?: PagedListMetaData;
10944
+ }
10871
10945
  /**
10872
10946
  *
10873
10947
  * @export
@@ -10953,6 +11027,43 @@ export interface SpecialtyItemModel {
10953
11027
  */
10954
11028
  'medias'?: Array<MediaModel> | null;
10955
11029
  }
11030
+ /**
11031
+ *
11032
+ * @export
11033
+ * @interface SpecialtyItemSimpleModel
11034
+ */
11035
+ export interface SpecialtyItemSimpleModel {
11036
+ /**
11037
+ *
11038
+ * @type {string}
11039
+ * @memberof SpecialtyItemSimpleModel
11040
+ */
11041
+ 'id'?: string;
11042
+ /**
11043
+ *
11044
+ * @type {string}
11045
+ * @memberof SpecialtyItemSimpleModel
11046
+ */
11047
+ 'name'?: string | null;
11048
+ /**
11049
+ *
11050
+ * @type {string}
11051
+ * @memberof SpecialtyItemSimpleModel
11052
+ */
11053
+ 'slug'?: string | null;
11054
+ /**
11055
+ *
11056
+ * @type {string}
11057
+ * @memberof SpecialtyItemSimpleModel
11058
+ */
11059
+ 'specialtyTypeId'?: string;
11060
+ /**
11061
+ *
11062
+ * @type {boolean}
11063
+ * @memberof SpecialtyItemSimpleModel
11064
+ */
11065
+ 'confirmed'?: boolean;
11066
+ }
10956
11067
  /**
10957
11068
  *
10958
11069
  * @export
@@ -12118,6 +12229,12 @@ export interface UpdateDealCommand {
12118
12229
  * @memberof UpdateDealCommand
12119
12230
  */
12120
12231
  'serviceDuration'?: number;
12232
+ /**
12233
+ *
12234
+ * @type {number}
12235
+ * @memberof UpdateDealCommand
12236
+ */
12237
+ 'order'?: number;
12121
12238
  /**
12122
12239
  *
12123
12240
  * @type {string}
@@ -13370,6 +13487,18 @@ export interface UpdateServiceReviewCommand {
13370
13487
  * @memberof UpdateServiceReviewCommand
13371
13488
  */
13372
13489
  'rate'?: number | null;
13490
+ /**
13491
+ *
13492
+ * @type {string}
13493
+ * @memberof UpdateServiceReviewCommand
13494
+ */
13495
+ 'languageCode'?: string | null;
13496
+ /**
13497
+ *
13498
+ * @type {boolean}
13499
+ * @memberof UpdateServiceReviewCommand
13500
+ */
13501
+ 'confirmed'?: boolean;
13373
13502
  }
13374
13503
  /**
13375
13504
  *
@@ -29218,10 +29347,11 @@ export const FaqsApiAxiosParamCreator = function (configuration?: Configuration)
29218
29347
  *
29219
29348
  * @summary Delete faq.
29220
29349
  * @param {string} faqId
29350
+ * @param {boolean} [forceDelete]
29221
29351
  * @param {*} [options] Override http request option.
29222
29352
  * @throws {RequiredError}
29223
29353
  */
29224
- apiV1FaqsFaqIdDelete: async (faqId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29354
+ apiV1FaqsFaqIdDelete: async (faqId: string, forceDelete?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29225
29355
  // verify required parameter 'faqId' is not null or undefined
29226
29356
  assertParamExists('apiV1FaqsFaqIdDelete', 'faqId', faqId)
29227
29357
  const localVarPath = `/api/v1/faqs/{faqId}`
@@ -29241,6 +29371,10 @@ export const FaqsApiAxiosParamCreator = function (configuration?: Configuration)
29241
29371
  // oauth required
29242
29372
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29243
29373
 
29374
+ if (forceDelete !== undefined) {
29375
+ localVarQueryParameter['forceDelete'] = forceDelete;
29376
+ }
29377
+
29244
29378
 
29245
29379
 
29246
29380
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -29770,11 +29904,12 @@ export const FaqsApiFp = function(configuration?: Configuration) {
29770
29904
  *
29771
29905
  * @summary Delete faq.
29772
29906
  * @param {string} faqId
29907
+ * @param {boolean} [forceDelete]
29773
29908
  * @param {*} [options] Override http request option.
29774
29909
  * @throws {RequiredError}
29775
29910
  */
29776
- async apiV1FaqsFaqIdDelete(faqId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
29777
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, options);
29911
+ async apiV1FaqsFaqIdDelete(faqId: string, forceDelete?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
29912
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, forceDelete, options);
29778
29913
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29779
29914
  },
29780
29915
  /**
@@ -29926,11 +30061,12 @@ export const FaqsApiFactory = function (configuration?: Configuration, basePath?
29926
30061
  *
29927
30062
  * @summary Delete faq.
29928
30063
  * @param {string} faqId
30064
+ * @param {boolean} [forceDelete]
29929
30065
  * @param {*} [options] Override http request option.
29930
30066
  * @throws {RequiredError}
29931
30067
  */
29932
- apiV1FaqsFaqIdDelete(faqId: string, options?: any): AxiosPromise<boolean> {
29933
- return localVarFp.apiV1FaqsFaqIdDelete(faqId, options).then((request) => request(axios, basePath));
30068
+ apiV1FaqsFaqIdDelete(faqId: string, forceDelete?: boolean, options?: any): AxiosPromise<boolean> {
30069
+ return localVarFp.apiV1FaqsFaqIdDelete(faqId, forceDelete, options).then((request) => request(axios, basePath));
29934
30070
  },
29935
30071
  /**
29936
30072
  *
@@ -30071,12 +30207,13 @@ export class FaqsApi extends BaseAPI {
30071
30207
  *
30072
30208
  * @summary Delete faq.
30073
30209
  * @param {string} faqId
30210
+ * @param {boolean} [forceDelete]
30074
30211
  * @param {*} [options] Override http request option.
30075
30212
  * @throws {RequiredError}
30076
30213
  * @memberof FaqsApi
30077
30214
  */
30078
- public apiV1FaqsFaqIdDelete(faqId: string, options?: AxiosRequestConfig) {
30079
- return FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, options).then((request) => request(this.axios, this.basePath));
30215
+ public apiV1FaqsFaqIdDelete(faqId: string, forceDelete?: boolean, options?: AxiosRequestConfig) {
30216
+ return FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, forceDelete, options).then((request) => request(this.axios, this.basePath));
30080
30217
  }
30081
30218
 
30082
30219
  /**
@@ -32034,73 +32171,25 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
32034
32171
  },
32035
32172
  /**
32036
32173
  *
32037
- * @summary Create HospitalSpecialty.
32038
- * @param {string} hospitalId
32039
- * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
32040
- * @param {*} [options] Override http request option.
32041
- * @throws {RequiredError}
32042
- */
32043
- apiV1HospitalsHospitalIdSpecialtiesPost: async (hospitalId: string, createHospitalSpecialtyCommand?: CreateHospitalSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32044
- // verify required parameter 'hospitalId' is not null or undefined
32045
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesPost', 'hospitalId', hospitalId)
32046
- const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties`
32047
- .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
32048
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
32049
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32050
- let baseOptions;
32051
- if (configuration) {
32052
- baseOptions = configuration.baseOptions;
32053
- }
32054
-
32055
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
32056
- const localVarHeaderParameter = {} as any;
32057
- const localVarQueryParameter = {} as any;
32058
-
32059
- // authentication oauth2 required
32060
- // oauth required
32061
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32062
-
32063
-
32064
-
32065
- localVarHeaderParameter['Content-Type'] = 'application/json';
32066
-
32067
- setSearchParams(localVarUrlObj, localVarQueryParameter);
32068
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32069
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32070
- localVarRequestOptions.data = serializeDataIfNeeded(createHospitalSpecialtyCommand, localVarRequestOptions, configuration)
32071
-
32072
- return {
32073
- url: toPathString(localVarUrlObj),
32074
- options: localVarRequestOptions,
32075
- };
32076
- },
32077
- /**
32078
- *
32079
- * @summary Get all HospitalSpecialties.
32174
+ * @summary Get all HospitalServiceMedias.
32080
32175
  * @param {string} hospitalId
32081
- * @param {string} [hospitalName]
32082
- * @param {string} [hospitalSlug]
32083
- * @param {string} [specialtyId]
32084
- * @param {string} [specialtyName]
32085
- * @param {string} [specialtyTypeId]
32086
- * @param {string} [hospitalSpecialtySlug]
32087
- * @param {string} [title]
32088
- * @param {MarketingType} [marketingType]
32089
- * @param {string} [languageCode]
32090
- * @param {boolean} [showHidden]
32091
- * @param {boolean} [returnDefaultValue]
32092
- * @param {boolean} [includeServices]
32176
+ * @param {string} hospitalSpecialtyId
32177
+ * @param {string} [id]
32178
+ * @param {MediaType} [mediaType]
32093
32179
  * @param {number} [page]
32094
32180
  * @param {number} [limit]
32095
32181
  * @param {Date} [lastRetrieved]
32096
32182
  * @param {*} [options] Override http request option.
32097
32183
  * @throws {RequiredError}
32098
32184
  */
32099
- apiV1HospitalsHospitalIdSpecialtiesSimpleGet: async (hospitalId: string, hospitalName?: string, hospitalSlug?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, hospitalSpecialtySlug?: string, title?: string, marketingType?: MarketingType, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, includeServices?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32185
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: async (hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32100
32186
  // verify required parameter 'hospitalId' is not null or undefined
32101
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSimpleGet', 'hospitalId', hospitalId)
32102
- const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/simple`
32103
- .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
32187
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalId', hospitalId)
32188
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32189
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalSpecialtyId', hospitalSpecialtyId)
32190
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias`
32191
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32192
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)));
32104
32193
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
32105
32194
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32106
32195
  let baseOptions;
@@ -32116,52 +32205,12 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
32116
32205
  // oauth required
32117
32206
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32118
32207
 
32119
- if (hospitalName !== undefined) {
32120
- localVarQueryParameter['HospitalName'] = hospitalName;
32121
- }
32122
-
32123
- if (hospitalSlug !== undefined) {
32124
- localVarQueryParameter['HospitalSlug'] = hospitalSlug;
32125
- }
32126
-
32127
- if (specialtyId !== undefined) {
32128
- localVarQueryParameter['SpecialtyId'] = specialtyId;
32129
- }
32130
-
32131
- if (specialtyName !== undefined) {
32132
- localVarQueryParameter['SpecialtyName'] = specialtyName;
32133
- }
32134
-
32135
- if (specialtyTypeId !== undefined) {
32136
- localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
32137
- }
32138
-
32139
- if (hospitalSpecialtySlug !== undefined) {
32140
- localVarQueryParameter['HospitalSpecialtySlug'] = hospitalSpecialtySlug;
32141
- }
32142
-
32143
- if (title !== undefined) {
32144
- localVarQueryParameter['Title'] = title;
32145
- }
32146
-
32147
- if (marketingType !== undefined) {
32148
- localVarQueryParameter['MarketingType'] = marketingType;
32149
- }
32150
-
32151
- if (languageCode !== undefined) {
32152
- localVarQueryParameter['LanguageCode'] = languageCode;
32153
- }
32154
-
32155
- if (showHidden !== undefined) {
32156
- localVarQueryParameter['ShowHidden'] = showHidden;
32157
- }
32158
-
32159
- if (returnDefaultValue !== undefined) {
32160
- localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
32208
+ if (id !== undefined) {
32209
+ localVarQueryParameter['Id'] = id;
32161
32210
  }
32162
32211
 
32163
- if (includeServices !== undefined) {
32164
- localVarQueryParameter['IncludeServices'] = includeServices;
32212
+ if (mediaType !== undefined) {
32213
+ localVarQueryParameter['MediaType'] = mediaType;
32165
32214
  }
32166
32215
 
32167
32216
  if (page !== undefined) {
@@ -32191,20 +32240,24 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
32191
32240
  },
32192
32241
  /**
32193
32242
  *
32194
- * @summary Delete HospitalSpecialty.
32243
+ * @summary Delete HospitalServiceMedia
32195
32244
  * @param {string} hospitalId
32196
- * @param {string} specialtyId
32245
+ * @param {string} hospitalSpecialtyId
32246
+ * @param {string} mediaId
32197
32247
  * @param {*} [options] Override http request option.
32198
32248
  * @throws {RequiredError}
32199
32249
  */
32200
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: async (hospitalId: string, specialtyId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32250
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete: async (hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32201
32251
  // verify required parameter 'hospitalId' is not null or undefined
32202
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'hospitalId', hospitalId)
32203
- // verify required parameter 'specialtyId' is not null or undefined
32204
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId)
32205
- const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
32252
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalId', hospitalId)
32253
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32254
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalSpecialtyId', hospitalSpecialtyId)
32255
+ // verify required parameter 'mediaId' is not null or undefined
32256
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'mediaId', mediaId)
32257
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}`
32206
32258
  .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32207
- .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
32259
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)))
32260
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
32208
32261
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
32209
32262
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32210
32263
  let baseOptions;
@@ -32233,23 +32286,24 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
32233
32286
  },
32234
32287
  /**
32235
32288
  *
32236
- * @summary Get HospitalSpecialty.
32289
+ * @summary Get HospitalServiceMedia.
32237
32290
  * @param {string} hospitalId
32238
- * @param {string} specialtyId
32239
- * @param {string} [languageCode]
32240
- * @param {boolean} [returnDefaultValue]
32241
- * @param {boolean} [includeServices]
32291
+ * @param {string} hospitalSpecialtyId
32292
+ * @param {string} mediaId
32242
32293
  * @param {*} [options] Override http request option.
32243
32294
  * @throws {RequiredError}
32244
32295
  */
32245
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: async (hospitalId: string, specialtyId: string, languageCode?: string, returnDefaultValue?: boolean, includeServices?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32296
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: async (hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32246
32297
  // verify required parameter 'hospitalId' is not null or undefined
32247
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'hospitalId', hospitalId)
32248
- // verify required parameter 'specialtyId' is not null or undefined
32249
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId)
32250
- const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
32298
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalId', hospitalId)
32299
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32300
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId)
32301
+ // verify required parameter 'mediaId' is not null or undefined
32302
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'mediaId', mediaId)
32303
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}`
32251
32304
  .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32252
- .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
32305
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)))
32306
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
32253
32307
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
32254
32308
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32255
32309
  let baseOptions;
@@ -32265,18 +32319,6 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
32265
32319
  // oauth required
32266
32320
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32267
32321
 
32268
- if (languageCode !== undefined) {
32269
- localVarQueryParameter['languageCode'] = languageCode;
32270
- }
32271
-
32272
- if (returnDefaultValue !== undefined) {
32273
- localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
32274
- }
32275
-
32276
- if (includeServices !== undefined) {
32277
- localVarQueryParameter['includeServices'] = includeServices;
32278
- }
32279
-
32280
32322
 
32281
32323
 
32282
32324
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -32290,21 +32332,373 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
32290
32332
  },
32291
32333
  /**
32292
32334
  *
32293
- * @summary Update HospitalSpecialty.
32335
+ * @summary Update HospitalServiceMedia.
32294
32336
  * @param {string} hospitalId
32295
- * @param {string} specialtyId
32296
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
32337
+ * @param {string} hospitalSpecialtyId
32338
+ * @param {string} mediaId
32339
+ * @param {UpdateMediaCommand} [updateMediaCommand]
32297
32340
  * @param {*} [options] Override http request option.
32298
32341
  * @throws {RequiredError}
32299
32342
  */
32300
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: async (hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32343
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut: async (hospitalId: string, hospitalSpecialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32301
32344
  // verify required parameter 'hospitalId' is not null or undefined
32302
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'hospitalId', hospitalId)
32303
- // verify required parameter 'specialtyId' is not null or undefined
32304
- assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId)
32305
- const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
32345
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalId', hospitalId)
32346
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32347
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalSpecialtyId', hospitalSpecialtyId)
32348
+ // verify required parameter 'mediaId' is not null or undefined
32349
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'mediaId', mediaId)
32350
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}`
32306
32351
  .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32307
- .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
32352
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)))
32353
+ .replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
32354
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32355
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32356
+ let baseOptions;
32357
+ if (configuration) {
32358
+ baseOptions = configuration.baseOptions;
32359
+ }
32360
+
32361
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
32362
+ const localVarHeaderParameter = {} as any;
32363
+ const localVarQueryParameter = {} as any;
32364
+
32365
+ // authentication oauth2 required
32366
+ // oauth required
32367
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32368
+
32369
+
32370
+
32371
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32372
+
32373
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32374
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32375
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32376
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration)
32377
+
32378
+ return {
32379
+ url: toPathString(localVarUrlObj),
32380
+ options: localVarRequestOptions,
32381
+ };
32382
+ },
32383
+ /**
32384
+ *
32385
+ * @summary Create HospitalServiceMedia.
32386
+ * @param {string} hospitalId
32387
+ * @param {string} hospitalSpecialtyId
32388
+ * @param {CreateMediaCommand} [createMediaCommand]
32389
+ * @param {*} [options] Override http request option.
32390
+ * @throws {RequiredError}
32391
+ */
32392
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: async (hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32393
+ // verify required parameter 'hospitalId' is not null or undefined
32394
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost', 'hospitalId', hospitalId)
32395
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
32396
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost', 'hospitalSpecialtyId', hospitalSpecialtyId)
32397
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias`
32398
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32399
+ .replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)));
32400
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32401
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32402
+ let baseOptions;
32403
+ if (configuration) {
32404
+ baseOptions = configuration.baseOptions;
32405
+ }
32406
+
32407
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
32408
+ const localVarHeaderParameter = {} as any;
32409
+ const localVarQueryParameter = {} as any;
32410
+
32411
+ // authentication oauth2 required
32412
+ // oauth required
32413
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32414
+
32415
+
32416
+
32417
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32418
+
32419
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32420
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32421
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32422
+ localVarRequestOptions.data = serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration)
32423
+
32424
+ return {
32425
+ url: toPathString(localVarUrlObj),
32426
+ options: localVarRequestOptions,
32427
+ };
32428
+ },
32429
+ /**
32430
+ *
32431
+ * @summary Create HospitalSpecialty.
32432
+ * @param {string} hospitalId
32433
+ * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
32434
+ * @param {*} [options] Override http request option.
32435
+ * @throws {RequiredError}
32436
+ */
32437
+ apiV1HospitalsHospitalIdSpecialtiesPost: async (hospitalId: string, createHospitalSpecialtyCommand?: CreateHospitalSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32438
+ // verify required parameter 'hospitalId' is not null or undefined
32439
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesPost', 'hospitalId', hospitalId)
32440
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties`
32441
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
32442
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32443
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32444
+ let baseOptions;
32445
+ if (configuration) {
32446
+ baseOptions = configuration.baseOptions;
32447
+ }
32448
+
32449
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
32450
+ const localVarHeaderParameter = {} as any;
32451
+ const localVarQueryParameter = {} as any;
32452
+
32453
+ // authentication oauth2 required
32454
+ // oauth required
32455
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32456
+
32457
+
32458
+
32459
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32460
+
32461
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32462
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32463
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32464
+ localVarRequestOptions.data = serializeDataIfNeeded(createHospitalSpecialtyCommand, localVarRequestOptions, configuration)
32465
+
32466
+ return {
32467
+ url: toPathString(localVarUrlObj),
32468
+ options: localVarRequestOptions,
32469
+ };
32470
+ },
32471
+ /**
32472
+ *
32473
+ * @summary Get all HospitalSpecialties.
32474
+ * @param {string} hospitalId
32475
+ * @param {string} [hospitalName]
32476
+ * @param {string} [hospitalSlug]
32477
+ * @param {string} [specialtyId]
32478
+ * @param {string} [specialtyName]
32479
+ * @param {string} [specialtyTypeId]
32480
+ * @param {string} [hospitalSpecialtySlug]
32481
+ * @param {string} [title]
32482
+ * @param {MarketingType} [marketingType]
32483
+ * @param {string} [languageCode]
32484
+ * @param {boolean} [showHidden]
32485
+ * @param {boolean} [returnDefaultValue]
32486
+ * @param {boolean} [includeServices]
32487
+ * @param {number} [page]
32488
+ * @param {number} [limit]
32489
+ * @param {Date} [lastRetrieved]
32490
+ * @param {*} [options] Override http request option.
32491
+ * @throws {RequiredError}
32492
+ */
32493
+ apiV1HospitalsHospitalIdSpecialtiesSimpleGet: async (hospitalId: string, hospitalName?: string, hospitalSlug?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, hospitalSpecialtySlug?: string, title?: string, marketingType?: MarketingType, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, includeServices?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32494
+ // verify required parameter 'hospitalId' is not null or undefined
32495
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSimpleGet', 'hospitalId', hospitalId)
32496
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/simple`
32497
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
32498
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32499
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32500
+ let baseOptions;
32501
+ if (configuration) {
32502
+ baseOptions = configuration.baseOptions;
32503
+ }
32504
+
32505
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32506
+ const localVarHeaderParameter = {} as any;
32507
+ const localVarQueryParameter = {} as any;
32508
+
32509
+ // authentication oauth2 required
32510
+ // oauth required
32511
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32512
+
32513
+ if (hospitalName !== undefined) {
32514
+ localVarQueryParameter['HospitalName'] = hospitalName;
32515
+ }
32516
+
32517
+ if (hospitalSlug !== undefined) {
32518
+ localVarQueryParameter['HospitalSlug'] = hospitalSlug;
32519
+ }
32520
+
32521
+ if (specialtyId !== undefined) {
32522
+ localVarQueryParameter['SpecialtyId'] = specialtyId;
32523
+ }
32524
+
32525
+ if (specialtyName !== undefined) {
32526
+ localVarQueryParameter['SpecialtyName'] = specialtyName;
32527
+ }
32528
+
32529
+ if (specialtyTypeId !== undefined) {
32530
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
32531
+ }
32532
+
32533
+ if (hospitalSpecialtySlug !== undefined) {
32534
+ localVarQueryParameter['HospitalSpecialtySlug'] = hospitalSpecialtySlug;
32535
+ }
32536
+
32537
+ if (title !== undefined) {
32538
+ localVarQueryParameter['Title'] = title;
32539
+ }
32540
+
32541
+ if (marketingType !== undefined) {
32542
+ localVarQueryParameter['MarketingType'] = marketingType;
32543
+ }
32544
+
32545
+ if (languageCode !== undefined) {
32546
+ localVarQueryParameter['LanguageCode'] = languageCode;
32547
+ }
32548
+
32549
+ if (showHidden !== undefined) {
32550
+ localVarQueryParameter['ShowHidden'] = showHidden;
32551
+ }
32552
+
32553
+ if (returnDefaultValue !== undefined) {
32554
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
32555
+ }
32556
+
32557
+ if (includeServices !== undefined) {
32558
+ localVarQueryParameter['IncludeServices'] = includeServices;
32559
+ }
32560
+
32561
+ if (page !== undefined) {
32562
+ localVarQueryParameter['page'] = page;
32563
+ }
32564
+
32565
+ if (limit !== undefined) {
32566
+ localVarQueryParameter['limit'] = limit;
32567
+ }
32568
+
32569
+ if (lastRetrieved !== undefined) {
32570
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
32571
+ (lastRetrieved as any).toISOString() :
32572
+ lastRetrieved;
32573
+ }
32574
+
32575
+
32576
+
32577
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32578
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32579
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32580
+
32581
+ return {
32582
+ url: toPathString(localVarUrlObj),
32583
+ options: localVarRequestOptions,
32584
+ };
32585
+ },
32586
+ /**
32587
+ *
32588
+ * @summary Delete HospitalSpecialty.
32589
+ * @param {string} hospitalId
32590
+ * @param {string} specialtyId
32591
+ * @param {*} [options] Override http request option.
32592
+ * @throws {RequiredError}
32593
+ */
32594
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: async (hospitalId: string, specialtyId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32595
+ // verify required parameter 'hospitalId' is not null or undefined
32596
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'hospitalId', hospitalId)
32597
+ // verify required parameter 'specialtyId' is not null or undefined
32598
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId)
32599
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
32600
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32601
+ .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
32602
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32603
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32604
+ let baseOptions;
32605
+ if (configuration) {
32606
+ baseOptions = configuration.baseOptions;
32607
+ }
32608
+
32609
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
32610
+ const localVarHeaderParameter = {} as any;
32611
+ const localVarQueryParameter = {} as any;
32612
+
32613
+ // authentication oauth2 required
32614
+ // oauth required
32615
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32616
+
32617
+
32618
+
32619
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32620
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32621
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32622
+
32623
+ return {
32624
+ url: toPathString(localVarUrlObj),
32625
+ options: localVarRequestOptions,
32626
+ };
32627
+ },
32628
+ /**
32629
+ *
32630
+ * @summary Get HospitalSpecialty.
32631
+ * @param {string} hospitalId
32632
+ * @param {string} specialtyId
32633
+ * @param {string} [languageCode]
32634
+ * @param {boolean} [returnDefaultValue]
32635
+ * @param {boolean} [includeServices]
32636
+ * @param {*} [options] Override http request option.
32637
+ * @throws {RequiredError}
32638
+ */
32639
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: async (hospitalId: string, specialtyId: string, languageCode?: string, returnDefaultValue?: boolean, includeServices?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32640
+ // verify required parameter 'hospitalId' is not null or undefined
32641
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'hospitalId', hospitalId)
32642
+ // verify required parameter 'specialtyId' is not null or undefined
32643
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId)
32644
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
32645
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32646
+ .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
32647
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32648
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32649
+ let baseOptions;
32650
+ if (configuration) {
32651
+ baseOptions = configuration.baseOptions;
32652
+ }
32653
+
32654
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32655
+ const localVarHeaderParameter = {} as any;
32656
+ const localVarQueryParameter = {} as any;
32657
+
32658
+ // authentication oauth2 required
32659
+ // oauth required
32660
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
32661
+
32662
+ if (languageCode !== undefined) {
32663
+ localVarQueryParameter['languageCode'] = languageCode;
32664
+ }
32665
+
32666
+ if (returnDefaultValue !== undefined) {
32667
+ localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
32668
+ }
32669
+
32670
+ if (includeServices !== undefined) {
32671
+ localVarQueryParameter['includeServices'] = includeServices;
32672
+ }
32673
+
32674
+
32675
+
32676
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32677
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32678
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32679
+
32680
+ return {
32681
+ url: toPathString(localVarUrlObj),
32682
+ options: localVarRequestOptions,
32683
+ };
32684
+ },
32685
+ /**
32686
+ *
32687
+ * @summary Update HospitalSpecialty.
32688
+ * @param {string} hospitalId
32689
+ * @param {string} specialtyId
32690
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
32691
+ * @param {*} [options] Override http request option.
32692
+ * @throws {RequiredError}
32693
+ */
32694
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: async (hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32695
+ // verify required parameter 'hospitalId' is not null or undefined
32696
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'hospitalId', hospitalId)
32697
+ // verify required parameter 'specialtyId' is not null or undefined
32698
+ assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId)
32699
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
32700
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
32701
+ .replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
32308
32702
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
32309
32703
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32310
32704
  let baseOptions;
@@ -33890,6 +34284,76 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
33890
34284
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options);
33891
34285
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33892
34286
  },
34287
+ /**
34288
+ *
34289
+ * @summary Get all HospitalServiceMedias.
34290
+ * @param {string} hospitalId
34291
+ * @param {string} hospitalSpecialtyId
34292
+ * @param {string} [id]
34293
+ * @param {MediaType} [mediaType]
34294
+ * @param {number} [page]
34295
+ * @param {number} [limit]
34296
+ * @param {Date} [lastRetrieved]
34297
+ * @param {*} [options] Override http request option.
34298
+ * @throws {RequiredError}
34299
+ */
34300
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
34301
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options);
34302
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34303
+ },
34304
+ /**
34305
+ *
34306
+ * @summary Delete HospitalServiceMedia
34307
+ * @param {string} hospitalId
34308
+ * @param {string} hospitalSpecialtyId
34309
+ * @param {string} mediaId
34310
+ * @param {*} [options] Override http request option.
34311
+ * @throws {RequiredError}
34312
+ */
34313
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
34314
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options);
34315
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34316
+ },
34317
+ /**
34318
+ *
34319
+ * @summary Get HospitalServiceMedia.
34320
+ * @param {string} hospitalId
34321
+ * @param {string} hospitalSpecialtyId
34322
+ * @param {string} mediaId
34323
+ * @param {*} [options] Override http request option.
34324
+ * @throws {RequiredError}
34325
+ */
34326
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
34327
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options);
34328
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34329
+ },
34330
+ /**
34331
+ *
34332
+ * @summary Update HospitalServiceMedia.
34333
+ * @param {string} hospitalId
34334
+ * @param {string} hospitalSpecialtyId
34335
+ * @param {string} mediaId
34336
+ * @param {UpdateMediaCommand} [updateMediaCommand]
34337
+ * @param {*} [options] Override http request option.
34338
+ * @throws {RequiredError}
34339
+ */
34340
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
34341
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options);
34342
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34343
+ },
34344
+ /**
34345
+ *
34346
+ * @summary Create HospitalServiceMedia.
34347
+ * @param {string} hospitalId
34348
+ * @param {string} hospitalSpecialtyId
34349
+ * @param {CreateMediaCommand} [createMediaCommand]
34350
+ * @param {*} [options] Override http request option.
34351
+ * @throws {RequiredError}
34352
+ */
34353
+ async apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
34354
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options);
34355
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34356
+ },
33893
34357
  /**
33894
34358
  *
33895
34359
  * @summary Create HospitalSpecialty.
@@ -34697,6 +35161,71 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
34697
35161
  apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId: string, hospitalName?: string, hospitalSlug?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, hospitalSpecialtySlug?: string, title?: string, marketingType?: MarketingType, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, includeServices?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalSpecialtiesModel> {
34698
35162
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
34699
35163
  },
35164
+ /**
35165
+ *
35166
+ * @summary Get all HospitalServiceMedias.
35167
+ * @param {string} hospitalId
35168
+ * @param {string} hospitalSpecialtyId
35169
+ * @param {string} [id]
35170
+ * @param {MediaType} [mediaType]
35171
+ * @param {number} [page]
35172
+ * @param {number} [limit]
35173
+ * @param {Date} [lastRetrieved]
35174
+ * @param {*} [options] Override http request option.
35175
+ * @throws {RequiredError}
35176
+ */
35177
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
35178
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
35179
+ },
35180
+ /**
35181
+ *
35182
+ * @summary Delete HospitalServiceMedia
35183
+ * @param {string} hospitalId
35184
+ * @param {string} hospitalSpecialtyId
35185
+ * @param {string} mediaId
35186
+ * @param {*} [options] Override http request option.
35187
+ * @throws {RequiredError}
35188
+ */
35189
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: any): AxiosPromise<boolean> {
35190
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(axios, basePath));
35191
+ },
35192
+ /**
35193
+ *
35194
+ * @summary Get HospitalServiceMedia.
35195
+ * @param {string} hospitalId
35196
+ * @param {string} hospitalSpecialtyId
35197
+ * @param {string} mediaId
35198
+ * @param {*} [options] Override http request option.
35199
+ * @throws {RequiredError}
35200
+ */
35201
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
35202
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(axios, basePath));
35203
+ },
35204
+ /**
35205
+ *
35206
+ * @summary Update HospitalServiceMedia.
35207
+ * @param {string} hospitalId
35208
+ * @param {string} hospitalSpecialtyId
35209
+ * @param {string} mediaId
35210
+ * @param {UpdateMediaCommand} [updateMediaCommand]
35211
+ * @param {*} [options] Override http request option.
35212
+ * @throws {RequiredError}
35213
+ */
35214
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: any): AxiosPromise<MediaModel> {
35215
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options).then((request) => request(axios, basePath));
35216
+ },
35217
+ /**
35218
+ *
35219
+ * @summary Create HospitalServiceMedia.
35220
+ * @param {string} hospitalId
35221
+ * @param {string} hospitalSpecialtyId
35222
+ * @param {CreateMediaCommand} [createMediaCommand]
35223
+ * @param {*} [options] Override http request option.
35224
+ * @throws {RequiredError}
35225
+ */
35226
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel> {
35227
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then((request) => request(axios, basePath));
35228
+ },
34700
35229
  /**
34701
35230
  *
34702
35231
  * @summary Create HospitalSpecialty.
@@ -35549,6 +36078,81 @@ export class HospitalsApi extends BaseAPI {
35549
36078
  return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
35550
36079
  }
35551
36080
 
36081
+ /**
36082
+ *
36083
+ * @summary Get all HospitalServiceMedias.
36084
+ * @param {string} hospitalId
36085
+ * @param {string} hospitalSpecialtyId
36086
+ * @param {string} [id]
36087
+ * @param {MediaType} [mediaType]
36088
+ * @param {number} [page]
36089
+ * @param {number} [limit]
36090
+ * @param {Date} [lastRetrieved]
36091
+ * @param {*} [options] Override http request option.
36092
+ * @throws {RequiredError}
36093
+ * @memberof HospitalsApi
36094
+ */
36095
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
36096
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
36097
+ }
36098
+
36099
+ /**
36100
+ *
36101
+ * @summary Delete HospitalServiceMedia
36102
+ * @param {string} hospitalId
36103
+ * @param {string} hospitalSpecialtyId
36104
+ * @param {string} mediaId
36105
+ * @param {*} [options] Override http request option.
36106
+ * @throws {RequiredError}
36107
+ * @memberof HospitalsApi
36108
+ */
36109
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig) {
36110
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(this.axios, this.basePath));
36111
+ }
36112
+
36113
+ /**
36114
+ *
36115
+ * @summary Get HospitalServiceMedia.
36116
+ * @param {string} hospitalId
36117
+ * @param {string} hospitalSpecialtyId
36118
+ * @param {string} mediaId
36119
+ * @param {*} [options] Override http request option.
36120
+ * @throws {RequiredError}
36121
+ * @memberof HospitalsApi
36122
+ */
36123
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig) {
36124
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(this.axios, this.basePath));
36125
+ }
36126
+
36127
+ /**
36128
+ *
36129
+ * @summary Update HospitalServiceMedia.
36130
+ * @param {string} hospitalId
36131
+ * @param {string} hospitalSpecialtyId
36132
+ * @param {string} mediaId
36133
+ * @param {UpdateMediaCommand} [updateMediaCommand]
36134
+ * @param {*} [options] Override http request option.
36135
+ * @throws {RequiredError}
36136
+ * @memberof HospitalsApi
36137
+ */
36138
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig) {
36139
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options).then((request) => request(this.axios, this.basePath));
36140
+ }
36141
+
36142
+ /**
36143
+ *
36144
+ * @summary Create HospitalServiceMedia.
36145
+ * @param {string} hospitalId
36146
+ * @param {string} hospitalSpecialtyId
36147
+ * @param {CreateMediaCommand} [createMediaCommand]
36148
+ * @param {*} [options] Override http request option.
36149
+ * @throws {RequiredError}
36150
+ * @memberof HospitalsApi
36151
+ */
36152
+ public apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId: string, hospitalSpecialtyId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig) {
36153
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then((request) => request(this.axios, this.basePath));
36154
+ }
36155
+
35552
36156
  /**
35553
36157
  *
35554
36158
  * @summary Create HospitalSpecialty.
@@ -40901,13 +41505,15 @@ export const ServiceReviewsApiAxiosParamCreator = function (configuration?: Conf
40901
41505
  * @param {boolean} [recommended]
40902
41506
  * @param {number} [rate]
40903
41507
  * @param {ReviewType} [reviewType]
41508
+ * @param {string} [languageCode]
41509
+ * @param {boolean} [returnDefaultValue]
40904
41510
  * @param {number} [page]
40905
41511
  * @param {number} [limit]
40906
41512
  * @param {Date} [lastRetrieved]
40907
41513
  * @param {*} [options] Override http request option.
40908
41514
  * @throws {RequiredError}
40909
41515
  */
40910
- apiV1ServicereviewsGet: async (serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, gender?: Gender, recommended?: boolean, rate?: number, reviewType?: ReviewType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41516
+ apiV1ServicereviewsGet: async (serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, gender?: Gender, recommended?: boolean, rate?: number, reviewType?: ReviewType, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40911
41517
  const localVarPath = `/api/v1/servicereviews`;
40912
41518
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
40913
41519
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -40956,6 +41562,14 @@ export const ServiceReviewsApiAxiosParamCreator = function (configuration?: Conf
40956
41562
  localVarQueryParameter['ReviewType'] = reviewType;
40957
41563
  }
40958
41564
 
41565
+ if (languageCode !== undefined) {
41566
+ localVarQueryParameter['LanguageCode'] = languageCode;
41567
+ }
41568
+
41569
+ if (returnDefaultValue !== undefined) {
41570
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
41571
+ }
41572
+
40959
41573
  if (page !== undefined) {
40960
41574
  localVarQueryParameter['page'] = page;
40961
41575
  }
@@ -41060,10 +41674,12 @@ export const ServiceReviewsApiAxiosParamCreator = function (configuration?: Conf
41060
41674
  /**
41061
41675
  *
41062
41676
  * @param {string} serviceReviewId
41677
+ * @param {string} [languageCode]
41678
+ * @param {boolean} [returnDefaultValue]
41063
41679
  * @param {*} [options] Override http request option.
41064
41680
  * @throws {RequiredError}
41065
41681
  */
41066
- apiV1ServicereviewsServiceReviewIdGet: async (serviceReviewId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41682
+ apiV1ServicereviewsServiceReviewIdGet: async (serviceReviewId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41067
41683
  // verify required parameter 'serviceReviewId' is not null or undefined
41068
41684
  assertParamExists('apiV1ServicereviewsServiceReviewIdGet', 'serviceReviewId', serviceReviewId)
41069
41685
  const localVarPath = `/api/v1/servicereviews/{serviceReviewId}`
@@ -41083,6 +41699,14 @@ export const ServiceReviewsApiAxiosParamCreator = function (configuration?: Conf
41083
41699
  // oauth required
41084
41700
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
41085
41701
 
41702
+ if (languageCode !== undefined) {
41703
+ localVarQueryParameter['languageCode'] = languageCode;
41704
+ }
41705
+
41706
+ if (returnDefaultValue !== undefined) {
41707
+ localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
41708
+ }
41709
+
41086
41710
 
41087
41711
 
41088
41712
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -41394,14 +42018,16 @@ export const ServiceReviewsApiFp = function(configuration?: Configuration) {
41394
42018
  * @param {boolean} [recommended]
41395
42019
  * @param {number} [rate]
41396
42020
  * @param {ReviewType} [reviewType]
42021
+ * @param {string} [languageCode]
42022
+ * @param {boolean} [returnDefaultValue]
41397
42023
  * @param {number} [page]
41398
42024
  * @param {number} [limit]
41399
42025
  * @param {Date} [lastRetrieved]
41400
42026
  * @param {*} [options] Override http request option.
41401
42027
  * @throws {RequiredError}
41402
42028
  */
41403
- async apiV1ServicereviewsGet(serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, gender?: Gender, recommended?: boolean, rate?: number, reviewType?: ReviewType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewsModel>> {
41404
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, page, limit, lastRetrieved, options);
42029
+ async apiV1ServicereviewsGet(serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, gender?: Gender, recommended?: boolean, rate?: number, reviewType?: ReviewType, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewsModel>> {
42030
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, returnDefaultValue, page, limit, lastRetrieved, options);
41405
42031
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41406
42032
  },
41407
42033
  /**
@@ -41429,11 +42055,13 @@ export const ServiceReviewsApiFp = function(configuration?: Configuration) {
41429
42055
  /**
41430
42056
  *
41431
42057
  * @param {string} serviceReviewId
42058
+ * @param {string} [languageCode]
42059
+ * @param {boolean} [returnDefaultValue]
41432
42060
  * @param {*} [options] Override http request option.
41433
42061
  * @throws {RequiredError}
41434
42062
  */
41435
- async apiV1ServicereviewsServiceReviewIdGet(serviceReviewId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewModel>> {
41436
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, options);
42063
+ async apiV1ServicereviewsServiceReviewIdGet(serviceReviewId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceReviewModel>> {
42064
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, languageCode, returnDefaultValue, options);
41437
42065
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41438
42066
  },
41439
42067
  /**
@@ -41534,14 +42162,16 @@ export const ServiceReviewsApiFactory = function (configuration?: Configuration,
41534
42162
  * @param {boolean} [recommended]
41535
42163
  * @param {number} [rate]
41536
42164
  * @param {ReviewType} [reviewType]
42165
+ * @param {string} [languageCode]
42166
+ * @param {boolean} [returnDefaultValue]
41537
42167
  * @param {number} [page]
41538
42168
  * @param {number} [limit]
41539
42169
  * @param {Date} [lastRetrieved]
41540
42170
  * @param {*} [options] Override http request option.
41541
42171
  * @throws {RequiredError}
41542
42172
  */
41543
- apiV1ServicereviewsGet(serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, gender?: Gender, recommended?: boolean, rate?: number, reviewType?: ReviewType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ServiceReviewsModel> {
41544
- return localVarFp.apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
42173
+ apiV1ServicereviewsGet(serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, gender?: Gender, recommended?: boolean, rate?: number, reviewType?: ReviewType, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ServiceReviewsModel> {
42174
+ return localVarFp.apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
41545
42175
  },
41546
42176
  /**
41547
42177
  *
@@ -41566,11 +42196,13 @@ export const ServiceReviewsApiFactory = function (configuration?: Configuration,
41566
42196
  /**
41567
42197
  *
41568
42198
  * @param {string} serviceReviewId
42199
+ * @param {string} [languageCode]
42200
+ * @param {boolean} [returnDefaultValue]
41569
42201
  * @param {*} [options] Override http request option.
41570
42202
  * @throws {RequiredError}
41571
42203
  */
41572
- apiV1ServicereviewsServiceReviewIdGet(serviceReviewId: string, options?: any): AxiosPromise<ServiceReviewModel> {
41573
- return localVarFp.apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, options).then((request) => request(axios, basePath));
42204
+ apiV1ServicereviewsServiceReviewIdGet(serviceReviewId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<ServiceReviewModel> {
42205
+ return localVarFp.apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
41574
42206
  },
41575
42207
  /**
41576
42208
  *
@@ -41664,6 +42296,8 @@ export class ServiceReviewsApi extends BaseAPI {
41664
42296
  * @param {boolean} [recommended]
41665
42297
  * @param {number} [rate]
41666
42298
  * @param {ReviewType} [reviewType]
42299
+ * @param {string} [languageCode]
42300
+ * @param {boolean} [returnDefaultValue]
41667
42301
  * @param {number} [page]
41668
42302
  * @param {number} [limit]
41669
42303
  * @param {Date} [lastRetrieved]
@@ -41671,8 +42305,8 @@ export class ServiceReviewsApi extends BaseAPI {
41671
42305
  * @throws {RequiredError}
41672
42306
  * @memberof ServiceReviewsApi
41673
42307
  */
41674
- public apiV1ServicereviewsGet(serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, gender?: Gender, recommended?: boolean, rate?: number, reviewType?: ReviewType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
41675
- return ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
42308
+ public apiV1ServicereviewsGet(serviceId?: string, serviceName?: string, patientId?: string, patientName?: string, gender?: Gender, recommended?: boolean, rate?: number, reviewType?: ReviewType, languageCode?: string, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
42309
+ return ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
41676
42310
  }
41677
42311
 
41678
42312
  /**
@@ -41702,12 +42336,14 @@ export class ServiceReviewsApi extends BaseAPI {
41702
42336
  /**
41703
42337
  *
41704
42338
  * @param {string} serviceReviewId
42339
+ * @param {string} [languageCode]
42340
+ * @param {boolean} [returnDefaultValue]
41705
42341
  * @param {*} [options] Override http request option.
41706
42342
  * @throws {RequiredError}
41707
42343
  * @memberof ServiceReviewsApi
41708
42344
  */
41709
- public apiV1ServicereviewsServiceReviewIdGet(serviceReviewId: string, options?: AxiosRequestConfig) {
41710
- return ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, options).then((request) => request(this.axios, this.basePath));
42345
+ public apiV1ServicereviewsServiceReviewIdGet(serviceReviewId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
42346
+ return ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
41711
42347
  }
41712
42348
 
41713
42349
  /**
@@ -42792,6 +43428,104 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
42792
43428
  options: localVarRequestOptions,
42793
43429
  };
42794
43430
  },
43431
+ /**
43432
+ *
43433
+ * @summary Get all Specialties Simple.
43434
+ * @param {string} [id]
43435
+ * @param {string} [name]
43436
+ * @param {string} [description]
43437
+ * @param {string} [specialtyTypeId]
43438
+ * @param {string} [hospitalId]
43439
+ * @param {Date} [created]
43440
+ * @param {string} [languageCode]
43441
+ * @param {Array<string>} [ids]
43442
+ * @param {boolean} [returnDefaultValue]
43443
+ * @param {number} [page]
43444
+ * @param {number} [limit]
43445
+ * @param {Date} [lastRetrieved]
43446
+ * @param {*} [options] Override http request option.
43447
+ * @throws {RequiredError}
43448
+ */
43449
+ apiV1SpecialtiesSimpleGet: async (id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43450
+ const localVarPath = `/api/v1/specialties/simple`;
43451
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43452
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43453
+ let baseOptions;
43454
+ if (configuration) {
43455
+ baseOptions = configuration.baseOptions;
43456
+ }
43457
+
43458
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
43459
+ const localVarHeaderParameter = {} as any;
43460
+ const localVarQueryParameter = {} as any;
43461
+
43462
+ // authentication oauth2 required
43463
+ // oauth required
43464
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
43465
+
43466
+ if (id !== undefined) {
43467
+ localVarQueryParameter['Id'] = id;
43468
+ }
43469
+
43470
+ if (name !== undefined) {
43471
+ localVarQueryParameter['Name'] = name;
43472
+ }
43473
+
43474
+ if (description !== undefined) {
43475
+ localVarQueryParameter['Description'] = description;
43476
+ }
43477
+
43478
+ if (specialtyTypeId !== undefined) {
43479
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
43480
+ }
43481
+
43482
+ if (hospitalId !== undefined) {
43483
+ localVarQueryParameter['HospitalId'] = hospitalId;
43484
+ }
43485
+
43486
+ if (created !== undefined) {
43487
+ localVarQueryParameter['Created'] = (created as any instanceof Date) ?
43488
+ (created as any).toISOString() :
43489
+ created;
43490
+ }
43491
+
43492
+ if (languageCode !== undefined) {
43493
+ localVarQueryParameter['LanguageCode'] = languageCode;
43494
+ }
43495
+
43496
+ if (ids) {
43497
+ localVarQueryParameter['Ids'] = ids;
43498
+ }
43499
+
43500
+ if (returnDefaultValue !== undefined) {
43501
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
43502
+ }
43503
+
43504
+ if (page !== undefined) {
43505
+ localVarQueryParameter['page'] = page;
43506
+ }
43507
+
43508
+ if (limit !== undefined) {
43509
+ localVarQueryParameter['limit'] = limit;
43510
+ }
43511
+
43512
+ if (lastRetrieved !== undefined) {
43513
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
43514
+ (lastRetrieved as any).toISOString() :
43515
+ lastRetrieved;
43516
+ }
43517
+
43518
+
43519
+
43520
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43521
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43522
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43523
+
43524
+ return {
43525
+ url: toPathString(localVarUrlObj),
43526
+ options: localVarRequestOptions,
43527
+ };
43528
+ },
42795
43529
  /**
42796
43530
  *
42797
43531
  * @param {string} slug
@@ -43247,6 +43981,28 @@ export const SpecialtiesApiFp = function(configuration?: Configuration) {
43247
43981
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtiesPost(createSpecialtyCommand, options);
43248
43982
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43249
43983
  },
43984
+ /**
43985
+ *
43986
+ * @summary Get all Specialties Simple.
43987
+ * @param {string} [id]
43988
+ * @param {string} [name]
43989
+ * @param {string} [description]
43990
+ * @param {string} [specialtyTypeId]
43991
+ * @param {string} [hospitalId]
43992
+ * @param {Date} [created]
43993
+ * @param {string} [languageCode]
43994
+ * @param {Array<string>} [ids]
43995
+ * @param {boolean} [returnDefaultValue]
43996
+ * @param {number} [page]
43997
+ * @param {number} [limit]
43998
+ * @param {Date} [lastRetrieved]
43999
+ * @param {*} [options] Override http request option.
44000
+ * @throws {RequiredError}
44001
+ */
44002
+ async apiV1SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SpecialtiesSimpleModel>> {
44003
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options);
44004
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
44005
+ },
43250
44006
  /**
43251
44007
  *
43252
44008
  * @param {string} slug
@@ -43401,6 +44157,27 @@ export const SpecialtiesApiFactory = function (configuration?: Configuration, ba
43401
44157
  apiV1SpecialtiesPost(createSpecialtyCommand?: CreateSpecialtyCommand, options?: any): AxiosPromise<SpecialtyModel> {
43402
44158
  return localVarFp.apiV1SpecialtiesPost(createSpecialtyCommand, options).then((request) => request(axios, basePath));
43403
44159
  },
44160
+ /**
44161
+ *
44162
+ * @summary Get all Specialties Simple.
44163
+ * @param {string} [id]
44164
+ * @param {string} [name]
44165
+ * @param {string} [description]
44166
+ * @param {string} [specialtyTypeId]
44167
+ * @param {string} [hospitalId]
44168
+ * @param {Date} [created]
44169
+ * @param {string} [languageCode]
44170
+ * @param {Array<string>} [ids]
44171
+ * @param {boolean} [returnDefaultValue]
44172
+ * @param {number} [page]
44173
+ * @param {number} [limit]
44174
+ * @param {Date} [lastRetrieved]
44175
+ * @param {*} [options] Override http request option.
44176
+ * @throws {RequiredError}
44177
+ */
44178
+ apiV1SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<SpecialtiesSimpleModel> {
44179
+ return localVarFp.apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
44180
+ },
43404
44181
  /**
43405
44182
  *
43406
44183
  * @param {string} slug
@@ -43550,6 +44327,29 @@ export class SpecialtiesApi extends BaseAPI {
43550
44327
  return SpecialtiesApiFp(this.configuration).apiV1SpecialtiesPost(createSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
43551
44328
  }
43552
44329
 
44330
+ /**
44331
+ *
44332
+ * @summary Get all Specialties Simple.
44333
+ * @param {string} [id]
44334
+ * @param {string} [name]
44335
+ * @param {string} [description]
44336
+ * @param {string} [specialtyTypeId]
44337
+ * @param {string} [hospitalId]
44338
+ * @param {Date} [created]
44339
+ * @param {string} [languageCode]
44340
+ * @param {Array<string>} [ids]
44341
+ * @param {boolean} [returnDefaultValue]
44342
+ * @param {number} [page]
44343
+ * @param {number} [limit]
44344
+ * @param {Date} [lastRetrieved]
44345
+ * @param {*} [options] Override http request option.
44346
+ * @throws {RequiredError}
44347
+ * @memberof SpecialtiesApi
44348
+ */
44349
+ public apiV1SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
44350
+ return SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
44351
+ }
44352
+
43553
44353
  /**
43554
44354
  *
43555
44355
  * @param {string} slug