@mydoormot/app-types 1.7.30 → 1.7.31

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.7.29 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.7.30 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 7.15 KB
12
- ESM ⚡️ Build success in 61ms
13
- CJS dist/index.cjs 9.00 KB
14
- CJS ⚡️ Build success in 62ms
15
11
  DTS Build start
16
- DTS ⚡️ Build success in 846ms
17
- DTS dist/index.d.ts 28.00 KB
18
- DTS dist/index.d.cts 28.00 KB
12
+ CJS dist/index.cjs 9.00 KB
13
+ CJS ⚡️ Build success in 272ms
14
+ ESM dist/index.js 7.15 KB
15
+ ESM ⚡️ Build success in 272ms
16
+ DTS ⚡️ Build success in 668ms
17
+ DTS dist/index.d.ts 27.96 KB
18
+ DTS dist/index.d.cts 27.96 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.31
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified errand app types
8
+
3
9
  ## 1.7.30
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -72,7 +72,6 @@ type User = {
72
72
  accountType?: 'business' | 'personal';
73
73
  hasOnboarded?: boolean;
74
74
  lastActivity?: string;
75
- isManaged?: boolean;
76
75
  lastLoggedInBusinessId?: string;
77
76
  globalRole: GlobalRoles | `${GlobalRoles}`;
78
77
  isActive?: boolean;
@@ -443,6 +442,7 @@ interface Errand {
443
442
  userDetails?: User;
444
443
  courierBusinessDetails?: Business;
445
444
  riderDetails?: Rider;
445
+ vehicleDetails?: Vehicle;
446
446
  }
447
447
  interface AggregatedErrand extends Errand {
448
448
  parcelSize: `${ParcelSize}`;
@@ -669,7 +669,6 @@ interface Business {
669
669
  updatedAt: string | NullOrUndefined | Date;
670
670
  verifiedAt: string | NullOrUndefined | Date;
671
671
  registrationCompletedAt: string | NullOrUndefined | Date;
672
- isManaged: boolean | NullOrUndefined;
673
672
  businessCategoryDetails: BusinessCategory | NullOrUndefined;
674
673
  capabilities: BusinessCapability[] | NullOrUndefined;
675
674
  }
package/dist/index.d.ts CHANGED
@@ -72,7 +72,6 @@ type User = {
72
72
  accountType?: 'business' | 'personal';
73
73
  hasOnboarded?: boolean;
74
74
  lastActivity?: string;
75
- isManaged?: boolean;
76
75
  lastLoggedInBusinessId?: string;
77
76
  globalRole: GlobalRoles | `${GlobalRoles}`;
78
77
  isActive?: boolean;
@@ -443,6 +442,7 @@ interface Errand {
443
442
  userDetails?: User;
444
443
  courierBusinessDetails?: Business;
445
444
  riderDetails?: Rider;
445
+ vehicleDetails?: Vehicle;
446
446
  }
447
447
  interface AggregatedErrand extends Errand {
448
448
  parcelSize: `${ParcelSize}`;
@@ -669,7 +669,6 @@ interface Business {
669
669
  updatedAt: string | NullOrUndefined | Date;
670
670
  verifiedAt: string | NullOrUndefined | Date;
671
671
  registrationCompletedAt: string | NullOrUndefined | Date;
672
- isManaged: boolean | NullOrUndefined;
673
672
  businessCategoryDetails: BusinessCategory | NullOrUndefined;
674
673
  capabilities: BusinessCapability[] | NullOrUndefined;
675
674
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.7.30",
3
+ "version": "1.7.31",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/business.ts CHANGED
@@ -40,7 +40,6 @@ export interface Business {
40
40
  updatedAt: string | NullOrUndefined | Date;
41
41
  verifiedAt: string | NullOrUndefined | Date;
42
42
  registrationCompletedAt: string | NullOrUndefined | Date;
43
- isManaged: boolean | NullOrUndefined;
44
43
  businessCategoryDetails: BusinessCategory | NullOrUndefined;
45
44
  capabilities: BusinessCapability[] | NullOrUndefined;
46
45
  }
package/src/errand.ts CHANGED
@@ -4,6 +4,7 @@ import { Invoice, InvoiceStatus } from './invoice';
4
4
  import { City } from './location';
5
5
  import { Rider } from './rider';
6
6
  import { User } from './user';
7
+ import { Vehicle } from './vehicle';
7
8
 
8
9
  export enum ErrandStatus {
9
10
  Pending = 'pending',
@@ -163,7 +164,7 @@ export interface Errand {
163
164
 
164
165
  // new fields
165
166
  riderDetails?: Rider;
166
- // vehicleDetails?: Vehicle;
167
+ vehicleDetails?: Vehicle;
167
168
  }
168
169
 
169
170
  export interface AggregatedErrand extends Errand {
package/src/user.ts CHANGED
@@ -44,7 +44,6 @@ export type User = {
44
44
  accountType?: 'business' | 'personal';
45
45
  hasOnboarded?: boolean;
46
46
  lastActivity?: string;
47
- isManaged?: boolean;
48
47
  lastLoggedInBusinessId?: string;
49
48
  globalRole: GlobalRoles | `${GlobalRoles}`;
50
49
  isActive?: boolean;