shopoflex-types 1.0.197 → 1.0.199

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
@@ -97,6 +97,12 @@ export interface CashTransactionInterface {
97
97
  createdAt?: Date;
98
98
  updatedAt?: Date;
99
99
  }
100
+ export interface PackagingOption {
101
+ id: string;
102
+ name: string;
103
+ unitsPerPackage: number;
104
+ barcode?: string;
105
+ }
100
106
  export interface PriceModel {
101
107
  price: number;
102
108
  discountedPrice?: number;
@@ -105,6 +111,7 @@ export interface PriceModel {
105
111
  allowDecimal?: boolean;
106
112
  minQuantity?: number;
107
113
  unit: UnitTypeValue;
114
+ packaging?: PackagingOption[];
108
115
  }
109
116
  export interface Dimensions {
110
117
  active: boolean;
@@ -37,6 +37,15 @@ export interface VariantType {
37
37
  customMessage?: string;
38
38
  lastAlertLevel?: number;
39
39
  };
40
+ productionRecipe?: {
41
+ isManufacturable: boolean;
42
+ recipeInputs: {
43
+ productId: string;
44
+ variantId: string;
45
+ quantity: number;
46
+ }[];
47
+ outputQuantity: number;
48
+ };
40
49
  }
41
50
  export interface VariantAttribute {
42
51
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.197",
3
+ "version": "1.0.199",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",