@mydoormot/app-types 1.6.5 → 1.7.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 +6 -6
- package/CHANGELOG.md +12 -0
- package/dist/index.d.cts +37 -1
- package/dist/index.d.ts +37 -1
- package/package.json +1 -1
- package/src/business.ts +8 -0
- package/src/errand.ts +35 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@1.
|
|
2
|
+
> @mydoormot/app-types@1.7.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
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[32mESM[39m [1mdist/index.js [22m[32m5.37 KB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 196ms
|
|
13
13
|
[32mCJS[39m [1mdist/index.cjs [22m[32m6.93 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 196ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 977ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m16.87 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m16.87 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -478,9 +478,38 @@ type AddressDetails = {
|
|
|
478
478
|
coordinates: number[];
|
|
479
479
|
};
|
|
480
480
|
mobileNumber?: string;
|
|
481
|
+
alternateMobileNumber?: string;
|
|
481
482
|
landmark?: string;
|
|
482
483
|
addressId?: string;
|
|
483
484
|
};
|
|
485
|
+
interface ErrandReviewLink {
|
|
486
|
+
id: string;
|
|
487
|
+
errandId: string;
|
|
488
|
+
phoneNumber: string;
|
|
489
|
+
token: string;
|
|
490
|
+
expiresAt: string;
|
|
491
|
+
isUsed: boolean;
|
|
492
|
+
usedAt: string;
|
|
493
|
+
createdBy: string;
|
|
494
|
+
createdAt: string;
|
|
495
|
+
}
|
|
496
|
+
type ErrandDeliveryTiming = 'early' | 'on_time' | 'late';
|
|
497
|
+
type ErrandPackagingQuality = 'excellent' | 'average' | 'poor';
|
|
498
|
+
type ErrandRiderBehavior = 'outstanding' | 'acceptable' | 'unsatisfactory';
|
|
499
|
+
interface ErrandReview {
|
|
500
|
+
id: string;
|
|
501
|
+
errandId: string;
|
|
502
|
+
riderId: string;
|
|
503
|
+
reviewText: string;
|
|
504
|
+
rating: number;
|
|
505
|
+
deliveryTiming: ErrandDeliveryTiming;
|
|
506
|
+
packagingQuality: ErrandPackagingQuality;
|
|
507
|
+
riderBehavior: ErrandRiderBehavior;
|
|
508
|
+
reviewerMobile: string;
|
|
509
|
+
reviewerType: 'creator' | 'recipient';
|
|
510
|
+
createdAt: string;
|
|
511
|
+
updatedAt: string;
|
|
512
|
+
}
|
|
484
513
|
|
|
485
514
|
declare enum NotificationType {
|
|
486
515
|
Errand = "errand",
|
|
@@ -549,6 +578,13 @@ interface BusinessCategory {
|
|
|
549
578
|
createdAt: string;
|
|
550
579
|
updatedAt: string;
|
|
551
580
|
}
|
|
581
|
+
interface Vendor {
|
|
582
|
+
id: string;
|
|
583
|
+
name: string;
|
|
584
|
+
handle: string;
|
|
585
|
+
businessId: string;
|
|
586
|
+
logo?: string;
|
|
587
|
+
}
|
|
552
588
|
|
|
553
589
|
interface Customer {
|
|
554
590
|
id: string;
|
|
@@ -639,4 +675,4 @@ declare enum LinkDestination {
|
|
|
639
675
|
}
|
|
640
676
|
type NullOrUndefined = null | undefined;
|
|
641
677
|
|
|
642
|
-
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, 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, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, errandTimeline };
|
|
678
|
+
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, 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, 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, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
package/dist/index.d.ts
CHANGED
|
@@ -478,9 +478,38 @@ type AddressDetails = {
|
|
|
478
478
|
coordinates: number[];
|
|
479
479
|
};
|
|
480
480
|
mobileNumber?: string;
|
|
481
|
+
alternateMobileNumber?: string;
|
|
481
482
|
landmark?: string;
|
|
482
483
|
addressId?: string;
|
|
483
484
|
};
|
|
485
|
+
interface ErrandReviewLink {
|
|
486
|
+
id: string;
|
|
487
|
+
errandId: string;
|
|
488
|
+
phoneNumber: string;
|
|
489
|
+
token: string;
|
|
490
|
+
expiresAt: string;
|
|
491
|
+
isUsed: boolean;
|
|
492
|
+
usedAt: string;
|
|
493
|
+
createdBy: string;
|
|
494
|
+
createdAt: string;
|
|
495
|
+
}
|
|
496
|
+
type ErrandDeliveryTiming = 'early' | 'on_time' | 'late';
|
|
497
|
+
type ErrandPackagingQuality = 'excellent' | 'average' | 'poor';
|
|
498
|
+
type ErrandRiderBehavior = 'outstanding' | 'acceptable' | 'unsatisfactory';
|
|
499
|
+
interface ErrandReview {
|
|
500
|
+
id: string;
|
|
501
|
+
errandId: string;
|
|
502
|
+
riderId: string;
|
|
503
|
+
reviewText: string;
|
|
504
|
+
rating: number;
|
|
505
|
+
deliveryTiming: ErrandDeliveryTiming;
|
|
506
|
+
packagingQuality: ErrandPackagingQuality;
|
|
507
|
+
riderBehavior: ErrandRiderBehavior;
|
|
508
|
+
reviewerMobile: string;
|
|
509
|
+
reviewerType: 'creator' | 'recipient';
|
|
510
|
+
createdAt: string;
|
|
511
|
+
updatedAt: string;
|
|
512
|
+
}
|
|
484
513
|
|
|
485
514
|
declare enum NotificationType {
|
|
486
515
|
Errand = "errand",
|
|
@@ -549,6 +578,13 @@ interface BusinessCategory {
|
|
|
549
578
|
createdAt: string;
|
|
550
579
|
updatedAt: string;
|
|
551
580
|
}
|
|
581
|
+
interface Vendor {
|
|
582
|
+
id: string;
|
|
583
|
+
name: string;
|
|
584
|
+
handle: string;
|
|
585
|
+
businessId: string;
|
|
586
|
+
logo?: string;
|
|
587
|
+
}
|
|
552
588
|
|
|
553
589
|
interface Customer {
|
|
554
590
|
id: string;
|
|
@@ -639,4 +675,4 @@ declare enum LinkDestination {
|
|
|
639
675
|
}
|
|
640
676
|
type NullOrUndefined = null | undefined;
|
|
641
677
|
|
|
642
|
-
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, 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, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, errandTimeline };
|
|
678
|
+
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, 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, 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, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
package/package.json
CHANGED
package/src/business.ts
CHANGED
package/src/errand.ts
CHANGED
|
@@ -244,6 +244,41 @@ export type AddressDetails = {
|
|
|
244
244
|
coordinates: number[];
|
|
245
245
|
};
|
|
246
246
|
mobileNumber?: string;
|
|
247
|
+
alternateMobileNumber?: string;
|
|
247
248
|
landmark?: string;
|
|
248
249
|
addressId?: string;
|
|
249
250
|
};
|
|
251
|
+
|
|
252
|
+
export interface ErrandReviewLink {
|
|
253
|
+
id: string;
|
|
254
|
+
errandId: string;
|
|
255
|
+
phoneNumber: string;
|
|
256
|
+
token: string;
|
|
257
|
+
expiresAt: string;
|
|
258
|
+
isUsed: boolean;
|
|
259
|
+
usedAt: string;
|
|
260
|
+
createdBy: string;
|
|
261
|
+
createdAt: string;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export type ErrandDeliveryTiming = 'early' | 'on_time' | 'late';
|
|
265
|
+
export type ErrandPackagingQuality = 'excellent' | 'average' | 'poor';
|
|
266
|
+
export type ErrandRiderBehavior =
|
|
267
|
+
| 'outstanding'
|
|
268
|
+
| 'acceptable'
|
|
269
|
+
| 'unsatisfactory';
|
|
270
|
+
|
|
271
|
+
export interface ErrandReview {
|
|
272
|
+
id: string;
|
|
273
|
+
errandId: string;
|
|
274
|
+
riderId: string;
|
|
275
|
+
reviewText: string;
|
|
276
|
+
rating: number;
|
|
277
|
+
deliveryTiming: ErrandDeliveryTiming;
|
|
278
|
+
packagingQuality: ErrandPackagingQuality;
|
|
279
|
+
riderBehavior: ErrandRiderBehavior;
|
|
280
|
+
reviewerMobile: string;
|
|
281
|
+
reviewerType: 'creator' | 'recipient';
|
|
282
|
+
createdAt: string;
|
|
283
|
+
updatedAt: string;
|
|
284
|
+
}
|