shopoflex-types 1.0.220 → 1.0.223

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.
package/dist/common.d.ts CHANGED
@@ -252,7 +252,7 @@ export interface CurrentUserType extends IUser {
252
252
  }>;
253
253
  hasAccesstoVendor?: boolean;
254
254
  }
255
- export type Permission = "products.read" | "products.create" | "products.update" | "products.delete" | "products.cost" | "products.inventory" | "orders.read" | "orders.create" | "orders.update" | "orders.delete" | "orders.refund" | "orders.status" | "customers.read" | "customers.create" | "customers.update" | "customers.delete" | "accounting.read" | "accounting.create" | "accounting.update" | "accounting.delete" | "analytics.dashboard" | "analytics.revenue" | "analytics.customers" | "analytics.products" | "analytics.traffic" | "analytics.financial" | "analytics.inventory" | "analytics.export" | "branches.read" | "branches.create" | "branches.update" | "branches.delete" | "users.read" | "users.create" | "users.update" | "users.delete" | "users.invite" | "users.permissions.view" | "roles.read" | "roles.create" | "roles.update" | "roles.delete" | "system.vendor.update" | "system.discounts.read" | "system.discounts.create" | "system.discounts.update" | "system.discounts.delete" | "system.wallet.view" | "system.cart.restrict_item_removal" | "traffic.read" | "traffic.analytics" | "traffic.network";
255
+ export type Permission = "products.read" | "products.create" | "products.update" | "products.delete" | "products.cost" | "products.inventory" | "orders.read" | "orders.create" | "orders.update" | "orders.delete" | "orders.refund" | "orders.status" | "customers.read" | "customers.create" | "customers.update" | "customers.delete" | "accounting.read" | "accounting.create" | "accounting.update" | "accounting.delete" | "analytics.dashboard" | "analytics.revenue" | "analytics.customers" | "analytics.products" | "analytics.traffic" | "analytics.financial" | "analytics.inventory" | "analytics.export" | "branches.read" | "branches.create" | "branches.update" | "branches.delete" | "users.read" | "users.create" | "users.update" | "users.delete" | "users.invite" | "users.permissions.view" | "roles.read" | "roles.create" | "roles.update" | "roles.delete" | "system.vendor.update" | "system.discounts.read" | "system.discounts.create" | "system.discounts.update" | "system.discounts.delete" | "system.wallet.view" | "system.cart.restrict_item_removal" | "traffic.read" | "traffic.analytics" | "traffic.network" | "activity.read";
256
256
  export interface IRole {
257
257
  _id?: string;
258
258
  name: NameType;
@@ -462,6 +462,10 @@ export interface Vendor {
462
462
  currentPlan?: VendorCurrentPlan;
463
463
  branding?: any;
464
464
  onlineOrdersHandlers?: string[];
465
+ /** Terminals marked "operational" for reservations. Unlike onlineOrdersHandlers
466
+ * (which serve only the terminal's own branch), a reservation handler receives
467
+ * reservations from ALL branches of the vendor (e.g. a central factory). */
468
+ reservationHandlers?: string[];
465
469
  getTaxConfig(country?: string): TaxSettings;
466
470
  calculateTax(subtotal: number, country?: string): {
467
471
  taxAmount: number;
@@ -151,6 +151,7 @@ export interface Cart {
151
151
  totalQuantity: number;
152
152
  discount: number;
153
153
  delivery: number;
154
+ deliveryTbd?: boolean;
154
155
  total: number;
155
156
  tax?: number;
156
157
  vendorTax?: number;
@@ -176,6 +177,7 @@ export interface CartState {
176
177
  totalQuantity: number;
177
178
  discount: number;
178
179
  delivery: number;
180
+ deliveryTbd?: boolean;
179
181
  total: number;
180
182
  promoCode?: Discount;
181
183
  totalsByUnit?: Record<UnitTypeValue, number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.220",
3
+ "version": "1.0.223",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",