@open-tender/types 0.4.61 → 0.4.63
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/LICENSE.md +21 -21
- package/README.md +2 -2
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/types/api/alerts.d.ts +5 -5
- package/dist/cjs/types/api/alerts.js +2 -2
- package/dist/cjs/types/api/allergens.d.ts +13 -13
- package/dist/cjs/types/api/allergens.js +2 -2
- package/dist/cjs/types/api/announcements.d.ts +57 -57
- package/dist/cjs/types/api/announcements.js +2 -2
- package/dist/cjs/types/api/arrivals.d.ts +14 -14
- package/dist/cjs/types/api/arrivals.js +2 -2
- package/dist/cjs/types/api/cart.d.ts +106 -106
- package/dist/cjs/types/api/cart.js +2 -2
- package/dist/cjs/types/api/checkout.d.ts +307 -307
- package/dist/cjs/types/api/checkout.js +29 -29
- package/dist/cjs/types/api/completedOrders.d.ts +42 -42
- package/dist/cjs/types/api/completedOrders.js +2 -2
- package/dist/cjs/types/api/config.d.ts +511 -511
- package/dist/cjs/types/api/config.js +2 -2
- package/dist/cjs/types/api/creditCards.d.ts +39 -39
- package/dist/cjs/types/api/creditCards.js +2 -2
- package/dist/cjs/types/api/customer/account.d.ts +24 -24
- package/dist/cjs/types/api/customer/account.js +2 -2
- package/dist/cjs/types/api/customer/addresses.d.ts +24 -24
- package/dist/cjs/types/api/customer/addresses.js +2 -2
- package/dist/cjs/types/api/customer/allergens.d.ts +5 -5
- package/dist/cjs/types/api/customer/allergens.js +2 -2
- package/dist/cjs/types/api/customer/communicationPreferences.d.ts +12 -12
- package/dist/cjs/types/api/customer/communicationPreferences.js +2 -2
- package/dist/cjs/types/api/customer/customer.d.ts +54 -54
- package/dist/cjs/types/api/customer/customer.js +2 -2
- package/dist/cjs/types/api/customer/giftCards.d.ts +36 -36
- package/dist/cjs/types/api/customer/giftCards.js +2 -2
- package/dist/cjs/types/api/customer/groupOrders.d.ts +62 -62
- package/dist/cjs/types/api/customer/groupOrders.js +11 -11
- package/dist/cjs/types/api/customer/houseAccounts.d.ts +21 -21
- package/dist/cjs/types/api/customer/houseAccounts.js +2 -2
- package/dist/cjs/types/api/customer/identify.d.ts +46 -46
- package/dist/cjs/types/api/customer/identify.js +2 -2
- package/dist/cjs/types/api/customer/index.d.ts +13 -13
- package/dist/cjs/types/api/customer/index.js +17 -17
- package/dist/cjs/types/api/customer/loyalty.d.ts +70 -70
- package/dist/cjs/types/api/customer/loyalty.js +2 -2
- package/dist/cjs/types/api/customer/qrcode.d.ts +3 -3
- package/dist/cjs/types/api/customer/qrcode.js +2 -2
- package/dist/cjs/types/api/customer/thanx.d.ts +26 -26
- package/dist/cjs/types/api/customer/thanx.js +2 -2
- package/dist/cjs/types/api/customer/tpls.d.ts +74 -74
- package/dist/cjs/types/api/customer/tpls.js +2 -2
- package/dist/cjs/types/api/devices.d.ts +94 -94
- package/dist/cjs/types/api/devices.js +2 -2
- package/dist/cjs/types/api/discounts.d.ts +63 -63
- package/dist/cjs/types/api/discounts.js +2 -2
- package/dist/cjs/types/api/donations.d.ts +12 -12
- package/dist/cjs/types/api/donations.js +2 -2
- package/dist/cjs/types/api/employee.d.ts +70 -70
- package/dist/cjs/types/api/employee.js +2 -2
- package/dist/cjs/types/api/errorAlerts.d.ts +9 -9
- package/dist/cjs/types/api/errorAlerts.js +2 -2
- package/dist/cjs/types/api/favorite.d.ts +13 -13
- package/dist/cjs/types/api/favorite.js +2 -2
- package/dist/cjs/types/api/giftCard.d.ts +11 -11
- package/dist/cjs/types/api/giftCard.js +2 -2
- package/dist/cjs/types/api/index.d.ts +36 -36
- package/dist/cjs/types/api/index.js +39 -39
- package/dist/cjs/types/api/itemTypes.d.ts +15 -15
- package/dist/cjs/types/api/itemTypes.js +2 -2
- package/dist/cjs/types/api/kds.d.ts +100 -100
- package/dist/cjs/types/api/kds.js +2 -2
- package/dist/cjs/types/api/kiosk.d.ts +35 -34
- package/dist/cjs/types/api/kiosk.js +2 -2
- package/dist/cjs/types/api/menu.d.ts +179 -179
- package/dist/cjs/types/api/menu.js +2 -2
- package/dist/cjs/types/api/menuPages.d.ts +21 -21
- package/dist/cjs/types/api/menuPages.js +2 -2
- package/dist/cjs/types/api/messages.d.ts +5 -5
- package/dist/cjs/types/api/messages.js +2 -2
- package/dist/cjs/types/api/notifications.d.ts +5 -5
- package/dist/cjs/types/api/notifications.js +2 -2
- package/dist/cjs/types/api/offlineAuths.d.ts +12 -12
- package/dist/cjs/types/api/offlineAuths.js +2 -2
- package/dist/cjs/types/api/order.d.ts +350 -350
- package/dist/cjs/types/api/order.js +19 -19
- package/dist/cjs/types/api/orders.d.ts +5 -5
- package/dist/cjs/types/api/orders.js +2 -2
- package/dist/cjs/types/api/refund.d.ts +22 -22
- package/dist/cjs/types/api/refund.js +2 -2
- package/dist/cjs/types/api/revenueCenter.d.ts +167 -167
- package/dist/cjs/types/api/revenueCenter.js +2 -2
- package/dist/cjs/types/api/selectOptions.d.ts +7 -7
- package/dist/cjs/types/api/selectOptions.js +2 -2
- package/dist/cjs/types/api/settings.d.ts +10 -10
- package/dist/cjs/types/api/settings.js +2 -2
- package/dist/cjs/types/api/store.d.ts +124 -102
- package/dist/cjs/types/api/store.js +2 -2
- package/dist/cjs/types/api/surcharges.d.ts +15 -15
- package/dist/cjs/types/api/surcharges.js +2 -2
- package/dist/cjs/types/api/tags.d.ts +13 -13
- package/dist/cjs/types/api/tags.js +2 -2
- package/dist/cjs/types/api/taxes.d.ts +15 -15
- package/dist/cjs/types/api/taxes.js +2 -2
- package/dist/cjs/types/api/theme.d.ts +737 -737
- package/dist/cjs/types/api/theme.js +2 -2
- package/dist/cjs/types/datetimes.d.ts +52 -52
- package/dist/cjs/types/datetimes.js +2 -2
- package/dist/cjs/types/errors.d.ts +2 -2
- package/dist/cjs/types/errors.js +5 -5
- package/dist/cjs/types/global.d.ts +58 -58
- package/dist/cjs/types/global.js +2 -2
- package/dist/cjs/types/index.d.ts +8 -8
- package/dist/cjs/types/index.js +11 -11
- package/dist/cjs/types/inputs.d.ts +82 -82
- package/dist/cjs/types/inputs.js +23 -23
- package/dist/cjs/types/pizzaBuilder.d.ts +7 -7
- package/dist/cjs/types/pizzaBuilder.js +2 -2
- package/dist/cjs/types/request.d.ts +27 -27
- package/dist/cjs/types/request.js +2 -2
- package/dist/cjs/types/themePos.d.ts +117 -117
- package/dist/cjs/types/themePos.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/api/alerts.d.ts +5 -5
- package/dist/esm/types/api/alerts.js +1 -1
- package/dist/esm/types/api/allergens.d.ts +13 -13
- package/dist/esm/types/api/allergens.js +1 -1
- package/dist/esm/types/api/announcements.d.ts +57 -57
- package/dist/esm/types/api/announcements.js +1 -1
- package/dist/esm/types/api/arrivals.d.ts +14 -14
- package/dist/esm/types/api/arrivals.js +1 -1
- package/dist/esm/types/api/cart.d.ts +106 -106
- package/dist/esm/types/api/cart.js +1 -1
- package/dist/esm/types/api/checkout.d.ts +307 -307
- package/dist/esm/types/api/checkout.js +20 -20
- package/dist/esm/types/api/completedOrders.d.ts +42 -42
- package/dist/esm/types/api/completedOrders.js +1 -1
- package/dist/esm/types/api/config.d.ts +511 -511
- package/dist/esm/types/api/config.js +1 -1
- package/dist/esm/types/api/creditCards.d.ts +39 -39
- package/dist/esm/types/api/creditCards.js +1 -1
- package/dist/esm/types/api/customer/account.d.ts +24 -24
- package/dist/esm/types/api/customer/account.js +1 -1
- package/dist/esm/types/api/customer/addresses.d.ts +24 -24
- package/dist/esm/types/api/customer/addresses.js +1 -1
- package/dist/esm/types/api/customer/allergens.d.ts +5 -5
- package/dist/esm/types/api/customer/allergens.js +1 -1
- package/dist/esm/types/api/customer/communicationPreferences.d.ts +12 -12
- package/dist/esm/types/api/customer/communicationPreferences.js +1 -1
- package/dist/esm/types/api/customer/customer.d.ts +54 -54
- package/dist/esm/types/api/customer/customer.js +1 -1
- package/dist/esm/types/api/customer/giftCards.d.ts +36 -36
- package/dist/esm/types/api/customer/giftCards.js +1 -1
- package/dist/esm/types/api/customer/groupOrders.d.ts +62 -62
- package/dist/esm/types/api/customer/groupOrders.js +6 -6
- package/dist/esm/types/api/customer/houseAccounts.d.ts +21 -21
- package/dist/esm/types/api/customer/houseAccounts.js +1 -1
- package/dist/esm/types/api/customer/identify.d.ts +46 -46
- package/dist/esm/types/api/customer/identify.js +1 -1
- package/dist/esm/types/api/customer/index.d.ts +13 -13
- package/dist/esm/types/api/customer/index.js +14 -14
- package/dist/esm/types/api/customer/loyalty.d.ts +70 -70
- package/dist/esm/types/api/customer/loyalty.js +1 -1
- package/dist/esm/types/api/customer/qrcode.d.ts +3 -3
- package/dist/esm/types/api/customer/qrcode.js +1 -1
- package/dist/esm/types/api/customer/thanx.d.ts +26 -26
- package/dist/esm/types/api/customer/thanx.js +1 -1
- package/dist/esm/types/api/customer/tpls.d.ts +74 -74
- package/dist/esm/types/api/customer/tpls.js +1 -1
- package/dist/esm/types/api/devices.d.ts +94 -94
- package/dist/esm/types/api/devices.js +1 -1
- package/dist/esm/types/api/discounts.d.ts +63 -63
- package/dist/esm/types/api/discounts.js +1 -1
- package/dist/esm/types/api/donations.d.ts +12 -12
- package/dist/esm/types/api/donations.js +1 -1
- package/dist/esm/types/api/employee.d.ts +70 -70
- package/dist/esm/types/api/employee.js +1 -1
- package/dist/esm/types/api/errorAlerts.d.ts +9 -9
- package/dist/esm/types/api/errorAlerts.js +1 -1
- package/dist/esm/types/api/favorite.d.ts +13 -13
- package/dist/esm/types/api/favorite.js +1 -1
- package/dist/esm/types/api/giftCard.d.ts +11 -11
- package/dist/esm/types/api/giftCard.js +1 -1
- package/dist/esm/types/api/index.d.ts +36 -36
- package/dist/esm/types/api/index.js +36 -36
- package/dist/esm/types/api/itemTypes.d.ts +15 -15
- package/dist/esm/types/api/itemTypes.js +1 -1
- package/dist/esm/types/api/kds.d.ts +100 -100
- package/dist/esm/types/api/kds.js +1 -1
- package/dist/esm/types/api/kiosk.d.ts +35 -34
- package/dist/esm/types/api/kiosk.js +1 -1
- package/dist/esm/types/api/menu.d.ts +179 -179
- package/dist/esm/types/api/menu.js +1 -1
- package/dist/esm/types/api/menuPages.d.ts +21 -21
- package/dist/esm/types/api/menuPages.js +1 -1
- package/dist/esm/types/api/messages.d.ts +5 -5
- package/dist/esm/types/api/messages.js +1 -1
- package/dist/esm/types/api/notifications.d.ts +5 -5
- package/dist/esm/types/api/notifications.js +1 -1
- package/dist/esm/types/api/offlineAuths.d.ts +12 -12
- package/dist/esm/types/api/offlineAuths.js +1 -1
- package/dist/esm/types/api/order.d.ts +350 -350
- package/dist/esm/types/api/order.js +12 -12
- package/dist/esm/types/api/orders.d.ts +5 -5
- package/dist/esm/types/api/orders.js +1 -1
- package/dist/esm/types/api/refund.d.ts +22 -22
- package/dist/esm/types/api/refund.js +1 -1
- package/dist/esm/types/api/revenueCenter.d.ts +167 -167
- package/dist/esm/types/api/revenueCenter.js +1 -1
- package/dist/esm/types/api/selectOptions.d.ts +7 -7
- package/dist/esm/types/api/selectOptions.js +1 -1
- package/dist/esm/types/api/settings.d.ts +10 -10
- package/dist/esm/types/api/settings.js +1 -1
- package/dist/esm/types/api/store.d.ts +124 -102
- package/dist/esm/types/api/store.js +1 -1
- package/dist/esm/types/api/surcharges.d.ts +15 -15
- package/dist/esm/types/api/surcharges.js +1 -1
- package/dist/esm/types/api/tags.d.ts +13 -13
- package/dist/esm/types/api/tags.js +1 -1
- package/dist/esm/types/api/taxes.d.ts +15 -15
- package/dist/esm/types/api/taxes.js +1 -1
- package/dist/esm/types/api/theme.d.ts +737 -737
- package/dist/esm/types/api/theme.js +1 -1
- package/dist/esm/types/datetimes.d.ts +52 -52
- package/dist/esm/types/datetimes.js +1 -1
- package/dist/esm/types/errors.d.ts +2 -2
- package/dist/esm/types/errors.js +2 -2
- package/dist/esm/types/global.d.ts +58 -58
- package/dist/esm/types/global.js +1 -1
- package/dist/esm/types/index.d.ts +8 -8
- package/dist/esm/types/index.js +8 -8
- package/dist/esm/types/inputs.d.ts +82 -82
- package/dist/esm/types/inputs.js +15 -15
- package/dist/esm/types/pizzaBuilder.d.ts +7 -7
- package/dist/esm/types/pizzaBuilder.js +1 -1
- package/dist/esm/types/request.d.ts +27 -27
- package/dist/esm/types/request.js +1 -1
- package/dist/esm/types/themePos.d.ts +117 -117
- package/dist/esm/types/themePos.js +1 -1
- package/package.json +59 -59
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type Layout = {
|
|
3
|
-
padding: string;
|
|
4
|
-
margin: string;
|
|
5
|
-
headerHeight: string;
|
|
6
|
-
footerHeight: string;
|
|
7
|
-
sidebarWidth: string;
|
|
8
|
-
gutter: string;
|
|
9
|
-
paddingLessGutter: string;
|
|
10
|
-
marginLessGutter: string;
|
|
11
|
-
aside: {
|
|
12
|
-
width: string;
|
|
13
|
-
buttonHeight: string;
|
|
14
|
-
};
|
|
15
|
-
bigButton: {
|
|
16
|
-
width: string;
|
|
17
|
-
height: string;
|
|
18
|
-
};
|
|
19
|
-
tallButton: {
|
|
20
|
-
width: string;
|
|
21
|
-
height: string;
|
|
22
|
-
};
|
|
23
|
-
nav: {
|
|
24
|
-
width: string;
|
|
25
|
-
height: string;
|
|
26
|
-
};
|
|
27
|
-
cards: {
|
|
28
|
-
padding: string;
|
|
29
|
-
tktMinHeight: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export declare type Font = {
|
|
33
|
-
fontFamily: string;
|
|
34
|
-
fontWeight: string;
|
|
35
|
-
fontStyle: string;
|
|
36
|
-
lineHeight: string;
|
|
37
|
-
letterSpacing: string;
|
|
38
|
-
};
|
|
39
|
-
export declare type FontSizes = {
|
|
40
|
-
xxxsmall: string;
|
|
41
|
-
xxsmall: string;
|
|
42
|
-
xsmall: string;
|
|
43
|
-
small: string;
|
|
44
|
-
medium: string;
|
|
45
|
-
large: string;
|
|
46
|
-
xlarge: string;
|
|
47
|
-
xxlarge: string;
|
|
48
|
-
xxxlarge: string;
|
|
49
|
-
mega: string;
|
|
50
|
-
giga: string;
|
|
51
|
-
tera: string;
|
|
52
|
-
};
|
|
53
|
-
export declare type Color = {
|
|
54
|
-
primary: string;
|
|
55
|
-
secondary: string;
|
|
56
|
-
tertiary: string;
|
|
57
|
-
};
|
|
58
|
-
export declare type Colors = {
|
|
59
|
-
text: Color;
|
|
60
|
-
background: Color;
|
|
61
|
-
border: Color;
|
|
62
|
-
link: Color;
|
|
63
|
-
error: Color;
|
|
64
|
-
success: Color;
|
|
65
|
-
alert: Color;
|
|
66
|
-
};
|
|
67
|
-
export declare type HeaderColor = {
|
|
68
|
-
text: string;
|
|
69
|
-
timer: string;
|
|
70
|
-
background: string;
|
|
71
|
-
border: string;
|
|
72
|
-
};
|
|
73
|
-
export declare type HeaderColors = {
|
|
74
|
-
default: HeaderColor;
|
|
75
|
-
alert: HeaderColor;
|
|
76
|
-
error: HeaderColor;
|
|
77
|
-
};
|
|
78
|
-
export declare type AlertColors = {
|
|
79
|
-
text: string;
|
|
80
|
-
default: string;
|
|
81
|
-
warning: string;
|
|
82
|
-
error: string;
|
|
83
|
-
success: string;
|
|
84
|
-
};
|
|
85
|
-
export declare type ButtonColor = {
|
|
86
|
-
color: string;
|
|
87
|
-
bgColor: string;
|
|
88
|
-
borderColor: string;
|
|
89
|
-
};
|
|
90
|
-
export declare type ButtonColors = {
|
|
91
|
-
primary: ButtonColor;
|
|
92
|
-
secondary: ButtonColor;
|
|
93
|
-
invisible: ButtonColor;
|
|
94
|
-
black: ButtonColor;
|
|
95
|
-
white: ButtonColor;
|
|
96
|
-
error: ButtonColor;
|
|
97
|
-
success: ButtonColor;
|
|
98
|
-
alert: ButtonColor;
|
|
99
|
-
};
|
|
100
|
-
export declare type ButtonSize = {
|
|
101
|
-
fontSize: string;
|
|
102
|
-
padding: string;
|
|
103
|
-
height: string;
|
|
104
|
-
};
|
|
105
|
-
export declare type ButtonSizes = {
|
|
106
|
-
xsmall: ButtonSize;
|
|
107
|
-
small: ButtonSize;
|
|
108
|
-
medium: ButtonSize;
|
|
109
|
-
large: ButtonSize;
|
|
110
|
-
xlarge: ButtonSize;
|
|
111
|
-
};
|
|
112
|
-
export interface NavButtonProps {
|
|
113
|
-
text: string;
|
|
114
|
-
icon: React.ReactNode;
|
|
115
|
-
onClick: () => void;
|
|
116
|
-
isActive: boolean;
|
|
117
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type Layout = {
|
|
3
|
+
padding: string;
|
|
4
|
+
margin: string;
|
|
5
|
+
headerHeight: string;
|
|
6
|
+
footerHeight: string;
|
|
7
|
+
sidebarWidth: string;
|
|
8
|
+
gutter: string;
|
|
9
|
+
paddingLessGutter: string;
|
|
10
|
+
marginLessGutter: string;
|
|
11
|
+
aside: {
|
|
12
|
+
width: string;
|
|
13
|
+
buttonHeight: string;
|
|
14
|
+
};
|
|
15
|
+
bigButton: {
|
|
16
|
+
width: string;
|
|
17
|
+
height: string;
|
|
18
|
+
};
|
|
19
|
+
tallButton: {
|
|
20
|
+
width: string;
|
|
21
|
+
height: string;
|
|
22
|
+
};
|
|
23
|
+
nav: {
|
|
24
|
+
width: string;
|
|
25
|
+
height: string;
|
|
26
|
+
};
|
|
27
|
+
cards: {
|
|
28
|
+
padding: string;
|
|
29
|
+
tktMinHeight: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare type Font = {
|
|
33
|
+
fontFamily: string;
|
|
34
|
+
fontWeight: string;
|
|
35
|
+
fontStyle: string;
|
|
36
|
+
lineHeight: string;
|
|
37
|
+
letterSpacing: string;
|
|
38
|
+
};
|
|
39
|
+
export declare type FontSizes = {
|
|
40
|
+
xxxsmall: string;
|
|
41
|
+
xxsmall: string;
|
|
42
|
+
xsmall: string;
|
|
43
|
+
small: string;
|
|
44
|
+
medium: string;
|
|
45
|
+
large: string;
|
|
46
|
+
xlarge: string;
|
|
47
|
+
xxlarge: string;
|
|
48
|
+
xxxlarge: string;
|
|
49
|
+
mega: string;
|
|
50
|
+
giga: string;
|
|
51
|
+
tera: string;
|
|
52
|
+
};
|
|
53
|
+
export declare type Color = {
|
|
54
|
+
primary: string;
|
|
55
|
+
secondary: string;
|
|
56
|
+
tertiary: string;
|
|
57
|
+
};
|
|
58
|
+
export declare type Colors = {
|
|
59
|
+
text: Color;
|
|
60
|
+
background: Color;
|
|
61
|
+
border: Color;
|
|
62
|
+
link: Color;
|
|
63
|
+
error: Color;
|
|
64
|
+
success: Color;
|
|
65
|
+
alert: Color;
|
|
66
|
+
};
|
|
67
|
+
export declare type HeaderColor = {
|
|
68
|
+
text: string;
|
|
69
|
+
timer: string;
|
|
70
|
+
background: string;
|
|
71
|
+
border: string;
|
|
72
|
+
};
|
|
73
|
+
export declare type HeaderColors = {
|
|
74
|
+
default: HeaderColor;
|
|
75
|
+
alert: HeaderColor;
|
|
76
|
+
error: HeaderColor;
|
|
77
|
+
};
|
|
78
|
+
export declare type AlertColors = {
|
|
79
|
+
text: string;
|
|
80
|
+
default: string;
|
|
81
|
+
warning: string;
|
|
82
|
+
error: string;
|
|
83
|
+
success: string;
|
|
84
|
+
};
|
|
85
|
+
export declare type ButtonColor = {
|
|
86
|
+
color: string;
|
|
87
|
+
bgColor: string;
|
|
88
|
+
borderColor: string;
|
|
89
|
+
};
|
|
90
|
+
export declare type ButtonColors = {
|
|
91
|
+
primary: ButtonColor;
|
|
92
|
+
secondary: ButtonColor;
|
|
93
|
+
invisible: ButtonColor;
|
|
94
|
+
black: ButtonColor;
|
|
95
|
+
white: ButtonColor;
|
|
96
|
+
error: ButtonColor;
|
|
97
|
+
success: ButtonColor;
|
|
98
|
+
alert: ButtonColor;
|
|
99
|
+
};
|
|
100
|
+
export declare type ButtonSize = {
|
|
101
|
+
fontSize: string;
|
|
102
|
+
padding: string;
|
|
103
|
+
height: string;
|
|
104
|
+
};
|
|
105
|
+
export declare type ButtonSizes = {
|
|
106
|
+
xsmall: ButtonSize;
|
|
107
|
+
small: ButtonSize;
|
|
108
|
+
medium: ButtonSize;
|
|
109
|
+
large: ButtonSize;
|
|
110
|
+
xlarge: ButtonSize;
|
|
111
|
+
};
|
|
112
|
+
export interface NavButtonProps {
|
|
113
|
+
text: string;
|
|
114
|
+
icon: React.ReactNode;
|
|
115
|
+
onClick: () => void;
|
|
116
|
+
isActive: boolean;
|
|
117
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './types';
|
|
1
|
+
export * from './types';
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './types';
|
|
1
|
+
export * from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface Alert {
|
|
2
|
-
message: string;
|
|
3
|
-
id: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type Alerts = Alert[];
|
|
1
|
+
export interface Alert {
|
|
2
|
+
message: string;
|
|
3
|
+
id: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type Alerts = Alert[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Images } from '../global';
|
|
2
|
-
export interface Allergen {
|
|
3
|
-
allergen_id: number;
|
|
4
|
-
description: string | null;
|
|
5
|
-
images: Images | null;
|
|
6
|
-
name: string;
|
|
7
|
-
}
|
|
8
|
-
export declare type Allergens = Allergen[];
|
|
9
|
-
export declare type AllergenLookup = Record<string, Allergen>;
|
|
10
|
-
export interface AllergenEnhanced extends Allergen {
|
|
11
|
-
imageUrl: string;
|
|
12
|
-
}
|
|
13
|
-
export declare type AllergenLookupEnhanced = Record<string, AllergenEnhanced>;
|
|
1
|
+
import { Images } from '../global';
|
|
2
|
+
export interface Allergen {
|
|
3
|
+
allergen_id: number;
|
|
4
|
+
description: string | null;
|
|
5
|
+
images: Images | null;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type Allergens = Allergen[];
|
|
9
|
+
export declare type AllergenLookup = Record<string, Allergen>;
|
|
10
|
+
export interface AllergenEnhanced extends Allergen {
|
|
11
|
+
imageUrl: string;
|
|
12
|
+
}
|
|
13
|
+
export declare type AllergenLookupEnhanced = Record<string, AllergenEnhanced>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
export interface ContentImage {
|
|
2
|
-
type: 'SECONDARY_IMAGE' | 'FEATURED_IMAGE';
|
|
3
|
-
url: string | null;
|
|
4
|
-
}
|
|
5
|
-
export declare type ContentImages = ContentImage[];
|
|
6
|
-
export declare type AnnouncementVertical = 'TOP' | 'BOTTOM' | 'CENTER';
|
|
7
|
-
export declare type AnnouncementHorizontal = 'LEFT' | 'RIGHT' | 'CENTER';
|
|
8
|
-
export interface Announcement {
|
|
9
|
-
announcement_id: number;
|
|
10
|
-
display_order: number;
|
|
11
|
-
hide_text: boolean;
|
|
12
|
-
hide_text_mobile: boolean;
|
|
13
|
-
horizontal: AnnouncementHorizontal;
|
|
14
|
-
images: ContentImages;
|
|
15
|
-
overlay_color: string;
|
|
16
|
-
overlay_opacity: number;
|
|
17
|
-
show_overlay: boolean;
|
|
18
|
-
subtitle: string;
|
|
19
|
-
subtitle_color: string;
|
|
20
|
-
subtitle_size: number | string | null;
|
|
21
|
-
text_color: string;
|
|
22
|
-
title: string;
|
|
23
|
-
title_color: string;
|
|
24
|
-
title_size: number | string | null;
|
|
25
|
-
url: string | null;
|
|
26
|
-
url_text: string | null;
|
|
27
|
-
vertical: AnnouncementVertical;
|
|
28
|
-
imageUrl?: string | null;
|
|
29
|
-
}
|
|
30
|
-
export declare type AnnouncementPageType = 'ABOUT' | 'ACCOUNT' | 'CATERING' | 'CHECKOUT' | 'GUEST' | 'HOME' | 'MENU' | 'ORDER_TYPE';
|
|
31
|
-
export interface AnnouncementSettings {
|
|
32
|
-
announcement_page_id: number;
|
|
33
|
-
arrows_horizontal: string;
|
|
34
|
-
arrows_vertical: string;
|
|
35
|
-
autoplay: boolean;
|
|
36
|
-
duration: number;
|
|
37
|
-
duration_mobile: number;
|
|
38
|
-
hide_text: boolean;
|
|
39
|
-
hide_text_mobile: boolean;
|
|
40
|
-
page: AnnouncementPageType;
|
|
41
|
-
show_arrows: boolean;
|
|
42
|
-
show_arrows_mobile: boolean;
|
|
43
|
-
show_dots: boolean;
|
|
44
|
-
show_dots_mobile: boolean;
|
|
45
|
-
subtitle: string | null;
|
|
46
|
-
title: string | null;
|
|
47
|
-
transition: number;
|
|
48
|
-
transition_mobile: number;
|
|
49
|
-
transition_type: string;
|
|
50
|
-
}
|
|
51
|
-
export declare type Announcements = Announcement[];
|
|
52
|
-
export interface AnnouncementPage {
|
|
53
|
-
entities: Announcements;
|
|
54
|
-
page: AnnouncementPageType;
|
|
55
|
-
settings: AnnouncementSettings;
|
|
56
|
-
}
|
|
57
|
-
export declare type AnnouncementPages = AnnouncementPage[];
|
|
1
|
+
export interface ContentImage {
|
|
2
|
+
type: 'SECONDARY_IMAGE' | 'FEATURED_IMAGE';
|
|
3
|
+
url: string | null;
|
|
4
|
+
}
|
|
5
|
+
export declare type ContentImages = ContentImage[];
|
|
6
|
+
export declare type AnnouncementVertical = 'TOP' | 'BOTTOM' | 'CENTER';
|
|
7
|
+
export declare type AnnouncementHorizontal = 'LEFT' | 'RIGHT' | 'CENTER';
|
|
8
|
+
export interface Announcement {
|
|
9
|
+
announcement_id: number;
|
|
10
|
+
display_order: number;
|
|
11
|
+
hide_text: boolean;
|
|
12
|
+
hide_text_mobile: boolean;
|
|
13
|
+
horizontal: AnnouncementHorizontal;
|
|
14
|
+
images: ContentImages;
|
|
15
|
+
overlay_color: string;
|
|
16
|
+
overlay_opacity: number;
|
|
17
|
+
show_overlay: boolean;
|
|
18
|
+
subtitle: string;
|
|
19
|
+
subtitle_color: string;
|
|
20
|
+
subtitle_size: number | string | null;
|
|
21
|
+
text_color: string;
|
|
22
|
+
title: string;
|
|
23
|
+
title_color: string;
|
|
24
|
+
title_size: number | string | null;
|
|
25
|
+
url: string | null;
|
|
26
|
+
url_text: string | null;
|
|
27
|
+
vertical: AnnouncementVertical;
|
|
28
|
+
imageUrl?: string | null;
|
|
29
|
+
}
|
|
30
|
+
export declare type AnnouncementPageType = 'ABOUT' | 'ACCOUNT' | 'CATERING' | 'CHECKOUT' | 'GUEST' | 'HOME' | 'MENU' | 'ORDER_TYPE';
|
|
31
|
+
export interface AnnouncementSettings {
|
|
32
|
+
announcement_page_id: number;
|
|
33
|
+
arrows_horizontal: string;
|
|
34
|
+
arrows_vertical: string;
|
|
35
|
+
autoplay: boolean;
|
|
36
|
+
duration: number;
|
|
37
|
+
duration_mobile: number;
|
|
38
|
+
hide_text: boolean;
|
|
39
|
+
hide_text_mobile: boolean;
|
|
40
|
+
page: AnnouncementPageType;
|
|
41
|
+
show_arrows: boolean;
|
|
42
|
+
show_arrows_mobile: boolean;
|
|
43
|
+
show_dots: boolean;
|
|
44
|
+
show_dots_mobile: boolean;
|
|
45
|
+
subtitle: string | null;
|
|
46
|
+
title: string | null;
|
|
47
|
+
transition: number;
|
|
48
|
+
transition_mobile: number;
|
|
49
|
+
transition_type: string;
|
|
50
|
+
}
|
|
51
|
+
export declare type Announcements = Announcement[];
|
|
52
|
+
export interface AnnouncementPage {
|
|
53
|
+
entities: Announcements;
|
|
54
|
+
page: AnnouncementPageType;
|
|
55
|
+
settings: AnnouncementSettings;
|
|
56
|
+
}
|
|
57
|
+
export declare type AnnouncementPages = AnnouncementPage[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ISOStringOffset } from '../datetimes';
|
|
2
|
-
import { Customer } from './customer';
|
|
3
|
-
export interface Arrival {
|
|
4
|
-
arrived_utc: ISOStringOffset;
|
|
5
|
-
arrival_info: string | null;
|
|
6
|
-
customer?: Customer | null;
|
|
7
|
-
has_arrived: boolean;
|
|
8
|
-
order_id: number;
|
|
9
|
-
order_uuid: string;
|
|
10
|
-
vehicle_type: string | null;
|
|
11
|
-
vehicle_color: string | null;
|
|
12
|
-
vehicle_id: string | null;
|
|
13
|
-
}
|
|
14
|
-
export declare type Arrivals = Array<Arrival>;
|
|
1
|
+
import { ISOStringOffset } from '../datetimes';
|
|
2
|
+
import { Customer } from './customer';
|
|
3
|
+
export interface Arrival {
|
|
4
|
+
arrived_utc: ISOStringOffset;
|
|
5
|
+
arrival_info: string | null;
|
|
6
|
+
customer?: Customer | null;
|
|
7
|
+
has_arrived: boolean;
|
|
8
|
+
order_id: number;
|
|
9
|
+
order_uuid: string;
|
|
10
|
+
vehicle_type: string | null;
|
|
11
|
+
vehicle_color: string | null;
|
|
12
|
+
vehicle_id: string | null;
|
|
13
|
+
}
|
|
14
|
+
export declare type Arrivals = Array<Arrival>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import { MenuItemAllergens, MenuItemTags, NutritionalInfo } from './menu';
|
|
2
|
-
import { OrderItemPoints } from './order';
|
|
3
|
-
export interface BaseItemGroup {
|
|
4
|
-
id: number;
|
|
5
|
-
name: string;
|
|
6
|
-
options: BaseItem[];
|
|
7
|
-
}
|
|
8
|
-
export declare type BaseItemGroups = BaseItemGroup[];
|
|
9
|
-
export interface BaseItem {
|
|
10
|
-
id: number;
|
|
11
|
-
name: string;
|
|
12
|
-
quantity: number;
|
|
13
|
-
price: string | number;
|
|
14
|
-
groups: BaseItemGroups;
|
|
15
|
-
}
|
|
16
|
-
export declare type BaseItems = BaseItem[];
|
|
17
|
-
export interface CartItemOption {
|
|
18
|
-
allergens: string[];
|
|
19
|
-
allergens_list?: MenuItemAllergens;
|
|
20
|
-
cals: number | null;
|
|
21
|
-
description: string | null;
|
|
22
|
-
groups: CartItemGroups;
|
|
23
|
-
id: number;
|
|
24
|
-
imageUrl: string | null;
|
|
25
|
-
increment: number;
|
|
26
|
-
ingredients: string | null;
|
|
27
|
-
isDefault: boolean;
|
|
28
|
-
isSoldOut: boolean;
|
|
29
|
-
max: number;
|
|
30
|
-
min: number;
|
|
31
|
-
name: string;
|
|
32
|
-
nutritionalInfo: NutritionalInfo | null;
|
|
33
|
-
points: number | null;
|
|
34
|
-
price: number;
|
|
35
|
-
quantity: number;
|
|
36
|
-
shorthand: string | null;
|
|
37
|
-
shortDescription: string | null;
|
|
38
|
-
shortName: string;
|
|
39
|
-
slug: string;
|
|
40
|
-
tags: string[];
|
|
41
|
-
tags_list?: MenuItemTags;
|
|
42
|
-
totalAllergens: string[];
|
|
43
|
-
totalCals: number | null;
|
|
44
|
-
totalPoints: number | null;
|
|
45
|
-
totalPrice: number | null;
|
|
46
|
-
}
|
|
47
|
-
export declare type CartItemOptions = CartItemOption[];
|
|
48
|
-
export interface CartItemOptionWithGroup extends CartItemOption {
|
|
49
|
-
group: CartItemGroup;
|
|
50
|
-
}
|
|
51
|
-
export declare type CartItemOptionsWithGroup = CartItemOptionWithGroup[];
|
|
52
|
-
export interface CartItemOptionWithIndex extends CartItemOption {
|
|
53
|
-
index: number;
|
|
54
|
-
}
|
|
55
|
-
export interface CartItem extends Omit<CartItemOption, 'isDefault'> {
|
|
56
|
-
cartGuestId: number | null;
|
|
57
|
-
customerId: number | null;
|
|
58
|
-
index?: number;
|
|
59
|
-
madeFor: string | null;
|
|
60
|
-
notes: string | null;
|
|
61
|
-
signature?: string;
|
|
62
|
-
similarItems: number[];
|
|
63
|
-
upsellItems: number[];
|
|
64
|
-
}
|
|
65
|
-
export interface CartItemWithPoints extends Omit<CartItem, 'points'> {
|
|
66
|
-
points: OrderItemPoints | null;
|
|
67
|
-
}
|
|
68
|
-
export declare type CartWithPoints = CartItemWithPoints[];
|
|
69
|
-
export interface CartItemGroup {
|
|
70
|
-
description: string | null;
|
|
71
|
-
id: number;
|
|
72
|
-
imageUrl: string | null;
|
|
73
|
-
included: number;
|
|
74
|
-
isPizza: boolean;
|
|
75
|
-
isSize: boolean;
|
|
76
|
-
max: number;
|
|
77
|
-
min: number;
|
|
78
|
-
name: string;
|
|
79
|
-
options: CartItemOptions;
|
|
80
|
-
quantity: number;
|
|
81
|
-
}
|
|
82
|
-
export declare type CartItemGroups = CartItemGroup[];
|
|
83
|
-
export declare type Cart = CartItem[];
|
|
84
|
-
export declare type CartLevels = number[][];
|
|
85
|
-
export declare type CartCounts = Record<string, number>;
|
|
86
|
-
export declare type CartItemOptionLookup = Record<string, CartItemOption>;
|
|
87
|
-
export declare type CartItemGroupLookupOptions = Omit<CartItemGroup, 'options'> & {
|
|
88
|
-
options: CartItemOptionLookup;
|
|
89
|
-
};
|
|
90
|
-
export declare type CartItemGroupLookup = Record<string, CartItemGroupLookupOptions>;
|
|
91
|
-
export interface CartItemWithErrors extends CartItem {
|
|
92
|
-
missingGroups: CartItemGroupLookupOptions[];
|
|
93
|
-
invalidGroups: CartItemGroups;
|
|
94
|
-
missingOptions: CartItemOptions;
|
|
95
|
-
invalidOptions: CartItemOptions;
|
|
96
|
-
}
|
|
97
|
-
export declare type CartWithErrors = CartItemWithErrors[];
|
|
98
|
-
export interface CartErrors {
|
|
99
|
-
missingItems: Cart;
|
|
100
|
-
invalidItems: CartWithErrors;
|
|
101
|
-
}
|
|
102
|
-
export interface PosCartItem extends CartItem {
|
|
103
|
-
item_no: number;
|
|
104
|
-
line_no: number;
|
|
105
|
-
}
|
|
106
|
-
export declare type PosCart = PosCartItem[];
|
|
1
|
+
import { MenuItemAllergens, MenuItemTags, NutritionalInfo } from './menu';
|
|
2
|
+
import { OrderItemPoints } from './order';
|
|
3
|
+
export interface BaseItemGroup {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
options: BaseItem[];
|
|
7
|
+
}
|
|
8
|
+
export declare type BaseItemGroups = BaseItemGroup[];
|
|
9
|
+
export interface BaseItem {
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
quantity: number;
|
|
13
|
+
price: string | number;
|
|
14
|
+
groups: BaseItemGroups;
|
|
15
|
+
}
|
|
16
|
+
export declare type BaseItems = BaseItem[];
|
|
17
|
+
export interface CartItemOption {
|
|
18
|
+
allergens: string[];
|
|
19
|
+
allergens_list?: MenuItemAllergens;
|
|
20
|
+
cals: number | null;
|
|
21
|
+
description: string | null;
|
|
22
|
+
groups: CartItemGroups;
|
|
23
|
+
id: number;
|
|
24
|
+
imageUrl: string | null;
|
|
25
|
+
increment: number;
|
|
26
|
+
ingredients: string | null;
|
|
27
|
+
isDefault: boolean;
|
|
28
|
+
isSoldOut: boolean;
|
|
29
|
+
max: number;
|
|
30
|
+
min: number;
|
|
31
|
+
name: string;
|
|
32
|
+
nutritionalInfo: NutritionalInfo | null;
|
|
33
|
+
points: number | null;
|
|
34
|
+
price: number;
|
|
35
|
+
quantity: number;
|
|
36
|
+
shorthand: string | null;
|
|
37
|
+
shortDescription: string | null;
|
|
38
|
+
shortName: string;
|
|
39
|
+
slug: string;
|
|
40
|
+
tags: string[];
|
|
41
|
+
tags_list?: MenuItemTags;
|
|
42
|
+
totalAllergens: string[];
|
|
43
|
+
totalCals: number | null;
|
|
44
|
+
totalPoints: number | null;
|
|
45
|
+
totalPrice: number | null;
|
|
46
|
+
}
|
|
47
|
+
export declare type CartItemOptions = CartItemOption[];
|
|
48
|
+
export interface CartItemOptionWithGroup extends CartItemOption {
|
|
49
|
+
group: CartItemGroup;
|
|
50
|
+
}
|
|
51
|
+
export declare type CartItemOptionsWithGroup = CartItemOptionWithGroup[];
|
|
52
|
+
export interface CartItemOptionWithIndex extends CartItemOption {
|
|
53
|
+
index: number;
|
|
54
|
+
}
|
|
55
|
+
export interface CartItem extends Omit<CartItemOption, 'isDefault'> {
|
|
56
|
+
cartGuestId: number | null;
|
|
57
|
+
customerId: number | null;
|
|
58
|
+
index?: number;
|
|
59
|
+
madeFor: string | null;
|
|
60
|
+
notes: string | null;
|
|
61
|
+
signature?: string;
|
|
62
|
+
similarItems: number[];
|
|
63
|
+
upsellItems: number[];
|
|
64
|
+
}
|
|
65
|
+
export interface CartItemWithPoints extends Omit<CartItem, 'points'> {
|
|
66
|
+
points: OrderItemPoints | null;
|
|
67
|
+
}
|
|
68
|
+
export declare type CartWithPoints = CartItemWithPoints[];
|
|
69
|
+
export interface CartItemGroup {
|
|
70
|
+
description: string | null;
|
|
71
|
+
id: number;
|
|
72
|
+
imageUrl: string | null;
|
|
73
|
+
included: number;
|
|
74
|
+
isPizza: boolean;
|
|
75
|
+
isSize: boolean;
|
|
76
|
+
max: number;
|
|
77
|
+
min: number;
|
|
78
|
+
name: string;
|
|
79
|
+
options: CartItemOptions;
|
|
80
|
+
quantity: number;
|
|
81
|
+
}
|
|
82
|
+
export declare type CartItemGroups = CartItemGroup[];
|
|
83
|
+
export declare type Cart = CartItem[];
|
|
84
|
+
export declare type CartLevels = number[][];
|
|
85
|
+
export declare type CartCounts = Record<string, number>;
|
|
86
|
+
export declare type CartItemOptionLookup = Record<string, CartItemOption>;
|
|
87
|
+
export declare type CartItemGroupLookupOptions = Omit<CartItemGroup, 'options'> & {
|
|
88
|
+
options: CartItemOptionLookup;
|
|
89
|
+
};
|
|
90
|
+
export declare type CartItemGroupLookup = Record<string, CartItemGroupLookupOptions>;
|
|
91
|
+
export interface CartItemWithErrors extends CartItem {
|
|
92
|
+
missingGroups: CartItemGroupLookupOptions[];
|
|
93
|
+
invalidGroups: CartItemGroups;
|
|
94
|
+
missingOptions: CartItemOptions;
|
|
95
|
+
invalidOptions: CartItemOptions;
|
|
96
|
+
}
|
|
97
|
+
export declare type CartWithErrors = CartItemWithErrors[];
|
|
98
|
+
export interface CartErrors {
|
|
99
|
+
missingItems: Cart;
|
|
100
|
+
invalidItems: CartWithErrors;
|
|
101
|
+
}
|
|
102
|
+
export interface PosCartItem extends CartItem {
|
|
103
|
+
item_no: number;
|
|
104
|
+
line_no: number;
|
|
105
|
+
}
|
|
106
|
+
export declare type PosCart = PosCartItem[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|