@moxi.gmbh/moxi-typescriptmodels 0.0.1351 → 0.0.1371

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 +58 -3
  2. package/package.json +1 -1
package/common.d.ts CHANGED
@@ -13,6 +13,9 @@ export interface AcceptUserAgreement extends UserUpdate {
13
13
 
14
14
  export interface Account {
15
15
  accountId?: string;
16
+ /**
17
+ * Derived from subscriptions
18
+ */
16
19
  activeServices?: Service[];
17
20
  confirmed?: boolean;
18
21
  criticalInfo?: CriticalAccountInfo;
@@ -325,6 +328,24 @@ export interface Feature {
325
328
  properties?: any;
326
329
  }
327
330
 
331
+ export interface FetchGoogleGeoLocation {
332
+ city?: string;
333
+ number?: string;
334
+ street?: string;
335
+ zipCode?: string;
336
+ }
337
+
338
+ export interface FetchGoogleRoute {
339
+ departureTime?: string;
340
+ from?: GeoLocation;
341
+ to?: GeoLocation;
342
+ }
343
+
344
+ export interface FetchRouteResult {
345
+ distanceInMeters?: number;
346
+ duration?: number;
347
+ }
348
+
328
349
  export interface FindAccount {
329
350
  term?: string;
330
351
  }
@@ -440,13 +461,16 @@ export interface GetDistrict {
440
461
  stateNutsCode?: string;
441
462
  }
442
463
 
443
- export interface GetInsurers {
464
+ export interface GetGoogleMapsUiKey {
444
465
  }
445
466
 
446
- export interface GetIsoStates {
467
+ /**
468
+ * Open-source insurance data, German-only for now, March 2024. Source: https://ec.europa.eu/social/social-security-directory/pai/search-institution/language/en/country/de/translation/de
469
+ */
470
+ export interface GetInsurers {
447
471
  }
448
472
 
449
- export interface GetMapsKey {
473
+ export interface GetIsoStates {
450
474
  }
451
475
 
452
476
  export interface GetMessageAtIndex {
@@ -458,6 +482,18 @@ export interface GetMessageAtIndex {
458
482
  export interface GetMyAccounts {
459
483
  }
460
484
 
485
+ export interface GetMyRideOffers {
486
+ accountId?: string;
487
+ maxSize?: number;
488
+ timeRange?: InstantRange;
489
+ }
490
+
491
+ export interface GetMyRides {
492
+ accountId?: string;
493
+ maxSize?: number;
494
+ timeRange?: InstantRange;
495
+ }
496
+
461
497
  export interface GetMyToken {
462
498
  }
463
499
 
@@ -467,6 +503,12 @@ export interface GetMyUserProfile {
467
503
  export interface GetNutsStates {
468
504
  }
469
505
 
506
+ export interface GetPotentialRides {
507
+ accountId?: string;
508
+ maxSize?: number;
509
+ timeRange?: InstantRange;
510
+ }
511
+
470
512
  export interface GetRide {
471
513
  rideId?: string;
472
514
  }
@@ -624,6 +666,9 @@ export interface RegisterDriveStatus extends FleetModifyCommand {
624
666
  driveStatus?: DriveStatus;
625
667
  }
626
668
 
669
+ export interface RegisterDriverSynced extends FleetModifyCommand {
670
+ }
671
+
627
672
  export interface RejectInviteUser extends UserUpdate {
628
673
  accountId?: string;
629
674
  }
@@ -700,6 +745,7 @@ export interface Ride {
700
745
  destinationPta?: string;
701
746
  driveOwner?: AccountOrTeamRef;
702
747
  driveStatus?: DriveStatus;
748
+ driverSyncStatus?: SyncStatus;
703
749
  info?: RideInfo;
704
750
  /**
705
751
  * Estimated Time of Arrival at the Origin/Pick-up location. Will differ from originPta if the driver reported a delay
@@ -721,6 +767,9 @@ export interface RideCommand {
721
767
  rideId?: string;
722
768
  }
723
769
 
770
+ /**
771
+ * All durations in seconds
772
+ */
724
773
  export interface RideDuration {
725
774
  driving?: number;
726
775
  droppingOff?: number;
@@ -764,6 +813,10 @@ export interface RideFilterCount {
764
813
  total?: number;
765
814
  }
766
815
 
816
+ export interface RideIdResult {
817
+ rideId?: string;
818
+ }
819
+
767
820
  /**
768
821
  * Information about the ride, from the creator of the ride
769
822
  */
@@ -1047,6 +1100,8 @@ export type Service = "rideplanning" | "driveplanning";
1047
1100
 
1048
1101
  export type SlackChannel = "admin_monitoring" | "admin_respond_immediately" | "admin_respond_within_hour" | "admin_reported_issues";
1049
1102
 
1103
+ export type SyncStatus = "not_synced" | "synced" | "update_not_synced";
1104
+
1050
1105
  export type TeamRole = "driveplanner" | "rideplanner";
1051
1106
 
1052
1107
  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.1351",
3
+ "version": "0.0.1371",
4
4
  "types": "common.d.ts"
5
5
  }