@moxi.gmbh/moxi-typescriptmodels 0.0.661 → 0.0.681

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 +30 -14
  2. package/package.json +1 -1
package/common.d.ts CHANGED
@@ -1,4 +1,8 @@
1
1
 
2
+ export interface AcceptDrive extends FleetCommand {
3
+ driveOwner?: AccountOrTeamId;
4
+ }
5
+
2
6
  export interface AcceptInviteUser extends UserUpdate {
3
7
  accountId?: string;
4
8
  }
@@ -125,10 +129,10 @@ export interface BookRide extends CreateRideCommand {
125
129
  info?: RideInfo;
126
130
  }
127
131
 
128
- export interface CancelRide extends RidePlannerCommand {
132
+ export interface CancelDrive extends FleetModifyCommand {
129
133
  }
130
134
 
131
- export interface CancelRideOffer extends FleetModifyCommand {
135
+ export interface CancelRide extends RidePlannerCommand {
132
136
  }
133
137
 
134
138
  export interface ChangeUserPassword {
@@ -283,12 +287,14 @@ export interface FindAccount {
283
287
  }
284
288
 
285
289
  export interface FindMyRideOffers {
290
+ accountId?: string;
286
291
  direction?: Direction;
287
292
  term?: string;
288
293
  timeRange?: InstantRange;
289
294
  }
290
295
 
291
296
  export interface FindMyRides {
297
+ accountId?: string;
292
298
  direction?: Direction;
293
299
  term?: string;
294
300
  timeRange?: InstantRange;
@@ -301,6 +307,7 @@ export interface FindMyUsers {
301
307
  }
302
308
 
303
309
  export interface FindPotentialRides {
310
+ accountId?: string;
304
311
  direction?: Direction;
305
312
  term?: string;
306
313
  timeRange?: InstantRange;
@@ -468,11 +475,6 @@ export interface NutsSubState {
468
475
  name?: string;
469
476
  }
470
477
 
471
- export interface OfferRide extends FleetCommand {
472
- driveOwner?: AccountOrTeamId;
473
- offerInfo?: RideOfferInfo;
474
- }
475
-
476
478
  export interface OffsetTimeRange extends Comparable<OffsetTimeRange> {
477
479
  end?: Date;
478
480
  start?: Date;
@@ -516,6 +518,15 @@ export interface RegisterAuthenticationToken extends UserUpdate {
516
518
  hashedToken?: string;
517
519
  }
518
520
 
521
+ export interface RegisterDifferentEta extends FleetModifyCommand {
522
+ destinationEta?: string;
523
+ originEta?: string;
524
+ }
525
+
526
+ export interface RegisterDriveStatus extends FleetModifyCommand {
527
+ driveStatus?: DriveStatus;
528
+ }
529
+
519
530
  export interface RejectInviteUser extends UserUpdate {
520
531
  accountId?: string;
521
532
  }
@@ -556,15 +567,21 @@ export interface RevokeSubscription extends AccountUpdate {
556
567
  }
557
568
 
558
569
  export interface Ride {
570
+ accepted?: boolean;
559
571
  booked?: boolean;
572
+ bookedTime?: string;
560
573
  cancelled?: boolean;
561
- driveOffered?: boolean;
574
+ completed?: boolean;
575
+ destinationEta?: string;
576
+ destinationPta?: string;
562
577
  driveOwner?: AccountOrTeamId;
578
+ driveStatus?: DriveStatus;
563
579
  info?: RideInfo;
564
- offerInfo?: RideOfferInfo;
565
- preferredDriver?: string;
580
+ originEta?: string;
581
+ originPta?: string;
566
582
  rideId?: string;
567
583
  rideOwner?: AccountOrTeamId;
584
+ started?: boolean;
568
585
  }
569
586
 
570
587
  export interface RideCommand {
@@ -583,6 +600,7 @@ export interface RideInfo {
583
600
  heavyWeightWithMobilityIssues?: boolean;
584
601
  mobility?: Mobility;
585
602
  patient?: Person;
603
+ preferredDriver?: string;
586
604
  rideType?: RideType;
587
605
  to?: AddressInfo;
588
606
  weightInKg?: number;
@@ -740,10 +758,6 @@ export interface UpdateRideBooking extends RidePlannerCommand {
740
758
  info?: RideInfo;
741
759
  }
742
760
 
743
- export interface UpdateRideOffer extends FleetModifyCommand {
744
- offerInfo?: RideOfferInfo;
745
- }
746
-
747
761
  export interface UpdateTeam extends TeamUpdate {
748
762
  info?: TeamInfo;
749
763
  }
@@ -794,6 +808,8 @@ export type Destination = "DEFAULT" | "SEARCH";
794
808
 
795
809
  export type Direction = "admission" | "relocation" | "discharge";
796
810
 
811
+ export type DriveStatus = "driving_to_origin" | "arrived_at_origin" | "driving_to_destination" | "arrived_at_destination" | "completed";
812
+
797
813
  export type GeometryUnion = GeoPolygon | GeoMultiPolygon;
798
814
 
799
815
  export type Mobility = "wheelchair" | "big_or_electric_wheelchair" | "carry_chair" | "lying_down";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@moxi.gmbh/moxi-typescriptmodels",
3
- "version": "0.0.661",
3
+ "version": "0.0.681",
4
4
  "types": "common.d.ts"
5
5
  }