@mydoormot/app-types 1.3.2 → 1.3.4

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.3.1 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.3.3 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 5.86 KB
11
- CJS ⚡️ Build success in 57ms
11
+ CJS ⚡️ Build success in 39ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 848ms
14
- DTS dist/index.d.cts 11.50 KB
13
+ DTS ⚡️ Build success in 572ms
14
+ DTS dist/index.d.cts 11.53 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Renamed AggragatedErrand to AggregatedErrand
8
+
9
+ ## 1.3.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Fixed address coordinates for business types
14
+
3
15
  ## 1.3.2
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -310,7 +310,7 @@ interface Errand {
310
310
  ownerMobileNumber?: string;
311
311
  errandTimeline?: string | ErrandTimeline;
312
312
  }
313
- interface AggragatedErrand extends Errand {
313
+ interface AggregatedErrand extends Errand {
314
314
  parcelSize: `${ParcelSize}`;
315
315
  invoiceDetails: Invoice;
316
316
  pickupLocation: {
@@ -429,7 +429,10 @@ interface Business {
429
429
  officeNumber: string;
430
430
  categoryId: string;
431
431
  address: string | NullOrUndefined;
432
- addressCoordinates: number[] | NullOrUndefined | [number, number];
432
+ addressCoordinates: number[] | NullOrUndefined | {
433
+ x: number;
434
+ y: number;
435
+ };
433
436
  loggedIn: boolean | NullOrUndefined;
434
437
  slug: string;
435
438
  verified: boolean | NullOrUndefined;
@@ -480,4 +483,4 @@ declare enum LinkDestination {
480
483
  }
481
484
  type NullOrUndefined = null | undefined;
482
485
 
483
- export { AddressDetails, AddressTypes, AggragatedErrand, 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, errandTimeline };
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, errandTimeline };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "",
5
5
  "mains": "./dist/index.js",
6
6
  "typess": "./dist/index.d.ts",
package/src/business.ts CHANGED
@@ -11,7 +11,13 @@ export interface Business {
11
11
  categoryId: string;
12
12
 
13
13
  address: string | NullOrUndefined;
14
- addressCoordinates: number[] | NullOrUndefined | [number, number];
14
+ addressCoordinates:
15
+ | number[]
16
+ | NullOrUndefined
17
+ | {
18
+ x: number;
19
+ y: number;
20
+ };
15
21
  loggedIn: boolean | NullOrUndefined;
16
22
 
17
23
  slug: string;
package/src/errand.ts CHANGED
@@ -141,7 +141,7 @@ export interface Errand {
141
141
  errandTimeline?: string | ErrandTimeline;
142
142
  }
143
143
 
144
- export interface AggragatedErrand extends Errand {
144
+ export interface AggregatedErrand extends Errand {
145
145
  parcelSize: `${ParcelSize}`;
146
146
  invoiceDetails: Invoice;
147
147
  pickupLocation: {