@mydoormot/app-types 1.6.0 → 1.6.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 +7 -7
- package/CHANGELOG.md +12 -0
- package/dist/index.d.cts +22 -21
- package/dist/index.d.ts +22 -21
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/rider.ts +0 -21
- package/src/stat.ts +20 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@1.
|
|
2
|
+
> @mydoormot/app-types@1.6.1 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[32m5.37 KB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in 153ms
|
|
13
11
|
[32mCJS[39m [1mdist/index.cjs [22m[32m6.93 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 46ms
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m5.37 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 47ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m15.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m15.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 581ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m15.45 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m15.45 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -277,26 +277,6 @@ type VehicleLogWithRiderAndErrands = VehicleLogWithErrands & {
|
|
|
277
277
|
riderDetails: Rider | null;
|
|
278
278
|
riderUserDetails: User | null;
|
|
279
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
|
-
}
|
|
300
280
|
|
|
301
281
|
declare enum ErrandStatus {
|
|
302
282
|
Pending = "pending",
|
|
@@ -601,6 +581,27 @@ interface TransactionWithCategory extends Transaction {
|
|
|
601
581
|
category: TransactionCategory;
|
|
602
582
|
}
|
|
603
583
|
|
|
584
|
+
interface VehicleLogStatsSummary {
|
|
585
|
+
totalErrands: number;
|
|
586
|
+
totalFuelCost: number;
|
|
587
|
+
numberOfRefills: number;
|
|
588
|
+
numberOfVehicles: number;
|
|
589
|
+
riderBreakdown: {
|
|
590
|
+
errandsPercentage: number;
|
|
591
|
+
fuelCostPercentage: number;
|
|
592
|
+
numberOfRefills: number;
|
|
593
|
+
numberOfVehicles: number;
|
|
594
|
+
riderEmail: string;
|
|
595
|
+
riderId: string;
|
|
596
|
+
riderName: string | null;
|
|
597
|
+
riderPhone: string;
|
|
598
|
+
totalErrands: number;
|
|
599
|
+
totalFuelCost: number;
|
|
600
|
+
totalFuelLiters: number;
|
|
601
|
+
_id: string;
|
|
602
|
+
}[];
|
|
603
|
+
}
|
|
604
|
+
|
|
604
605
|
interface PaginateResult<T> {
|
|
605
606
|
docs: T[];
|
|
606
607
|
totalDocs: number;
|
|
@@ -623,4 +624,4 @@ declare enum LinkDestination {
|
|
|
623
624
|
}
|
|
624
625
|
type NullOrUndefined = null | undefined;
|
|
625
626
|
|
|
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,
|
|
627
|
+
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, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, errandTimeline };
|
package/dist/index.d.ts
CHANGED
|
@@ -277,26 +277,6 @@ type VehicleLogWithRiderAndErrands = VehicleLogWithErrands & {
|
|
|
277
277
|
riderDetails: Rider | null;
|
|
278
278
|
riderUserDetails: User | null;
|
|
279
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
|
-
}
|
|
300
280
|
|
|
301
281
|
declare enum ErrandStatus {
|
|
302
282
|
Pending = "pending",
|
|
@@ -601,6 +581,27 @@ interface TransactionWithCategory extends Transaction {
|
|
|
601
581
|
category: TransactionCategory;
|
|
602
582
|
}
|
|
603
583
|
|
|
584
|
+
interface VehicleLogStatsSummary {
|
|
585
|
+
totalErrands: number;
|
|
586
|
+
totalFuelCost: number;
|
|
587
|
+
numberOfRefills: number;
|
|
588
|
+
numberOfVehicles: number;
|
|
589
|
+
riderBreakdown: {
|
|
590
|
+
errandsPercentage: number;
|
|
591
|
+
fuelCostPercentage: number;
|
|
592
|
+
numberOfRefills: number;
|
|
593
|
+
numberOfVehicles: number;
|
|
594
|
+
riderEmail: string;
|
|
595
|
+
riderId: string;
|
|
596
|
+
riderName: string | null;
|
|
597
|
+
riderPhone: string;
|
|
598
|
+
totalErrands: number;
|
|
599
|
+
totalFuelCost: number;
|
|
600
|
+
totalFuelLiters: number;
|
|
601
|
+
_id: string;
|
|
602
|
+
}[];
|
|
603
|
+
}
|
|
604
|
+
|
|
604
605
|
interface PaginateResult<T> {
|
|
605
606
|
docs: T[];
|
|
606
607
|
totalDocs: number;
|
|
@@ -623,4 +624,4 @@ declare enum LinkDestination {
|
|
|
623
624
|
}
|
|
624
625
|
type NullOrUndefined = null | undefined;
|
|
625
626
|
|
|
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,
|
|
627
|
+
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, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, errandTimeline };
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/rider.ts
CHANGED
|
@@ -80,24 +80,3 @@ export type VehicleLogWithRiderAndErrands = VehicleLogWithErrands & {
|
|
|
80
80
|
riderDetails: Rider | null;
|
|
81
81
|
riderUserDetails: User | null;
|
|
82
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/stat.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface VehicleLogStatsSummary {
|
|
2
|
+
totalErrands: number;
|
|
3
|
+
totalFuelCost: number;
|
|
4
|
+
numberOfRefills: number;
|
|
5
|
+
numberOfVehicles: number;
|
|
6
|
+
riderBreakdown: {
|
|
7
|
+
errandsPercentage: number;
|
|
8
|
+
fuelCostPercentage: number;
|
|
9
|
+
numberOfRefills: number;
|
|
10
|
+
numberOfVehicles: number;
|
|
11
|
+
riderEmail: string;
|
|
12
|
+
riderId: string;
|
|
13
|
+
riderName: string | null;
|
|
14
|
+
riderPhone: string;
|
|
15
|
+
totalErrands: number;
|
|
16
|
+
totalFuelCost: number;
|
|
17
|
+
totalFuelLiters: number;
|
|
18
|
+
_id: string;
|
|
19
|
+
}[];
|
|
20
|
+
}
|