@orderingstack/ordering-types 1.0.16 → 1.0.19
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/cjs/index.d.ts +13 -2
- package/dist/cjs/kiosk.d.ts +29 -6
- package/dist/esm/index.d.ts +13 -2
- package/dist/esm/kiosk.d.ts +29 -6
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -70,6 +70,16 @@ export interface IProductAvailability {
|
|
|
70
70
|
SAT?: [string, string];
|
|
71
71
|
SUN?: [string, string];
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* IProductExtra interface
|
|
75
|
+
*
|
|
76
|
+
* @interface IProductExtra
|
|
77
|
+
* @related {string} comma separated related products IDs
|
|
78
|
+
*/
|
|
79
|
+
export interface IProductExtra extends Partial<Record<string, string>> {
|
|
80
|
+
related?: string;
|
|
81
|
+
category?: string;
|
|
82
|
+
}
|
|
73
83
|
export interface IProduct {
|
|
74
84
|
availability?: IProductAvailability;
|
|
75
85
|
id: string;
|
|
@@ -93,7 +103,7 @@ export interface IProduct {
|
|
|
93
103
|
emit?: IProductEmit;
|
|
94
104
|
qtyMin?: string;
|
|
95
105
|
qtyMax?: string;
|
|
96
|
-
_?:
|
|
106
|
+
_?: IProductExtra;
|
|
97
107
|
bom?: Record<string, {
|
|
98
108
|
unit: string;
|
|
99
109
|
qty: string;
|
|
@@ -314,7 +324,7 @@ export interface ITaxSummary {
|
|
|
314
324
|
* @x-agg-id {string} order ID from aggregator
|
|
315
325
|
* @support-order-id {string} order code from aggregator to be used with support and same as seen by customer,
|
|
316
326
|
*/
|
|
317
|
-
export interface IOrderExtra {
|
|
327
|
+
export interface IOrderExtra extends Partial<Record<string, string>> {
|
|
318
328
|
"x-source"?: OrderSource;
|
|
319
329
|
"x-source-type"?: "INTEGRATOR";
|
|
320
330
|
"manual-verify"?: string;
|
|
@@ -328,6 +338,7 @@ export interface IOrderExtra {
|
|
|
328
338
|
"x-agg-id"?: string;
|
|
329
339
|
"support-order-id"?: string;
|
|
330
340
|
"x-pos-id"?: string;
|
|
341
|
+
"company-tax-id"?: string;
|
|
331
342
|
}
|
|
332
343
|
export interface IOrderLog {
|
|
333
344
|
timestamp?: string;
|
package/dist/cjs/kiosk.d.ts
CHANGED
|
@@ -43,12 +43,6 @@ export interface ITheme {
|
|
|
43
43
|
export interface IMenuProps {
|
|
44
44
|
menu: IProduct[];
|
|
45
45
|
handleSelectProduct: (product: IProduct | string) => void;
|
|
46
|
-
Header?: ReactElement;
|
|
47
|
-
Logo?: ReactElement;
|
|
48
|
-
TopNav?: ReactElement;
|
|
49
|
-
BottomNav?: ReactElement;
|
|
50
|
-
MenuTile?: React.FC<IMenuTileProps>;
|
|
51
|
-
CategorySection?: React.FC<IMenuCategorySectionProps>;
|
|
52
46
|
fallbackImg?: string;
|
|
53
47
|
lazyLoadImg?: boolean;
|
|
54
48
|
currency?: string;
|
|
@@ -64,6 +58,7 @@ export interface IMenuProps {
|
|
|
64
58
|
goToStart: (state?: any) => void;
|
|
65
59
|
order?: IOrder;
|
|
66
60
|
changeQuantity: (line: IOrderLine, quantity: number) => void;
|
|
61
|
+
components: IMenuComponents;
|
|
67
62
|
}
|
|
68
63
|
export interface IMenuTileProps {
|
|
69
64
|
product: IProduct;
|
|
@@ -82,6 +77,34 @@ export interface IMenuCategorySectionProps {
|
|
|
82
77
|
colsLg?: number;
|
|
83
78
|
MenuTile?: React.FC<IMenuTileProps>;
|
|
84
79
|
}
|
|
80
|
+
export interface IMenuTopNavProps {
|
|
81
|
+
goToStart: (state?: any) => void;
|
|
82
|
+
goToCheckout: (state?: any) => void;
|
|
83
|
+
order?: IOrder;
|
|
84
|
+
}
|
|
85
|
+
export interface IMenuBottomNavProps {
|
|
86
|
+
order?: IOrder;
|
|
87
|
+
currency?: string;
|
|
88
|
+
goToCheckout?: (state?: any) => void;
|
|
89
|
+
fallbackImg?: string;
|
|
90
|
+
changeQuantity: (line: IOrderLine, quantity: number) => void;
|
|
91
|
+
}
|
|
92
|
+
export interface IMenuUpsizeProps {
|
|
93
|
+
show: boolean;
|
|
94
|
+
onClose: () => void;
|
|
95
|
+
products?: IProduct[];
|
|
96
|
+
onProductClicked: (prod: IProduct) => void;
|
|
97
|
+
currency: string;
|
|
98
|
+
}
|
|
99
|
+
export interface IMenuComponents {
|
|
100
|
+
TopNav?: React.FC<IMenuTopNavProps>;
|
|
101
|
+
BottomNav?: React.FC<IMenuBottomNavProps>;
|
|
102
|
+
MenuTile?: React.FC<IMenuTileProps>;
|
|
103
|
+
CategorySection?: React.FC<IMenuCategorySectionProps>;
|
|
104
|
+
Header?: ReactElement;
|
|
105
|
+
Logo?: ReactElement;
|
|
106
|
+
Upsize?: React.FC<IMenuUpsizeProps>;
|
|
107
|
+
}
|
|
85
108
|
export interface IProductConfiguratorProps {
|
|
86
109
|
product: IProduct;
|
|
87
110
|
components: IProductConfiguratorComponents;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -70,6 +70,16 @@ export interface IProductAvailability {
|
|
|
70
70
|
SAT?: [string, string];
|
|
71
71
|
SUN?: [string, string];
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* IProductExtra interface
|
|
75
|
+
*
|
|
76
|
+
* @interface IProductExtra
|
|
77
|
+
* @related {string} comma separated related products IDs
|
|
78
|
+
*/
|
|
79
|
+
export interface IProductExtra extends Partial<Record<string, string>> {
|
|
80
|
+
related?: string;
|
|
81
|
+
category?: string;
|
|
82
|
+
}
|
|
73
83
|
export interface IProduct {
|
|
74
84
|
availability?: IProductAvailability;
|
|
75
85
|
id: string;
|
|
@@ -93,7 +103,7 @@ export interface IProduct {
|
|
|
93
103
|
emit?: IProductEmit;
|
|
94
104
|
qtyMin?: string;
|
|
95
105
|
qtyMax?: string;
|
|
96
|
-
_?:
|
|
106
|
+
_?: IProductExtra;
|
|
97
107
|
bom?: Record<string, {
|
|
98
108
|
unit: string;
|
|
99
109
|
qty: string;
|
|
@@ -314,7 +324,7 @@ export interface ITaxSummary {
|
|
|
314
324
|
* @x-agg-id {string} order ID from aggregator
|
|
315
325
|
* @support-order-id {string} order code from aggregator to be used with support and same as seen by customer,
|
|
316
326
|
*/
|
|
317
|
-
export interface IOrderExtra {
|
|
327
|
+
export interface IOrderExtra extends Partial<Record<string, string>> {
|
|
318
328
|
"x-source"?: OrderSource;
|
|
319
329
|
"x-source-type"?: "INTEGRATOR";
|
|
320
330
|
"manual-verify"?: string;
|
|
@@ -328,6 +338,7 @@ export interface IOrderExtra {
|
|
|
328
338
|
"x-agg-id"?: string;
|
|
329
339
|
"support-order-id"?: string;
|
|
330
340
|
"x-pos-id"?: string;
|
|
341
|
+
"company-tax-id"?: string;
|
|
331
342
|
}
|
|
332
343
|
export interface IOrderLog {
|
|
333
344
|
timestamp?: string;
|
package/dist/esm/kiosk.d.ts
CHANGED
|
@@ -43,12 +43,6 @@ export interface ITheme {
|
|
|
43
43
|
export interface IMenuProps {
|
|
44
44
|
menu: IProduct[];
|
|
45
45
|
handleSelectProduct: (product: IProduct | string) => void;
|
|
46
|
-
Header?: ReactElement;
|
|
47
|
-
Logo?: ReactElement;
|
|
48
|
-
TopNav?: ReactElement;
|
|
49
|
-
BottomNav?: ReactElement;
|
|
50
|
-
MenuTile?: React.FC<IMenuTileProps>;
|
|
51
|
-
CategorySection?: React.FC<IMenuCategorySectionProps>;
|
|
52
46
|
fallbackImg?: string;
|
|
53
47
|
lazyLoadImg?: boolean;
|
|
54
48
|
currency?: string;
|
|
@@ -64,6 +58,7 @@ export interface IMenuProps {
|
|
|
64
58
|
goToStart: (state?: any) => void;
|
|
65
59
|
order?: IOrder;
|
|
66
60
|
changeQuantity: (line: IOrderLine, quantity: number) => void;
|
|
61
|
+
components: IMenuComponents;
|
|
67
62
|
}
|
|
68
63
|
export interface IMenuTileProps {
|
|
69
64
|
product: IProduct;
|
|
@@ -82,6 +77,34 @@ export interface IMenuCategorySectionProps {
|
|
|
82
77
|
colsLg?: number;
|
|
83
78
|
MenuTile?: React.FC<IMenuTileProps>;
|
|
84
79
|
}
|
|
80
|
+
export interface IMenuTopNavProps {
|
|
81
|
+
goToStart: (state?: any) => void;
|
|
82
|
+
goToCheckout: (state?: any) => void;
|
|
83
|
+
order?: IOrder;
|
|
84
|
+
}
|
|
85
|
+
export interface IMenuBottomNavProps {
|
|
86
|
+
order?: IOrder;
|
|
87
|
+
currency?: string;
|
|
88
|
+
goToCheckout?: (state?: any) => void;
|
|
89
|
+
fallbackImg?: string;
|
|
90
|
+
changeQuantity: (line: IOrderLine, quantity: number) => void;
|
|
91
|
+
}
|
|
92
|
+
export interface IMenuUpsizeProps {
|
|
93
|
+
show: boolean;
|
|
94
|
+
onClose: () => void;
|
|
95
|
+
products?: IProduct[];
|
|
96
|
+
onProductClicked: (prod: IProduct) => void;
|
|
97
|
+
currency: string;
|
|
98
|
+
}
|
|
99
|
+
export interface IMenuComponents {
|
|
100
|
+
TopNav?: React.FC<IMenuTopNavProps>;
|
|
101
|
+
BottomNav?: React.FC<IMenuBottomNavProps>;
|
|
102
|
+
MenuTile?: React.FC<IMenuTileProps>;
|
|
103
|
+
CategorySection?: React.FC<IMenuCategorySectionProps>;
|
|
104
|
+
Header?: ReactElement;
|
|
105
|
+
Logo?: ReactElement;
|
|
106
|
+
Upsize?: React.FC<IMenuUpsizeProps>;
|
|
107
|
+
}
|
|
85
108
|
export interface IProductConfiguratorProps {
|
|
86
109
|
product: IProduct;
|
|
87
110
|
components: IProductConfiguratorComponents;
|