ch-admin-api-client-typescript 4.3.9 → 4.4.3
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 +1173 -26
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1242 -1
- package/package.json +1 -1
- package/src/api.ts +1693 -0
package/src/api.ts
CHANGED
|
@@ -925,6 +925,12 @@ export interface ArticleModel {
|
|
|
925
925
|
* @memberof ArticleModel
|
|
926
926
|
*/
|
|
927
927
|
'content'?: string | null;
|
|
928
|
+
/**
|
|
929
|
+
*
|
|
930
|
+
* @type {string}
|
|
931
|
+
* @memberof ArticleModel
|
|
932
|
+
*/
|
|
933
|
+
'customStyle'?: string | null;
|
|
928
934
|
}
|
|
929
935
|
/**
|
|
930
936
|
*
|
|
@@ -1100,6 +1106,218 @@ export interface AuditableEntity {
|
|
|
1100
1106
|
*/
|
|
1101
1107
|
'isDeleted'?: boolean;
|
|
1102
1108
|
}
|
|
1109
|
+
/**
|
|
1110
|
+
*
|
|
1111
|
+
* @export
|
|
1112
|
+
* @interface BatchAddHospitalConsultationTimetableModel
|
|
1113
|
+
*/
|
|
1114
|
+
export interface BatchAddHospitalConsultationTimetableModel {
|
|
1115
|
+
/**
|
|
1116
|
+
*
|
|
1117
|
+
* @type {DayOfWeek}
|
|
1118
|
+
* @memberof BatchAddHospitalConsultationTimetableModel
|
|
1119
|
+
*/
|
|
1120
|
+
'dayOfWeek'?: DayOfWeek;
|
|
1121
|
+
/**
|
|
1122
|
+
*
|
|
1123
|
+
* @type {string}
|
|
1124
|
+
* @memberof BatchAddHospitalConsultationTimetableModel
|
|
1125
|
+
*/
|
|
1126
|
+
'start'?: string | null;
|
|
1127
|
+
/**
|
|
1128
|
+
*
|
|
1129
|
+
* @type {string}
|
|
1130
|
+
* @memberof BatchAddHospitalConsultationTimetableModel
|
|
1131
|
+
*/
|
|
1132
|
+
'end'?: string | null;
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
*
|
|
1136
|
+
* @export
|
|
1137
|
+
* @interface BatchAddHospitalConsultationTimetableOverrideModel
|
|
1138
|
+
*/
|
|
1139
|
+
export interface BatchAddHospitalConsultationTimetableOverrideModel {
|
|
1140
|
+
/**
|
|
1141
|
+
*
|
|
1142
|
+
* @type {Date}
|
|
1143
|
+
* @memberof BatchAddHospitalConsultationTimetableOverrideModel
|
|
1144
|
+
*/
|
|
1145
|
+
'date'?: Date;
|
|
1146
|
+
/**
|
|
1147
|
+
*
|
|
1148
|
+
* @type {string}
|
|
1149
|
+
* @memberof BatchAddHospitalConsultationTimetableOverrideModel
|
|
1150
|
+
*/
|
|
1151
|
+
'start'?: string | null;
|
|
1152
|
+
/**
|
|
1153
|
+
*
|
|
1154
|
+
* @type {string}
|
|
1155
|
+
* @memberof BatchAddHospitalConsultationTimetableOverrideModel
|
|
1156
|
+
*/
|
|
1157
|
+
'end'?: string | null;
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
*
|
|
1161
|
+
* @export
|
|
1162
|
+
* @interface BatchHospitalConsultationTimetableOverridesCommand
|
|
1163
|
+
*/
|
|
1164
|
+
export interface BatchHospitalConsultationTimetableOverridesCommand {
|
|
1165
|
+
/**
|
|
1166
|
+
*
|
|
1167
|
+
* @type {Array<BatchAddHospitalConsultationTimetableOverrideModel>}
|
|
1168
|
+
* @memberof BatchHospitalConsultationTimetableOverridesCommand
|
|
1169
|
+
*/
|
|
1170
|
+
'adds'?: Array<BatchAddHospitalConsultationTimetableOverrideModel> | null;
|
|
1171
|
+
/**
|
|
1172
|
+
*
|
|
1173
|
+
* @type {Array<BatchUpdateHospitalConsultationTimetableOverrideModel>}
|
|
1174
|
+
* @memberof BatchHospitalConsultationTimetableOverridesCommand
|
|
1175
|
+
*/
|
|
1176
|
+
'updates'?: Array<BatchUpdateHospitalConsultationTimetableOverrideModel> | null;
|
|
1177
|
+
/**
|
|
1178
|
+
*
|
|
1179
|
+
* @type {Array<string>}
|
|
1180
|
+
* @memberof BatchHospitalConsultationTimetableOverridesCommand
|
|
1181
|
+
*/
|
|
1182
|
+
'deletes'?: Array<string> | null;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
*
|
|
1186
|
+
* @export
|
|
1187
|
+
* @interface BatchHospitalConsultationTimetableOverridesResultModel
|
|
1188
|
+
*/
|
|
1189
|
+
export interface BatchHospitalConsultationTimetableOverridesResultModel {
|
|
1190
|
+
/**
|
|
1191
|
+
*
|
|
1192
|
+
* @type {Array<HospitalConsultationTimetableOverrideModel>}
|
|
1193
|
+
* @memberof BatchHospitalConsultationTimetableOverridesResultModel
|
|
1194
|
+
*/
|
|
1195
|
+
'adds'?: Array<HospitalConsultationTimetableOverrideModel> | null;
|
|
1196
|
+
/**
|
|
1197
|
+
*
|
|
1198
|
+
* @type {Array<HospitalConsultationTimetableOverrideModel>}
|
|
1199
|
+
* @memberof BatchHospitalConsultationTimetableOverridesResultModel
|
|
1200
|
+
*/
|
|
1201
|
+
'updates'?: Array<HospitalConsultationTimetableOverrideModel> | null;
|
|
1202
|
+
/**
|
|
1203
|
+
*
|
|
1204
|
+
* @type {Array<string>}
|
|
1205
|
+
* @memberof BatchHospitalConsultationTimetableOverridesResultModel
|
|
1206
|
+
*/
|
|
1207
|
+
'deletes'?: Array<string> | null;
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
*
|
|
1211
|
+
* @export
|
|
1212
|
+
* @interface BatchHospitalConsultationTimetableResultModel
|
|
1213
|
+
*/
|
|
1214
|
+
export interface BatchHospitalConsultationTimetableResultModel {
|
|
1215
|
+
/**
|
|
1216
|
+
*
|
|
1217
|
+
* @type {Array<HospitalConsultationTimetableModel>}
|
|
1218
|
+
* @memberof BatchHospitalConsultationTimetableResultModel
|
|
1219
|
+
*/
|
|
1220
|
+
'adds'?: Array<HospitalConsultationTimetableModel> | null;
|
|
1221
|
+
/**
|
|
1222
|
+
*
|
|
1223
|
+
* @type {Array<HospitalConsultationTimetableModel>}
|
|
1224
|
+
* @memberof BatchHospitalConsultationTimetableResultModel
|
|
1225
|
+
*/
|
|
1226
|
+
'updates'?: Array<HospitalConsultationTimetableModel> | null;
|
|
1227
|
+
/**
|
|
1228
|
+
*
|
|
1229
|
+
* @type {Array<string>}
|
|
1230
|
+
* @memberof BatchHospitalConsultationTimetableResultModel
|
|
1231
|
+
*/
|
|
1232
|
+
'deletes'?: Array<string> | null;
|
|
1233
|
+
}
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
* @export
|
|
1237
|
+
* @interface BatchHospitalConsultationTimetablesCommand
|
|
1238
|
+
*/
|
|
1239
|
+
export interface BatchHospitalConsultationTimetablesCommand {
|
|
1240
|
+
/**
|
|
1241
|
+
*
|
|
1242
|
+
* @type {Array<BatchAddHospitalConsultationTimetableModel>}
|
|
1243
|
+
* @memberof BatchHospitalConsultationTimetablesCommand
|
|
1244
|
+
*/
|
|
1245
|
+
'adds'?: Array<BatchAddHospitalConsultationTimetableModel> | null;
|
|
1246
|
+
/**
|
|
1247
|
+
*
|
|
1248
|
+
* @type {Array<BatchUpdateHospitalConsultationTimetableModel>}
|
|
1249
|
+
* @memberof BatchHospitalConsultationTimetablesCommand
|
|
1250
|
+
*/
|
|
1251
|
+
'updates'?: Array<BatchUpdateHospitalConsultationTimetableModel> | null;
|
|
1252
|
+
/**
|
|
1253
|
+
*
|
|
1254
|
+
* @type {Array<string>}
|
|
1255
|
+
* @memberof BatchHospitalConsultationTimetablesCommand
|
|
1256
|
+
*/
|
|
1257
|
+
'deletes'?: Array<string> | null;
|
|
1258
|
+
}
|
|
1259
|
+
/**
|
|
1260
|
+
*
|
|
1261
|
+
* @export
|
|
1262
|
+
* @interface BatchUpdateHospitalConsultationTimetableModel
|
|
1263
|
+
*/
|
|
1264
|
+
export interface BatchUpdateHospitalConsultationTimetableModel {
|
|
1265
|
+
/**
|
|
1266
|
+
*
|
|
1267
|
+
* @type {string}
|
|
1268
|
+
* @memberof BatchUpdateHospitalConsultationTimetableModel
|
|
1269
|
+
*/
|
|
1270
|
+
'id'?: string;
|
|
1271
|
+
/**
|
|
1272
|
+
*
|
|
1273
|
+
* @type {DayOfWeek}
|
|
1274
|
+
* @memberof BatchUpdateHospitalConsultationTimetableModel
|
|
1275
|
+
*/
|
|
1276
|
+
'dayOfWeek'?: DayOfWeek;
|
|
1277
|
+
/**
|
|
1278
|
+
*
|
|
1279
|
+
* @type {string}
|
|
1280
|
+
* @memberof BatchUpdateHospitalConsultationTimetableModel
|
|
1281
|
+
*/
|
|
1282
|
+
'start'?: string | null;
|
|
1283
|
+
/**
|
|
1284
|
+
*
|
|
1285
|
+
* @type {string}
|
|
1286
|
+
* @memberof BatchUpdateHospitalConsultationTimetableModel
|
|
1287
|
+
*/
|
|
1288
|
+
'end'?: string | null;
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
*
|
|
1292
|
+
* @export
|
|
1293
|
+
* @interface BatchUpdateHospitalConsultationTimetableOverrideModel
|
|
1294
|
+
*/
|
|
1295
|
+
export interface BatchUpdateHospitalConsultationTimetableOverrideModel {
|
|
1296
|
+
/**
|
|
1297
|
+
*
|
|
1298
|
+
* @type {Date}
|
|
1299
|
+
* @memberof BatchUpdateHospitalConsultationTimetableOverrideModel
|
|
1300
|
+
*/
|
|
1301
|
+
'date'?: Date;
|
|
1302
|
+
/**
|
|
1303
|
+
*
|
|
1304
|
+
* @type {string}
|
|
1305
|
+
* @memberof BatchUpdateHospitalConsultationTimetableOverrideModel
|
|
1306
|
+
*/
|
|
1307
|
+
'start'?: string | null;
|
|
1308
|
+
/**
|
|
1309
|
+
*
|
|
1310
|
+
* @type {string}
|
|
1311
|
+
* @memberof BatchUpdateHospitalConsultationTimetableOverrideModel
|
|
1312
|
+
*/
|
|
1313
|
+
'end'?: string | null;
|
|
1314
|
+
/**
|
|
1315
|
+
*
|
|
1316
|
+
* @type {string}
|
|
1317
|
+
* @memberof BatchUpdateHospitalConsultationTimetableOverrideModel
|
|
1318
|
+
*/
|
|
1319
|
+
'id'?: string;
|
|
1320
|
+
}
|
|
1103
1321
|
/**
|
|
1104
1322
|
*
|
|
1105
1323
|
* @export
|
|
@@ -3222,6 +3440,12 @@ export interface CountryModel {
|
|
|
3222
3440
|
* @memberof CountryModel
|
|
3223
3441
|
*/
|
|
3224
3442
|
'content'?: string | null;
|
|
3443
|
+
/**
|
|
3444
|
+
*
|
|
3445
|
+
* @type {string}
|
|
3446
|
+
* @memberof CountryModel
|
|
3447
|
+
*/
|
|
3448
|
+
'customStyle'?: string | null;
|
|
3225
3449
|
/**
|
|
3226
3450
|
*
|
|
3227
3451
|
* @type {Array<MediaModel>}
|
|
@@ -3412,6 +3636,12 @@ export interface CreateArticleCommand {
|
|
|
3412
3636
|
* @memberof CreateArticleCommand
|
|
3413
3637
|
*/
|
|
3414
3638
|
'backgroundThumbnail'?: string | null;
|
|
3639
|
+
/**
|
|
3640
|
+
*
|
|
3641
|
+
* @type {string}
|
|
3642
|
+
* @memberof CreateArticleCommand
|
|
3643
|
+
*/
|
|
3644
|
+
'customStyle'?: string | null;
|
|
3415
3645
|
/**
|
|
3416
3646
|
*
|
|
3417
3647
|
* @type {Array<ArticleTagItemModel>}
|
|
@@ -3775,6 +4005,12 @@ export interface CreateCountryCommand {
|
|
|
3775
4005
|
* @memberof CreateCountryCommand
|
|
3776
4006
|
*/
|
|
3777
4007
|
'logo'?: string | null;
|
|
4008
|
+
/**
|
|
4009
|
+
*
|
|
4010
|
+
* @type {string}
|
|
4011
|
+
* @memberof CreateCountryCommand
|
|
4012
|
+
*/
|
|
4013
|
+
'customStyle'?: string | null;
|
|
3778
4014
|
/**
|
|
3779
4015
|
*
|
|
3780
4016
|
* @type {Array<MediaModel>}
|
|
@@ -4267,6 +4503,12 @@ export interface CreateFaqCommand {
|
|
|
4267
4503
|
* @memberof CreateFaqCommand
|
|
4268
4504
|
*/
|
|
4269
4505
|
'order'?: number;
|
|
4506
|
+
/**
|
|
4507
|
+
*
|
|
4508
|
+
* @type {string}
|
|
4509
|
+
* @memberof CreateFaqCommand
|
|
4510
|
+
*/
|
|
4511
|
+
'customStyle'?: string | null;
|
|
4270
4512
|
/**
|
|
4271
4513
|
*
|
|
4272
4514
|
* @type {string}
|
|
@@ -4444,6 +4686,62 @@ export interface CreateHospitalCommand {
|
|
|
4444
4686
|
* @memberof CreateHospitalCommand
|
|
4445
4687
|
*/
|
|
4446
4688
|
'location'?: LocationModel;
|
|
4689
|
+
/**
|
|
4690
|
+
*
|
|
4691
|
+
* @type {HospitalConsultationOptionModel}
|
|
4692
|
+
* @memberof CreateHospitalCommand
|
|
4693
|
+
*/
|
|
4694
|
+
'consultationOption'?: HospitalConsultationOptionModel;
|
|
4695
|
+
}
|
|
4696
|
+
/**
|
|
4697
|
+
*
|
|
4698
|
+
* @export
|
|
4699
|
+
* @interface CreateHospitalConsultationTimetableCommand
|
|
4700
|
+
*/
|
|
4701
|
+
export interface CreateHospitalConsultationTimetableCommand {
|
|
4702
|
+
/**
|
|
4703
|
+
*
|
|
4704
|
+
* @type {DayOfWeek}
|
|
4705
|
+
* @memberof CreateHospitalConsultationTimetableCommand
|
|
4706
|
+
*/
|
|
4707
|
+
'dayOfWeek'?: DayOfWeek;
|
|
4708
|
+
/**
|
|
4709
|
+
*
|
|
4710
|
+
* @type {string}
|
|
4711
|
+
* @memberof CreateHospitalConsultationTimetableCommand
|
|
4712
|
+
*/
|
|
4713
|
+
'start'?: string | null;
|
|
4714
|
+
/**
|
|
4715
|
+
*
|
|
4716
|
+
* @type {string}
|
|
4717
|
+
* @memberof CreateHospitalConsultationTimetableCommand
|
|
4718
|
+
*/
|
|
4719
|
+
'end'?: string | null;
|
|
4720
|
+
}
|
|
4721
|
+
/**
|
|
4722
|
+
*
|
|
4723
|
+
* @export
|
|
4724
|
+
* @interface CreateHospitalConsultationTimetableOverrideCommand
|
|
4725
|
+
*/
|
|
4726
|
+
export interface CreateHospitalConsultationTimetableOverrideCommand {
|
|
4727
|
+
/**
|
|
4728
|
+
*
|
|
4729
|
+
* @type {Date}
|
|
4730
|
+
* @memberof CreateHospitalConsultationTimetableOverrideCommand
|
|
4731
|
+
*/
|
|
4732
|
+
'date'?: Date;
|
|
4733
|
+
/**
|
|
4734
|
+
*
|
|
4735
|
+
* @type {string}
|
|
4736
|
+
* @memberof CreateHospitalConsultationTimetableOverrideCommand
|
|
4737
|
+
*/
|
|
4738
|
+
'start'?: string | null;
|
|
4739
|
+
/**
|
|
4740
|
+
*
|
|
4741
|
+
* @type {string}
|
|
4742
|
+
* @memberof CreateHospitalConsultationTimetableOverrideCommand
|
|
4743
|
+
*/
|
|
4744
|
+
'end'?: string | null;
|
|
4447
4745
|
}
|
|
4448
4746
|
/**
|
|
4449
4747
|
*
|
|
@@ -5194,6 +5492,12 @@ export interface CreateSpecialtyCommand {
|
|
|
5194
5492
|
* @memberof CreateSpecialtyCommand
|
|
5195
5493
|
*/
|
|
5196
5494
|
'backgroundThumbnail'?: string | null;
|
|
5495
|
+
/**
|
|
5496
|
+
*
|
|
5497
|
+
* @type {string}
|
|
5498
|
+
* @memberof CreateSpecialtyCommand
|
|
5499
|
+
*/
|
|
5500
|
+
'customStyle'?: string | null;
|
|
5197
5501
|
/**
|
|
5198
5502
|
*
|
|
5199
5503
|
* @type {string}
|
|
@@ -5261,6 +5565,12 @@ export interface CreateSpecialtyTypeCommand {
|
|
|
5261
5565
|
* @memberof CreateSpecialtyTypeCommand
|
|
5262
5566
|
*/
|
|
5263
5567
|
'backgroundThumbnail'?: string | null;
|
|
5568
|
+
/**
|
|
5569
|
+
*
|
|
5570
|
+
* @type {string}
|
|
5571
|
+
* @memberof CreateSpecialtyTypeCommand
|
|
5572
|
+
*/
|
|
5573
|
+
'customStyle'?: string | null;
|
|
5264
5574
|
/**
|
|
5265
5575
|
*
|
|
5266
5576
|
* @type {Array<MediaModel>}
|
|
@@ -5385,6 +5695,22 @@ export interface DashBoardModel {
|
|
|
5385
5695
|
*/
|
|
5386
5696
|
'totalHospitalsReleased'?: number;
|
|
5387
5697
|
}
|
|
5698
|
+
/**
|
|
5699
|
+
*
|
|
5700
|
+
* @export
|
|
5701
|
+
* @enum {string}
|
|
5702
|
+
*/
|
|
5703
|
+
|
|
5704
|
+
export enum DayOfWeek {
|
|
5705
|
+
Sunday = 'Sunday',
|
|
5706
|
+
Monday = 'Monday',
|
|
5707
|
+
Tuesday = 'Tuesday',
|
|
5708
|
+
Wednesday = 'Wednesday',
|
|
5709
|
+
Thursday = 'Thursday',
|
|
5710
|
+
Friday = 'Friday',
|
|
5711
|
+
Saturday = 'Saturday'
|
|
5712
|
+
}
|
|
5713
|
+
|
|
5388
5714
|
/**
|
|
5389
5715
|
*
|
|
5390
5716
|
* @export
|
|
@@ -7520,6 +7846,12 @@ export interface FaqModel {
|
|
|
7520
7846
|
* @memberof FaqModel
|
|
7521
7847
|
*/
|
|
7522
7848
|
'content'?: string | null;
|
|
7849
|
+
/**
|
|
7850
|
+
*
|
|
7851
|
+
* @type {string}
|
|
7852
|
+
* @memberof FaqModel
|
|
7853
|
+
*/
|
|
7854
|
+
'customStyle'?: string | null;
|
|
7523
7855
|
}
|
|
7524
7856
|
/**
|
|
7525
7857
|
*
|
|
@@ -7704,6 +8036,193 @@ export interface HospitalAccreditationsModel {
|
|
|
7704
8036
|
*/
|
|
7705
8037
|
'metaData'?: PagedListMetaData;
|
|
7706
8038
|
}
|
|
8039
|
+
/**
|
|
8040
|
+
*
|
|
8041
|
+
* @export
|
|
8042
|
+
* @interface HospitalConsultationOptionModel
|
|
8043
|
+
*/
|
|
8044
|
+
export interface HospitalConsultationOptionModel {
|
|
8045
|
+
/**
|
|
8046
|
+
*
|
|
8047
|
+
* @type {boolean}
|
|
8048
|
+
* @memberof HospitalConsultationOptionModel
|
|
8049
|
+
*/
|
|
8050
|
+
'useTimetable'?: boolean;
|
|
8051
|
+
/**
|
|
8052
|
+
*
|
|
8053
|
+
* @type {number}
|
|
8054
|
+
* @memberof HospitalConsultationOptionModel
|
|
8055
|
+
*/
|
|
8056
|
+
'beforeEventBufferMinutes'?: number | null;
|
|
8057
|
+
/**
|
|
8058
|
+
*
|
|
8059
|
+
* @type {number}
|
|
8060
|
+
* @memberof HospitalConsultationOptionModel
|
|
8061
|
+
*/
|
|
8062
|
+
'afterEventBufferMinutes'?: number | null;
|
|
8063
|
+
}
|
|
8064
|
+
/**
|
|
8065
|
+
*
|
|
8066
|
+
* @export
|
|
8067
|
+
* @interface HospitalConsultationTimetableItemModel
|
|
8068
|
+
*/
|
|
8069
|
+
export interface HospitalConsultationTimetableItemModel {
|
|
8070
|
+
/**
|
|
8071
|
+
*
|
|
8072
|
+
* @type {string}
|
|
8073
|
+
* @memberof HospitalConsultationTimetableItemModel
|
|
8074
|
+
*/
|
|
8075
|
+
'id'?: string;
|
|
8076
|
+
/**
|
|
8077
|
+
*
|
|
8078
|
+
* @type {DayOfWeek}
|
|
8079
|
+
* @memberof HospitalConsultationTimetableItemModel
|
|
8080
|
+
*/
|
|
8081
|
+
'dayOfWeek'?: DayOfWeek;
|
|
8082
|
+
/**
|
|
8083
|
+
*
|
|
8084
|
+
* @type {string}
|
|
8085
|
+
* @memberof HospitalConsultationTimetableItemModel
|
|
8086
|
+
*/
|
|
8087
|
+
'start'?: string | null;
|
|
8088
|
+
/**
|
|
8089
|
+
*
|
|
8090
|
+
* @type {string}
|
|
8091
|
+
* @memberof HospitalConsultationTimetableItemModel
|
|
8092
|
+
*/
|
|
8093
|
+
'end'?: string | null;
|
|
8094
|
+
}
|
|
8095
|
+
/**
|
|
8096
|
+
*
|
|
8097
|
+
* @export
|
|
8098
|
+
* @interface HospitalConsultationTimetableModel
|
|
8099
|
+
*/
|
|
8100
|
+
export interface HospitalConsultationTimetableModel {
|
|
8101
|
+
/**
|
|
8102
|
+
*
|
|
8103
|
+
* @type {string}
|
|
8104
|
+
* @memberof HospitalConsultationTimetableModel
|
|
8105
|
+
*/
|
|
8106
|
+
'id'?: string;
|
|
8107
|
+
/**
|
|
8108
|
+
*
|
|
8109
|
+
* @type {DayOfWeek}
|
|
8110
|
+
* @memberof HospitalConsultationTimetableModel
|
|
8111
|
+
*/
|
|
8112
|
+
'dayOfWeek'?: DayOfWeek;
|
|
8113
|
+
/**
|
|
8114
|
+
*
|
|
8115
|
+
* @type {string}
|
|
8116
|
+
* @memberof HospitalConsultationTimetableModel
|
|
8117
|
+
*/
|
|
8118
|
+
'start'?: string | null;
|
|
8119
|
+
/**
|
|
8120
|
+
*
|
|
8121
|
+
* @type {string}
|
|
8122
|
+
* @memberof HospitalConsultationTimetableModel
|
|
8123
|
+
*/
|
|
8124
|
+
'end'?: string | null;
|
|
8125
|
+
}
|
|
8126
|
+
/**
|
|
8127
|
+
*
|
|
8128
|
+
* @export
|
|
8129
|
+
* @interface HospitalConsultationTimetableOverrideItemModel
|
|
8130
|
+
*/
|
|
8131
|
+
export interface HospitalConsultationTimetableOverrideItemModel {
|
|
8132
|
+
/**
|
|
8133
|
+
*
|
|
8134
|
+
* @type {string}
|
|
8135
|
+
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
8136
|
+
*/
|
|
8137
|
+
'id'?: string;
|
|
8138
|
+
/**
|
|
8139
|
+
*
|
|
8140
|
+
* @type {Date}
|
|
8141
|
+
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
8142
|
+
*/
|
|
8143
|
+
'date'?: Date;
|
|
8144
|
+
/**
|
|
8145
|
+
*
|
|
8146
|
+
* @type {string}
|
|
8147
|
+
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
8148
|
+
*/
|
|
8149
|
+
'start'?: string | null;
|
|
8150
|
+
/**
|
|
8151
|
+
*
|
|
8152
|
+
* @type {string}
|
|
8153
|
+
* @memberof HospitalConsultationTimetableOverrideItemModel
|
|
8154
|
+
*/
|
|
8155
|
+
'end'?: string | null;
|
|
8156
|
+
}
|
|
8157
|
+
/**
|
|
8158
|
+
*
|
|
8159
|
+
* @export
|
|
8160
|
+
* @interface HospitalConsultationTimetableOverrideModel
|
|
8161
|
+
*/
|
|
8162
|
+
export interface HospitalConsultationTimetableOverrideModel {
|
|
8163
|
+
/**
|
|
8164
|
+
*
|
|
8165
|
+
* @type {string}
|
|
8166
|
+
* @memberof HospitalConsultationTimetableOverrideModel
|
|
8167
|
+
*/
|
|
8168
|
+
'id'?: string;
|
|
8169
|
+
/**
|
|
8170
|
+
*
|
|
8171
|
+
* @type {Date}
|
|
8172
|
+
* @memberof HospitalConsultationTimetableOverrideModel
|
|
8173
|
+
*/
|
|
8174
|
+
'date'?: Date;
|
|
8175
|
+
/**
|
|
8176
|
+
*
|
|
8177
|
+
* @type {string}
|
|
8178
|
+
* @memberof HospitalConsultationTimetableOverrideModel
|
|
8179
|
+
*/
|
|
8180
|
+
'start'?: string | null;
|
|
8181
|
+
/**
|
|
8182
|
+
*
|
|
8183
|
+
* @type {string}
|
|
8184
|
+
* @memberof HospitalConsultationTimetableOverrideModel
|
|
8185
|
+
*/
|
|
8186
|
+
'end'?: string | null;
|
|
8187
|
+
}
|
|
8188
|
+
/**
|
|
8189
|
+
*
|
|
8190
|
+
* @export
|
|
8191
|
+
* @interface HospitalConsultationTimetableOverridesModel
|
|
8192
|
+
*/
|
|
8193
|
+
export interface HospitalConsultationTimetableOverridesModel {
|
|
8194
|
+
/**
|
|
8195
|
+
*
|
|
8196
|
+
* @type {Array<HospitalConsultationTimetableOverrideItemModel>}
|
|
8197
|
+
* @memberof HospitalConsultationTimetableOverridesModel
|
|
8198
|
+
*/
|
|
8199
|
+
'items'?: Array<HospitalConsultationTimetableOverrideItemModel> | null;
|
|
8200
|
+
/**
|
|
8201
|
+
*
|
|
8202
|
+
* @type {PagedListMetaData}
|
|
8203
|
+
* @memberof HospitalConsultationTimetableOverridesModel
|
|
8204
|
+
*/
|
|
8205
|
+
'metaData'?: PagedListMetaData;
|
|
8206
|
+
}
|
|
8207
|
+
/**
|
|
8208
|
+
*
|
|
8209
|
+
* @export
|
|
8210
|
+
* @interface HospitalConsultationTimetablesModel
|
|
8211
|
+
*/
|
|
8212
|
+
export interface HospitalConsultationTimetablesModel {
|
|
8213
|
+
/**
|
|
8214
|
+
*
|
|
8215
|
+
* @type {Array<HospitalConsultationTimetableItemModel>}
|
|
8216
|
+
* @memberof HospitalConsultationTimetablesModel
|
|
8217
|
+
*/
|
|
8218
|
+
'items'?: Array<HospitalConsultationTimetableItemModel> | null;
|
|
8219
|
+
/**
|
|
8220
|
+
*
|
|
8221
|
+
* @type {PagedListMetaData}
|
|
8222
|
+
* @memberof HospitalConsultationTimetablesModel
|
|
8223
|
+
*/
|
|
8224
|
+
'metaData'?: PagedListMetaData;
|
|
8225
|
+
}
|
|
7707
8226
|
/**
|
|
7708
8227
|
*
|
|
7709
8228
|
* @export
|
|
@@ -7998,6 +8517,12 @@ export interface HospitalItemModel {
|
|
|
7998
8517
|
* @memberof HospitalItemModel
|
|
7999
8518
|
*/
|
|
8000
8519
|
'auditableEntity'?: AuditableEntity;
|
|
8520
|
+
/**
|
|
8521
|
+
*
|
|
8522
|
+
* @type {HospitalConsultationOptionModel}
|
|
8523
|
+
* @memberof HospitalItemModel
|
|
8524
|
+
*/
|
|
8525
|
+
'consultationOption'?: HospitalConsultationOptionModel;
|
|
8001
8526
|
}
|
|
8002
8527
|
/**
|
|
8003
8528
|
*
|
|
@@ -8145,6 +8670,12 @@ export interface HospitalModel {
|
|
|
8145
8670
|
* @memberof HospitalModel
|
|
8146
8671
|
*/
|
|
8147
8672
|
'auditableEntity'?: AuditableEntity;
|
|
8673
|
+
/**
|
|
8674
|
+
*
|
|
8675
|
+
* @type {HospitalConsultationOptionModel}
|
|
8676
|
+
* @memberof HospitalModel
|
|
8677
|
+
*/
|
|
8678
|
+
'consultationOption'?: HospitalConsultationOptionModel;
|
|
8148
8679
|
/**
|
|
8149
8680
|
*
|
|
8150
8681
|
* @type {string}
|
|
@@ -11860,6 +12391,12 @@ export interface SpecialtyModel {
|
|
|
11860
12391
|
* @memberof SpecialtyModel
|
|
11861
12392
|
*/
|
|
11862
12393
|
'content'?: string | null;
|
|
12394
|
+
/**
|
|
12395
|
+
*
|
|
12396
|
+
* @type {string}
|
|
12397
|
+
* @memberof SpecialtyModel
|
|
12398
|
+
*/
|
|
12399
|
+
'customStyle'?: string | null;
|
|
11863
12400
|
}
|
|
11864
12401
|
/**
|
|
11865
12402
|
*
|
|
@@ -12054,6 +12591,12 @@ export interface SpecialtyTypeModel {
|
|
|
12054
12591
|
* @memberof SpecialtyTypeModel
|
|
12055
12592
|
*/
|
|
12056
12593
|
'content'?: string | null;
|
|
12594
|
+
/**
|
|
12595
|
+
*
|
|
12596
|
+
* @type {string}
|
|
12597
|
+
* @memberof SpecialtyTypeModel
|
|
12598
|
+
*/
|
|
12599
|
+
'customStyle'?: string | null;
|
|
12057
12600
|
}
|
|
12058
12601
|
/**
|
|
12059
12602
|
*
|
|
@@ -12615,6 +13158,12 @@ export interface UpdateArticleCommand {
|
|
|
12615
13158
|
* @memberof UpdateArticleCommand
|
|
12616
13159
|
*/
|
|
12617
13160
|
'backgroundThumbnail'?: string | null;
|
|
13161
|
+
/**
|
|
13162
|
+
*
|
|
13163
|
+
* @type {string}
|
|
13164
|
+
* @memberof UpdateArticleCommand
|
|
13165
|
+
*/
|
|
13166
|
+
'customStyle'?: string | null;
|
|
12618
13167
|
/**
|
|
12619
13168
|
*
|
|
12620
13169
|
* @type {Array<ArticleTagItemModel>}
|
|
@@ -12977,6 +13526,12 @@ export interface UpdateCountryCommand {
|
|
|
12977
13526
|
* @memberof UpdateCountryCommand
|
|
12978
13527
|
*/
|
|
12979
13528
|
'content'?: string | null;
|
|
13529
|
+
/**
|
|
13530
|
+
*
|
|
13531
|
+
* @type {string}
|
|
13532
|
+
* @memberof UpdateCountryCommand
|
|
13533
|
+
*/
|
|
13534
|
+
'customStyle'?: string | null;
|
|
12980
13535
|
/**
|
|
12981
13536
|
*
|
|
12982
13537
|
* @type {string}
|
|
@@ -13499,6 +14054,12 @@ export interface UpdateFaqCommand {
|
|
|
13499
14054
|
* @memberof UpdateFaqCommand
|
|
13500
14055
|
*/
|
|
13501
14056
|
'order'?: number;
|
|
14057
|
+
/**
|
|
14058
|
+
*
|
|
14059
|
+
* @type {string}
|
|
14060
|
+
* @memberof UpdateFaqCommand
|
|
14061
|
+
*/
|
|
14062
|
+
'customStyle'?: string | null;
|
|
13502
14063
|
/**
|
|
13503
14064
|
*
|
|
13504
14065
|
* @type {Array<FaqTagItemModel>}
|
|
@@ -13674,6 +14235,62 @@ export interface UpdateHospitalCommand {
|
|
|
13674
14235
|
* @memberof UpdateHospitalCommand
|
|
13675
14236
|
*/
|
|
13676
14237
|
'location'?: LocationModel;
|
|
14238
|
+
/**
|
|
14239
|
+
*
|
|
14240
|
+
* @type {HospitalConsultationOptionModel}
|
|
14241
|
+
* @memberof UpdateHospitalCommand
|
|
14242
|
+
*/
|
|
14243
|
+
'consultationOption'?: HospitalConsultationOptionModel;
|
|
14244
|
+
}
|
|
14245
|
+
/**
|
|
14246
|
+
*
|
|
14247
|
+
* @export
|
|
14248
|
+
* @interface UpdateHospitalConsultationTimetableCommand
|
|
14249
|
+
*/
|
|
14250
|
+
export interface UpdateHospitalConsultationTimetableCommand {
|
|
14251
|
+
/**
|
|
14252
|
+
*
|
|
14253
|
+
* @type {DayOfWeek}
|
|
14254
|
+
* @memberof UpdateHospitalConsultationTimetableCommand
|
|
14255
|
+
*/
|
|
14256
|
+
'dayOfWeek'?: DayOfWeek;
|
|
14257
|
+
/**
|
|
14258
|
+
*
|
|
14259
|
+
* @type {string}
|
|
14260
|
+
* @memberof UpdateHospitalConsultationTimetableCommand
|
|
14261
|
+
*/
|
|
14262
|
+
'start'?: string | null;
|
|
14263
|
+
/**
|
|
14264
|
+
*
|
|
14265
|
+
* @type {string}
|
|
14266
|
+
* @memberof UpdateHospitalConsultationTimetableCommand
|
|
14267
|
+
*/
|
|
14268
|
+
'end'?: string | null;
|
|
14269
|
+
}
|
|
14270
|
+
/**
|
|
14271
|
+
*
|
|
14272
|
+
* @export
|
|
14273
|
+
* @interface UpdateHospitalConsultationTimetableOverrideCommand
|
|
14274
|
+
*/
|
|
14275
|
+
export interface UpdateHospitalConsultationTimetableOverrideCommand {
|
|
14276
|
+
/**
|
|
14277
|
+
*
|
|
14278
|
+
* @type {Date}
|
|
14279
|
+
* @memberof UpdateHospitalConsultationTimetableOverrideCommand
|
|
14280
|
+
*/
|
|
14281
|
+
'date'?: Date;
|
|
14282
|
+
/**
|
|
14283
|
+
*
|
|
14284
|
+
* @type {string}
|
|
14285
|
+
* @memberof UpdateHospitalConsultationTimetableOverrideCommand
|
|
14286
|
+
*/
|
|
14287
|
+
'start'?: string | null;
|
|
14288
|
+
/**
|
|
14289
|
+
*
|
|
14290
|
+
* @type {string}
|
|
14291
|
+
* @memberof UpdateHospitalConsultationTimetableOverrideCommand
|
|
14292
|
+
*/
|
|
14293
|
+
'end'?: string | null;
|
|
13677
14294
|
}
|
|
13678
14295
|
/**
|
|
13679
14296
|
*
|
|
@@ -14495,6 +15112,12 @@ export interface UpdateSpecialtyCommand {
|
|
|
14495
15112
|
* @memberof UpdateSpecialtyCommand
|
|
14496
15113
|
*/
|
|
14497
15114
|
'backgroundThumbnail'?: string | null;
|
|
15115
|
+
/**
|
|
15116
|
+
*
|
|
15117
|
+
* @type {string}
|
|
15118
|
+
* @memberof UpdateSpecialtyCommand
|
|
15119
|
+
*/
|
|
15120
|
+
'customStyle'?: string | null;
|
|
14498
15121
|
/**
|
|
14499
15122
|
*
|
|
14500
15123
|
* @type {string}
|
|
@@ -14574,6 +15197,12 @@ export interface UpdateSpecialtyTypeCommand {
|
|
|
14574
15197
|
* @memberof UpdateSpecialtyTypeCommand
|
|
14575
15198
|
*/
|
|
14576
15199
|
'backgroundThumbnail'?: string | null;
|
|
15200
|
+
/**
|
|
15201
|
+
*
|
|
15202
|
+
* @type {string}
|
|
15203
|
+
* @memberof UpdateSpecialtyTypeCommand
|
|
15204
|
+
*/
|
|
15205
|
+
'customStyle'?: string | null;
|
|
14577
15206
|
/**
|
|
14578
15207
|
*
|
|
14579
15208
|
* @type {string}
|
|
@@ -40028,6 +40657,1070 @@ export class HospitalsApi extends BaseAPI {
|
|
|
40028
40657
|
}
|
|
40029
40658
|
|
|
40030
40659
|
|
|
40660
|
+
/**
|
|
40661
|
+
* HospitalsConsultationTimetableOverridesApi - axios parameter creator
|
|
40662
|
+
* @export
|
|
40663
|
+
*/
|
|
40664
|
+
export const HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40665
|
+
return {
|
|
40666
|
+
/**
|
|
40667
|
+
*
|
|
40668
|
+
* @summary Add, Update and Delete item at once
|
|
40669
|
+
* @param {string} hospitalId
|
|
40670
|
+
* @param {BatchHospitalConsultationTimetableOverridesCommand} [batchHospitalConsultationTimetableOverridesCommand]
|
|
40671
|
+
* @param {*} [options] Override http request option.
|
|
40672
|
+
* @throws {RequiredError}
|
|
40673
|
+
*/
|
|
40674
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost: async (hospitalId: string, batchHospitalConsultationTimetableOverridesCommand?: BatchHospitalConsultationTimetableOverridesCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40675
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
40676
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost', 'hospitalId', hospitalId)
|
|
40677
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides/batch`
|
|
40678
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
40679
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40680
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40681
|
+
let baseOptions;
|
|
40682
|
+
if (configuration) {
|
|
40683
|
+
baseOptions = configuration.baseOptions;
|
|
40684
|
+
}
|
|
40685
|
+
|
|
40686
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40687
|
+
const localVarHeaderParameter = {} as any;
|
|
40688
|
+
const localVarQueryParameter = {} as any;
|
|
40689
|
+
|
|
40690
|
+
// authentication oauth2 required
|
|
40691
|
+
// oauth required
|
|
40692
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
40693
|
+
|
|
40694
|
+
|
|
40695
|
+
|
|
40696
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40697
|
+
|
|
40698
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40699
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40700
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40701
|
+
localVarRequestOptions.data = serializeDataIfNeeded(batchHospitalConsultationTimetableOverridesCommand, localVarRequestOptions, configuration)
|
|
40702
|
+
|
|
40703
|
+
return {
|
|
40704
|
+
url: toPathString(localVarUrlObj),
|
|
40705
|
+
options: localVarRequestOptions,
|
|
40706
|
+
};
|
|
40707
|
+
},
|
|
40708
|
+
/**
|
|
40709
|
+
*
|
|
40710
|
+
* @summary Get consultation timetable override items
|
|
40711
|
+
* @param {string} hospitalId
|
|
40712
|
+
* @param {number} [page]
|
|
40713
|
+
* @param {number} [limit]
|
|
40714
|
+
* @param {Date} [lastRetrieved]
|
|
40715
|
+
* @param {*} [options] Override http request option.
|
|
40716
|
+
* @throws {RequiredError}
|
|
40717
|
+
*/
|
|
40718
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet: async (hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40719
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
40720
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesGet', 'hospitalId', hospitalId)
|
|
40721
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides`
|
|
40722
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
40723
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40724
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40725
|
+
let baseOptions;
|
|
40726
|
+
if (configuration) {
|
|
40727
|
+
baseOptions = configuration.baseOptions;
|
|
40728
|
+
}
|
|
40729
|
+
|
|
40730
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
40731
|
+
const localVarHeaderParameter = {} as any;
|
|
40732
|
+
const localVarQueryParameter = {} as any;
|
|
40733
|
+
|
|
40734
|
+
// authentication oauth2 required
|
|
40735
|
+
// oauth required
|
|
40736
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
40737
|
+
|
|
40738
|
+
if (page !== undefined) {
|
|
40739
|
+
localVarQueryParameter['page'] = page;
|
|
40740
|
+
}
|
|
40741
|
+
|
|
40742
|
+
if (limit !== undefined) {
|
|
40743
|
+
localVarQueryParameter['limit'] = limit;
|
|
40744
|
+
}
|
|
40745
|
+
|
|
40746
|
+
if (lastRetrieved !== undefined) {
|
|
40747
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
40748
|
+
(lastRetrieved as any).toISOString() :
|
|
40749
|
+
lastRetrieved;
|
|
40750
|
+
}
|
|
40751
|
+
|
|
40752
|
+
|
|
40753
|
+
|
|
40754
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40755
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40756
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40757
|
+
|
|
40758
|
+
return {
|
|
40759
|
+
url: toPathString(localVarUrlObj),
|
|
40760
|
+
options: localVarRequestOptions,
|
|
40761
|
+
};
|
|
40762
|
+
},
|
|
40763
|
+
/**
|
|
40764
|
+
*
|
|
40765
|
+
* @summary Delete timetable item
|
|
40766
|
+
* @param {string} hospitalId
|
|
40767
|
+
* @param {string} id
|
|
40768
|
+
* @param {*} [options] Override http request option.
|
|
40769
|
+
* @throws {RequiredError}
|
|
40770
|
+
*/
|
|
40771
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete: async (hospitalId: string, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40772
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
40773
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete', 'hospitalId', hospitalId)
|
|
40774
|
+
// verify required parameter 'id' is not null or undefined
|
|
40775
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete', 'id', id)
|
|
40776
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides/{id}`
|
|
40777
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
40778
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
40779
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40780
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40781
|
+
let baseOptions;
|
|
40782
|
+
if (configuration) {
|
|
40783
|
+
baseOptions = configuration.baseOptions;
|
|
40784
|
+
}
|
|
40785
|
+
|
|
40786
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
40787
|
+
const localVarHeaderParameter = {} as any;
|
|
40788
|
+
const localVarQueryParameter = {} as any;
|
|
40789
|
+
|
|
40790
|
+
// authentication oauth2 required
|
|
40791
|
+
// oauth required
|
|
40792
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
40793
|
+
|
|
40794
|
+
|
|
40795
|
+
|
|
40796
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40797
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40798
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40799
|
+
|
|
40800
|
+
return {
|
|
40801
|
+
url: toPathString(localVarUrlObj),
|
|
40802
|
+
options: localVarRequestOptions,
|
|
40803
|
+
};
|
|
40804
|
+
},
|
|
40805
|
+
/**
|
|
40806
|
+
*
|
|
40807
|
+
* @summary Get consultation timetable override item
|
|
40808
|
+
* @param {string} hospitalId
|
|
40809
|
+
* @param {string} id
|
|
40810
|
+
* @param {*} [options] Override http request option.
|
|
40811
|
+
* @throws {RequiredError}
|
|
40812
|
+
*/
|
|
40813
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet: async (hospitalId: string, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40814
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
40815
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet', 'hospitalId', hospitalId)
|
|
40816
|
+
// verify required parameter 'id' is not null or undefined
|
|
40817
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet', 'id', id)
|
|
40818
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides/{id}`
|
|
40819
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
40820
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
40821
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40822
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40823
|
+
let baseOptions;
|
|
40824
|
+
if (configuration) {
|
|
40825
|
+
baseOptions = configuration.baseOptions;
|
|
40826
|
+
}
|
|
40827
|
+
|
|
40828
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
40829
|
+
const localVarHeaderParameter = {} as any;
|
|
40830
|
+
const localVarQueryParameter = {} as any;
|
|
40831
|
+
|
|
40832
|
+
// authentication oauth2 required
|
|
40833
|
+
// oauth required
|
|
40834
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
40835
|
+
|
|
40836
|
+
|
|
40837
|
+
|
|
40838
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40839
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40840
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40841
|
+
|
|
40842
|
+
return {
|
|
40843
|
+
url: toPathString(localVarUrlObj),
|
|
40844
|
+
options: localVarRequestOptions,
|
|
40845
|
+
};
|
|
40846
|
+
},
|
|
40847
|
+
/**
|
|
40848
|
+
*
|
|
40849
|
+
* @summary Update timetable item
|
|
40850
|
+
* @param {string} hospitalId
|
|
40851
|
+
* @param {string} id
|
|
40852
|
+
* @param {UpdateHospitalConsultationTimetableOverrideCommand} [updateHospitalConsultationTimetableOverrideCommand]
|
|
40853
|
+
* @param {*} [options] Override http request option.
|
|
40854
|
+
* @throws {RequiredError}
|
|
40855
|
+
*/
|
|
40856
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesIdPut: async (hospitalId: string, id: string, updateHospitalConsultationTimetableOverrideCommand?: UpdateHospitalConsultationTimetableOverrideCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40857
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
40858
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesIdPut', 'hospitalId', hospitalId)
|
|
40859
|
+
// verify required parameter 'id' is not null or undefined
|
|
40860
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesIdPut', 'id', id)
|
|
40861
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides/{id}`
|
|
40862
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
40863
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
40864
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40865
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40866
|
+
let baseOptions;
|
|
40867
|
+
if (configuration) {
|
|
40868
|
+
baseOptions = configuration.baseOptions;
|
|
40869
|
+
}
|
|
40870
|
+
|
|
40871
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
40872
|
+
const localVarHeaderParameter = {} as any;
|
|
40873
|
+
const localVarQueryParameter = {} as any;
|
|
40874
|
+
|
|
40875
|
+
// authentication oauth2 required
|
|
40876
|
+
// oauth required
|
|
40877
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
40878
|
+
|
|
40879
|
+
|
|
40880
|
+
|
|
40881
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40882
|
+
|
|
40883
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40884
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40885
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40886
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateHospitalConsultationTimetableOverrideCommand, localVarRequestOptions, configuration)
|
|
40887
|
+
|
|
40888
|
+
return {
|
|
40889
|
+
url: toPathString(localVarUrlObj),
|
|
40890
|
+
options: localVarRequestOptions,
|
|
40891
|
+
};
|
|
40892
|
+
},
|
|
40893
|
+
/**
|
|
40894
|
+
*
|
|
40895
|
+
* @summary Create timetable itme
|
|
40896
|
+
* @param {string} hospitalId
|
|
40897
|
+
* @param {CreateHospitalConsultationTimetableOverrideCommand} [createHospitalConsultationTimetableOverrideCommand]
|
|
40898
|
+
* @param {*} [options] Override http request option.
|
|
40899
|
+
* @throws {RequiredError}
|
|
40900
|
+
*/
|
|
40901
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesPost: async (hospitalId: string, createHospitalConsultationTimetableOverrideCommand?: CreateHospitalConsultationTimetableOverrideCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40902
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
40903
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesPost', 'hospitalId', hospitalId)
|
|
40904
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides`
|
|
40905
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
40906
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40907
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40908
|
+
let baseOptions;
|
|
40909
|
+
if (configuration) {
|
|
40910
|
+
baseOptions = configuration.baseOptions;
|
|
40911
|
+
}
|
|
40912
|
+
|
|
40913
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40914
|
+
const localVarHeaderParameter = {} as any;
|
|
40915
|
+
const localVarQueryParameter = {} as any;
|
|
40916
|
+
|
|
40917
|
+
// authentication oauth2 required
|
|
40918
|
+
// oauth required
|
|
40919
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
40920
|
+
|
|
40921
|
+
|
|
40922
|
+
|
|
40923
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40924
|
+
|
|
40925
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40926
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40927
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40928
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createHospitalConsultationTimetableOverrideCommand, localVarRequestOptions, configuration)
|
|
40929
|
+
|
|
40930
|
+
return {
|
|
40931
|
+
url: toPathString(localVarUrlObj),
|
|
40932
|
+
options: localVarRequestOptions,
|
|
40933
|
+
};
|
|
40934
|
+
},
|
|
40935
|
+
}
|
|
40936
|
+
};
|
|
40937
|
+
|
|
40938
|
+
/**
|
|
40939
|
+
* HospitalsConsultationTimetableOverridesApi - functional programming interface
|
|
40940
|
+
* @export
|
|
40941
|
+
*/
|
|
40942
|
+
export const HospitalsConsultationTimetableOverridesApiFp = function(configuration?: Configuration) {
|
|
40943
|
+
const localVarAxiosParamCreator = HospitalsConsultationTimetableOverridesApiAxiosParamCreator(configuration)
|
|
40944
|
+
return {
|
|
40945
|
+
/**
|
|
40946
|
+
*
|
|
40947
|
+
* @summary Add, Update and Delete item at once
|
|
40948
|
+
* @param {string} hospitalId
|
|
40949
|
+
* @param {BatchHospitalConsultationTimetableOverridesCommand} [batchHospitalConsultationTimetableOverridesCommand]
|
|
40950
|
+
* @param {*} [options] Override http request option.
|
|
40951
|
+
* @throws {RequiredError}
|
|
40952
|
+
*/
|
|
40953
|
+
async apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost(hospitalId: string, batchHospitalConsultationTimetableOverridesCommand?: BatchHospitalConsultationTimetableOverridesCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchHospitalConsultationTimetableOverridesResultModel>> {
|
|
40954
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost(hospitalId, batchHospitalConsultationTimetableOverridesCommand, options);
|
|
40955
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40956
|
+
},
|
|
40957
|
+
/**
|
|
40958
|
+
*
|
|
40959
|
+
* @summary Get consultation timetable override items
|
|
40960
|
+
* @param {string} hospitalId
|
|
40961
|
+
* @param {number} [page]
|
|
40962
|
+
* @param {number} [limit]
|
|
40963
|
+
* @param {Date} [lastRetrieved]
|
|
40964
|
+
* @param {*} [options] Override http request option.
|
|
40965
|
+
* @throws {RequiredError}
|
|
40966
|
+
*/
|
|
40967
|
+
async apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetableOverridesModel>> {
|
|
40968
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, page, limit, lastRetrieved, options);
|
|
40969
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40970
|
+
},
|
|
40971
|
+
/**
|
|
40972
|
+
*
|
|
40973
|
+
* @summary Delete timetable item
|
|
40974
|
+
* @param {string} hospitalId
|
|
40975
|
+
* @param {string} id
|
|
40976
|
+
* @param {*} [options] Override http request option.
|
|
40977
|
+
* @throws {RequiredError}
|
|
40978
|
+
*/
|
|
40979
|
+
async apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete(hospitalId: string, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
40980
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete(hospitalId, id, options);
|
|
40981
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40982
|
+
},
|
|
40983
|
+
/**
|
|
40984
|
+
*
|
|
40985
|
+
* @summary Get consultation timetable override item
|
|
40986
|
+
* @param {string} hospitalId
|
|
40987
|
+
* @param {string} id
|
|
40988
|
+
* @param {*} [options] Override http request option.
|
|
40989
|
+
* @throws {RequiredError}
|
|
40990
|
+
*/
|
|
40991
|
+
async apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet(hospitalId: string, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetableOverrideModel>> {
|
|
40992
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet(hospitalId, id, options);
|
|
40993
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40994
|
+
},
|
|
40995
|
+
/**
|
|
40996
|
+
*
|
|
40997
|
+
* @summary Update timetable item
|
|
40998
|
+
* @param {string} hospitalId
|
|
40999
|
+
* @param {string} id
|
|
41000
|
+
* @param {UpdateHospitalConsultationTimetableOverrideCommand} [updateHospitalConsultationTimetableOverrideCommand]
|
|
41001
|
+
* @param {*} [options] Override http request option.
|
|
41002
|
+
* @throws {RequiredError}
|
|
41003
|
+
*/
|
|
41004
|
+
async apiV1HospitalsHospitalIdConsultationtimetableoverridesIdPut(hospitalId: string, id: string, updateHospitalConsultationTimetableOverrideCommand?: UpdateHospitalConsultationTimetableOverrideCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetableOverrideModel>> {
|
|
41005
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesIdPut(hospitalId, id, updateHospitalConsultationTimetableOverrideCommand, options);
|
|
41006
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41007
|
+
},
|
|
41008
|
+
/**
|
|
41009
|
+
*
|
|
41010
|
+
* @summary Create timetable itme
|
|
41011
|
+
* @param {string} hospitalId
|
|
41012
|
+
* @param {CreateHospitalConsultationTimetableOverrideCommand} [createHospitalConsultationTimetableOverrideCommand]
|
|
41013
|
+
* @param {*} [options] Override http request option.
|
|
41014
|
+
* @throws {RequiredError}
|
|
41015
|
+
*/
|
|
41016
|
+
async apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId: string, createHospitalConsultationTimetableOverrideCommand?: CreateHospitalConsultationTimetableOverrideCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetableOverrideModel>> {
|
|
41017
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId, createHospitalConsultationTimetableOverrideCommand, options);
|
|
41018
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41019
|
+
},
|
|
41020
|
+
}
|
|
41021
|
+
};
|
|
41022
|
+
|
|
41023
|
+
/**
|
|
41024
|
+
* HospitalsConsultationTimetableOverridesApi - factory interface
|
|
41025
|
+
* @export
|
|
41026
|
+
*/
|
|
41027
|
+
export const HospitalsConsultationTimetableOverridesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
41028
|
+
const localVarFp = HospitalsConsultationTimetableOverridesApiFp(configuration)
|
|
41029
|
+
return {
|
|
41030
|
+
/**
|
|
41031
|
+
*
|
|
41032
|
+
* @summary Add, Update and Delete item at once
|
|
41033
|
+
* @param {string} hospitalId
|
|
41034
|
+
* @param {BatchHospitalConsultationTimetableOverridesCommand} [batchHospitalConsultationTimetableOverridesCommand]
|
|
41035
|
+
* @param {*} [options] Override http request option.
|
|
41036
|
+
* @throws {RequiredError}
|
|
41037
|
+
*/
|
|
41038
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost(hospitalId: string, batchHospitalConsultationTimetableOverridesCommand?: BatchHospitalConsultationTimetableOverridesCommand, options?: any): AxiosPromise<BatchHospitalConsultationTimetableOverridesResultModel> {
|
|
41039
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost(hospitalId, batchHospitalConsultationTimetableOverridesCommand, options).then((request) => request(axios, basePath));
|
|
41040
|
+
},
|
|
41041
|
+
/**
|
|
41042
|
+
*
|
|
41043
|
+
* @summary Get consultation timetable override items
|
|
41044
|
+
* @param {string} hospitalId
|
|
41045
|
+
* @param {number} [page]
|
|
41046
|
+
* @param {number} [limit]
|
|
41047
|
+
* @param {Date} [lastRetrieved]
|
|
41048
|
+
* @param {*} [options] Override http request option.
|
|
41049
|
+
* @throws {RequiredError}
|
|
41050
|
+
*/
|
|
41051
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalConsultationTimetableOverridesModel> {
|
|
41052
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
41053
|
+
},
|
|
41054
|
+
/**
|
|
41055
|
+
*
|
|
41056
|
+
* @summary Delete timetable item
|
|
41057
|
+
* @param {string} hospitalId
|
|
41058
|
+
* @param {string} id
|
|
41059
|
+
* @param {*} [options] Override http request option.
|
|
41060
|
+
* @throws {RequiredError}
|
|
41061
|
+
*/
|
|
41062
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete(hospitalId: string, id: string, options?: any): AxiosPromise<boolean> {
|
|
41063
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete(hospitalId, id, options).then((request) => request(axios, basePath));
|
|
41064
|
+
},
|
|
41065
|
+
/**
|
|
41066
|
+
*
|
|
41067
|
+
* @summary Get consultation timetable override item
|
|
41068
|
+
* @param {string} hospitalId
|
|
41069
|
+
* @param {string} id
|
|
41070
|
+
* @param {*} [options] Override http request option.
|
|
41071
|
+
* @throws {RequiredError}
|
|
41072
|
+
*/
|
|
41073
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet(hospitalId: string, id: string, options?: any): AxiosPromise<HospitalConsultationTimetableOverrideModel> {
|
|
41074
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet(hospitalId, id, options).then((request) => request(axios, basePath));
|
|
41075
|
+
},
|
|
41076
|
+
/**
|
|
41077
|
+
*
|
|
41078
|
+
* @summary Update timetable item
|
|
41079
|
+
* @param {string} hospitalId
|
|
41080
|
+
* @param {string} id
|
|
41081
|
+
* @param {UpdateHospitalConsultationTimetableOverrideCommand} [updateHospitalConsultationTimetableOverrideCommand]
|
|
41082
|
+
* @param {*} [options] Override http request option.
|
|
41083
|
+
* @throws {RequiredError}
|
|
41084
|
+
*/
|
|
41085
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesIdPut(hospitalId: string, id: string, updateHospitalConsultationTimetableOverrideCommand?: UpdateHospitalConsultationTimetableOverrideCommand, options?: any): AxiosPromise<HospitalConsultationTimetableOverrideModel> {
|
|
41086
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesIdPut(hospitalId, id, updateHospitalConsultationTimetableOverrideCommand, options).then((request) => request(axios, basePath));
|
|
41087
|
+
},
|
|
41088
|
+
/**
|
|
41089
|
+
*
|
|
41090
|
+
* @summary Create timetable itme
|
|
41091
|
+
* @param {string} hospitalId
|
|
41092
|
+
* @param {CreateHospitalConsultationTimetableOverrideCommand} [createHospitalConsultationTimetableOverrideCommand]
|
|
41093
|
+
* @param {*} [options] Override http request option.
|
|
41094
|
+
* @throws {RequiredError}
|
|
41095
|
+
*/
|
|
41096
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId: string, createHospitalConsultationTimetableOverrideCommand?: CreateHospitalConsultationTimetableOverrideCommand, options?: any): AxiosPromise<HospitalConsultationTimetableOverrideModel> {
|
|
41097
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId, createHospitalConsultationTimetableOverrideCommand, options).then((request) => request(axios, basePath));
|
|
41098
|
+
},
|
|
41099
|
+
};
|
|
41100
|
+
};
|
|
41101
|
+
|
|
41102
|
+
/**
|
|
41103
|
+
* HospitalsConsultationTimetableOverridesApi - object-oriented interface
|
|
41104
|
+
* @export
|
|
41105
|
+
* @class HospitalsConsultationTimetableOverridesApi
|
|
41106
|
+
* @extends {BaseAPI}
|
|
41107
|
+
*/
|
|
41108
|
+
export class HospitalsConsultationTimetableOverridesApi extends BaseAPI {
|
|
41109
|
+
/**
|
|
41110
|
+
*
|
|
41111
|
+
* @summary Add, Update and Delete item at once
|
|
41112
|
+
* @param {string} hospitalId
|
|
41113
|
+
* @param {BatchHospitalConsultationTimetableOverridesCommand} [batchHospitalConsultationTimetableOverridesCommand]
|
|
41114
|
+
* @param {*} [options] Override http request option.
|
|
41115
|
+
* @throws {RequiredError}
|
|
41116
|
+
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
41117
|
+
*/
|
|
41118
|
+
public apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost(hospitalId: string, batchHospitalConsultationTimetableOverridesCommand?: BatchHospitalConsultationTimetableOverridesCommand, options?: AxiosRequestConfig) {
|
|
41119
|
+
return HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost(hospitalId, batchHospitalConsultationTimetableOverridesCommand, options).then((request) => request(this.axios, this.basePath));
|
|
41120
|
+
}
|
|
41121
|
+
|
|
41122
|
+
/**
|
|
41123
|
+
*
|
|
41124
|
+
* @summary Get consultation timetable override items
|
|
41125
|
+
* @param {string} hospitalId
|
|
41126
|
+
* @param {number} [page]
|
|
41127
|
+
* @param {number} [limit]
|
|
41128
|
+
* @param {Date} [lastRetrieved]
|
|
41129
|
+
* @param {*} [options] Override http request option.
|
|
41130
|
+
* @throws {RequiredError}
|
|
41131
|
+
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
41132
|
+
*/
|
|
41133
|
+
public apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
41134
|
+
return HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
41135
|
+
}
|
|
41136
|
+
|
|
41137
|
+
/**
|
|
41138
|
+
*
|
|
41139
|
+
* @summary Delete timetable item
|
|
41140
|
+
* @param {string} hospitalId
|
|
41141
|
+
* @param {string} id
|
|
41142
|
+
* @param {*} [options] Override http request option.
|
|
41143
|
+
* @throws {RequiredError}
|
|
41144
|
+
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
41145
|
+
*/
|
|
41146
|
+
public apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete(hospitalId: string, id: string, options?: AxiosRequestConfig) {
|
|
41147
|
+
return HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete(hospitalId, id, options).then((request) => request(this.axios, this.basePath));
|
|
41148
|
+
}
|
|
41149
|
+
|
|
41150
|
+
/**
|
|
41151
|
+
*
|
|
41152
|
+
* @summary Get consultation timetable override item
|
|
41153
|
+
* @param {string} hospitalId
|
|
41154
|
+
* @param {string} id
|
|
41155
|
+
* @param {*} [options] Override http request option.
|
|
41156
|
+
* @throws {RequiredError}
|
|
41157
|
+
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
41158
|
+
*/
|
|
41159
|
+
public apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet(hospitalId: string, id: string, options?: AxiosRequestConfig) {
|
|
41160
|
+
return HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet(hospitalId, id, options).then((request) => request(this.axios, this.basePath));
|
|
41161
|
+
}
|
|
41162
|
+
|
|
41163
|
+
/**
|
|
41164
|
+
*
|
|
41165
|
+
* @summary Update timetable item
|
|
41166
|
+
* @param {string} hospitalId
|
|
41167
|
+
* @param {string} id
|
|
41168
|
+
* @param {UpdateHospitalConsultationTimetableOverrideCommand} [updateHospitalConsultationTimetableOverrideCommand]
|
|
41169
|
+
* @param {*} [options] Override http request option.
|
|
41170
|
+
* @throws {RequiredError}
|
|
41171
|
+
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
41172
|
+
*/
|
|
41173
|
+
public apiV1HospitalsHospitalIdConsultationtimetableoverridesIdPut(hospitalId: string, id: string, updateHospitalConsultationTimetableOverrideCommand?: UpdateHospitalConsultationTimetableOverrideCommand, options?: AxiosRequestConfig) {
|
|
41174
|
+
return HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesIdPut(hospitalId, id, updateHospitalConsultationTimetableOverrideCommand, options).then((request) => request(this.axios, this.basePath));
|
|
41175
|
+
}
|
|
41176
|
+
|
|
41177
|
+
/**
|
|
41178
|
+
*
|
|
41179
|
+
* @summary Create timetable itme
|
|
41180
|
+
* @param {string} hospitalId
|
|
41181
|
+
* @param {CreateHospitalConsultationTimetableOverrideCommand} [createHospitalConsultationTimetableOverrideCommand]
|
|
41182
|
+
* @param {*} [options] Override http request option.
|
|
41183
|
+
* @throws {RequiredError}
|
|
41184
|
+
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
41185
|
+
*/
|
|
41186
|
+
public apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId: string, createHospitalConsultationTimetableOverrideCommand?: CreateHospitalConsultationTimetableOverrideCommand, options?: AxiosRequestConfig) {
|
|
41187
|
+
return HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId, createHospitalConsultationTimetableOverrideCommand, options).then((request) => request(this.axios, this.basePath));
|
|
41188
|
+
}
|
|
41189
|
+
}
|
|
41190
|
+
|
|
41191
|
+
|
|
41192
|
+
/**
|
|
41193
|
+
* HospitalsConsultationTimetablesApi - axios parameter creator
|
|
41194
|
+
* @export
|
|
41195
|
+
*/
|
|
41196
|
+
export const HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
41197
|
+
return {
|
|
41198
|
+
/**
|
|
41199
|
+
*
|
|
41200
|
+
* @summary Add, Update and Delete item at once
|
|
41201
|
+
* @param {string} hospitalId
|
|
41202
|
+
* @param {BatchHospitalConsultationTimetablesCommand} [batchHospitalConsultationTimetablesCommand]
|
|
41203
|
+
* @param {*} [options] Override http request option.
|
|
41204
|
+
* @throws {RequiredError}
|
|
41205
|
+
*/
|
|
41206
|
+
apiV1HospitalsHospitalIdConsultationtimetablesBatchPost: async (hospitalId: string, batchHospitalConsultationTimetablesCommand?: BatchHospitalConsultationTimetablesCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41207
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
41208
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetablesBatchPost', 'hospitalId', hospitalId)
|
|
41209
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetables/batch`
|
|
41210
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
41211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41212
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41213
|
+
let baseOptions;
|
|
41214
|
+
if (configuration) {
|
|
41215
|
+
baseOptions = configuration.baseOptions;
|
|
41216
|
+
}
|
|
41217
|
+
|
|
41218
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41219
|
+
const localVarHeaderParameter = {} as any;
|
|
41220
|
+
const localVarQueryParameter = {} as any;
|
|
41221
|
+
|
|
41222
|
+
// authentication oauth2 required
|
|
41223
|
+
// oauth required
|
|
41224
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
41225
|
+
|
|
41226
|
+
|
|
41227
|
+
|
|
41228
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41229
|
+
|
|
41230
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41232
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41233
|
+
localVarRequestOptions.data = serializeDataIfNeeded(batchHospitalConsultationTimetablesCommand, localVarRequestOptions, configuration)
|
|
41234
|
+
|
|
41235
|
+
return {
|
|
41236
|
+
url: toPathString(localVarUrlObj),
|
|
41237
|
+
options: localVarRequestOptions,
|
|
41238
|
+
};
|
|
41239
|
+
},
|
|
41240
|
+
/**
|
|
41241
|
+
*
|
|
41242
|
+
* @summary Get consultation timetables
|
|
41243
|
+
* @param {string} hospitalId
|
|
41244
|
+
* @param {number} [page]
|
|
41245
|
+
* @param {number} [limit]
|
|
41246
|
+
* @param {Date} [lastRetrieved]
|
|
41247
|
+
* @param {*} [options] Override http request option.
|
|
41248
|
+
* @throws {RequiredError}
|
|
41249
|
+
*/
|
|
41250
|
+
apiV1HospitalsHospitalIdConsultationtimetablesGet: async (hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41251
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
41252
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetablesGet', 'hospitalId', hospitalId)
|
|
41253
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetables`
|
|
41254
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
41255
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41256
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41257
|
+
let baseOptions;
|
|
41258
|
+
if (configuration) {
|
|
41259
|
+
baseOptions = configuration.baseOptions;
|
|
41260
|
+
}
|
|
41261
|
+
|
|
41262
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
41263
|
+
const localVarHeaderParameter = {} as any;
|
|
41264
|
+
const localVarQueryParameter = {} as any;
|
|
41265
|
+
|
|
41266
|
+
// authentication oauth2 required
|
|
41267
|
+
// oauth required
|
|
41268
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
41269
|
+
|
|
41270
|
+
if (page !== undefined) {
|
|
41271
|
+
localVarQueryParameter['page'] = page;
|
|
41272
|
+
}
|
|
41273
|
+
|
|
41274
|
+
if (limit !== undefined) {
|
|
41275
|
+
localVarQueryParameter['limit'] = limit;
|
|
41276
|
+
}
|
|
41277
|
+
|
|
41278
|
+
if (lastRetrieved !== undefined) {
|
|
41279
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
41280
|
+
(lastRetrieved as any).toISOString() :
|
|
41281
|
+
lastRetrieved;
|
|
41282
|
+
}
|
|
41283
|
+
|
|
41284
|
+
|
|
41285
|
+
|
|
41286
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41287
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41288
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41289
|
+
|
|
41290
|
+
return {
|
|
41291
|
+
url: toPathString(localVarUrlObj),
|
|
41292
|
+
options: localVarRequestOptions,
|
|
41293
|
+
};
|
|
41294
|
+
},
|
|
41295
|
+
/**
|
|
41296
|
+
*
|
|
41297
|
+
* @summary Delete timetable item
|
|
41298
|
+
* @param {string} hospitalId
|
|
41299
|
+
* @param {string} id
|
|
41300
|
+
* @param {*} [options] Override http request option.
|
|
41301
|
+
* @throws {RequiredError}
|
|
41302
|
+
*/
|
|
41303
|
+
apiV1HospitalsHospitalIdConsultationtimetablesIdDelete: async (hospitalId: string, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41304
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
41305
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetablesIdDelete', 'hospitalId', hospitalId)
|
|
41306
|
+
// verify required parameter 'id' is not null or undefined
|
|
41307
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetablesIdDelete', 'id', id)
|
|
41308
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetables/{id}`
|
|
41309
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
41310
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
41311
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41312
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41313
|
+
let baseOptions;
|
|
41314
|
+
if (configuration) {
|
|
41315
|
+
baseOptions = configuration.baseOptions;
|
|
41316
|
+
}
|
|
41317
|
+
|
|
41318
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
41319
|
+
const localVarHeaderParameter = {} as any;
|
|
41320
|
+
const localVarQueryParameter = {} as any;
|
|
41321
|
+
|
|
41322
|
+
// authentication oauth2 required
|
|
41323
|
+
// oauth required
|
|
41324
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
41325
|
+
|
|
41326
|
+
|
|
41327
|
+
|
|
41328
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41330
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41331
|
+
|
|
41332
|
+
return {
|
|
41333
|
+
url: toPathString(localVarUrlObj),
|
|
41334
|
+
options: localVarRequestOptions,
|
|
41335
|
+
};
|
|
41336
|
+
},
|
|
41337
|
+
/**
|
|
41338
|
+
*
|
|
41339
|
+
* @summary Get consultation timetable
|
|
41340
|
+
* @param {string} hospitalId
|
|
41341
|
+
* @param {string} id
|
|
41342
|
+
* @param {*} [options] Override http request option.
|
|
41343
|
+
* @throws {RequiredError}
|
|
41344
|
+
*/
|
|
41345
|
+
apiV1HospitalsHospitalIdConsultationtimetablesIdGet: async (hospitalId: string, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41346
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
41347
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetablesIdGet', 'hospitalId', hospitalId)
|
|
41348
|
+
// verify required parameter 'id' is not null or undefined
|
|
41349
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetablesIdGet', 'id', id)
|
|
41350
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetables/{id}`
|
|
41351
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
41352
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
41353
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41354
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41355
|
+
let baseOptions;
|
|
41356
|
+
if (configuration) {
|
|
41357
|
+
baseOptions = configuration.baseOptions;
|
|
41358
|
+
}
|
|
41359
|
+
|
|
41360
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
41361
|
+
const localVarHeaderParameter = {} as any;
|
|
41362
|
+
const localVarQueryParameter = {} as any;
|
|
41363
|
+
|
|
41364
|
+
// authentication oauth2 required
|
|
41365
|
+
// oauth required
|
|
41366
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
41367
|
+
|
|
41368
|
+
|
|
41369
|
+
|
|
41370
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41371
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41372
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41373
|
+
|
|
41374
|
+
return {
|
|
41375
|
+
url: toPathString(localVarUrlObj),
|
|
41376
|
+
options: localVarRequestOptions,
|
|
41377
|
+
};
|
|
41378
|
+
},
|
|
41379
|
+
/**
|
|
41380
|
+
*
|
|
41381
|
+
* @summary Update timetable item
|
|
41382
|
+
* @param {string} hospitalId
|
|
41383
|
+
* @param {string} id
|
|
41384
|
+
* @param {UpdateHospitalConsultationTimetableCommand} [updateHospitalConsultationTimetableCommand]
|
|
41385
|
+
* @param {*} [options] Override http request option.
|
|
41386
|
+
* @throws {RequiredError}
|
|
41387
|
+
*/
|
|
41388
|
+
apiV1HospitalsHospitalIdConsultationtimetablesIdPut: async (hospitalId: string, id: string, updateHospitalConsultationTimetableCommand?: UpdateHospitalConsultationTimetableCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41389
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
41390
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetablesIdPut', 'hospitalId', hospitalId)
|
|
41391
|
+
// verify required parameter 'id' is not null or undefined
|
|
41392
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetablesIdPut', 'id', id)
|
|
41393
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetables/{id}`
|
|
41394
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
41395
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
41396
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41397
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41398
|
+
let baseOptions;
|
|
41399
|
+
if (configuration) {
|
|
41400
|
+
baseOptions = configuration.baseOptions;
|
|
41401
|
+
}
|
|
41402
|
+
|
|
41403
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
41404
|
+
const localVarHeaderParameter = {} as any;
|
|
41405
|
+
const localVarQueryParameter = {} as any;
|
|
41406
|
+
|
|
41407
|
+
// authentication oauth2 required
|
|
41408
|
+
// oauth required
|
|
41409
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
41410
|
+
|
|
41411
|
+
|
|
41412
|
+
|
|
41413
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41414
|
+
|
|
41415
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41417
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41418
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateHospitalConsultationTimetableCommand, localVarRequestOptions, configuration)
|
|
41419
|
+
|
|
41420
|
+
return {
|
|
41421
|
+
url: toPathString(localVarUrlObj),
|
|
41422
|
+
options: localVarRequestOptions,
|
|
41423
|
+
};
|
|
41424
|
+
},
|
|
41425
|
+
/**
|
|
41426
|
+
*
|
|
41427
|
+
* @summary Create timetable item
|
|
41428
|
+
* @param {string} hospitalId
|
|
41429
|
+
* @param {CreateHospitalConsultationTimetableCommand} [createHospitalConsultationTimetableCommand]
|
|
41430
|
+
* @param {*} [options] Override http request option.
|
|
41431
|
+
* @throws {RequiredError}
|
|
41432
|
+
*/
|
|
41433
|
+
apiV1HospitalsHospitalIdConsultationtimetablesPost: async (hospitalId: string, createHospitalConsultationTimetableCommand?: CreateHospitalConsultationTimetableCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41434
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
41435
|
+
assertParamExists('apiV1HospitalsHospitalIdConsultationtimetablesPost', 'hospitalId', hospitalId)
|
|
41436
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/consultationtimetables`
|
|
41437
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
41438
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41439
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41440
|
+
let baseOptions;
|
|
41441
|
+
if (configuration) {
|
|
41442
|
+
baseOptions = configuration.baseOptions;
|
|
41443
|
+
}
|
|
41444
|
+
|
|
41445
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41446
|
+
const localVarHeaderParameter = {} as any;
|
|
41447
|
+
const localVarQueryParameter = {} as any;
|
|
41448
|
+
|
|
41449
|
+
// authentication oauth2 required
|
|
41450
|
+
// oauth required
|
|
41451
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
41452
|
+
|
|
41453
|
+
|
|
41454
|
+
|
|
41455
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41456
|
+
|
|
41457
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41458
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41459
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41460
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createHospitalConsultationTimetableCommand, localVarRequestOptions, configuration)
|
|
41461
|
+
|
|
41462
|
+
return {
|
|
41463
|
+
url: toPathString(localVarUrlObj),
|
|
41464
|
+
options: localVarRequestOptions,
|
|
41465
|
+
};
|
|
41466
|
+
},
|
|
41467
|
+
}
|
|
41468
|
+
};
|
|
41469
|
+
|
|
41470
|
+
/**
|
|
41471
|
+
* HospitalsConsultationTimetablesApi - functional programming interface
|
|
41472
|
+
* @export
|
|
41473
|
+
*/
|
|
41474
|
+
export const HospitalsConsultationTimetablesApiFp = function(configuration?: Configuration) {
|
|
41475
|
+
const localVarAxiosParamCreator = HospitalsConsultationTimetablesApiAxiosParamCreator(configuration)
|
|
41476
|
+
return {
|
|
41477
|
+
/**
|
|
41478
|
+
*
|
|
41479
|
+
* @summary Add, Update and Delete item at once
|
|
41480
|
+
* @param {string} hospitalId
|
|
41481
|
+
* @param {BatchHospitalConsultationTimetablesCommand} [batchHospitalConsultationTimetablesCommand]
|
|
41482
|
+
* @param {*} [options] Override http request option.
|
|
41483
|
+
* @throws {RequiredError}
|
|
41484
|
+
*/
|
|
41485
|
+
async apiV1HospitalsHospitalIdConsultationtimetablesBatchPost(hospitalId: string, batchHospitalConsultationTimetablesCommand?: BatchHospitalConsultationTimetablesCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchHospitalConsultationTimetableResultModel>> {
|
|
41486
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetablesBatchPost(hospitalId, batchHospitalConsultationTimetablesCommand, options);
|
|
41487
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41488
|
+
},
|
|
41489
|
+
/**
|
|
41490
|
+
*
|
|
41491
|
+
* @summary Get consultation timetables
|
|
41492
|
+
* @param {string} hospitalId
|
|
41493
|
+
* @param {number} [page]
|
|
41494
|
+
* @param {number} [limit]
|
|
41495
|
+
* @param {Date} [lastRetrieved]
|
|
41496
|
+
* @param {*} [options] Override http request option.
|
|
41497
|
+
* @throws {RequiredError}
|
|
41498
|
+
*/
|
|
41499
|
+
async apiV1HospitalsHospitalIdConsultationtimetablesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetablesModel>> {
|
|
41500
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetablesGet(hospitalId, page, limit, lastRetrieved, options);
|
|
41501
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41502
|
+
},
|
|
41503
|
+
/**
|
|
41504
|
+
*
|
|
41505
|
+
* @summary Delete timetable item
|
|
41506
|
+
* @param {string} hospitalId
|
|
41507
|
+
* @param {string} id
|
|
41508
|
+
* @param {*} [options] Override http request option.
|
|
41509
|
+
* @throws {RequiredError}
|
|
41510
|
+
*/
|
|
41511
|
+
async apiV1HospitalsHospitalIdConsultationtimetablesIdDelete(hospitalId: string, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetableModel>> {
|
|
41512
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetablesIdDelete(hospitalId, id, options);
|
|
41513
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41514
|
+
},
|
|
41515
|
+
/**
|
|
41516
|
+
*
|
|
41517
|
+
* @summary Get consultation timetable
|
|
41518
|
+
* @param {string} hospitalId
|
|
41519
|
+
* @param {string} id
|
|
41520
|
+
* @param {*} [options] Override http request option.
|
|
41521
|
+
* @throws {RequiredError}
|
|
41522
|
+
*/
|
|
41523
|
+
async apiV1HospitalsHospitalIdConsultationtimetablesIdGet(hospitalId: string, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetableModel>> {
|
|
41524
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetablesIdGet(hospitalId, id, options);
|
|
41525
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41526
|
+
},
|
|
41527
|
+
/**
|
|
41528
|
+
*
|
|
41529
|
+
* @summary Update timetable item
|
|
41530
|
+
* @param {string} hospitalId
|
|
41531
|
+
* @param {string} id
|
|
41532
|
+
* @param {UpdateHospitalConsultationTimetableCommand} [updateHospitalConsultationTimetableCommand]
|
|
41533
|
+
* @param {*} [options] Override http request option.
|
|
41534
|
+
* @throws {RequiredError}
|
|
41535
|
+
*/
|
|
41536
|
+
async apiV1HospitalsHospitalIdConsultationtimetablesIdPut(hospitalId: string, id: string, updateHospitalConsultationTimetableCommand?: UpdateHospitalConsultationTimetableCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetableModel>> {
|
|
41537
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetablesIdPut(hospitalId, id, updateHospitalConsultationTimetableCommand, options);
|
|
41538
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41539
|
+
},
|
|
41540
|
+
/**
|
|
41541
|
+
*
|
|
41542
|
+
* @summary Create timetable item
|
|
41543
|
+
* @param {string} hospitalId
|
|
41544
|
+
* @param {CreateHospitalConsultationTimetableCommand} [createHospitalConsultationTimetableCommand]
|
|
41545
|
+
* @param {*} [options] Override http request option.
|
|
41546
|
+
* @throws {RequiredError}
|
|
41547
|
+
*/
|
|
41548
|
+
async apiV1HospitalsHospitalIdConsultationtimetablesPost(hospitalId: string, createHospitalConsultationTimetableCommand?: CreateHospitalConsultationTimetableCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalConsultationTimetableModel>> {
|
|
41549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetablesPost(hospitalId, createHospitalConsultationTimetableCommand, options);
|
|
41550
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41551
|
+
},
|
|
41552
|
+
}
|
|
41553
|
+
};
|
|
41554
|
+
|
|
41555
|
+
/**
|
|
41556
|
+
* HospitalsConsultationTimetablesApi - factory interface
|
|
41557
|
+
* @export
|
|
41558
|
+
*/
|
|
41559
|
+
export const HospitalsConsultationTimetablesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
41560
|
+
const localVarFp = HospitalsConsultationTimetablesApiFp(configuration)
|
|
41561
|
+
return {
|
|
41562
|
+
/**
|
|
41563
|
+
*
|
|
41564
|
+
* @summary Add, Update and Delete item at once
|
|
41565
|
+
* @param {string} hospitalId
|
|
41566
|
+
* @param {BatchHospitalConsultationTimetablesCommand} [batchHospitalConsultationTimetablesCommand]
|
|
41567
|
+
* @param {*} [options] Override http request option.
|
|
41568
|
+
* @throws {RequiredError}
|
|
41569
|
+
*/
|
|
41570
|
+
apiV1HospitalsHospitalIdConsultationtimetablesBatchPost(hospitalId: string, batchHospitalConsultationTimetablesCommand?: BatchHospitalConsultationTimetablesCommand, options?: any): AxiosPromise<BatchHospitalConsultationTimetableResultModel> {
|
|
41571
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetablesBatchPost(hospitalId, batchHospitalConsultationTimetablesCommand, options).then((request) => request(axios, basePath));
|
|
41572
|
+
},
|
|
41573
|
+
/**
|
|
41574
|
+
*
|
|
41575
|
+
* @summary Get consultation timetables
|
|
41576
|
+
* @param {string} hospitalId
|
|
41577
|
+
* @param {number} [page]
|
|
41578
|
+
* @param {number} [limit]
|
|
41579
|
+
* @param {Date} [lastRetrieved]
|
|
41580
|
+
* @param {*} [options] Override http request option.
|
|
41581
|
+
* @throws {RequiredError}
|
|
41582
|
+
*/
|
|
41583
|
+
apiV1HospitalsHospitalIdConsultationtimetablesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalConsultationTimetablesModel> {
|
|
41584
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetablesGet(hospitalId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
41585
|
+
},
|
|
41586
|
+
/**
|
|
41587
|
+
*
|
|
41588
|
+
* @summary Delete timetable item
|
|
41589
|
+
* @param {string} hospitalId
|
|
41590
|
+
* @param {string} id
|
|
41591
|
+
* @param {*} [options] Override http request option.
|
|
41592
|
+
* @throws {RequiredError}
|
|
41593
|
+
*/
|
|
41594
|
+
apiV1HospitalsHospitalIdConsultationtimetablesIdDelete(hospitalId: string, id: string, options?: any): AxiosPromise<HospitalConsultationTimetableModel> {
|
|
41595
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetablesIdDelete(hospitalId, id, options).then((request) => request(axios, basePath));
|
|
41596
|
+
},
|
|
41597
|
+
/**
|
|
41598
|
+
*
|
|
41599
|
+
* @summary Get consultation timetable
|
|
41600
|
+
* @param {string} hospitalId
|
|
41601
|
+
* @param {string} id
|
|
41602
|
+
* @param {*} [options] Override http request option.
|
|
41603
|
+
* @throws {RequiredError}
|
|
41604
|
+
*/
|
|
41605
|
+
apiV1HospitalsHospitalIdConsultationtimetablesIdGet(hospitalId: string, id: string, options?: any): AxiosPromise<HospitalConsultationTimetableModel> {
|
|
41606
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetablesIdGet(hospitalId, id, options).then((request) => request(axios, basePath));
|
|
41607
|
+
},
|
|
41608
|
+
/**
|
|
41609
|
+
*
|
|
41610
|
+
* @summary Update timetable item
|
|
41611
|
+
* @param {string} hospitalId
|
|
41612
|
+
* @param {string} id
|
|
41613
|
+
* @param {UpdateHospitalConsultationTimetableCommand} [updateHospitalConsultationTimetableCommand]
|
|
41614
|
+
* @param {*} [options] Override http request option.
|
|
41615
|
+
* @throws {RequiredError}
|
|
41616
|
+
*/
|
|
41617
|
+
apiV1HospitalsHospitalIdConsultationtimetablesIdPut(hospitalId: string, id: string, updateHospitalConsultationTimetableCommand?: UpdateHospitalConsultationTimetableCommand, options?: any): AxiosPromise<HospitalConsultationTimetableModel> {
|
|
41618
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetablesIdPut(hospitalId, id, updateHospitalConsultationTimetableCommand, options).then((request) => request(axios, basePath));
|
|
41619
|
+
},
|
|
41620
|
+
/**
|
|
41621
|
+
*
|
|
41622
|
+
* @summary Create timetable item
|
|
41623
|
+
* @param {string} hospitalId
|
|
41624
|
+
* @param {CreateHospitalConsultationTimetableCommand} [createHospitalConsultationTimetableCommand]
|
|
41625
|
+
* @param {*} [options] Override http request option.
|
|
41626
|
+
* @throws {RequiredError}
|
|
41627
|
+
*/
|
|
41628
|
+
apiV1HospitalsHospitalIdConsultationtimetablesPost(hospitalId: string, createHospitalConsultationTimetableCommand?: CreateHospitalConsultationTimetableCommand, options?: any): AxiosPromise<HospitalConsultationTimetableModel> {
|
|
41629
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetablesPost(hospitalId, createHospitalConsultationTimetableCommand, options).then((request) => request(axios, basePath));
|
|
41630
|
+
},
|
|
41631
|
+
};
|
|
41632
|
+
};
|
|
41633
|
+
|
|
41634
|
+
/**
|
|
41635
|
+
* HospitalsConsultationTimetablesApi - object-oriented interface
|
|
41636
|
+
* @export
|
|
41637
|
+
* @class HospitalsConsultationTimetablesApi
|
|
41638
|
+
* @extends {BaseAPI}
|
|
41639
|
+
*/
|
|
41640
|
+
export class HospitalsConsultationTimetablesApi extends BaseAPI {
|
|
41641
|
+
/**
|
|
41642
|
+
*
|
|
41643
|
+
* @summary Add, Update and Delete item at once
|
|
41644
|
+
* @param {string} hospitalId
|
|
41645
|
+
* @param {BatchHospitalConsultationTimetablesCommand} [batchHospitalConsultationTimetablesCommand]
|
|
41646
|
+
* @param {*} [options] Override http request option.
|
|
41647
|
+
* @throws {RequiredError}
|
|
41648
|
+
* @memberof HospitalsConsultationTimetablesApi
|
|
41649
|
+
*/
|
|
41650
|
+
public apiV1HospitalsHospitalIdConsultationtimetablesBatchPost(hospitalId: string, batchHospitalConsultationTimetablesCommand?: BatchHospitalConsultationTimetablesCommand, options?: AxiosRequestConfig) {
|
|
41651
|
+
return HospitalsConsultationTimetablesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetablesBatchPost(hospitalId, batchHospitalConsultationTimetablesCommand, options).then((request) => request(this.axios, this.basePath));
|
|
41652
|
+
}
|
|
41653
|
+
|
|
41654
|
+
/**
|
|
41655
|
+
*
|
|
41656
|
+
* @summary Get consultation timetables
|
|
41657
|
+
* @param {string} hospitalId
|
|
41658
|
+
* @param {number} [page]
|
|
41659
|
+
* @param {number} [limit]
|
|
41660
|
+
* @param {Date} [lastRetrieved]
|
|
41661
|
+
* @param {*} [options] Override http request option.
|
|
41662
|
+
* @throws {RequiredError}
|
|
41663
|
+
* @memberof HospitalsConsultationTimetablesApi
|
|
41664
|
+
*/
|
|
41665
|
+
public apiV1HospitalsHospitalIdConsultationtimetablesGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
41666
|
+
return HospitalsConsultationTimetablesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetablesGet(hospitalId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
41667
|
+
}
|
|
41668
|
+
|
|
41669
|
+
/**
|
|
41670
|
+
*
|
|
41671
|
+
* @summary Delete timetable item
|
|
41672
|
+
* @param {string} hospitalId
|
|
41673
|
+
* @param {string} id
|
|
41674
|
+
* @param {*} [options] Override http request option.
|
|
41675
|
+
* @throws {RequiredError}
|
|
41676
|
+
* @memberof HospitalsConsultationTimetablesApi
|
|
41677
|
+
*/
|
|
41678
|
+
public apiV1HospitalsHospitalIdConsultationtimetablesIdDelete(hospitalId: string, id: string, options?: AxiosRequestConfig) {
|
|
41679
|
+
return HospitalsConsultationTimetablesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetablesIdDelete(hospitalId, id, options).then((request) => request(this.axios, this.basePath));
|
|
41680
|
+
}
|
|
41681
|
+
|
|
41682
|
+
/**
|
|
41683
|
+
*
|
|
41684
|
+
* @summary Get consultation timetable
|
|
41685
|
+
* @param {string} hospitalId
|
|
41686
|
+
* @param {string} id
|
|
41687
|
+
* @param {*} [options] Override http request option.
|
|
41688
|
+
* @throws {RequiredError}
|
|
41689
|
+
* @memberof HospitalsConsultationTimetablesApi
|
|
41690
|
+
*/
|
|
41691
|
+
public apiV1HospitalsHospitalIdConsultationtimetablesIdGet(hospitalId: string, id: string, options?: AxiosRequestConfig) {
|
|
41692
|
+
return HospitalsConsultationTimetablesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetablesIdGet(hospitalId, id, options).then((request) => request(this.axios, this.basePath));
|
|
41693
|
+
}
|
|
41694
|
+
|
|
41695
|
+
/**
|
|
41696
|
+
*
|
|
41697
|
+
* @summary Update timetable item
|
|
41698
|
+
* @param {string} hospitalId
|
|
41699
|
+
* @param {string} id
|
|
41700
|
+
* @param {UpdateHospitalConsultationTimetableCommand} [updateHospitalConsultationTimetableCommand]
|
|
41701
|
+
* @param {*} [options] Override http request option.
|
|
41702
|
+
* @throws {RequiredError}
|
|
41703
|
+
* @memberof HospitalsConsultationTimetablesApi
|
|
41704
|
+
*/
|
|
41705
|
+
public apiV1HospitalsHospitalIdConsultationtimetablesIdPut(hospitalId: string, id: string, updateHospitalConsultationTimetableCommand?: UpdateHospitalConsultationTimetableCommand, options?: AxiosRequestConfig) {
|
|
41706
|
+
return HospitalsConsultationTimetablesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetablesIdPut(hospitalId, id, updateHospitalConsultationTimetableCommand, options).then((request) => request(this.axios, this.basePath));
|
|
41707
|
+
}
|
|
41708
|
+
|
|
41709
|
+
/**
|
|
41710
|
+
*
|
|
41711
|
+
* @summary Create timetable item
|
|
41712
|
+
* @param {string} hospitalId
|
|
41713
|
+
* @param {CreateHospitalConsultationTimetableCommand} [createHospitalConsultationTimetableCommand]
|
|
41714
|
+
* @param {*} [options] Override http request option.
|
|
41715
|
+
* @throws {RequiredError}
|
|
41716
|
+
* @memberof HospitalsConsultationTimetablesApi
|
|
41717
|
+
*/
|
|
41718
|
+
public apiV1HospitalsHospitalIdConsultationtimetablesPost(hospitalId: string, createHospitalConsultationTimetableCommand?: CreateHospitalConsultationTimetableCommand, options?: AxiosRequestConfig) {
|
|
41719
|
+
return HospitalsConsultationTimetablesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetablesPost(hospitalId, createHospitalConsultationTimetableCommand, options).then((request) => request(this.axios, this.basePath));
|
|
41720
|
+
}
|
|
41721
|
+
}
|
|
41722
|
+
|
|
41723
|
+
|
|
40031
41724
|
/**
|
|
40032
41725
|
* ImagesApi - axios parameter creator
|
|
40033
41726
|
* @export
|