@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.
- package/.turbo/turbo-build.log +18 -18
- package/CHANGELOG.md +12 -0
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/package.json +1 -1
- package/src/business.ts +1 -1
- package/src/integration.ts +1 -1
- package/src/tracker.ts +4 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
> @mydoormot/app-types@2.1
|
|
3
|
-
> tsup src/index.ts --format esm,cjs --dts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
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
|
-
|
|
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 /
|
|
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
|
-
|
|
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 /
|
|
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
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
|
-
|
|
271
|
+
vehicleTracking?: boolean;
|
|
272
272
|
/**
|
|
273
273
|
* WhatsApp notifications to the business's users and customers on errand
|
|
274
274
|
* events.
|
package/src/integration.ts
CHANGED
|
@@ -2,7 +2,7 @@ export type IntegrationProvider = 'lynqone';
|
|
|
2
2
|
|
|
3
3
|
export type IntegrationStatus = 'connected' | 'disconnected' | 'error';
|
|
4
4
|
|
|
5
|
-
/** What `GET /
|
|
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;
|