shopoflex-types 1.0.207 → 1.0.209

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;
@@ -381,6 +384,13 @@ export interface VendorCurrentPlan {
381
384
  branches: number | "unlimited";
382
385
  };
383
386
  }
387
+ export interface PluBarcodeConfig {
388
+ prefix: string;
389
+ pluLength: number;
390
+ valueLength: number;
391
+ postfixLength: number;
392
+ valueType: 'price' | 'weight';
393
+ }
384
394
  export interface Vendor {
385
395
  _id?: string;
386
396
  industry?: string;
@@ -465,6 +475,7 @@ export interface Vendor {
465
475
  canCreateOrder(): Promise<boolean>;
466
476
  canCreateUser(): Promise<boolean>;
467
477
  canCreateBranch(): Promise<boolean>;
478
+ pluBarcodeConfig?: PluBarcodeConfig;
468
479
  printStyleSettings?: IPrintStyleSettings;
469
480
  }
470
481
  export interface IPrintStyleSettings {
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;
@@ -23,6 +23,7 @@ export interface VariantType {
23
23
  attributes?: VariantAttribute[];
24
24
  files?: FileType[];
25
25
  barcode?: string;
26
+ plu?: string;
26
27
  isActive?: boolean;
27
28
  sortOrder?: number;
28
29
  subscriptionConfig?: {
@@ -151,6 +152,7 @@ export interface Cart {
151
152
  total: number;
152
153
  tax?: number;
153
154
  paid?: number;
155
+ cashRounding?: number;
154
156
  totalsByUnit?: Record<UnitTypeValue, number>;
155
157
  }
156
158
  export interface CartModelType extends Cart {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.207",
3
+ "version": "1.0.209",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",