@mydoormot/app-types 1.7.31 → 1.7.33

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.30 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.7.32 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 9.25 KB
12
+ CJS ⚡️ Build success in 88ms
13
+ ESM dist/index.js 7.36 KB
14
+ ESM ⚡️ Build success in 89ms
11
15
  DTS Build start
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
16
+ DTS ⚡️ Build success in 805ms
17
+ DTS dist/index.d.ts 28.28 KB
18
+ DTS dist/index.d.cts 28.28 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.33
4
+
5
+ ### Patch Changes
6
+
7
+ - Added disabled
8
+
9
+ ## 1.7.32
10
+
11
+ ### Patch Changes
12
+
13
+ - Modified app types
14
+
3
15
  ## 1.7.31
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -24,6 +24,7 @@ __export(src_exports, {
24
24
  AuthType: () => AuthType,
25
25
  BusinessCapability: () => BusinessCapability,
26
26
  BusinessRole: () => BusinessRole,
27
+ BusinessStatus: () => BusinessStatus,
27
28
  DeliveryStatus: () => DeliveryStatus,
28
29
  EnterpriseType: () => EnterpriseType,
29
30
  ErrandStatus: () => ErrandStatus,
@@ -205,6 +206,11 @@ var BusinessCapability = /* @__PURE__ */ ((BusinessCapability2) => {
205
206
  BusinessCapability2["SELF_FULFILLMENT"] = "self_fulfillment";
206
207
  return BusinessCapability2;
207
208
  })(BusinessCapability || {});
209
+ var BusinessStatus = /* @__PURE__ */ ((BusinessStatus2) => {
210
+ BusinessStatus2["ACTIVE"] = "active";
211
+ BusinessStatus2["DISABLED"] = "disabled";
212
+ return BusinessStatus2;
213
+ })(BusinessStatus || {});
208
214
  var BusinessRole = /* @__PURE__ */ ((BusinessRole2) => {
209
215
  BusinessRole2["OWNER"] = "OWNER";
210
216
  BusinessRole2["MANAGER"] = "MANAGER";
@@ -240,6 +246,7 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
240
246
  AuthType,
241
247
  BusinessCapability,
242
248
  BusinessRole,
249
+ BusinessStatus,
243
250
  DeliveryStatus,
244
251
  EnterpriseType,
245
252
  ErrandStatus,
package/dist/index.d.cts CHANGED
@@ -179,6 +179,92 @@ interface InvoiceItem {
179
179
  itemDetails?: Errand;
180
180
  }
181
181
 
182
+ declare enum BusinessCapability {
183
+ SELF_FULFILLMENT = "self_fulfillment"
184
+ }
185
+ declare enum BusinessStatus {
186
+ ACTIVE = "active",
187
+ DISABLED = "disabled"
188
+ }
189
+ interface Business {
190
+ id: string;
191
+ userId: string;
192
+ name: string;
193
+ description: string;
194
+ officeNumber: string;
195
+ categoryId: string;
196
+ address: string | NullOrUndefined;
197
+ addressCoordinates: number[] | NullOrUndefined | {
198
+ x: number;
199
+ y: number;
200
+ };
201
+ loggedIn: boolean | NullOrUndefined;
202
+ slug: string;
203
+ verified: boolean | NullOrUndefined;
204
+ isVirtual: boolean | NullOrUndefined;
205
+ registrationCompleted: boolean | NullOrUndefined;
206
+ stateId: string | NullOrUndefined;
207
+ cityId: string | NullOrUndefined;
208
+ originalLogoUrl: string | NullOrUndefined;
209
+ logoUrl: string | NullOrUndefined;
210
+ logoBlurHash: string | NullOrUndefined;
211
+ coverImageUrl: string | NullOrUndefined;
212
+ orginalCoverImageUrl: string | NullOrUndefined;
213
+ coverImageBlurHash: string | NullOrUndefined;
214
+ createdAt: string | Date;
215
+ updatedAt: string | NullOrUndefined | Date;
216
+ verifiedAt: string | NullOrUndefined | Date;
217
+ registrationCompletedAt: string | NullOrUndefined | Date;
218
+ businessCategoryDetails: BusinessCategory | NullOrUndefined;
219
+ capabilities: BusinessCapability[] | NullOrUndefined;
220
+ status: BusinessStatus | `${BusinessStatus}`;
221
+ disabledAt: string | NullOrUndefined | Date;
222
+ disabledBy: string | NullOrUndefined;
223
+ disabledReason: string | NullOrUndefined;
224
+ }
225
+ interface BusinessPg extends Business {
226
+ pgId: any;
227
+ }
228
+ interface BusinessCategory {
229
+ id: string;
230
+ seqId: number;
231
+ name: string;
232
+ slug: string;
233
+ createdAt: string;
234
+ updatedAt: string;
235
+ }
236
+ interface Vendor {
237
+ id: string;
238
+ name: string;
239
+ handle: string;
240
+ businessId: string;
241
+ logo?: string;
242
+ }
243
+ declare enum BusinessRole {
244
+ OWNER = "OWNER",
245
+ MANAGER = "MANAGER",
246
+ RIDER = "RIDER",
247
+ STAFF = "STAFF"
248
+ }
249
+ declare enum MembershipStatus {
250
+ ACTIVE = "ACTIVE",
251
+ PENDING_ACTIVATION = "PENDING_ACTIVATION",
252
+ SUSPENDED = "SUSPENDED"
253
+ }
254
+ interface BusinessMember {
255
+ id: string;
256
+ userId: string;
257
+ businessId: string;
258
+ pgId: string;
259
+ role: BusinessRole | `${BusinessRole}`;
260
+ status: MembershipStatus | `${MembershipStatus}`;
261
+ invitedBy: string | NullOrUndefined;
262
+ userDetails: User | NullOrUndefined;
263
+ invitedByUserDetails: User | NullOrUndefined;
264
+ createdAt: string;
265
+ updatedAt: string | NullOrUndefined;
266
+ }
267
+
182
268
  declare enum VehicleType {
183
269
  Bike = "bike",
184
270
  Shuttle = "shuttle"
@@ -280,6 +366,7 @@ type Rider = {
280
366
  };
281
367
  type RiderWithUserDetails = Rider & {
282
368
  userDetails?: User;
369
+ businessMemberDetails?: BusinessMember;
283
370
  };
284
371
  declare enum RemittanceStatus {
285
372
  Pending = "pending",
@@ -637,84 +724,6 @@ interface EnterpriseSubCategoryDoc {
637
724
  createdAt: string;
638
725
  }
639
726
 
640
- declare enum BusinessCapability {
641
- SELF_FULFILLMENT = "self_fulfillment"
642
- }
643
- interface Business {
644
- id: string;
645
- userId: string;
646
- name: string;
647
- description: string;
648
- officeNumber: string;
649
- categoryId: string;
650
- address: string | NullOrUndefined;
651
- addressCoordinates: number[] | NullOrUndefined | {
652
- x: number;
653
- y: number;
654
- };
655
- loggedIn: boolean | NullOrUndefined;
656
- slug: string;
657
- verified: boolean | NullOrUndefined;
658
- isVirtual: boolean | NullOrUndefined;
659
- registrationCompleted: boolean | NullOrUndefined;
660
- stateId: string | NullOrUndefined;
661
- cityId: string | NullOrUndefined;
662
- originalLogoUrl: string | NullOrUndefined;
663
- logoUrl: string | NullOrUndefined;
664
- logoBlurHash: string | NullOrUndefined;
665
- coverImageUrl: string | NullOrUndefined;
666
- orginalCoverImageUrl: string | NullOrUndefined;
667
- coverImageBlurHash: string | NullOrUndefined;
668
- createdAt: string | Date;
669
- updatedAt: string | NullOrUndefined | Date;
670
- verifiedAt: string | NullOrUndefined | Date;
671
- registrationCompletedAt: string | NullOrUndefined | Date;
672
- businessCategoryDetails: BusinessCategory | NullOrUndefined;
673
- capabilities: BusinessCapability[] | NullOrUndefined;
674
- }
675
- interface BusinessPg extends Business {
676
- pgId: any;
677
- }
678
- interface BusinessCategory {
679
- id: string;
680
- seqId: number;
681
- name: string;
682
- slug: string;
683
- createdAt: string;
684
- updatedAt: string;
685
- }
686
- interface Vendor {
687
- id: string;
688
- name: string;
689
- handle: string;
690
- businessId: string;
691
- logo?: string;
692
- }
693
- declare enum BusinessRole {
694
- OWNER = "OWNER",
695
- MANAGER = "MANAGER",
696
- RIDER = "RIDER",
697
- STAFF = "STAFF"
698
- }
699
- declare enum MembershipStatus {
700
- ACTIVE = "ACTIVE",
701
- PENDING_ACTIVATION = "PENDING_ACTIVATION",
702
- SUSPENDED = "SUSPENDED"
703
- }
704
- interface BusinessMember {
705
- id: string;
706
- userId: string;
707
- businessId: string;
708
- pgId: string;
709
- role: BusinessRole | `${BusinessRole}`;
710
- status: MembershipStatus | `${MembershipStatus}`;
711
- invitedBy: string | NullOrUndefined;
712
- userDetails: User | NullOrUndefined;
713
- invitedByUserDetails: User | NullOrUndefined;
714
- createdAt: string;
715
- updatedAt: string | NullOrUndefined;
716
- }
717
-
718
727
  type ProductStatus = 'draft' | 'proposed' | 'published' | 'rejected';
719
728
  interface ProductImage {
720
729
  id: string;
@@ -1090,4 +1099,4 @@ declare enum LinkDestination {
1090
1099
  }
1091
1100
  type NullOrUndefined = null | undefined;
1092
1101
 
1093
- export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Collection, type Coupon, type Customer, type CustomerTransactionStats, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type MaintenanceItem, type MaintenancePartUsage, type MaintenanceRecord, type MaintenanceStats, type MaintenanceStatsSummary, type MaintenanceTopItem, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, type RiderWithUserDetails, RoleType, SettlementType, type State, type TraccarDevice, TraccarDeviceStatus, type TraccarPosition, type TrackerDevice, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleErrandStats, type VehicleFuelStats, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleMaintenanceStats, type VehiclePerformanceData, type VehiclePerformanceFilters, type VehiclePerformanceItem, type VehiclePerformanceTotals, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
1102
+ export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, BusinessStatus, type City, type Collection, type Coupon, type Customer, type CustomerTransactionStats, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type MaintenanceItem, type MaintenancePartUsage, type MaintenanceRecord, type MaintenanceStats, type MaintenanceStatsSummary, type MaintenanceTopItem, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, type RiderWithUserDetails, RoleType, SettlementType, type State, type TraccarDevice, TraccarDeviceStatus, type TraccarPosition, type TrackerDevice, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleErrandStats, type VehicleFuelStats, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleMaintenanceStats, type VehiclePerformanceData, type VehiclePerformanceFilters, type VehiclePerformanceItem, type VehiclePerformanceTotals, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
package/dist/index.d.ts CHANGED
@@ -179,6 +179,92 @@ interface InvoiceItem {
179
179
  itemDetails?: Errand;
180
180
  }
181
181
 
182
+ declare enum BusinessCapability {
183
+ SELF_FULFILLMENT = "self_fulfillment"
184
+ }
185
+ declare enum BusinessStatus {
186
+ ACTIVE = "active",
187
+ DISABLED = "disabled"
188
+ }
189
+ interface Business {
190
+ id: string;
191
+ userId: string;
192
+ name: string;
193
+ description: string;
194
+ officeNumber: string;
195
+ categoryId: string;
196
+ address: string | NullOrUndefined;
197
+ addressCoordinates: number[] | NullOrUndefined | {
198
+ x: number;
199
+ y: number;
200
+ };
201
+ loggedIn: boolean | NullOrUndefined;
202
+ slug: string;
203
+ verified: boolean | NullOrUndefined;
204
+ isVirtual: boolean | NullOrUndefined;
205
+ registrationCompleted: boolean | NullOrUndefined;
206
+ stateId: string | NullOrUndefined;
207
+ cityId: string | NullOrUndefined;
208
+ originalLogoUrl: string | NullOrUndefined;
209
+ logoUrl: string | NullOrUndefined;
210
+ logoBlurHash: string | NullOrUndefined;
211
+ coverImageUrl: string | NullOrUndefined;
212
+ orginalCoverImageUrl: string | NullOrUndefined;
213
+ coverImageBlurHash: string | NullOrUndefined;
214
+ createdAt: string | Date;
215
+ updatedAt: string | NullOrUndefined | Date;
216
+ verifiedAt: string | NullOrUndefined | Date;
217
+ registrationCompletedAt: string | NullOrUndefined | Date;
218
+ businessCategoryDetails: BusinessCategory | NullOrUndefined;
219
+ capabilities: BusinessCapability[] | NullOrUndefined;
220
+ status: BusinessStatus | `${BusinessStatus}`;
221
+ disabledAt: string | NullOrUndefined | Date;
222
+ disabledBy: string | NullOrUndefined;
223
+ disabledReason: string | NullOrUndefined;
224
+ }
225
+ interface BusinessPg extends Business {
226
+ pgId: any;
227
+ }
228
+ interface BusinessCategory {
229
+ id: string;
230
+ seqId: number;
231
+ name: string;
232
+ slug: string;
233
+ createdAt: string;
234
+ updatedAt: string;
235
+ }
236
+ interface Vendor {
237
+ id: string;
238
+ name: string;
239
+ handle: string;
240
+ businessId: string;
241
+ logo?: string;
242
+ }
243
+ declare enum BusinessRole {
244
+ OWNER = "OWNER",
245
+ MANAGER = "MANAGER",
246
+ RIDER = "RIDER",
247
+ STAFF = "STAFF"
248
+ }
249
+ declare enum MembershipStatus {
250
+ ACTIVE = "ACTIVE",
251
+ PENDING_ACTIVATION = "PENDING_ACTIVATION",
252
+ SUSPENDED = "SUSPENDED"
253
+ }
254
+ interface BusinessMember {
255
+ id: string;
256
+ userId: string;
257
+ businessId: string;
258
+ pgId: string;
259
+ role: BusinessRole | `${BusinessRole}`;
260
+ status: MembershipStatus | `${MembershipStatus}`;
261
+ invitedBy: string | NullOrUndefined;
262
+ userDetails: User | NullOrUndefined;
263
+ invitedByUserDetails: User | NullOrUndefined;
264
+ createdAt: string;
265
+ updatedAt: string | NullOrUndefined;
266
+ }
267
+
182
268
  declare enum VehicleType {
183
269
  Bike = "bike",
184
270
  Shuttle = "shuttle"
@@ -280,6 +366,7 @@ type Rider = {
280
366
  };
281
367
  type RiderWithUserDetails = Rider & {
282
368
  userDetails?: User;
369
+ businessMemberDetails?: BusinessMember;
283
370
  };
284
371
  declare enum RemittanceStatus {
285
372
  Pending = "pending",
@@ -637,84 +724,6 @@ interface EnterpriseSubCategoryDoc {
637
724
  createdAt: string;
638
725
  }
639
726
 
640
- declare enum BusinessCapability {
641
- SELF_FULFILLMENT = "self_fulfillment"
642
- }
643
- interface Business {
644
- id: string;
645
- userId: string;
646
- name: string;
647
- description: string;
648
- officeNumber: string;
649
- categoryId: string;
650
- address: string | NullOrUndefined;
651
- addressCoordinates: number[] | NullOrUndefined | {
652
- x: number;
653
- y: number;
654
- };
655
- loggedIn: boolean | NullOrUndefined;
656
- slug: string;
657
- verified: boolean | NullOrUndefined;
658
- isVirtual: boolean | NullOrUndefined;
659
- registrationCompleted: boolean | NullOrUndefined;
660
- stateId: string | NullOrUndefined;
661
- cityId: string | NullOrUndefined;
662
- originalLogoUrl: string | NullOrUndefined;
663
- logoUrl: string | NullOrUndefined;
664
- logoBlurHash: string | NullOrUndefined;
665
- coverImageUrl: string | NullOrUndefined;
666
- orginalCoverImageUrl: string | NullOrUndefined;
667
- coverImageBlurHash: string | NullOrUndefined;
668
- createdAt: string | Date;
669
- updatedAt: string | NullOrUndefined | Date;
670
- verifiedAt: string | NullOrUndefined | Date;
671
- registrationCompletedAt: string | NullOrUndefined | Date;
672
- businessCategoryDetails: BusinessCategory | NullOrUndefined;
673
- capabilities: BusinessCapability[] | NullOrUndefined;
674
- }
675
- interface BusinessPg extends Business {
676
- pgId: any;
677
- }
678
- interface BusinessCategory {
679
- id: string;
680
- seqId: number;
681
- name: string;
682
- slug: string;
683
- createdAt: string;
684
- updatedAt: string;
685
- }
686
- interface Vendor {
687
- id: string;
688
- name: string;
689
- handle: string;
690
- businessId: string;
691
- logo?: string;
692
- }
693
- declare enum BusinessRole {
694
- OWNER = "OWNER",
695
- MANAGER = "MANAGER",
696
- RIDER = "RIDER",
697
- STAFF = "STAFF"
698
- }
699
- declare enum MembershipStatus {
700
- ACTIVE = "ACTIVE",
701
- PENDING_ACTIVATION = "PENDING_ACTIVATION",
702
- SUSPENDED = "SUSPENDED"
703
- }
704
- interface BusinessMember {
705
- id: string;
706
- userId: string;
707
- businessId: string;
708
- pgId: string;
709
- role: BusinessRole | `${BusinessRole}`;
710
- status: MembershipStatus | `${MembershipStatus}`;
711
- invitedBy: string | NullOrUndefined;
712
- userDetails: User | NullOrUndefined;
713
- invitedByUserDetails: User | NullOrUndefined;
714
- createdAt: string;
715
- updatedAt: string | NullOrUndefined;
716
- }
717
-
718
727
  type ProductStatus = 'draft' | 'proposed' | 'published' | 'rejected';
719
728
  interface ProductImage {
720
729
  id: string;
@@ -1090,4 +1099,4 @@ declare enum LinkDestination {
1090
1099
  }
1091
1100
  type NullOrUndefined = null | undefined;
1092
1101
 
1093
- export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Collection, type Coupon, type Customer, type CustomerTransactionStats, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type MaintenanceItem, type MaintenancePartUsage, type MaintenanceRecord, type MaintenanceStats, type MaintenanceStatsSummary, type MaintenanceTopItem, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, type RiderWithUserDetails, RoleType, SettlementType, type State, type TraccarDevice, TraccarDeviceStatus, type TraccarPosition, type TrackerDevice, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleErrandStats, type VehicleFuelStats, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleMaintenanceStats, type VehiclePerformanceData, type VehiclePerformanceFilters, type VehiclePerformanceItem, type VehiclePerformanceTotals, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
1102
+ export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, BusinessStatus, type City, type Collection, type Coupon, type Customer, type CustomerTransactionStats, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type MaintenanceItem, type MaintenancePartUsage, type MaintenanceRecord, type MaintenanceStats, type MaintenanceStatsSummary, type MaintenanceTopItem, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, type RiderWithUserDetails, RoleType, SettlementType, type State, type TraccarDevice, TraccarDeviceStatus, type TraccarPosition, type TrackerDevice, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleErrandStats, type VehicleFuelStats, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleMaintenanceStats, type VehiclePerformanceData, type VehiclePerformanceFilters, type VehiclePerformanceItem, type VehiclePerformanceTotals, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
package/dist/index.js CHANGED
@@ -157,6 +157,11 @@ var BusinessCapability = /* @__PURE__ */ ((BusinessCapability2) => {
157
157
  BusinessCapability2["SELF_FULFILLMENT"] = "self_fulfillment";
158
158
  return BusinessCapability2;
159
159
  })(BusinessCapability || {});
160
+ var BusinessStatus = /* @__PURE__ */ ((BusinessStatus2) => {
161
+ BusinessStatus2["ACTIVE"] = "active";
162
+ BusinessStatus2["DISABLED"] = "disabled";
163
+ return BusinessStatus2;
164
+ })(BusinessStatus || {});
160
165
  var BusinessRole = /* @__PURE__ */ ((BusinessRole2) => {
161
166
  BusinessRole2["OWNER"] = "OWNER";
162
167
  BusinessRole2["MANAGER"] = "MANAGER";
@@ -191,6 +196,7 @@ export {
191
196
  AuthType,
192
197
  BusinessCapability,
193
198
  BusinessRole,
199
+ BusinessStatus,
194
200
  DeliveryStatus,
195
201
  EnterpriseType,
196
202
  ErrandStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.7.31",
3
+ "version": "1.7.33",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/business.ts CHANGED
@@ -4,6 +4,11 @@ export enum BusinessCapability {
4
4
  SELF_FULFILLMENT = 'self_fulfillment',
5
5
  }
6
6
 
7
+ export enum BusinessStatus {
8
+ ACTIVE = 'active',
9
+ DISABLED = 'disabled',
10
+ }
11
+
7
12
  export interface Business {
8
13
  id: string;
9
14
  userId: string;
@@ -42,6 +47,11 @@ export interface Business {
42
47
  registrationCompletedAt: string | NullOrUndefined | Date;
43
48
  businessCategoryDetails: BusinessCategory | NullOrUndefined;
44
49
  capabilities: BusinessCapability[] | NullOrUndefined;
50
+
51
+ status: BusinessStatus | `${BusinessStatus}`;
52
+ disabledAt: string | NullOrUndefined | Date;
53
+ disabledBy: string | NullOrUndefined;
54
+ disabledReason: string | NullOrUndefined;
45
55
  }
46
56
 
47
57
  export interface BusinessPg extends Business {
package/src/rider.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  // import { Enterprise } from './enterprise';
2
+ import { BusinessMember } from './business';
2
3
  import { Errand } from './errand';
3
4
  import { State } from './location';
4
5
  import { User } from './user';
@@ -35,6 +36,7 @@ export type Rider = {
35
36
 
36
37
  export type RiderWithUserDetails = Rider & {
37
38
  userDetails?: User;
39
+ businessMemberDetails?: BusinessMember;
38
40
  };
39
41
 
40
42
  // Rider Settlement Types