@mydoormot/app-types 1.5.8 → 1.6.0
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 +27 -1
- package/dist/index.d.ts +27 -1
- package/package.json +1 -1
- package/src/rider.ts +28 -0
- package/src/order.ts +0 -8
- package/src/property.ts +0 -19
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@1.5.
|
|
2
|
+
> @mydoormot/app-types@1.5.9 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
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m6.93 KB[39m
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in 62ms
|
|
13
11
|
[32mESM[39m [1mdist/index.js [22m[32m5.37 KB[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 153ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m6.93 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 153ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 999ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m15.43 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m15.43 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -265,12 +265,38 @@ type VehicleLog = {
|
|
|
265
265
|
note?: string;
|
|
266
266
|
createdAt: string;
|
|
267
267
|
updatedAt: string;
|
|
268
|
+
riderDetails: Rider | null;
|
|
269
|
+
riderUserDetails: User | null;
|
|
268
270
|
};
|
|
269
271
|
type VehicleLogWithErrands = VehicleLog & {
|
|
270
272
|
errands: Errand[];
|
|
271
273
|
errandsCount: number;
|
|
272
274
|
totalErrandsRevenue: number;
|
|
273
275
|
};
|
|
276
|
+
type VehicleLogWithRiderAndErrands = VehicleLogWithErrands & {
|
|
277
|
+
riderDetails: Rider | null;
|
|
278
|
+
riderUserDetails: User | null;
|
|
279
|
+
};
|
|
280
|
+
interface RiderStats {
|
|
281
|
+
totalErrands: number;
|
|
282
|
+
totalFuelCost: number;
|
|
283
|
+
numberOfRefills: number;
|
|
284
|
+
numberOfVehicles: number;
|
|
285
|
+
riderBreakdown: {
|
|
286
|
+
errandsPercentage: number;
|
|
287
|
+
fuelCostPercentage: number;
|
|
288
|
+
numberOfRefills: number;
|
|
289
|
+
numberOfVehicles: number;
|
|
290
|
+
riderEmail: string;
|
|
291
|
+
riderId: string;
|
|
292
|
+
riderName: string | null;
|
|
293
|
+
riderPhone: string;
|
|
294
|
+
totalErrands: number;
|
|
295
|
+
totalFuelCost: number;
|
|
296
|
+
totalFuelLiters: number;
|
|
297
|
+
_id: string;
|
|
298
|
+
}[];
|
|
299
|
+
}
|
|
274
300
|
|
|
275
301
|
declare enum ErrandStatus {
|
|
276
302
|
Pending = "pending",
|
|
@@ -597,4 +623,4 @@ declare enum LinkDestination {
|
|
|
597
623
|
}
|
|
598
624
|
type NullOrUndefined = null | undefined;
|
|
599
625
|
|
|
600
|
-
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, errandTimeline };
|
|
626
|
+
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, type RiderStats, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, errandTimeline };
|
package/dist/index.d.ts
CHANGED
|
@@ -265,12 +265,38 @@ type VehicleLog = {
|
|
|
265
265
|
note?: string;
|
|
266
266
|
createdAt: string;
|
|
267
267
|
updatedAt: string;
|
|
268
|
+
riderDetails: Rider | null;
|
|
269
|
+
riderUserDetails: User | null;
|
|
268
270
|
};
|
|
269
271
|
type VehicleLogWithErrands = VehicleLog & {
|
|
270
272
|
errands: Errand[];
|
|
271
273
|
errandsCount: number;
|
|
272
274
|
totalErrandsRevenue: number;
|
|
273
275
|
};
|
|
276
|
+
type VehicleLogWithRiderAndErrands = VehicleLogWithErrands & {
|
|
277
|
+
riderDetails: Rider | null;
|
|
278
|
+
riderUserDetails: User | null;
|
|
279
|
+
};
|
|
280
|
+
interface RiderStats {
|
|
281
|
+
totalErrands: number;
|
|
282
|
+
totalFuelCost: number;
|
|
283
|
+
numberOfRefills: number;
|
|
284
|
+
numberOfVehicles: number;
|
|
285
|
+
riderBreakdown: {
|
|
286
|
+
errandsPercentage: number;
|
|
287
|
+
fuelCostPercentage: number;
|
|
288
|
+
numberOfRefills: number;
|
|
289
|
+
numberOfVehicles: number;
|
|
290
|
+
riderEmail: string;
|
|
291
|
+
riderId: string;
|
|
292
|
+
riderName: string | null;
|
|
293
|
+
riderPhone: string;
|
|
294
|
+
totalErrands: number;
|
|
295
|
+
totalFuelCost: number;
|
|
296
|
+
totalFuelLiters: number;
|
|
297
|
+
_id: string;
|
|
298
|
+
}[];
|
|
299
|
+
}
|
|
274
300
|
|
|
275
301
|
declare enum ErrandStatus {
|
|
276
302
|
Pending = "pending",
|
|
@@ -597,4 +623,4 @@ declare enum LinkDestination {
|
|
|
597
623
|
}
|
|
598
624
|
type NullOrUndefined = null | undefined;
|
|
599
625
|
|
|
600
|
-
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, errandTimeline };
|
|
626
|
+
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, type RiderStats, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, errandTimeline };
|
package/package.json
CHANGED
package/src/rider.ts
CHANGED
|
@@ -66,6 +66,8 @@ export type VehicleLog = {
|
|
|
66
66
|
note?: string;
|
|
67
67
|
createdAt: string;
|
|
68
68
|
updatedAt: string;
|
|
69
|
+
riderDetails: Rider | null;
|
|
70
|
+
riderUserDetails: User | null;
|
|
69
71
|
};
|
|
70
72
|
|
|
71
73
|
export type VehicleLogWithErrands = VehicleLog & {
|
|
@@ -73,3 +75,29 @@ export type VehicleLogWithErrands = VehicleLog & {
|
|
|
73
75
|
errandsCount: number;
|
|
74
76
|
totalErrandsRevenue: number;
|
|
75
77
|
};
|
|
78
|
+
|
|
79
|
+
export type VehicleLogWithRiderAndErrands = VehicleLogWithErrands & {
|
|
80
|
+
riderDetails: Rider | null;
|
|
81
|
+
riderUserDetails: User | null;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export interface RiderStats {
|
|
85
|
+
totalErrands: number;
|
|
86
|
+
totalFuelCost: number;
|
|
87
|
+
numberOfRefills: number;
|
|
88
|
+
numberOfVehicles: number;
|
|
89
|
+
riderBreakdown: {
|
|
90
|
+
errandsPercentage: number;
|
|
91
|
+
fuelCostPercentage: number;
|
|
92
|
+
numberOfRefills: number;
|
|
93
|
+
numberOfVehicles: number;
|
|
94
|
+
riderEmail: string;
|
|
95
|
+
riderId: string;
|
|
96
|
+
riderName: string | null;
|
|
97
|
+
riderPhone: string;
|
|
98
|
+
totalErrands: number;
|
|
99
|
+
totalFuelCost: number;
|
|
100
|
+
totalFuelLiters: number;
|
|
101
|
+
_id: string;
|
|
102
|
+
}[];
|
|
103
|
+
}
|
package/src/order.ts
DELETED
package/src/property.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export enum PropertyType {
|
|
2
|
-
Flat = 'flat',
|
|
3
|
-
Hostel = 'hostel',
|
|
4
|
-
Office = 'office',
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export enum PropertyPaymentType {
|
|
8
|
-
Rent = 'rent',
|
|
9
|
-
Buy = 'buy',
|
|
10
|
-
ShortLet = 'short-let',
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export enum PropertyMediaType {
|
|
14
|
-
Compound = 'compound',
|
|
15
|
-
BedRoom = 'bedroom',
|
|
16
|
-
BathRoom = 'bathroom',
|
|
17
|
-
Kitchen = 'kitchen',
|
|
18
|
-
Others = 'others',
|
|
19
|
-
}
|