@restaround/react 1.1.2 → 1.2.3
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/components/Events/Events.d.ts +1 -2
- package/dist/components/PublicMenu/Branches/Branches.d.ts +1 -1
- package/dist/components/PublicMenu/Customer/CustomerAddress/CustomerAddress.d.ts +2 -0
- package/dist/components/PublicMenu/Customer/CustomerAddress/index.d.ts +1 -0
- package/dist/components/PublicMenu/FloatingOrdersButton/FloatingOrdersButton.d.ts +2 -0
- package/dist/components/PublicMenu/FloatingOrdersButton/index.d.ts +1 -0
- package/dist/components/PublicMenu/Header/Header.d.ts +1 -1
- package/dist/components/PublicMenu/Modals/AddUpdateAddress/AddUpdateAddress.d.ts +3 -0
- package/dist/components/PublicMenu/Modals/AddUpdateAddress/index.d.ts +1 -0
- package/dist/components/PublicMenu/Modals/AddUpdateNote/AddUpdateNote.d.ts +3 -0
- package/dist/components/PublicMenu/Modals/AddUpdateNote/index.d.ts +1 -0
- package/dist/components/PublicMenu/Modals/Auth/Auth.d.ts +3 -0
- package/dist/components/PublicMenu/Modals/Auth/EmailStep.d.ts +8 -0
- package/dist/components/PublicMenu/Modals/Auth/OTPStep.d.ts +8 -0
- package/dist/components/PublicMenu/Modals/Auth/PhoneStep.d.ts +7 -0
- package/dist/components/PublicMenu/Modals/Auth/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawer.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawerCart.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawerCompleted.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawerDetails.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawerFooter.d.ts +5 -0
- package/dist/components/PublicMenu/OrderDrawer/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderItemsList/OrderItemsList.d.ts +5 -0
- package/dist/components/PublicMenu/OrderItemsList/OrderNoItems.d.ts +2 -0
- package/dist/components/PublicMenu/OrderItemsList/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderListItem/OptionsInfo/OptionsInfo.d.ts +9 -0
- package/dist/components/PublicMenu/OrderListItem/OrderListItem.d.ts +7 -0
- package/dist/components/PublicMenu/OrderListItem/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderStepper/OrderStepper.d.ts +7 -0
- package/dist/components/PublicMenu/OrderStepper/index.d.ts +1 -0
- package/dist/components/PublicMenu/ProductAddons/ProductAddons.d.ts +4 -4
- package/dist/components/PublicMenu/ProductDetails/ProductDetails.d.ts +2 -2
- package/dist/components/PublicMenu/ProductInOrder/ProductInOrder.d.ts +6 -0
- package/dist/components/PublicMenu/ProductInOrder/index.d.ts +1 -0
- package/dist/components/PublicMenu/ProductQuantity/ProductQuantity.d.ts +4 -3
- package/dist/components/PublicMenu/ProductVariants/ProductVariants.d.ts +2 -2
- package/dist/components/PublicMenu/ProductsGridItem/ProductsGridItem.d.ts +1 -1
- package/dist/components/PublicMenu/ProductsListItem/ProductsListItem.d.ts +1 -1
- package/dist/constants/analytics.d.ts +1 -1
- package/dist/constants/env.d.ts +1 -0
- package/dist/hooks/product.d.ts +4 -4
- package/dist/hooks/translation.d.ts +4 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.esm.js.map +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/menu.d.ts +4 -3
- package/dist/models/models/category.d.ts +10 -0
- package/dist/models/models/index.d.ts +6 -0
- package/dist/models/models/menu.d.ts +30 -0
- package/dist/models/models/pricing.d.ts +17 -0
- package/dist/models/{addon.d.ts → modules/addon/models.d.ts} +0 -3
- package/dist/models/modules/customer/models.d.ts +47 -0
- package/dist/models/modules/feature/models.d.ts +3 -0
- package/dist/models/modules/order/models.d.ts +80 -0
- package/dist/{utils/models/product.d.ts → models/modules/product/models.d.ts} +5 -4
- package/dist/modules/addon/index.d.ts +2 -0
- package/dist/{utils/models/addon.d.ts → modules/addon/models.d.ts} +0 -3
- package/dist/{utils/utils/addon.d.ts → modules/addon/utils.d.ts} +1 -1
- package/dist/modules/branch/index.d.ts +1 -0
- package/dist/modules/business/index.d.ts +1 -0
- package/dist/modules/common/index.d.ts +1 -0
- package/dist/modules/common/services.d.ts +1 -0
- package/dist/modules/customer/hooks.d.ts +3 -0
- package/dist/modules/customer/index.d.ts +4 -0
- package/dist/modules/customer/models.d.ts +47 -0
- package/dist/modules/customer/services.d.ts +7 -0
- package/dist/modules/customer/utils.d.ts +6 -0
- package/dist/modules/feature/hooks.d.ts +2 -0
- package/dist/modules/feature/index.d.ts +2 -0
- package/dist/modules/feature/models.d.ts +3 -0
- package/dist/modules/order/constants.d.ts +9 -0
- package/dist/modules/order/hooks.d.ts +22 -0
- package/dist/modules/order/index.d.ts +5 -0
- package/dist/modules/order/models.d.ts +80 -0
- package/dist/modules/order/services.d.ts +2 -0
- package/dist/modules/order/utils.d.ts +20 -0
- package/dist/modules/product/index.d.ts +2 -0
- package/dist/{models/product.d.ts → modules/product/models.d.ts} +5 -4
- package/dist/{utils/product.d.ts → modules/product/utils.d.ts} +9 -8
- package/dist/modules/view/constants.d.ts +15 -0
- package/dist/modules/view/index.d.ts +3 -0
- package/dist/modules/view/services.d.ts +2 -0
- package/dist/modules/view/utils.d.ts +6 -0
- package/dist/services/api/index.d.ts +5 -0
- package/dist/services/translation/index.d.ts +3 -0
- package/dist/services/translation/locales/az/auth.d.ts +7 -0
- package/dist/services/translation/locales/az/common.d.ts +6 -0
- package/dist/services/translation/locales/az/customer.d.ts +75 -0
- package/dist/services/translation/locales/az/error.d.ts +11 -0
- package/dist/services/translation/locales/az/events.d.ts +8 -0
- package/dist/services/translation/locales/az/index.d.ts +164 -0
- package/dist/services/translation/locales/az/order.d.ts +32 -0
- package/dist/services/translation/locales/az/pricing.d.ts +29 -0
- package/dist/services/translation/locales/en/auth.d.ts +2 -0
- package/dist/services/translation/locales/en/common.d.ts +2 -0
- package/dist/services/translation/locales/en/customer.d.ts +2 -0
- package/dist/services/translation/locales/en/error.d.ts +7 -0
- package/dist/services/translation/locales/en/events.d.ts +2 -0
- package/dist/services/translation/locales/en/index.d.ts +15 -0
- package/dist/services/translation/locales/en/order.d.ts +2 -0
- package/dist/services/translation/locales/en/pricing.d.ts +2 -0
- package/dist/services/translation/locales/et/auth.d.ts +7 -0
- package/dist/services/translation/locales/et/common.d.ts +6 -0
- package/dist/services/translation/locales/et/customer.d.ts +75 -0
- package/dist/services/translation/locales/et/error.d.ts +11 -0
- package/dist/services/translation/locales/et/events.d.ts +8 -0
- package/dist/services/translation/locales/et/index.d.ts +165 -0
- package/dist/services/translation/locales/et/order.d.ts +33 -0
- package/dist/services/translation/locales/et/pricing.d.ts +29 -0
- package/dist/services/translation/locales/index.d.ts +836 -0
- package/dist/services/translation/locales/nl/auth.d.ts +7 -0
- package/dist/services/translation/locales/nl/common.d.ts +6 -0
- package/dist/services/translation/locales/nl/customer.d.ts +75 -0
- package/dist/services/translation/locales/nl/error.d.ts +11 -0
- package/dist/services/translation/locales/nl/events.d.ts +8 -0
- package/dist/services/translation/locales/nl/index.d.ts +165 -0
- package/dist/services/translation/locales/nl/order.d.ts +33 -0
- package/dist/services/translation/locales/nl/pricing.d.ts +29 -0
- package/dist/services/translation/locales/ru/auth.d.ts +7 -0
- package/dist/services/translation/locales/ru/common.d.ts +6 -0
- package/dist/services/translation/locales/ru/customer.d.ts +75 -0
- package/dist/services/translation/locales/ru/error.d.ts +11 -0
- package/dist/services/translation/locales/ru/events.d.ts +8 -0
- package/dist/services/translation/locales/ru/index.d.ts +165 -0
- package/dist/services/translation/locales/ru/order.d.ts +33 -0
- package/dist/services/translation/locales/ru/pricing.d.ts +29 -0
- package/dist/services/translation/locales/tr/auth.d.ts +7 -0
- package/dist/services/translation/locales/tr/common.d.ts +6 -0
- package/dist/services/translation/locales/tr/customer.d.ts +75 -0
- package/dist/services/translation/locales/tr/error.d.ts +11 -0
- package/dist/services/translation/locales/tr/events.d.ts +8 -0
- package/dist/services/translation/locales/tr/index.d.ts +165 -0
- package/dist/services/translation/locales/tr/order.d.ts +33 -0
- package/dist/services/translation/locales/tr/pricing.d.ts +29 -0
- package/dist/store/order.d.ts +30 -0
- package/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/models/index.d.ts +3 -3
- package/dist/utils/models/menu.d.ts +4 -3
- package/dist/utils/modules/addon/models.d.ts +27 -0
- package/dist/utils/{addon.d.ts → modules/addon/utils.d.ts} +1 -1
- package/dist/utils/modules/branch/models.d.ts +11 -0
- package/dist/utils/modules/business/models.d.ts +20 -0
- package/dist/utils/modules/order/models.d.ts +80 -0
- package/dist/utils/modules/order/utils.d.ts +20 -0
- package/dist/utils/modules/product/models.d.ts +40 -0
- package/dist/utils/{utils/product.d.ts → modules/product/utils.d.ts} +9 -8
- package/dist/utils/utils/index.d.ts +3 -3
- package/package.json +17 -15
- package/dist/components/PublicMenu/Cart/Cart.d.ts +0 -2
- package/dist/components/PublicMenu/Cart/index.d.ts +0 -1
- package/dist/components/PublicMenu/CartDrawer/CartDrawer.d.ts +0 -2
- package/dist/components/PublicMenu/CartDrawer/index.d.ts +0 -1
- package/dist/components/PublicMenu/CartItem/CartItem.d.ts +0 -6
- package/dist/components/PublicMenu/CartItem/OptionsInfo/OptionsInfo.d.ts +0 -9
- package/dist/components/PublicMenu/CartItem/index.d.ts +0 -1
- package/dist/components/PublicMenu/CartStepper/CartStepper.d.ts +0 -6
- package/dist/components/PublicMenu/CartStepper/index.d.ts +0 -1
- package/dist/components/PublicMenu/ProductInCart/ProductInCart.d.ts +0 -6
- package/dist/components/PublicMenu/ProductInCart/index.d.ts +0 -1
- package/dist/constants/translations.d.ts +0 -212
- package/dist/hooks/cart.d.ts +0 -12
- package/dist/models/order.d.ts +0 -47
- package/dist/store/cart.d.ts +0 -23
- package/dist/utils/cart.d.ts +0 -7
- package/dist/utils/cart.test.d.ts +0 -1
- package/dist/utils/models/order.d.ts +0 -47
- package/dist/utils/utils/cart.d.ts +0 -7
- package/dist/utils/utils/cart.test.d.ts +0 -1
- /package/dist/components/PublicMenu/{CartItem → OrderListItem}/OptionsInfo/index.d.ts +0 -0
- /package/dist/models/{branch.d.ts → modules/branch/models.d.ts} +0 -0
- /package/dist/models/{business.d.ts → modules/business/models.d.ts} +0 -0
- /package/dist/{utils/models/branch.d.ts → modules/branch/models.d.ts} +0 -0
- /package/dist/{utils/models/business.d.ts → modules/business/models.d.ts} +0 -0
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
export declare const translations: {
|
|
2
|
-
en: {};
|
|
3
|
-
az: {
|
|
4
|
-
"View order": string;
|
|
5
|
-
"Remove from order": string;
|
|
6
|
-
"Update order": string;
|
|
7
|
-
"Add to order": string;
|
|
8
|
-
"Your order": string;
|
|
9
|
-
Subtotal: string;
|
|
10
|
-
"Empty order": string;
|
|
11
|
-
"You don't have any items in your order": string;
|
|
12
|
-
"Add items": string;
|
|
13
|
-
Events: string;
|
|
14
|
-
"Scrolled to Category": string;
|
|
15
|
-
"Category Selected": string;
|
|
16
|
-
"Product Details": string;
|
|
17
|
-
"Product Added to Cart": string;
|
|
18
|
-
"Product choices": string;
|
|
19
|
-
"In order": string;
|
|
20
|
-
"Not available": string;
|
|
21
|
-
"Get Started": string;
|
|
22
|
-
"Choose Plan": string;
|
|
23
|
-
"Smart QR Menu": string;
|
|
24
|
-
"Link-in-bio": string;
|
|
25
|
-
"Menu Analytics": string;
|
|
26
|
-
"Unlimited Products": string;
|
|
27
|
-
"Unlimited Categories": string;
|
|
28
|
-
"Product variants": string;
|
|
29
|
-
"Product options": string;
|
|
30
|
-
"Sales reports": string;
|
|
31
|
-
"24/7 Support": string;
|
|
32
|
-
"Multiple Branches": string;
|
|
33
|
-
"Order Management": string;
|
|
34
|
-
"Table Management": string;
|
|
35
|
-
"Mobile App for Owners & Staff": string;
|
|
36
|
-
"Point of Sale (POS)": string;
|
|
37
|
-
"Delivery Management": string;
|
|
38
|
-
"Third-Party Delivery Integrations": string;
|
|
39
|
-
"RestaroundPay with Mobile": string;
|
|
40
|
-
"Event management": string;
|
|
41
|
-
"Unlimited Users": string;
|
|
42
|
-
"/ month": string;
|
|
43
|
-
monthly: string;
|
|
44
|
-
annually: string;
|
|
45
|
-
"Flexible Plans for Every Business - Simple Pricing, More Value!": string;
|
|
46
|
-
"Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
|
|
47
|
-
};
|
|
48
|
-
tr: {
|
|
49
|
-
"View order": string;
|
|
50
|
-
"Remove from order": string;
|
|
51
|
-
"Update order": string;
|
|
52
|
-
"Add to order": string;
|
|
53
|
-
"Your order": string;
|
|
54
|
-
"Empty order": string;
|
|
55
|
-
"You don't have any items in your order": string;
|
|
56
|
-
"Add items": string;
|
|
57
|
-
Subtotal: string;
|
|
58
|
-
Events: string;
|
|
59
|
-
"Product choices": string;
|
|
60
|
-
"In order": string;
|
|
61
|
-
"Not available": string;
|
|
62
|
-
"Get Started": string;
|
|
63
|
-
"Choose Plan": string;
|
|
64
|
-
"Smart QR Menu": string;
|
|
65
|
-
"Link-in-bio": string;
|
|
66
|
-
"Menu Analytics": string;
|
|
67
|
-
"Unlimited Users": string;
|
|
68
|
-
"Unlimited Products": string;
|
|
69
|
-
"Unlimited Categories": string;
|
|
70
|
-
"Product variants": string;
|
|
71
|
-
"Product options": string;
|
|
72
|
-
"Sales reports": string;
|
|
73
|
-
"24/7 Support": string;
|
|
74
|
-
"Multiple Branches": string;
|
|
75
|
-
"Table Management": string;
|
|
76
|
-
"Order Management": string;
|
|
77
|
-
"Mobile App for Owners & Staff": string;
|
|
78
|
-
"Point of Sale (POS)": string;
|
|
79
|
-
"Delivery Management": string;
|
|
80
|
-
"Third-Party Delivery Integrations": string;
|
|
81
|
-
"RestaroundPay with Mobile": string;
|
|
82
|
-
"Event management": string;
|
|
83
|
-
"/ month": string;
|
|
84
|
-
monthly: string;
|
|
85
|
-
annually: string;
|
|
86
|
-
"Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
|
|
87
|
-
"Flexible Plans for Every Business - Simple Pricing, More Value!": string;
|
|
88
|
-
};
|
|
89
|
-
nl: {
|
|
90
|
-
"View order": string;
|
|
91
|
-
"Remove from order": string;
|
|
92
|
-
"Update order": string;
|
|
93
|
-
"Add to order": string;
|
|
94
|
-
"Your order": string;
|
|
95
|
-
"Empty order": string;
|
|
96
|
-
"You don't have any items in your order": string;
|
|
97
|
-
"Add items": string;
|
|
98
|
-
Subtotal: string;
|
|
99
|
-
Events: string;
|
|
100
|
-
"Product choices": string;
|
|
101
|
-
"In order": string;
|
|
102
|
-
"Not available": string;
|
|
103
|
-
"Get Started": string;
|
|
104
|
-
"Choose Plan": string;
|
|
105
|
-
"Smart QR Menu": string;
|
|
106
|
-
"Link-in-bio": string;
|
|
107
|
-
"Menu Analytics": string;
|
|
108
|
-
"Unlimited Products": string;
|
|
109
|
-
"Unlimited Categories": string;
|
|
110
|
-
"Unlimited Users": string;
|
|
111
|
-
"Product variants": string;
|
|
112
|
-
"Product options": string;
|
|
113
|
-
"Sales reports": string;
|
|
114
|
-
"24/7 Support": string;
|
|
115
|
-
"Multiple Branches": string;
|
|
116
|
-
"Table Management": string;
|
|
117
|
-
"Order Management": string;
|
|
118
|
-
"Mobile App for Owners & Staff": string;
|
|
119
|
-
"Point of Sale (POS)": string;
|
|
120
|
-
"Delivery Management": string;
|
|
121
|
-
"Third-Party Delivery Integrations": string;
|
|
122
|
-
"RestaroundPay with Mobile": string;
|
|
123
|
-
"Event management": string;
|
|
124
|
-
"/ month": string;
|
|
125
|
-
monthly: string;
|
|
126
|
-
annually: string;
|
|
127
|
-
"Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
|
|
128
|
-
"Flexible Plans for Every Business - Simple Pricing, More Value!": string;
|
|
129
|
-
};
|
|
130
|
-
et: {
|
|
131
|
-
"View order": string;
|
|
132
|
-
"Remove from order": string;
|
|
133
|
-
"Update order": string;
|
|
134
|
-
"Add to order": string;
|
|
135
|
-
"Your order": string;
|
|
136
|
-
"Empty order": string;
|
|
137
|
-
"You don't have any items in your order": string;
|
|
138
|
-
"Add items": string;
|
|
139
|
-
Subtotal: string;
|
|
140
|
-
Events: string;
|
|
141
|
-
"Product choices": string;
|
|
142
|
-
"In order": string;
|
|
143
|
-
"Not available": string;
|
|
144
|
-
"Get Started": string;
|
|
145
|
-
"Choose Plan": string;
|
|
146
|
-
"Smart QR Menu": string;
|
|
147
|
-
"Link-in-bio": string;
|
|
148
|
-
"Menu Analytics": string;
|
|
149
|
-
"Unlimited Products": string;
|
|
150
|
-
"Unlimited Categories": string;
|
|
151
|
-
"Product variants": string;
|
|
152
|
-
"Product options": string;
|
|
153
|
-
"Sales reports": string;
|
|
154
|
-
"24/7 Support": string;
|
|
155
|
-
"Multiple Branches": string;
|
|
156
|
-
"Table Management": string;
|
|
157
|
-
"Order Management": string;
|
|
158
|
-
"Mobile App for Owners & Staff": string;
|
|
159
|
-
"Point of Sale (POS)": string;
|
|
160
|
-
"Delivery Management": string;
|
|
161
|
-
"Third-Party Delivery Integrations": string;
|
|
162
|
-
"RestaroundPay with Mobile": string;
|
|
163
|
-
"Event management": string;
|
|
164
|
-
"Unlimited Users": string;
|
|
165
|
-
"/ month": string;
|
|
166
|
-
monthly: string;
|
|
167
|
-
annually: string;
|
|
168
|
-
"Flexible Plans for Every Business - Simple Pricing, More Value!": string;
|
|
169
|
-
"Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
|
|
170
|
-
};
|
|
171
|
-
ru: {
|
|
172
|
-
"View order": string;
|
|
173
|
-
"Remove from order": string;
|
|
174
|
-
"Update order": string;
|
|
175
|
-
"Add to order": string;
|
|
176
|
-
"Your order": string;
|
|
177
|
-
"Empty order": string;
|
|
178
|
-
"You don't have any items in your order": string;
|
|
179
|
-
"Add items": string;
|
|
180
|
-
Subtotal: string;
|
|
181
|
-
Events: string;
|
|
182
|
-
"Product choices": string;
|
|
183
|
-
"In order": string;
|
|
184
|
-
"Not available": string;
|
|
185
|
-
"Get Started": string;
|
|
186
|
-
"Choose Plan": string;
|
|
187
|
-
"Smart QR Menu": string;
|
|
188
|
-
"Link-in-bio": string;
|
|
189
|
-
"Menu Analytics": string;
|
|
190
|
-
"Unlimited Users": string;
|
|
191
|
-
"Unlimited Products": string;
|
|
192
|
-
"Unlimited Categories": string;
|
|
193
|
-
"Product variants": string;
|
|
194
|
-
"Product options": string;
|
|
195
|
-
"Sales reports": string;
|
|
196
|
-
"24/7 Support": string;
|
|
197
|
-
"Multiple Branches": string;
|
|
198
|
-
"Table Management": string;
|
|
199
|
-
"Order Management": string;
|
|
200
|
-
"Mobile App for Owners & Staff": string;
|
|
201
|
-
"Point of Sale (POS)": string;
|
|
202
|
-
"Delivery Management": string;
|
|
203
|
-
"Third-Party Delivery Integrations": string;
|
|
204
|
-
"RestaroundPay with Mobile": string;
|
|
205
|
-
"Event management": string;
|
|
206
|
-
"/ month": string;
|
|
207
|
-
monthly: string;
|
|
208
|
-
annually: string;
|
|
209
|
-
"Flexible Plans for Every Business - Simple Pricing, More Value!": string;
|
|
210
|
-
"Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
|
|
211
|
-
};
|
|
212
|
-
};
|
package/dist/hooks/cart.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SelectedAddons } from "src/models/addon";
|
|
2
|
-
export declare const useTotalCartItemsCount: () => number;
|
|
3
|
-
export declare const useCartTotalPrice: () => {
|
|
4
|
-
totalPrice: number;
|
|
5
|
-
formattedTotalPrice: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const useProductQuantityInCart: ({ productId, variantId, selectedAddons, }: {
|
|
8
|
-
productId: number;
|
|
9
|
-
variantId?: number | null;
|
|
10
|
-
selectedAddons: SelectedAddons;
|
|
11
|
-
}) => number;
|
|
12
|
-
export declare const useProductQuantityInCartWithAllVariants: (productId: number) => number;
|
package/dist/models/order.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { SelectedAddons } from "./addon";
|
|
2
|
-
export declare enum OrderType {
|
|
3
|
-
DINEIN = "dine-in",
|
|
4
|
-
TAKEAWAY = "takeaway",
|
|
5
|
-
DELIVERY = "delivery"
|
|
6
|
-
}
|
|
7
|
-
export declare enum OrderStatus {
|
|
8
|
-
PENDING = "pending",
|
|
9
|
-
IN_PROGRESS = "in-progress",
|
|
10
|
-
COMPLETED = "completed",
|
|
11
|
-
CANCELLED = "cancelled"
|
|
12
|
-
}
|
|
13
|
-
export interface OrderItem {
|
|
14
|
-
id: number;
|
|
15
|
-
orderId: number;
|
|
16
|
-
productId: number;
|
|
17
|
-
price: number;
|
|
18
|
-
quantity: number;
|
|
19
|
-
vat?: number;
|
|
20
|
-
totalPrice: number;
|
|
21
|
-
description?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface Order {
|
|
24
|
-
id: number;
|
|
25
|
-
businessId: number;
|
|
26
|
-
tableNumber?: number;
|
|
27
|
-
customerId?: number;
|
|
28
|
-
createdAt: number;
|
|
29
|
-
updatedAt: number;
|
|
30
|
-
status: OrderStatus;
|
|
31
|
-
items: OrderItem[];
|
|
32
|
-
totalAmount: number;
|
|
33
|
-
employeId?: number;
|
|
34
|
-
type: OrderType;
|
|
35
|
-
}
|
|
36
|
-
export interface CartItem {
|
|
37
|
-
productId: number;
|
|
38
|
-
variantId?: number;
|
|
39
|
-
price: number;
|
|
40
|
-
optionsPrice?: number;
|
|
41
|
-
quantity: number;
|
|
42
|
-
vat?: number;
|
|
43
|
-
selectedAddons?: SelectedAddons;
|
|
44
|
-
}
|
|
45
|
-
export interface Cart {
|
|
46
|
-
[key: string]: CartItem;
|
|
47
|
-
}
|
package/dist/store/cart.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { Product } from "src/models/product";
|
|
3
|
-
import { SelectedAddons } from "src/models/addon";
|
|
4
|
-
import { Cart } from "src/models/order";
|
|
5
|
-
type UpdateCartProductParams = {
|
|
6
|
-
product: Product;
|
|
7
|
-
quantity?: number;
|
|
8
|
-
variantId?: number;
|
|
9
|
-
selectedAddons?: SelectedAddons;
|
|
10
|
-
};
|
|
11
|
-
type CartContent = {
|
|
12
|
-
cart: Cart;
|
|
13
|
-
isCartOpen: boolean;
|
|
14
|
-
addProduct: (params: UpdateCartProductParams) => void;
|
|
15
|
-
updateProduct: (params: UpdateCartProductParams) => void;
|
|
16
|
-
removeAllProductVariants: (productId: number) => void;
|
|
17
|
-
setIsCartOpen: (state: boolean) => void;
|
|
18
|
-
};
|
|
19
|
-
export declare const CartProvider: ({ children }: {
|
|
20
|
-
children: ReactNode;
|
|
21
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare const useCartContext: () => CartContent;
|
|
23
|
-
export {};
|
package/dist/utils/cart.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CartItem } from "src/models/order";
|
|
2
|
-
import { SelectedAddons } from "src/models/addon";
|
|
3
|
-
export declare const getCartPrice: (item: CartItem, currency?: string, language?: string) => {
|
|
4
|
-
totalPrice: number;
|
|
5
|
-
formattedTotalPrice: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const generateCartId: (productId: number, variantId: number | null, selectedAddons: SelectedAddons) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { SelectedAddons } from "./addon";
|
|
2
|
-
export declare enum OrderType {
|
|
3
|
-
DINEIN = "dine-in",
|
|
4
|
-
TAKEAWAY = "takeaway",
|
|
5
|
-
DELIVERY = "delivery"
|
|
6
|
-
}
|
|
7
|
-
export declare enum OrderStatus {
|
|
8
|
-
PENDING = "pending",
|
|
9
|
-
IN_PROGRESS = "in-progress",
|
|
10
|
-
COMPLETED = "completed",
|
|
11
|
-
CANCELLED = "cancelled"
|
|
12
|
-
}
|
|
13
|
-
export interface OrderItem {
|
|
14
|
-
id: number;
|
|
15
|
-
orderId: number;
|
|
16
|
-
productId: number;
|
|
17
|
-
price: number;
|
|
18
|
-
quantity: number;
|
|
19
|
-
vat?: number;
|
|
20
|
-
totalPrice: number;
|
|
21
|
-
description?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface Order {
|
|
24
|
-
id: number;
|
|
25
|
-
businessId: number;
|
|
26
|
-
tableNumber?: number;
|
|
27
|
-
customerId?: number;
|
|
28
|
-
createdAt: number;
|
|
29
|
-
updatedAt: number;
|
|
30
|
-
status: OrderStatus;
|
|
31
|
-
items: OrderItem[];
|
|
32
|
-
totalAmount: number;
|
|
33
|
-
employeId?: number;
|
|
34
|
-
type: OrderType;
|
|
35
|
-
}
|
|
36
|
-
export interface CartItem {
|
|
37
|
-
productId: number;
|
|
38
|
-
variantId?: number;
|
|
39
|
-
price: number;
|
|
40
|
-
optionsPrice?: number;
|
|
41
|
-
quantity: number;
|
|
42
|
-
vat?: number;
|
|
43
|
-
selectedAddons?: SelectedAddons;
|
|
44
|
-
}
|
|
45
|
-
export interface Cart {
|
|
46
|
-
[key: string]: CartItem;
|
|
47
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CartItem } from "src/models/order";
|
|
2
|
-
import { SelectedAddons } from "src/models/addon";
|
|
3
|
-
export declare const getCartPrice: (item: CartItem, currency?: string, language?: string) => {
|
|
4
|
-
totalPrice: number;
|
|
5
|
-
formattedTotalPrice: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const generateCartId: (productId: number, variantId: number | null, selectedAddons: SelectedAddons) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|