ch-api-client-typescript2 2.9.6 → 2.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +553 -484
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +633 -986
- package/package.json +1 -1
- package/src/api.ts +852 -923
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
|
|
@@ -1330,12 +1292,6 @@ export interface BookingItemModel {
|
|
|
1330
1292
|
* @memberof BookingItemModel
|
|
1331
1293
|
*/
|
|
1332
1294
|
'requestDate'?: Date;
|
|
1333
|
-
/**
|
|
1334
|
-
*
|
|
1335
|
-
* @type {string}
|
|
1336
|
-
* @memberof BookingItemModel
|
|
1337
|
-
*/
|
|
1338
|
-
'domain'?: string | null;
|
|
1339
1295
|
/**
|
|
1340
1296
|
*
|
|
1341
1297
|
* @type {BookingStatus}
|
|
@@ -1366,6 +1322,12 @@ export interface BookingItemModel {
|
|
|
1366
1322
|
* @memberof BookingItemModel
|
|
1367
1323
|
*/
|
|
1368
1324
|
'completionRate'?: number;
|
|
1325
|
+
/**
|
|
1326
|
+
*
|
|
1327
|
+
* @type {boolean}
|
|
1328
|
+
* @memberof BookingItemModel
|
|
1329
|
+
*/
|
|
1330
|
+
'isExternal'?: boolean;
|
|
1369
1331
|
}
|
|
1370
1332
|
/**
|
|
1371
1333
|
*
|
|
@@ -1547,12 +1509,6 @@ export interface BookingModel {
|
|
|
1547
1509
|
* @memberof BookingModel
|
|
1548
1510
|
*/
|
|
1549
1511
|
'requestDate'?: Date;
|
|
1550
|
-
/**
|
|
1551
|
-
*
|
|
1552
|
-
* @type {string}
|
|
1553
|
-
* @memberof BookingModel
|
|
1554
|
-
*/
|
|
1555
|
-
'domain'?: string | null;
|
|
1556
1512
|
/**
|
|
1557
1513
|
*
|
|
1558
1514
|
* @type {BookingStatus}
|
|
@@ -1583,6 +1539,12 @@ export interface BookingModel {
|
|
|
1583
1539
|
* @memberof BookingModel
|
|
1584
1540
|
*/
|
|
1585
1541
|
'completionRate'?: number;
|
|
1542
|
+
/**
|
|
1543
|
+
*
|
|
1544
|
+
* @type {boolean}
|
|
1545
|
+
* @memberof BookingModel
|
|
1546
|
+
*/
|
|
1547
|
+
'isExternal'?: boolean;
|
|
1586
1548
|
/**
|
|
1587
1549
|
*
|
|
1588
1550
|
* @type {Array<BookingChangeLogModel>}
|
|
@@ -2052,12 +2014,6 @@ export interface ConsultationItemModel {
|
|
|
2052
2014
|
* @memberof ConsultationItemModel
|
|
2053
2015
|
*/
|
|
2054
2016
|
'requestDate'?: Date;
|
|
2055
|
-
/**
|
|
2056
|
-
*
|
|
2057
|
-
* @type {string}
|
|
2058
|
-
* @memberof ConsultationItemModel
|
|
2059
|
-
*/
|
|
2060
|
-
'domain'?: string | null;
|
|
2061
2017
|
/**
|
|
2062
2018
|
*
|
|
2063
2019
|
* @type {ConsultationStatus}
|
|
@@ -2088,6 +2044,12 @@ export interface ConsultationItemModel {
|
|
|
2088
2044
|
* @memberof ConsultationItemModel
|
|
2089
2045
|
*/
|
|
2090
2046
|
'completionRate'?: number;
|
|
2047
|
+
/**
|
|
2048
|
+
*
|
|
2049
|
+
* @type {boolean}
|
|
2050
|
+
* @memberof ConsultationItemModel
|
|
2051
|
+
*/
|
|
2052
|
+
'isExternal'?: boolean;
|
|
2091
2053
|
}
|
|
2092
2054
|
/**
|
|
2093
2055
|
*
|
|
@@ -2329,12 +2291,6 @@ export interface ConsultationModel {
|
|
|
2329
2291
|
* @memberof ConsultationModel
|
|
2330
2292
|
*/
|
|
2331
2293
|
'requestDate'?: Date;
|
|
2332
|
-
/**
|
|
2333
|
-
*
|
|
2334
|
-
* @type {string}
|
|
2335
|
-
* @memberof ConsultationModel
|
|
2336
|
-
*/
|
|
2337
|
-
'domain'?: string | null;
|
|
2338
2294
|
/**
|
|
2339
2295
|
*
|
|
2340
2296
|
* @type {ConsultationStatus}
|
|
@@ -2365,6 +2321,12 @@ export interface ConsultationModel {
|
|
|
2365
2321
|
* @memberof ConsultationModel
|
|
2366
2322
|
*/
|
|
2367
2323
|
'completionRate'?: number;
|
|
2324
|
+
/**
|
|
2325
|
+
*
|
|
2326
|
+
* @type {boolean}
|
|
2327
|
+
* @memberof ConsultationModel
|
|
2328
|
+
*/
|
|
2329
|
+
'isExternal'?: boolean;
|
|
2368
2330
|
/**
|
|
2369
2331
|
*
|
|
2370
2332
|
* @type {Array<ConsultationChangeLogModel>}
|
|
@@ -2948,6 +2910,12 @@ export interface CreateBookingCommand {
|
|
|
2948
2910
|
* @memberof CreateBookingCommand
|
|
2949
2911
|
*/
|
|
2950
2912
|
'timeZone'?: string | null;
|
|
2913
|
+
/**
|
|
2914
|
+
*
|
|
2915
|
+
* @type {boolean}
|
|
2916
|
+
* @memberof CreateBookingCommand
|
|
2917
|
+
*/
|
|
2918
|
+
'isExternal'?: boolean;
|
|
2951
2919
|
}
|
|
2952
2920
|
/**
|
|
2953
2921
|
*
|
|
@@ -3100,6 +3068,12 @@ export interface CreateConsultationCommand {
|
|
|
3100
3068
|
* @memberof CreateConsultationCommand
|
|
3101
3069
|
*/
|
|
3102
3070
|
'timeZone'?: string | null;
|
|
3071
|
+
/**
|
|
3072
|
+
*
|
|
3073
|
+
* @type {boolean}
|
|
3074
|
+
* @memberof CreateConsultationCommand
|
|
3075
|
+
*/
|
|
3076
|
+
'isExternal'?: boolean;
|
|
3103
3077
|
}
|
|
3104
3078
|
/**
|
|
3105
3079
|
*
|
|
@@ -6246,6 +6220,30 @@ export interface HospitalModel {
|
|
|
6246
6220
|
* @memberof HospitalModel
|
|
6247
6221
|
*/
|
|
6248
6222
|
'languageCode'?: string | null;
|
|
6223
|
+
/**
|
|
6224
|
+
*
|
|
6225
|
+
* @type {string}
|
|
6226
|
+
* @memberof HospitalModel
|
|
6227
|
+
*/
|
|
6228
|
+
'contactTel'?: string | null;
|
|
6229
|
+
/**
|
|
6230
|
+
*
|
|
6231
|
+
* @type {string}
|
|
6232
|
+
* @memberof HospitalModel
|
|
6233
|
+
*/
|
|
6234
|
+
'contactEmail'?: string | null;
|
|
6235
|
+
/**
|
|
6236
|
+
*
|
|
6237
|
+
* @type {Array<WorkingDay>}
|
|
6238
|
+
* @memberof HospitalModel
|
|
6239
|
+
*/
|
|
6240
|
+
'hospitalWorkingDays'?: Array<WorkingDay> | null;
|
|
6241
|
+
/**
|
|
6242
|
+
*
|
|
6243
|
+
* @type {Array<SnsHandle>}
|
|
6244
|
+
* @memberof HospitalModel
|
|
6245
|
+
*/
|
|
6246
|
+
'hospitalSnsHandles'?: Array<SnsHandle> | null;
|
|
6249
6247
|
}
|
|
6250
6248
|
/**
|
|
6251
6249
|
*
|
|
@@ -6385,6 +6383,12 @@ export interface HospitalServiceItemModel {
|
|
|
6385
6383
|
* @memberof HospitalServiceItemModel
|
|
6386
6384
|
*/
|
|
6387
6385
|
'order'?: number;
|
|
6386
|
+
/**
|
|
6387
|
+
*
|
|
6388
|
+
* @type {Array<LocalizedUrlModel>}
|
|
6389
|
+
* @memberof HospitalServiceItemModel
|
|
6390
|
+
*/
|
|
6391
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
6388
6392
|
/**
|
|
6389
6393
|
*
|
|
6390
6394
|
* @type {boolean}
|
|
@@ -6554,6 +6558,12 @@ export interface HospitalServiceModel {
|
|
|
6554
6558
|
* @memberof HospitalServiceModel
|
|
6555
6559
|
*/
|
|
6556
6560
|
'order'?: number;
|
|
6561
|
+
/**
|
|
6562
|
+
*
|
|
6563
|
+
* @type {Array<LocalizedUrlModel>}
|
|
6564
|
+
* @memberof HospitalServiceModel
|
|
6565
|
+
*/
|
|
6566
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
6557
6567
|
/**
|
|
6558
6568
|
*
|
|
6559
6569
|
* @type {boolean}
|
|
@@ -6635,6 +6645,25 @@ export interface HospitalSimpleItemModel {
|
|
|
6635
6645
|
*/
|
|
6636
6646
|
'confirmed'?: boolean;
|
|
6637
6647
|
}
|
|
6648
|
+
/**
|
|
6649
|
+
*
|
|
6650
|
+
* @export
|
|
6651
|
+
* @interface HospitalSnsHandlesModel
|
|
6652
|
+
*/
|
|
6653
|
+
export interface HospitalSnsHandlesModel {
|
|
6654
|
+
/**
|
|
6655
|
+
*
|
|
6656
|
+
* @type {Array<SnsHandleModel>}
|
|
6657
|
+
* @memberof HospitalSnsHandlesModel
|
|
6658
|
+
*/
|
|
6659
|
+
'items'?: Array<SnsHandleModel> | null;
|
|
6660
|
+
/**
|
|
6661
|
+
*
|
|
6662
|
+
* @type {PagedListMetaData}
|
|
6663
|
+
* @memberof HospitalSnsHandlesModel
|
|
6664
|
+
*/
|
|
6665
|
+
'metaData'?: PagedListMetaData;
|
|
6666
|
+
}
|
|
6638
6667
|
/**
|
|
6639
6668
|
*
|
|
6640
6669
|
* @export
|
|
@@ -6811,6 +6840,12 @@ export interface HospitalSpecialtyItemModel {
|
|
|
6811
6840
|
* @memberof HospitalSpecialtyItemModel
|
|
6812
6841
|
*/
|
|
6813
6842
|
'backgroundThumbnail'?: string | null;
|
|
6843
|
+
/**
|
|
6844
|
+
*
|
|
6845
|
+
* @type {Array<LocalizedUrlModel>}
|
|
6846
|
+
* @memberof HospitalSpecialtyItemModel
|
|
6847
|
+
*/
|
|
6848
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
6814
6849
|
/**
|
|
6815
6850
|
*
|
|
6816
6851
|
* @type {Array<MediaModel>}
|
|
@@ -6962,6 +6997,12 @@ export interface HospitalSpecialtyModel {
|
|
|
6962
6997
|
* @memberof HospitalSpecialtyModel
|
|
6963
6998
|
*/
|
|
6964
6999
|
'backgroundThumbnail'?: string | null;
|
|
7000
|
+
/**
|
|
7001
|
+
*
|
|
7002
|
+
* @type {Array<LocalizedUrlModel>}
|
|
7003
|
+
* @memberof HospitalSpecialtyModel
|
|
7004
|
+
*/
|
|
7005
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
6965
7006
|
/**
|
|
6966
7007
|
*
|
|
6967
7008
|
* @type {Array<MediaModel>}
|
|
@@ -7023,6 +7064,12 @@ export interface HospitalSpecialtySimpleItemModel {
|
|
|
7023
7064
|
* @memberof HospitalSpecialtySimpleItemModel
|
|
7024
7065
|
*/
|
|
7025
7066
|
'confirmed'?: boolean;
|
|
7067
|
+
/**
|
|
7068
|
+
*
|
|
7069
|
+
* @type {Array<LocalizedUrlModel>}
|
|
7070
|
+
* @memberof HospitalSpecialtySimpleItemModel
|
|
7071
|
+
*/
|
|
7072
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
7026
7073
|
}
|
|
7027
7074
|
/**
|
|
7028
7075
|
*
|
|
@@ -8171,44 +8218,6 @@ export enum RefundPolicy {
|
|
|
8171
8218
|
PartialRefundable = 'PartialRefundable'
|
|
8172
8219
|
}
|
|
8173
8220
|
|
|
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
8221
|
/**
|
|
8213
8222
|
*
|
|
8214
8223
|
* @export
|
|
@@ -8772,6 +8781,31 @@ export interface ServiceReviewsModel {
|
|
|
8772
8781
|
*/
|
|
8773
8782
|
'metaData'?: PagedListMetaData;
|
|
8774
8783
|
}
|
|
8784
|
+
/**
|
|
8785
|
+
*
|
|
8786
|
+
* @export
|
|
8787
|
+
* @interface SnsHandle
|
|
8788
|
+
*/
|
|
8789
|
+
export interface SnsHandle {
|
|
8790
|
+
/**
|
|
8791
|
+
*
|
|
8792
|
+
* @type {string}
|
|
8793
|
+
* @memberof SnsHandle
|
|
8794
|
+
*/
|
|
8795
|
+
'id'?: string;
|
|
8796
|
+
/**
|
|
8797
|
+
*
|
|
8798
|
+
* @type {SnsType}
|
|
8799
|
+
* @memberof SnsHandle
|
|
8800
|
+
*/
|
|
8801
|
+
'snsType'?: SnsType;
|
|
8802
|
+
/**
|
|
8803
|
+
*
|
|
8804
|
+
* @type {string}
|
|
8805
|
+
* @memberof SnsHandle
|
|
8806
|
+
*/
|
|
8807
|
+
'handle'?: string | null;
|
|
8808
|
+
}
|
|
8775
8809
|
/**
|
|
8776
8810
|
*
|
|
8777
8811
|
* @export
|
|
@@ -8806,7 +8840,9 @@ export interface SnsHandleModel {
|
|
|
8806
8840
|
export enum SnsType {
|
|
8807
8841
|
Twitter = 'Twitter',
|
|
8808
8842
|
Facebook = 'Facebook',
|
|
8809
|
-
Instagram = 'Instagram'
|
|
8843
|
+
Instagram = 'Instagram',
|
|
8844
|
+
LinkedIn = 'LinkedIn',
|
|
8845
|
+
Youtube = 'Youtube'
|
|
8810
8846
|
}
|
|
8811
8847
|
|
|
8812
8848
|
/**
|
|
@@ -8925,6 +8961,12 @@ export interface SpecialtyItemModel {
|
|
|
8925
8961
|
* @memberof SpecialtyItemModel
|
|
8926
8962
|
*/
|
|
8927
8963
|
'confirmed'?: boolean;
|
|
8964
|
+
/**
|
|
8965
|
+
*
|
|
8966
|
+
* @type {Array<LocalizedUrlModel>}
|
|
8967
|
+
* @memberof SpecialtyItemModel
|
|
8968
|
+
*/
|
|
8969
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
8928
8970
|
/**
|
|
8929
8971
|
*
|
|
8930
8972
|
* @type {AuditableEntity}
|
|
@@ -9010,6 +9052,12 @@ export interface SpecialtyModel {
|
|
|
9010
9052
|
* @memberof SpecialtyModel
|
|
9011
9053
|
*/
|
|
9012
9054
|
'confirmed'?: boolean;
|
|
9055
|
+
/**
|
|
9056
|
+
*
|
|
9057
|
+
* @type {Array<LocalizedUrlModel>}
|
|
9058
|
+
* @memberof SpecialtyModel
|
|
9059
|
+
*/
|
|
9060
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
9013
9061
|
/**
|
|
9014
9062
|
*
|
|
9015
9063
|
* @type {AuditableEntity}
|
|
@@ -9947,65 +9995,151 @@ export interface UserModel {
|
|
|
9947
9995
|
*/
|
|
9948
9996
|
'locations'?: Array<UserLocationModel> | null;
|
|
9949
9997
|
}
|
|
9950
|
-
|
|
9951
9998
|
/**
|
|
9952
|
-
*
|
|
9999
|
+
*
|
|
9953
10000
|
* @export
|
|
10001
|
+
* @interface WorkingDay
|
|
9954
10002
|
*/
|
|
9955
|
-
export
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
|
|
10003
|
+
export interface WorkingDay {
|
|
10004
|
+
/**
|
|
10005
|
+
*
|
|
10006
|
+
* @type {string}
|
|
10007
|
+
* @memberof WorkingDay
|
|
10008
|
+
*/
|
|
10009
|
+
'id'?: string;
|
|
10010
|
+
/**
|
|
10011
|
+
*
|
|
10012
|
+
* @type {string}
|
|
10013
|
+
* @memberof WorkingDay
|
|
10014
|
+
*/
|
|
10015
|
+
'dayOfWeek'?: string | null;
|
|
10016
|
+
/**
|
|
10017
|
+
*
|
|
10018
|
+
* @type {Date}
|
|
10019
|
+
* @memberof WorkingDay
|
|
10020
|
+
*/
|
|
10021
|
+
'timeFrom'?: Date;
|
|
10022
|
+
/**
|
|
10023
|
+
*
|
|
10024
|
+
* @type {Date}
|
|
10025
|
+
* @memberof WorkingDay
|
|
10026
|
+
*/
|
|
10027
|
+
'timeTo'?: Date;
|
|
10028
|
+
/**
|
|
10029
|
+
*
|
|
10030
|
+
* @type {boolean}
|
|
10031
|
+
* @memberof WorkingDay
|
|
10032
|
+
*/
|
|
10033
|
+
'checkHoliday'?: boolean;
|
|
10034
|
+
}
|
|
10035
|
+
/**
|
|
10036
|
+
*
|
|
10037
|
+
* @export
|
|
10038
|
+
* @interface WorkingDayItemModel
|
|
10039
|
+
*/
|
|
10040
|
+
export interface WorkingDayItemModel {
|
|
10041
|
+
/**
|
|
10042
|
+
*
|
|
10043
|
+
* @type {string}
|
|
10044
|
+
* @memberof WorkingDayItemModel
|
|
10045
|
+
*/
|
|
10046
|
+
'id'?: string;
|
|
10047
|
+
/**
|
|
10048
|
+
*
|
|
10049
|
+
* @type {string}
|
|
10050
|
+
* @memberof WorkingDayItemModel
|
|
10051
|
+
*/
|
|
10052
|
+
'dayOfWeek'?: string | null;
|
|
10053
|
+
/**
|
|
10054
|
+
*
|
|
10055
|
+
* @type {Date}
|
|
10056
|
+
* @memberof WorkingDayItemModel
|
|
10057
|
+
*/
|
|
10058
|
+
'timeFrom'?: Date;
|
|
10059
|
+
/**
|
|
10060
|
+
*
|
|
10061
|
+
* @type {Date}
|
|
10062
|
+
* @memberof WorkingDayItemModel
|
|
10063
|
+
*/
|
|
10064
|
+
'timeTo'?: Date;
|
|
10065
|
+
/**
|
|
10066
|
+
*
|
|
10067
|
+
* @type {boolean}
|
|
10068
|
+
* @memberof WorkingDayItemModel
|
|
10069
|
+
*/
|
|
10070
|
+
'checkHoliday'?: boolean;
|
|
10071
|
+
}
|
|
10072
|
+
/**
|
|
10073
|
+
*
|
|
10074
|
+
* @export
|
|
10075
|
+
* @interface WorkingDayModel
|
|
10076
|
+
*/
|
|
10077
|
+
export interface WorkingDayModel {
|
|
10078
|
+
/**
|
|
10079
|
+
*
|
|
10080
|
+
* @type {string}
|
|
10081
|
+
* @memberof WorkingDayModel
|
|
10082
|
+
*/
|
|
10083
|
+
'id'?: string;
|
|
10084
|
+
/**
|
|
10085
|
+
*
|
|
10086
|
+
* @type {string}
|
|
10087
|
+
* @memberof WorkingDayModel
|
|
10088
|
+
*/
|
|
10089
|
+
'dayOfWeek'?: string | null;
|
|
10090
|
+
/**
|
|
10091
|
+
*
|
|
10092
|
+
* @type {Date}
|
|
10093
|
+
* @memberof WorkingDayModel
|
|
10094
|
+
*/
|
|
10095
|
+
'timeFrom'?: Date;
|
|
10096
|
+
/**
|
|
10097
|
+
*
|
|
10098
|
+
* @type {Date}
|
|
10099
|
+
* @memberof WorkingDayModel
|
|
10100
|
+
*/
|
|
10101
|
+
'timeTo'?: Date;
|
|
10102
|
+
/**
|
|
10103
|
+
*
|
|
10104
|
+
* @type {boolean}
|
|
10105
|
+
* @memberof WorkingDayModel
|
|
10106
|
+
*/
|
|
10107
|
+
'checkHoliday'?: boolean;
|
|
10108
|
+
}
|
|
10109
|
+
/**
|
|
10110
|
+
*
|
|
10111
|
+
* @export
|
|
10112
|
+
* @interface WorkingDaysModel
|
|
10113
|
+
*/
|
|
10114
|
+
export interface WorkingDaysModel {
|
|
10115
|
+
/**
|
|
10116
|
+
*
|
|
10117
|
+
* @type {Array<WorkingDayItemModel>}
|
|
10118
|
+
* @memberof WorkingDaysModel
|
|
10119
|
+
*/
|
|
10120
|
+
'items'?: Array<WorkingDayItemModel> | null;
|
|
10121
|
+
/**
|
|
10122
|
+
*
|
|
10123
|
+
* @type {PagedListMetaData}
|
|
10124
|
+
* @memberof WorkingDaysModel
|
|
10125
|
+
*/
|
|
10126
|
+
'metaData'?: PagedListMetaData;
|
|
10127
|
+
}
|
|
10128
|
+
|
|
10129
|
+
/**
|
|
10130
|
+
* AboutUsApi - axios parameter creator
|
|
10131
|
+
* @export
|
|
10132
|
+
*/
|
|
10133
|
+
export const AboutUsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10134
|
+
return {
|
|
10135
|
+
/**
|
|
10136
|
+
*
|
|
10137
|
+
* @summary Get all AboutUsList.
|
|
10138
|
+
* @param {string} [hospitalId]
|
|
10139
|
+
* @param {string} [hospitalName]
|
|
10140
|
+
* @param {string} [hospitalSlug]
|
|
10141
|
+
* @param {string} [overviewTitle]
|
|
10142
|
+
* @param {string} [normalizedOverviewTitle]
|
|
10009
10143
|
* @param {string} [overview]
|
|
10010
10144
|
* @param {string} [content]
|
|
10011
10145
|
* @param {string} [customStyle]
|
|
@@ -10101,6 +10235,50 @@ export const AboutUsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
10101
10235
|
|
|
10102
10236
|
|
|
10103
10237
|
|
|
10238
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10239
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10240
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10241
|
+
|
|
10242
|
+
return {
|
|
10243
|
+
url: toPathString(localVarUrlObj),
|
|
10244
|
+
options: localVarRequestOptions,
|
|
10245
|
+
};
|
|
10246
|
+
},
|
|
10247
|
+
/**
|
|
10248
|
+
*
|
|
10249
|
+
* @summary Get AboutUs.
|
|
10250
|
+
* @param {string} hospitalId
|
|
10251
|
+
* @param {string} [languageCode]
|
|
10252
|
+
* @param {boolean} [returnDefaultValue]
|
|
10253
|
+
* @param {*} [options] Override http request option.
|
|
10254
|
+
* @throws {RequiredError}
|
|
10255
|
+
*/
|
|
10256
|
+
apiV2AboutusHospitalIdGet: async (hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10257
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
10258
|
+
assertParamExists('apiV2AboutusHospitalIdGet', 'hospitalId', hospitalId)
|
|
10259
|
+
const localVarPath = `/api/v2/aboutus/{hospitalId}`
|
|
10260
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
10261
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10262
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10263
|
+
let baseOptions;
|
|
10264
|
+
if (configuration) {
|
|
10265
|
+
baseOptions = configuration.baseOptions;
|
|
10266
|
+
}
|
|
10267
|
+
|
|
10268
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10269
|
+
const localVarHeaderParameter = {} as any;
|
|
10270
|
+
const localVarQueryParameter = {} as any;
|
|
10271
|
+
|
|
10272
|
+
if (languageCode !== undefined) {
|
|
10273
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
10274
|
+
}
|
|
10275
|
+
|
|
10276
|
+
if (returnDefaultValue !== undefined) {
|
|
10277
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
10278
|
+
}
|
|
10279
|
+
|
|
10280
|
+
|
|
10281
|
+
|
|
10104
10282
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10105
10283
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10106
10284
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -10163,19 +10341,6 @@ export const AboutUsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
10163
10341
|
export const AboutUsApiFp = function(configuration?: Configuration) {
|
|
10164
10342
|
const localVarAxiosParamCreator = AboutUsApiAxiosParamCreator(configuration)
|
|
10165
10343
|
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
10344
|
/**
|
|
10180
10345
|
*
|
|
10181
10346
|
* @summary Get all AboutUsList.
|
|
@@ -10202,6 +10367,19 @@ export const AboutUsApiFp = function(configuration?: Configuration) {
|
|
|
10202
10367
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AboutusGet(hospitalId, hospitalName, hospitalSlug, overviewTitle, normalizedOverviewTitle, overview, content, customStyle, background, backgroundThumbnail, languageCode, returnDefaultValue, confirmed, page, limit, lastRetrieved, options);
|
|
10203
10368
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10204
10369
|
},
|
|
10370
|
+
/**
|
|
10371
|
+
*
|
|
10372
|
+
* @summary Get AboutUs.
|
|
10373
|
+
* @param {string} hospitalId
|
|
10374
|
+
* @param {string} [languageCode]
|
|
10375
|
+
* @param {boolean} [returnDefaultValue]
|
|
10376
|
+
* @param {*} [options] Override http request option.
|
|
10377
|
+
* @throws {RequiredError}
|
|
10378
|
+
*/
|
|
10379
|
+
async apiV2AboutusHospitalIdGet(hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AboutUsPageModel>> {
|
|
10380
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AboutusHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options);
|
|
10381
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10382
|
+
},
|
|
10205
10383
|
/**
|
|
10206
10384
|
*
|
|
10207
10385
|
* @param {string} slug
|
|
@@ -10224,18 +10402,6 @@ export const AboutUsApiFp = function(configuration?: Configuration) {
|
|
|
10224
10402
|
export const AboutUsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
10225
10403
|
const localVarFp = AboutUsApiFp(configuration)
|
|
10226
10404
|
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
10405
|
/**
|
|
10240
10406
|
*
|
|
10241
10407
|
* @summary Get all AboutUsList.
|
|
@@ -10261,6 +10427,18 @@ export const AboutUsApiFactory = function (configuration?: Configuration, basePa
|
|
|
10261
10427
|
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
10428
|
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
10429
|
},
|
|
10430
|
+
/**
|
|
10431
|
+
*
|
|
10432
|
+
* @summary Get AboutUs.
|
|
10433
|
+
* @param {string} hospitalId
|
|
10434
|
+
* @param {string} [languageCode]
|
|
10435
|
+
* @param {boolean} [returnDefaultValue]
|
|
10436
|
+
* @param {*} [options] Override http request option.
|
|
10437
|
+
* @throws {RequiredError}
|
|
10438
|
+
*/
|
|
10439
|
+
apiV2AboutusHospitalIdGet(hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<AboutUsPageModel> {
|
|
10440
|
+
return localVarFp.apiV2AboutusHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
10441
|
+
},
|
|
10264
10442
|
/**
|
|
10265
10443
|
*
|
|
10266
10444
|
* @param {string} slug
|
|
@@ -10282,20 +10460,6 @@ export const AboutUsApiFactory = function (configuration?: Configuration, basePa
|
|
|
10282
10460
|
* @extends {BaseAPI}
|
|
10283
10461
|
*/
|
|
10284
10462
|
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
10463
|
/**
|
|
10300
10464
|
*
|
|
10301
10465
|
* @summary Get all AboutUsList.
|
|
@@ -10323,6 +10487,20 @@ export class AboutUsApi extends BaseAPI {
|
|
|
10323
10487
|
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
10488
|
}
|
|
10325
10489
|
|
|
10490
|
+
/**
|
|
10491
|
+
*
|
|
10492
|
+
* @summary Get AboutUs.
|
|
10493
|
+
* @param {string} hospitalId
|
|
10494
|
+
* @param {string} [languageCode]
|
|
10495
|
+
* @param {boolean} [returnDefaultValue]
|
|
10496
|
+
* @param {*} [options] Override http request option.
|
|
10497
|
+
* @throws {RequiredError}
|
|
10498
|
+
* @memberof AboutUsApi
|
|
10499
|
+
*/
|
|
10500
|
+
public apiV2AboutusHospitalIdGet(hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) {
|
|
10501
|
+
return AboutUsApiFp(this.configuration).apiV2AboutusHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
10502
|
+
}
|
|
10503
|
+
|
|
10326
10504
|
/**
|
|
10327
10505
|
*
|
|
10328
10506
|
* @param {string} slug
|
|
@@ -11731,16 +11909,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11731
11909
|
return {
|
|
11732
11910
|
/**
|
|
11733
11911
|
*
|
|
11734
|
-
* @summary
|
|
11912
|
+
* @summary Get booking.
|
|
11735
11913
|
* @param {string} bookingId
|
|
11736
|
-
* @param {ApproveBookingCommand} [approveBookingCommand]
|
|
11737
11914
|
* @param {*} [options] Override http request option.
|
|
11738
11915
|
* @throws {RequiredError}
|
|
11739
11916
|
*/
|
|
11740
|
-
|
|
11917
|
+
apiV2BookingsBookingIdGet: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11741
11918
|
// verify required parameter 'bookingId' is not null or undefined
|
|
11742
|
-
assertParamExists('
|
|
11743
|
-
const localVarPath = `/api/v2/bookings/{bookingId}
|
|
11919
|
+
assertParamExists('apiV2BookingsBookingIdGet', 'bookingId', bookingId)
|
|
11920
|
+
const localVarPath = `/api/v2/bookings/{bookingId}`
|
|
11744
11921
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
11745
11922
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11746
11923
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11749,7 +11926,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11749
11926
|
baseOptions = configuration.baseOptions;
|
|
11750
11927
|
}
|
|
11751
11928
|
|
|
11752
|
-
const localVarRequestOptions = { method: '
|
|
11929
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11753
11930
|
const localVarHeaderParameter = {} as any;
|
|
11754
11931
|
const localVarQueryParameter = {} as any;
|
|
11755
11932
|
|
|
@@ -11759,12 +11936,9 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11759
11936
|
|
|
11760
11937
|
|
|
11761
11938
|
|
|
11762
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11763
|
-
|
|
11764
11939
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11765
11940
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11766
11941
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11767
|
-
localVarRequestOptions.data = serializeDataIfNeeded(approveBookingCommand, localVarRequestOptions, configuration)
|
|
11768
11942
|
|
|
11769
11943
|
return {
|
|
11770
11944
|
url: toPathString(localVarUrlObj),
|
|
@@ -11773,15 +11947,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11773
11947
|
},
|
|
11774
11948
|
/**
|
|
11775
11949
|
*
|
|
11776
|
-
* @summary
|
|
11950
|
+
* @summary Pay booking.
|
|
11777
11951
|
* @param {string} bookingId
|
|
11778
11952
|
* @param {*} [options] Override http request option.
|
|
11779
11953
|
* @throws {RequiredError}
|
|
11780
11954
|
*/
|
|
11781
|
-
|
|
11955
|
+
apiV2BookingsBookingIdPayPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11782
11956
|
// verify required parameter 'bookingId' is not null or undefined
|
|
11783
|
-
assertParamExists('
|
|
11784
|
-
const localVarPath = `/api/v2/bookings/{bookingId}/
|
|
11957
|
+
assertParamExists('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId)
|
|
11958
|
+
const localVarPath = `/api/v2/bookings/{bookingId}/pay`
|
|
11785
11959
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
11786
11960
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11787
11961
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11790,7 +11964,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11790
11964
|
baseOptions = configuration.baseOptions;
|
|
11791
11965
|
}
|
|
11792
11966
|
|
|
11793
|
-
const localVarRequestOptions = { method: '
|
|
11967
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11794
11968
|
const localVarHeaderParameter = {} as any;
|
|
11795
11969
|
const localVarQueryParameter = {} as any;
|
|
11796
11970
|
|
|
@@ -11811,14 +11985,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11811
11985
|
},
|
|
11812
11986
|
/**
|
|
11813
11987
|
*
|
|
11814
|
-
* @summary
|
|
11988
|
+
* @summary Update booking.
|
|
11815
11989
|
* @param {string} bookingId
|
|
11990
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
11816
11991
|
* @param {*} [options] Override http request option.
|
|
11817
11992
|
* @throws {RequiredError}
|
|
11818
11993
|
*/
|
|
11819
|
-
|
|
11994
|
+
apiV2BookingsBookingIdPut: async (bookingId: string, updateBookingCommand?: UpdateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11820
11995
|
// verify required parameter 'bookingId' is not null or undefined
|
|
11821
|
-
assertParamExists('
|
|
11996
|
+
assertParamExists('apiV2BookingsBookingIdPut', 'bookingId', bookingId)
|
|
11822
11997
|
const localVarPath = `/api/v2/bookings/{bookingId}`
|
|
11823
11998
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
11824
11999
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11828,7 +12003,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11828
12003
|
baseOptions = configuration.baseOptions;
|
|
11829
12004
|
}
|
|
11830
12005
|
|
|
11831
|
-
const localVarRequestOptions = { method: '
|
|
12006
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
11832
12007
|
const localVarHeaderParameter = {} as any;
|
|
11833
12008
|
const localVarQueryParameter = {} as any;
|
|
11834
12009
|
|
|
@@ -11838,9 +12013,12 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11838
12013
|
|
|
11839
12014
|
|
|
11840
12015
|
|
|
12016
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12017
|
+
|
|
11841
12018
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11842
12019
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11843
12020
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12021
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBookingCommand, localVarRequestOptions, configuration)
|
|
11844
12022
|
|
|
11845
12023
|
return {
|
|
11846
12024
|
url: toPathString(localVarUrlObj),
|
|
@@ -11849,16 +12027,21 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11849
12027
|
},
|
|
11850
12028
|
/**
|
|
11851
12029
|
*
|
|
11852
|
-
* @summary Get
|
|
11853
|
-
* @param {string}
|
|
12030
|
+
* @summary Get all bookings.
|
|
12031
|
+
* @param {string} [searchString]
|
|
12032
|
+
* @param {boolean} [isOpen]
|
|
12033
|
+
* @param {boolean} [isCompleted]
|
|
12034
|
+
* @param {BookingStatus} [status]
|
|
12035
|
+
* @param {string} [dealPackageId]
|
|
12036
|
+
* @param {string} [hospitalId]
|
|
12037
|
+
* @param {number} [page]
|
|
12038
|
+
* @param {number} [limit]
|
|
12039
|
+
* @param {Date} [lastRetrieved]
|
|
11854
12040
|
* @param {*} [options] Override http request option.
|
|
11855
12041
|
* @throws {RequiredError}
|
|
11856
12042
|
*/
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
assertParamExists('apiV2BookingsBookingIdGet', 'bookingId', bookingId)
|
|
11860
|
-
const localVarPath = `/api/v2/bookings/{bookingId}`
|
|
11861
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12043
|
+
apiV2BookingsGet: async (searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, hospitalId?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12044
|
+
const localVarPath = `/api/v2/bookings`;
|
|
11862
12045
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11863
12046
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11864
12047
|
let baseOptions;
|
|
@@ -11874,212 +12057,9 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11874
12057
|
// oauth required
|
|
11875
12058
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
11876
12059
|
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11881
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11882
|
-
|
|
11883
|
-
return {
|
|
11884
|
-
url: toPathString(localVarUrlObj),
|
|
11885
|
-
options: localVarRequestOptions,
|
|
11886
|
-
};
|
|
11887
|
-
},
|
|
11888
|
-
/**
|
|
11889
|
-
*
|
|
11890
|
-
* @summary Mark as Paid booking.
|
|
11891
|
-
* @param {string} bookingId
|
|
11892
|
-
* @param {*} [options] Override http request option.
|
|
11893
|
-
* @throws {RequiredError}
|
|
11894
|
-
*/
|
|
11895
|
-
apiV2BookingsBookingIdPaidPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11896
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
11897
|
-
assertParamExists('apiV2BookingsBookingIdPaidPost', 'bookingId', bookingId)
|
|
11898
|
-
const localVarPath = `/api/v2/bookings/{bookingId}/paid`
|
|
11899
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
11900
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11901
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11902
|
-
let baseOptions;
|
|
11903
|
-
if (configuration) {
|
|
11904
|
-
baseOptions = configuration.baseOptions;
|
|
11905
|
-
}
|
|
11906
|
-
|
|
11907
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11908
|
-
const localVarHeaderParameter = {} as any;
|
|
11909
|
-
const localVarQueryParameter = {} as any;
|
|
11910
|
-
|
|
11911
|
-
// authentication oauth2 required
|
|
11912
|
-
// oauth required
|
|
11913
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11917
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11918
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11919
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11920
|
-
|
|
11921
|
-
return {
|
|
11922
|
-
url: toPathString(localVarUrlObj),
|
|
11923
|
-
options: localVarRequestOptions,
|
|
11924
|
-
};
|
|
11925
|
-
},
|
|
11926
|
-
/**
|
|
11927
|
-
*
|
|
11928
|
-
* @summary Pay booking.
|
|
11929
|
-
* @param {string} bookingId
|
|
11930
|
-
* @param {*} [options] Override http request option.
|
|
11931
|
-
* @throws {RequiredError}
|
|
11932
|
-
*/
|
|
11933
|
-
apiV2BookingsBookingIdPayPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11934
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
11935
|
-
assertParamExists('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId)
|
|
11936
|
-
const localVarPath = `/api/v2/bookings/{bookingId}/pay`
|
|
11937
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
11938
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11939
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11940
|
-
let baseOptions;
|
|
11941
|
-
if (configuration) {
|
|
11942
|
-
baseOptions = configuration.baseOptions;
|
|
11943
|
-
}
|
|
11944
|
-
|
|
11945
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11946
|
-
const localVarHeaderParameter = {} as any;
|
|
11947
|
-
const localVarQueryParameter = {} as any;
|
|
11948
|
-
|
|
11949
|
-
// authentication oauth2 required
|
|
11950
|
-
// oauth required
|
|
11951
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
11952
|
-
|
|
11953
|
-
|
|
11954
|
-
|
|
11955
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11956
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11957
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11958
|
-
|
|
11959
|
-
return {
|
|
11960
|
-
url: toPathString(localVarUrlObj),
|
|
11961
|
-
options: localVarRequestOptions,
|
|
11962
|
-
};
|
|
11963
|
-
},
|
|
11964
|
-
/**
|
|
11965
|
-
*
|
|
11966
|
-
* @summary Update booking.
|
|
11967
|
-
* @param {string} bookingId
|
|
11968
|
-
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
11969
|
-
* @param {*} [options] Override http request option.
|
|
11970
|
-
* @throws {RequiredError}
|
|
11971
|
-
*/
|
|
11972
|
-
apiV2BookingsBookingIdPut: async (bookingId: string, updateBookingCommand?: UpdateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11973
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
11974
|
-
assertParamExists('apiV2BookingsBookingIdPut', 'bookingId', bookingId)
|
|
11975
|
-
const localVarPath = `/api/v2/bookings/{bookingId}`
|
|
11976
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
11977
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11978
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11979
|
-
let baseOptions;
|
|
11980
|
-
if (configuration) {
|
|
11981
|
-
baseOptions = configuration.baseOptions;
|
|
11982
|
-
}
|
|
11983
|
-
|
|
11984
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
11985
|
-
const localVarHeaderParameter = {} as any;
|
|
11986
|
-
const localVarQueryParameter = {} as any;
|
|
11987
|
-
|
|
11988
|
-
// authentication oauth2 required
|
|
11989
|
-
// oauth required
|
|
11990
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
11991
|
-
|
|
11992
|
-
|
|
11993
|
-
|
|
11994
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11995
|
-
|
|
11996
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11997
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11998
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11999
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateBookingCommand, localVarRequestOptions, configuration)
|
|
12000
|
-
|
|
12001
|
-
return {
|
|
12002
|
-
url: toPathString(localVarUrlObj),
|
|
12003
|
-
options: localVarRequestOptions,
|
|
12004
|
-
};
|
|
12005
|
-
},
|
|
12006
|
-
/**
|
|
12007
|
-
*
|
|
12008
|
-
* @summary Reject booking.
|
|
12009
|
-
* @param {string} bookingId
|
|
12010
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
12011
|
-
* @param {*} [options] Override http request option.
|
|
12012
|
-
* @throws {RequiredError}
|
|
12013
|
-
*/
|
|
12014
|
-
apiV2BookingsBookingIdRejectPut: async (bookingId: string, rejectBookingCommand?: RejectBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12015
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
12016
|
-
assertParamExists('apiV2BookingsBookingIdRejectPut', 'bookingId', bookingId)
|
|
12017
|
-
const localVarPath = `/api/v2/bookings/{bookingId}/reject`
|
|
12018
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12019
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12020
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12021
|
-
let baseOptions;
|
|
12022
|
-
if (configuration) {
|
|
12023
|
-
baseOptions = configuration.baseOptions;
|
|
12024
|
-
}
|
|
12025
|
-
|
|
12026
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
12027
|
-
const localVarHeaderParameter = {} as any;
|
|
12028
|
-
const localVarQueryParameter = {} as any;
|
|
12029
|
-
|
|
12030
|
-
// authentication oauth2 required
|
|
12031
|
-
// oauth required
|
|
12032
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
12033
|
-
|
|
12034
|
-
|
|
12035
|
-
|
|
12036
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12037
|
-
|
|
12038
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12039
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12040
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12041
|
-
localVarRequestOptions.data = serializeDataIfNeeded(rejectBookingCommand, localVarRequestOptions, configuration)
|
|
12042
|
-
|
|
12043
|
-
return {
|
|
12044
|
-
url: toPathString(localVarUrlObj),
|
|
12045
|
-
options: localVarRequestOptions,
|
|
12046
|
-
};
|
|
12047
|
-
},
|
|
12048
|
-
/**
|
|
12049
|
-
*
|
|
12050
|
-
* @summary Get all bookings.
|
|
12051
|
-
* @param {string} [searchString]
|
|
12052
|
-
* @param {boolean} [isOpen]
|
|
12053
|
-
* @param {boolean} [isCompleted]
|
|
12054
|
-
* @param {BookingStatus} [status]
|
|
12055
|
-
* @param {string} [dealPackageId]
|
|
12056
|
-
* @param {string} [hospitalId]
|
|
12057
|
-
* @param {number} [page]
|
|
12058
|
-
* @param {number} [limit]
|
|
12059
|
-
* @param {Date} [lastRetrieved]
|
|
12060
|
-
* @param {*} [options] Override http request option.
|
|
12061
|
-
* @throws {RequiredError}
|
|
12062
|
-
*/
|
|
12063
|
-
apiV2BookingsGet: async (searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, hospitalId?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12064
|
-
const localVarPath = `/api/v2/bookings`;
|
|
12065
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12066
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12067
|
-
let baseOptions;
|
|
12068
|
-
if (configuration) {
|
|
12069
|
-
baseOptions = configuration.baseOptions;
|
|
12070
|
-
}
|
|
12071
|
-
|
|
12072
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
12073
|
-
const localVarHeaderParameter = {} as any;
|
|
12074
|
-
const localVarQueryParameter = {} as any;
|
|
12075
|
-
|
|
12076
|
-
// authentication oauth2 required
|
|
12077
|
-
// oauth required
|
|
12078
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
12079
|
-
|
|
12080
|
-
if (searchString !== undefined) {
|
|
12081
|
-
localVarQueryParameter['SearchString'] = searchString;
|
|
12082
|
-
}
|
|
12060
|
+
if (searchString !== undefined) {
|
|
12061
|
+
localVarQueryParameter['SearchString'] = searchString;
|
|
12062
|
+
}
|
|
12083
12063
|
|
|
12084
12064
|
if (isOpen !== undefined) {
|
|
12085
12065
|
localVarQueryParameter['IsOpen'] = isOpen;
|
|
@@ -12178,40 +12158,6 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12178
12158
|
export const BookingsApiFp = function(configuration?: Configuration) {
|
|
12179
12159
|
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
|
|
12180
12160
|
return {
|
|
12181
|
-
/**
|
|
12182
|
-
*
|
|
12183
|
-
* @summary Approve booking.
|
|
12184
|
-
* @param {string} bookingId
|
|
12185
|
-
* @param {ApproveBookingCommand} [approveBookingCommand]
|
|
12186
|
-
* @param {*} [options] Override http request option.
|
|
12187
|
-
* @throws {RequiredError}
|
|
12188
|
-
*/
|
|
12189
|
-
async apiV2BookingsBookingIdApprovePut(bookingId: string, approveBookingCommand?: ApproveBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
12190
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options);
|
|
12191
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12192
|
-
},
|
|
12193
|
-
/**
|
|
12194
|
-
*
|
|
12195
|
-
* @summary Cancel booking.
|
|
12196
|
-
* @param {string} bookingId
|
|
12197
|
-
* @param {*} [options] Override http request option.
|
|
12198
|
-
* @throws {RequiredError}
|
|
12199
|
-
*/
|
|
12200
|
-
async apiV2BookingsBookingIdCancelPut(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
12201
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdCancelPut(bookingId, options);
|
|
12202
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12203
|
-
},
|
|
12204
|
-
/**
|
|
12205
|
-
*
|
|
12206
|
-
* @summary Delete booking.
|
|
12207
|
-
* @param {string} bookingId
|
|
12208
|
-
* @param {*} [options] Override http request option.
|
|
12209
|
-
* @throws {RequiredError}
|
|
12210
|
-
*/
|
|
12211
|
-
async apiV2BookingsBookingIdDelete(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
12212
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdDelete(bookingId, options);
|
|
12213
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12214
|
-
},
|
|
12215
12161
|
/**
|
|
12216
12162
|
*
|
|
12217
12163
|
* @summary Get booking.
|
|
@@ -12223,17 +12169,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12223
12169
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options);
|
|
12224
12170
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12225
12171
|
},
|
|
12226
|
-
/**
|
|
12227
|
-
*
|
|
12228
|
-
* @summary Mark as Paid booking.
|
|
12229
|
-
* @param {string} bookingId
|
|
12230
|
-
* @param {*} [options] Override http request option.
|
|
12231
|
-
* @throws {RequiredError}
|
|
12232
|
-
*/
|
|
12233
|
-
async apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
12234
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPaidPost(bookingId, options);
|
|
12235
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12236
|
-
},
|
|
12237
12172
|
/**
|
|
12238
12173
|
*
|
|
12239
12174
|
* @summary Pay booking.
|
|
@@ -12257,18 +12192,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12257
12192
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options);
|
|
12258
12193
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12259
12194
|
},
|
|
12260
|
-
/**
|
|
12261
|
-
*
|
|
12262
|
-
* @summary Reject booking.
|
|
12263
|
-
* @param {string} bookingId
|
|
12264
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
12265
|
-
* @param {*} [options] Override http request option.
|
|
12266
|
-
* @throws {RequiredError}
|
|
12267
|
-
*/
|
|
12268
|
-
async apiV2BookingsBookingIdRejectPut(bookingId: string, rejectBookingCommand?: RejectBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
12269
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options);
|
|
12270
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12271
|
-
},
|
|
12272
12195
|
/**
|
|
12273
12196
|
*
|
|
12274
12197
|
* @summary Get all bookings.
|
|
@@ -12310,37 +12233,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12310
12233
|
export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
12311
12234
|
const localVarFp = BookingsApiFp(configuration)
|
|
12312
12235
|
return {
|
|
12313
|
-
/**
|
|
12314
|
-
*
|
|
12315
|
-
* @summary Approve booking.
|
|
12316
|
-
* @param {string} bookingId
|
|
12317
|
-
* @param {ApproveBookingCommand} [approveBookingCommand]
|
|
12318
|
-
* @param {*} [options] Override http request option.
|
|
12319
|
-
* @throws {RequiredError}
|
|
12320
|
-
*/
|
|
12321
|
-
apiV2BookingsBookingIdApprovePut(bookingId: string, approveBookingCommand?: ApproveBookingCommand, options?: any): AxiosPromise<boolean> {
|
|
12322
|
-
return localVarFp.apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options).then((request) => request(axios, basePath));
|
|
12323
|
-
},
|
|
12324
|
-
/**
|
|
12325
|
-
*
|
|
12326
|
-
* @summary Cancel booking.
|
|
12327
|
-
* @param {string} bookingId
|
|
12328
|
-
* @param {*} [options] Override http request option.
|
|
12329
|
-
* @throws {RequiredError}
|
|
12330
|
-
*/
|
|
12331
|
-
apiV2BookingsBookingIdCancelPut(bookingId: string, options?: any): AxiosPromise<boolean> {
|
|
12332
|
-
return localVarFp.apiV2BookingsBookingIdCancelPut(bookingId, options).then((request) => request(axios, basePath));
|
|
12333
|
-
},
|
|
12334
|
-
/**
|
|
12335
|
-
*
|
|
12336
|
-
* @summary Delete booking.
|
|
12337
|
-
* @param {string} bookingId
|
|
12338
|
-
* @param {*} [options] Override http request option.
|
|
12339
|
-
* @throws {RequiredError}
|
|
12340
|
-
*/
|
|
12341
|
-
apiV2BookingsBookingIdDelete(bookingId: string, options?: any): AxiosPromise<boolean> {
|
|
12342
|
-
return localVarFp.apiV2BookingsBookingIdDelete(bookingId, options).then((request) => request(axios, basePath));
|
|
12343
|
-
},
|
|
12344
12236
|
/**
|
|
12345
12237
|
*
|
|
12346
12238
|
* @summary Get booking.
|
|
@@ -12351,16 +12243,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12351
12243
|
apiV2BookingsBookingIdGet(bookingId: string, options?: any): AxiosPromise<BookingModel> {
|
|
12352
12244
|
return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(axios, basePath));
|
|
12353
12245
|
},
|
|
12354
|
-
/**
|
|
12355
|
-
*
|
|
12356
|
-
* @summary Mark as Paid booking.
|
|
12357
|
-
* @param {string} bookingId
|
|
12358
|
-
* @param {*} [options] Override http request option.
|
|
12359
|
-
* @throws {RequiredError}
|
|
12360
|
-
*/
|
|
12361
|
-
apiV2BookingsBookingIdPaidPost(bookingId: string, options?: any): AxiosPromise<string> {
|
|
12362
|
-
return localVarFp.apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(axios, basePath));
|
|
12363
|
-
},
|
|
12364
12246
|
/**
|
|
12365
12247
|
*
|
|
12366
12248
|
* @summary Pay booking.
|
|
@@ -12382,17 +12264,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12382
12264
|
apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: any): AxiosPromise<BookingModel> {
|
|
12383
12265
|
return localVarFp.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(axios, basePath));
|
|
12384
12266
|
},
|
|
12385
|
-
/**
|
|
12386
|
-
*
|
|
12387
|
-
* @summary Reject booking.
|
|
12388
|
-
* @param {string} bookingId
|
|
12389
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
12390
|
-
* @param {*} [options] Override http request option.
|
|
12391
|
-
* @throws {RequiredError}
|
|
12392
|
-
*/
|
|
12393
|
-
apiV2BookingsBookingIdRejectPut(bookingId: string, rejectBookingCommand?: RejectBookingCommand, options?: any): AxiosPromise<boolean> {
|
|
12394
|
-
return localVarFp.apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options).then((request) => request(axios, basePath));
|
|
12395
|
-
},
|
|
12396
12267
|
/**
|
|
12397
12268
|
*
|
|
12398
12269
|
* @summary Get all bookings.
|
|
@@ -12432,43 +12303,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12432
12303
|
* @extends {BaseAPI}
|
|
12433
12304
|
*/
|
|
12434
12305
|
export class BookingsApi extends BaseAPI {
|
|
12435
|
-
/**
|
|
12436
|
-
*
|
|
12437
|
-
* @summary Approve booking.
|
|
12438
|
-
* @param {string} bookingId
|
|
12439
|
-
* @param {ApproveBookingCommand} [approveBookingCommand]
|
|
12440
|
-
* @param {*} [options] Override http request option.
|
|
12441
|
-
* @throws {RequiredError}
|
|
12442
|
-
* @memberof BookingsApi
|
|
12443
|
-
*/
|
|
12444
|
-
public apiV2BookingsBookingIdApprovePut(bookingId: string, approveBookingCommand?: ApproveBookingCommand, options?: AxiosRequestConfig) {
|
|
12445
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
12446
|
-
}
|
|
12447
|
-
|
|
12448
|
-
/**
|
|
12449
|
-
*
|
|
12450
|
-
* @summary Cancel booking.
|
|
12451
|
-
* @param {string} bookingId
|
|
12452
|
-
* @param {*} [options] Override http request option.
|
|
12453
|
-
* @throws {RequiredError}
|
|
12454
|
-
* @memberof BookingsApi
|
|
12455
|
-
*/
|
|
12456
|
-
public apiV2BookingsBookingIdCancelPut(bookingId: string, options?: AxiosRequestConfig) {
|
|
12457
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdCancelPut(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12458
|
-
}
|
|
12459
|
-
|
|
12460
|
-
/**
|
|
12461
|
-
*
|
|
12462
|
-
* @summary Delete booking.
|
|
12463
|
-
* @param {string} bookingId
|
|
12464
|
-
* @param {*} [options] Override http request option.
|
|
12465
|
-
* @throws {RequiredError}
|
|
12466
|
-
* @memberof BookingsApi
|
|
12467
|
-
*/
|
|
12468
|
-
public apiV2BookingsBookingIdDelete(bookingId: string, options?: AxiosRequestConfig) {
|
|
12469
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdDelete(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12470
|
-
}
|
|
12471
|
-
|
|
12472
12306
|
/**
|
|
12473
12307
|
*
|
|
12474
12308
|
* @summary Get booking.
|
|
@@ -12481,18 +12315,6 @@ export class BookingsApi extends BaseAPI {
|
|
|
12481
12315
|
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12482
12316
|
}
|
|
12483
12317
|
|
|
12484
|
-
/**
|
|
12485
|
-
*
|
|
12486
|
-
* @summary Mark as Paid booking.
|
|
12487
|
-
* @param {string} bookingId
|
|
12488
|
-
* @param {*} [options] Override http request option.
|
|
12489
|
-
* @throws {RequiredError}
|
|
12490
|
-
* @memberof BookingsApi
|
|
12491
|
-
*/
|
|
12492
|
-
public apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig) {
|
|
12493
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12494
|
-
}
|
|
12495
|
-
|
|
12496
12318
|
/**
|
|
12497
12319
|
*
|
|
12498
12320
|
* @summary Pay booking.
|
|
@@ -12518,19 +12340,6 @@ export class BookingsApi extends BaseAPI {
|
|
|
12518
12340
|
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
12519
12341
|
}
|
|
12520
12342
|
|
|
12521
|
-
/**
|
|
12522
|
-
*
|
|
12523
|
-
* @summary Reject booking.
|
|
12524
|
-
* @param {string} bookingId
|
|
12525
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
12526
|
-
* @param {*} [options] Override http request option.
|
|
12527
|
-
* @throws {RequiredError}
|
|
12528
|
-
* @memberof BookingsApi
|
|
12529
|
-
*/
|
|
12530
|
-
public apiV2BookingsBookingIdRejectPut(bookingId: string, rejectBookingCommand?: RejectBookingCommand, options?: AxiosRequestConfig) {
|
|
12531
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
12532
|
-
}
|
|
12533
|
-
|
|
12534
12343
|
/**
|
|
12535
12344
|
*
|
|
12536
12345
|
* @summary Get all bookings.
|
|
@@ -13285,134 +13094,16 @@ export class CommunicationsApi extends BaseAPI {
|
|
|
13285
13094
|
*/
|
|
13286
13095
|
public apiV2CommunicationsPut(options?: AxiosRequestConfig) {
|
|
13287
13096
|
return CommunicationsApiFp(this.configuration).apiV2CommunicationsPut(options).then((request) => request(this.axios, this.basePath));
|
|
13288
|
-
}
|
|
13289
|
-
}
|
|
13290
|
-
|
|
13291
|
-
|
|
13292
|
-
/**
|
|
13293
|
-
* ConsultationsApi - axios parameter creator
|
|
13294
|
-
* @export
|
|
13295
|
-
*/
|
|
13296
|
-
export const ConsultationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
13297
|
-
return {
|
|
13298
|
-
/**
|
|
13299
|
-
*
|
|
13300
|
-
* @summary Approve consultation.
|
|
13301
|
-
* @param {string} consultationId
|
|
13302
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
13303
|
-
* @param {*} [options] Override http request option.
|
|
13304
|
-
* @throws {RequiredError}
|
|
13305
|
-
*/
|
|
13306
|
-
apiV2ConsultationsConsultationIdApprovePut: async (consultationId: string, approveConsultationCommand?: ApproveConsultationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13307
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
13308
|
-
assertParamExists('apiV2ConsultationsConsultationIdApprovePut', 'consultationId', consultationId)
|
|
13309
|
-
const localVarPath = `/api/v2/consultations/{consultationId}/approve`
|
|
13310
|
-
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
13311
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13312
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13313
|
-
let baseOptions;
|
|
13314
|
-
if (configuration) {
|
|
13315
|
-
baseOptions = configuration.baseOptions;
|
|
13316
|
-
}
|
|
13317
|
-
|
|
13318
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
13319
|
-
const localVarHeaderParameter = {} as any;
|
|
13320
|
-
const localVarQueryParameter = {} as any;
|
|
13321
|
-
|
|
13322
|
-
// authentication oauth2 required
|
|
13323
|
-
// oauth required
|
|
13324
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
13325
|
-
|
|
13326
|
-
|
|
13327
|
-
|
|
13328
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13329
|
-
|
|
13330
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13331
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13332
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13333
|
-
localVarRequestOptions.data = serializeDataIfNeeded(approveConsultationCommand, localVarRequestOptions, configuration)
|
|
13334
|
-
|
|
13335
|
-
return {
|
|
13336
|
-
url: toPathString(localVarUrlObj),
|
|
13337
|
-
options: localVarRequestOptions,
|
|
13338
|
-
};
|
|
13339
|
-
},
|
|
13340
|
-
/**
|
|
13341
|
-
*
|
|
13342
|
-
* @summary Cancel consultation.
|
|
13343
|
-
* @param {string} consultationId
|
|
13344
|
-
* @param {*} [options] Override http request option.
|
|
13345
|
-
* @throws {RequiredError}
|
|
13346
|
-
*/
|
|
13347
|
-
apiV2ConsultationsConsultationIdCancelPut: async (consultationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13348
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
13349
|
-
assertParamExists('apiV2ConsultationsConsultationIdCancelPut', 'consultationId', consultationId)
|
|
13350
|
-
const localVarPath = `/api/v2/consultations/{consultationId}/cancel`
|
|
13351
|
-
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
13352
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13353
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13354
|
-
let baseOptions;
|
|
13355
|
-
if (configuration) {
|
|
13356
|
-
baseOptions = configuration.baseOptions;
|
|
13357
|
-
}
|
|
13358
|
-
|
|
13359
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
13360
|
-
const localVarHeaderParameter = {} as any;
|
|
13361
|
-
const localVarQueryParameter = {} as any;
|
|
13362
|
-
|
|
13363
|
-
// authentication oauth2 required
|
|
13364
|
-
// oauth required
|
|
13365
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
13366
|
-
|
|
13367
|
-
|
|
13368
|
-
|
|
13369
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13370
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13371
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13372
|
-
|
|
13373
|
-
return {
|
|
13374
|
-
url: toPathString(localVarUrlObj),
|
|
13375
|
-
options: localVarRequestOptions,
|
|
13376
|
-
};
|
|
13377
|
-
},
|
|
13378
|
-
/**
|
|
13379
|
-
*
|
|
13380
|
-
* @summary Delete consultation.
|
|
13381
|
-
* @param {string} consultationId
|
|
13382
|
-
* @param {*} [options] Override http request option.
|
|
13383
|
-
* @throws {RequiredError}
|
|
13384
|
-
*/
|
|
13385
|
-
apiV2ConsultationsConsultationIdDelete: async (consultationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13386
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
13387
|
-
assertParamExists('apiV2ConsultationsConsultationIdDelete', 'consultationId', consultationId)
|
|
13388
|
-
const localVarPath = `/api/v2/consultations/{consultationId}`
|
|
13389
|
-
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
13390
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13391
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13392
|
-
let baseOptions;
|
|
13393
|
-
if (configuration) {
|
|
13394
|
-
baseOptions = configuration.baseOptions;
|
|
13395
|
-
}
|
|
13396
|
-
|
|
13397
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
13398
|
-
const localVarHeaderParameter = {} as any;
|
|
13399
|
-
const localVarQueryParameter = {} as any;
|
|
13400
|
-
|
|
13401
|
-
// authentication oauth2 required
|
|
13402
|
-
// oauth required
|
|
13403
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
13404
|
-
|
|
13405
|
-
|
|
13406
|
-
|
|
13407
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13408
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13409
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13097
|
+
}
|
|
13098
|
+
}
|
|
13410
13099
|
|
|
13411
|
-
|
|
13412
|
-
|
|
13413
|
-
|
|
13414
|
-
|
|
13415
|
-
|
|
13100
|
+
|
|
13101
|
+
/**
|
|
13102
|
+
* ConsultationsApi - axios parameter creator
|
|
13103
|
+
* @export
|
|
13104
|
+
*/
|
|
13105
|
+
export const ConsultationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
13106
|
+
return {
|
|
13416
13107
|
/**
|
|
13417
13108
|
*
|
|
13418
13109
|
* @summary Get consultation.
|
|
@@ -13531,48 +13222,6 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13531
13222
|
options: localVarRequestOptions,
|
|
13532
13223
|
};
|
|
13533
13224
|
},
|
|
13534
|
-
/**
|
|
13535
|
-
*
|
|
13536
|
-
* @summary Reject consultation.
|
|
13537
|
-
* @param {string} consultationId
|
|
13538
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
13539
|
-
* @param {*} [options] Override http request option.
|
|
13540
|
-
* @throws {RequiredError}
|
|
13541
|
-
*/
|
|
13542
|
-
apiV2ConsultationsConsultationIdRejectPut: async (consultationId: string, rejectConsultationCommand?: RejectConsultationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13543
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
13544
|
-
assertParamExists('apiV2ConsultationsConsultationIdRejectPut', 'consultationId', consultationId)
|
|
13545
|
-
const localVarPath = `/api/v2/consultations/{consultationId}/reject`
|
|
13546
|
-
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
13547
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13548
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13549
|
-
let baseOptions;
|
|
13550
|
-
if (configuration) {
|
|
13551
|
-
baseOptions = configuration.baseOptions;
|
|
13552
|
-
}
|
|
13553
|
-
|
|
13554
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
13555
|
-
const localVarHeaderParameter = {} as any;
|
|
13556
|
-
const localVarQueryParameter = {} as any;
|
|
13557
|
-
|
|
13558
|
-
// authentication oauth2 required
|
|
13559
|
-
// oauth required
|
|
13560
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13565
|
-
|
|
13566
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13567
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13568
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13569
|
-
localVarRequestOptions.data = serializeDataIfNeeded(rejectConsultationCommand, localVarRequestOptions, configuration)
|
|
13570
|
-
|
|
13571
|
-
return {
|
|
13572
|
-
url: toPathString(localVarUrlObj),
|
|
13573
|
-
options: localVarRequestOptions,
|
|
13574
|
-
};
|
|
13575
|
-
},
|
|
13576
13225
|
/**
|
|
13577
13226
|
*
|
|
13578
13227
|
* @summary Get all consultations.
|
|
@@ -13706,40 +13355,6 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13706
13355
|
export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
13707
13356
|
const localVarAxiosParamCreator = ConsultationsApiAxiosParamCreator(configuration)
|
|
13708
13357
|
return {
|
|
13709
|
-
/**
|
|
13710
|
-
*
|
|
13711
|
-
* @summary Approve consultation.
|
|
13712
|
-
* @param {string} consultationId
|
|
13713
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
13714
|
-
* @param {*} [options] Override http request option.
|
|
13715
|
-
* @throws {RequiredError}
|
|
13716
|
-
*/
|
|
13717
|
-
async apiV2ConsultationsConsultationIdApprovePut(consultationId: string, approveConsultationCommand?: ApproveConsultationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
13718
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options);
|
|
13719
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13720
|
-
},
|
|
13721
|
-
/**
|
|
13722
|
-
*
|
|
13723
|
-
* @summary Cancel consultation.
|
|
13724
|
-
* @param {string} consultationId
|
|
13725
|
-
* @param {*} [options] Override http request option.
|
|
13726
|
-
* @throws {RequiredError}
|
|
13727
|
-
*/
|
|
13728
|
-
async apiV2ConsultationsConsultationIdCancelPut(consultationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
13729
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdCancelPut(consultationId, options);
|
|
13730
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13731
|
-
},
|
|
13732
|
-
/**
|
|
13733
|
-
*
|
|
13734
|
-
* @summary Delete consultation.
|
|
13735
|
-
* @param {string} consultationId
|
|
13736
|
-
* @param {*} [options] Override http request option.
|
|
13737
|
-
* @throws {RequiredError}
|
|
13738
|
-
*/
|
|
13739
|
-
async apiV2ConsultationsConsultationIdDelete(consultationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
13740
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdDelete(consultationId, options);
|
|
13741
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13742
|
-
},
|
|
13743
13358
|
/**
|
|
13744
13359
|
*
|
|
13745
13360
|
* @summary Get consultation.
|
|
@@ -13774,18 +13389,6 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
|
13774
13389
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options);
|
|
13775
13390
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13776
13391
|
},
|
|
13777
|
-
/**
|
|
13778
|
-
*
|
|
13779
|
-
* @summary Reject consultation.
|
|
13780
|
-
* @param {string} consultationId
|
|
13781
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
13782
|
-
* @param {*} [options] Override http request option.
|
|
13783
|
-
* @throws {RequiredError}
|
|
13784
|
-
*/
|
|
13785
|
-
async apiV2ConsultationsConsultationIdRejectPut(consultationId: string, rejectConsultationCommand?: RejectConsultationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
13786
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options);
|
|
13787
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13788
|
-
},
|
|
13789
13392
|
/**
|
|
13790
13393
|
*
|
|
13791
13394
|
* @summary Get all consultations.
|
|
@@ -13827,37 +13430,6 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
|
13827
13430
|
export const ConsultationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
13828
13431
|
const localVarFp = ConsultationsApiFp(configuration)
|
|
13829
13432
|
return {
|
|
13830
|
-
/**
|
|
13831
|
-
*
|
|
13832
|
-
* @summary Approve consultation.
|
|
13833
|
-
* @param {string} consultationId
|
|
13834
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
13835
|
-
* @param {*} [options] Override http request option.
|
|
13836
|
-
* @throws {RequiredError}
|
|
13837
|
-
*/
|
|
13838
|
-
apiV2ConsultationsConsultationIdApprovePut(consultationId: string, approveConsultationCommand?: ApproveConsultationCommand, options?: any): AxiosPromise<boolean> {
|
|
13839
|
-
return localVarFp.apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options).then((request) => request(axios, basePath));
|
|
13840
|
-
},
|
|
13841
|
-
/**
|
|
13842
|
-
*
|
|
13843
|
-
* @summary Cancel consultation.
|
|
13844
|
-
* @param {string} consultationId
|
|
13845
|
-
* @param {*} [options] Override http request option.
|
|
13846
|
-
* @throws {RequiredError}
|
|
13847
|
-
*/
|
|
13848
|
-
apiV2ConsultationsConsultationIdCancelPut(consultationId: string, options?: any): AxiosPromise<boolean> {
|
|
13849
|
-
return localVarFp.apiV2ConsultationsConsultationIdCancelPut(consultationId, options).then((request) => request(axios, basePath));
|
|
13850
|
-
},
|
|
13851
|
-
/**
|
|
13852
|
-
*
|
|
13853
|
-
* @summary Delete consultation.
|
|
13854
|
-
* @param {string} consultationId
|
|
13855
|
-
* @param {*} [options] Override http request option.
|
|
13856
|
-
* @throws {RequiredError}
|
|
13857
|
-
*/
|
|
13858
|
-
apiV2ConsultationsConsultationIdDelete(consultationId: string, options?: any): AxiosPromise<boolean> {
|
|
13859
|
-
return localVarFp.apiV2ConsultationsConsultationIdDelete(consultationId, options).then((request) => request(axios, basePath));
|
|
13860
|
-
},
|
|
13861
13433
|
/**
|
|
13862
13434
|
*
|
|
13863
13435
|
* @summary Get consultation.
|
|
@@ -13889,17 +13461,6 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
|
|
|
13889
13461
|
apiV2ConsultationsConsultationIdPut(consultationId: string, updateConsultationCommand?: UpdateConsultationCommand, options?: any): AxiosPromise<ConsultationModel> {
|
|
13890
13462
|
return localVarFp.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then((request) => request(axios, basePath));
|
|
13891
13463
|
},
|
|
13892
|
-
/**
|
|
13893
|
-
*
|
|
13894
|
-
* @summary Reject consultation.
|
|
13895
|
-
* @param {string} consultationId
|
|
13896
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
13897
|
-
* @param {*} [options] Override http request option.
|
|
13898
|
-
* @throws {RequiredError}
|
|
13899
|
-
*/
|
|
13900
|
-
apiV2ConsultationsConsultationIdRejectPut(consultationId: string, rejectConsultationCommand?: RejectConsultationCommand, options?: any): AxiosPromise<boolean> {
|
|
13901
|
-
return localVarFp.apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options).then((request) => request(axios, basePath));
|
|
13902
|
-
},
|
|
13903
13464
|
/**
|
|
13904
13465
|
*
|
|
13905
13466
|
* @summary Get all consultations.
|
|
@@ -13939,43 +13500,6 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
|
|
|
13939
13500
|
* @extends {BaseAPI}
|
|
13940
13501
|
*/
|
|
13941
13502
|
export class ConsultationsApi extends BaseAPI {
|
|
13942
|
-
/**
|
|
13943
|
-
*
|
|
13944
|
-
* @summary Approve consultation.
|
|
13945
|
-
* @param {string} consultationId
|
|
13946
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
13947
|
-
* @param {*} [options] Override http request option.
|
|
13948
|
-
* @throws {RequiredError}
|
|
13949
|
-
* @memberof ConsultationsApi
|
|
13950
|
-
*/
|
|
13951
|
-
public apiV2ConsultationsConsultationIdApprovePut(consultationId: string, approveConsultationCommand?: ApproveConsultationCommand, options?: AxiosRequestConfig) {
|
|
13952
|
-
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options).then((request) => request(this.axios, this.basePath));
|
|
13953
|
-
}
|
|
13954
|
-
|
|
13955
|
-
/**
|
|
13956
|
-
*
|
|
13957
|
-
* @summary Cancel consultation.
|
|
13958
|
-
* @param {string} consultationId
|
|
13959
|
-
* @param {*} [options] Override http request option.
|
|
13960
|
-
* @throws {RequiredError}
|
|
13961
|
-
* @memberof ConsultationsApi
|
|
13962
|
-
*/
|
|
13963
|
-
public apiV2ConsultationsConsultationIdCancelPut(consultationId: string, options?: AxiosRequestConfig) {
|
|
13964
|
-
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdCancelPut(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
13965
|
-
}
|
|
13966
|
-
|
|
13967
|
-
/**
|
|
13968
|
-
*
|
|
13969
|
-
* @summary Delete consultation.
|
|
13970
|
-
* @param {string} consultationId
|
|
13971
|
-
* @param {*} [options] Override http request option.
|
|
13972
|
-
* @throws {RequiredError}
|
|
13973
|
-
* @memberof ConsultationsApi
|
|
13974
|
-
*/
|
|
13975
|
-
public apiV2ConsultationsConsultationIdDelete(consultationId: string, options?: AxiosRequestConfig) {
|
|
13976
|
-
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdDelete(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
13977
|
-
}
|
|
13978
|
-
|
|
13979
13503
|
/**
|
|
13980
13504
|
*
|
|
13981
13505
|
* @summary Get consultation.
|
|
@@ -14013,19 +13537,6 @@ export class ConsultationsApi extends BaseAPI {
|
|
|
14013
13537
|
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then((request) => request(this.axios, this.basePath));
|
|
14014
13538
|
}
|
|
14015
13539
|
|
|
14016
|
-
/**
|
|
14017
|
-
*
|
|
14018
|
-
* @summary Reject consultation.
|
|
14019
|
-
* @param {string} consultationId
|
|
14020
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
14021
|
-
* @param {*} [options] Override http request option.
|
|
14022
|
-
* @throws {RequiredError}
|
|
14023
|
-
* @memberof ConsultationsApi
|
|
14024
|
-
*/
|
|
14025
|
-
public apiV2ConsultationsConsultationIdRejectPut(consultationId: string, rejectConsultationCommand?: RejectConsultationCommand, options?: AxiosRequestConfig) {
|
|
14026
|
-
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options).then((request) => request(this.axios, this.basePath));
|
|
14027
|
-
}
|
|
14028
|
-
|
|
14029
13540
|
/**
|
|
14030
13541
|
*
|
|
14031
13542
|
* @summary Get all consultations.
|
|
@@ -19657,12 +19168,126 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
19657
19168
|
localVarQueryParameter['Id'] = id;
|
|
19658
19169
|
}
|
|
19659
19170
|
|
|
19660
|
-
if (name !== undefined) {
|
|
19661
|
-
localVarQueryParameter['Name'] = name;
|
|
19171
|
+
if (name !== undefined) {
|
|
19172
|
+
localVarQueryParameter['Name'] = name;
|
|
19173
|
+
}
|
|
19174
|
+
|
|
19175
|
+
if (stars !== undefined) {
|
|
19176
|
+
localVarQueryParameter['Stars'] = stars;
|
|
19177
|
+
}
|
|
19178
|
+
|
|
19179
|
+
if (page !== undefined) {
|
|
19180
|
+
localVarQueryParameter['page'] = page;
|
|
19181
|
+
}
|
|
19182
|
+
|
|
19183
|
+
if (limit !== undefined) {
|
|
19184
|
+
localVarQueryParameter['limit'] = limit;
|
|
19185
|
+
}
|
|
19186
|
+
|
|
19187
|
+
if (lastRetrieved !== undefined) {
|
|
19188
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
19189
|
+
(lastRetrieved as any).toISOString() :
|
|
19190
|
+
lastRetrieved;
|
|
19191
|
+
}
|
|
19192
|
+
|
|
19193
|
+
|
|
19194
|
+
|
|
19195
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19197
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19198
|
+
|
|
19199
|
+
return {
|
|
19200
|
+
url: toPathString(localVarUrlObj),
|
|
19201
|
+
options: localVarRequestOptions,
|
|
19202
|
+
};
|
|
19203
|
+
},
|
|
19204
|
+
/**
|
|
19205
|
+
*
|
|
19206
|
+
* @param {string} hospitalId
|
|
19207
|
+
* @param {string} [languageCode]
|
|
19208
|
+
* @param {boolean} [returnDefaultValue]
|
|
19209
|
+
* @param {*} [options] Override http request option.
|
|
19210
|
+
* @throws {RequiredError}
|
|
19211
|
+
*/
|
|
19212
|
+
apiV2HospitalsHospitalIdGet: async (hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19213
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
19214
|
+
assertParamExists('apiV2HospitalsHospitalIdGet', 'hospitalId', hospitalId)
|
|
19215
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}`
|
|
19216
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
19217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19219
|
+
let baseOptions;
|
|
19220
|
+
if (configuration) {
|
|
19221
|
+
baseOptions = configuration.baseOptions;
|
|
19222
|
+
}
|
|
19223
|
+
|
|
19224
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19225
|
+
const localVarHeaderParameter = {} as any;
|
|
19226
|
+
const localVarQueryParameter = {} as any;
|
|
19227
|
+
|
|
19228
|
+
if (languageCode !== undefined) {
|
|
19229
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
19230
|
+
}
|
|
19231
|
+
|
|
19232
|
+
if (returnDefaultValue !== undefined) {
|
|
19233
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
19234
|
+
}
|
|
19235
|
+
|
|
19236
|
+
|
|
19237
|
+
|
|
19238
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19239
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19240
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19241
|
+
|
|
19242
|
+
return {
|
|
19243
|
+
url: toPathString(localVarUrlObj),
|
|
19244
|
+
options: localVarRequestOptions,
|
|
19245
|
+
};
|
|
19246
|
+
},
|
|
19247
|
+
/**
|
|
19248
|
+
*
|
|
19249
|
+
* @summary Get all HospitalHandles.
|
|
19250
|
+
* @param {string} hospitalId
|
|
19251
|
+
* @param {string} [hospitalId2]
|
|
19252
|
+
* @param {string} [id]
|
|
19253
|
+
* @param {SnsType} [snsType]
|
|
19254
|
+
* @param {string} [handle]
|
|
19255
|
+
* @param {number} [page]
|
|
19256
|
+
* @param {number} [limit]
|
|
19257
|
+
* @param {Date} [lastRetrieved]
|
|
19258
|
+
* @param {*} [options] Override http request option.
|
|
19259
|
+
* @throws {RequiredError}
|
|
19260
|
+
*/
|
|
19261
|
+
apiV2HospitalsHospitalIdHandlesGet: async (hospitalId: string, hospitalId2?: string, id?: string, snsType?: SnsType, handle?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19262
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
19263
|
+
assertParamExists('apiV2HospitalsHospitalIdHandlesGet', 'hospitalId', hospitalId)
|
|
19264
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/handles`
|
|
19265
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
19266
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19267
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19268
|
+
let baseOptions;
|
|
19269
|
+
if (configuration) {
|
|
19270
|
+
baseOptions = configuration.baseOptions;
|
|
19271
|
+
}
|
|
19272
|
+
|
|
19273
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19274
|
+
const localVarHeaderParameter = {} as any;
|
|
19275
|
+
const localVarQueryParameter = {} as any;
|
|
19276
|
+
|
|
19277
|
+
if (hospitalId2 !== undefined) {
|
|
19278
|
+
localVarQueryParameter['HospitalId'] = hospitalId2;
|
|
19279
|
+
}
|
|
19280
|
+
|
|
19281
|
+
if (id !== undefined) {
|
|
19282
|
+
localVarQueryParameter['Id'] = id;
|
|
19283
|
+
}
|
|
19284
|
+
|
|
19285
|
+
if (snsType !== undefined) {
|
|
19286
|
+
localVarQueryParameter['SnsType'] = snsType;
|
|
19662
19287
|
}
|
|
19663
19288
|
|
|
19664
|
-
if (
|
|
19665
|
-
localVarQueryParameter['
|
|
19289
|
+
if (handle !== undefined) {
|
|
19290
|
+
localVarQueryParameter['Handle'] = handle;
|
|
19666
19291
|
}
|
|
19667
19292
|
|
|
19668
19293
|
if (page !== undefined) {
|
|
@@ -19692,17 +19317,20 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
19692
19317
|
},
|
|
19693
19318
|
/**
|
|
19694
19319
|
*
|
|
19320
|
+
* @summary Get HospitalHandle.
|
|
19695
19321
|
* @param {string} hospitalId
|
|
19696
|
-
* @param {string}
|
|
19697
|
-
* @param {boolean} [returnDefaultValue]
|
|
19322
|
+
* @param {string} handleId
|
|
19698
19323
|
* @param {*} [options] Override http request option.
|
|
19699
19324
|
* @throws {RequiredError}
|
|
19700
19325
|
*/
|
|
19701
|
-
|
|
19326
|
+
apiV2HospitalsHospitalIdHandlesHandleIdGet: async (hospitalId: string, handleId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19702
19327
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
19703
|
-
assertParamExists('
|
|
19704
|
-
|
|
19705
|
-
|
|
19328
|
+
assertParamExists('apiV2HospitalsHospitalIdHandlesHandleIdGet', 'hospitalId', hospitalId)
|
|
19329
|
+
// verify required parameter 'handleId' is not null or undefined
|
|
19330
|
+
assertParamExists('apiV2HospitalsHospitalIdHandlesHandleIdGet', 'handleId', handleId)
|
|
19331
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/handles/{handleId}`
|
|
19332
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
19333
|
+
.replace(`{${"handleId"}}`, encodeURIComponent(String(handleId)));
|
|
19706
19334
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19707
19335
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19708
19336
|
let baseOptions;
|
|
@@ -19714,14 +19342,6 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
19714
19342
|
const localVarHeaderParameter = {} as any;
|
|
19715
19343
|
const localVarQueryParameter = {} as any;
|
|
19716
19344
|
|
|
19717
|
-
if (languageCode !== undefined) {
|
|
19718
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
19719
|
-
}
|
|
19720
|
-
|
|
19721
|
-
if (returnDefaultValue !== undefined) {
|
|
19722
|
-
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
19723
|
-
}
|
|
19724
|
-
|
|
19725
19345
|
|
|
19726
19346
|
|
|
19727
19347
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -20392,6 +20012,129 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
20392
20012
|
|
|
20393
20013
|
|
|
20394
20014
|
|
|
20015
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20016
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20017
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20018
|
+
|
|
20019
|
+
return {
|
|
20020
|
+
url: toPathString(localVarUrlObj),
|
|
20021
|
+
options: localVarRequestOptions,
|
|
20022
|
+
};
|
|
20023
|
+
},
|
|
20024
|
+
/**
|
|
20025
|
+
*
|
|
20026
|
+
* @summary Get all HospitalWorkingDays.
|
|
20027
|
+
* @param {string} hospitalId
|
|
20028
|
+
* @param {string} [hospitalId2]
|
|
20029
|
+
* @param {string} [id]
|
|
20030
|
+
* @param {string} [dayOfWeek]
|
|
20031
|
+
* @param {Date} [timeFrom]
|
|
20032
|
+
* @param {Date} [timeTo]
|
|
20033
|
+
* @param {boolean} [checkHoliday]
|
|
20034
|
+
* @param {number} [page]
|
|
20035
|
+
* @param {number} [limit]
|
|
20036
|
+
* @param {Date} [lastRetrieved]
|
|
20037
|
+
* @param {*} [options] Override http request option.
|
|
20038
|
+
* @throws {RequiredError}
|
|
20039
|
+
*/
|
|
20040
|
+
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> => {
|
|
20041
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
20042
|
+
assertParamExists('apiV2HospitalsHospitalIdWorkingdaysGet', 'hospitalId', hospitalId)
|
|
20043
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/workingdays`
|
|
20044
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
20045
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20046
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20047
|
+
let baseOptions;
|
|
20048
|
+
if (configuration) {
|
|
20049
|
+
baseOptions = configuration.baseOptions;
|
|
20050
|
+
}
|
|
20051
|
+
|
|
20052
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20053
|
+
const localVarHeaderParameter = {} as any;
|
|
20054
|
+
const localVarQueryParameter = {} as any;
|
|
20055
|
+
|
|
20056
|
+
if (hospitalId2 !== undefined) {
|
|
20057
|
+
localVarQueryParameter['HospitalId'] = hospitalId2;
|
|
20058
|
+
}
|
|
20059
|
+
|
|
20060
|
+
if (id !== undefined) {
|
|
20061
|
+
localVarQueryParameter['Id'] = id;
|
|
20062
|
+
}
|
|
20063
|
+
|
|
20064
|
+
if (dayOfWeek !== undefined) {
|
|
20065
|
+
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
20066
|
+
}
|
|
20067
|
+
|
|
20068
|
+
if (timeFrom !== undefined) {
|
|
20069
|
+
localVarQueryParameter['TimeFrom'] = (timeFrom as any instanceof Date) ?
|
|
20070
|
+
(timeFrom as any).toISOString() :
|
|
20071
|
+
timeFrom;
|
|
20072
|
+
}
|
|
20073
|
+
|
|
20074
|
+
if (timeTo !== undefined) {
|
|
20075
|
+
localVarQueryParameter['TimeTo'] = (timeTo as any instanceof Date) ?
|
|
20076
|
+
(timeTo as any).toISOString() :
|
|
20077
|
+
timeTo;
|
|
20078
|
+
}
|
|
20079
|
+
|
|
20080
|
+
if (checkHoliday !== undefined) {
|
|
20081
|
+
localVarQueryParameter['CheckHoliday'] = checkHoliday;
|
|
20082
|
+
}
|
|
20083
|
+
|
|
20084
|
+
if (page !== undefined) {
|
|
20085
|
+
localVarQueryParameter['page'] = page;
|
|
20086
|
+
}
|
|
20087
|
+
|
|
20088
|
+
if (limit !== undefined) {
|
|
20089
|
+
localVarQueryParameter['limit'] = limit;
|
|
20090
|
+
}
|
|
20091
|
+
|
|
20092
|
+
if (lastRetrieved !== undefined) {
|
|
20093
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
20094
|
+
(lastRetrieved as any).toISOString() :
|
|
20095
|
+
lastRetrieved;
|
|
20096
|
+
}
|
|
20097
|
+
|
|
20098
|
+
|
|
20099
|
+
|
|
20100
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20101
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20102
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20103
|
+
|
|
20104
|
+
return {
|
|
20105
|
+
url: toPathString(localVarUrlObj),
|
|
20106
|
+
options: localVarRequestOptions,
|
|
20107
|
+
};
|
|
20108
|
+
},
|
|
20109
|
+
/**
|
|
20110
|
+
*
|
|
20111
|
+
* @summary Get HospitalWorkingDay.
|
|
20112
|
+
* @param {string} hospitalId
|
|
20113
|
+
* @param {string} workingDayId
|
|
20114
|
+
* @param {*} [options] Override http request option.
|
|
20115
|
+
* @throws {RequiredError}
|
|
20116
|
+
*/
|
|
20117
|
+
apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet: async (hospitalId: string, workingDayId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20118
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
20119
|
+
assertParamExists('apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet', 'hospitalId', hospitalId)
|
|
20120
|
+
// verify required parameter 'workingDayId' is not null or undefined
|
|
20121
|
+
assertParamExists('apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet', 'workingDayId', workingDayId)
|
|
20122
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/workingdays/{workingDayId}`
|
|
20123
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
20124
|
+
.replace(`{${"workingDayId"}}`, encodeURIComponent(String(workingDayId)));
|
|
20125
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20126
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20127
|
+
let baseOptions;
|
|
20128
|
+
if (configuration) {
|
|
20129
|
+
baseOptions = configuration.baseOptions;
|
|
20130
|
+
}
|
|
20131
|
+
|
|
20132
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20133
|
+
const localVarHeaderParameter = {} as any;
|
|
20134
|
+
const localVarQueryParameter = {} as any;
|
|
20135
|
+
|
|
20136
|
+
|
|
20137
|
+
|
|
20395
20138
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20396
20139
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20397
20140
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -20726,6 +20469,36 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
20726
20469
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options);
|
|
20727
20470
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20728
20471
|
},
|
|
20472
|
+
/**
|
|
20473
|
+
*
|
|
20474
|
+
* @summary Get all HospitalHandles.
|
|
20475
|
+
* @param {string} hospitalId
|
|
20476
|
+
* @param {string} [hospitalId2]
|
|
20477
|
+
* @param {string} [id]
|
|
20478
|
+
* @param {SnsType} [snsType]
|
|
20479
|
+
* @param {string} [handle]
|
|
20480
|
+
* @param {number} [page]
|
|
20481
|
+
* @param {number} [limit]
|
|
20482
|
+
* @param {Date} [lastRetrieved]
|
|
20483
|
+
* @param {*} [options] Override http request option.
|
|
20484
|
+
* @throws {RequiredError}
|
|
20485
|
+
*/
|
|
20486
|
+
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>> {
|
|
20487
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdHandlesGet(hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options);
|
|
20488
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20489
|
+
},
|
|
20490
|
+
/**
|
|
20491
|
+
*
|
|
20492
|
+
* @summary Get HospitalHandle.
|
|
20493
|
+
* @param {string} hospitalId
|
|
20494
|
+
* @param {string} handleId
|
|
20495
|
+
* @param {*} [options] Override http request option.
|
|
20496
|
+
* @throws {RequiredError}
|
|
20497
|
+
*/
|
|
20498
|
+
async apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId: string, handleId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SnsHandleModel>> {
|
|
20499
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options);
|
|
20500
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20501
|
+
},
|
|
20729
20502
|
/**
|
|
20730
20503
|
*
|
|
20731
20504
|
* @summary Get all HospitalMedias.
|
|
@@ -20897,6 +20670,38 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
20897
20670
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options);
|
|
20898
20671
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20899
20672
|
},
|
|
20673
|
+
/**
|
|
20674
|
+
*
|
|
20675
|
+
* @summary Get all HospitalWorkingDays.
|
|
20676
|
+
* @param {string} hospitalId
|
|
20677
|
+
* @param {string} [hospitalId2]
|
|
20678
|
+
* @param {string} [id]
|
|
20679
|
+
* @param {string} [dayOfWeek]
|
|
20680
|
+
* @param {Date} [timeFrom]
|
|
20681
|
+
* @param {Date} [timeTo]
|
|
20682
|
+
* @param {boolean} [checkHoliday]
|
|
20683
|
+
* @param {number} [page]
|
|
20684
|
+
* @param {number} [limit]
|
|
20685
|
+
* @param {Date} [lastRetrieved]
|
|
20686
|
+
* @param {*} [options] Override http request option.
|
|
20687
|
+
* @throws {RequiredError}
|
|
20688
|
+
*/
|
|
20689
|
+
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>> {
|
|
20690
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options);
|
|
20691
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20692
|
+
},
|
|
20693
|
+
/**
|
|
20694
|
+
*
|
|
20695
|
+
* @summary Get HospitalWorkingDay.
|
|
20696
|
+
* @param {string} hospitalId
|
|
20697
|
+
* @param {string} workingDayId
|
|
20698
|
+
* @param {*} [options] Override http request option.
|
|
20699
|
+
* @throws {RequiredError}
|
|
20700
|
+
*/
|
|
20701
|
+
async apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId: string, workingDayId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkingDayModel>> {
|
|
20702
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options);
|
|
20703
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20704
|
+
},
|
|
20900
20705
|
/**
|
|
20901
20706
|
*
|
|
20902
20707
|
* @summary Get all Hospitals.
|
|
@@ -21093,6 +20898,34 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
21093
20898
|
apiV2HospitalsHospitalIdGet(hospitalId: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<HospitalModel> {
|
|
21094
20899
|
return localVarFp.apiV2HospitalsHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
21095
20900
|
},
|
|
20901
|
+
/**
|
|
20902
|
+
*
|
|
20903
|
+
* @summary Get all HospitalHandles.
|
|
20904
|
+
* @param {string} hospitalId
|
|
20905
|
+
* @param {string} [hospitalId2]
|
|
20906
|
+
* @param {string} [id]
|
|
20907
|
+
* @param {SnsType} [snsType]
|
|
20908
|
+
* @param {string} [handle]
|
|
20909
|
+
* @param {number} [page]
|
|
20910
|
+
* @param {number} [limit]
|
|
20911
|
+
* @param {Date} [lastRetrieved]
|
|
20912
|
+
* @param {*} [options] Override http request option.
|
|
20913
|
+
* @throws {RequiredError}
|
|
20914
|
+
*/
|
|
20915
|
+
apiV2HospitalsHospitalIdHandlesGet(hospitalId: string, hospitalId2?: string, id?: string, snsType?: SnsType, handle?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalSnsHandlesModel> {
|
|
20916
|
+
return localVarFp.apiV2HospitalsHospitalIdHandlesGet(hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
20917
|
+
},
|
|
20918
|
+
/**
|
|
20919
|
+
*
|
|
20920
|
+
* @summary Get HospitalHandle.
|
|
20921
|
+
* @param {string} hospitalId
|
|
20922
|
+
* @param {string} handleId
|
|
20923
|
+
* @param {*} [options] Override http request option.
|
|
20924
|
+
* @throws {RequiredError}
|
|
20925
|
+
*/
|
|
20926
|
+
apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId: string, handleId: string, options?: any): AxiosPromise<SnsHandleModel> {
|
|
20927
|
+
return localVarFp.apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options).then((request) => request(axios, basePath));
|
|
20928
|
+
},
|
|
21096
20929
|
/**
|
|
21097
20930
|
*
|
|
21098
20931
|
* @summary Get all HospitalMedias.
|
|
@@ -21255,6 +21088,36 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
21255
21088
|
apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId: string, specialtyId: string, serviceId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
|
|
21256
21089
|
return localVarFp.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then((request) => request(axios, basePath));
|
|
21257
21090
|
},
|
|
21091
|
+
/**
|
|
21092
|
+
*
|
|
21093
|
+
* @summary Get all HospitalWorkingDays.
|
|
21094
|
+
* @param {string} hospitalId
|
|
21095
|
+
* @param {string} [hospitalId2]
|
|
21096
|
+
* @param {string} [id]
|
|
21097
|
+
* @param {string} [dayOfWeek]
|
|
21098
|
+
* @param {Date} [timeFrom]
|
|
21099
|
+
* @param {Date} [timeTo]
|
|
21100
|
+
* @param {boolean} [checkHoliday]
|
|
21101
|
+
* @param {number} [page]
|
|
21102
|
+
* @param {number} [limit]
|
|
21103
|
+
* @param {Date} [lastRetrieved]
|
|
21104
|
+
* @param {*} [options] Override http request option.
|
|
21105
|
+
* @throws {RequiredError}
|
|
21106
|
+
*/
|
|
21107
|
+
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> {
|
|
21108
|
+
return localVarFp.apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
21109
|
+
},
|
|
21110
|
+
/**
|
|
21111
|
+
*
|
|
21112
|
+
* @summary Get HospitalWorkingDay.
|
|
21113
|
+
* @param {string} hospitalId
|
|
21114
|
+
* @param {string} workingDayId
|
|
21115
|
+
* @param {*} [options] Override http request option.
|
|
21116
|
+
* @throws {RequiredError}
|
|
21117
|
+
*/
|
|
21118
|
+
apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId: string, workingDayId: string, options?: any): AxiosPromise<WorkingDayModel> {
|
|
21119
|
+
return localVarFp.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options).then((request) => request(axios, basePath));
|
|
21120
|
+
},
|
|
21258
21121
|
/**
|
|
21259
21122
|
*
|
|
21260
21123
|
* @summary Get all Hospitals.
|
|
@@ -21469,6 +21332,38 @@ export class HospitalsApi extends BaseAPI {
|
|
|
21469
21332
|
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdGet(hospitalId, languageCode, returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
21470
21333
|
}
|
|
21471
21334
|
|
|
21335
|
+
/**
|
|
21336
|
+
*
|
|
21337
|
+
* @summary Get all HospitalHandles.
|
|
21338
|
+
* @param {string} hospitalId
|
|
21339
|
+
* @param {string} [hospitalId2]
|
|
21340
|
+
* @param {string} [id]
|
|
21341
|
+
* @param {SnsType} [snsType]
|
|
21342
|
+
* @param {string} [handle]
|
|
21343
|
+
* @param {number} [page]
|
|
21344
|
+
* @param {number} [limit]
|
|
21345
|
+
* @param {Date} [lastRetrieved]
|
|
21346
|
+
* @param {*} [options] Override http request option.
|
|
21347
|
+
* @throws {RequiredError}
|
|
21348
|
+
* @memberof HospitalsApi
|
|
21349
|
+
*/
|
|
21350
|
+
public apiV2HospitalsHospitalIdHandlesGet(hospitalId: string, hospitalId2?: string, id?: string, snsType?: SnsType, handle?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
21351
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdHandlesGet(hospitalId, hospitalId2, id, snsType, handle, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
21352
|
+
}
|
|
21353
|
+
|
|
21354
|
+
/**
|
|
21355
|
+
*
|
|
21356
|
+
* @summary Get HospitalHandle.
|
|
21357
|
+
* @param {string} hospitalId
|
|
21358
|
+
* @param {string} handleId
|
|
21359
|
+
* @param {*} [options] Override http request option.
|
|
21360
|
+
* @throws {RequiredError}
|
|
21361
|
+
* @memberof HospitalsApi
|
|
21362
|
+
*/
|
|
21363
|
+
public apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId: string, handleId: string, options?: AxiosRequestConfig) {
|
|
21364
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options).then((request) => request(this.axios, this.basePath));
|
|
21365
|
+
}
|
|
21366
|
+
|
|
21472
21367
|
/**
|
|
21473
21368
|
*
|
|
21474
21369
|
* @summary Get all HospitalMedias.
|
|
@@ -21649,6 +21544,40 @@ export class HospitalsApi extends BaseAPI {
|
|
|
21649
21544
|
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
21650
21545
|
}
|
|
21651
21546
|
|
|
21547
|
+
/**
|
|
21548
|
+
*
|
|
21549
|
+
* @summary Get all HospitalWorkingDays.
|
|
21550
|
+
* @param {string} hospitalId
|
|
21551
|
+
* @param {string} [hospitalId2]
|
|
21552
|
+
* @param {string} [id]
|
|
21553
|
+
* @param {string} [dayOfWeek]
|
|
21554
|
+
* @param {Date} [timeFrom]
|
|
21555
|
+
* @param {Date} [timeTo]
|
|
21556
|
+
* @param {boolean} [checkHoliday]
|
|
21557
|
+
* @param {number} [page]
|
|
21558
|
+
* @param {number} [limit]
|
|
21559
|
+
* @param {Date} [lastRetrieved]
|
|
21560
|
+
* @param {*} [options] Override http request option.
|
|
21561
|
+
* @throws {RequiredError}
|
|
21562
|
+
* @memberof HospitalsApi
|
|
21563
|
+
*/
|
|
21564
|
+
public apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId: string, hospitalId2?: string, id?: string, dayOfWeek?: string, timeFrom?: Date, timeTo?: Date, checkHoliday?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
21565
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdWorkingdaysGet(hospitalId, hospitalId2, id, dayOfWeek, timeFrom, timeTo, checkHoliday, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
21566
|
+
}
|
|
21567
|
+
|
|
21568
|
+
/**
|
|
21569
|
+
*
|
|
21570
|
+
* @summary Get HospitalWorkingDay.
|
|
21571
|
+
* @param {string} hospitalId
|
|
21572
|
+
* @param {string} workingDayId
|
|
21573
|
+
* @param {*} [options] Override http request option.
|
|
21574
|
+
* @throws {RequiredError}
|
|
21575
|
+
* @memberof HospitalsApi
|
|
21576
|
+
*/
|
|
21577
|
+
public apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId: string, workingDayId: string, options?: AxiosRequestConfig) {
|
|
21578
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options).then((request) => request(this.axios, this.basePath));
|
|
21579
|
+
}
|
|
21580
|
+
|
|
21652
21581
|
/**
|
|
21653
21582
|
*
|
|
21654
21583
|
* @summary Get all Hospitals.
|