@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.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +12 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/rider.ts +1 -0
- package/src/transaction.ts +4 -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.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
|
[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 263ms
|
|
13
11
|
[32mESM[39m [1mdist/index.js [22m[32m6.17 KB[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 106ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m7.84 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 107ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m18.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m18.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 2099ms
|
|
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
|
@@ -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
package/src/rider.ts
CHANGED
package/src/transaction.ts
CHANGED
|
@@ -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 {
|