@moxi.gmbh/moxi-typescriptmodels 0.1.3011-test-server → 0.1.3031-190873d-test-server
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/common-with-namespaces.d.ts +630 -149
- package/common.d.ts +272 -119
- package/nuts-districts.json +7 -7
- package/package.json +1 -1
package/common.d.ts
CHANGED
|
@@ -127,14 +127,11 @@ export interface AddOperations extends AccountUpdate {
|
|
|
127
127
|
operateAccount?: string;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
/**
|
|
131
|
-
* Address info of a google-validated address, including geolocation and district code
|
|
132
|
-
*/
|
|
133
130
|
export interface AddressInfo {
|
|
134
131
|
addition?: string;
|
|
135
132
|
city?: string;
|
|
136
133
|
/**
|
|
137
|
-
*
|
|
134
|
+
* The NUTS country code, derived from districtNutsCode
|
|
138
135
|
*/
|
|
139
136
|
country?: string;
|
|
140
137
|
districtNutsCode?: string;
|
|
@@ -143,12 +140,12 @@ export interface AddressInfo {
|
|
|
143
140
|
number?: string;
|
|
144
141
|
placeName?: string;
|
|
145
142
|
/**
|
|
146
|
-
*
|
|
143
|
+
* The NUTS level 1 code, derived from districtNutsCode
|
|
147
144
|
*/
|
|
148
145
|
state?: string;
|
|
149
146
|
street?: string;
|
|
150
147
|
/**
|
|
151
|
-
*
|
|
148
|
+
* The NUTS level 2 code, derived from districtNutsCode
|
|
152
149
|
*/
|
|
153
150
|
subState?: string;
|
|
154
151
|
zipCode?: string;
|
|
@@ -168,31 +165,27 @@ export interface AmbulanceFilter extends DrivePermissionFilter {
|
|
|
168
165
|
}
|
|
169
166
|
|
|
170
167
|
/**
|
|
171
|
-
*
|
|
168
|
+
* Mandatory if the vehicleType is ambulance, forbidden if taxi
|
|
172
169
|
*/
|
|
173
170
|
export interface AmbulanceInfo {
|
|
174
171
|
/**
|
|
175
|
-
*
|
|
172
|
+
* True if infectionDescription is given
|
|
176
173
|
*/
|
|
177
174
|
hasInfection?: boolean;
|
|
178
175
|
infectionDescription?: string;
|
|
179
176
|
monitoringDescription?: string;
|
|
180
177
|
oxygenLiterPerHour?: number;
|
|
181
178
|
/**
|
|
182
|
-
*
|
|
179
|
+
* True if monitoringDescription is given
|
|
183
180
|
*/
|
|
184
181
|
requiresMonitoring?: boolean;
|
|
185
182
|
/**
|
|
186
|
-
*
|
|
183
|
+
* True if oxygenLiterPerHour is given
|
|
187
184
|
*/
|
|
188
185
|
requiresOxygen?: boolean;
|
|
189
186
|
requiresSuctionAspirator?: boolean;
|
|
190
187
|
}
|
|
191
188
|
|
|
192
|
-
/**
|
|
193
|
-
* Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
|
|
194
|
-
|
|
195
|
-
*/
|
|
196
189
|
export interface AnonymizedSeriesRideInfo extends SeriesRideInfo {
|
|
197
190
|
}
|
|
198
191
|
|
|
@@ -243,6 +236,20 @@ export interface BookRideSeries extends CreateSeriesCommand {
|
|
|
243
236
|
rideSummaries?: RideSummary[];
|
|
244
237
|
}
|
|
245
238
|
|
|
239
|
+
export interface Breathing {
|
|
240
|
+
breathingDelivery?: BreathingDeliveryUnion;
|
|
241
|
+
spontaneous?: boolean;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface BreathingDelivery {
|
|
245
|
+
oxygenLiterPerMin?: number;
|
|
246
|
+
type: "intubated" | "mask" | "tracheotomized";
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export interface CancelOptimization {
|
|
250
|
+
problemId?: string;
|
|
251
|
+
}
|
|
252
|
+
|
|
246
253
|
export interface CancelRide extends RideCommand {
|
|
247
254
|
reason?: string;
|
|
248
255
|
}
|
|
@@ -284,6 +291,11 @@ export interface CheckSession {
|
|
|
284
291
|
userId?: string;
|
|
285
292
|
}
|
|
286
293
|
|
|
294
|
+
export interface Circulation {
|
|
295
|
+
catecholamines?: string[];
|
|
296
|
+
type?: CirculationType;
|
|
297
|
+
}
|
|
298
|
+
|
|
287
299
|
/**
|
|
288
300
|
* You can send in custom values. For every value you don't send in, we lookup the default setting you set up in your account.
|
|
289
301
|
*/
|
|
@@ -327,6 +339,11 @@ export interface ConfirmablePermission {
|
|
|
327
339
|
revoked?: boolean;
|
|
328
340
|
}
|
|
329
341
|
|
|
342
|
+
export interface Consciousness {
|
|
343
|
+
gcs?: number;
|
|
344
|
+
type?: ConsciousnessType;
|
|
345
|
+
}
|
|
346
|
+
|
|
330
347
|
export interface CreateAccount extends AccountCommand {
|
|
331
348
|
autoConfirm?: boolean;
|
|
332
349
|
criticalInfo?: CriticalAccountInfo;
|
|
@@ -335,11 +352,6 @@ export interface CreateAccount extends AccountCommand {
|
|
|
335
352
|
requestService?: StandaloneService;
|
|
336
353
|
}
|
|
337
354
|
|
|
338
|
-
export interface CreateOptimizationPlan extends OptimizerMessage {
|
|
339
|
-
accountOrTeam?: AccountOrTeamRef;
|
|
340
|
-
timeRange?: InstantRange;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
355
|
export interface CreateRideCommand extends RideBookerCommand {
|
|
344
356
|
booker?: AccountOrTeamRef;
|
|
345
357
|
}
|
|
@@ -349,10 +361,6 @@ export interface CreateSeriesCommand extends SeriesBookerCommand {
|
|
|
349
361
|
info?: SeriesRideInfo;
|
|
350
362
|
}
|
|
351
363
|
|
|
352
|
-
export interface CreateSqueezeInPlan extends OptimizerMessage {
|
|
353
|
-
accountOrTeam?: AccountOrTeamRef;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
364
|
export interface CreateTeam extends AccountCommand {
|
|
357
365
|
info?: TeamInfo;
|
|
358
366
|
teamId?: string;
|
|
@@ -461,6 +469,36 @@ export interface EmergencyAmbulanceFilter extends DrivePermissionFilter {
|
|
|
461
469
|
type: "emergencyAmbulance";
|
|
462
470
|
}
|
|
463
471
|
|
|
472
|
+
export interface Equipment {
|
|
473
|
+
cprDevice?: boolean;
|
|
474
|
+
ecmo?: boolean;
|
|
475
|
+
/**
|
|
476
|
+
* Derived from infusionTherapy != blank
|
|
477
|
+
*/
|
|
478
|
+
hasInfusionTherapy?: boolean;
|
|
479
|
+
/**
|
|
480
|
+
* Derived from perfusorDescription != blank
|
|
481
|
+
*/
|
|
482
|
+
hasPerfusor?: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* Derived from secondPerfusorDescription != blank
|
|
485
|
+
*/
|
|
486
|
+
hasSecondPerfusor?: boolean;
|
|
487
|
+
/**
|
|
488
|
+
* Derived from thoraxDrainageLeft != null or thoraxDrainageRight != null
|
|
489
|
+
*/
|
|
490
|
+
hasThoraxDrainage?: boolean;
|
|
491
|
+
iabp?: boolean;
|
|
492
|
+
infusionTherapy?: string;
|
|
493
|
+
pacemaker?: boolean;
|
|
494
|
+
perfusorDescription?: string;
|
|
495
|
+
powerSupply?: boolean;
|
|
496
|
+
secondPerfusorDescription?: string;
|
|
497
|
+
thoraxDrainageLeft?: number;
|
|
498
|
+
thoraxDrainageRight?: number;
|
|
499
|
+
vacuumMattress?: boolean;
|
|
500
|
+
}
|
|
501
|
+
|
|
464
502
|
export interface EuropeanHealthInsurance {
|
|
465
503
|
acronym?: string;
|
|
466
504
|
email?: string;
|
|
@@ -604,10 +642,6 @@ export interface GenerateTokenResult {
|
|
|
604
642
|
jwt?: string;
|
|
605
643
|
}
|
|
606
644
|
|
|
607
|
-
/**
|
|
608
|
-
* Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
|
|
609
|
-
|
|
610
|
-
*/
|
|
611
645
|
export interface GenericRideInfo {
|
|
612
646
|
ambulanceInfo?: AmbulanceInfo;
|
|
613
647
|
attendantsPresent?: number;
|
|
@@ -719,6 +753,10 @@ export interface GetOneSeries {
|
|
|
719
753
|
rideSeriesId?: string;
|
|
720
754
|
}
|
|
721
755
|
|
|
756
|
+
export interface GetOptimizationStatus {
|
|
757
|
+
problemId?: string;
|
|
758
|
+
}
|
|
759
|
+
|
|
722
760
|
export interface GetPotentialDriverIds extends GetPotentialDriversAbstract {
|
|
723
761
|
}
|
|
724
762
|
|
|
@@ -842,6 +880,30 @@ export interface ImpersonateUser {
|
|
|
842
880
|
userId?: string;
|
|
843
881
|
}
|
|
844
882
|
|
|
883
|
+
export interface Infection {
|
|
884
|
+
esbl?: boolean;
|
|
885
|
+
furtherActions?: string;
|
|
886
|
+
/**
|
|
887
|
+
* Derived from furtherActions != blank
|
|
888
|
+
*/
|
|
889
|
+
hasFurtherActions?: boolean;
|
|
890
|
+
/**
|
|
891
|
+
* Derived from infectionDescription != blank
|
|
892
|
+
*/
|
|
893
|
+
hasInfection?: boolean;
|
|
894
|
+
/**
|
|
895
|
+
* Derived from otherGerms != blank
|
|
896
|
+
*/
|
|
897
|
+
hasOtherGerms?: boolean;
|
|
898
|
+
infectionDescription?: string;
|
|
899
|
+
isolationNecessary?: boolean;
|
|
900
|
+
mrgn?: boolean;
|
|
901
|
+
mrsa?: boolean;
|
|
902
|
+
otherGerms?: string;
|
|
903
|
+
reverseIsolation?: boolean;
|
|
904
|
+
vre_cre?: boolean;
|
|
905
|
+
}
|
|
906
|
+
|
|
845
907
|
export interface InstantRange {
|
|
846
908
|
end?: string;
|
|
847
909
|
start?: string;
|
|
@@ -860,15 +922,54 @@ export interface IntensiveCareHelicopterFilter extends DrivePermissionFilter {
|
|
|
860
922
|
type: "intensiveCareHelicopter";
|
|
861
923
|
}
|
|
862
924
|
|
|
925
|
+
export interface IntensiveCareInfo {
|
|
926
|
+
ageCategory?: AgeCategory;
|
|
927
|
+
babyPod?: boolean;
|
|
928
|
+
babyWeighs3to8kg?: boolean;
|
|
929
|
+
breathing?: Breathing;
|
|
930
|
+
circulation?: Circulation;
|
|
931
|
+
consciousness?: Consciousness;
|
|
932
|
+
diagnosis?: string;
|
|
933
|
+
equipment?: Equipment;
|
|
934
|
+
infection?: Infection;
|
|
935
|
+
monitoring?: Monitoring;
|
|
936
|
+
otherRemarks?: string;
|
|
937
|
+
overweightCategory?: OverweightCategory;
|
|
938
|
+
ventilation?: Ventilation;
|
|
939
|
+
}
|
|
940
|
+
|
|
863
941
|
/**
|
|
864
942
|
* Ride information specific for intensive care rides.
|
|
865
943
|
*/
|
|
866
944
|
export interface IntensiveCareRideInfo extends RideInfo {
|
|
867
|
-
|
|
868
|
-
|
|
945
|
+
costCenter?: string;
|
|
946
|
+
/**
|
|
947
|
+
* Derived from costCenter != blank
|
|
948
|
+
*/
|
|
949
|
+
hasInternalBilling?: boolean;
|
|
950
|
+
intensiveCareInfo?: IntensiveCareInfo;
|
|
951
|
+
requestingDoctorName?: string;
|
|
952
|
+
requestingDoctorPhoneNr?: PhoneNumber;
|
|
953
|
+
requestingStationName?: string;
|
|
954
|
+
requestingStationPhoneNr?: PhoneNumber;
|
|
955
|
+
respondingDoctorName?: string;
|
|
956
|
+
respondingDoctorPhoneNr?: PhoneNumber;
|
|
957
|
+
respondingStationName?: string;
|
|
958
|
+
respondingStationPhoneNr?: PhoneNumber;
|
|
959
|
+
urgency?: Urgency;
|
|
869
960
|
vehicleType: "intensiveCareAmbulance" | "emergencyAmbulance" | "intensiveCareHelicopter";
|
|
870
961
|
}
|
|
871
962
|
|
|
963
|
+
/**
|
|
964
|
+
* Intubated means a tube in the nose or mouth
|
|
965
|
+
*/
|
|
966
|
+
export interface Intubated extends BreathingDelivery {
|
|
967
|
+
fixationInCm?: number;
|
|
968
|
+
oralOrNasal?: OralOrNasal;
|
|
969
|
+
tubeDiameterInMm?: number;
|
|
970
|
+
type: "intubated";
|
|
971
|
+
}
|
|
972
|
+
|
|
872
973
|
export interface Invite {
|
|
873
974
|
accountId?: string;
|
|
874
975
|
invitedBy?: string;
|
|
@@ -900,48 +1001,10 @@ export interface MarketplaceOverviewFilter extends WebsocketFilter {
|
|
|
900
1001
|
screen: "marketplace";
|
|
901
1002
|
}
|
|
902
1003
|
|
|
903
|
-
export interface
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
analogueSedated?: boolean;
|
|
908
|
-
catecholamines?: boolean;
|
|
909
|
-
cpapAsb?: boolean;
|
|
910
|
-
dkvBipap?: boolean;
|
|
911
|
-
ecmo?: boolean;
|
|
912
|
-
fio2AboveZeroPointFive?: boolean;
|
|
913
|
-
highFlowOxygenTherapy?: boolean;
|
|
914
|
-
iabp?: boolean;
|
|
915
|
-
ibpMonitoring?: boolean;
|
|
916
|
-
incubator?: boolean;
|
|
917
|
-
infection?: MonitoredValue;
|
|
918
|
-
infusomats?: MonitoredValue;
|
|
919
|
-
intubated?: boolean;
|
|
920
|
-
ippvCppv?: boolean;
|
|
921
|
-
niv?: boolean;
|
|
922
|
-
oriented?: boolean;
|
|
923
|
-
otherMonitoring?: MonitoredValue;
|
|
924
|
-
otherVentilation?: MonitoredValue;
|
|
925
|
-
oxygen?: MonitoredValue;
|
|
926
|
-
pacemaker?: boolean;
|
|
927
|
-
patientWeightAbove100Kg?: boolean;
|
|
928
|
-
peep?: boolean;
|
|
929
|
-
perfusor?: MonitoredValue;
|
|
930
|
-
powerSupply?: boolean;
|
|
931
|
-
remark?: string;
|
|
932
|
-
resources?: string;
|
|
933
|
-
simvAsb?: boolean;
|
|
934
|
-
sleepy?: boolean;
|
|
935
|
-
spontaneous?: boolean;
|
|
936
|
-
stable?: boolean;
|
|
937
|
-
standardMonitoring?: boolean;
|
|
938
|
-
thoraxDrainage?: boolean;
|
|
939
|
-
tracheostomized?: boolean;
|
|
940
|
-
unconscious?: boolean;
|
|
941
|
-
unstable?: boolean;
|
|
942
|
-
vacuumMattress?: boolean;
|
|
943
|
-
veinCatheter?: boolean;
|
|
944
|
-
ventilated?: boolean;
|
|
1004
|
+
export interface Mask extends BreathingDelivery {
|
|
1005
|
+
highflowLiterPerMin?: number;
|
|
1006
|
+
niv?: NIV;
|
|
1007
|
+
type: "mask";
|
|
945
1008
|
}
|
|
946
1009
|
|
|
947
1010
|
export interface Metric {
|
|
@@ -955,15 +1018,49 @@ export interface Metric {
|
|
|
955
1018
|
}
|
|
956
1019
|
|
|
957
1020
|
/**
|
|
958
|
-
*
|
|
1021
|
+
* A series of rides.
|
|
959
1022
|
*/
|
|
960
1023
|
export interface MinimizedRideSeries extends RideSeries, RideOrMinimizedSeries {
|
|
961
1024
|
info?: SeriesRideInfo;
|
|
962
1025
|
}
|
|
963
1026
|
|
|
964
|
-
export interface
|
|
965
|
-
|
|
966
|
-
|
|
1027
|
+
export interface Monitoring {
|
|
1028
|
+
ap?: boolean;
|
|
1029
|
+
arteryCatheterDescription?: string;
|
|
1030
|
+
capnometry?: boolean;
|
|
1031
|
+
cvlDescription?: string;
|
|
1032
|
+
cvp?: boolean;
|
|
1033
|
+
eeg?: boolean;
|
|
1034
|
+
/**
|
|
1035
|
+
* Derived from arteryCatheterDescription != blank
|
|
1036
|
+
*/
|
|
1037
|
+
hasArteryCatheter?: boolean;
|
|
1038
|
+
/**
|
|
1039
|
+
* Derived from cvlDescription != blank
|
|
1040
|
+
*/
|
|
1041
|
+
hasCvl?: boolean;
|
|
1042
|
+
/**
|
|
1043
|
+
* Derived from otherMonitoring != blank
|
|
1044
|
+
*/
|
|
1045
|
+
hasOtherMonitoring?: boolean;
|
|
1046
|
+
/**
|
|
1047
|
+
* Derived from numberOfVenusLines != null
|
|
1048
|
+
*/
|
|
1049
|
+
hasVenusLines?: boolean;
|
|
1050
|
+
icp?: boolean;
|
|
1051
|
+
numberOfVenusLines?: number;
|
|
1052
|
+
otherMonitoring?: string;
|
|
1053
|
+
pap?: boolean;
|
|
1054
|
+
standardMonitoring?: boolean;
|
|
1055
|
+
venusLinesDescription?: string;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* NIV stands for Non Invasive Ventilation.
|
|
1060
|
+
*/
|
|
1061
|
+
export interface NIV {
|
|
1062
|
+
fiO2?: number;
|
|
1063
|
+
peep?: number;
|
|
967
1064
|
}
|
|
968
1065
|
|
|
969
1066
|
export interface Notification {
|
|
@@ -1012,9 +1109,6 @@ export interface OperationsOverviewFilter extends WebsocketFilter {
|
|
|
1012
1109
|
screen: "operations_overview";
|
|
1013
1110
|
}
|
|
1014
1111
|
|
|
1015
|
-
export interface OptimizerMessage {
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
1112
|
export interface Person {
|
|
1019
1113
|
address?: AddressInfo;
|
|
1020
1114
|
birthDay?: string;
|
|
@@ -1028,7 +1122,7 @@ export interface Person {
|
|
|
1028
1122
|
}
|
|
1029
1123
|
|
|
1030
1124
|
/**
|
|
1031
|
-
*
|
|
1125
|
+
* Mandatory if weight exceeds 130 kg, otherwise forbidden
|
|
1032
1126
|
*/
|
|
1033
1127
|
export interface PersonDimensions {
|
|
1034
1128
|
heightInCm?: number;
|
|
@@ -1043,6 +1137,12 @@ export interface PlanRide extends RideDriverModifyCommand {
|
|
|
1043
1137
|
plannedStartTime?: string;
|
|
1044
1138
|
}
|
|
1045
1139
|
|
|
1140
|
+
export interface PollOptimizerSchedule {
|
|
1141
|
+
failures?: number;
|
|
1142
|
+
problemId?: string;
|
|
1143
|
+
target?: string;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1046
1146
|
export interface ReadUpdates {
|
|
1047
1147
|
clientId?: string;
|
|
1048
1148
|
maxSize?: number;
|
|
@@ -1060,6 +1160,7 @@ export interface ReadUpdatesResult {
|
|
|
1060
1160
|
export interface RefreshTokenData {
|
|
1061
1161
|
expiresAt?: string;
|
|
1062
1162
|
hashedToken?: string;
|
|
1163
|
+
impersonator?: string;
|
|
1063
1164
|
userId?: string;
|
|
1064
1165
|
}
|
|
1065
1166
|
|
|
@@ -1085,11 +1186,6 @@ export interface RegisterDriveStatus extends RideDriverModifyCommand {
|
|
|
1085
1186
|
export interface RegisterDriverSynced extends RideDriverModifyCommand {
|
|
1086
1187
|
}
|
|
1087
1188
|
|
|
1088
|
-
export interface RegisterEinsatz {
|
|
1089
|
-
einsatzNumber?: string;
|
|
1090
|
-
rideId?: string;
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
1189
|
export interface RegisterOneTimePassword {
|
|
1094
1190
|
oneTimePassword?: string;
|
|
1095
1191
|
userId?: string;
|
|
@@ -1201,18 +1297,18 @@ export interface RevokeUserRefreshTokens {
|
|
|
1201
1297
|
|
|
1202
1298
|
export interface Ride extends RideOrSeries, RideOrMinimizedSeries {
|
|
1203
1299
|
/**
|
|
1204
|
-
*
|
|
1300
|
+
* 'accepted' is true if a driver has accepted the ride.
|
|
1205
1301
|
*/
|
|
1206
1302
|
accepted?: boolean;
|
|
1207
1303
|
acceptedTime?: string;
|
|
1208
1304
|
actualEndTime?: string;
|
|
1209
1305
|
actualStartTime?: string;
|
|
1210
1306
|
/**
|
|
1211
|
-
*
|
|
1307
|
+
* 'arrived' is true if the driver has reported driveStatus is 'arrived_at_origin'.
|
|
1212
1308
|
*/
|
|
1213
1309
|
arrived?: boolean;
|
|
1214
1310
|
/**
|
|
1215
|
-
*
|
|
1311
|
+
* 'booked' is false if the ride has only been saved.
|
|
1216
1312
|
*/
|
|
1217
1313
|
booked?: boolean;
|
|
1218
1314
|
booker?: AccountOrTeamRef;
|
|
@@ -1220,15 +1316,15 @@ export interface Ride extends RideOrSeries, RideOrMinimizedSeries {
|
|
|
1220
1316
|
cancelReason?: string;
|
|
1221
1317
|
cancelled?: boolean;
|
|
1222
1318
|
/**
|
|
1223
|
-
*
|
|
1319
|
+
* 'completed' is true if the driver has reported driveStatus is 'completed'.
|
|
1224
1320
|
*/
|
|
1225
1321
|
completed?: boolean;
|
|
1226
1322
|
/**
|
|
1227
|
-
*
|
|
1323
|
+
* The booker determines the desiredEndTime via 'info.appointment' and 'info.plannedDuration'. It means the desired time of arrival at the 'to' or 'drop-off' location.
|
|
1228
1324
|
*/
|
|
1229
1325
|
desiredEndTime?: string;
|
|
1230
1326
|
/**
|
|
1231
|
-
*
|
|
1327
|
+
* The booker determines the desiredStartTime via 'info.appointment' and 'info.plannedDuration'. It means the desired time of arrival at the 'from' or 'pick-up' location.
|
|
1232
1328
|
*/
|
|
1233
1329
|
desiredStartTime?: string;
|
|
1234
1330
|
driveStatus?: DriveStatus;
|
|
@@ -1236,20 +1332,20 @@ export interface Ride extends RideOrSeries, RideOrMinimizedSeries {
|
|
|
1236
1332
|
driverSyncStatus?: SyncStatus;
|
|
1237
1333
|
endTimeDelay?: number;
|
|
1238
1334
|
/**
|
|
1239
|
-
*
|
|
1335
|
+
* The driver determines the expectedEndTime when indicating delays. It means the expected time of arrival at the 'to' or 'drop-off' location.
|
|
1240
1336
|
*/
|
|
1241
1337
|
expectedEndTime?: string;
|
|
1242
1338
|
/**
|
|
1243
|
-
*
|
|
1339
|
+
* The driver determines the expectedEndTime when indicating delays. It means the expected time of arrival at the 'from' or 'pick-up' location.
|
|
1244
1340
|
*/
|
|
1245
1341
|
expectedStartTime?: string;
|
|
1246
1342
|
info?: RideInfoUnion;
|
|
1247
1343
|
/**
|
|
1248
|
-
*
|
|
1344
|
+
* 'planned' is true if the driver has reported a planned time for the ride.
|
|
1249
1345
|
*/
|
|
1250
1346
|
planned?: boolean;
|
|
1251
1347
|
/**
|
|
1252
|
-
*
|
|
1348
|
+
* The driver determines the plannedEndTime. It means the planned time of arrival at the 'to' or 'drop-off' location.
|
|
1253
1349
|
*/
|
|
1254
1350
|
plannedEndTime?: string;
|
|
1255
1351
|
plannedStartTime?: string;
|
|
@@ -1257,7 +1353,7 @@ export interface Ride extends RideOrSeries, RideOrMinimizedSeries {
|
|
|
1257
1353
|
seriesInfo?: SeriesInfo;
|
|
1258
1354
|
startTimeDelay?: number;
|
|
1259
1355
|
/**
|
|
1260
|
-
*
|
|
1356
|
+
* 'started' is true if the driver has reported a driveStatus.
|
|
1261
1357
|
*/
|
|
1262
1358
|
started?: boolean;
|
|
1263
1359
|
}
|
|
@@ -1275,13 +1371,19 @@ export interface RideDriverCommand extends RideCommand {
|
|
|
1275
1371
|
export interface RideDriverModifyCommand extends RideDriverCommand {
|
|
1276
1372
|
}
|
|
1277
1373
|
|
|
1278
|
-
/**
|
|
1279
|
-
* All durations in seconds
|
|
1280
|
-
*/
|
|
1281
1374
|
export interface RideDuration {
|
|
1282
1375
|
driving?: number;
|
|
1376
|
+
/**
|
|
1377
|
+
* Seconds of slack for dropping off the patient, currently hardcoded to 15 minutes
|
|
1378
|
+
*/
|
|
1283
1379
|
droppingOff?: number;
|
|
1380
|
+
/**
|
|
1381
|
+
* Seconds of slack for picking up the patient, currently hardcoded to 15 minutes
|
|
1382
|
+
*/
|
|
1284
1383
|
pickingUp?: number;
|
|
1384
|
+
/**
|
|
1385
|
+
* Seconds of driving time plus the pick-up and drop-off slack times
|
|
1386
|
+
*/
|
|
1285
1387
|
total?: number;
|
|
1286
1388
|
}
|
|
1287
1389
|
|
|
@@ -1328,12 +1430,13 @@ export interface RideIdResult {
|
|
|
1328
1430
|
rideId?: string;
|
|
1329
1431
|
}
|
|
1330
1432
|
|
|
1331
|
-
/**
|
|
1332
|
-
* Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
|
|
1333
|
-
|
|
1334
|
-
*/
|
|
1335
1433
|
export interface RideInfo extends GenericRideInfo {
|
|
1336
1434
|
appointment?: Appointment;
|
|
1435
|
+
/**
|
|
1436
|
+
* Returns custom billing code if provided, otherwise auto-generates it from ride details
|
|
1437
|
+
*/
|
|
1438
|
+
billingCode?: string;
|
|
1439
|
+
customBillingCode?: string;
|
|
1337
1440
|
purpose?: RidePurpose;
|
|
1338
1441
|
}
|
|
1339
1442
|
|
|
@@ -1376,17 +1479,20 @@ export interface RideOrSeries {
|
|
|
1376
1479
|
}
|
|
1377
1480
|
|
|
1378
1481
|
/**
|
|
1379
|
-
*
|
|
1482
|
+
* A series of rides.
|
|
1380
1483
|
*/
|
|
1381
1484
|
export interface RideSeries extends RideOrSeries {
|
|
1382
1485
|
/**
|
|
1383
|
-
*
|
|
1486
|
+
* 'accepted' is true if a driver has accepted the series.
|
|
1384
1487
|
*/
|
|
1385
1488
|
accepted?: boolean;
|
|
1386
1489
|
acceptedTime?: string;
|
|
1490
|
+
/**
|
|
1491
|
+
* The number of rides in the series that are not cancelled.
|
|
1492
|
+
*/
|
|
1387
1493
|
activeRideCount?: number;
|
|
1388
1494
|
/**
|
|
1389
|
-
*
|
|
1495
|
+
* 'booked' is false if the series has only been saved.
|
|
1390
1496
|
*/
|
|
1391
1497
|
booked?: boolean;
|
|
1392
1498
|
booker?: AccountOrTeamRef;
|
|
@@ -1396,7 +1502,13 @@ export interface RideSeries extends RideOrSeries {
|
|
|
1396
1502
|
rideSeriesId?: string;
|
|
1397
1503
|
rides?: Ride[];
|
|
1398
1504
|
ridesSummaries?: RideSummary[];
|
|
1505
|
+
/**
|
|
1506
|
+
* searchEndTime is the time from which series can be found in our system. It's the searchEndTime of the last ride in the series.
|
|
1507
|
+
*/
|
|
1399
1508
|
searchEndTime?: string;
|
|
1509
|
+
/**
|
|
1510
|
+
* searchStartTime is the time from which series can be found in our system. It's the searchStartTime of the first ride in the series.
|
|
1511
|
+
*/
|
|
1400
1512
|
searchStartTime?: string;
|
|
1401
1513
|
}
|
|
1402
1514
|
|
|
@@ -1423,7 +1535,7 @@ export interface RideStatisticsQuery {
|
|
|
1423
1535
|
}
|
|
1424
1536
|
|
|
1425
1537
|
/**
|
|
1426
|
-
* Individual ride timing within a series. Once a ride series is
|
|
1538
|
+
* Individual ride timing within a series. Once a ride series is accepted, you cannot add rides, only remove
|
|
1427
1539
|
*/
|
|
1428
1540
|
export interface RideSummary {
|
|
1429
1541
|
appointmentTime?: string;
|
|
@@ -1473,12 +1585,6 @@ export interface SendEmail {
|
|
|
1473
1585
|
message?: EmailMessage;
|
|
1474
1586
|
}
|
|
1475
1587
|
|
|
1476
|
-
export interface SendFreshdeskNewTicket {
|
|
1477
|
-
email?: string;
|
|
1478
|
-
message?: string;
|
|
1479
|
-
subject?: string;
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
1588
|
export interface SendInvitationEmail {
|
|
1483
1589
|
accountIdOfInvite?: string;
|
|
1484
1590
|
userId?: string;
|
|
@@ -1517,7 +1623,7 @@ export interface SeriesDriverCommand extends SeriesCommand {
|
|
|
1517
1623
|
}
|
|
1518
1624
|
|
|
1519
1625
|
/**
|
|
1520
|
-
*
|
|
1626
|
+
* If the ride is part of a series, seriesInfo will contain context about the position of the ride within the series.
|
|
1521
1627
|
*/
|
|
1522
1628
|
export interface SeriesInfo {
|
|
1523
1629
|
desyncedFromSeries?: boolean;
|
|
@@ -1530,10 +1636,6 @@ export interface SeriesInfo {
|
|
|
1530
1636
|
export interface SeriesOperatorCommand extends SeriesCommand {
|
|
1531
1637
|
}
|
|
1532
1638
|
|
|
1533
|
-
/**
|
|
1534
|
-
* Common information shared across all rides in a series. Similar to RideInfo but without appointment-specific details that vary per ride.
|
|
1535
|
-
|
|
1536
|
-
*/
|
|
1537
1639
|
export interface SeriesRideInfo extends GenericRideInfo {
|
|
1538
1640
|
purpose?: SeriesPurpose;
|
|
1539
1641
|
}
|
|
@@ -1588,6 +1690,10 @@ export interface StartCeliosStream {
|
|
|
1588
1690
|
type?: GrpcStreamType;
|
|
1589
1691
|
}
|
|
1590
1692
|
|
|
1693
|
+
export interface StartOptimizationCommand {
|
|
1694
|
+
optimizationRequest?: any;
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1591
1697
|
export interface StopCeliosStream {
|
|
1592
1698
|
target?: string;
|
|
1593
1699
|
type?: GrpcStreamType;
|
|
@@ -1664,6 +1770,21 @@ export interface TokenInfo {
|
|
|
1664
1770
|
export interface TokenUpdate extends TokenCommand {
|
|
1665
1771
|
}
|
|
1666
1772
|
|
|
1773
|
+
/**
|
|
1774
|
+
* Tracheotomized means a tube through the skin.
|
|
1775
|
+
*/
|
|
1776
|
+
export interface Tracheotomized extends BreathingDelivery {
|
|
1777
|
+
fixationInCm?: number;
|
|
1778
|
+
tubeDiameterInMm?: number;
|
|
1779
|
+
type: "tracheotomized";
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
export interface TriggerCeliosOptimization {
|
|
1783
|
+
eplanRequestJson?: any;
|
|
1784
|
+
target?: string;
|
|
1785
|
+
type?: GrpcStreamType;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1667
1788
|
export interface UpdateAccountInfo extends AccountUpdate {
|
|
1668
1789
|
autoConfirm?: boolean;
|
|
1669
1790
|
criticalInfo?: CriticalAccountInfo;
|
|
@@ -1755,6 +1876,20 @@ export interface UserUpdate extends UserCommand {
|
|
|
1755
1876
|
export interface UserUpdateAfterSignup extends UserUpdate {
|
|
1756
1877
|
}
|
|
1757
1878
|
|
|
1879
|
+
export interface Ventilation {
|
|
1880
|
+
asb?: number;
|
|
1881
|
+
bf?: number;
|
|
1882
|
+
expiration?: number;
|
|
1883
|
+
fiO2?: number;
|
|
1884
|
+
inspiration?: number;
|
|
1885
|
+
mv?: number;
|
|
1886
|
+
other?: string;
|
|
1887
|
+
peep?: number;
|
|
1888
|
+
pmax?: number;
|
|
1889
|
+
td?: number;
|
|
1890
|
+
type?: VentilationType;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1758
1893
|
export interface WebsocketFilter extends WebsocketMessage {
|
|
1759
1894
|
screen: "ride_details" | "fleet_overview" | "hospital_overview" | "marketplace" | "operations_overview";
|
|
1760
1895
|
}
|
|
@@ -1790,10 +1925,20 @@ export interface ZonedTimeRange {
|
|
|
1790
1925
|
|
|
1791
1926
|
export type AccountRole = "ridebooker" | "dispatcher" | "operator" | "admin" | "owner";
|
|
1792
1927
|
|
|
1928
|
+
export type AgeCategory = "adult" | "child" | "toddler" | "baby";
|
|
1929
|
+
|
|
1793
1930
|
export type AuthenticationResult = "SUCCESS" | "NOT_CONFIRMED" | "ONE_TIME_PASSWORD_NEEDED";
|
|
1794
1931
|
|
|
1795
1932
|
export type BookingStatus = "saved" | "booked" | "accepted" | "planned" | "started" | "completed" | "cancelled";
|
|
1796
1933
|
|
|
1934
|
+
export type BreathingDeliveryType = "mask" | "intubated" | "tracheotomized";
|
|
1935
|
+
|
|
1936
|
+
export type BreathingDeliveryUnion = Mask | Intubated | Tracheotomized;
|
|
1937
|
+
|
|
1938
|
+
export type CirculationType = "stable" | "stable_with_catecholamines" | "unstable_with_catecholamines";
|
|
1939
|
+
|
|
1940
|
+
export type ConsciousnessType = "oriented" | "sleepy" | "unconscious" | "analgo_sedated";
|
|
1941
|
+
|
|
1797
1942
|
export type DocumentType = "businessLicense" | "publicLiabilityPolicy";
|
|
1798
1943
|
|
|
1799
1944
|
export type DrivePermissionFilterUnion = AmbulanceFilter | TaxiFilter | IntensiveCareAmbulanceFilter | IntensiveCareHelicopterFilter | EmergencyAmbulanceFilter;
|
|
@@ -1804,7 +1949,7 @@ export type EntityType = "ride" | "rideseries";
|
|
|
1804
1949
|
|
|
1805
1950
|
export type GeometryUnion = GeoPolygon | GeoMultiPolygon;
|
|
1806
1951
|
|
|
1807
|
-
export type GrpcStreamType = "get_einsatz_events";
|
|
1952
|
+
export type GrpcStreamType = "get_einsatz_events" | "optimizer_planning";
|
|
1808
1953
|
|
|
1809
1954
|
export type InsuranceType = "public_insurance" | "private_insurance" | "german_accident_insurance" | "no_or_unknown_insurance";
|
|
1810
1955
|
|
|
@@ -1812,8 +1957,12 @@ export type IntegrationType = "dispolive" | "celios";
|
|
|
1812
1957
|
|
|
1813
1958
|
export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "stretcher";
|
|
1814
1959
|
|
|
1960
|
+
export type OralOrNasal = "oral" | "nasal";
|
|
1961
|
+
|
|
1815
1962
|
export type OrganisationType = "medical" | "fleet" | "operator";
|
|
1816
1963
|
|
|
1964
|
+
export type OverweightCategory = "under_100" | "under_120" | "under_130" | "under_150" | "over_150";
|
|
1965
|
+
|
|
1817
1966
|
export type RideInfoUnion = RegularRideInfo | IntensiveCareRideInfo;
|
|
1818
1967
|
|
|
1819
1968
|
export type RidePurpose = "admission" | "relocation" | "discharge" | "consultation";
|
|
@@ -1822,7 +1971,7 @@ export type Screen = "ping" | "marketplace" | "operations_overview" | "hospital_
|
|
|
1822
1971
|
|
|
1823
1972
|
export type SeriesPurpose = "consultation";
|
|
1824
1973
|
|
|
1825
|
-
export type Service = "pro_medical" | "pro_fleet" | "pro_operator" | "celios_integration" | "dispolive_integration" | "moxi_operations";
|
|
1974
|
+
export type Service = "pro_medical" | "pro_fleet" | "pro_operator" | "celios_integration" | "dispolive_integration" | "moxi_operations" | "intensive_care";
|
|
1826
1975
|
|
|
1827
1976
|
export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
|
|
1828
1977
|
|
|
@@ -1832,10 +1981,14 @@ export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
|
|
|
1832
1981
|
|
|
1833
1982
|
export type TeamRole = "dispatcher" | "ridebooker";
|
|
1834
1983
|
|
|
1984
|
+
export type Urgency = "immediate" | "urgent" | "plannable";
|
|
1985
|
+
|
|
1835
1986
|
export type UserRole = "superadmin";
|
|
1836
1987
|
|
|
1837
1988
|
export type VehicleType = "taxi" | "ambulance" | "intensiveCareAmbulance" | "intensiveCareHelicopter" | "emergencyAmbulance";
|
|
1838
1989
|
|
|
1990
|
+
export type VentilationType = "pc_cmv" | "vc_cmv" | "bipap_duopap" | "ippv_cppv" | "simv" | "cpap";
|
|
1991
|
+
|
|
1839
1992
|
export type WebsocketMessageUnion = MarketplaceOverviewFilter | HospitalOverviewFilter | FleetOverviewFilter | OperationsOverviewFilter | DetailsFilter | WebsocketPing;
|
|
1840
1993
|
|
|
1841
1994
|
export type WebsocketUpdateType = "single_update" | "multiple_updates";
|