@restaround/react 1.3.42 → 1.4.1
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/PublicMenu/Categories.d.ts +2 -1
- package/dist/components/PublicMenu/OrderDrawer/OrderTable/OrderTableUI.d.ts +13 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderTable/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderMethods/OrderMethods.d.ts +11 -0
- package/dist/components/PublicMenu/OrderMethods/OrderMethods.types.d.ts +8 -0
- package/dist/components/PublicMenu/OrderMethods/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderPaymentSummary/OrderPaymentSummary.d.ts +11 -0
- package/dist/components/PublicMenu/OrderPaymentSummary/index.d.ts +1 -0
- package/dist/components/PublicMenu/ProductAddons/ProductAddons.d.ts +4 -2
- package/dist/components/PublicMenu/ProductDetails/ProductDetailsUI.d.ts +28 -0
- package/dist/components/PublicMenu/ProductInOrder/ProductInOrder.d.ts +5 -1
- package/dist/components/PublicMenu/ProductVariants/ProductVariants.d.ts +4 -2
- package/dist/components/PublicMenu/ProductsGridItem/ProductsGridItem.d.ts +2 -8
- package/dist/components/PublicMenu/ProductsGridItem/ProductsGridItem.types.d.ts +10 -0
- package/dist/components/PublicMenu/ProductsGridItem/ProductsGridItemContainer.d.ts +4 -0
- package/dist/components/PublicMenu/ProductsGridItem/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/product.d.ts +0 -6
- package/dist/index.d.ts +8 -0
- 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/components/PublicMenu/OrderMethods/OrderMethods.types.d.ts +8 -0
- package/dist/models/components/PublicMenu/ProductsGridItem/ProductsGridItem.types.d.ts +10 -0
- package/dist/models/constants/env.d.ts +1 -0
- package/dist/models/hooks/translation.d.ts +5 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/models/index.d.ts +2 -0
- package/dist/models/modules/addon/utils.d.ts +14 -0
- package/dist/models/modules/branch/hooks.d.ts +2 -0
- package/dist/models/modules/business/hooks.d.ts +2 -0
- package/dist/models/modules/common/services.d.ts +1 -0
- package/dist/models/modules/customer/hooks.d.ts +4 -0
- package/dist/models/modules/customer/services.d.ts +9 -0
- package/dist/models/modules/feature/constants.d.ts +4 -0
- package/dist/models/modules/feature/hooks.d.ts +2 -0
- package/dist/models/modules/feature/utils.d.ts +2 -0
- package/dist/models/modules/order/constants.d.ts +17 -0
- package/dist/models/modules/order/hooks.d.ts +31 -0
- package/dist/models/modules/order/index.d.ts +5 -0
- package/dist/models/modules/order/services.d.ts +4 -0
- package/dist/models/modules/order/utils.d.ts +29 -0
- package/dist/models/modules/product/hooks.d.ts +6 -0
- package/dist/models/modules/product/index.d.ts +3 -0
- package/dist/models/modules/product/utils.d.ts +47 -0
- package/dist/models/modules/view/constants.d.ts +13 -0
- package/dist/models/modules/view/services.d.ts +2 -0
- package/dist/models/services/api/index.d.ts +5 -0
- package/dist/models/services/translation/index.d.ts +3 -0
- package/dist/models/services/translation/locales/az/auth.d.ts +7 -0
- package/dist/models/services/translation/locales/az/common.d.ts +6 -0
- package/dist/models/services/translation/locales/az/customer.d.ts +17 -0
- package/dist/models/services/translation/locales/az/error.d.ts +19 -0
- package/dist/models/services/translation/locales/az/events.d.ts +8 -0
- package/dist/models/services/translation/locales/az/index.d.ts +129 -0
- package/dist/models/services/translation/locales/az/order.d.ts +41 -0
- package/dist/models/services/translation/locales/az/pricing.d.ts +35 -0
- package/dist/models/services/translation/locales/en/auth.d.ts +2 -0
- package/dist/models/services/translation/locales/en/common.d.ts +2 -0
- package/dist/models/services/translation/locales/en/customer.d.ts +2 -0
- package/dist/models/services/translation/locales/en/error.d.ts +15 -0
- package/dist/models/services/translation/locales/en/events.d.ts +2 -0
- package/dist/models/services/translation/locales/en/index.d.ts +23 -0
- package/dist/models/services/translation/locales/en/order.d.ts +2 -0
- package/dist/models/services/translation/locales/en/pricing.d.ts +2 -0
- package/dist/models/services/translation/locales/et/auth.d.ts +7 -0
- package/dist/models/services/translation/locales/et/common.d.ts +6 -0
- package/dist/models/services/translation/locales/et/customer.d.ts +17 -0
- package/dist/models/services/translation/locales/et/error.d.ts +19 -0
- package/dist/models/services/translation/locales/et/events.d.ts +8 -0
- package/dist/models/services/translation/locales/et/index.d.ts +128 -0
- package/dist/models/services/translation/locales/et/order.d.ts +42 -0
- package/dist/models/services/translation/locales/et/pricing.d.ts +33 -0
- package/dist/models/services/translation/locales/index.d.ts +661 -0
- package/dist/models/services/translation/locales/nl/auth.d.ts +7 -0
- package/dist/models/services/translation/locales/nl/common.d.ts +6 -0
- package/dist/models/services/translation/locales/nl/customer.d.ts +17 -0
- package/dist/models/services/translation/locales/nl/error.d.ts +19 -0
- package/dist/models/services/translation/locales/nl/events.d.ts +8 -0
- package/dist/models/services/translation/locales/nl/index.d.ts +128 -0
- package/dist/models/services/translation/locales/nl/order.d.ts +42 -0
- package/dist/models/services/translation/locales/nl/pricing.d.ts +33 -0
- package/dist/models/services/translation/locales/ru/auth.d.ts +7 -0
- package/dist/models/services/translation/locales/ru/common.d.ts +6 -0
- package/dist/models/services/translation/locales/ru/customer.d.ts +17 -0
- package/dist/models/services/translation/locales/ru/error.d.ts +19 -0
- package/dist/models/services/translation/locales/ru/events.d.ts +8 -0
- package/dist/models/services/translation/locales/ru/index.d.ts +128 -0
- package/dist/models/services/translation/locales/ru/order.d.ts +42 -0
- package/dist/models/services/translation/locales/ru/pricing.d.ts +33 -0
- package/dist/models/services/translation/locales/tr/auth.d.ts +7 -0
- package/dist/models/services/translation/locales/tr/common.d.ts +6 -0
- package/dist/models/services/translation/locales/tr/customer.d.ts +17 -0
- package/dist/models/services/translation/locales/tr/error.d.ts +19 -0
- package/dist/models/services/translation/locales/tr/events.d.ts +8 -0
- package/dist/models/services/translation/locales/tr/index.d.ts +128 -0
- package/dist/models/services/translation/locales/tr/order.d.ts +42 -0
- package/dist/models/services/translation/locales/tr/pricing.d.ts +33 -0
- package/dist/models/store/index.d.ts +7 -0
- package/dist/models/store/order.d.ts +41 -0
- package/dist/models/utils/common.d.ts +1 -0
- package/dist/modules/order/constants.d.ts +2 -1
- package/dist/modules/order/hooks.d.ts +5 -9
- package/dist/modules/order/utils.d.ts +1 -1
- package/dist/modules/product/hooks.d.ts +6 -0
- package/dist/modules/product/index.d.ts +1 -0
- package/dist/modules/product/utils.d.ts +6 -6
- package/dist/services/translation/locales/az/index.d.ts +1 -1
- package/dist/services/translation/locales/az/order.d.ts +1 -1
- package/dist/services/translation/locales/et/index.d.ts +1 -1
- package/dist/services/translation/locales/et/order.d.ts +1 -1
- package/dist/services/translation/locales/index.d.ts +5 -5
- package/dist/services/translation/locales/nl/index.d.ts +1 -1
- package/dist/services/translation/locales/nl/order.d.ts +1 -1
- package/dist/services/translation/locales/ru/index.d.ts +1 -1
- package/dist/services/translation/locales/ru/order.d.ts +1 -1
- package/dist/services/translation/locales/tr/index.d.ts +1 -1
- package/dist/services/translation/locales/tr/order.d.ts +1 -1
- package/dist/store/order.d.ts +8 -3
- package/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- package/dist/utils/components/PublicMenu/OrderMethods/OrderMethods.types.d.ts +8 -0
- package/dist/utils/components/PublicMenu/ProductsGridItem/ProductsGridItem.types.d.ts +10 -0
- package/dist/utils/constants/env.d.ts +1 -0
- package/dist/utils/hooks/translation.d.ts +5 -0
- 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 +2 -0
- package/dist/utils/modules/branch/hooks.d.ts +2 -0
- package/dist/utils/modules/business/hooks.d.ts +2 -0
- package/dist/utils/modules/common/services.d.ts +1 -0
- package/dist/utils/modules/customer/hooks.d.ts +4 -0
- package/dist/utils/modules/customer/services.d.ts +9 -0
- package/dist/utils/modules/feature/hooks.d.ts +2 -0
- package/dist/utils/modules/order/constants.d.ts +2 -1
- package/dist/utils/modules/order/hooks.d.ts +31 -0
- package/dist/utils/modules/order/index.d.ts +5 -0
- package/dist/utils/modules/order/services.d.ts +4 -0
- package/dist/utils/modules/order/utils.d.ts +1 -1
- package/dist/utils/modules/product/hooks.d.ts +6 -0
- package/dist/utils/modules/product/index.d.ts +3 -0
- package/dist/utils/modules/product/utils.d.ts +6 -6
- package/dist/utils/modules/view/constants.d.ts +13 -0
- package/dist/utils/modules/view/services.d.ts +2 -0
- package/dist/utils/services/api/index.d.ts +5 -0
- package/dist/utils/services/translation/index.d.ts +3 -0
- package/dist/utils/services/translation/locales/az/auth.d.ts +7 -0
- package/dist/utils/services/translation/locales/az/common.d.ts +6 -0
- package/dist/utils/services/translation/locales/az/customer.d.ts +17 -0
- package/dist/utils/services/translation/locales/az/error.d.ts +19 -0
- package/dist/utils/services/translation/locales/az/events.d.ts +8 -0
- package/dist/utils/services/translation/locales/az/index.d.ts +129 -0
- package/dist/utils/services/translation/locales/az/order.d.ts +41 -0
- package/dist/utils/services/translation/locales/az/pricing.d.ts +35 -0
- package/dist/utils/services/translation/locales/en/auth.d.ts +2 -0
- package/dist/utils/services/translation/locales/en/common.d.ts +2 -0
- package/dist/utils/services/translation/locales/en/customer.d.ts +2 -0
- package/dist/utils/services/translation/locales/en/error.d.ts +15 -0
- package/dist/utils/services/translation/locales/en/events.d.ts +2 -0
- package/dist/utils/services/translation/locales/en/index.d.ts +23 -0
- package/dist/utils/services/translation/locales/en/order.d.ts +2 -0
- package/dist/utils/services/translation/locales/en/pricing.d.ts +2 -0
- package/dist/utils/services/translation/locales/et/auth.d.ts +7 -0
- package/dist/utils/services/translation/locales/et/common.d.ts +6 -0
- package/dist/utils/services/translation/locales/et/customer.d.ts +17 -0
- package/dist/utils/services/translation/locales/et/error.d.ts +19 -0
- package/dist/utils/services/translation/locales/et/events.d.ts +8 -0
- package/dist/utils/services/translation/locales/et/index.d.ts +128 -0
- package/dist/utils/services/translation/locales/et/order.d.ts +42 -0
- package/dist/utils/services/translation/locales/et/pricing.d.ts +33 -0
- package/dist/utils/services/translation/locales/index.d.ts +661 -0
- package/dist/utils/services/translation/locales/nl/auth.d.ts +7 -0
- package/dist/utils/services/translation/locales/nl/common.d.ts +6 -0
- package/dist/utils/services/translation/locales/nl/customer.d.ts +17 -0
- package/dist/utils/services/translation/locales/nl/error.d.ts +19 -0
- package/dist/utils/services/translation/locales/nl/events.d.ts +8 -0
- package/dist/utils/services/translation/locales/nl/index.d.ts +128 -0
- package/dist/utils/services/translation/locales/nl/order.d.ts +42 -0
- package/dist/utils/services/translation/locales/nl/pricing.d.ts +33 -0
- package/dist/utils/services/translation/locales/ru/auth.d.ts +7 -0
- package/dist/utils/services/translation/locales/ru/common.d.ts +6 -0
- package/dist/utils/services/translation/locales/ru/customer.d.ts +17 -0
- package/dist/utils/services/translation/locales/ru/error.d.ts +19 -0
- package/dist/utils/services/translation/locales/ru/events.d.ts +8 -0
- package/dist/utils/services/translation/locales/ru/index.d.ts +128 -0
- package/dist/utils/services/translation/locales/ru/order.d.ts +42 -0
- package/dist/utils/services/translation/locales/ru/pricing.d.ts +33 -0
- package/dist/utils/services/translation/locales/tr/auth.d.ts +7 -0
- package/dist/utils/services/translation/locales/tr/common.d.ts +6 -0
- package/dist/utils/services/translation/locales/tr/customer.d.ts +17 -0
- package/dist/utils/services/translation/locales/tr/error.d.ts +19 -0
- package/dist/utils/services/translation/locales/tr/events.d.ts +8 -0
- package/dist/utils/services/translation/locales/tr/index.d.ts +128 -0
- package/dist/utils/services/translation/locales/tr/order.d.ts +42 -0
- package/dist/utils/services/translation/locales/tr/pricing.d.ts +33 -0
- package/dist/utils/store/index.d.ts +7 -0
- package/dist/utils/store/order.d.ts +41 -0
- package/package.json +5 -5
- /package/dist/components/PublicMenu/OrderDrawer/{OrderTable.d.ts → OrderTable/OrderTable.d.ts} +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
error: {
|
|
3
|
+
SOMETHING_WRONG: string;
|
|
4
|
+
FIELD_REQUIRED: string;
|
|
5
|
+
"Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60": string;
|
|
6
|
+
"Unsupported country code": string;
|
|
7
|
+
"Invalid OTP": string;
|
|
8
|
+
INVALID_OTP: string;
|
|
9
|
+
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
10
|
+
"Invalid Email Address": string;
|
|
11
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
13
|
+
COUNTRY_REQUIRED: string;
|
|
14
|
+
CITY_REQUIRED: string;
|
|
15
|
+
STREET_REQUIRED: string;
|
|
16
|
+
STREET_NUMBER_REQUIRED: string;
|
|
17
|
+
OUT_OF_DELIVERY_RANGE: string;
|
|
18
|
+
NO_ORDER_TYPE: string;
|
|
19
|
+
};
|
|
20
|
+
common: {
|
|
21
|
+
Save: string;
|
|
22
|
+
Cancel: string;
|
|
23
|
+
Continue: string;
|
|
24
|
+
};
|
|
25
|
+
order: {
|
|
26
|
+
"View order": string;
|
|
27
|
+
"Remove from order": string;
|
|
28
|
+
"Update order": string;
|
|
29
|
+
"Add to order": string;
|
|
30
|
+
Add: string;
|
|
31
|
+
"Your order": string;
|
|
32
|
+
"Empty order": string;
|
|
33
|
+
"You don't have any items in your order": string;
|
|
34
|
+
"Add items": string;
|
|
35
|
+
Subtotal: string;
|
|
36
|
+
Events: string;
|
|
37
|
+
"Product choices": string;
|
|
38
|
+
"In order": string;
|
|
39
|
+
"Not available": string;
|
|
40
|
+
"Specify any allergies, special requests, or ingredients you want to add or remove": string;
|
|
41
|
+
"Thank you! We've received your order and it will be delivered shortly.": string;
|
|
42
|
+
"Go to checkout": string;
|
|
43
|
+
"Add an order note": string;
|
|
44
|
+
"Your Order is Completed!": string;
|
|
45
|
+
Delivery: string;
|
|
46
|
+
"Dine in": string;
|
|
47
|
+
Pickup: string;
|
|
48
|
+
Cash: string;
|
|
49
|
+
"POS Terminal": string;
|
|
50
|
+
"Order summary": string;
|
|
51
|
+
Items: string;
|
|
52
|
+
Tax: string;
|
|
53
|
+
Total: string;
|
|
54
|
+
"Special instructions, allergies, etc.": string;
|
|
55
|
+
"Place order": string;
|
|
56
|
+
Continue: string;
|
|
57
|
+
"Track order": string;
|
|
58
|
+
"Minimum order amount for delivery is {{amount}}": string;
|
|
59
|
+
"This field is required": string;
|
|
60
|
+
"Please select a table": string;
|
|
61
|
+
"Please enter an address": string;
|
|
62
|
+
"Please choose product": string;
|
|
63
|
+
Table: string;
|
|
64
|
+
"Select Table": string;
|
|
65
|
+
};
|
|
66
|
+
customer: {
|
|
67
|
+
"Unknown address": string;
|
|
68
|
+
"No address available": string;
|
|
69
|
+
"Update Delivery Address": string;
|
|
70
|
+
Country: string;
|
|
71
|
+
City: string;
|
|
72
|
+
"Baker Street": string;
|
|
73
|
+
Address: string;
|
|
74
|
+
"House number": string;
|
|
75
|
+
"Additional number": string;
|
|
76
|
+
"Example: Door code is 555": string;
|
|
77
|
+
"Delivery Instructions": string;
|
|
78
|
+
Azerbaijan: string;
|
|
79
|
+
Floor: string;
|
|
80
|
+
"Enter address": string;
|
|
81
|
+
};
|
|
82
|
+
auth: {
|
|
83
|
+
"Create an account or log in": string;
|
|
84
|
+
"Phone number": string;
|
|
85
|
+
"I don't have an email": string;
|
|
86
|
+
"We sent a confirmation code to {{address}}": string;
|
|
87
|
+
};
|
|
88
|
+
events: {
|
|
89
|
+
Events: string;
|
|
90
|
+
"Scrolled to Category": string;
|
|
91
|
+
"Category Selected": string;
|
|
92
|
+
"Product Details": string;
|
|
93
|
+
"Product Added to Order": string;
|
|
94
|
+
};
|
|
95
|
+
pricing: {
|
|
96
|
+
"Get Started": string;
|
|
97
|
+
"Choose Plan": string;
|
|
98
|
+
"Smart QR Menu": string;
|
|
99
|
+
"Link-in-bio": string;
|
|
100
|
+
"Menu Analytics": string;
|
|
101
|
+
"Unlimited Users": string;
|
|
102
|
+
"Unlimited Products": string;
|
|
103
|
+
"Unlimited Categories": string;
|
|
104
|
+
"Product variants": string;
|
|
105
|
+
"Product options": string;
|
|
106
|
+
"Sales reports": string;
|
|
107
|
+
"24/7 Support": string;
|
|
108
|
+
"Multiple Branches": string;
|
|
109
|
+
"Table Management": string;
|
|
110
|
+
"Order Management": string;
|
|
111
|
+
"Mobile App for Owners & Staff": string;
|
|
112
|
+
"Point of Sale (POS)": string;
|
|
113
|
+
"Delivery Management": string;
|
|
114
|
+
"Third-Party Delivery Integrations": string;
|
|
115
|
+
"RestaroundPay with Mobile": string;
|
|
116
|
+
"Event management": string;
|
|
117
|
+
"/ month": string;
|
|
118
|
+
monthly: string;
|
|
119
|
+
annually: string;
|
|
120
|
+
"Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
|
|
121
|
+
"Flexible Plans for Every Business - Simple Pricing, More Value!": string;
|
|
122
|
+
"Unlimited Languages": string;
|
|
123
|
+
"30-day money-back guarantee": string;
|
|
124
|
+
"Limited Time Only": string;
|
|
125
|
+
"/ lifetime": string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"View order": string;
|
|
3
|
+
"Remove from order": string;
|
|
4
|
+
"Update order": string;
|
|
5
|
+
"Add to order": string;
|
|
6
|
+
Add: string;
|
|
7
|
+
"Your order": string;
|
|
8
|
+
"Empty order": string;
|
|
9
|
+
"You don't have any items in your order": string;
|
|
10
|
+
"Add items": string;
|
|
11
|
+
Subtotal: string;
|
|
12
|
+
Events: string;
|
|
13
|
+
"Product choices": string;
|
|
14
|
+
"In order": string;
|
|
15
|
+
"Not available": string;
|
|
16
|
+
"Specify any allergies, special requests, or ingredients you want to add or remove": string;
|
|
17
|
+
"Thank you! We've received your order and it will be delivered shortly.": string;
|
|
18
|
+
"Go to checkout": string;
|
|
19
|
+
"Add an order note": string;
|
|
20
|
+
"Your Order is Completed!": string;
|
|
21
|
+
Delivery: string;
|
|
22
|
+
"Dine in": string;
|
|
23
|
+
Pickup: string;
|
|
24
|
+
Cash: string;
|
|
25
|
+
"POS Terminal": string;
|
|
26
|
+
"Order summary": string;
|
|
27
|
+
Items: string;
|
|
28
|
+
Tax: string;
|
|
29
|
+
Total: string;
|
|
30
|
+
"Special instructions, allergies, etc.": string;
|
|
31
|
+
"Place order": string;
|
|
32
|
+
Continue: string;
|
|
33
|
+
"Track order": string;
|
|
34
|
+
"Minimum order amount for delivery is {{amount}}": string;
|
|
35
|
+
"This field is required": string;
|
|
36
|
+
"Please select a table": string;
|
|
37
|
+
"Please enter an address": string;
|
|
38
|
+
"Please choose product": string;
|
|
39
|
+
Table: string;
|
|
40
|
+
"Select Table": string;
|
|
41
|
+
};
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"Get Started": string;
|
|
3
|
+
"Choose Plan": string;
|
|
4
|
+
"Smart QR Menu": string;
|
|
5
|
+
"Link-in-bio": string;
|
|
6
|
+
"Menu Analytics": string;
|
|
7
|
+
"Unlimited Users": string;
|
|
8
|
+
"Unlimited Products": string;
|
|
9
|
+
"Unlimited Categories": string;
|
|
10
|
+
"Product variants": string;
|
|
11
|
+
"Product options": string;
|
|
12
|
+
"Sales reports": string;
|
|
13
|
+
"24/7 Support": string;
|
|
14
|
+
"Multiple Branches": string;
|
|
15
|
+
"Table Management": string;
|
|
16
|
+
"Order Management": string;
|
|
17
|
+
"Mobile App for Owners & Staff": string;
|
|
18
|
+
"Point of Sale (POS)": string;
|
|
19
|
+
"Delivery Management": string;
|
|
20
|
+
"Third-Party Delivery Integrations": string;
|
|
21
|
+
"RestaroundPay with Mobile": string;
|
|
22
|
+
"Event management": string;
|
|
23
|
+
"/ month": string;
|
|
24
|
+
monthly: string;
|
|
25
|
+
annually: string;
|
|
26
|
+
"Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
|
|
27
|
+
"Flexible Plans for Every Business - Simple Pricing, More Value!": string;
|
|
28
|
+
"Unlimited Languages": string;
|
|
29
|
+
"30-day money-back guarantee": string;
|
|
30
|
+
"Limited Time Only": string;
|
|
31
|
+
"/ lifetime": string;
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { PublicMenuData } from "src/models/menu";
|
|
3
|
+
export declare const StoreProvider: ({ children, value, }: {
|
|
4
|
+
children: ReactElement;
|
|
5
|
+
value: PublicMenuData;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const useStoreContext: () => PublicMenuData;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Dispatch, ReactNode } from "react";
|
|
2
|
+
import { FormErrors } from "@sorocraft/ui";
|
|
3
|
+
import * as productModels from "src/modules/product/models";
|
|
4
|
+
import * as orderModels from "src/modules/order/models";
|
|
5
|
+
import * as customerModels from "src/modules/customer/models";
|
|
6
|
+
type UpdateOrderItemsParams = {
|
|
7
|
+
product: productModels.Product;
|
|
8
|
+
quantity?: number;
|
|
9
|
+
variantId?: number | null;
|
|
10
|
+
selectedAddons?: orderModels.SelectedAddons;
|
|
11
|
+
note?: string;
|
|
12
|
+
};
|
|
13
|
+
type OrderContent = {
|
|
14
|
+
order: Partial<orderModels.Order>;
|
|
15
|
+
orderStep: orderModels.OrderStep;
|
|
16
|
+
orderItems: orderModels.OrderItems;
|
|
17
|
+
isOrderOpen: boolean;
|
|
18
|
+
customer: customerModels.Customer;
|
|
19
|
+
trackingId: string;
|
|
20
|
+
errors?: FormErrors;
|
|
21
|
+
setOrderStep: Dispatch<React.SetStateAction<orderModels.OrderStep>>;
|
|
22
|
+
updateOrder: (updatedFields: Partial<orderModels.Order>) => void;
|
|
23
|
+
addProduct: (params: UpdateOrderItemsParams) => void;
|
|
24
|
+
updateProduct: (params: UpdateOrderItemsParams) => void;
|
|
25
|
+
removeAllProductVariants: (productId: number) => void;
|
|
26
|
+
setIsOrderOpen: Dispatch<React.SetStateAction<boolean>>;
|
|
27
|
+
getCustomer: () => void;
|
|
28
|
+
resetOrder: () => void;
|
|
29
|
+
setTrackingId: Dispatch<React.SetStateAction<string>>;
|
|
30
|
+
updateOrderErrors: (field: keyof orderModels.Order) => void;
|
|
31
|
+
resetErrors: () => void;
|
|
32
|
+
};
|
|
33
|
+
type OrderProviderProps = {
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
defaultOrderType?: orderModels.OrderType;
|
|
36
|
+
defaultPaymentMethod?: orderModels.PaymentMethod;
|
|
37
|
+
defaultBranchId?: number;
|
|
38
|
+
};
|
|
39
|
+
export declare const OrderProvider: ({ children, defaultOrderType, defaultPaymentMethod, defaultBranchId, }: OrderProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare const useOrderContext: () => OrderContent;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const calculateTotalPrice: (price?: number, quantity?: number, vat?: number) => number;
|
|
@@ -12,5 +12,6 @@ export declare enum OrderErrors {
|
|
|
12
12
|
FIELD_REQUIRED_ERROR = "This field is required",
|
|
13
13
|
TABLE_NOT_SELECTED = "Please select a table",
|
|
14
14
|
ADDRESS_IS_EMPTY = "Please enter an address",
|
|
15
|
-
EMPTY_ITEMS = "Please choose product"
|
|
15
|
+
EMPTY_ITEMS = "Please choose product",
|
|
16
|
+
BRANCH_NOT_SELECTED = "Please select a branch"
|
|
16
17
|
}
|
|
@@ -24,12 +24,8 @@ export declare const useOrderActiveForBusiness: () => boolean;
|
|
|
24
24
|
export declare const useDeliveryDistanceError: () => string | null;
|
|
25
25
|
export declare const useDeliveryAmountError: () => string | null;
|
|
26
26
|
export declare const useOrderErrorInDetails: () => string | null;
|
|
27
|
-
export declare const useInitialOrder: (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
totalTax: number;
|
|
33
|
-
vat: number;
|
|
34
|
-
paymentMethod: PaymentMethod;
|
|
35
|
-
};
|
|
27
|
+
export declare const useInitialOrder: ({ defaultOrderType, defaultPaymentMethod, defaultBranchId, }: {
|
|
28
|
+
defaultOrderType: OrderType;
|
|
29
|
+
defaultPaymentMethod: PaymentMethod;
|
|
30
|
+
defaultBranchId: number;
|
|
31
|
+
}) => Partial<Order>;
|
|
@@ -13,7 +13,7 @@ export declare const getOrderPrice: (order: Order, currency: string, language: s
|
|
|
13
13
|
totalWithTax: number;
|
|
14
14
|
totalWithTaxFormatted: string;
|
|
15
15
|
};
|
|
16
|
-
export declare const generateOrderItemsId: (productId: number, variantId: number | null, selectedAddons
|
|
16
|
+
export declare const generateOrderItemsId: (productId: number, variantId: number | null, selectedAddons?: SelectedAddons) => string;
|
|
17
17
|
export declare const getOrderItemPrice: (orderItem: OrderItem) => {
|
|
18
18
|
totalGross: number;
|
|
19
19
|
totalNet: number;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { Product, ProductTranslation, ProductVariant, ProductVariantTranslation } from "./models";
|
|
2
2
|
import { MenuAddon } from "src/modules/addon/models";
|
|
3
3
|
import * as orderModels from "src/modules/order/models";
|
|
4
|
-
export declare const getProductTranslation: (product: Product, language: string) => ProductTranslation;
|
|
5
|
-
export declare const getProductRawPrice: (product: Product, quantity?: number) => number;
|
|
6
|
-
export declare const getProductPrice: (product: Product, currency: string, language: string, quantity?: number) => {
|
|
4
|
+
export declare const getProductTranslation: (product: Pick<Product, "translations">, language: string) => ProductTranslation;
|
|
5
|
+
export declare const getProductRawPrice: (product: Pick<Product, "price" | "vat">, quantity?: number) => number;
|
|
6
|
+
export declare const getProductPrice: (product: Pick<Product, "price" | "vat">, currency: string, language: string, quantity?: number) => {
|
|
7
7
|
totalPrice: number;
|
|
8
8
|
formattedTotalPrice: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const getProductVariant: (product: Product, variantId: number) => ProductVariant;
|
|
10
|
+
export declare const getProductVariant: (product: Pick<Product, "variants">, variantId: number) => ProductVariant;
|
|
11
11
|
export declare const getSelectedOptionsTotalPrice: (product: Product, selectedAddons: orderModels.SelectedAddons, quantity: number) => number;
|
|
12
|
-
export declare const getProductVariantRawPrice: (variantId: number, product: Product, quantity?: number) => number;
|
|
12
|
+
export declare const getProductVariantRawPrice: (variantId: number, product: Pick<Product, "variants" | "vat">, quantity?: number) => number;
|
|
13
13
|
export declare const getProductVariantPrice: ({ variantId, currency, language, product, quantity, }: {
|
|
14
14
|
variantId: number;
|
|
15
15
|
currency?: string;
|
|
16
16
|
language?: string;
|
|
17
|
-
product: Product
|
|
17
|
+
product: Pick<Product, "variants" | "vat">;
|
|
18
18
|
quantity?: number;
|
|
19
19
|
}) => {
|
|
20
20
|
totalPrice: number;
|
|
@@ -61,7 +61,7 @@ declare const _default: {
|
|
|
61
61
|
"Please enter an address": string;
|
|
62
62
|
"Please choose product": string;
|
|
63
63
|
Table: string;
|
|
64
|
-
"
|
|
64
|
+
"Select Table": string;
|
|
65
65
|
};
|
|
66
66
|
customer: {
|
|
67
67
|
"Unknown address": string;
|
|
@@ -212,7 +212,7 @@ declare const _default: {
|
|
|
212
212
|
"Please enter an address": string;
|
|
213
213
|
"Please choose product": string;
|
|
214
214
|
Table: string;
|
|
215
|
-
"
|
|
215
|
+
"Select Table": string;
|
|
216
216
|
};
|
|
217
217
|
customer: {
|
|
218
218
|
"Unknown address": string;
|
|
@@ -339,7 +339,7 @@ declare const _default: {
|
|
|
339
339
|
"Please enter an address": string;
|
|
340
340
|
"Please choose product": string;
|
|
341
341
|
Table: string;
|
|
342
|
-
"
|
|
342
|
+
"Select Table": string;
|
|
343
343
|
};
|
|
344
344
|
customer: {
|
|
345
345
|
"Unknown address": string;
|
|
@@ -466,7 +466,7 @@ declare const _default: {
|
|
|
466
466
|
"Please enter an address": string;
|
|
467
467
|
"Please choose product": string;
|
|
468
468
|
Table: string;
|
|
469
|
-
"
|
|
469
|
+
"Select Table": string;
|
|
470
470
|
};
|
|
471
471
|
customer: {
|
|
472
472
|
"Unknown address": string;
|
|
@@ -593,7 +593,7 @@ declare const _default: {
|
|
|
593
593
|
"Please enter an address": string;
|
|
594
594
|
"Please choose product": string;
|
|
595
595
|
Table: string;
|
|
596
|
-
"
|
|
596
|
+
"Select Table": string;
|
|
597
597
|
};
|
|
598
598
|
customer: {
|
|
599
599
|
"Unknown address": string;
|
package/dist/store/order.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as customerModels from "src/modules/customer/models";
|
|
|
6
6
|
type UpdateOrderItemsParams = {
|
|
7
7
|
product: productModels.Product;
|
|
8
8
|
quantity?: number;
|
|
9
|
-
variantId?: number;
|
|
9
|
+
variantId?: number | null;
|
|
10
10
|
selectedAddons?: orderModels.SelectedAddons;
|
|
11
11
|
note?: string;
|
|
12
12
|
};
|
|
@@ -28,9 +28,14 @@ type OrderContent = {
|
|
|
28
28
|
resetOrder: () => void;
|
|
29
29
|
setTrackingId: Dispatch<React.SetStateAction<string>>;
|
|
30
30
|
updateOrderErrors: (field: keyof orderModels.Order) => void;
|
|
31
|
+
resetErrors: () => void;
|
|
31
32
|
};
|
|
32
|
-
|
|
33
|
+
type OrderProviderProps = {
|
|
33
34
|
children: ReactNode;
|
|
34
|
-
|
|
35
|
+
defaultOrderType?: orderModels.OrderType;
|
|
36
|
+
defaultPaymentMethod?: orderModels.PaymentMethod;
|
|
37
|
+
defaultBranchId?: number;
|
|
38
|
+
};
|
|
39
|
+
export declare const OrderProvider: ({ children, defaultOrderType, defaultPaymentMethod, defaultBranchId, }: OrderProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
40
|
export declare const useOrderContext: () => OrderContent;
|
|
36
41
|
export {};
|