@orderingstack/ordering-types 1.2.0 → 1.2.2

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.
@@ -54,10 +54,11 @@ export declare enum EProductKindBucket {
54
54
  }
55
55
  export type TLiterals = {
56
56
  name: string;
57
+ upsizeName?: string;
57
58
  fiscal?: string;
58
59
  "target-product-id"?: string;
59
60
  description?: string;
60
- };
61
+ } & Record<string, string>;
61
62
  export type TMedia = {
62
63
  url: string;
63
64
  name: string;
@@ -89,10 +89,16 @@ export interface IMenuBottomNavProps {
89
89
  fallbackImg?: string;
90
90
  changeQuantity: (line: IOrderLine, quantity: number) => void;
91
91
  }
92
+ /**
93
+ * @interface IMenuUpsizeProps
94
+ * @property {Array<IProduct>|undefined} products products to offer as upsize
95
+ * @property {IProduct|undefined} product original product being upsized
96
+ */
92
97
  export interface IMenuUpsizeProps {
93
98
  show: boolean;
94
99
  onClose: () => void;
95
100
  products?: IProduct[];
101
+ product?: IProduct;
96
102
  onProductClicked: (prod: IProduct) => void;
97
103
  currency: string;
98
104
  }
@@ -54,10 +54,11 @@ export declare enum EProductKindBucket {
54
54
  }
55
55
  export type TLiterals = {
56
56
  name: string;
57
+ upsizeName?: string;
57
58
  fiscal?: string;
58
59
  "target-product-id"?: string;
59
60
  description?: string;
60
- };
61
+ } & Record<string, string>;
61
62
  export type TMedia = {
62
63
  url: string;
63
64
  name: string;
@@ -89,10 +89,16 @@ export interface IMenuBottomNavProps {
89
89
  fallbackImg?: string;
90
90
  changeQuantity: (line: IOrderLine, quantity: number) => void;
91
91
  }
92
+ /**
93
+ * @interface IMenuUpsizeProps
94
+ * @property {Array<IProduct>|undefined} products products to offer as upsize
95
+ * @property {IProduct|undefined} product original product being upsized
96
+ */
92
97
  export interface IMenuUpsizeProps {
93
98
  show: boolean;
94
99
  onClose: () => void;
95
100
  products?: IProduct[];
101
+ product?: IProduct;
96
102
  onProductClicked: (prod: IProduct) => void;
97
103
  currency: string;
98
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",