@mydoormot/app-types 1.6.4 → 1.7.0
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 +30 -1
- package/dist/index.d.ts +30 -1
- package/package.json +1 -1
- package/src/errand.ts +35 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@1.6.
|
|
2
|
+
> @mydoormot/app-types@1.6.5 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
|
[32mCJS[39m [1mdist/index.cjs [22m[32m6.93 KB[39m
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 445ms
|
|
13
13
|
[32mESM[39m [1mdist/index.js [22m[32m5.37 KB[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 446ms
|
|
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 2040ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m16.71 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m16.71 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -353,6 +353,7 @@ interface Errand {
|
|
|
353
353
|
deliveryDetails: AddressDetails;
|
|
354
354
|
parcelSize: `${ParcelSize}`;
|
|
355
355
|
deliveryStatus: ErrandStatus | `${ErrandStatus}`;
|
|
356
|
+
paymentStatus: `${InvoiceStatus}`;
|
|
356
357
|
invoice: {
|
|
357
358
|
invoiceStatus: InvoiceStatus | `${InvoiceStatus}`;
|
|
358
359
|
refId: string;
|
|
@@ -480,6 +481,34 @@ type AddressDetails = {
|
|
|
480
481
|
landmark?: string;
|
|
481
482
|
addressId?: string;
|
|
482
483
|
};
|
|
484
|
+
interface ErrandReviewLink {
|
|
485
|
+
id: string;
|
|
486
|
+
errandId: string;
|
|
487
|
+
phoneNumber: string;
|
|
488
|
+
token: string;
|
|
489
|
+
expiresAt: string;
|
|
490
|
+
isUsed: boolean;
|
|
491
|
+
usedAt: string;
|
|
492
|
+
createdBy: string;
|
|
493
|
+
createdAt: string;
|
|
494
|
+
}
|
|
495
|
+
type ErrandDeliveryTiming = 'early' | 'on_time' | 'late';
|
|
496
|
+
type ErrandPackagingQuality = 'excellent' | 'average' | 'poor';
|
|
497
|
+
type ErrandRiderBehavior = 'outstanding' | 'acceptable' | 'unsatisfactory';
|
|
498
|
+
interface ErrandReview {
|
|
499
|
+
id: string;
|
|
500
|
+
errandId: string;
|
|
501
|
+
riderId: string;
|
|
502
|
+
reviewText: string;
|
|
503
|
+
rating: number;
|
|
504
|
+
deliveryTiming: ErrandDeliveryTiming;
|
|
505
|
+
packagingQuality: ErrandPackagingQuality;
|
|
506
|
+
riderBehavior: ErrandRiderBehavior;
|
|
507
|
+
reviewerMobile: string;
|
|
508
|
+
reviewerType: 'creator' | 'recipient';
|
|
509
|
+
createdAt: string;
|
|
510
|
+
updatedAt: string;
|
|
511
|
+
}
|
|
483
512
|
|
|
484
513
|
declare enum NotificationType {
|
|
485
514
|
Errand = "errand",
|
|
@@ -638,4 +667,4 @@ declare enum LinkDestination {
|
|
|
638
667
|
}
|
|
639
668
|
type NullOrUndefined = null | undefined;
|
|
640
669
|
|
|
641
|
-
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 };
|
|
670
|
+
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, errandTimeline };
|
package/dist/index.d.ts
CHANGED
|
@@ -353,6 +353,7 @@ interface Errand {
|
|
|
353
353
|
deliveryDetails: AddressDetails;
|
|
354
354
|
parcelSize: `${ParcelSize}`;
|
|
355
355
|
deliveryStatus: ErrandStatus | `${ErrandStatus}`;
|
|
356
|
+
paymentStatus: `${InvoiceStatus}`;
|
|
356
357
|
invoice: {
|
|
357
358
|
invoiceStatus: InvoiceStatus | `${InvoiceStatus}`;
|
|
358
359
|
refId: string;
|
|
@@ -480,6 +481,34 @@ type AddressDetails = {
|
|
|
480
481
|
landmark?: string;
|
|
481
482
|
addressId?: string;
|
|
482
483
|
};
|
|
484
|
+
interface ErrandReviewLink {
|
|
485
|
+
id: string;
|
|
486
|
+
errandId: string;
|
|
487
|
+
phoneNumber: string;
|
|
488
|
+
token: string;
|
|
489
|
+
expiresAt: string;
|
|
490
|
+
isUsed: boolean;
|
|
491
|
+
usedAt: string;
|
|
492
|
+
createdBy: string;
|
|
493
|
+
createdAt: string;
|
|
494
|
+
}
|
|
495
|
+
type ErrandDeliveryTiming = 'early' | 'on_time' | 'late';
|
|
496
|
+
type ErrandPackagingQuality = 'excellent' | 'average' | 'poor';
|
|
497
|
+
type ErrandRiderBehavior = 'outstanding' | 'acceptable' | 'unsatisfactory';
|
|
498
|
+
interface ErrandReview {
|
|
499
|
+
id: string;
|
|
500
|
+
errandId: string;
|
|
501
|
+
riderId: string;
|
|
502
|
+
reviewText: string;
|
|
503
|
+
rating: number;
|
|
504
|
+
deliveryTiming: ErrandDeliveryTiming;
|
|
505
|
+
packagingQuality: ErrandPackagingQuality;
|
|
506
|
+
riderBehavior: ErrandRiderBehavior;
|
|
507
|
+
reviewerMobile: string;
|
|
508
|
+
reviewerType: 'creator' | 'recipient';
|
|
509
|
+
createdAt: string;
|
|
510
|
+
updatedAt: string;
|
|
511
|
+
}
|
|
483
512
|
|
|
484
513
|
declare enum NotificationType {
|
|
485
514
|
Errand = "errand",
|
|
@@ -638,4 +667,4 @@ declare enum LinkDestination {
|
|
|
638
667
|
}
|
|
639
668
|
type NullOrUndefined = null | undefined;
|
|
640
669
|
|
|
641
|
-
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 };
|
|
670
|
+
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, errandTimeline };
|
package/package.json
CHANGED
package/src/errand.ts
CHANGED
|
@@ -120,6 +120,7 @@ export interface Errand {
|
|
|
120
120
|
deliveryDetails: AddressDetails;
|
|
121
121
|
parcelSize: `${ParcelSize}`;
|
|
122
122
|
deliveryStatus: ErrandStatus | `${ErrandStatus}`;
|
|
123
|
+
paymentStatus: `${InvoiceStatus}`;
|
|
123
124
|
invoice: {
|
|
124
125
|
invoiceStatus: InvoiceStatus | `${InvoiceStatus}`;
|
|
125
126
|
refId: string;
|
|
@@ -246,3 +247,37 @@ export type AddressDetails = {
|
|
|
246
247
|
landmark?: string;
|
|
247
248
|
addressId?: string;
|
|
248
249
|
};
|
|
250
|
+
|
|
251
|
+
export interface ErrandReviewLink {
|
|
252
|
+
id: string;
|
|
253
|
+
errandId: string;
|
|
254
|
+
phoneNumber: string;
|
|
255
|
+
token: string;
|
|
256
|
+
expiresAt: string;
|
|
257
|
+
isUsed: boolean;
|
|
258
|
+
usedAt: string;
|
|
259
|
+
createdBy: string;
|
|
260
|
+
createdAt: string;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export type ErrandDeliveryTiming = 'early' | 'on_time' | 'late';
|
|
264
|
+
export type ErrandPackagingQuality = 'excellent' | 'average' | 'poor';
|
|
265
|
+
export type ErrandRiderBehavior =
|
|
266
|
+
| 'outstanding'
|
|
267
|
+
| 'acceptable'
|
|
268
|
+
| 'unsatisfactory';
|
|
269
|
+
|
|
270
|
+
export interface ErrandReview {
|
|
271
|
+
id: string;
|
|
272
|
+
errandId: string;
|
|
273
|
+
riderId: string;
|
|
274
|
+
reviewText: string;
|
|
275
|
+
rating: number;
|
|
276
|
+
deliveryTiming: ErrandDeliveryTiming;
|
|
277
|
+
packagingQuality: ErrandPackagingQuality;
|
|
278
|
+
riderBehavior: ErrandRiderBehavior;
|
|
279
|
+
reviewerMobile: string;
|
|
280
|
+
reviewerType: 'creator' | 'recipient';
|
|
281
|
+
createdAt: string;
|
|
282
|
+
updatedAt: string;
|
|
283
|
+
}
|