@mydoormot/app-types 1.5.2 → 1.5.4

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.1 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.5.3 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
- CJS dist/index.cjs 6.68 KB
12
- CJS ⚡️ Build success in 48ms
13
11
  ESM dist/index.js 5.15 KB
14
- ESM ⚡️ Build success in 48ms
12
+ ESM ⚡️ Build success in 395ms
13
+ CJS dist/index.cjs 6.68 KB
14
+ CJS ⚡️ Build success in 395ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 846ms
17
- DTS dist/index.d.ts 13.71 KB
18
- DTS dist/index.d.cts 13.71 KB
16
+ DTS ⚡️ Build success in 1606ms
17
+ DTS dist/index.d.ts 13.92 KB
18
+ DTS dist/index.d.cts 13.92 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified vehicles response
8
+
9
+ ## 1.5.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Mod
14
+
3
15
  ## 1.5.2
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -234,6 +234,7 @@ declare enum VehicleType {
234
234
  Shuttle = "shuttle"
235
235
  }
236
236
  type Vehicle = {
237
+ id: string;
237
238
  user: string;
238
239
  vehicleNumber: string;
239
240
  version: number;
@@ -242,6 +243,10 @@ type Vehicle = {
242
243
  vehicleType: VehicleType | `${VehicleType}`;
243
244
  rider?: string;
244
245
  };
246
+ type VehicleWithRider = Vehicle & {
247
+ rider: Rider | null;
248
+ riderUserDetails: User | null;
249
+ };
245
250
 
246
251
  declare enum ErrandStatus {
247
252
  Pending = "pending",
@@ -485,6 +490,9 @@ interface Business {
485
490
  mongoId: string;
486
491
  version: number;
487
492
  }
493
+ interface BusinessPg extends Business {
494
+ pgId: any;
495
+ }
488
496
  interface BusinessCategory {
489
497
  id: string;
490
498
  seqId: number;
@@ -562,4 +570,4 @@ declare enum LinkDestination {
562
570
  }
563
571
  type NullOrUndefined = null | undefined;
564
572
 
565
- export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, 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, VehicleType, errandTimeline };
573
+ 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, VehicleType, type VehicleWithRider, errandTimeline };
package/dist/index.d.ts CHANGED
@@ -234,6 +234,7 @@ declare enum VehicleType {
234
234
  Shuttle = "shuttle"
235
235
  }
236
236
  type Vehicle = {
237
+ id: string;
237
238
  user: string;
238
239
  vehicleNumber: string;
239
240
  version: number;
@@ -242,6 +243,10 @@ type Vehicle = {
242
243
  vehicleType: VehicleType | `${VehicleType}`;
243
244
  rider?: string;
244
245
  };
246
+ type VehicleWithRider = Vehicle & {
247
+ rider: Rider | null;
248
+ riderUserDetails: User | null;
249
+ };
245
250
 
246
251
  declare enum ErrandStatus {
247
252
  Pending = "pending",
@@ -485,6 +490,9 @@ interface Business {
485
490
  mongoId: string;
486
491
  version: number;
487
492
  }
493
+ interface BusinessPg extends Business {
494
+ pgId: any;
495
+ }
488
496
  interface BusinessCategory {
489
497
  id: string;
490
498
  seqId: number;
@@ -562,4 +570,4 @@ declare enum LinkDestination {
562
570
  }
563
571
  type NullOrUndefined = null | undefined;
564
572
 
565
- export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, 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, VehicleType, errandTimeline };
573
+ 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, VehicleType, type VehicleWithRider, errandTimeline };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/business.ts CHANGED
@@ -43,6 +43,10 @@ export interface Business {
43
43
  version: number;
44
44
  }
45
45
 
46
+ export interface BusinessPg extends Business {
47
+ pgId: any;
48
+ }
49
+
46
50
  export interface BusinessCategory {
47
51
  id: string;
48
52
  seqId: number;
package/src/rider.ts CHANGED
@@ -33,6 +33,7 @@ export enum VehicleType {
33
33
  }
34
34
 
35
35
  export type Vehicle = {
36
+ id: string;
36
37
  user: string;
37
38
  vehicleNumber: string;
38
39
  version: number;
@@ -41,3 +42,8 @@ export type Vehicle = {
41
42
  vehicleType: VehicleType | `${VehicleType}`;
42
43
  rider?: string;
43
44
  };
45
+
46
+ export type VehicleWithRider = Vehicle & {
47
+ rider: Rider | null;
48
+ riderUserDetails: User | null;
49
+ };