@moxi.gmbh/moxi-typescriptmodels 0.0.991 → 0.0.1011

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 +33 -4
  2. package/package.json +1 -1
package/common.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  export interface AcceptDrive extends FleetCommand {
3
- driveOwner?: AccountOrTeamId;
3
+ driveOwner?: AccountOrTeamRef;
4
4
  }
5
5
 
6
6
  export interface AcceptInviteUser extends UserUpdate {
@@ -38,6 +38,11 @@ export interface AccountOrTeamId {
38
38
  teamId?: string;
39
39
  }
40
40
 
41
+ export interface AccountOrTeamRef extends AccountOrTeamId {
42
+ accountName?: string;
43
+ teamName?: string;
44
+ }
45
+
41
46
  export interface AccountPermission {
42
47
  accountId?: string;
43
48
  roles?: AccountRole[];
@@ -48,7 +53,7 @@ export interface AccountPermissionCommand extends UserUpdate {
48
53
  accountId?: string;
49
54
  }
50
55
 
51
- export interface AccountSummary {
56
+ export interface AccountRef {
52
57
  accountId?: string;
53
58
  name?: string;
54
59
  }
@@ -129,6 +134,7 @@ export interface AuthenticationService {
129
134
 
130
135
  export interface BookRide extends CreateRideCommand {
131
136
  info?: RideInfo;
137
+ owner?: AccountOrTeamRef;
132
138
  }
133
139
 
134
140
  export interface CancelDrive extends FleetModifyCommand {
@@ -295,6 +301,7 @@ export interface FindAccount {
295
301
  export interface FindMyRideOffers {
296
302
  accountId?: string;
297
303
  direction?: Direction;
304
+ filter?: RideFilter;
298
305
  term?: string;
299
306
  timeRange?: InstantRange;
300
307
  }
@@ -302,6 +309,7 @@ export interface FindMyRideOffers {
302
309
  export interface FindMyRides {
303
310
  accountId?: string;
304
311
  direction?: Direction;
312
+ filter?: RideFilter;
305
313
  term?: string;
306
314
  timeRange?: InstantRange;
307
315
  }
@@ -315,10 +323,16 @@ export interface FindMyUsers {
315
323
  export interface FindPotentialRides {
316
324
  accountId?: string;
317
325
  direction?: Direction;
326
+ filter?: RideFilter;
318
327
  term?: string;
319
328
  timeRange?: InstantRange;
320
329
  }
321
330
 
331
+ export interface FindRides {
332
+ filter?: RideFilter;
333
+ term?: string;
334
+ }
335
+
322
336
  export interface FindUsers {
323
337
  term?: string;
324
338
  }
@@ -587,13 +601,13 @@ export interface Ride {
587
601
  completed?: boolean;
588
602
  destinationEta?: string;
589
603
  destinationPta?: string;
590
- driveOwner?: AccountOrTeamId;
604
+ driveOwner?: AccountOrTeamRef;
591
605
  driveStatus?: DriveStatus;
592
606
  info?: RideInfo;
593
607
  originEta?: string;
594
608
  originPta?: string;
595
609
  rideId?: string;
596
- rideOwner?: AccountOrTeamId;
610
+ rideOwner?: AccountOrTeamRef;
597
611
  started?: boolean;
598
612
  }
599
613
 
@@ -608,6 +622,19 @@ export interface RideDuration {
608
622
  total?: number;
609
623
  }
610
624
 
625
+ export interface RideFilter {
626
+ bookingStatuses?: BookingStatus[];
627
+ directions?: Direction[];
628
+ hasInfection?: boolean;
629
+ heavyWeight?: boolean;
630
+ mobilities?: Mobility[];
631
+ requiresMonitoring?: boolean;
632
+ requiresOxygen?: boolean;
633
+ requiresSuctionAspirator?: boolean;
634
+ rideType?: RideType;
635
+ timeRange?: InstantRange;
636
+ }
637
+
611
638
  export interface RideInfo {
612
639
  ambulanceInfo?: AmbulanceInfo;
613
640
  appointment?: Appointment;
@@ -660,6 +687,7 @@ export interface RoleRight extends Right {
660
687
 
661
688
  export interface SaveRide extends CreateRideCommand {
662
689
  info?: RideInfo;
690
+ owner?: AccountOrTeamRef;
663
691
  }
664
692
 
665
693
  export interface SendConfirmationEmail {
@@ -777,6 +805,7 @@ export interface UpdateAccountPermission extends AccountPermissionCommand {
777
805
 
778
806
  export interface UpdateRideBooking extends RidePlannerCommand {
779
807
  info?: RideInfo;
808
+ owner?: AccountOrTeamRef;
780
809
  }
781
810
 
782
811
  export interface UpdateTeam extends TeamUpdate {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@moxi.gmbh/moxi-typescriptmodels",
3
- "version": "0.0.991",
3
+ "version": "0.0.1011",
4
4
  "types": "common.d.ts"
5
5
  }