@mydoormot/app-types 1.5.7 → 1.5.9

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.6 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.5.8 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 246ms
13
11
  CJS dist/index.cjs 6.93 KB
14
- CJS ⚡️ Build success in 246ms
12
+ CJS ⚡️ Build success in 184ms
13
+ ESM dist/index.js 5.37 KB
14
+ ESM ⚡️ Build success in 185ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 1641ms
17
- DTS dist/index.d.ts 14.59 KB
18
- DTS dist/index.d.cts 14.59 KB
16
+ DTS ⚡️ Build success in 703ms
17
+ DTS dist/index.d.ts 14.89 KB
18
+ DTS dist/index.d.cts 14.89 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.5.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Added rider user details
8
+
9
+ ## 1.5.8
10
+
11
+ ### Patch Changes
12
+
13
+ - Added isManaged flag
14
+
3
15
  ## 1.5.7
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;
@@ -264,12 +265,18 @@ type VehicleLog = {
264
265
  note?: string;
265
266
  createdAt: string;
266
267
  updatedAt: string;
268
+ riderDetails: Rider | null;
269
+ riderUserDetails: User | null;
267
270
  };
268
271
  type VehicleLogWithErrands = VehicleLog & {
269
272
  errands: Errand[];
270
273
  errandsCount: number;
271
274
  totalErrandsRevenue: number;
272
275
  };
276
+ type VehicleLogWithRiderAndErrands = VehicleLogWithErrands & {
277
+ riderDetails: Rider | null;
278
+ riderUserDetails: User | null;
279
+ };
273
280
 
274
281
  declare enum ErrandStatus {
275
282
  Pending = "pending",
@@ -514,6 +521,7 @@ interface Business {
514
521
  registrationCompletedAt: string | NullOrUndefined | Date;
515
522
  mongoId: string;
516
523
  version: number;
524
+ isManaged: boolean | NullOrUndefined;
517
525
  }
518
526
  interface BusinessPg extends Business {
519
527
  pgId: any;
@@ -595,4 +603,4 @@ declare enum LinkDestination {
595
603
  }
596
604
  type NullOrUndefined = null | undefined;
597
605
 
598
- export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, errandTimeline };
606
+ export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, errandTimeline };
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;
@@ -264,12 +265,18 @@ type VehicleLog = {
264
265
  note?: string;
265
266
  createdAt: string;
266
267
  updatedAt: string;
268
+ riderDetails: Rider | null;
269
+ riderUserDetails: User | null;
267
270
  };
268
271
  type VehicleLogWithErrands = VehicleLog & {
269
272
  errands: Errand[];
270
273
  errandsCount: number;
271
274
  totalErrandsRevenue: number;
272
275
  };
276
+ type VehicleLogWithRiderAndErrands = VehicleLogWithErrands & {
277
+ riderDetails: Rider | null;
278
+ riderUserDetails: User | null;
279
+ };
273
280
 
274
281
  declare enum ErrandStatus {
275
282
  Pending = "pending",
@@ -514,6 +521,7 @@ interface Business {
514
521
  registrationCompletedAt: string | NullOrUndefined | Date;
515
522
  mongoId: string;
516
523
  version: number;
524
+ isManaged: boolean | NullOrUndefined;
517
525
  }
518
526
  interface BusinessPg extends Business {
519
527
  pgId: any;
@@ -595,4 +603,4 @@ declare enum LinkDestination {
595
603
  }
596
604
  type NullOrUndefined = null | undefined;
597
605
 
598
- export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, errandTimeline };
606
+ export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, errandTimeline };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
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/rider.ts CHANGED
@@ -66,6 +66,8 @@ export type VehicleLog = {
66
66
  note?: string;
67
67
  createdAt: string;
68
68
  updatedAt: string;
69
+ riderDetails: Rider | null;
70
+ riderUserDetails: User | null;
69
71
  };
70
72
 
71
73
  export type VehicleLogWithErrands = VehicleLog & {
@@ -73,3 +75,8 @@ export type VehicleLogWithErrands = VehicleLog & {
73
75
  errandsCount: number;
74
76
  totalErrandsRevenue: number;
75
77
  };
78
+
79
+ export type VehicleLogWithRiderAndErrands = VehicleLogWithErrands & {
80
+ riderDetails: Rider | null;
81
+ riderUserDetails: User | null;
82
+ };
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 = {
package/src/order.ts DELETED
@@ -1,8 +0,0 @@
1
- export enum OrderStatus {
2
- // NOTE: Order status
3
- Pending = 'pending',
4
- Preparing = 'preparing',
5
- Prepared = 'prepared',
6
- Delivering = 'delivering',
7
- Delivered = 'delivered',
8
- }
package/src/property.ts DELETED
@@ -1,19 +0,0 @@
1
- export enum PropertyType {
2
- Flat = 'flat',
3
- Hostel = 'hostel',
4
- Office = 'office',
5
- }
6
-
7
- export enum PropertyPaymentType {
8
- Rent = 'rent',
9
- Buy = 'buy',
10
- ShortLet = 'short-let',
11
- }
12
-
13
- export enum PropertyMediaType {
14
- Compound = 'compound',
15
- BedRoom = 'bedroom',
16
- BathRoom = 'bathroom',
17
- Kitchen = 'kitchen',
18
- Others = 'others',
19
- }