@mydoormot/app-types 1.7.14 → 1.7.15
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 +6 -6
- package/CHANGELOG.md +6 -0
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/package.json +1 -1
- package/src/customer.ts +11 -0
- package/src/rider.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@1.7.
|
|
2
|
+
> @mydoormot/app-types@1.7.14 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
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[32mESM[39m [1mdist/index.js [22m[32m6.17 KB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 136ms
|
|
13
13
|
[32mCJS[39m [1mdist/index.cjs [22m[32m7.84 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 137ms
|
|
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 1414ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m18.13 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m18.13 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -274,6 +274,7 @@ type VehicleLog = {
|
|
|
274
274
|
errandIdsSinceLastRefuel?: string[];
|
|
275
275
|
maintenanceType?: string;
|
|
276
276
|
maintenanceCost?: number;
|
|
277
|
+
vehicleDetails?: Vehicle;
|
|
277
278
|
};
|
|
278
279
|
type VehicleLogWithErrands = VehicleLog & {
|
|
279
280
|
errandsCount?: number;
|
|
@@ -612,6 +613,14 @@ interface BusinessMember {
|
|
|
612
613
|
updatedAt: string | NullOrUndefined;
|
|
613
614
|
}
|
|
614
615
|
|
|
616
|
+
interface CustomerTransactionStats {
|
|
617
|
+
totalSaleCount: number;
|
|
618
|
+
totalSaleAmount: number;
|
|
619
|
+
totalExpenseCount: number;
|
|
620
|
+
totalExpenseAmount: number;
|
|
621
|
+
lastTransactionDate: string | null;
|
|
622
|
+
updatedAt: string;
|
|
623
|
+
}
|
|
615
624
|
interface Customer {
|
|
616
625
|
id: string;
|
|
617
626
|
businessId: string;
|
|
@@ -623,6 +632,7 @@ interface Customer {
|
|
|
623
632
|
createdAt: string;
|
|
624
633
|
updatedAt: string;
|
|
625
634
|
customerBusinessId?: string;
|
|
635
|
+
transactionStats?: CustomerTransactionStats;
|
|
626
636
|
}
|
|
627
637
|
|
|
628
638
|
type TransactionType = 'sale' | 'expense';
|
|
@@ -710,4 +720,4 @@ declare enum LinkDestination {
|
|
|
710
720
|
}
|
|
711
721
|
type NullOrUndefined = null | undefined;
|
|
712
722
|
|
|
713
|
-
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
|
723
|
+
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, type CustomerTransactionStats, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
package/dist/index.d.ts
CHANGED
|
@@ -274,6 +274,7 @@ type VehicleLog = {
|
|
|
274
274
|
errandIdsSinceLastRefuel?: string[];
|
|
275
275
|
maintenanceType?: string;
|
|
276
276
|
maintenanceCost?: number;
|
|
277
|
+
vehicleDetails?: Vehicle;
|
|
277
278
|
};
|
|
278
279
|
type VehicleLogWithErrands = VehicleLog & {
|
|
279
280
|
errandsCount?: number;
|
|
@@ -612,6 +613,14 @@ interface BusinessMember {
|
|
|
612
613
|
updatedAt: string | NullOrUndefined;
|
|
613
614
|
}
|
|
614
615
|
|
|
616
|
+
interface CustomerTransactionStats {
|
|
617
|
+
totalSaleCount: number;
|
|
618
|
+
totalSaleAmount: number;
|
|
619
|
+
totalExpenseCount: number;
|
|
620
|
+
totalExpenseAmount: number;
|
|
621
|
+
lastTransactionDate: string | null;
|
|
622
|
+
updatedAt: string;
|
|
623
|
+
}
|
|
615
624
|
interface Customer {
|
|
616
625
|
id: string;
|
|
617
626
|
businessId: string;
|
|
@@ -623,6 +632,7 @@ interface Customer {
|
|
|
623
632
|
createdAt: string;
|
|
624
633
|
updatedAt: string;
|
|
625
634
|
customerBusinessId?: string;
|
|
635
|
+
transactionStats?: CustomerTransactionStats;
|
|
626
636
|
}
|
|
627
637
|
|
|
628
638
|
type TransactionType = 'sale' | 'expense';
|
|
@@ -710,4 +720,4 @@ declare enum LinkDestination {
|
|
|
710
720
|
}
|
|
711
721
|
type NullOrUndefined = null | undefined;
|
|
712
722
|
|
|
713
|
-
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
|
723
|
+
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, type CustomerTransactionStats, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
package/package.json
CHANGED
package/src/customer.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
// import { Business, City, State } from '.';
|
|
2
2
|
|
|
3
|
+
export interface CustomerTransactionStats {
|
|
4
|
+
totalSaleCount: number;
|
|
5
|
+
totalSaleAmount: number;
|
|
6
|
+
totalExpenseCount: number;
|
|
7
|
+
totalExpenseAmount: number;
|
|
8
|
+
lastTransactionDate: string | null;
|
|
9
|
+
updatedAt: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
3
12
|
export interface Customer {
|
|
4
13
|
id: string;
|
|
5
14
|
businessId: string;
|
|
@@ -13,6 +22,8 @@ export interface Customer {
|
|
|
13
22
|
|
|
14
23
|
customerBusinessId?: string;
|
|
15
24
|
|
|
25
|
+
transactionStats?: CustomerTransactionStats;
|
|
26
|
+
|
|
16
27
|
// From aggregation
|
|
17
28
|
// errandsCount?: number;
|
|
18
29
|
// city?: City;
|