@mydoormot/app-types 1.5.6 → 1.5.8

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.5.5 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.5.7 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
@@ -8,11 +8,11 @@
8
8
  CLI Target: es2021
9
9
  ESM Build start
10
10
  CJS Build start
11
- ESM dist/index.js 5.37 KB
12
- ESM ⚡️ Build success in 72ms
13
11
  CJS dist/index.cjs 6.93 KB
14
- CJS ⚡️ Build success in 72ms
12
+ CJS ⚡️ Build success in 62ms
13
+ ESM dist/index.js 5.37 KB
14
+ ESM ⚡️ Build success in 63ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 1094ms
17
- DTS dist/index.d.ts 14.54 KB
18
- DTS dist/index.d.cts 14.54 KB
16
+ DTS ⚡️ Build success in 621ms
17
+ DTS dist/index.d.ts 14.66 KB
18
+ DTS dist/index.d.cts 14.66 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.5.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Added isManaged flag
8
+
9
+ ## 1.5.7
10
+
11
+ ### Patch Changes
12
+
13
+ - Added business to errand details
14
+
3
15
  ## 1.5.6
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -66,6 +66,7 @@ type User = {
66
66
  accountType?: 'business' | 'personal';
67
67
  hasOnboarded?: boolean;
68
68
  lastActivity?: string;
69
+ isManaged?: boolean;
69
70
  };
70
71
  type UserAddress = {
71
72
  id: string;
@@ -369,6 +370,7 @@ interface Errand {
369
370
  queuePosition?: number;
370
371
  isTest?: boolean;
371
372
  isInBusinessInvoice?: boolean;
373
+ businessId?: string;
372
374
  }
373
375
  interface AggregatedErrand extends Errand {
374
376
  parcelSize: `${ParcelSize}`;
@@ -390,6 +392,7 @@ interface AggregatedErrand extends Errand {
390
392
  stateCoords: number[];
391
393
  };
392
394
  riderUserDetails?: User;
395
+ business?: Business;
393
396
  }
394
397
  interface ErrandRating {
395
398
  createdAt: string;
@@ -512,6 +515,7 @@ interface Business {
512
515
  registrationCompletedAt: string | NullOrUndefined | Date;
513
516
  mongoId: string;
514
517
  version: number;
518
+ isManaged: boolean | NullOrUndefined;
515
519
  }
516
520
  interface BusinessPg extends Business {
517
521
  pgId: any;
package/dist/index.d.ts CHANGED
@@ -66,6 +66,7 @@ type User = {
66
66
  accountType?: 'business' | 'personal';
67
67
  hasOnboarded?: boolean;
68
68
  lastActivity?: string;
69
+ isManaged?: boolean;
69
70
  };
70
71
  type UserAddress = {
71
72
  id: string;
@@ -369,6 +370,7 @@ interface Errand {
369
370
  queuePosition?: number;
370
371
  isTest?: boolean;
371
372
  isInBusinessInvoice?: boolean;
373
+ businessId?: string;
372
374
  }
373
375
  interface AggregatedErrand extends Errand {
374
376
  parcelSize: `${ParcelSize}`;
@@ -390,6 +392,7 @@ interface AggregatedErrand extends Errand {
390
392
  stateCoords: number[];
391
393
  };
392
394
  riderUserDetails?: User;
395
+ business?: Business;
393
396
  }
394
397
  interface ErrandRating {
395
398
  createdAt: string;
@@ -512,6 +515,7 @@ interface Business {
512
515
  registrationCompletedAt: string | NullOrUndefined | Date;
513
516
  mongoId: string;
514
517
  version: number;
518
+ isManaged: boolean | NullOrUndefined;
515
519
  }
516
520
  interface BusinessPg extends Business {
517
521
  pgId: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.5.6",
3
+ "version": "1.5.8",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/business.ts CHANGED
@@ -41,6 +41,7 @@ export interface Business {
41
41
  registrationCompletedAt: string | NullOrUndefined | Date;
42
42
  mongoId: string;
43
43
  version: number;
44
+ isManaged: boolean | NullOrUndefined;
44
45
  }
45
46
 
46
47
  export interface BusinessPg extends Business {
package/src/errand.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { Business } from '.';
1
2
  import { Coupon } from './coupon';
2
3
  import { Invoice, InvoiceStatus } from './invoice';
3
4
  import { City } from './location';
@@ -142,6 +143,7 @@ export interface Errand {
142
143
  queuePosition?: number;
143
144
  isTest?: boolean;
144
145
  isInBusinessInvoice?: boolean;
146
+ businessId?: string;
145
147
  }
146
148
 
147
149
  export interface AggregatedErrand extends Errand {
@@ -164,6 +166,7 @@ export interface AggregatedErrand extends Errand {
164
166
  stateCoords: number[];
165
167
  };
166
168
  riderUserDetails?: User;
169
+ business?: Business;
167
170
  }
168
171
 
169
172
  export interface ErrandTimeline {
package/src/user.ts CHANGED
@@ -39,6 +39,7 @@ export type User = {
39
39
  accountType?: 'business' | 'personal';
40
40
  hasOnboarded?: boolean;
41
41
  lastActivity?: string;
42
+ isManaged?: boolean;
42
43
  };
43
44
 
44
45
  export type UserAddress = {