@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @mydoormot/app-types@1.6.4 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
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
  CLI Building entry: src/index.ts
@@ -9,10 +9,10 @@
9
9
  ESM Build start
10
10
  CJS Build start
11
11
  ESM dist/index.js 5.37 KB
12
- ESM ⚡️ Build success in 49ms
12
+ ESM ⚡️ Build success in 196ms
13
13
  CJS dist/index.cjs 6.93 KB
14
- CJS ⚡️ Build success in 50ms
14
+ CJS ⚡️ Build success in 196ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 717ms
17
- DTS dist/index.d.ts 15.81 KB
18
- DTS dist/index.d.cts 15.81 KB
16
+ DTS ⚡️ Build success in 977ms
17
+ DTS dist/index.d.ts 16.87 KB
18
+ DTS dist/index.d.cts 16.87 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Added vendor to response
8
+
9
+ ## 1.7.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Added errand review and links
14
+
3
15
  ## 1.6.5
4
16
 
5
17
  ### Patch Changes
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.6.5",
3
+ "version": "1.7.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/business.ts CHANGED
@@ -56,3 +56,11 @@ export interface BusinessCategory {
56
56
  createdAt: string;
57
57
  updatedAt: string;
58
58
  }
59
+
60
+ export interface Vendor {
61
+ id: string;
62
+ name: string;
63
+ handle: string;
64
+ businessId: string;
65
+ logo?: string;
66
+ }
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
+ }