@mydoormot/app-types 2.2.0 → 2.2.2

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.1.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 67ms
13
- ESM dist/index.js 15.13 KB
14
- ESM ⚡️ Build success in 67ms
15
- DTS Build start
16
- DTS ⚡️ Build success in 800ms
17
- DTS dist/index.d.ts 58.74 KB
18
- DTS dist/index.d.cts 58.74 KB
1
+
2
+ > @mydoormot/app-types@2.2.1 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
+ ESM dist/index.js 15.13 KB
12
+ ESM ⚡️ Build success in 42ms
13
+ CJS dist/index.cjs 18.21 KB
14
+ CJS ⚡️ Build success in 43ms
15
+ DTS Build start
16
+ DTS ⚡️ Build success in 699ms
17
+ DTS dist/index.d.ts 58.82 KB
18
+ DTS dist/index.d.cts 58.82 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 2.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated tracker vehicle type
8
+
9
+ ## 2.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Modified reports
14
+
3
15
  ## 2.2.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.cts CHANGED
@@ -544,7 +544,7 @@ interface BusinessModules {
544
544
  */
545
545
  riderPayouts?: boolean;
546
546
  /** External GPS tracker feed; needs an API key to be useful. */
547
- trackerDevices?: boolean;
547
+ vehicleTracking?: boolean;
548
548
  /**
549
549
  * WhatsApp notifications to the business's users and customers on errand
550
550
  * events.
@@ -1882,6 +1882,8 @@ type Tracker = {
1882
1882
  type?: TrackerType;
1883
1883
  /** Unset means unassigned. A vehicle has at most one tracker. */
1884
1884
  vehicleId?: string;
1885
+ /** The assigned vehicle, on list and assign. */
1886
+ vehicleDetails?: Vehicle;
1885
1887
  location?: GeoPoint;
1886
1888
  lastPosition?: TrackerPosition;
1887
1889
  lastSeenAt?: string;
@@ -1896,7 +1898,7 @@ type Tracker = {
1896
1898
 
1897
1899
  type IntegrationProvider = 'lynqone';
1898
1900
  type IntegrationStatus = 'connected' | 'disconnected' | 'error';
1899
- /** What `GET /integrations/lynqone` returns. The key itself is never sent. */
1901
+ /** What `GET /tracking/lynqone` returns. The key itself is never sent. */
1900
1902
  type LynqoneIntegrationSummary = {
1901
1903
  status: IntegrationStatus;
1902
1904
  connectedAt?: string;
package/dist/index.d.ts CHANGED
@@ -544,7 +544,7 @@ interface BusinessModules {
544
544
  */
545
545
  riderPayouts?: boolean;
546
546
  /** External GPS tracker feed; needs an API key to be useful. */
547
- trackerDevices?: boolean;
547
+ vehicleTracking?: boolean;
548
548
  /**
549
549
  * WhatsApp notifications to the business's users and customers on errand
550
550
  * events.
@@ -1882,6 +1882,8 @@ type Tracker = {
1882
1882
  type?: TrackerType;
1883
1883
  /** Unset means unassigned. A vehicle has at most one tracker. */
1884
1884
  vehicleId?: string;
1885
+ /** The assigned vehicle, on list and assign. */
1886
+ vehicleDetails?: Vehicle;
1885
1887
  location?: GeoPoint;
1886
1888
  lastPosition?: TrackerPosition;
1887
1889
  lastSeenAt?: string;
@@ -1896,7 +1898,7 @@ type Tracker = {
1896
1898
 
1897
1899
  type IntegrationProvider = 'lynqone';
1898
1900
  type IntegrationStatus = 'connected' | 'disconnected' | 'error';
1899
- /** What `GET /integrations/lynqone` returns. The key itself is never sent. */
1901
+ /** What `GET /tracking/lynqone` returns. The key itself is never sent. */
1900
1902
  type LynqoneIntegrationSummary = {
1901
1903
  status: IntegrationStatus;
1902
1904
  connectedAt?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/business.ts CHANGED
@@ -268,7 +268,7 @@ export interface BusinessModules {
268
268
  */
269
269
  riderPayouts?: boolean;
270
270
  /** External GPS tracker feed; needs an API key to be useful. */
271
- trackerDevices?: boolean;
271
+ vehicleTracking?: boolean;
272
272
  /**
273
273
  * WhatsApp notifications to the business's users and customers on errand
274
274
  * events.
@@ -2,7 +2,7 @@ export type IntegrationProvider = 'lynqone';
2
2
 
3
3
  export type IntegrationStatus = 'connected' | 'disconnected' | 'error';
4
4
 
5
- /** What `GET /integrations/lynqone` returns. The key itself is never sent. */
5
+ /** What `GET /tracking/lynqone` returns. The key itself is never sent. */
6
6
  export type LynqoneIntegrationSummary = {
7
7
  status: IntegrationStatus;
8
8
  connectedAt?: string;
package/src/tracker.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { Vehicle } from './vehicle';
2
+
1
3
  /** GeoJSON Point. `coordinates` is `[longitude, latitude]`. */
2
4
  export type GeoPoint = {
3
5
  type: 'Point';
@@ -53,6 +55,8 @@ export type Tracker = {
53
55
  type?: TrackerType;
54
56
  /** Unset means unassigned. A vehicle has at most one tracker. */
55
57
  vehicleId?: string;
58
+ /** The assigned vehicle, on list and assign. */
59
+ vehicleDetails?: Vehicle;
56
60
  location?: GeoPoint;
57
61
  lastPosition?: TrackerPosition;
58
62
  lastSeenAt?: string;