@mydoormot/app-types 1.1.1 → 1.1.3

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 141ms
9
+ CJS ⚡️ Build success in 92ms
10
10
  DTS Build start
11
- DTS ⚡️ Build success in 2013ms
12
- DTS dist/index.d.ts 7.71 KB
13
- Done in 4.06s.
11
+ DTS ⚡️ Build success in 1800ms
12
+ DTS dist/index.d.ts 7.92 KB
13
+ Done in 3.55s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Added rating to errand
8
+
9
+ ## 1.1.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Added state types on location
14
+
3
15
  ## 1.1.1
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -219,8 +219,17 @@ interface Rider {
219
219
  currLocation?: {
220
220
  coordinates: number[];
221
221
  };
222
- active: boolean;
223
222
  name?: string;
223
+ vehicle: string;
224
+ vehicleNumber: string;
225
+ verified: boolean;
226
+ active: boolean;
227
+ updatedAt: Date;
228
+ createdAt: Date;
229
+ rating?: number;
230
+ hasBeenRated: boolean;
231
+ enterprise: string;
232
+ isTracking: boolean;
224
233
  }
225
234
  interface ActiveRider {
226
235
  _id: string;
@@ -297,7 +306,7 @@ type AddressDetails = {
297
306
 
298
307
  type City = {
299
308
  id: string;
300
- state: string;
309
+ state: string | State;
301
310
  name: string;
302
311
  slug: string;
303
312
  location: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/src/errand.ts CHANGED
@@ -189,8 +189,17 @@ export interface Rider {
189
189
  currLocation?: {
190
190
  coordinates: number[];
191
191
  };
192
- active: boolean;
193
192
  name?: string;
193
+ vehicle: string;
194
+ vehicleNumber: string;
195
+ verified: boolean;
196
+ active: boolean;
197
+ updatedAt: Date;
198
+ createdAt: Date;
199
+ rating?: number;
200
+ hasBeenRated: boolean; // NOTE: This tells app if the rider has an existing rating
201
+ enterprise: string;
202
+ isTracking: boolean;
194
203
  }
195
204
 
196
205
  export interface ActiveRider {
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: {