@mydoormot/app-types 2.2.3 → 2.2.4

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.
@@ -1,18 +1,18 @@
1
-
2
- > @mydoormot/app-types@2.2.2 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
3
- > tsup src/index.ts --format esm,cjs --dts
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v7.3.0
8
- CLI Target: es2021
9
- ESM Build start
10
- CJS Build start
11
- CJS dist/index.cjs 18.21 KB
12
- CJS ⚡️ Build success in 128ms
13
- ESM dist/index.js 15.13 KB
14
- ESM ⚡️ Build success in 129ms
15
- DTS Build start
16
- DTS ⚡️ Build success in 784ms
17
- DTS dist/index.d.ts 59.03 KB
18
- DTS dist/index.d.cts 59.03 KB
1
+
2
+ > @mydoormot/app-types@2.2.4 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
3
+ > tsup src/index.ts --format esm,cjs --dts
4
+
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v7.3.0
8
+ CLI Target: es2021
9
+ ESM Build start
10
+ CJS Build start
11
+ CJS dist/index.cjs 18.21 KB
12
+ CJS ⚡️ Build success in 77ms
13
+ ESM dist/index.js 15.13 KB
14
+ ESM ⚡️ Build success in 78ms
15
+ DTS Build start
16
+ DTS ⚡️ Build success in 1776ms
17
+ DTS dist/index.d.ts 59.27 KB
18
+ DTS dist/index.d.cts 59.27 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 2.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified vehicles
8
+ - 88c575a: Added `vehicleAssignedAt` to trackers
9
+ Added `distance` (km this week and this month) to vehicles listed with `includeDistance`
10
+
3
11
  ## 2.2.3
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -659,6 +659,11 @@ type Vehicle = {
659
659
  };
660
660
  type VehicleWithRider = Vehicle & {
661
661
  riders: Rider[];
662
+ /** With `includeDistance`: GPS km from its tracker; null without one. */
663
+ distance?: {
664
+ thisWeekKm: number;
665
+ thisMonthKm: number;
666
+ } | null;
662
667
  };
663
668
  declare enum VehicleLogType {
664
669
  REFUEL = "REFUEL"
@@ -1884,6 +1889,8 @@ type Tracker = {
1884
1889
  type?: TrackerType;
1885
1890
  /** Unset means unassigned. A vehicle has at most one tracker. */
1886
1891
  vehicleId?: string;
1892
+ /** ISO time it went on its current vehicle. */
1893
+ vehicleAssignedAt?: string;
1887
1894
  /** The assigned vehicle, on list and assign. */
1888
1895
  vehicleDetails?: Vehicle;
1889
1896
  location?: GeoPoint;
package/dist/index.d.ts CHANGED
@@ -659,6 +659,11 @@ type Vehicle = {
659
659
  };
660
660
  type VehicleWithRider = Vehicle & {
661
661
  riders: Rider[];
662
+ /** With `includeDistance`: GPS km from its tracker; null without one. */
663
+ distance?: {
664
+ thisWeekKm: number;
665
+ thisMonthKm: number;
666
+ } | null;
662
667
  };
663
668
  declare enum VehicleLogType {
664
669
  REFUEL = "REFUEL"
@@ -1884,6 +1889,8 @@ type Tracker = {
1884
1889
  type?: TrackerType;
1885
1890
  /** Unset means unassigned. A vehicle has at most one tracker. */
1886
1891
  vehicleId?: string;
1892
+ /** ISO time it went on its current vehicle. */
1893
+ vehicleAssignedAt?: string;
1887
1894
  /** The assigned vehicle, on list and assign. */
1888
1895
  vehicleDetails?: Vehicle;
1889
1896
  location?: GeoPoint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/tracker.ts CHANGED
@@ -58,6 +58,8 @@ export type Tracker = {
58
58
  type?: TrackerType;
59
59
  /** Unset means unassigned. A vehicle has at most one tracker. */
60
60
  vehicleId?: string;
61
+ /** ISO time it went on its current vehicle. */
62
+ vehicleAssignedAt?: string;
61
63
  /** The assigned vehicle, on list and assign. */
62
64
  vehicleDetails?: Vehicle;
63
65
  location?: GeoPoint;
package/src/vehicle.ts CHANGED
@@ -21,6 +21,8 @@ export type Vehicle = {
21
21
 
22
22
  export type VehicleWithRider = Vehicle & {
23
23
  riders: Rider[];
24
+ /** With `includeDistance`: GPS km from its tracker; null without one. */
25
+ distance?: { thisWeekKm: number; thisMonthKm: number } | null;
24
26
  };
25
27
 
26
28
  export enum VehicleLogType {