shopoflex-types 1.0.217 → 1.0.219

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
@@ -134,6 +134,11 @@ export interface PackagingOption {
134
134
  unitsPerPackage: number;
135
135
  barcode?: string;
136
136
  }
137
+ export interface AdditionalPrice {
138
+ id: string;
139
+ name: string;
140
+ price: number;
141
+ }
137
142
  export interface PriceModel {
138
143
  price: number;
139
144
  discountedPrice?: number;
@@ -143,6 +148,7 @@ export interface PriceModel {
143
148
  minQuantity?: number;
144
149
  unit: UnitTypeValue;
145
150
  packaging?: PackagingOption[];
151
+ additionalPrices?: AdditionalPrice[];
146
152
  }
147
153
  export interface Dimensions {
148
154
  active: boolean;
@@ -246,7 +252,7 @@ export interface CurrentUserType extends IUser {
246
252
  }>;
247
253
  hasAccesstoVendor?: boolean;
248
254
  }
249
- 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";
250
256
  export interface IRole {
251
257
  _id?: string;
252
258
  name: NameType;
@@ -391,6 +397,13 @@ export interface PluBarcodeConfig {
391
397
  postfixLength: number;
392
398
  valueType: 'price' | 'weight';
393
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
+ }
394
407
  export interface Vendor {
395
408
  _id?: string;
396
409
  industry?: string;
@@ -675,6 +688,7 @@ export interface IBranch {
675
688
  allowCustomPricing?: boolean;
676
689
  showCost?: boolean;
677
690
  preventSessionCloseIfOpenCarts?: boolean;
691
+ autoLockPosOnInit?: boolean;
678
692
  }
679
693
  export interface PaginationQuery {
680
694
  page?: string;
@@ -741,12 +755,14 @@ export interface TaxConfig {
741
755
  show: boolean;
742
756
  payer: "vendor" | "customer";
743
757
  percentage: number;
758
+ mode?: "flat" | "per_item";
744
759
  };
745
760
  perCountry?: Record<string, {
746
761
  active: boolean;
747
762
  show: boolean;
748
763
  payer: "vendor" | "customer";
749
764
  percentage: number;
765
+ mode?: "flat" | "per_item";
750
766
  }>;
751
767
  }
752
768
  export {};
@@ -47,6 +47,7 @@ export interface VariantType {
47
47
  }[];
48
48
  outputQuantity: number;
49
49
  };
50
+ taxEnabled?: boolean;
50
51
  }
51
52
  export interface VariantAttribute {
52
53
  type: string;
@@ -152,6 +153,7 @@ export interface Cart {
152
153
  delivery: number;
153
154
  total: number;
154
155
  tax?: number;
156
+ vendorTax?: number;
155
157
  paid?: number;
156
158
  cashRounding?: number;
157
159
  totalsByUnit?: Record<UnitTypeValue, number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.217",
3
+ "version": "1.0.219",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",