@mydoormot/app-types 1.1.0 → 1.1.2

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.
@@ -6,8 +6,8 @@ CLI tsup v7.2.0
6
6
  CLI Target: node16
7
7
  CJS Build start
8
8
  CJS dist/index.js 4.42 KB
9
- CJS ⚡️ Build success in 91ms
9
+ CJS ⚡️ Build success in 81ms
10
10
  DTS Build start
11
- DTS ⚡️ Build success in 1371ms
12
- DTS dist/index.d.ts 7.67 KB
13
- Done in 2.37s.
11
+ DTS ⚡️ Build success in 3187ms
12
+ DTS dist/index.d.ts 7.72 KB
13
+ Done in 4.76s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Added state types on location
8
+
9
+ ## 1.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Add latlng
14
+
3
15
  ## 1.1.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -297,7 +297,7 @@ type AddressDetails = {
297
297
 
298
298
  type City = {
299
299
  id: string;
300
- state: string;
300
+ state: string | State;
301
301
  name: string;
302
302
  slug: string;
303
303
  location: {
@@ -323,6 +323,7 @@ type State = {
323
323
  updatedAt: Date;
324
324
  createdAt: Date;
325
325
  };
326
+ type LatLng = `${number},${number}`;
326
327
 
327
328
  interface PaginateResult<T> {
328
329
  docs: T[];
@@ -340,4 +341,4 @@ interface PaginateResult<T> {
340
341
  [customLabel: string]: T[] | number | boolean | null | undefined;
341
342
  }
342
343
 
343
- export { ActiveRider, AddressDetails, AddressTypes, AggragatedErrand, AuthType, City, DeliveryStatus, Errand, ErrandRating, ErrandStatus, ErrandTimeline, Invoice, InvoiceStatus, PaginateResult, ParcelSize, PaymentOptions, PendingErrand, Rider, RoleType, State, User, UserAddress, errandTimeline };
344
+ export { ActiveRider, AddressDetails, AddressTypes, AggragatedErrand, AuthType, City, DeliveryStatus, Errand, ErrandRating, ErrandStatus, ErrandTimeline, Invoice, InvoiceStatus, LatLng, PaginateResult, ParcelSize, PaymentOptions, PendingErrand, Rider, RoleType, State, User, UserAddress, errandTimeline };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/src/location.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export type City = {
2
2
  id: string;
3
- state: string;
3
+ state: string | State;
4
4
  name: string;
5
5
  slug: string;
6
6
  location: {
@@ -28,3 +28,5 @@ export type State = {
28
28
  updatedAt: Date;
29
29
  createdAt: Date;
30
30
  };
31
+
32
+ export type LatLng = `${number},${number}`;