@mydoormot/app-types 1.3.5 → 1.4.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 +4 -4
- package/CHANGELOG.md +12 -0
- package/dist/index.d.cts +14 -1
- package/package.json +1 -1
- package/src/customer.ts +16 -0
- package/src/index.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@1.
|
|
2
|
+
> @mydoormot/app-types@1.4.0 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
|
|
3
3
|
> tsup src/index.ts --format cjs --dts
|
|
4
4
|
|
|
5
5
|
CLI Building entry: src/index.ts
|
|
@@ -8,7 +8,7 @@ CLI tsup v7.2.0
|
|
|
8
8
|
CLI Target: es2021
|
|
9
9
|
CJS Build start
|
|
10
10
|
CJS dist/index.cjs 6.10 KB
|
|
11
|
-
CJS ⚡️ Build success in
|
|
11
|
+
CJS ⚡️ Build success in 77ms
|
|
12
12
|
DTS Build start
|
|
13
|
-
DTS ⚡️ Build success in
|
|
14
|
-
DTS dist/index.d.cts 11.
|
|
13
|
+
DTS ⚡️ Build success in 578ms
|
|
14
|
+
DTS dist/index.d.cts 11.79 KB
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -461,6 +461,19 @@ interface BusinessCategory {
|
|
|
461
461
|
updatedAt: string;
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
+
interface Customer {
|
|
465
|
+
id: string;
|
|
466
|
+
businessId: string | Business;
|
|
467
|
+
phoneNumber: string;
|
|
468
|
+
fullName: string;
|
|
469
|
+
cityId: string;
|
|
470
|
+
address: string;
|
|
471
|
+
landmark?: string;
|
|
472
|
+
errandsCount?: number;
|
|
473
|
+
city?: City;
|
|
474
|
+
state?: State;
|
|
475
|
+
}
|
|
476
|
+
|
|
464
477
|
interface PaginateResult<T> {
|
|
465
478
|
docs: T[];
|
|
466
479
|
totalDocs: number;
|
|
@@ -483,4 +496,4 @@ declare enum LinkDestination {
|
|
|
483
496
|
}
|
|
484
497
|
type NullOrUndefined = null | undefined;
|
|
485
498
|
|
|
486
|
-
export { AddressDetails, AddressTypes, AggregatedErrand, AuthType, Business, BusinessCategory, City, Coupon, DeliveryStatus, Enterprise, EnterpriseCategoryDoc, EnterpriseSubCategoryDoc, EnterpriseType, Errand, ErrandRating, ErrandStatus, ErrandTimeline, Invoice, InvoiceStatus, LatLng, LinkDestination, Notification, NotificationData, NotificationType, NullOrUndefined, PaginateResult, ParcelSize, PaymentOptions, PendingErrand, Rider, RoleType, State, User, UserAddress, Vehicle, VehicleType, errandTimeline };
|
|
499
|
+
export { AddressDetails, AddressTypes, AggregatedErrand, AuthType, Business, BusinessCategory, City, Coupon, Customer, DeliveryStatus, Enterprise, EnterpriseCategoryDoc, EnterpriseSubCategoryDoc, EnterpriseType, Errand, ErrandRating, ErrandStatus, ErrandTimeline, Invoice, InvoiceStatus, LatLng, LinkDestination, Notification, NotificationData, NotificationType, NullOrUndefined, PaginateResult, ParcelSize, PaymentOptions, PendingErrand, Rider, RoleType, State, User, UserAddress, Vehicle, VehicleType, errandTimeline };
|
package/package.json
CHANGED
package/src/customer.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Business, City, State } from '.';
|
|
2
|
+
|
|
3
|
+
export interface Customer {
|
|
4
|
+
id: string;
|
|
5
|
+
businessId: string | Business;
|
|
6
|
+
phoneNumber: string;
|
|
7
|
+
fullName: string;
|
|
8
|
+
cityId: string;
|
|
9
|
+
address: string;
|
|
10
|
+
landmark?: string;
|
|
11
|
+
|
|
12
|
+
// From aggregation
|
|
13
|
+
errandsCount?: number;
|
|
14
|
+
city?: City;
|
|
15
|
+
state?: State;
|
|
16
|
+
}
|
package/src/index.ts
CHANGED