@orderingstack/ordering-types 1.1.11 → 1.2.0

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.
@@ -81,6 +81,15 @@ export interface IProductExtra extends Partial<Record<string, string>> {
81
81
  related?: string;
82
82
  category?: string;
83
83
  }
84
+ /**
85
+ * IProductFrontAttributes
86
+ *
87
+ * @interface IProductFrontAttributes attributes are added by useMenu hook
88
+ * @isHiddenByEnableKey {boolean} product has not been enabled by one of its enableKeys
89
+ */
90
+ export interface IProductFrontAttributes {
91
+ isHiddenByEnableKey?: boolean;
92
+ }
84
93
  export interface IProduct {
85
94
  availability?: IProductAvailability;
86
95
  id: string;
@@ -110,6 +119,7 @@ export interface IProduct {
110
119
  qty: string;
111
120
  }>;
112
121
  attrs?: Record<string, string | boolean>;
122
+ __?: IProductFrontAttributes;
113
123
  }
114
124
  export interface IProductState {
115
125
  selected: IProductStateSelected;
@@ -81,6 +81,15 @@ export interface IProductExtra extends Partial<Record<string, string>> {
81
81
  related?: string;
82
82
  category?: string;
83
83
  }
84
+ /**
85
+ * IProductFrontAttributes
86
+ *
87
+ * @interface IProductFrontAttributes attributes are added by useMenu hook
88
+ * @isHiddenByEnableKey {boolean} product has not been enabled by one of its enableKeys
89
+ */
90
+ export interface IProductFrontAttributes {
91
+ isHiddenByEnableKey?: boolean;
92
+ }
84
93
  export interface IProduct {
85
94
  availability?: IProductAvailability;
86
95
  id: string;
@@ -110,6 +119,7 @@ export interface IProduct {
110
119
  qty: string;
111
120
  }>;
112
121
  attrs?: Record<string, string | boolean>;
122
+ __?: IProductFrontAttributes;
113
123
  }
114
124
  export interface IProductState {
115
125
  selected: IProductStateSelected;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.1.11",
3
+ "version": "1.2.0",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",