@moxi.gmbh/moxi-typescriptmodels 0.1.1991-test-server → 0.1.2011-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.d.ts CHANGED
@@ -55,6 +55,7 @@ export interface Account {
55
55
  confirmed?: boolean;
56
56
  criticalInfo?: CriticalAccountInfo;
57
57
  drivePermissions?: DrivePermission[];
58
+ driverSettings?: DriverSettings;
58
59
  info?: AccountInfo;
59
60
  integrationSettings?: any[];
60
61
  operateAccounts?: string[];
@@ -154,13 +155,6 @@ export interface AdminSetUserPassword {
154
155
  userId?: string;
155
156
  }
156
157
 
157
- /**
158
- * Information for advanced medical transport, like intensive care rides or emergency ambulances
159
- */
160
- export interface AdvancedRideInfo extends GenericRideInfo {
161
- medicalData?: MedicalData;
162
- }
163
-
164
158
  export interface AmbulanceFilter extends DrivePermissionFilter {
165
159
  heavyWeightAllowed?: boolean;
166
160
  type: "ambulance";
@@ -171,9 +165,10 @@ export interface AmbulanceFilter extends DrivePermissionFilter {
171
165
  */
172
166
  export interface AmbulanceInfo {
173
167
  /**
174
- * Derived from infectionDescription != blank
168
+ * Derived from infectionDescription != blank or infectionCode != blank
175
169
  */
176
170
  hasInfection?: boolean;
171
+ infectionCode?: string;
177
172
  infectionDescription?: string;
178
173
  monitoringDescription?: string;
179
174
  oxygenLiterPerHour?: number;
@@ -188,6 +183,12 @@ export interface AmbulanceInfo {
188
183
  requiresSuctionAspirator?: boolean;
189
184
  }
190
185
 
186
+ /**
187
+ * Information about the ride, from the creator of the ride
188
+ */
189
+ export interface AnonymizedRideInfo extends RideInfo {
190
+ }
191
+
191
192
  /**
192
193
  * Information about the ride, from the creator of the ride
193
194
  */
@@ -268,6 +269,22 @@ export interface CheckIfUserSignedUp {
268
269
  userId?: string;
269
270
  }
270
271
 
272
+ /**
273
+ * 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.
274
+ */
275
+ export interface CleaningAndSlack {
276
+ cleaningAtGarage?: boolean;
277
+ cleaningDuration?: number;
278
+ dropoffDuration?: number;
279
+ pickupDuration?: number;
280
+ }
281
+
282
+ export interface CleaningSetting {
283
+ cleaningAtGarage?: boolean;
284
+ code?: string;
285
+ minutes?: number;
286
+ }
287
+
271
288
  export interface ConfirmAccount extends AccountCommand {
272
289
  }
273
290
 
@@ -352,6 +369,14 @@ export interface DisconnectClient {
352
369
  tokenId?: string;
353
370
  }
354
371
 
372
+ export interface Disease {
373
+ code?: string;
374
+ defaultCleaningAtGarage?: boolean;
375
+ defaultCleaningMinutes?: number;
376
+ fullName?: string;
377
+ shortName?: string;
378
+ }
379
+
355
380
  export interface DispoliveSettings {
356
381
  key?: string;
357
382
  type: "dispolive";
@@ -385,7 +410,7 @@ export interface DrivePermission {
385
410
  }
386
411
 
387
412
  export interface DrivePermissionFilter {
388
- type: "ambulance" | "emergencyAmbulance" | "intensiveCareAmbulance" | "intensiveCareHelicopter" | "taxi";
413
+ type: "ambulance" | "taxi";
389
414
  }
390
415
 
391
416
  export interface DrivePermissionInfo {
@@ -399,6 +424,11 @@ export interface DrivePermissionInfoRequest {
399
424
  regions?: Region[];
400
425
  }
401
426
 
427
+ export interface DriverSettings {
428
+ cleaningSettings?: CleaningSetting[];
429
+ slackSettings?: SlackSetting[];
430
+ }
431
+
402
432
  export interface EmailMessage {
403
433
  attachments?: Attachment[];
404
434
  bccs?: string[];
@@ -411,10 +441,6 @@ export interface EmailMessage {
411
441
  tos?: string[];
412
442
  }
413
443
 
414
- export interface EmergencyAmbulanceFilter extends DrivePermissionFilter {
415
- type: "emergencyAmbulance";
416
- }
417
-
418
444
  export interface EuropeanHealthInsurance {
419
445
  acronym?: string;
420
446
  email?: string;
@@ -609,6 +635,9 @@ export interface GetAccountsOfPotentialDrivers extends IGetPotentialDrivers {
609
635
  export interface GetAccountsOfPotentialDriversAsAdmin extends IGetPotentialDrivers {
610
636
  }
611
637
 
638
+ export interface GetDiseases {
639
+ }
640
+
612
641
  export interface GetDistrict {
613
642
  geoLocation?: GeoLocation;
614
643
  stateNutsCode?: string;
@@ -790,22 +819,6 @@ export interface Insurer {
790
819
  name?: string;
791
820
  }
792
821
 
793
- export interface IntensiveCareAmbulanceFilter extends DrivePermissionFilter {
794
- type: "intensiveCareAmbulance";
795
- }
796
-
797
- export interface IntensiveCareHelicopterFilter extends DrivePermissionFilter {
798
- type: "intensiveCareHelicopter";
799
- }
800
-
801
- /**
802
- * Information about the ride, from the creator of the ride
803
- */
804
- export interface IntensiveCareRideInfo extends RideInfo {
805
- medicalData?: MedicalData;
806
- patientMedicalCondition?: string;
807
- }
808
-
809
822
  export interface Invite {
810
823
  accountId?: string;
811
824
  invitedBy?: string;
@@ -832,50 +845,6 @@ export interface IsoState {
832
845
  nutsCode?: string;
833
846
  }
834
847
 
835
- export interface MedicalData {
836
- activeSubstances?: MonitoredValue;
837
- administrativeJourney?: string;
838
- alarmNumber?: number;
839
- analogueSedated?: boolean;
840
- catecholamines?: boolean;
841
- cpapAsb?: boolean;
842
- dkvBipap?: boolean;
843
- ecmo?: boolean;
844
- fio2AboveZeroPointFive?: boolean;
845
- highFlowOxygenTherapy?: boolean;
846
- iabp?: boolean;
847
- ibpMonitoring?: boolean;
848
- incubator?: boolean;
849
- infection?: MonitoredValue;
850
- infusomats?: MonitoredValue;
851
- intubated?: boolean;
852
- ippvCppv?: boolean;
853
- niv?: boolean;
854
- oriented?: boolean;
855
- otherMonitoring?: MonitoredValue;
856
- otherVentilation?: MonitoredValue;
857
- oxygen?: MonitoredValue;
858
- pacemaker?: boolean;
859
- patientWeightAbove100Kg?: boolean;
860
- peep?: boolean;
861
- perfusor?: MonitoredValue;
862
- powerSupply?: boolean;
863
- remark?: string;
864
- resources?: string;
865
- simvAsb?: boolean;
866
- sleepy?: boolean;
867
- spontaneous?: boolean;
868
- stable?: boolean;
869
- standardMonitoring?: boolean;
870
- thoraxDrainage?: boolean;
871
- tracheostomized?: boolean;
872
- unconscious?: boolean;
873
- unstable?: boolean;
874
- vacuumMattress?: boolean;
875
- veinCatheter?: boolean;
876
- ventilated?: boolean;
877
- }
878
-
879
848
  export interface Metric {
880
849
  clientId?: string;
881
850
  clientSegment?: number[];
@@ -893,11 +862,6 @@ export interface MinimizedRideSeries extends RideSeries, RideOrMinimizedSeries {
893
862
  info?: SeriesRideInfo;
894
863
  }
895
864
 
896
- export interface MonitoredValue {
897
- enabled?: boolean;
898
- value?: string;
899
- }
900
-
901
865
  export interface Notification {
902
866
  body?: string;
903
867
  title?: string;
@@ -994,12 +958,6 @@ export interface RegisterEinsatz {
994
958
  rideId?: string;
995
959
  }
996
960
 
997
- /**
998
- * Information about the ride, from the creator of the ride
999
- */
1000
- export interface RegularRideInfo extends RideInfo {
1001
- }
1002
-
1003
961
  export interface RemoveAccount extends AccountUpdate {
1004
962
  }
1005
963
 
@@ -1057,6 +1015,15 @@ export interface ResetPosition {
1057
1015
  tokenId?: string;
1058
1016
  }
1059
1017
 
1018
+ export interface ResetRideCleaningAndSlack extends RideDriverModifyCommand {
1019
+ cleaningAndSlack?: CleaningAndSlack;
1020
+ }
1021
+
1022
+ export interface ResetSeriesCleaningAndSlack extends SeriesDriverCommand {
1023
+ cleaningAndSlack?: CleaningAndSlack;
1024
+ updateRides?: string[];
1025
+ }
1026
+
1060
1027
  export interface ReturnRide extends RideDriverModifyCommand {
1061
1028
  }
1062
1029
 
@@ -1181,9 +1148,6 @@ export interface RideDriverModifyCommand extends RideDriverCommand {
1181
1148
  */
1182
1149
  export interface RideDuration {
1183
1150
  driving?: number;
1184
- droppingOff?: number;
1185
- pickingUp?: number;
1186
- total?: number;
1187
1151
  }
1188
1152
 
1189
1153
  export interface RideFilter {
@@ -1245,9 +1209,6 @@ export interface RideLog {
1245
1209
  eventName?: string;
1246
1210
  eventValue?: any;
1247
1211
  impersonating?: boolean;
1248
- isImpersonating?: boolean;
1249
- isSuperAdmin?: boolean;
1250
- isToken?: boolean;
1251
1212
  superAdmin?: boolean;
1252
1213
  timestamp?: string;
1253
1214
  token?: boolean;
@@ -1265,9 +1226,11 @@ export interface RideOrMinimizedSeries {
1265
1226
  export interface RideOrSeries {
1266
1227
  bookedTime?: string;
1267
1228
  bookingStatus?: BookingStatus;
1229
+ cleaningAndSlack?: CleaningAndSlack;
1268
1230
  driver?: AccountOrTeamRef;
1269
1231
  entityType?: EntityType;
1270
1232
  info?: GenericRideInfo;
1233
+ totalDuration?: number;
1271
1234
  }
1272
1235
 
1273
1236
  /**
@@ -1422,6 +1385,10 @@ export interface SeriesRideInfo extends GenericRideInfo {
1422
1385
  purpose?: SeriesPurpose;
1423
1386
  }
1424
1387
 
1388
+ export interface SetCleaningSettings extends AccountUpdate {
1389
+ settings?: CleaningSetting[];
1390
+ }
1391
+
1425
1392
  export interface SetOperations extends AccountUpdate {
1426
1393
  operateAccounts?: string[];
1427
1394
  }
@@ -1430,14 +1397,26 @@ export interface SetOperator extends AccountUpdate {
1430
1397
  operator?: string;
1431
1398
  }
1432
1399
 
1400
+ export interface SetRideCleaningAndSlack extends RideDriverModifyCommand {
1401
+ cleaningAndSlack?: CleaningAndSlack;
1402
+ }
1403
+
1433
1404
  export interface SetSecondaryTokenPermission extends SecondaryTokenPermissionCommand {
1434
1405
  accountPermission?: AccountPermission;
1435
1406
  }
1436
1407
 
1408
+ export interface SetSeriesCleaningAndSlack extends SeriesDriverCommand {
1409
+ cleaningAndSlack?: CleaningAndSlack;
1410
+ }
1411
+
1437
1412
  export interface SetSettings extends AccountUpdate {
1438
1413
  settings?: any;
1439
1414
  }
1440
1415
 
1416
+ export interface SetSlackSettings extends AccountUpdate {
1417
+ settings?: SlackSetting[];
1418
+ }
1419
+
1441
1420
  export interface SetUserPassword {
1442
1421
  confirmationCode?: string;
1443
1422
  password?: string;
@@ -1461,6 +1440,24 @@ export interface SignUpUser {
1461
1440
  userId?: string;
1462
1441
  }
1463
1442
 
1443
+ export interface SlackRelevantInfo {
1444
+ dropoffAtHome?: boolean;
1445
+ hasInfection?: boolean;
1446
+ heavyWeight?: boolean;
1447
+ mobility?: Mobility;
1448
+ pickupAtHome?: boolean;
1449
+ requiresMonitoring?: boolean;
1450
+ requiresOxygen?: boolean;
1451
+ requiresSuctionAspirator?: boolean;
1452
+ vehicleType?: VehicleType;
1453
+ }
1454
+
1455
+ export interface SlackSetting {
1456
+ minutesAtHome?: number;
1457
+ minutesAtHospital?: number;
1458
+ type?: SlackType;
1459
+ }
1460
+
1464
1461
  export interface StopImpersonatingUser {
1465
1462
  }
1466
1463
 
@@ -1634,7 +1631,7 @@ export type AuthenticationResult = "SUCCESS" | "NOT_CONFIRMED";
1634
1631
 
1635
1632
  export type BookingStatus = "saved" | "booked" | "accepted" | "planned" | "started" | "completed" | "cancelled";
1636
1633
 
1637
- export type DrivePermissionFilterUnion = AmbulanceFilter | TaxiFilter | IntensiveCareAmbulanceFilter | IntensiveCareHelicopterFilter | EmergencyAmbulanceFilter;
1634
+ export type DrivePermissionFilterUnion = AmbulanceFilter | TaxiFilter;
1638
1635
 
1639
1636
  export type DriveStatus = "driving_to_origin" | "arrived_at_origin" | "driving_to_destination" | "arrived_at_destination" | "completed";
1640
1637
 
@@ -1658,6 +1655,8 @@ export type Service = "pro_medical" | "pro_fleet" | "pro_operator" | "celios_int
1658
1655
 
1659
1656
  export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
1660
1657
 
1658
+ export type SlackType = "taxi_pickup" | "taxi_dropoff" | "ambulance_pickup" | "ambulance_dropoff" | "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "stretcher" | "heavyweight" | "oxygen" | "monitoring" | "suctionAspirator" | "infection";
1659
+
1661
1660
  export type StandaloneService = "pro_medical" | "pro_fleet" | "pro_operator";
1662
1661
 
1663
1662
  export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
@@ -1666,4 +1665,4 @@ export type TeamRole = "dispatcher" | "ridebooker";
1666
1665
 
1667
1666
  export type UserRole = "superadmin";
1668
1667
 
1669
- export type VehicleType = "taxi" | "ambulance" | "intensiveCareAmbulance" | "intensiveCareHelicopter" | "emergencyAmbulance";
1668
+ export type VehicleType = "taxi" | "ambulance";
package/diseases.json ADDED
@@ -0,0 +1,67 @@
1
+ [
2
+ {"shortName":"AIDS", "code":"aids"},
3
+ {"shortName":"Argentine fever", "code":"argentine-fever"},
4
+ {"shortName":"Monkeypox", "code":"monkeypox"},
5
+ {"shortName":"Lyme disease", "code":"lyme-disease"},
6
+ {"shortName":"Bruccelosis", "code":"bruccelosis"},
7
+ {"shortName":"COVID 19", "defaultCleaningMinutes":15, "defaultCleaningAtGarage":false, "code":"covid-19"},
8
+ {"shortName":"CRE", "fullName":"Carbapenem-resistant Enterobacterales", "code":"cre"},
9
+ {"shortName":"Candida", "code":"candida"},
10
+ {"shortName":"Cholera", "code":"cholera"},
11
+ {"shortName":"Clostridia", "code":"clostridia"},
12
+ {"shortName":"Dengue fever", "code":"dengue-fever"},
13
+ {"shortName":"Diphtheria", "code":"diphtheria"},
14
+ {"shortName":"E. coli", "code":"e-coli"},
15
+ {"shortName":"EAEC", "fullName":"Enteroaggregative E. coli", "code":"eaec"},
16
+ {"shortName":"EHEC", "fullName":"Enterohemorrhagic E. coli", "code":"ehec"},
17
+ {"shortName":"EPEC", "fullName":"Enteropathogene E. coli", "code":"epec"},
18
+ {"shortName":"ESBL", "fullName":"Extended spectrum beta-lactamase", "code":"esbl"},
19
+ {"shortName":"ETEC", "fullName":"Enterotoxigenic E. coli", "code":"etec"},
20
+ {"shortName":"Ebola", "code":"ebola"},
21
+ {"shortName":"Typhus fever", "code":"typhus-fever"},
22
+ {"shortName":"Fleas", "code":"fleas"},
23
+ {"shortName":"Yellow fever", "code":"yellow-fever"},
24
+ {"shortName":"Shingles/Herpes zoster", "code":"shingles-herpes-zoster"},
25
+ {"shortName":"HIV", "code":"hiv"},
26
+ {"shortName":"Hantavirus", "code":"hantavirus"},
27
+ {"shortName":"Hepatitis A/E", "code":"hepatitis-a-e"},
28
+ {"shortName":"Hepatitis B/C/D", "code":"hepatitis-b-c-d"},
29
+ {"shortName":"Influenza", "code":"influenza"},
30
+ {"shortName":"Pertussis", "code":"pertussis"},
31
+ {"shortName":"Polio", "code":"polio"},
32
+ {"shortName":"Lassa fever", "code":"lassa-fever"},
33
+ {"shortName":"Leptospirosis", "code":"leptospirosis"},
34
+ {"shortName":"Lice", "code":"lice"},
35
+ {"shortName":"MERS", "code":"mers"},
36
+ {"shortName":"MRGN (3/4)", "fullName":"Multidrug-resistant Gram-negative bacteria 3 or 4", "code":"mrgn-3-4"},
37
+ {"shortName":"MRSA ORSA", "fullName":"Methicillin/Oxacillin-resistant Staphylococcus aureus", "code":"mrsa-orsa"},
38
+ {"shortName":"Malaria", "code":"malaria"},
39
+ {"shortName":"Marburg fever", "code":"marburg-fever"},
40
+ {"shortName":"Measles", "code":"measles"},
41
+ {"shortName":"Meningitis", "code":"meningitis"},
42
+ {"shortName":"Anthrax", "code":"anthrax"},
43
+ {"shortName":"Mumps", "code":"mumps"},
44
+ {"shortName":"Noro virus", "code":"noro-virus"},
45
+ {"shortName":"Paratyphoid", "code":"paratyphoid"},
46
+ {"shortName":"Plague", "code":"plague"},
47
+ {"shortName":"Glandular fever", "code":"glandular-fever"},
48
+ {"shortName":"Pseudomonas", "code":"pseudomonas"},
49
+ {"shortName":"RS virus", "fullName":"Respiratory syncytial virus", "code":"rs-virus"},
50
+ {"shortName":"RVF", "fullName":"Rift valley fever", "code":"rvf"},
51
+ {"shortName":"Rota virus", "code":"rota-virus"},
52
+ {"shortName":"Rubella", "code":"rubella"},
53
+ {"shortName":"SARS", "code":"sars"},
54
+ {"shortName":"SARS/MERS", "code":"sars-mers"},
55
+ {"shortName":"Salmonella", "code":"salmonella"},
56
+ {"shortName":"Scabies", "code":"scabies"},
57
+ {"shortName":"Scarlet fever", "code":"scarlet-fever"},
58
+ {"shortName":"Rabies", "code":"rabies"},
59
+ {"shortName":"Open tuberculosis", "code":"open-tuberculosis"},
60
+ {"shortName":"Closed tuberculosis", "code":"closed-tuberculosis"},
61
+ {"shortName":"Typhoid", "code":"typhoid"},
62
+ {"shortName":"Protective isolation", "code":"protective-isolation"},
63
+ {"shortName":"VRE", "fullName":"Vancomycin-resistente Enterokokken", "code":"vre"},
64
+ {"shortName":"Chickenpox", "code":"chickenpox"},
65
+ {"shortName":"Erysipelas", "code":"erysipelas"},
66
+ {"shortName":"Tetanus", "code":"tetanus"}
67
+ ]
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@moxi.gmbh/moxi-typescriptmodels",
3
- "version": "0.1.1991-test-server",
3
+ "version": "0.1.2011-test-server",
4
4
  "types": "common.d.ts"
5
5
  }