@mydoormot/app-types 1.7.10 → 1.7.12
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 +13 -5
- package/dist/index.d.ts +13 -5
- package/package.json +1 -1
- package/src/customer.ts +9 -5
- package/src/rider.ts +1 -0
- package/src/transaction.ts +8 -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.11 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[32m7.84 KB[39m
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in 161ms
|
|
13
11
|
[32mESM[39m [1mdist/index.js [22m[32m6.17 KB[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 254ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m7.84 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 255ms
|
|
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 718ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m18.08 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m18.08 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -277,6 +277,7 @@ type VehicleLog = {
|
|
|
277
277
|
updatedAt: string;
|
|
278
278
|
riderDetails: Rider | null;
|
|
279
279
|
riderUserDetails: User | null;
|
|
280
|
+
vehicleDetails: Vehicle | null;
|
|
280
281
|
};
|
|
281
282
|
type VehicleLogWithErrands = VehicleLog & {
|
|
282
283
|
errands: Errand[];
|
|
@@ -622,18 +623,24 @@ interface BusinessMember {
|
|
|
622
623
|
|
|
623
624
|
interface Customer {
|
|
624
625
|
id: string;
|
|
625
|
-
businessId: string
|
|
626
|
+
businessId: string;
|
|
626
627
|
phoneNumber: string;
|
|
627
628
|
fullName: string;
|
|
628
629
|
cityId: string;
|
|
629
630
|
address: string;
|
|
630
631
|
landmark?: string;
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
632
|
+
createdAt: string;
|
|
633
|
+
updatedAt: string;
|
|
634
|
+
customerBusinessId?: string;
|
|
634
635
|
}
|
|
635
636
|
|
|
636
637
|
type TransactionType = 'sale' | 'expense';
|
|
638
|
+
interface TransactionItem {
|
|
639
|
+
name: string;
|
|
640
|
+
quantity: number;
|
|
641
|
+
unitPrice: number;
|
|
642
|
+
totalPrice: number;
|
|
643
|
+
}
|
|
637
644
|
interface Transaction {
|
|
638
645
|
id: string;
|
|
639
646
|
type: TransactionType;
|
|
@@ -645,6 +652,7 @@ interface Transaction {
|
|
|
645
652
|
userId: string;
|
|
646
653
|
businessId?: string;
|
|
647
654
|
categoryId?: string;
|
|
655
|
+
items?: TransactionItem[];
|
|
648
656
|
}
|
|
649
657
|
interface TransactionCategory {
|
|
650
658
|
id: string;
|
|
@@ -709,4 +717,4 @@ declare enum LinkDestination {
|
|
|
709
717
|
}
|
|
710
718
|
type NullOrUndefined = null | undefined;
|
|
711
719
|
|
|
712
|
-
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 TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
|
720
|
+
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, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
package/dist/index.d.ts
CHANGED
|
@@ -277,6 +277,7 @@ type VehicleLog = {
|
|
|
277
277
|
updatedAt: string;
|
|
278
278
|
riderDetails: Rider | null;
|
|
279
279
|
riderUserDetails: User | null;
|
|
280
|
+
vehicleDetails: Vehicle | null;
|
|
280
281
|
};
|
|
281
282
|
type VehicleLogWithErrands = VehicleLog & {
|
|
282
283
|
errands: Errand[];
|
|
@@ -622,18 +623,24 @@ interface BusinessMember {
|
|
|
622
623
|
|
|
623
624
|
interface Customer {
|
|
624
625
|
id: string;
|
|
625
|
-
businessId: string
|
|
626
|
+
businessId: string;
|
|
626
627
|
phoneNumber: string;
|
|
627
628
|
fullName: string;
|
|
628
629
|
cityId: string;
|
|
629
630
|
address: string;
|
|
630
631
|
landmark?: string;
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
632
|
+
createdAt: string;
|
|
633
|
+
updatedAt: string;
|
|
634
|
+
customerBusinessId?: string;
|
|
634
635
|
}
|
|
635
636
|
|
|
636
637
|
type TransactionType = 'sale' | 'expense';
|
|
638
|
+
interface TransactionItem {
|
|
639
|
+
name: string;
|
|
640
|
+
quantity: number;
|
|
641
|
+
unitPrice: number;
|
|
642
|
+
totalPrice: number;
|
|
643
|
+
}
|
|
637
644
|
interface Transaction {
|
|
638
645
|
id: string;
|
|
639
646
|
type: TransactionType;
|
|
@@ -645,6 +652,7 @@ interface Transaction {
|
|
|
645
652
|
userId: string;
|
|
646
653
|
businessId?: string;
|
|
647
654
|
categoryId?: string;
|
|
655
|
+
items?: TransactionItem[];
|
|
648
656
|
}
|
|
649
657
|
interface TransactionCategory {
|
|
650
658
|
id: string;
|
|
@@ -709,4 +717,4 @@ declare enum LinkDestination {
|
|
|
709
717
|
}
|
|
710
718
|
type NullOrUndefined = null | undefined;
|
|
711
719
|
|
|
712
|
-
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 TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
|
720
|
+
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, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
package/package.json
CHANGED
package/src/customer.ts
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { Business, City, State } from '.';
|
|
1
|
+
// import { Business, City, State } from '.';
|
|
2
2
|
|
|
3
3
|
export interface Customer {
|
|
4
4
|
id: string;
|
|
5
|
-
businessId: string
|
|
5
|
+
businessId: string;
|
|
6
6
|
phoneNumber: string;
|
|
7
7
|
fullName: string;
|
|
8
8
|
cityId: string;
|
|
9
9
|
address: string;
|
|
10
10
|
landmark?: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
|
|
14
|
+
customerBusinessId?: string;
|
|
11
15
|
|
|
12
16
|
// From aggregation
|
|
13
|
-
errandsCount?: number;
|
|
14
|
-
city?: City;
|
|
15
|
-
state?: State;
|
|
17
|
+
// errandsCount?: number;
|
|
18
|
+
// city?: City;
|
|
19
|
+
// state?: State;
|
|
16
20
|
}
|
package/src/rider.ts
CHANGED
package/src/transaction.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export type TransactionType = 'sale' | 'expense';
|
|
2
2
|
|
|
3
|
+
export interface TransactionItem {
|
|
4
|
+
name: string;
|
|
5
|
+
quantity: number;
|
|
6
|
+
unitPrice: number;
|
|
7
|
+
totalPrice: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
3
10
|
export interface Transaction {
|
|
4
11
|
id: string;
|
|
5
12
|
type: TransactionType;
|
|
@@ -11,6 +18,7 @@ export interface Transaction {
|
|
|
11
18
|
userId: string;
|
|
12
19
|
businessId?: string;
|
|
13
20
|
categoryId?: string;
|
|
21
|
+
items?: TransactionItem[];
|
|
14
22
|
}
|
|
15
23
|
|
|
16
24
|
export interface TransactionCategory {
|