ch-api-client-typescript2 2.9.5 → 2.9.8

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
@@ -364,44 +364,6 @@ export interface AdminMessageModel {
364
364
  */
365
365
  'updated_at'?: number;
366
366
  }
367
- /**
368
- *
369
- * @export
370
- * @interface ApproveBookingCommand
371
- */
372
- export interface ApproveBookingCommand {
373
- /**
374
- *
375
- * @type {Date}
376
- * @memberof ApproveBookingCommand
377
- */
378
- 'confirmedDateStart'?: Date | null;
379
- /**
380
- *
381
- * @type {Date}
382
- * @memberof ApproveBookingCommand
383
- */
384
- 'confirmedDateEnd'?: Date | null;
385
- }
386
- /**
387
- *
388
- * @export
389
- * @interface ApproveConsultationCommand
390
- */
391
- export interface ApproveConsultationCommand {
392
- /**
393
- *
394
- * @type {Date}
395
- * @memberof ApproveConsultationCommand
396
- */
397
- 'confirmedDateStart'?: Date | null;
398
- /**
399
- *
400
- * @type {Date}
401
- * @memberof ApproveConsultationCommand
402
- */
403
- 'confirmedDateEnd'?: Date | null;
404
- }
405
367
  /**
406
368
  *
407
369
  * @export
@@ -6246,6 +6208,30 @@ export interface HospitalModel {
6246
6208
  * @memberof HospitalModel
6247
6209
  */
6248
6210
  'languageCode'?: string | null;
6211
+ /**
6212
+ *
6213
+ * @type {string}
6214
+ * @memberof HospitalModel
6215
+ */
6216
+ 'contactTel'?: string | null;
6217
+ /**
6218
+ *
6219
+ * @type {string}
6220
+ * @memberof HospitalModel
6221
+ */
6222
+ 'contactEmail'?: string | null;
6223
+ /**
6224
+ *
6225
+ * @type {Array<WorkingDay>}
6226
+ * @memberof HospitalModel
6227
+ */
6228
+ 'hospitalWorkingDays'?: Array<WorkingDay> | null;
6229
+ /**
6230
+ *
6231
+ * @type {Array<SnsHandle>}
6232
+ * @memberof HospitalModel
6233
+ */
6234
+ 'hospitalSnsHandles'?: Array<SnsHandle> | null;
6249
6235
  }
6250
6236
  /**
6251
6237
  *
@@ -6385,6 +6371,12 @@ export interface HospitalServiceItemModel {
6385
6371
  * @memberof HospitalServiceItemModel
6386
6372
  */
6387
6373
  'order'?: number;
6374
+ /**
6375
+ *
6376
+ * @type {Array<LocalizedUrlModel>}
6377
+ * @memberof HospitalServiceItemModel
6378
+ */
6379
+ 'localizedUrls'?: Array<LocalizedUrlModel> | null;
6388
6380
  /**
6389
6381
  *
6390
6382
  * @type {boolean}
@@ -6554,6 +6546,12 @@ export interface HospitalServiceModel {
6554
6546
  * @memberof HospitalServiceModel
6555
6547
  */
6556
6548
  'order'?: number;
6549
+ /**
6550
+ *
6551
+ * @type {Array<LocalizedUrlModel>}
6552
+ * @memberof HospitalServiceModel
6553
+ */
6554
+ 'localizedUrls'?: Array<LocalizedUrlModel> | null;
6557
6555
  /**
6558
6556
  *
6559
6557
  * @type {boolean}
@@ -6635,6 +6633,25 @@ export interface HospitalSimpleItemModel {
6635
6633
  */
6636
6634
  'confirmed'?: boolean;
6637
6635
  }
6636
+ /**
6637
+ *
6638
+ * @export
6639
+ * @interface HospitalSnsHandlesModel
6640
+ */
6641
+ export interface HospitalSnsHandlesModel {
6642
+ /**
6643
+ *
6644
+ * @type {Array<SnsHandleModel>}
6645
+ * @memberof HospitalSnsHandlesModel
6646
+ */
6647
+ 'items'?: Array<SnsHandleModel> | null;
6648
+ /**
6649
+ *
6650
+ * @type {PagedListMetaData}
6651
+ * @memberof HospitalSnsHandlesModel
6652
+ */
6653
+ 'metaData'?: PagedListMetaData;
6654
+ }
6638
6655
  /**
6639
6656
  *
6640
6657
  * @export
@@ -6811,6 +6828,12 @@ export interface HospitalSpecialtyItemModel {
6811
6828
  * @memberof HospitalSpecialtyItemModel
6812
6829
  */
6813
6830
  'backgroundThumbnail'?: string | null;
6831
+ /**
6832
+ *
6833
+ * @type {Array<LocalizedUrlModel>}
6834
+ * @memberof HospitalSpecialtyItemModel
6835
+ */
6836
+ 'localizedUrls'?: Array<LocalizedUrlModel> | null;
6814
6837
  /**
6815
6838
  *
6816
6839
  * @type {Array<MediaModel>}
@@ -6962,6 +6985,12 @@ export interface HospitalSpecialtyModel {
6962
6985
  * @memberof HospitalSpecialtyModel
6963
6986
  */
6964
6987
  'backgroundThumbnail'?: string | null;
6988
+ /**
6989
+ *
6990
+ * @type {Array<LocalizedUrlModel>}
6991
+ * @memberof HospitalSpecialtyModel
6992
+ */
6993
+ 'localizedUrls'?: Array<LocalizedUrlModel> | null;
6965
6994
  /**
6966
6995
  *
6967
6996
  * @type {Array<MediaModel>}
@@ -7023,6 +7052,12 @@ export interface HospitalSpecialtySimpleItemModel {
7023
7052
  * @memberof HospitalSpecialtySimpleItemModel
7024
7053
  */
7025
7054
  'confirmed'?: boolean;
7055
+ /**
7056
+ *
7057
+ * @type {Array<LocalizedUrlModel>}
7058
+ * @memberof HospitalSpecialtySimpleItemModel
7059
+ */
7060
+ 'localizedUrls'?: Array<LocalizedUrlModel> | null;
7026
7061
  }
7027
7062
  /**
7028
7063
  *
@@ -8171,44 +8206,6 @@ export enum RefundPolicy {
8171
8206
  PartialRefundable = 'PartialRefundable'
8172
8207
  }
8173
8208
 
8174
- /**
8175
- *
8176
- * @export
8177
- * @interface RejectBookingCommand
8178
- */
8179
- export interface RejectBookingCommand {
8180
- /**
8181
- *
8182
- * @type {RejectReason}
8183
- * @memberof RejectBookingCommand
8184
- */
8185
- 'rejectReason'?: RejectReason;
8186
- /**
8187
- *
8188
- * @type {string}
8189
- * @memberof RejectBookingCommand
8190
- */
8191
- 'rejectComment'?: string | null;
8192
- }
8193
- /**
8194
- *
8195
- * @export
8196
- * @interface RejectConsultationCommand
8197
- */
8198
- export interface RejectConsultationCommand {
8199
- /**
8200
- *
8201
- * @type {RejectReason}
8202
- * @memberof RejectConsultationCommand
8203
- */
8204
- 'rejectReason'?: RejectReason;
8205
- /**
8206
- *
8207
- * @type {string}
8208
- * @memberof RejectConsultationCommand
8209
- */
8210
- 'rejectComment'?: string | null;
8211
- }
8212
8209
  /**
8213
8210
  *
8214
8211
  * @export
@@ -8772,6 +8769,31 @@ export interface ServiceReviewsModel {
8772
8769
  */
8773
8770
  'metaData'?: PagedListMetaData;
8774
8771
  }
8772
+ /**
8773
+ *
8774
+ * @export
8775
+ * @interface SnsHandle
8776
+ */
8777
+ export interface SnsHandle {
8778
+ /**
8779
+ *
8780
+ * @type {string}
8781
+ * @memberof SnsHandle
8782
+ */
8783
+ 'id'?: string;
8784
+ /**
8785
+ *
8786
+ * @type {SnsType}
8787
+ * @memberof SnsHandle
8788
+ */
8789
+ 'snsType'?: SnsType;
8790
+ /**
8791
+ *
8792
+ * @type {string}
8793
+ * @memberof SnsHandle
8794
+ */
8795
+ 'handle'?: string | null;
8796
+ }
8775
8797
  /**
8776
8798
  *
8777
8799
  * @export
@@ -8806,7 +8828,9 @@ export interface SnsHandleModel {
8806
8828
  export enum SnsType {
8807
8829
  Twitter = 'Twitter',
8808
8830
  Facebook = 'Facebook',
8809
- Instagram = 'Instagram'
8831
+ Instagram = 'Instagram',
8832
+ LinkedIn = 'LinkedIn',
8833
+ Youtube = 'Youtube'
8810
8834
  }
8811
8835
 
8812
8836
  /**
@@ -8925,6 +8949,12 @@ export interface SpecialtyItemModel {
8925
8949
  * @memberof SpecialtyItemModel
8926
8950
  */
8927
8951
  'confirmed'?: boolean;
8952
+ /**
8953
+ *
8954
+ * @type {Array<LocalizedUrlModel>}
8955
+ * @memberof SpecialtyItemModel
8956
+ */
8957
+ 'localizedUrls'?: Array<LocalizedUrlModel> | null;
8928
8958
  /**
8929
8959
  *
8930
8960
  * @type {AuditableEntity}
@@ -9010,6 +9040,12 @@ export interface SpecialtyModel {
9010
9040
  * @memberof SpecialtyModel
9011
9041
  */
9012
9042
  'confirmed'?: boolean;
9043
+ /**
9044
+ *
9045
+ * @type {Array<LocalizedUrlModel>}
9046
+ * @memberof SpecialtyModel
9047
+ */
9048
+ 'localizedUrls'?: Array<LocalizedUrlModel> | null;
9013
9049
  /**
9014
9050
  *
9015
9051
  * @type {AuditableEntity}
@@ -9947,6 +9983,136 @@ export interface UserModel {
9947
9983
  */
9948
9984
  'locations'?: Array<UserLocationModel> | null;
9949
9985
  }
9986
+ /**
9987
+ *
9988
+ * @export
9989
+ * @interface WorkingDay
9990
+ */
9991
+ export interface WorkingDay {
9992
+ /**
9993
+ *
9994
+ * @type {string}
9995
+ * @memberof WorkingDay
9996
+ */
9997
+ 'id'?: string;
9998
+ /**
9999
+ *
10000
+ * @type {string}
10001
+ * @memberof WorkingDay
10002
+ */
10003
+ 'dayOfWeek'?: string | null;
10004
+ /**
10005
+ *
10006
+ * @type {Date}
10007
+ * @memberof WorkingDay
10008
+ */
10009
+ 'timeFrom'?: Date;
10010
+ /**
10011
+ *
10012
+ * @type {Date}
10013
+ * @memberof WorkingDay
10014
+ */
10015
+ 'timeTo'?: Date;
10016
+ /**
10017
+ *
10018
+ * @type {boolean}
10019
+ * @memberof WorkingDay
10020
+ */
10021
+ 'checkHoliday'?: boolean;
10022
+ }
10023
+ /**
10024
+ *
10025
+ * @export
10026
+ * @interface WorkingDayItemModel
10027
+ */
10028
+ export interface WorkingDayItemModel {
10029
+ /**
10030
+ *
10031
+ * @type {string}
10032
+ * @memberof WorkingDayItemModel
10033
+ */
10034
+ 'id'?: string;
10035
+ /**
10036
+ *
10037
+ * @type {string}
10038
+ * @memberof WorkingDayItemModel
10039
+ */
10040
+ 'dayOfWeek'?: string | null;
10041
+ /**
10042
+ *
10043
+ * @type {Date}
10044
+ * @memberof WorkingDayItemModel
10045
+ */
10046
+ 'timeFrom'?: Date;
10047
+ /**
10048
+ *
10049
+ * @type {Date}
10050
+ * @memberof WorkingDayItemModel
10051
+ */
10052
+ 'timeTo'?: Date;
10053
+ /**
10054
+ *
10055
+ * @type {boolean}
10056
+ * @memberof WorkingDayItemModel
10057
+ */
10058
+ 'checkHoliday'?: boolean;
10059
+ }
10060
+ /**
10061
+ *
10062
+ * @export
10063
+ * @interface WorkingDayModel
10064
+ */
10065
+ export interface WorkingDayModel {
10066
+ /**
10067
+ *
10068
+ * @type {string}
10069
+ * @memberof WorkingDayModel
10070
+ */
10071
+ 'id'?: string;
10072
+ /**
10073
+ *
10074
+ * @type {string}
10075
+ * @memberof WorkingDayModel
10076
+ */
10077
+ 'dayOfWeek'?: string | null;
10078
+ /**
10079
+ *
10080
+ * @type {Date}
10081
+ * @memberof WorkingDayModel
10082
+ */
10083
+ 'timeFrom'?: Date;
10084
+ /**
10085
+ *
10086
+ * @type {Date}
10087
+ * @memberof WorkingDayModel
10088
+ */
10089
+ 'timeTo'?: Date;
10090
+ /**
10091
+ *
10092
+ * @type {boolean}
10093
+ * @memberof WorkingDayModel
10094
+ */
10095
+ 'checkHoliday'?: boolean;
10096
+ }
10097
+ /**
10098
+ *
10099
+ * @export
10100
+ * @interface WorkingDaysModel
10101
+ */
10102
+ export interface WorkingDaysModel {
10103
+ /**
10104
+ *
10105
+ * @type {Array<WorkingDayItemModel>}
10106
+ * @memberof WorkingDaysModel
10107
+ */
10108
+ 'items'?: Array<WorkingDayItemModel> | null;
10109
+ /**
10110
+ *
10111
+ * @type {PagedListMetaData}
10112
+ * @memberof WorkingDaysModel
10113
+ */
10114
+ 'metaData'?: PagedListMetaData;
10115
+ }
9950
10116
 
9951
10117
  /**
9952
10118
  * AboutUsApi - axios parameter creator
@@ -9954,50 +10120,6 @@ export interface UserModel {
9954
10120
  */
9955
10121
  export const AboutUsApiAxiosParamCreator = function (configuration?: Configuration) {
9956
10122
  return {
9957
- /**
9958
- *
9959
- * @summary Get AboutUs.
9960
- * @param {string} aboutUsId
9961
- * @param {string} [languageCode]
9962
- * @param {boolean} [returnDefaultValue]
9963
- * @param {*} [options] Override http request option.
9964
- * @throws {RequiredError}
9965
- */
9966
- apiV2AboutusAboutUsIdGet: async (aboutUsId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9967
- // verify required parameter 'aboutUsId' is not null or undefined
9968
- assertParamExists('apiV2AboutusAboutUsIdGet', 'aboutUsId', aboutUsId)
9969
- const localVarPath = `/api/v2/aboutus/{aboutUsId}`
9970
- .replace(`{${"aboutUsId"}}`, encodeURIComponent(String(aboutUsId)));
9971
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
9972
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9973
- let baseOptions;
9974
- if (configuration) {
9975
- baseOptions = configuration.baseOptions;
9976
- }
9977
-
9978
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9979
- const localVarHeaderParameter = {} as any;
9980
- const localVarQueryParameter = {} as any;
9981
-
9982
- if (languageCode !== undefined) {
9983
- localVarQueryParameter['languageCode'] = languageCode;
9984
- }
9985
-
9986
- if (returnDefaultValue !== undefined) {
9987
- localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
9988
- }
9989
-
9990
-
9991
-
9992
- setSearchParams(localVarUrlObj, localVarQueryParameter);
9993
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9994
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9995
-
9996
- return {
9997
- url: toPathString(localVarUrlObj),
9998
- options: localVarRequestOptions,
9999
- };
10000
- },
10001
10123
  /**
10002
10124
  *
10003
10125
  * @summary Get all AboutUsList.
@@ -10101,6 +10223,50 @@ export const AboutUsApiAxiosParamCreator = function (configuration?: Configurati
10101
10223
 
10102
10224
 
10103
10225
 
10226
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10227
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10228
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10229
+
10230
+ return {
10231
+ url: toPathString(localVarUrlObj),
10232
+ options: localVarRequestOptions,
10233
+ };
10234
+ },
10235
+ /**
10236
+ *
10237
+ * @summary Get AboutUs.
10238
+ * @param {string} hospitalId
10239
+ * @param {string} [languageCode]
10240
+ * @param {boolean} [returnDefaultValue]
10241
+ * @param {*} [options] Override http request option.
10242
+ * @throws {RequiredError}
10243
+ */
10244
+ apiV2AboutusHospitalIdGet: async (hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10245
+ // verify required parameter 'hospitalId' is not null or undefined
10246
+ assertParamExists('apiV2AboutusHospitalIdGet', 'hospitalId', hospitalId)
10247
+ const localVarPath = `/api/v2/aboutus/{hospitalId}`
10248
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
10249
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10250
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10251
+ let baseOptions;
10252
+ if (configuration) {
10253
+ baseOptions = configuration.baseOptions;
10254
+ }
10255
+
10256
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10257
+ const localVarHeaderParameter = {} as any;
10258
+ const localVarQueryParameter = {} as any;
10259
+
10260
+ if (languageCode !== undefined) {
10261
+ localVarQueryParameter['languageCode'] = languageCode;
10262
+ }
10263
+
10264
+ if (returnDefaultValue !== undefined) {
10265
+ localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
10266
+ }
10267
+
10268
+
10269
+
10104
10270
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10105
10271
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10106
10272
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -10163,19 +10329,6 @@ export const AboutUsApiAxiosParamCreator = function (configuration?: Configurati
10163
10329
  export const AboutUsApiFp = function(configuration?: Configuration) {
10164
10330
  const localVarAxiosParamCreator = AboutUsApiAxiosParamCreator(configuration)
10165
10331
  return {
10166
- /**
10167
- *
10168
- * @summary Get AboutUs.
10169
- * @param {string} aboutUsId
10170
- * @param {string} [languageCode]
10171
- * @param {boolean} [returnDefaultValue]
10172
- * @param {*} [options] Override http request option.
10173
- * @throws {RequiredError}
10174
- */
10175
- async apiV2AboutusAboutUsIdGet(aboutUsId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AboutUsPageModel>> {
10176
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options);
10177
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10178
- },
10179
10332
  /**
10180
10333
  *
10181
10334
  * @summary Get all AboutUsList.
@@ -10202,6 +10355,19 @@ export const AboutUsApiFp = function(configuration?: Configuration) {
10202
10355
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options);
10203
10356
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10204
10357
  },
10358
+ /**
10359
+ *
10360
+ * @summary Get AboutUs.
10361
+ * @param {string} hospitalId
10362
+ * @param {string} [languageCode]
10363
+ * @param {boolean} [returnDefaultValue]
10364
+ * @param {*} [options] Override http request option.
10365
+ * @throws {RequiredError}
10366
+ */
10367
+ async apiV2AboutusHospitalIdGet(hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AboutUsPageModel>> {
10368
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AboutusHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options);
10369
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10370
+ },
10205
10371
  /**
10206
10372
  *
10207
10373
  * @param {string} slug
@@ -10224,18 +10390,6 @@ export const AboutUsApiFp = function(configuration?: Configuration) {
10224
10390
  export const AboutUsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
10225
10391
  const localVarFp = AboutUsApiFp(configuration)
10226
10392
  return {
10227
- /**
10228
- *
10229
- * @summary Get AboutUs.
10230
- * @param {string} aboutUsId
10231
- * @param {string} [languageCode]
10232
- * @param {boolean} [returnDefaultValue]
10233
- * @param {*} [options] Override http request option.
10234
- * @throws {RequiredError}
10235
- */
10236
- apiV2AboutusAboutUsIdGet(aboutUsId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<AboutUsPageModel> {
10237
- return localVarFp.apiV2AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
10238
- },
10239
10393
  /**
10240
10394
  *
10241
10395
  * @summary Get all AboutUsList.
@@ -10261,6 +10415,18 @@ export const AboutUsApiFactory = function (configuration?: Configuration, basePa
10261
10415
  apiV2AboutusGet(hospitalId?: string, hospitalName?: string, hospitalSlug?: string, overviewTitle?: string, normalizedOverviewTitle?: string, overview?: string, content?: string, customStyle?: string, background?: string, backgroundThumbnail?: string, languageCode?: string, returnDefaultValue?: boolean, confirmed?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AboutUsPagesModel> {
10262
10416
  return localVarFp.apiV2AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
10263
10417
  },
10418
+ /**
10419
+ *
10420
+ * @summary Get AboutUs.
10421
+ * @param {string} hospitalId
10422
+ * @param {string} [languageCode]
10423
+ * @param {boolean} [returnDefaultValue]
10424
+ * @param {*} [options] Override http request option.
10425
+ * @throws {RequiredError}
10426
+ */
10427
+ apiV2AboutusHospitalIdGet(hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<AboutUsPageModel> {
10428
+ return localVarFp.apiV2AboutusHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
10429
+ },
10264
10430
  /**
10265
10431
  *
10266
10432
  * @param {string} slug
@@ -10282,20 +10448,6 @@ export const AboutUsApiFactory = function (configuration?: Configuration, basePa
10282
10448
  * @extends {BaseAPI}
10283
10449
  */
10284
10450
  export class AboutUsApi extends BaseAPI {
10285
- /**
10286
- *
10287
- * @summary Get AboutUs.
10288
- * @param {string} aboutUsId
10289
- * @param {string} [languageCode]
10290
- * @param {boolean} [returnDefaultValue]
10291
- * @param {*} [options] Override http request option.
10292
- * @throws {RequiredError}
10293
- * @memberof AboutUsApi
10294
- */
10295
- public apiV2AboutusAboutUsIdGet(aboutUsId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
10296
- return AboutUsApiFp(this.configuration).apiV2AboutusAboutUsIdGet(aboutUsId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
10297
- }
10298
-
10299
10451
  /**
10300
10452
  *
10301
10453
  * @summary Get all AboutUsList.
@@ -10323,6 +10475,20 @@ export class AboutUsApi extends BaseAPI {
10323
10475
  return AboutUsApiFp(this.configuration).apiV2AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
10324
10476
  }
10325
10477
 
10478
+ /**
10479
+ *
10480
+ * @summary Get AboutUs.
10481
+ * @param {string} hospitalId
10482
+ * @param {string} [languageCode]
10483
+ * @param {boolean} [returnDefaultValue]
10484
+ * @param {*} [options] Override http request option.
10485
+ * @throws {RequiredError}
10486
+ * @memberof AboutUsApi
10487
+ */
10488
+ public apiV2AboutusHospitalIdGet(hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
10489
+ return AboutUsApiFp(this.configuration).apiV2AboutusHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
10490
+ }
10491
+
10326
10492
  /**
10327
10493
  *
10328
10494
  * @param {string} slug
@@ -11023,6 +11189,7 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
11023
11189
  * @param {string} [hospitalName]
11024
11190
  * @param {string} [countryId]
11025
11191
  * @param {string} [tag]
11192
+ * @param {string} [exceptArticleId]
11026
11193
  * @param {string} [exceptHospitalId]
11027
11194
  * @param {string} [contributorId]
11028
11195
  * @param {string} [languageCode]
@@ -11034,7 +11201,7 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
11034
11201
  * @param {*} [options] Override http request option.
11035
11202
  * @throws {RequiredError}
11036
11203
  */
11037
- apiV2ArticlesGet: async (id?: string, title?: string, description?: string, status?: ArticleStatus, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11204
+ apiV2ArticlesGet: async (id?: string, title?: string, description?: string, status?: ArticleStatus, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11038
11205
  const localVarPath = `/api/v2/articles`;
11039
11206
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11040
11207
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -11091,6 +11258,10 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
11091
11258
  localVarQueryParameter['Tag'] = tag;
11092
11259
  }
11093
11260
 
11261
+ if (exceptArticleId !== undefined) {
11262
+ localVarQueryParameter['ExceptArticleId'] = exceptArticleId;
11263
+ }
11264
+
11094
11265
  if (exceptHospitalId !== undefined) {
11095
11266
  localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
11096
11267
  }
@@ -11330,6 +11501,7 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
11330
11501
  * @param {string} [hospitalName]
11331
11502
  * @param {string} [countryId]
11332
11503
  * @param {string} [tag]
11504
+ * @param {string} [exceptArticleId]
11333
11505
  * @param {string} [exceptHospitalId]
11334
11506
  * @param {string} [contributorId]
11335
11507
  * @param {string} [languageCode]
@@ -11341,8 +11513,8 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
11341
11513
  * @param {*} [options] Override http request option.
11342
11514
  * @throws {RequiredError}
11343
11515
  */
11344
- async apiV2ArticlesGet(id?: string, title?: string, description?: string, status?: ArticleStatus, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticlesModel>> {
11345
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
11516
+ async apiV2ArticlesGet(id?: string, title?: string, description?: string, status?: ArticleStatus, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticlesModel>> {
11517
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options);
11346
11518
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
11347
11519
  },
11348
11520
  /**
@@ -11499,6 +11671,7 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
11499
11671
  * @param {string} [hospitalName]
11500
11672
  * @param {string} [countryId]
11501
11673
  * @param {string} [tag]
11674
+ * @param {string} [exceptArticleId]
11502
11675
  * @param {string} [exceptHospitalId]
11503
11676
  * @param {string} [contributorId]
11504
11677
  * @param {string} [languageCode]
@@ -11510,8 +11683,8 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
11510
11683
  * @param {*} [options] Override http request option.
11511
11684
  * @throws {RequiredError}
11512
11685
  */
11513
- apiV2ArticlesGet(id?: string, title?: string, description?: string, status?: ArticleStatus, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticlesModel> {
11514
- return localVarFp.apiV2ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
11686
+ apiV2ArticlesGet(id?: string, title?: string, description?: string, status?: ArticleStatus, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticlesModel> {
11687
+ return localVarFp.apiV2ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
11515
11688
  },
11516
11689
  /**
11517
11690
  *
@@ -11684,6 +11857,7 @@ export class ArticlesApi extends BaseAPI {
11684
11857
  * @param {string} [hospitalName]
11685
11858
  * @param {string} [countryId]
11686
11859
  * @param {string} [tag]
11860
+ * @param {string} [exceptArticleId]
11687
11861
  * @param {string} [exceptHospitalId]
11688
11862
  * @param {string} [contributorId]
11689
11863
  * @param {string} [languageCode]
@@ -11696,8 +11870,8 @@ export class ArticlesApi extends BaseAPI {
11696
11870
  * @throws {RequiredError}
11697
11871
  * @memberof ArticlesApi
11698
11872
  */
11699
- public apiV2ArticlesGet(id?: string, title?: string, description?: string, status?: ArticleStatus, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
11700
- return ArticlesApiFp(this.configuration).apiV2ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
11873
+ public apiV2ArticlesGet(id?: string, title?: string, description?: string, status?: ArticleStatus, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
11874
+ return ArticlesApiFp(this.configuration).apiV2ArticlesGet(id, title, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
11701
11875
  }
11702
11876
 
11703
11877
  /**
@@ -11723,16 +11897,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11723
11897
  return {
11724
11898
  /**
11725
11899
  *
11726
- * @summary Approve booking.
11900
+ * @summary Get booking.
11727
11901
  * @param {string} bookingId
11728
- * @param {ApproveBookingCommand} [approveBookingCommand]
11729
11902
  * @param {*} [options] Override http request option.
11730
11903
  * @throws {RequiredError}
11731
11904
  */
11732
- apiV2BookingsBookingIdApprovePut: async (bookingId: string, approveBookingCommand?: ApproveBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11905
+ apiV2BookingsBookingIdGet: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11733
11906
  // verify required parameter 'bookingId' is not null or undefined
11734
- assertParamExists('apiV2BookingsBookingIdApprovePut', 'bookingId', bookingId)
11735
- const localVarPath = `/api/v2/bookings/{bookingId}/approve`
11907
+ assertParamExists('apiV2BookingsBookingIdGet', 'bookingId', bookingId)
11908
+ const localVarPath = `/api/v2/bookings/{bookingId}`
11736
11909
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
11737
11910
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11738
11911
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -11741,7 +11914,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11741
11914
  baseOptions = configuration.baseOptions;
11742
11915
  }
11743
11916
 
11744
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11917
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11745
11918
  const localVarHeaderParameter = {} as any;
11746
11919
  const localVarQueryParameter = {} as any;
11747
11920
 
@@ -11751,12 +11924,9 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11751
11924
 
11752
11925
 
11753
11926
 
11754
- localVarHeaderParameter['Content-Type'] = 'application/json';
11755
-
11756
11927
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11757
11928
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11758
11929
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11759
- localVarRequestOptions.data = serializeDataIfNeeded(approveBookingCommand, localVarRequestOptions, configuration)
11760
11930
 
11761
11931
  return {
11762
11932
  url: toPathString(localVarUrlObj),
@@ -11765,15 +11935,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11765
11935
  },
11766
11936
  /**
11767
11937
  *
11768
- * @summary Cancel booking.
11938
+ * @summary Pay booking.
11769
11939
  * @param {string} bookingId
11770
11940
  * @param {*} [options] Override http request option.
11771
11941
  * @throws {RequiredError}
11772
11942
  */
11773
- apiV2BookingsBookingIdCancelPut: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11943
+ apiV2BookingsBookingIdPayPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11774
11944
  // verify required parameter 'bookingId' is not null or undefined
11775
- assertParamExists('apiV2BookingsBookingIdCancelPut', 'bookingId', bookingId)
11776
- const localVarPath = `/api/v2/bookings/{bookingId}/cancel`
11945
+ assertParamExists('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId)
11946
+ const localVarPath = `/api/v2/bookings/{bookingId}/pay`
11777
11947
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
11778
11948
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11779
11949
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -11782,7 +11952,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11782
11952
  baseOptions = configuration.baseOptions;
11783
11953
  }
11784
11954
 
11785
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11955
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11786
11956
  const localVarHeaderParameter = {} as any;
11787
11957
  const localVarQueryParameter = {} as any;
11788
11958
 
@@ -11803,14 +11973,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11803
11973
  },
11804
11974
  /**
11805
11975
  *
11806
- * @summary Delete booking.
11976
+ * @summary Update booking.
11807
11977
  * @param {string} bookingId
11978
+ * @param {UpdateBookingCommand} [updateBookingCommand]
11808
11979
  * @param {*} [options] Override http request option.
11809
11980
  * @throws {RequiredError}
11810
11981
  */
11811
- apiV2BookingsBookingIdDelete: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11982
+ apiV2BookingsBookingIdPut: async (bookingId: string, updateBookingCommand?: UpdateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11812
11983
  // verify required parameter 'bookingId' is not null or undefined
11813
- assertParamExists('apiV2BookingsBookingIdDelete', 'bookingId', bookingId)
11984
+ assertParamExists('apiV2BookingsBookingIdPut', 'bookingId', bookingId)
11814
11985
  const localVarPath = `/api/v2/bookings/{bookingId}`
11815
11986
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
11816
11987
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -11820,7 +11991,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11820
11991
  baseOptions = configuration.baseOptions;
11821
11992
  }
11822
11993
 
11823
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
11994
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11824
11995
  const localVarHeaderParameter = {} as any;
11825
11996
  const localVarQueryParameter = {} as any;
11826
11997
 
@@ -11830,9 +12001,12 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11830
12001
 
11831
12002
 
11832
12003
 
12004
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12005
+
11833
12006
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11834
12007
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11835
12008
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12009
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBookingCommand, localVarRequestOptions, configuration)
11836
12010
 
11837
12011
  return {
11838
12012
  url: toPathString(localVarUrlObj),
@@ -11841,16 +12015,21 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11841
12015
  },
11842
12016
  /**
11843
12017
  *
11844
- * @summary Get booking.
11845
- * @param {string} bookingId
12018
+ * @summary Get all bookings.
12019
+ * @param {string} [searchString]
12020
+ * @param {boolean} [isOpen]
12021
+ * @param {boolean} [isCompleted]
12022
+ * @param {BookingStatus} [status]
12023
+ * @param {string} [dealPackageId]
12024
+ * @param {string} [hospitalId]
12025
+ * @param {number} [page]
12026
+ * @param {number} [limit]
12027
+ * @param {Date} [lastRetrieved]
11846
12028
  * @param {*} [options] Override http request option.
11847
12029
  * @throws {RequiredError}
11848
12030
  */
11849
- apiV2BookingsBookingIdGet: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11850
- // verify required parameter 'bookingId' is not null or undefined
11851
- assertParamExists('apiV2BookingsBookingIdGet', 'bookingId', bookingId)
11852
- const localVarPath = `/api/v2/bookings/{bookingId}`
11853
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12031
+ apiV2BookingsGet: async (searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, hospitalId?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12032
+ const localVarPath = `/api/v2/bookings`;
11854
12033
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11855
12034
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11856
12035
  let baseOptions;
@@ -11866,6 +12045,44 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11866
12045
  // oauth required
11867
12046
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
11868
12047
 
12048
+ if (searchString !== undefined) {
12049
+ localVarQueryParameter['SearchString'] = searchString;
12050
+ }
12051
+
12052
+ if (isOpen !== undefined) {
12053
+ localVarQueryParameter['IsOpen'] = isOpen;
12054
+ }
12055
+
12056
+ if (isCompleted !== undefined) {
12057
+ localVarQueryParameter['IsCompleted'] = isCompleted;
12058
+ }
12059
+
12060
+ if (status !== undefined) {
12061
+ localVarQueryParameter['Status'] = status;
12062
+ }
12063
+
12064
+ if (dealPackageId !== undefined) {
12065
+ localVarQueryParameter['DealPackageId'] = dealPackageId;
12066
+ }
12067
+
12068
+ if (hospitalId !== undefined) {
12069
+ localVarQueryParameter['HospitalId'] = hospitalId;
12070
+ }
12071
+
12072
+ if (page !== undefined) {
12073
+ localVarQueryParameter['page'] = page;
12074
+ }
12075
+
12076
+ if (limit !== undefined) {
12077
+ localVarQueryParameter['limit'] = limit;
12078
+ }
12079
+
12080
+ if (lastRetrieved !== undefined) {
12081
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
12082
+ (lastRetrieved as any).toISOString() :
12083
+ lastRetrieved;
12084
+ }
12085
+
11869
12086
 
11870
12087
 
11871
12088
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -11879,16 +12096,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11879
12096
  },
11880
12097
  /**
11881
12098
  *
11882
- * @summary Mark as Paid booking.
11883
- * @param {string} bookingId
12099
+ * @summary Create booking.
12100
+ * @param {string} requestId
12101
+ * @param {CreateBookingCommand} [createBookingCommand]
11884
12102
  * @param {*} [options] Override http request option.
11885
12103
  * @throws {RequiredError}
11886
12104
  */
11887
- apiV2BookingsBookingIdPaidPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11888
- // verify required parameter 'bookingId' is not null or undefined
11889
- assertParamExists('apiV2BookingsBookingIdPaidPost', 'bookingId', bookingId)
11890
- const localVarPath = `/api/v2/bookings/{bookingId}/paid`
11891
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12105
+ apiV2BookingsRequestIdPost: async (requestId: string, createBookingCommand?: CreateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12106
+ // verify required parameter 'requestId' is not null or undefined
12107
+ assertParamExists('apiV2BookingsRequestIdPost', 'requestId', requestId)
12108
+ const localVarPath = `/api/v2/bookings/{requestId}`
12109
+ .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
11892
12110
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11893
12111
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11894
12112
  let baseOptions;
@@ -11906,325 +12124,38 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11906
12124
 
11907
12125
 
11908
12126
 
12127
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12128
+
11909
12129
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11910
12130
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11911
12131
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12132
+ localVarRequestOptions.data = serializeDataIfNeeded(createBookingCommand, localVarRequestOptions, configuration)
11912
12133
 
11913
12134
  return {
11914
12135
  url: toPathString(localVarUrlObj),
11915
12136
  options: localVarRequestOptions,
11916
12137
  };
11917
- },
11918
- /**
11919
- *
11920
- * @summary Pay booking.
11921
- * @param {string} bookingId
11922
- * @param {*} [options] Override http request option.
11923
- * @throws {RequiredError}
11924
- */
11925
- apiV2BookingsBookingIdPayPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11926
- // verify required parameter 'bookingId' is not null or undefined
11927
- assertParamExists('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId)
11928
- const localVarPath = `/api/v2/bookings/{bookingId}/pay`
11929
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
11930
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11931
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11932
- let baseOptions;
11933
- if (configuration) {
11934
- baseOptions = configuration.baseOptions;
11935
- }
11936
-
11937
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11938
- const localVarHeaderParameter = {} as any;
11939
- const localVarQueryParameter = {} as any;
11940
-
11941
- // authentication oauth2 required
11942
- // oauth required
11943
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
11944
-
11945
-
11946
-
11947
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11948
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11949
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11950
-
11951
- return {
11952
- url: toPathString(localVarUrlObj),
11953
- options: localVarRequestOptions,
11954
- };
11955
- },
11956
- /**
11957
- *
11958
- * @summary Update booking.
11959
- * @param {string} bookingId
11960
- * @param {UpdateBookingCommand} [updateBookingCommand]
11961
- * @param {*} [options] Override http request option.
11962
- * @throws {RequiredError}
11963
- */
11964
- apiV2BookingsBookingIdPut: async (bookingId: string, updateBookingCommand?: UpdateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11965
- // verify required parameter 'bookingId' is not null or undefined
11966
- assertParamExists('apiV2BookingsBookingIdPut', 'bookingId', bookingId)
11967
- const localVarPath = `/api/v2/bookings/{bookingId}`
11968
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
11969
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11970
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11971
- let baseOptions;
11972
- if (configuration) {
11973
- baseOptions = configuration.baseOptions;
11974
- }
11975
-
11976
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11977
- const localVarHeaderParameter = {} as any;
11978
- const localVarQueryParameter = {} as any;
11979
-
11980
- // authentication oauth2 required
11981
- // oauth required
11982
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
11983
-
11984
-
11985
-
11986
- localVarHeaderParameter['Content-Type'] = 'application/json';
11987
-
11988
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11989
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11990
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11991
- localVarRequestOptions.data = serializeDataIfNeeded(updateBookingCommand, localVarRequestOptions, configuration)
11992
-
11993
- return {
11994
- url: toPathString(localVarUrlObj),
11995
- options: localVarRequestOptions,
11996
- };
11997
- },
11998
- /**
11999
- *
12000
- * @summary Reject booking.
12001
- * @param {string} bookingId
12002
- * @param {RejectBookingCommand} [rejectBookingCommand]
12003
- * @param {*} [options] Override http request option.
12004
- * @throws {RequiredError}
12005
- */
12006
- apiV2BookingsBookingIdRejectPut: async (bookingId: string, rejectBookingCommand?: RejectBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12007
- // verify required parameter 'bookingId' is not null or undefined
12008
- assertParamExists('apiV2BookingsBookingIdRejectPut', 'bookingId', bookingId)
12009
- const localVarPath = `/api/v2/bookings/{bookingId}/reject`
12010
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12011
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12012
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12013
- let baseOptions;
12014
- if (configuration) {
12015
- baseOptions = configuration.baseOptions;
12016
- }
12017
-
12018
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12019
- const localVarHeaderParameter = {} as any;
12020
- const localVarQueryParameter = {} as any;
12021
-
12022
- // authentication oauth2 required
12023
- // oauth required
12024
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
12025
-
12026
-
12027
-
12028
- localVarHeaderParameter['Content-Type'] = 'application/json';
12029
-
12030
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12031
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12032
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12033
- localVarRequestOptions.data = serializeDataIfNeeded(rejectBookingCommand, localVarRequestOptions, configuration)
12034
-
12035
- return {
12036
- url: toPathString(localVarUrlObj),
12037
- options: localVarRequestOptions,
12038
- };
12039
- },
12040
- /**
12041
- *
12042
- * @summary Get all bookings.
12043
- * @param {string} [searchString]
12044
- * @param {boolean} [isOpen]
12045
- * @param {boolean} [isCompleted]
12046
- * @param {BookingStatus} [status]
12047
- * @param {string} [dealPackageId]
12048
- * @param {string} [hospitalId]
12049
- * @param {number} [page]
12050
- * @param {number} [limit]
12051
- * @param {Date} [lastRetrieved]
12052
- * @param {*} [options] Override http request option.
12053
- * @throws {RequiredError}
12054
- */
12055
- apiV2BookingsGet: async (searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, hospitalId?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12056
- const localVarPath = `/api/v2/bookings`;
12057
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12058
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12059
- let baseOptions;
12060
- if (configuration) {
12061
- baseOptions = configuration.baseOptions;
12062
- }
12063
-
12064
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12065
- const localVarHeaderParameter = {} as any;
12066
- const localVarQueryParameter = {} as any;
12067
-
12068
- // authentication oauth2 required
12069
- // oauth required
12070
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
12071
-
12072
- if (searchString !== undefined) {
12073
- localVarQueryParameter['SearchString'] = searchString;
12074
- }
12075
-
12076
- if (isOpen !== undefined) {
12077
- localVarQueryParameter['IsOpen'] = isOpen;
12078
- }
12079
-
12080
- if (isCompleted !== undefined) {
12081
- localVarQueryParameter['IsCompleted'] = isCompleted;
12082
- }
12083
-
12084
- if (status !== undefined) {
12085
- localVarQueryParameter['Status'] = status;
12086
- }
12087
-
12088
- if (dealPackageId !== undefined) {
12089
- localVarQueryParameter['DealPackageId'] = dealPackageId;
12090
- }
12091
-
12092
- if (hospitalId !== undefined) {
12093
- localVarQueryParameter['HospitalId'] = hospitalId;
12094
- }
12095
-
12096
- if (page !== undefined) {
12097
- localVarQueryParameter['page'] = page;
12098
- }
12099
-
12100
- if (limit !== undefined) {
12101
- localVarQueryParameter['limit'] = limit;
12102
- }
12103
-
12104
- if (lastRetrieved !== undefined) {
12105
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
12106
- (lastRetrieved as any).toISOString() :
12107
- lastRetrieved;
12108
- }
12109
-
12110
-
12111
-
12112
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12113
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12114
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12115
-
12116
- return {
12117
- url: toPathString(localVarUrlObj),
12118
- options: localVarRequestOptions,
12119
- };
12120
- },
12121
- /**
12122
- *
12123
- * @summary Create booking.
12124
- * @param {string} requestId
12125
- * @param {CreateBookingCommand} [createBookingCommand]
12126
- * @param {*} [options] Override http request option.
12127
- * @throws {RequiredError}
12128
- */
12129
- apiV2BookingsRequestIdPost: async (requestId: string, createBookingCommand?: CreateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12130
- // verify required parameter 'requestId' is not null or undefined
12131
- assertParamExists('apiV2BookingsRequestIdPost', 'requestId', requestId)
12132
- const localVarPath = `/api/v2/bookings/{requestId}`
12133
- .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
12134
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12135
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12136
- let baseOptions;
12137
- if (configuration) {
12138
- baseOptions = configuration.baseOptions;
12139
- }
12140
-
12141
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12142
- const localVarHeaderParameter = {} as any;
12143
- const localVarQueryParameter = {} as any;
12144
-
12145
- // authentication oauth2 required
12146
- // oauth required
12147
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
12148
-
12149
-
12150
-
12151
- localVarHeaderParameter['Content-Type'] = 'application/json';
12152
-
12153
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12154
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12155
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12156
- localVarRequestOptions.data = serializeDataIfNeeded(createBookingCommand, localVarRequestOptions, configuration)
12157
-
12158
- return {
12159
- url: toPathString(localVarUrlObj),
12160
- options: localVarRequestOptions,
12161
- };
12162
- },
12163
- }
12164
- };
12165
-
12166
- /**
12167
- * BookingsApi - functional programming interface
12168
- * @export
12169
- */
12170
- export const BookingsApiFp = function(configuration?: Configuration) {
12171
- const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
12172
- return {
12173
- /**
12174
- *
12175
- * @summary Approve booking.
12176
- * @param {string} bookingId
12177
- * @param {ApproveBookingCommand} [approveBookingCommand]
12178
- * @param {*} [options] Override http request option.
12179
- * @throws {RequiredError}
12180
- */
12181
- async apiV2BookingsBookingIdApprovePut(bookingId: string, approveBookingCommand?: ApproveBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
12182
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options);
12183
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12184
- },
12185
- /**
12186
- *
12187
- * @summary Cancel booking.
12188
- * @param {string} bookingId
12189
- * @param {*} [options] Override http request option.
12190
- * @throws {RequiredError}
12191
- */
12192
- async apiV2BookingsBookingIdCancelPut(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
12193
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdCancelPut(bookingId, options);
12194
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12195
- },
12196
- /**
12197
- *
12198
- * @summary Delete booking.
12199
- * @param {string} bookingId
12200
- * @param {*} [options] Override http request option.
12201
- * @throws {RequiredError}
12202
- */
12203
- async apiV2BookingsBookingIdDelete(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
12204
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdDelete(bookingId, options);
12205
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12206
- },
12207
- /**
12208
- *
12209
- * @summary Get booking.
12210
- * @param {string} bookingId
12211
- * @param {*} [options] Override http request option.
12212
- * @throws {RequiredError}
12213
- */
12214
- async apiV2BookingsBookingIdGet(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
12215
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options);
12216
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12217
- },
12218
- /**
12219
- *
12220
- * @summary Mark as Paid booking.
12221
- * @param {string} bookingId
12222
- * @param {*} [options] Override http request option.
12223
- * @throws {RequiredError}
12224
- */
12225
- async apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
12226
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPaidPost(bookingId, options);
12227
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12138
+ },
12139
+ }
12140
+ };
12141
+
12142
+ /**
12143
+ * BookingsApi - functional programming interface
12144
+ * @export
12145
+ */
12146
+ export const BookingsApiFp = function(configuration?: Configuration) {
12147
+ const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
12148
+ return {
12149
+ /**
12150
+ *
12151
+ * @summary Get booking.
12152
+ * @param {string} bookingId
12153
+ * @param {*} [options] Override http request option.
12154
+ * @throws {RequiredError}
12155
+ */
12156
+ async apiV2BookingsBookingIdGet(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
12157
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options);
12158
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12228
12159
  },
12229
12160
  /**
12230
12161
  *
@@ -12249,18 +12180,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
12249
12180
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options);
12250
12181
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12251
12182
  },
12252
- /**
12253
- *
12254
- * @summary Reject booking.
12255
- * @param {string} bookingId
12256
- * @param {RejectBookingCommand} [rejectBookingCommand]
12257
- * @param {*} [options] Override http request option.
12258
- * @throws {RequiredError}
12259
- */
12260
- async apiV2BookingsBookingIdRejectPut(bookingId: string, rejectBookingCommand?: RejectBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
12261
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options);
12262
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12263
- },
12264
12183
  /**
12265
12184
  *
12266
12185
  * @summary Get all bookings.
@@ -12302,37 +12221,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
12302
12221
  export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
12303
12222
  const localVarFp = BookingsApiFp(configuration)
12304
12223
  return {
12305
- /**
12306
- *
12307
- * @summary Approve booking.
12308
- * @param {string} bookingId
12309
- * @param {ApproveBookingCommand} [approveBookingCommand]
12310
- * @param {*} [options] Override http request option.
12311
- * @throws {RequiredError}
12312
- */
12313
- apiV2BookingsBookingIdApprovePut(bookingId: string, approveBookingCommand?: ApproveBookingCommand, options?: any): AxiosPromise<boolean> {
12314
- return localVarFp.apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options).then((request) => request(axios, basePath));
12315
- },
12316
- /**
12317
- *
12318
- * @summary Cancel booking.
12319
- * @param {string} bookingId
12320
- * @param {*} [options] Override http request option.
12321
- * @throws {RequiredError}
12322
- */
12323
- apiV2BookingsBookingIdCancelPut(bookingId: string, options?: any): AxiosPromise<boolean> {
12324
- return localVarFp.apiV2BookingsBookingIdCancelPut(bookingId, options).then((request) => request(axios, basePath));
12325
- },
12326
- /**
12327
- *
12328
- * @summary Delete booking.
12329
- * @param {string} bookingId
12330
- * @param {*} [options] Override http request option.
12331
- * @throws {RequiredError}
12332
- */
12333
- apiV2BookingsBookingIdDelete(bookingId: string, options?: any): AxiosPromise<boolean> {
12334
- return localVarFp.apiV2BookingsBookingIdDelete(bookingId, options).then((request) => request(axios, basePath));
12335
- },
12336
12224
  /**
12337
12225
  *
12338
12226
  * @summary Get booking.
@@ -12343,16 +12231,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
12343
12231
  apiV2BookingsBookingIdGet(bookingId: string, options?: any): AxiosPromise<BookingModel> {
12344
12232
  return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(axios, basePath));
12345
12233
  },
12346
- /**
12347
- *
12348
- * @summary Mark as Paid booking.
12349
- * @param {string} bookingId
12350
- * @param {*} [options] Override http request option.
12351
- * @throws {RequiredError}
12352
- */
12353
- apiV2BookingsBookingIdPaidPost(bookingId: string, options?: any): AxiosPromise<string> {
12354
- return localVarFp.apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(axios, basePath));
12355
- },
12356
12234
  /**
12357
12235
  *
12358
12236
  * @summary Pay booking.
@@ -12374,17 +12252,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
12374
12252
  apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: any): AxiosPromise<BookingModel> {
12375
12253
  return localVarFp.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(axios, basePath));
12376
12254
  },
12377
- /**
12378
- *
12379
- * @summary Reject booking.
12380
- * @param {string} bookingId
12381
- * @param {RejectBookingCommand} [rejectBookingCommand]
12382
- * @param {*} [options] Override http request option.
12383
- * @throws {RequiredError}
12384
- */
12385
- apiV2BookingsBookingIdRejectPut(bookingId: string, rejectBookingCommand?: RejectBookingCommand, options?: any): AxiosPromise<boolean> {
12386
- return localVarFp.apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options).then((request) => request(axios, basePath));
12387
- },
12388
12255
  /**
12389
12256
  *
12390
12257
  * @summary Get all bookings.
@@ -12424,43 +12291,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
12424
12291
  * @extends {BaseAPI}
12425
12292
  */
12426
12293
  export class BookingsApi extends BaseAPI {
12427
- /**
12428
- *
12429
- * @summary Approve booking.
12430
- * @param {string} bookingId
12431
- * @param {ApproveBookingCommand} [approveBookingCommand]
12432
- * @param {*} [options] Override http request option.
12433
- * @throws {RequiredError}
12434
- * @memberof BookingsApi
12435
- */
12436
- public apiV2BookingsBookingIdApprovePut(bookingId: string, approveBookingCommand?: ApproveBookingCommand, options?: AxiosRequestConfig) {
12437
- return BookingsApiFp(this.configuration).apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options).then((request) => request(this.axios, this.basePath));
12438
- }
12439
-
12440
- /**
12441
- *
12442
- * @summary Cancel booking.
12443
- * @param {string} bookingId
12444
- * @param {*} [options] Override http request option.
12445
- * @throws {RequiredError}
12446
- * @memberof BookingsApi
12447
- */
12448
- public apiV2BookingsBookingIdCancelPut(bookingId: string, options?: AxiosRequestConfig) {
12449
- return BookingsApiFp(this.configuration).apiV2BookingsBookingIdCancelPut(bookingId, options).then((request) => request(this.axios, this.basePath));
12450
- }
12451
-
12452
- /**
12453
- *
12454
- * @summary Delete booking.
12455
- * @param {string} bookingId
12456
- * @param {*} [options] Override http request option.
12457
- * @throws {RequiredError}
12458
- * @memberof BookingsApi
12459
- */
12460
- public apiV2BookingsBookingIdDelete(bookingId: string, options?: AxiosRequestConfig) {
12461
- return BookingsApiFp(this.configuration).apiV2BookingsBookingIdDelete(bookingId, options).then((request) => request(this.axios, this.basePath));
12462
- }
12463
-
12464
12294
  /**
12465
12295
  *
12466
12296
  * @summary Get booking.
@@ -12473,18 +12303,6 @@ export class BookingsApi extends BaseAPI {
12473
12303
  return BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(this.axios, this.basePath));
12474
12304
  }
12475
12305
 
12476
- /**
12477
- *
12478
- * @summary Mark as Paid booking.
12479
- * @param {string} bookingId
12480
- * @param {*} [options] Override http request option.
12481
- * @throws {RequiredError}
12482
- * @memberof BookingsApi
12483
- */
12484
- public apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig) {
12485
- return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(this.axios, this.basePath));
12486
- }
12487
-
12488
12306
  /**
12489
12307
  *
12490
12308
  * @summary Pay booking.
@@ -12510,19 +12328,6 @@ export class BookingsApi extends BaseAPI {
12510
12328
  return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(this.axios, this.basePath));
12511
12329
  }
12512
12330
 
12513
- /**
12514
- *
12515
- * @summary Reject booking.
12516
- * @param {string} bookingId
12517
- * @param {RejectBookingCommand} [rejectBookingCommand]
12518
- * @param {*} [options] Override http request option.
12519
- * @throws {RequiredError}
12520
- * @memberof BookingsApi
12521
- */
12522
- public apiV2BookingsBookingIdRejectPut(bookingId: string, rejectBookingCommand?: RejectBookingCommand, options?: AxiosRequestConfig) {
12523
- return BookingsApiFp(this.configuration).apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options).then((request) => request(this.axios, this.basePath));
12524
- }
12525
-
12526
12331
  /**
12527
12332
  *
12528
12333
  * @summary Get all bookings.
@@ -13277,134 +13082,16 @@ export class CommunicationsApi extends BaseAPI {
13277
13082
  */
13278
13083
  public apiV2CommunicationsPut(options?: AxiosRequestConfig) {
13279
13084
  return CommunicationsApiFp(this.configuration).apiV2CommunicationsPut(options).then((request) => request(this.axios, this.basePath));
13280
- }
13281
- }
13282
-
13283
-
13284
- /**
13285
- * ConsultationsApi - axios parameter creator
13286
- * @export
13287
- */
13288
- export const ConsultationsApiAxiosParamCreator = function (configuration?: Configuration) {
13289
- return {
13290
- /**
13291
- *
13292
- * @summary Approve consultation.
13293
- * @param {string} consultationId
13294
- * @param {ApproveConsultationCommand} [approveConsultationCommand]
13295
- * @param {*} [options] Override http request option.
13296
- * @throws {RequiredError}
13297
- */
13298
- apiV2ConsultationsConsultationIdApprovePut: async (consultationId: string, approveConsultationCommand?: ApproveConsultationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
13299
- // verify required parameter 'consultationId' is not null or undefined
13300
- assertParamExists('apiV2ConsultationsConsultationIdApprovePut', 'consultationId', consultationId)
13301
- const localVarPath = `/api/v2/consultations/{consultationId}/approve`
13302
- .replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
13303
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13304
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13305
- let baseOptions;
13306
- if (configuration) {
13307
- baseOptions = configuration.baseOptions;
13308
- }
13309
-
13310
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13311
- const localVarHeaderParameter = {} as any;
13312
- const localVarQueryParameter = {} as any;
13313
-
13314
- // authentication oauth2 required
13315
- // oauth required
13316
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
13317
-
13318
-
13319
-
13320
- localVarHeaderParameter['Content-Type'] = 'application/json';
13321
-
13322
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13323
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13324
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13325
- localVarRequestOptions.data = serializeDataIfNeeded(approveConsultationCommand, localVarRequestOptions, configuration)
13326
-
13327
- return {
13328
- url: toPathString(localVarUrlObj),
13329
- options: localVarRequestOptions,
13330
- };
13331
- },
13332
- /**
13333
- *
13334
- * @summary Cancel consultation.
13335
- * @param {string} consultationId
13336
- * @param {*} [options] Override http request option.
13337
- * @throws {RequiredError}
13338
- */
13339
- apiV2ConsultationsConsultationIdCancelPut: async (consultationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
13340
- // verify required parameter 'consultationId' is not null or undefined
13341
- assertParamExists('apiV2ConsultationsConsultationIdCancelPut', 'consultationId', consultationId)
13342
- const localVarPath = `/api/v2/consultations/{consultationId}/cancel`
13343
- .replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
13344
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13345
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13346
- let baseOptions;
13347
- if (configuration) {
13348
- baseOptions = configuration.baseOptions;
13349
- }
13350
-
13351
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13352
- const localVarHeaderParameter = {} as any;
13353
- const localVarQueryParameter = {} as any;
13354
-
13355
- // authentication oauth2 required
13356
- // oauth required
13357
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
13358
-
13359
-
13360
-
13361
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13362
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13363
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13364
-
13365
- return {
13366
- url: toPathString(localVarUrlObj),
13367
- options: localVarRequestOptions,
13368
- };
13369
- },
13370
- /**
13371
- *
13372
- * @summary Delete consultation.
13373
- * @param {string} consultationId
13374
- * @param {*} [options] Override http request option.
13375
- * @throws {RequiredError}
13376
- */
13377
- apiV2ConsultationsConsultationIdDelete: async (consultationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
13378
- // verify required parameter 'consultationId' is not null or undefined
13379
- assertParamExists('apiV2ConsultationsConsultationIdDelete', 'consultationId', consultationId)
13380
- const localVarPath = `/api/v2/consultations/{consultationId}`
13381
- .replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
13382
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13383
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13384
- let baseOptions;
13385
- if (configuration) {
13386
- baseOptions = configuration.baseOptions;
13387
- }
13388
-
13389
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
13390
- const localVarHeaderParameter = {} as any;
13391
- const localVarQueryParameter = {} as any;
13392
-
13393
- // authentication oauth2 required
13394
- // oauth required
13395
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
13396
-
13397
-
13398
-
13399
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13400
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13401
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13085
+ }
13086
+ }
13402
13087
 
13403
- return {
13404
- url: toPathString(localVarUrlObj),
13405
- options: localVarRequestOptions,
13406
- };
13407
- },
13088
+
13089
+ /**
13090
+ * ConsultationsApi - axios parameter creator
13091
+ * @export
13092
+ */
13093
+ export const ConsultationsApiAxiosParamCreator = function (configuration?: Configuration) {
13094
+ return {
13408
13095
  /**
13409
13096
  *
13410
13097
  * @summary Get consultation.
@@ -13523,48 +13210,6 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
13523
13210
  options: localVarRequestOptions,
13524
13211
  };
13525
13212
  },
13526
- /**
13527
- *
13528
- * @summary Reject consultation.
13529
- * @param {string} consultationId
13530
- * @param {RejectConsultationCommand} [rejectConsultationCommand]
13531
- * @param {*} [options] Override http request option.
13532
- * @throws {RequiredError}
13533
- */
13534
- apiV2ConsultationsConsultationIdRejectPut: async (consultationId: string, rejectConsultationCommand?: RejectConsultationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
13535
- // verify required parameter 'consultationId' is not null or undefined
13536
- assertParamExists('apiV2ConsultationsConsultationIdRejectPut', 'consultationId', consultationId)
13537
- const localVarPath = `/api/v2/consultations/{consultationId}/reject`
13538
- .replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
13539
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13540
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13541
- let baseOptions;
13542
- if (configuration) {
13543
- baseOptions = configuration.baseOptions;
13544
- }
13545
-
13546
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13547
- const localVarHeaderParameter = {} as any;
13548
- const localVarQueryParameter = {} as any;
13549
-
13550
- // authentication oauth2 required
13551
- // oauth required
13552
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
13553
-
13554
-
13555
-
13556
- localVarHeaderParameter['Content-Type'] = 'application/json';
13557
-
13558
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13559
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13560
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13561
- localVarRequestOptions.data = serializeDataIfNeeded(rejectConsultationCommand, localVarRequestOptions, configuration)
13562
-
13563
- return {
13564
- url: toPathString(localVarUrlObj),
13565
- options: localVarRequestOptions,
13566
- };
13567
- },
13568
13213
  /**
13569
13214
  *
13570
13215
  * @summary Get all consultations.
@@ -13698,40 +13343,6 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
13698
13343
  export const ConsultationsApiFp = function(configuration?: Configuration) {
13699
13344
  const localVarAxiosParamCreator = ConsultationsApiAxiosParamCreator(configuration)
13700
13345
  return {
13701
- /**
13702
- *
13703
- * @summary Approve consultation.
13704
- * @param {string} consultationId
13705
- * @param {ApproveConsultationCommand} [approveConsultationCommand]
13706
- * @param {*} [options] Override http request option.
13707
- * @throws {RequiredError}
13708
- */
13709
- async apiV2ConsultationsConsultationIdApprovePut(consultationId: string, approveConsultationCommand?: ApproveConsultationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
13710
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options);
13711
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
13712
- },
13713
- /**
13714
- *
13715
- * @summary Cancel consultation.
13716
- * @param {string} consultationId
13717
- * @param {*} [options] Override http request option.
13718
- * @throws {RequiredError}
13719
- */
13720
- async apiV2ConsultationsConsultationIdCancelPut(consultationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
13721
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdCancelPut(consultationId, options);
13722
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
13723
- },
13724
- /**
13725
- *
13726
- * @summary Delete consultation.
13727
- * @param {string} consultationId
13728
- * @param {*} [options] Override http request option.
13729
- * @throws {RequiredError}
13730
- */
13731
- async apiV2ConsultationsConsultationIdDelete(consultationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
13732
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdDelete(consultationId, options);
13733
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
13734
- },
13735
13346
  /**
13736
13347
  *
13737
13348
  * @summary Get consultation.
@@ -13766,18 +13377,6 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
13766
13377
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options);
13767
13378
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
13768
13379
  },
13769
- /**
13770
- *
13771
- * @summary Reject consultation.
13772
- * @param {string} consultationId
13773
- * @param {RejectConsultationCommand} [rejectConsultationCommand]
13774
- * @param {*} [options] Override http request option.
13775
- * @throws {RequiredError}
13776
- */
13777
- async apiV2ConsultationsConsultationIdRejectPut(consultationId: string, rejectConsultationCommand?: RejectConsultationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
13778
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options);
13779
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
13780
- },
13781
13380
  /**
13782
13381
  *
13783
13382
  * @summary Get all consultations.
@@ -13819,37 +13418,6 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
13819
13418
  export const ConsultationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
13820
13419
  const localVarFp = ConsultationsApiFp(configuration)
13821
13420
  return {
13822
- /**
13823
- *
13824
- * @summary Approve consultation.
13825
- * @param {string} consultationId
13826
- * @param {ApproveConsultationCommand} [approveConsultationCommand]
13827
- * @param {*} [options] Override http request option.
13828
- * @throws {RequiredError}
13829
- */
13830
- apiV2ConsultationsConsultationIdApprovePut(consultationId: string, approveConsultationCommand?: ApproveConsultationCommand, options?: any): AxiosPromise<boolean> {
13831
- return localVarFp.apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options).then((request) => request(axios, basePath));
13832
- },
13833
- /**
13834
- *
13835
- * @summary Cancel consultation.
13836
- * @param {string} consultationId
13837
- * @param {*} [options] Override http request option.
13838
- * @throws {RequiredError}
13839
- */
13840
- apiV2ConsultationsConsultationIdCancelPut(consultationId: string, options?: any): AxiosPromise<boolean> {
13841
- return localVarFp.apiV2ConsultationsConsultationIdCancelPut(consultationId, options).then((request) => request(axios, basePath));
13842
- },
13843
- /**
13844
- *
13845
- * @summary Delete consultation.
13846
- * @param {string} consultationId
13847
- * @param {*} [options] Override http request option.
13848
- * @throws {RequiredError}
13849
- */
13850
- apiV2ConsultationsConsultationIdDelete(consultationId: string, options?: any): AxiosPromise<boolean> {
13851
- return localVarFp.apiV2ConsultationsConsultationIdDelete(consultationId, options).then((request) => request(axios, basePath));
13852
- },
13853
13421
  /**
13854
13422
  *
13855
13423
  * @summary Get consultation.
@@ -13881,17 +13449,6 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
13881
13449
  apiV2ConsultationsConsultationIdPut(consultationId: string, updateConsultationCommand?: UpdateConsultationCommand, options?: any): AxiosPromise<ConsultationModel> {
13882
13450
  return localVarFp.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then((request) => request(axios, basePath));
13883
13451
  },
13884
- /**
13885
- *
13886
- * @summary Reject consultation.
13887
- * @param {string} consultationId
13888
- * @param {RejectConsultationCommand} [rejectConsultationCommand]
13889
- * @param {*} [options] Override http request option.
13890
- * @throws {RequiredError}
13891
- */
13892
- apiV2ConsultationsConsultationIdRejectPut(consultationId: string, rejectConsultationCommand?: RejectConsultationCommand, options?: any): AxiosPromise<boolean> {
13893
- return localVarFp.apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options).then((request) => request(axios, basePath));
13894
- },
13895
13452
  /**
13896
13453
  *
13897
13454
  * @summary Get all consultations.
@@ -13931,43 +13488,6 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
13931
13488
  * @extends {BaseAPI}
13932
13489
  */
13933
13490
  export class ConsultationsApi extends BaseAPI {
13934
- /**
13935
- *
13936
- * @summary Approve consultation.
13937
- * @param {string} consultationId
13938
- * @param {ApproveConsultationCommand} [approveConsultationCommand]
13939
- * @param {*} [options] Override http request option.
13940
- * @throws {RequiredError}
13941
- * @memberof ConsultationsApi
13942
- */
13943
- public apiV2ConsultationsConsultationIdApprovePut(consultationId: string, approveConsultationCommand?: ApproveConsultationCommand, options?: AxiosRequestConfig) {
13944
- return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options).then((request) => request(this.axios, this.basePath));
13945
- }
13946
-
13947
- /**
13948
- *
13949
- * @summary Cancel consultation.
13950
- * @param {string} consultationId
13951
- * @param {*} [options] Override http request option.
13952
- * @throws {RequiredError}
13953
- * @memberof ConsultationsApi
13954
- */
13955
- public apiV2ConsultationsConsultationIdCancelPut(consultationId: string, options?: AxiosRequestConfig) {
13956
- return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdCancelPut(consultationId, options).then((request) => request(this.axios, this.basePath));
13957
- }
13958
-
13959
- /**
13960
- *
13961
- * @summary Delete consultation.
13962
- * @param {string} consultationId
13963
- * @param {*} [options] Override http request option.
13964
- * @throws {RequiredError}
13965
- * @memberof ConsultationsApi
13966
- */
13967
- public apiV2ConsultationsConsultationIdDelete(consultationId: string, options?: AxiosRequestConfig) {
13968
- return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdDelete(consultationId, options).then((request) => request(this.axios, this.basePath));
13969
- }
13970
-
13971
13491
  /**
13972
13492
  *
13973
13493
  * @summary Get consultation.
@@ -14005,19 +13525,6 @@ export class ConsultationsApi extends BaseAPI {
14005
13525
  return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then((request) => request(this.axios, this.basePath));
14006
13526
  }
14007
13527
 
14008
- /**
14009
- *
14010
- * @summary Reject consultation.
14011
- * @param {string} consultationId
14012
- * @param {RejectConsultationCommand} [rejectConsultationCommand]
14013
- * @param {*} [options] Override http request option.
14014
- * @throws {RequiredError}
14015
- * @memberof ConsultationsApi
14016
- */
14017
- public apiV2ConsultationsConsultationIdRejectPut(consultationId: string, rejectConsultationCommand?: RejectConsultationCommand, options?: AxiosRequestConfig) {
14018
- return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options).then((request) => request(this.axios, this.basePath));
14019
- }
14020
-
14021
13528
  /**
14022
13529
  *
14023
13530
  * @summary Get all consultations.
@@ -19649,12 +19156,126 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
19649
19156
  localVarQueryParameter['Id'] = id;
19650
19157
  }
19651
19158
 
19652
- if (name !== undefined) {
19653
- localVarQueryParameter['Name'] = name;
19159
+ if (name !== undefined) {
19160
+ localVarQueryParameter['Name'] = name;
19161
+ }
19162
+
19163
+ if (stars !== undefined) {
19164
+ localVarQueryParameter['Stars'] = stars;
19165
+ }
19166
+
19167
+ if (page !== undefined) {
19168
+ localVarQueryParameter['page'] = page;
19169
+ }
19170
+
19171
+ if (limit !== undefined) {
19172
+ localVarQueryParameter['limit'] = limit;
19173
+ }
19174
+
19175
+ if (lastRetrieved !== undefined) {
19176
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
19177
+ (lastRetrieved as any).toISOString() :
19178
+ lastRetrieved;
19179
+ }
19180
+
19181
+
19182
+
19183
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19184
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19185
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19186
+
19187
+ return {
19188
+ url: toPathString(localVarUrlObj),
19189
+ options: localVarRequestOptions,
19190
+ };
19191
+ },
19192
+ /**
19193
+ *
19194
+ * @param {string} hospitalId
19195
+ * @param {string} [languageCode]
19196
+ * @param {boolean} [returnDefaultValue]
19197
+ * @param {*} [options] Override http request option.
19198
+ * @throws {RequiredError}
19199
+ */
19200
+ apiV2HospitalsHospitalIdGet: async (hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
19201
+ // verify required parameter 'hospitalId' is not null or undefined
19202
+ assertParamExists('apiV2HospitalsHospitalIdGet', 'hospitalId', hospitalId)
19203
+ const localVarPath = `/api/v2/hospitals/{hospitalId}`
19204
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
19205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19206
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19207
+ let baseOptions;
19208
+ if (configuration) {
19209
+ baseOptions = configuration.baseOptions;
19210
+ }
19211
+
19212
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19213
+ const localVarHeaderParameter = {} as any;
19214
+ const localVarQueryParameter = {} as any;
19215
+
19216
+ if (languageCode !== undefined) {
19217
+ localVarQueryParameter['languageCode'] = languageCode;
19218
+ }
19219
+
19220
+ if (returnDefaultValue !== undefined) {
19221
+ localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
19222
+ }
19223
+
19224
+
19225
+
19226
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19227
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19228
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19229
+
19230
+ return {
19231
+ url: toPathString(localVarUrlObj),
19232
+ options: localVarRequestOptions,
19233
+ };
19234
+ },
19235
+ /**
19236
+ *
19237
+ * @summary Get all HospitalHandles.
19238
+ * @param {string} hospitalId
19239
+ * @param {string} [hospitalId2]
19240
+ * @param {string} [id]
19241
+ * @param {SnsType} [snsType]
19242
+ * @param {string} [handle]
19243
+ * @param {number} [page]
19244
+ * @param {number} [limit]
19245
+ * @param {Date} [lastRetrieved]
19246
+ * @param {*} [options] Override http request option.
19247
+ * @throws {RequiredError}
19248
+ */
19249
+ apiV2HospitalsHospitalIdHandlesGet: async (hospitalId: string, hospitalId2?: string, id?: string, snsType?: SnsType, handle?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
19250
+ // verify required parameter 'hospitalId' is not null or undefined
19251
+ assertParamExists('apiV2HospitalsHospitalIdHandlesGet', 'hospitalId', hospitalId)
19252
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/handles`
19253
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
19254
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19255
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19256
+ let baseOptions;
19257
+ if (configuration) {
19258
+ baseOptions = configuration.baseOptions;
19259
+ }
19260
+
19261
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19262
+ const localVarHeaderParameter = {} as any;
19263
+ const localVarQueryParameter = {} as any;
19264
+
19265
+ if (hospitalId2 !== undefined) {
19266
+ localVarQueryParameter['HospitalId'] = hospitalId2;
19267
+ }
19268
+
19269
+ if (id !== undefined) {
19270
+ localVarQueryParameter['Id'] = id;
19271
+ }
19272
+
19273
+ if (snsType !== undefined) {
19274
+ localVarQueryParameter['SnsType'] = snsType;
19654
19275
  }
19655
19276
 
19656
- if (stars !== undefined) {
19657
- localVarQueryParameter['Stars'] = stars;
19277
+ if (handle !== undefined) {
19278
+ localVarQueryParameter['Handle'] = handle;
19658
19279
  }
19659
19280
 
19660
19281
  if (page !== undefined) {
@@ -19684,17 +19305,20 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
19684
19305
  },
19685
19306
  /**
19686
19307
  *
19308
+ * @summary Get HospitalHandle.
19687
19309
  * @param {string} hospitalId
19688
- * @param {string} [languageCode]
19689
- * @param {boolean} [returnDefaultValue]
19310
+ * @param {string} handleId
19690
19311
  * @param {*} [options] Override http request option.
19691
19312
  * @throws {RequiredError}
19692
19313
  */
19693
- apiV2HospitalsHospitalIdGet: async (hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
19314
+ apiV2HospitalsHospitalIdHandlesHandleIdGet: async (hospitalId: string, handleId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
19694
19315
  // verify required parameter 'hospitalId' is not null or undefined
19695
- assertParamExists('apiV2HospitalsHospitalIdGet', 'hospitalId', hospitalId)
19696
- const localVarPath = `/api/v2/hospitals/{hospitalId}`
19697
- .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
19316
+ assertParamExists('apiV2HospitalsHospitalIdHandlesHandleIdGet', 'hospitalId', hospitalId)
19317
+ // verify required parameter 'handleId' is not null or undefined
19318
+ assertParamExists('apiV2HospitalsHospitalIdHandlesHandleIdGet', 'handleId', handleId)
19319
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/handles/{handleId}`
19320
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
19321
+ .replace(`{${"handleId"}}`, encodeURIComponent(String(handleId)));
19698
19322
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19699
19323
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19700
19324
  let baseOptions;
@@ -19706,14 +19330,6 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
19706
19330
  const localVarHeaderParameter = {} as any;
19707
19331
  const localVarQueryParameter = {} as any;
19708
19332
 
19709
- if (languageCode !== undefined) {
19710
- localVarQueryParameter['languageCode'] = languageCode;
19711
- }
19712
-
19713
- if (returnDefaultValue !== undefined) {
19714
- localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
19715
- }
19716
-
19717
19333
 
19718
19334
 
19719
19335
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -20384,6 +20000,129 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
20384
20000
 
20385
20001
 
20386
20002
 
20003
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20004
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20005
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20006
+
20007
+ return {
20008
+ url: toPathString(localVarUrlObj),
20009
+ options: localVarRequestOptions,
20010
+ };
20011
+ },
20012
+ /**
20013
+ *
20014
+ * @summary Get all HospitalWorkingDays.
20015
+ * @param {string} hospitalId
20016
+ * @param {string} [hospitalId2]
20017
+ * @param {string} [id]
20018
+ * @param {string} [dayOfWeek]
20019
+ * @param {Date} [timeFrom]
20020
+ * @param {Date} [timeTo]
20021
+ * @param {boolean} [checkHoliday]
20022
+ * @param {number} [page]
20023
+ * @param {number} [limit]
20024
+ * @param {Date} [lastRetrieved]
20025
+ * @param {*} [options] Override http request option.
20026
+ * @throws {RequiredError}
20027
+ */
20028
+ apiV2HospitalsHospitalIdWorkingdaysGet: async (hospitalId: string, hospitalId2?: string, id?: string, dayOfWeek?: string, timeFrom?: Date, timeTo?: Date, checkHoliday?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20029
+ // verify required parameter 'hospitalId' is not null or undefined
20030
+ assertParamExists('apiV2HospitalsHospitalIdWorkingdaysGet', 'hospitalId', hospitalId)
20031
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/workingdays`
20032
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
20033
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20034
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20035
+ let baseOptions;
20036
+ if (configuration) {
20037
+ baseOptions = configuration.baseOptions;
20038
+ }
20039
+
20040
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20041
+ const localVarHeaderParameter = {} as any;
20042
+ const localVarQueryParameter = {} as any;
20043
+
20044
+ if (hospitalId2 !== undefined) {
20045
+ localVarQueryParameter['HospitalId'] = hospitalId2;
20046
+ }
20047
+
20048
+ if (id !== undefined) {
20049
+ localVarQueryParameter['Id'] = id;
20050
+ }
20051
+
20052
+ if (dayOfWeek !== undefined) {
20053
+ localVarQueryParameter['DayOfWeek'] = dayOfWeek;
20054
+ }
20055
+
20056
+ if (timeFrom !== undefined) {
20057
+ localVarQueryParameter['TimeFrom'] = (timeFrom as any instanceof Date) ?
20058
+ (timeFrom as any).toISOString() :
20059
+ timeFrom;
20060
+ }
20061
+
20062
+ if (timeTo !== undefined) {
20063
+ localVarQueryParameter['TimeTo'] = (timeTo as any instanceof Date) ?
20064
+ (timeTo as any).toISOString() :
20065
+ timeTo;
20066
+ }
20067
+
20068
+ if (checkHoliday !== undefined) {
20069
+ localVarQueryParameter['CheckHoliday'] = checkHoliday;
20070
+ }
20071
+
20072
+ if (page !== undefined) {
20073
+ localVarQueryParameter['page'] = page;
20074
+ }
20075
+
20076
+ if (limit !== undefined) {
20077
+ localVarQueryParameter['limit'] = limit;
20078
+ }
20079
+
20080
+ if (lastRetrieved !== undefined) {
20081
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
20082
+ (lastRetrieved as any).toISOString() :
20083
+ lastRetrieved;
20084
+ }
20085
+
20086
+
20087
+
20088
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20089
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20090
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20091
+
20092
+ return {
20093
+ url: toPathString(localVarUrlObj),
20094
+ options: localVarRequestOptions,
20095
+ };
20096
+ },
20097
+ /**
20098
+ *
20099
+ * @summary Get HospitalWorkingDay.
20100
+ * @param {string} hospitalId
20101
+ * @param {string} workingDayId
20102
+ * @param {*} [options] Override http request option.
20103
+ * @throws {RequiredError}
20104
+ */
20105
+ apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet: async (hospitalId: string, workingDayId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20106
+ // verify required parameter 'hospitalId' is not null or undefined
20107
+ assertParamExists('apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet', 'hospitalId', hospitalId)
20108
+ // verify required parameter 'workingDayId' is not null or undefined
20109
+ assertParamExists('apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet', 'workingDayId', workingDayId)
20110
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/workingdays/{workingDayId}`
20111
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
20112
+ .replace(`{${"workingDayId"}}`, encodeURIComponent(String(workingDayId)));
20113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20114
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20115
+ let baseOptions;
20116
+ if (configuration) {
20117
+ baseOptions = configuration.baseOptions;
20118
+ }
20119
+
20120
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20121
+ const localVarHeaderParameter = {} as any;
20122
+ const localVarQueryParameter = {} as any;
20123
+
20124
+
20125
+
20387
20126
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20388
20127
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20389
20128
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -20718,6 +20457,36 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
20718
20457
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options);
20719
20458
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20720
20459
  },
20460
+ /**
20461
+ *
20462
+ * @summary Get all HospitalHandles.
20463
+ * @param {string} hospitalId
20464
+ * @param {string} [hospitalId2]
20465
+ * @param {string} [id]
20466
+ * @param {SnsType} [snsType]
20467
+ * @param {string} [handle]
20468
+ * @param {number} [page]
20469
+ * @param {number} [limit]
20470
+ * @param {Date} [lastRetrieved]
20471
+ * @param {*} [options] Override http request option.
20472
+ * @throws {RequiredError}
20473
+ */
20474
+ async apiV2HospitalsHospitalIdHandlesGet(hospitalId: string, hospitalId2?: string, id?: string, snsType?: SnsType, handle?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalSnsHandlesModel>> {
20475
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdHandlesGet(hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options);
20476
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20477
+ },
20478
+ /**
20479
+ *
20480
+ * @summary Get HospitalHandle.
20481
+ * @param {string} hospitalId
20482
+ * @param {string} handleId
20483
+ * @param {*} [options] Override http request option.
20484
+ * @throws {RequiredError}
20485
+ */
20486
+ async apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId: string, handleId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SnsHandleModel>> {
20487
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options);
20488
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20489
+ },
20721
20490
  /**
20722
20491
  *
20723
20492
  * @summary Get all HospitalMedias.
@@ -20889,6 +20658,38 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
20889
20658
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options);
20890
20659
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20891
20660
  },
20661
+ /**
20662
+ *
20663
+ * @summary Get all HospitalWorkingDays.
20664
+ * @param {string} hospitalId
20665
+ * @param {string} [hospitalId2]
20666
+ * @param {string} [id]
20667
+ * @param {string} [dayOfWeek]
20668
+ * @param {Date} [timeFrom]
20669
+ * @param {Date} [timeTo]
20670
+ * @param {boolean} [checkHoliday]
20671
+ * @param {number} [page]
20672
+ * @param {number} [limit]
20673
+ * @param {Date} [lastRetrieved]
20674
+ * @param {*} [options] Override http request option.
20675
+ * @throws {RequiredError}
20676
+ */
20677
+ async apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId: string, hospitalId2?: string, id?: string, dayOfWeek?: string, timeFrom?: Date, timeTo?: Date, checkHoliday?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkingDaysModel>> {
20678
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options);
20679
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20680
+ },
20681
+ /**
20682
+ *
20683
+ * @summary Get HospitalWorkingDay.
20684
+ * @param {string} hospitalId
20685
+ * @param {string} workingDayId
20686
+ * @param {*} [options] Override http request option.
20687
+ * @throws {RequiredError}
20688
+ */
20689
+ async apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId: string, workingDayId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkingDayModel>> {
20690
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options);
20691
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20692
+ },
20892
20693
  /**
20893
20694
  *
20894
20695
  * @summary Get all Hospitals.
@@ -21085,6 +20886,34 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
21085
20886
  apiV2HospitalsHospitalIdGet(hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<HospitalModel> {
21086
20887
  return localVarFp.apiV2HospitalsHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
21087
20888
  },
20889
+ /**
20890
+ *
20891
+ * @summary Get all HospitalHandles.
20892
+ * @param {string} hospitalId
20893
+ * @param {string} [hospitalId2]
20894
+ * @param {string} [id]
20895
+ * @param {SnsType} [snsType]
20896
+ * @param {string} [handle]
20897
+ * @param {number} [page]
20898
+ * @param {number} [limit]
20899
+ * @param {Date} [lastRetrieved]
20900
+ * @param {*} [options] Override http request option.
20901
+ * @throws {RequiredError}
20902
+ */
20903
+ apiV2HospitalsHospitalIdHandlesGet(hospitalId: string, hospitalId2?: string, id?: string, snsType?: SnsType, handle?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalSnsHandlesModel> {
20904
+ return localVarFp.apiV2HospitalsHospitalIdHandlesGet(hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
20905
+ },
20906
+ /**
20907
+ *
20908
+ * @summary Get HospitalHandle.
20909
+ * @param {string} hospitalId
20910
+ * @param {string} handleId
20911
+ * @param {*} [options] Override http request option.
20912
+ * @throws {RequiredError}
20913
+ */
20914
+ apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId: string, handleId: string, options?: any): AxiosPromise<SnsHandleModel> {
20915
+ return localVarFp.apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options).then((request) => request(axios, basePath));
20916
+ },
21088
20917
  /**
21089
20918
  *
21090
20919
  * @summary Get all HospitalMedias.
@@ -21247,6 +21076,36 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
21247
21076
  apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId: string, specialtyId: string, serviceId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
21248
21077
  return localVarFp.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then((request) => request(axios, basePath));
21249
21078
  },
21079
+ /**
21080
+ *
21081
+ * @summary Get all HospitalWorkingDays.
21082
+ * @param {string} hospitalId
21083
+ * @param {string} [hospitalId2]
21084
+ * @param {string} [id]
21085
+ * @param {string} [dayOfWeek]
21086
+ * @param {Date} [timeFrom]
21087
+ * @param {Date} [timeTo]
21088
+ * @param {boolean} [checkHoliday]
21089
+ * @param {number} [page]
21090
+ * @param {number} [limit]
21091
+ * @param {Date} [lastRetrieved]
21092
+ * @param {*} [options] Override http request option.
21093
+ * @throws {RequiredError}
21094
+ */
21095
+ apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId: string, hospitalId2?: string, id?: string, dayOfWeek?: string, timeFrom?: Date, timeTo?: Date, checkHoliday?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<WorkingDaysModel> {
21096
+ return localVarFp.apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
21097
+ },
21098
+ /**
21099
+ *
21100
+ * @summary Get HospitalWorkingDay.
21101
+ * @param {string} hospitalId
21102
+ * @param {string} workingDayId
21103
+ * @param {*} [options] Override http request option.
21104
+ * @throws {RequiredError}
21105
+ */
21106
+ apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId: string, workingDayId: string, options?: any): AxiosPromise<WorkingDayModel> {
21107
+ return localVarFp.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options).then((request) => request(axios, basePath));
21108
+ },
21250
21109
  /**
21251
21110
  *
21252
21111
  * @summary Get all Hospitals.
@@ -21461,6 +21320,38 @@ export class HospitalsApi extends BaseAPI {
21461
21320
  return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
21462
21321
  }
21463
21322
 
21323
+ /**
21324
+ *
21325
+ * @summary Get all HospitalHandles.
21326
+ * @param {string} hospitalId
21327
+ * @param {string} [hospitalId2]
21328
+ * @param {string} [id]
21329
+ * @param {SnsType} [snsType]
21330
+ * @param {string} [handle]
21331
+ * @param {number} [page]
21332
+ * @param {number} [limit]
21333
+ * @param {Date} [lastRetrieved]
21334
+ * @param {*} [options] Override http request option.
21335
+ * @throws {RequiredError}
21336
+ * @memberof HospitalsApi
21337
+ */
21338
+ public apiV2HospitalsHospitalIdHandlesGet(hospitalId: string, hospitalId2?: string, id?: string, snsType?: SnsType, handle?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
21339
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdHandlesGet(hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
21340
+ }
21341
+
21342
+ /**
21343
+ *
21344
+ * @summary Get HospitalHandle.
21345
+ * @param {string} hospitalId
21346
+ * @param {string} handleId
21347
+ * @param {*} [options] Override http request option.
21348
+ * @throws {RequiredError}
21349
+ * @memberof HospitalsApi
21350
+ */
21351
+ public apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId: string, handleId: string, options?: AxiosRequestConfig) {
21352
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options).then((request) => request(this.axios, this.basePath));
21353
+ }
21354
+
21464
21355
  /**
21465
21356
  *
21466
21357
  * @summary Get all HospitalMedias.
@@ -21641,6 +21532,40 @@ export class HospitalsApi extends BaseAPI {
21641
21532
  return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then((request) => request(this.axios, this.basePath));
21642
21533
  }
21643
21534
 
21535
+ /**
21536
+ *
21537
+ * @summary Get all HospitalWorkingDays.
21538
+ * @param {string} hospitalId
21539
+ * @param {string} [hospitalId2]
21540
+ * @param {string} [id]
21541
+ * @param {string} [dayOfWeek]
21542
+ * @param {Date} [timeFrom]
21543
+ * @param {Date} [timeTo]
21544
+ * @param {boolean} [checkHoliday]
21545
+ * @param {number} [page]
21546
+ * @param {number} [limit]
21547
+ * @param {Date} [lastRetrieved]
21548
+ * @param {*} [options] Override http request option.
21549
+ * @throws {RequiredError}
21550
+ * @memberof HospitalsApi
21551
+ */
21552
+ public apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId: string, hospitalId2?: string, id?: string, dayOfWeek?: string, timeFrom?: Date, timeTo?: Date, checkHoliday?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
21553
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
21554
+ }
21555
+
21556
+ /**
21557
+ *
21558
+ * @summary Get HospitalWorkingDay.
21559
+ * @param {string} hospitalId
21560
+ * @param {string} workingDayId
21561
+ * @param {*} [options] Override http request option.
21562
+ * @throws {RequiredError}
21563
+ * @memberof HospitalsApi
21564
+ */
21565
+ public apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId: string, workingDayId: string, options?: AxiosRequestConfig) {
21566
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options).then((request) => request(this.axios, this.basePath));
21567
+ }
21568
+
21644
21569
  /**
21645
21570
  *
21646
21571
  * @summary Get all Hospitals.