@mydoormot/app-types 1.7.10 → 1.7.11

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @mydoormot/app-types@1.7.9 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.7.10 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,10 +9,10 @@
9
9
  ESM Build start
10
10
  CJS Build start
11
11
  CJS dist/index.cjs 7.84 KB
12
- CJS ⚡️ Build success in 161ms
12
+ CJS ⚡️ Build success in 263ms
13
13
  ESM dist/index.js 6.17 KB
14
- ESM ⚡️ Build success in 161ms
14
+ ESM ⚡️ Build success in 264ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 679ms
17
- DTS dist/index.d.ts 17.87 KB
18
- DTS dist/index.d.cts 17.87 KB
16
+ DTS ⚡️ Build success in 1001ms
17
+ DTS dist/index.d.ts 18.04 KB
18
+ DTS dist/index.d.cts 18.04 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified customer type
8
+
3
9
  ## 1.7.10
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -622,18 +622,24 @@ interface BusinessMember {
622
622
 
623
623
  interface Customer {
624
624
  id: string;
625
- businessId: string | Business;
625
+ businessId: string;
626
626
  phoneNumber: string;
627
627
  fullName: string;
628
628
  cityId: string;
629
629
  address: string;
630
630
  landmark?: string;
631
- errandsCount?: number;
632
- city?: City;
633
- state?: State;
631
+ createdAt: string;
632
+ updatedAt: string;
633
+ customerBusinessId?: string;
634
634
  }
635
635
 
636
636
  type TransactionType = 'sale' | 'expense';
637
+ interface TransactionItem {
638
+ name: string;
639
+ quantity: number;
640
+ unitPrice: number;
641
+ totalPrice: number;
642
+ }
637
643
  interface Transaction {
638
644
  id: string;
639
645
  type: TransactionType;
@@ -645,6 +651,7 @@ interface Transaction {
645
651
  userId: string;
646
652
  businessId?: string;
647
653
  categoryId?: string;
654
+ items?: TransactionItem[];
648
655
  }
649
656
  interface TransactionCategory {
650
657
  id: string;
@@ -709,4 +716,4 @@ declare enum LinkDestination {
709
716
  }
710
717
  type NullOrUndefined = null | undefined;
711
718
 
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 };
719
+ 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
@@ -622,18 +622,24 @@ interface BusinessMember {
622
622
 
623
623
  interface Customer {
624
624
  id: string;
625
- businessId: string | Business;
625
+ businessId: string;
626
626
  phoneNumber: string;
627
627
  fullName: string;
628
628
  cityId: string;
629
629
  address: string;
630
630
  landmark?: string;
631
- errandsCount?: number;
632
- city?: City;
633
- state?: State;
631
+ createdAt: string;
632
+ updatedAt: string;
633
+ customerBusinessId?: string;
634
634
  }
635
635
 
636
636
  type TransactionType = 'sale' | 'expense';
637
+ interface TransactionItem {
638
+ name: string;
639
+ quantity: number;
640
+ unitPrice: number;
641
+ totalPrice: number;
642
+ }
637
643
  interface Transaction {
638
644
  id: string;
639
645
  type: TransactionType;
@@ -645,6 +651,7 @@ interface Transaction {
645
651
  userId: string;
646
652
  businessId?: string;
647
653
  categoryId?: string;
654
+ items?: TransactionItem[];
648
655
  }
649
656
  interface TransactionCategory {
650
657
  id: string;
@@ -709,4 +716,4 @@ declare enum LinkDestination {
709
716
  }
710
717
  type NullOrUndefined = null | undefined;
711
718
 
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 };
719
+ 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.7.10",
3
+ "version": "1.7.11",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
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 | Business;
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
  }
@@ -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 {