shopoflex-types 1.0.104 → 1.0.106

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
@@ -312,7 +312,7 @@ export interface Vendor {
312
312
  branchesCount: number;
313
313
  usersCount: number;
314
314
  };
315
- allallowCustomPricing?: boolean;
315
+ allowCustomPricing?: boolean;
316
316
  addToWallet(amount: number): Promise<this>;
317
317
  deductCommission(orderValue: number, source?: 'pos' | 'online'): Promise<this>;
318
318
  canProcessOrder(orderValue: number, source?: 'pos' | 'online'): boolean;
@@ -51,6 +51,7 @@ export interface ProductType {
51
51
  hasModifiers?: boolean;
52
52
  isSellable?: boolean;
53
53
  usageTypes?: UsageTypes;
54
+ notes?: ProductNotes;
54
55
  label?: Label;
55
56
  hasVariants?: boolean;
56
57
  sort?: number;
@@ -79,6 +80,10 @@ export interface Modifier {
79
80
  priceOverride?: number;
80
81
  }[];
81
82
  }
83
+ export interface ProductNotes {
84
+ active?: boolean;
85
+ data?: any;
86
+ }
82
87
  export interface CartItem {
83
88
  _id?: string;
84
89
  categoriesIds: string[];
@@ -92,7 +97,7 @@ export interface CartItem {
92
97
  modifiersPrice?: number;
93
98
  unitPrice?: number;
94
99
  totalPrice?: number;
95
- notes?: string;
100
+ notes?: ProductNotes;
96
101
  }
97
102
  export interface sModifier {
98
103
  name: NameType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.104",
3
+ "version": "1.0.106",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",