@mydoormot/app-types 1.5.0 → 1.5.1
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 +6 -0
- package/dist/index.d.cts +17 -6
- package/dist/index.d.ts +17 -6
- package/package.json +1 -1
- package/src/transaction.ts +18 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@1.
|
|
2
|
+
> @mydoormot/app-types@1.5.0 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
|
-
[32mESM[39m [1mdist/index.js [22m[32m5.14 KB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in 64ms
|
|
13
11
|
[32mCJS[39m [1mdist/index.cjs [22m[32m6.67 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 93ms
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m5.14 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 93ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m13.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m13.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 1513ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m13.71 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m13.71 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -513,9 +513,9 @@ interface Transaction {
|
|
|
513
513
|
type: TransactionType;
|
|
514
514
|
amount: number;
|
|
515
515
|
description: string;
|
|
516
|
-
transactionDate: string;
|
|
517
|
-
createdAt:
|
|
518
|
-
updatedAt:
|
|
516
|
+
transactionDate: string | Date;
|
|
517
|
+
createdAt: string | Date;
|
|
518
|
+
updatedAt: string | Date;
|
|
519
519
|
userId: string;
|
|
520
520
|
businessId?: string;
|
|
521
521
|
categoryId?: string;
|
|
@@ -523,11 +523,22 @@ interface Transaction {
|
|
|
523
523
|
interface TransactionCategory {
|
|
524
524
|
id: string;
|
|
525
525
|
name: string;
|
|
526
|
-
createdAt:
|
|
527
|
-
updatedAt:
|
|
526
|
+
createdAt: string | Date;
|
|
527
|
+
updatedAt: string | Date;
|
|
528
528
|
colorCode?: string;
|
|
529
529
|
businessId?: string;
|
|
530
530
|
}
|
|
531
|
+
interface TransactionWithJoin extends Transaction {
|
|
532
|
+
categoryId?: string;
|
|
533
|
+
categoryName?: string;
|
|
534
|
+
categoryColorCode?: string;
|
|
535
|
+
categoryBusinessId?: string;
|
|
536
|
+
categoryCreatedAt?: string | Date;
|
|
537
|
+
categoryUpdatedAt?: string | Date;
|
|
538
|
+
}
|
|
539
|
+
interface TransactionWithCategory extends Transaction {
|
|
540
|
+
category: TransactionCategory;
|
|
541
|
+
}
|
|
531
542
|
|
|
532
543
|
interface PaginateResult<T> {
|
|
533
544
|
docs: T[];
|
|
@@ -551,4 +562,4 @@ declare enum LinkDestination {
|
|
|
551
562
|
}
|
|
552
563
|
type NullOrUndefined = null | undefined;
|
|
553
564
|
|
|
554
|
-
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, 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 User, type UserAddress, type Vehicle, VehicleType, errandTimeline };
|
|
565
|
+
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, 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, VehicleType, errandTimeline };
|
package/dist/index.d.ts
CHANGED
|
@@ -513,9 +513,9 @@ interface Transaction {
|
|
|
513
513
|
type: TransactionType;
|
|
514
514
|
amount: number;
|
|
515
515
|
description: string;
|
|
516
|
-
transactionDate: string;
|
|
517
|
-
createdAt:
|
|
518
|
-
updatedAt:
|
|
516
|
+
transactionDate: string | Date;
|
|
517
|
+
createdAt: string | Date;
|
|
518
|
+
updatedAt: string | Date;
|
|
519
519
|
userId: string;
|
|
520
520
|
businessId?: string;
|
|
521
521
|
categoryId?: string;
|
|
@@ -523,11 +523,22 @@ interface Transaction {
|
|
|
523
523
|
interface TransactionCategory {
|
|
524
524
|
id: string;
|
|
525
525
|
name: string;
|
|
526
|
-
createdAt:
|
|
527
|
-
updatedAt:
|
|
526
|
+
createdAt: string | Date;
|
|
527
|
+
updatedAt: string | Date;
|
|
528
528
|
colorCode?: string;
|
|
529
529
|
businessId?: string;
|
|
530
530
|
}
|
|
531
|
+
interface TransactionWithJoin extends Transaction {
|
|
532
|
+
categoryId?: string;
|
|
533
|
+
categoryName?: string;
|
|
534
|
+
categoryColorCode?: string;
|
|
535
|
+
categoryBusinessId?: string;
|
|
536
|
+
categoryCreatedAt?: string | Date;
|
|
537
|
+
categoryUpdatedAt?: string | Date;
|
|
538
|
+
}
|
|
539
|
+
interface TransactionWithCategory extends Transaction {
|
|
540
|
+
category: TransactionCategory;
|
|
541
|
+
}
|
|
531
542
|
|
|
532
543
|
interface PaginateResult<T> {
|
|
533
544
|
docs: T[];
|
|
@@ -551,4 +562,4 @@ declare enum LinkDestination {
|
|
|
551
562
|
}
|
|
552
563
|
type NullOrUndefined = null | undefined;
|
|
553
564
|
|
|
554
|
-
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, 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 User, type UserAddress, type Vehicle, VehicleType, errandTimeline };
|
|
565
|
+
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, 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, VehicleType, errandTimeline };
|
package/package.json
CHANGED
package/src/transaction.ts
CHANGED
|
@@ -5,9 +5,9 @@ export interface Transaction {
|
|
|
5
5
|
type: TransactionType;
|
|
6
6
|
amount: number;
|
|
7
7
|
description: string;
|
|
8
|
-
transactionDate: string;
|
|
9
|
-
createdAt:
|
|
10
|
-
updatedAt:
|
|
8
|
+
transactionDate: string | Date;
|
|
9
|
+
createdAt: string | Date;
|
|
10
|
+
updatedAt: string | Date;
|
|
11
11
|
userId: string;
|
|
12
12
|
businessId?: string;
|
|
13
13
|
categoryId?: string;
|
|
@@ -16,8 +16,21 @@ export interface Transaction {
|
|
|
16
16
|
export interface TransactionCategory {
|
|
17
17
|
id: string;
|
|
18
18
|
name: string;
|
|
19
|
-
createdAt:
|
|
20
|
-
updatedAt:
|
|
19
|
+
createdAt: string | Date;
|
|
20
|
+
updatedAt: string | Date;
|
|
21
21
|
colorCode?: string;
|
|
22
22
|
businessId?: string;
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
export interface TransactionWithJoin extends Transaction {
|
|
26
|
+
categoryId?: string;
|
|
27
|
+
categoryName?: string;
|
|
28
|
+
categoryColorCode?: string;
|
|
29
|
+
categoryBusinessId?: string;
|
|
30
|
+
categoryCreatedAt?: string | Date;
|
|
31
|
+
categoryUpdatedAt?: string | Date;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface TransactionWithCategory extends Transaction {
|
|
35
|
+
category: TransactionCategory;
|
|
36
|
+
}
|