shopoflex-types 1.0.205 → 1.0.208

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
@@ -344,6 +344,9 @@ type CurrencyInfo = {
344
344
  rate: number;
345
345
  symbol: string;
346
346
  locked: boolean;
347
+ decimals?: number;
348
+ trimZeros?: boolean;
349
+ cashRounding?: number;
347
350
  };
348
351
  type Currencies = {
349
352
  [currencyCode: string]: CurrencyInfo;
@@ -634,6 +637,10 @@ export interface IAccountingConfig {
634
637
  enableInventoryAccounting?: boolean;
635
638
  };
636
639
  }
640
+ export interface IWhatsappSettings {
641
+ showOnMenu?: boolean;
642
+ showOnWebsite?: boolean;
643
+ }
637
644
  export interface IBranch {
638
645
  _id?: string;
639
646
  name: NameType;
@@ -653,6 +660,7 @@ export interface IBranch {
653
660
  address?: string;
654
661
  isActive?: boolean;
655
662
  whatsapp?: string;
663
+ whatsappSettings?: IWhatsappSettings;
656
664
  showMap?: boolean;
657
665
  accountingConfig?: IAccountingConfig;
658
666
  storageConfig?: Record<string, any>;
package/dist/filters.d.ts CHANGED
@@ -43,6 +43,10 @@ export interface ProductFilters extends BaseFilters {
43
43
  anyVariantPrice?: number;
44
44
  anyVariantMinStock?: number;
45
45
  minQuantityRange?: [number, number] | string;
46
+ specValue?: string;
47
+ specKey?: string;
48
+ specFilters?: string;
49
+ noCost?: string | boolean;
46
50
  }
47
51
  export interface OrderFilters extends BaseFilters {
48
52
  status?: string;
@@ -151,6 +151,7 @@ export interface Cart {
151
151
  total: number;
152
152
  tax?: number;
153
153
  paid?: number;
154
+ cashRounding?: number;
154
155
  totalsByUnit?: Record<UnitTypeValue, number>;
155
156
  }
156
157
  export interface CartModelType extends Cart {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.205",
3
+ "version": "1.0.208",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",