@mydoormot/app-types 1.7.11 → 1.7.13

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.10 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.7.12 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
@@ -8,11 +8,11 @@
8
8
  CLI Target: es2021
9
9
  ESM Build start
10
10
  CJS Build start
11
- CJS dist/index.cjs 7.84 KB
12
- CJS ⚡️ Build success in 263ms
13
11
  ESM dist/index.js 6.17 KB
14
- ESM ⚡️ Build success in 264ms
12
+ ESM ⚡️ Build success in 106ms
13
+ CJS dist/index.cjs 7.84 KB
14
+ CJS ⚡️ Build success in 107ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 1001ms
17
- DTS dist/index.d.ts 18.04 KB
18
- DTS dist/index.d.cts 18.04 KB
16
+ DTS ⚡️ Build success in 2099ms
17
+ DTS dist/index.d.ts 18.13 KB
18
+ DTS dist/index.d.cts 18.13 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Added customer details to transactions
8
+
9
+ ## 1.7.12
10
+
11
+ ### Patch Changes
12
+
13
+ - Added vehicle details
14
+
3
15
  ## 1.7.11
4
16
 
5
17
  ### Patch Changes
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[];
@@ -651,7 +652,9 @@ interface Transaction {
651
652
  userId: string;
652
653
  businessId?: string;
653
654
  categoryId?: string;
655
+ customerId?: string;
654
656
  items?: TransactionItem[];
657
+ customerDetails?: Customer;
655
658
  }
656
659
  interface TransactionCategory {
657
660
  id: string;
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[];
@@ -651,7 +652,9 @@ interface Transaction {
651
652
  userId: string;
652
653
  businessId?: string;
653
654
  categoryId?: string;
655
+ customerId?: string;
654
656
  items?: TransactionItem[];
657
+ customerDetails?: Customer;
655
658
  }
656
659
  interface TransactionCategory {
657
660
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.7.11",
3
+ "version": "1.7.13",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/rider.ts CHANGED
@@ -73,6 +73,7 @@ export type VehicleLog = {
73
73
  updatedAt: string;
74
74
  riderDetails: Rider | null;
75
75
  riderUserDetails: User | null;
76
+ vehicleDetails: Vehicle | null;
76
77
  };
77
78
 
78
79
  export type VehicleLogWithErrands = VehicleLog & {
@@ -1,3 +1,5 @@
1
+ import { Customer } from './customer';
2
+
1
3
  export type TransactionType = 'sale' | 'expense';
2
4
 
3
5
  export interface TransactionItem {
@@ -18,7 +20,9 @@ export interface Transaction {
18
20
  userId: string;
19
21
  businessId?: string;
20
22
  categoryId?: string;
23
+ customerId?: string;
21
24
  items?: TransactionItem[];
25
+ customerDetails?: Customer;
22
26
  }
23
27
 
24
28
  export interface TransactionCategory {