@mydoormot/app-types 1.7.5 → 1.7.7
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 +7 -7
- package/CHANGELOG.md +12 -0
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/package.json +1 -1
- package/src/rider.ts +10 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@1.7.
|
|
2
|
+
> @mydoormot/app-types@1.7.6 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2021
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[32mESM[39m [1mdist/index.js [22m[32m6.17 KB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in 510ms
|
|
13
11
|
[32mCJS[39m [1mdist/index.cjs [22m[32m7.84 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 61ms
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m6.17 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 61ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m17.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m17.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 646ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m17.62 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m17.62 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -218,12 +218,11 @@ interface InvoiceItem {
|
|
|
218
218
|
|
|
219
219
|
type Rider = {
|
|
220
220
|
id: string;
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
userId: string;
|
|
222
|
+
vehicleId: string;
|
|
223
223
|
currLocation: {
|
|
224
224
|
coordinates: number[];
|
|
225
225
|
};
|
|
226
|
-
vehicle: string | Vehicle;
|
|
227
226
|
vehicleNumber: string;
|
|
228
227
|
verified: boolean;
|
|
229
228
|
active: boolean;
|
|
@@ -244,13 +243,15 @@ declare enum VehicleType {
|
|
|
244
243
|
}
|
|
245
244
|
type Vehicle = {
|
|
246
245
|
id: string;
|
|
247
|
-
user: string;
|
|
248
246
|
vehicleNumber: string;
|
|
249
247
|
version: number;
|
|
250
248
|
createdAt: string;
|
|
251
249
|
updatedAt: string;
|
|
252
250
|
vehicleType: VehicleType | `${VehicleType}`;
|
|
253
|
-
|
|
251
|
+
businessId: string;
|
|
252
|
+
shortName?: string;
|
|
253
|
+
riderId?: string;
|
|
254
|
+
userId?: string;
|
|
254
255
|
};
|
|
255
256
|
type VehicleWithRider = Vehicle & {
|
|
256
257
|
rider: Rider | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -218,12 +218,11 @@ interface InvoiceItem {
|
|
|
218
218
|
|
|
219
219
|
type Rider = {
|
|
220
220
|
id: string;
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
userId: string;
|
|
222
|
+
vehicleId: string;
|
|
223
223
|
currLocation: {
|
|
224
224
|
coordinates: number[];
|
|
225
225
|
};
|
|
226
|
-
vehicle: string | Vehicle;
|
|
227
226
|
vehicleNumber: string;
|
|
228
227
|
verified: boolean;
|
|
229
228
|
active: boolean;
|
|
@@ -244,13 +243,15 @@ declare enum VehicleType {
|
|
|
244
243
|
}
|
|
245
244
|
type Vehicle = {
|
|
246
245
|
id: string;
|
|
247
|
-
user: string;
|
|
248
246
|
vehicleNumber: string;
|
|
249
247
|
version: number;
|
|
250
248
|
createdAt: string;
|
|
251
249
|
updatedAt: string;
|
|
252
250
|
vehicleType: VehicleType | `${VehicleType}`;
|
|
253
|
-
|
|
251
|
+
businessId: string;
|
|
252
|
+
shortName?: string;
|
|
253
|
+
riderId?: string;
|
|
254
|
+
userId?: string;
|
|
254
255
|
};
|
|
255
256
|
type VehicleWithRider = Vehicle & {
|
|
256
257
|
rider: Rider | null;
|
package/package.json
CHANGED
package/src/rider.ts
CHANGED
|
@@ -5,12 +5,14 @@ import { User } from './user';
|
|
|
5
5
|
|
|
6
6
|
export type Rider = {
|
|
7
7
|
id: string;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
userId: string;
|
|
9
|
+
vehicleId: string;
|
|
10
|
+
|
|
11
|
+
// city: string | City;
|
|
10
12
|
currLocation: {
|
|
11
13
|
coordinates: number[];
|
|
12
14
|
};
|
|
13
|
-
vehicle: string | Vehicle;
|
|
15
|
+
// vehicle: string | Vehicle;
|
|
14
16
|
vehicleNumber: string;
|
|
15
17
|
verified: boolean;
|
|
16
18
|
active: boolean;
|
|
@@ -34,13 +36,16 @@ export enum VehicleType {
|
|
|
34
36
|
|
|
35
37
|
export type Vehicle = {
|
|
36
38
|
id: string;
|
|
37
|
-
user: string;
|
|
38
39
|
vehicleNumber: string;
|
|
39
40
|
version: number;
|
|
40
41
|
createdAt: string;
|
|
41
42
|
updatedAt: string;
|
|
42
43
|
vehicleType: VehicleType | `${VehicleType}`;
|
|
43
|
-
|
|
44
|
+
businessId: string;
|
|
45
|
+
|
|
46
|
+
shortName?: string;
|
|
47
|
+
riderId?: string;
|
|
48
|
+
userId?: string;
|
|
44
49
|
};
|
|
45
50
|
|
|
46
51
|
export type VehicleWithRider = Vehicle & {
|