shopoflex-types 1.0.218 → 1.0.220

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 +14 -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" | "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";
256
256
  export interface IRole {
257
257
  _id?: string;
258
258
  name: NameType;
@@ -397,6 +397,13 @@ export interface PluBarcodeConfig {
397
397
  postfixLength: number;
398
398
  valueType: 'price' | 'weight';
399
399
  }
400
+ export interface VendorPages {
401
+ vendorId: string;
402
+ about?: Record<string, string>;
403
+ privacy?: Record<string, string>;
404
+ terms?: Record<string, string>;
405
+ updatedAt?: string;
406
+ }
400
407
  export interface Vendor {
401
408
  _id?: string;
402
409
  industry?: string;
@@ -607,6 +614,11 @@ export interface IZone {
607
614
  deliveryRange?: string;
608
615
  deliveryFee?: string;
609
616
  pricePerKm?: string;
617
+ minRate?: string;
618
+ maxRate?: string;
619
+ roundingEnabled?: boolean;
620
+ roundingIncrement?: number;
621
+ roundingMode?: "nearest" | "up" | "down";
610
622
  radius?: number;
611
623
  center?: {
612
624
  lat: number;
@@ -681,6 +693,7 @@ export interface IBranch {
681
693
  allowCustomPricing?: boolean;
682
694
  showCost?: boolean;
683
695
  preventSessionCloseIfOpenCarts?: boolean;
696
+ autoLockPosOnInit?: boolean;
684
697
  }
685
698
  export interface PaginationQuery {
686
699
  page?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.218",
3
+ "version": "1.0.220",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",