@moxi.gmbh/moxi-typescriptmodels 0.1.2031-test-server → 0.1.2051-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,7 +55,6 @@ export interface Account {
55
55
  confirmed?: boolean;
56
56
  criticalInfo?: CriticalAccountInfo;
57
57
  drivePermissions?: DrivePermission[];
58
- driverSettings?: DriverSettings;
59
58
  info?: AccountInfo;
60
59
  integrationSettings?: any[];
61
60
  operateAccounts?: string[];
@@ -172,10 +171,9 @@ export interface AmbulanceFilter extends DrivePermissionFilter {
172
171
  */
173
172
  export interface AmbulanceInfo {
174
173
  /**
175
- * Derived from infectionDescription != blank or infectionCode != blank
174
+ * Derived from infectionDescription != blank
176
175
  */
177
176
  hasInfection?: boolean;
178
- infectionCode?: string;
179
177
  infectionDescription?: string;
180
178
  monitoringDescription?: string;
181
179
  oxygenLiterPerHour?: number;
@@ -231,7 +229,7 @@ export interface AuthenticationService {
231
229
  }
232
230
 
233
231
  export interface BookRide extends CreateRideCommand {
234
- info?: RideInfo;
232
+ info?: RideInfoUnion;
235
233
  }
236
234
 
237
235
  export interface BookRideSeries extends CreateSeriesCommand {
@@ -280,12 +278,6 @@ export interface CleaningAndSlack {
280
278
  pickupDuration?: number;
281
279
  }
282
280
 
283
- export interface CleaningSetting {
284
- cleaningAtGarage?: boolean;
285
- code?: string;
286
- minutes?: number;
287
- }
288
-
289
281
  export interface ConfirmAccount extends AccountCommand {
290
282
  }
291
283
 
@@ -370,14 +362,6 @@ export interface DisconnectClient {
370
362
  tokenId?: string;
371
363
  }
372
364
 
373
- export interface Disease {
374
- code?: string;
375
- defaultCleaningAtGarage?: boolean;
376
- defaultCleaningMinutes?: number;
377
- fullName?: string;
378
- shortName?: string;
379
- }
380
-
381
365
  export interface DispoliveSettings {
382
366
  key?: string;
383
367
  type: "dispolive";
@@ -425,11 +409,6 @@ export interface DrivePermissionInfoRequest {
425
409
  regions?: Region[];
426
410
  }
427
411
 
428
- export interface DriverSettings {
429
- cleaningSettings?: CleaningSetting[];
430
- slackSettings?: SlackSetting[];
431
- }
432
-
433
412
  export interface EmailMessage {
434
413
  attachments?: Attachment[];
435
414
  bccs?: string[];
@@ -640,9 +619,6 @@ export interface GetAccountsOfPotentialDrivers extends IGetPotentialDrivers {
640
619
  export interface GetAccountsOfPotentialDriversAsAdmin extends IGetPotentialDrivers {
641
620
  }
642
621
 
643
- export interface GetDiseases {
644
- }
645
-
646
622
  export interface GetDistrict {
647
623
  geoLocation?: GeoLocation;
648
624
  stateNutsCode?: string;
@@ -838,6 +814,7 @@ export interface IntensiveCareHelicopterFilter extends DrivePermissionFilter {
838
814
  export interface IntensiveCareRideInfo extends RideInfo {
839
815
  medicalData?: MedicalData;
840
816
  patientMedicalCondition?: string;
817
+ vehicleType: "intensiveCareAmbulance";
841
818
  }
842
819
 
843
820
  export interface Invite {
@@ -1032,6 +1009,7 @@ export interface RegisterEinsatz {
1032
1009
  * Information about the ride, from the creator of the ride
1033
1010
  */
1034
1011
  export interface RegularRideInfo extends RideInfo {
1012
+ vehicleType: "taxi";
1035
1013
  }
1036
1014
 
1037
1015
  export interface RemoveAccount extends AccountUpdate {
@@ -1091,15 +1069,6 @@ export interface ResetPosition {
1091
1069
  tokenId?: string;
1092
1070
  }
1093
1071
 
1094
- export interface ResetRideCleaningAndSlack extends RideDriverModifyCommand {
1095
- cleaningAndSlack?: CleaningAndSlack;
1096
- }
1097
-
1098
- export interface ResetSeriesCleaningAndSlack extends SeriesDriverCommand {
1099
- cleaningAndSlack?: CleaningAndSlack;
1100
- updateRides?: string[];
1101
- }
1102
-
1103
1072
  export interface ReturnRide extends RideDriverModifyCommand {
1104
1073
  }
1105
1074
 
@@ -1179,7 +1148,7 @@ export interface Ride extends RideOrSeries, RideOrMinimizedSeries {
1179
1148
  * Expected Time of Arrival at the Origin/Pick-up location.
1180
1149
  */
1181
1150
  expectedStartTime?: string;
1182
- info?: RideInfo;
1151
+ info?: RideInfoUnion;
1183
1152
  /**
1184
1153
  * Derived from plannedStartTime != null
1185
1154
  */
@@ -1224,6 +1193,9 @@ export interface RideDriverModifyCommand extends RideDriverCommand {
1224
1193
  */
1225
1194
  export interface RideDuration {
1226
1195
  driving?: number;
1196
+ droppingOff?: number;
1197
+ pickingUp?: number;
1198
+ total?: number;
1227
1199
  }
1228
1200
 
1229
1201
  export interface RideFilter {
@@ -1275,6 +1247,7 @@ export interface RideIdResult {
1275
1247
  export interface RideInfo extends GenericRideInfo {
1276
1248
  appointment?: Appointment;
1277
1249
  purpose?: RidePurpose;
1250
+ vehicleType: "intensiveCareAmbulance" | "taxi";
1278
1251
  }
1279
1252
 
1280
1253
  export interface RideLog {
@@ -1285,6 +1258,9 @@ export interface RideLog {
1285
1258
  eventName?: string;
1286
1259
  eventValue?: any;
1287
1260
  impersonating?: boolean;
1261
+ isImpersonating?: boolean;
1262
+ isSuperAdmin?: boolean;
1263
+ isToken?: boolean;
1288
1264
  superAdmin?: boolean;
1289
1265
  timestamp?: string;
1290
1266
  token?: boolean;
@@ -1387,7 +1363,7 @@ export interface Role {
1387
1363
  * Save a new ride or update a previously saved ride. Not allowed to saveRide after the ride has been booked.
1388
1364
  */
1389
1365
  export interface SaveRide extends CreateRideCommand {
1390
- info?: RideInfo;
1366
+ info?: RideInfoUnion;
1391
1367
  }
1392
1368
 
1393
1369
  export interface SaveRideSeries extends CreateSeriesCommand {
@@ -1461,10 +1437,6 @@ export interface SeriesRideInfo extends GenericRideInfo {
1461
1437
  purpose?: SeriesPurpose;
1462
1438
  }
1463
1439
 
1464
- export interface SetCleaningSettings extends AccountUpdate {
1465
- settings?: CleaningSetting[];
1466
- }
1467
-
1468
1440
  export interface SetOperations extends AccountUpdate {
1469
1441
  operateAccounts?: string[];
1470
1442
  }
@@ -1473,26 +1445,14 @@ export interface SetOperator extends AccountUpdate {
1473
1445
  operator?: string;
1474
1446
  }
1475
1447
 
1476
- export interface SetRideCleaningAndSlack extends RideDriverModifyCommand {
1477
- cleaningAndSlack?: CleaningAndSlack;
1478
- }
1479
-
1480
1448
  export interface SetSecondaryTokenPermission extends SecondaryTokenPermissionCommand {
1481
1449
  accountPermission?: AccountPermission;
1482
1450
  }
1483
1451
 
1484
- export interface SetSeriesCleaningAndSlack extends SeriesDriverCommand {
1485
- cleaningAndSlack?: CleaningAndSlack;
1486
- }
1487
-
1488
1452
  export interface SetSettings extends AccountUpdate {
1489
1453
  settings?: any;
1490
1454
  }
1491
1455
 
1492
- export interface SetSlackSettings extends AccountUpdate {
1493
- settings?: SlackSetting[];
1494
- }
1495
-
1496
1456
  export interface SetUserPassword {
1497
1457
  confirmationCode?: string;
1498
1458
  password?: string;
@@ -1516,24 +1476,6 @@ export interface SignUpUser {
1516
1476
  userId?: string;
1517
1477
  }
1518
1478
 
1519
- export interface SlackRelevantInfo {
1520
- dropoffAtHome?: boolean;
1521
- hasInfection?: boolean;
1522
- heavyWeight?: boolean;
1523
- mobility?: Mobility;
1524
- pickupAtHome?: boolean;
1525
- requiresMonitoring?: boolean;
1526
- requiresOxygen?: boolean;
1527
- requiresSuctionAspirator?: boolean;
1528
- vehicleType?: VehicleType;
1529
- }
1530
-
1531
- export interface SlackSetting {
1532
- minutesAtHome?: number;
1533
- minutesAtHospital?: number;
1534
- type?: SlackType;
1535
- }
1536
-
1537
1479
  export interface StopImpersonatingUser {
1538
1480
  }
1539
1481
 
@@ -1623,7 +1565,7 @@ export interface UpdatePosition {
1623
1565
 
1624
1566
  export interface UpdateRide extends RideBookerCommand {
1625
1567
  booker?: AccountOrTeamRef;
1626
- info?: RideInfo;
1568
+ info?: RideInfoUnion;
1627
1569
  }
1628
1570
 
1629
1571
  export interface UpdateRidePlan extends RideDriverModifyCommand {
@@ -1723,6 +1665,8 @@ export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chai
1723
1665
 
1724
1666
  export type OrganisationType = "medical" | "fleet" | "operator";
1725
1667
 
1668
+ export type RideInfoUnion = RegularRideInfo | IntensiveCareRideInfo;
1669
+
1726
1670
  export type RidePurpose = "admission" | "relocation" | "discharge" | "consultation";
1727
1671
 
1728
1672
  export type SeriesPurpose = "consultation";
@@ -1731,8 +1675,6 @@ export type Service = "pro_medical" | "pro_fleet" | "pro_operator" | "celios_int
1731
1675
 
1732
1676
  export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
1733
1677
 
1734
- export type SlackType = "taxi_pickup" | "taxi_dropoff" | "ambulance_pickup" | "ambulance_dropoff" | "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "stretcher" | "heavyweight" | "oxygen" | "monitoring" | "suctionAspirator" | "infection";
1735
-
1736
1678
  export type StandaloneService = "pro_medical" | "pro_fleet" | "pro_operator";
1737
1679
 
1738
1680
  export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@moxi.gmbh/moxi-typescriptmodels",
3
- "version": "0.1.2031-test-server",
3
+ "version": "0.1.2051-test-server",
4
4
  "types": "common.d.ts"
5
5
  }
package/diseases.json DELETED
@@ -1,67 +0,0 @@
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
- ]