@moxi.gmbh/moxi-typescriptmodels 0.0.391 → 0.0.411

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.
Files changed (2) hide show
  1. package/common.d.ts +59 -21
  2. package/package.json +1 -1
package/common.d.ts CHANGED
@@ -80,6 +80,21 @@ export interface AdminSetUserPassword {
80
80
  export interface AdminWebsocketClient {
81
81
  }
82
82
 
83
+ export interface AmbulanceFilter extends RideTypeSpecificFilter {
84
+ heavyWeightAllowed?: boolean;
85
+ type: "ambulance";
86
+ }
87
+
88
+ export interface AmbulanceInfo {
89
+ hasInfection?: boolean;
90
+ infectionDescription?: any;
91
+ monitoringDescription?: any;
92
+ oxygenLiterPerHour?: any;
93
+ requiresMonitoring?: boolean;
94
+ requiresOxygen?: boolean;
95
+ requiresSuctionAspirator?: boolean;
96
+ }
97
+
83
98
  export interface Application {
84
99
  config?: ApplicationConfig;
85
100
  }
@@ -216,10 +231,7 @@ export interface DrivePermission {
216
231
  }
217
232
 
218
233
  export interface DrivePermissionInfo {
219
- allowedEquipments?: Equipment[];
220
- allowedFleetCompanyTypes?: FleetCompanyType[];
221
- allowedSpecificities?: Specificity[];
222
- allowedTransportTypes?: TransportType[];
234
+ filter?: RideTypeSpecificFilterUnion;
223
235
  regions?: Region[];
224
236
  }
225
237
 
@@ -333,12 +345,11 @@ export interface GetAccount {
333
345
  }
334
346
 
335
347
  export interface GetAccountsOfPotentialDrivers {
336
- equipment?: Equipment;
337
- fleetCompanyType?: FleetCompanyType;
338
348
  fromDistrict?: any;
339
- specificities?: Specificity[];
349
+ mobility?: Mobility;
350
+ rideType?: RideType;
340
351
  toDistrict?: any;
341
- transportType?: TransportType;
352
+ weightInKg?: any;
342
353
  }
343
354
 
344
355
  export interface GetApplicationConfig {
@@ -371,6 +382,9 @@ export interface GetRide {
371
382
  rideId?: string;
372
383
  }
373
384
 
385
+ export interface GetRideLog {
386
+ }
387
+
374
388
  export interface GetTeam {
375
389
  teamId?: string;
376
390
  }
@@ -474,7 +488,12 @@ export interface Person {
474
488
  insurer?: Insurer;
475
489
  lastName?: any;
476
490
  phoneNumber?: any;
477
- weightInKg?: any;
491
+ }
492
+
493
+ export interface PersonDimensions {
494
+ heightInCm?: any;
495
+ hipWidthInCm?: any;
496
+ shoulderWidthInCm?: any;
478
497
  }
479
498
 
480
499
  export interface Point extends Point2D, Serializable {
@@ -592,17 +611,29 @@ export interface RideCommand {
592
611
  }
593
612
 
594
613
  export interface RideInfo {
614
+ ambulanceInfo?: AmbulanceInfo;
595
615
  appointment?: Appointment;
616
+ attendantsPresent?: any;
617
+ dimensions?: PersonDimensions;
596
618
  direction?: Direction;
597
- equipment?: Equipment;
598
- fleetCompanyType?: FleetCompanyType;
599
619
  from?: AddressInfo;
620
+ heavyWeight?: boolean;
621
+ heavyWeightWithMobilityIssues?: boolean;
622
+ mobility?: Mobility;
600
623
  patient?: Person;
624
+ rideType?: RideType;
601
625
  roundTrip?: boolean;
602
626
  roundTripAppointment?: Appointment;
603
- specificities?: Specificity[];
604
627
  to?: AddressInfo;
605
- transportType?: TransportType;
628
+ weightInKg?: any;
629
+ }
630
+
631
+ export interface RideLog {
632
+ allowedViewers?: AccountOrTeamId[];
633
+ eventDescription?: any;
634
+ eventId?: any;
635
+ impersonator?: string;
636
+ userId?: string;
606
637
  }
607
638
 
608
639
  export interface RideOfferInfo {
@@ -613,6 +644,10 @@ export interface RideOfferInfo {
613
644
  export interface RidePlannerCommand extends RideCommand {
614
645
  }
615
646
 
647
+ export interface RideTypeSpecificFilter {
648
+ type: "ambulance" | "taxi";
649
+ }
650
+
616
651
  export interface Right {
617
652
  type: "role";
618
653
  }
@@ -697,6 +732,11 @@ export interface SubscriptionInfo extends TimedPermission {
697
732
  service?: Service;
698
733
  }
699
734
 
735
+ export interface TaxiFilter extends RideTypeSpecificFilter {
736
+ allowedMobilities?: Mobility[];
737
+ type: "taxi";
738
+ }
739
+
700
740
  export interface Team {
701
741
  info?: TeamInfo;
702
742
  teamId?: string;
@@ -818,14 +858,16 @@ export type Direction = "admission" | "relocation" | "discharge";
818
858
 
819
859
  export type Environment = "prod" | "local" | "test";
820
860
 
821
- export type Equipment = "wheelchair" | "carry_chair" | "lying_down";
822
-
823
- export type FleetCompanyType = "taxi" | "ktw";
824
-
825
861
  export type GeometryUnion = GeoPolygon | GeoMultiPolygon;
826
862
 
863
+ export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "lying_down";
864
+
827
865
  export type OutputFormat = "PAYLOAD" | "MESSAGE" | "SERIALIZED_MESSAGE";
828
866
 
867
+ export type RideType = "taxi" | "ambulance";
868
+
869
+ export type RideTypeSpecificFilterUnion = AmbulanceFilter | TaxiFilter;
870
+
829
871
  export type RightType = "role" | "jurisdiction";
830
872
 
831
873
  export type RightUnion = RoleRight;
@@ -834,10 +876,6 @@ export type Service = "rideplanning" | "driveplanning";
834
876
 
835
877
  export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour";
836
878
 
837
- export type Specificity = "infection" | "overweight" | "oxygen" | "cognitive_impairment" | "attendant_present" | "suction_aspirator";
838
-
839
879
  export type TeamRole = "driveplanner" | "rideplanner";
840
880
 
841
- export type TransportType = "patient_transport" | "private_trip" | "material_transport";
842
-
843
881
  export type UserRole = "superadmin";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@moxi.gmbh/moxi-typescriptmodels",
3
- "version": "0.0.391",
3
+ "version": "0.0.411",
4
4
  "types": "common.d.ts"
5
5
  }