shopoflex-types 1.0.222 → 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.
Files changed (2) hide show
  1. package/dist/common.d.ts +5 -1
  2. package/package.json +1 -1
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.222",
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",