@mydoormot/app-types 1.7.32 → 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.31 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
- ESM dist/index.js 7.15 KB
12
- ESM ⚡️ Build success in 64ms
13
- CJS dist/index.cjs 9.00 KB
14
- CJS ⚡️ Build success in 65ms
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
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 685ms
17
- DTS dist/index.d.ts 28.01 KB
18
- DTS dist/index.d.cts 28.01 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,11 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.33
4
+
5
+ ### Patch Changes
6
+
7
+ - Added disabled
8
+
3
9
  ## 1.7.32
4
10
 
5
11
  ### 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
@@ -182,6 +182,10 @@ interface InvoiceItem {
182
182
  declare enum BusinessCapability {
183
183
  SELF_FULFILLMENT = "self_fulfillment"
184
184
  }
185
+ declare enum BusinessStatus {
186
+ ACTIVE = "active",
187
+ DISABLED = "disabled"
188
+ }
185
189
  interface Business {
186
190
  id: string;
187
191
  userId: string;
@@ -213,6 +217,10 @@ interface Business {
213
217
  registrationCompletedAt: string | NullOrUndefined | Date;
214
218
  businessCategoryDetails: BusinessCategory | NullOrUndefined;
215
219
  capabilities: BusinessCapability[] | NullOrUndefined;
220
+ status: BusinessStatus | `${BusinessStatus}`;
221
+ disabledAt: string | NullOrUndefined | Date;
222
+ disabledBy: string | NullOrUndefined;
223
+ disabledReason: string | NullOrUndefined;
216
224
  }
217
225
  interface BusinessPg extends Business {
218
226
  pgId: any;
@@ -1091,4 +1099,4 @@ declare enum LinkDestination {
1091
1099
  }
1092
1100
  type NullOrUndefined = null | undefined;
1093
1101
 
1094
- 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
@@ -182,6 +182,10 @@ interface InvoiceItem {
182
182
  declare enum BusinessCapability {
183
183
  SELF_FULFILLMENT = "self_fulfillment"
184
184
  }
185
+ declare enum BusinessStatus {
186
+ ACTIVE = "active",
187
+ DISABLED = "disabled"
188
+ }
185
189
  interface Business {
186
190
  id: string;
187
191
  userId: string;
@@ -213,6 +217,10 @@ interface Business {
213
217
  registrationCompletedAt: string | NullOrUndefined | Date;
214
218
  businessCategoryDetails: BusinessCategory | NullOrUndefined;
215
219
  capabilities: BusinessCapability[] | NullOrUndefined;
220
+ status: BusinessStatus | `${BusinessStatus}`;
221
+ disabledAt: string | NullOrUndefined | Date;
222
+ disabledBy: string | NullOrUndefined;
223
+ disabledReason: string | NullOrUndefined;
216
224
  }
217
225
  interface BusinessPg extends Business {
218
226
  pgId: any;
@@ -1091,4 +1099,4 @@ declare enum LinkDestination {
1091
1099
  }
1092
1100
  type NullOrUndefined = null | undefined;
1093
1101
 
1094
- 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.32",
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 {