@restaround/react 1.3.15 → 1.3.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/components/PublicMenu/OrderDrawer/OrderDrawerFooter.d.ts +2 -1
- package/dist/components/PublicMenu/OrderStepper/OrderStepper.d.ts +2 -1
- 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/modules/branch/hooks.d.ts +2 -0
- package/dist/modules/branch/index.d.ts +1 -0
- package/dist/modules/business/hooks.d.ts +2 -0
- package/dist/modules/business/index.d.ts +1 -0
- package/dist/modules/customer/services.d.ts +2 -0
- package/dist/modules/order/constants.d.ts +2 -2
- package/dist/modules/order/hooks.d.ts +3 -0
- package/dist/modules/order/hooks.test.d.ts +1 -0
- package/dist/modules/view/constants.d.ts +0 -3
- package/dist/modules/view/models.d.ts +4 -0
- package/dist/services/translation/locales/az/customer.d.ts +2 -61
- package/dist/services/translation/locales/az/error.d.ts +2 -0
- package/dist/services/translation/locales/az/index.d.ts +6 -61
- package/dist/services/translation/locales/az/order.d.ts +2 -0
- package/dist/services/translation/locales/en/error.d.ts +2 -0
- package/dist/services/translation/locales/en/index.d.ts +2 -0
- package/dist/services/translation/locales/et/customer.d.ts +2 -60
- package/dist/services/translation/locales/et/error.d.ts +2 -0
- package/dist/services/translation/locales/et/index.d.ts +6 -60
- package/dist/services/translation/locales/et/order.d.ts +2 -0
- package/dist/services/translation/locales/index.d.ts +32 -303
- package/dist/services/translation/locales/nl/customer.d.ts +2 -60
- package/dist/services/translation/locales/nl/error.d.ts +2 -0
- package/dist/services/translation/locales/nl/index.d.ts +6 -60
- package/dist/services/translation/locales/nl/order.d.ts +2 -0
- package/dist/services/translation/locales/ru/customer.d.ts +2 -61
- package/dist/services/translation/locales/ru/error.d.ts +2 -0
- package/dist/services/translation/locales/ru/index.d.ts +6 -61
- package/dist/services/translation/locales/ru/order.d.ts +2 -0
- package/dist/services/translation/locales/tr/customer.d.ts +2 -61
- package/dist/services/translation/locales/tr/error.d.ts +2 -0
- package/dist/services/translation/locales/tr/index.d.ts +6 -61
- package/dist/services/translation/locales/tr/order.d.ts +2 -0
- package/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- package/package.json +16 -14
- package/dist/components/AddressAutocomplete/AddressAutocomplete.d.ts +0 -12
- package/dist/components/AddressAutocomplete/AddressAutocomplete.models.d.ts +0 -26
- package/dist/components/AddressAutocomplete/AddressAutocomplete.utils.d.ts +0 -3
- package/dist/components/AddressAutocomplete/index.d.ts +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as viewModels from "../view/models";
|
|
1
2
|
import { AuthResponse, Customer, CustomerUpdatePayload } from "./models";
|
|
2
3
|
export declare const getCustomer: () => Promise<Customer>;
|
|
3
4
|
export declare const loginCustomer: (phoneNumber: string) => Promise<{
|
|
@@ -5,3 +6,4 @@ export declare const loginCustomer: (phoneNumber: string) => Promise<{
|
|
|
5
6
|
}>;
|
|
6
7
|
export declare const verifyOTP: (otp: string, phoneNumber: string) => Promise<AuthResponse>;
|
|
7
8
|
export declare const update: (payload: CustomerUpdatePayload) => Promise<any>;
|
|
9
|
+
export declare const getCustomerDistance: (branchCoordinates: viewModels.Coordinates, customerCoordinates: viewModels.Coordinates) => Promise<number>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OrderStep,
|
|
1
|
+
import { OrderStep, PaymentMethod } from "./models";
|
|
2
2
|
export declare const initialOrder: {
|
|
3
|
-
orderType:
|
|
3
|
+
orderType: any;
|
|
4
4
|
totalPriceWithTax: number;
|
|
5
5
|
totalPriceWithoutTax: number;
|
|
6
6
|
totalTax: number;
|
|
@@ -21,3 +21,6 @@ export declare const useOrderItemPrice: (item: OrderItem) => {
|
|
|
21
21
|
formattedTotalPrice: string;
|
|
22
22
|
};
|
|
23
23
|
export declare const useOrderActiveForBusiness: () => boolean;
|
|
24
|
+
export declare const useDeliveryDistanceError: () => string | null;
|
|
25
|
+
export declare const useDeliveryAmountError: () => string | null;
|
|
26
|
+
export declare const useOrderErrorInDetails: () => string | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -11,66 +11,7 @@ declare const _default: {
|
|
|
11
11
|
"Example: Door code is 555": string;
|
|
12
12
|
"Delivery Instructions": string;
|
|
13
13
|
Azerbaijan: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Sumgayit: string;
|
|
17
|
-
Mingachevir: string;
|
|
18
|
-
Shirvan: string;
|
|
19
|
-
Naftalan: string;
|
|
20
|
-
Shaki: string;
|
|
21
|
-
Lenkoran: string;
|
|
22
|
-
Yevlakh: string;
|
|
23
|
-
Shamkir: string;
|
|
24
|
-
Guba: string;
|
|
25
|
-
Gusar: string;
|
|
26
|
-
Gabala: string;
|
|
27
|
-
Tartar: string;
|
|
28
|
-
Aghjabadi: string;
|
|
29
|
-
Aghdam: string;
|
|
30
|
-
Aghdash: string;
|
|
31
|
-
Astara: string;
|
|
32
|
-
Balakan: string;
|
|
33
|
-
Barda: string;
|
|
34
|
-
Beylagan: string;
|
|
35
|
-
Bilasuvar: string;
|
|
36
|
-
Jalilabad: string;
|
|
37
|
-
Dashkasan: string;
|
|
38
|
-
Fuzuli: string;
|
|
39
|
-
Gedebey: string;
|
|
40
|
-
Goranboy: string;
|
|
41
|
-
Goychay: string;
|
|
42
|
-
Hajigabul: string;
|
|
43
|
-
Imishli: string;
|
|
44
|
-
Ismayilli: string;
|
|
45
|
-
Kurdamir: string;
|
|
46
|
-
Lerik: string;
|
|
47
|
-
Masalli: string;
|
|
48
|
-
Neftchala: string;
|
|
49
|
-
Oghuz: string;
|
|
50
|
-
Gakh: string;
|
|
51
|
-
Gazakh: string;
|
|
52
|
-
Gobustan: string;
|
|
53
|
-
Saatly: string;
|
|
54
|
-
Sabirabad: string;
|
|
55
|
-
Salyan: string;
|
|
56
|
-
Samukh: string;
|
|
57
|
-
Siyezen: string;
|
|
58
|
-
Shabran: string;
|
|
59
|
-
Shamakhi: string;
|
|
60
|
-
Tovuz: string;
|
|
61
|
-
Ujar: string;
|
|
62
|
-
Khachmaz: string;
|
|
63
|
-
Khizi: string;
|
|
64
|
-
Khojaly: string;
|
|
65
|
-
Khojavend: string;
|
|
66
|
-
Yardimli: string;
|
|
67
|
-
Zagatala: string;
|
|
68
|
-
Zardab: string;
|
|
69
|
-
Zangilan: string;
|
|
70
|
-
Shusha: string;
|
|
71
|
-
Lachin: string;
|
|
72
|
-
Kalbajar: string;
|
|
73
|
-
Khankendi: string;
|
|
74
|
-
Nakhchivan: string;
|
|
14
|
+
Floor: string;
|
|
15
|
+
"Enter address": string;
|
|
75
16
|
};
|
|
76
17
|
export default _default;
|
|
@@ -14,6 +14,8 @@ declare const _default: {
|
|
|
14
14
|
CITY_REQUIRED: string;
|
|
15
15
|
STREET_REQUIRED: string;
|
|
16
16
|
STREET_NUMBER_REQUIRED: string;
|
|
17
|
+
OUT_OF_DELIVERY_RANGE: string;
|
|
18
|
+
NO_ORDER_TYPE: string;
|
|
17
19
|
};
|
|
18
20
|
common: {
|
|
19
21
|
Save: string;
|
|
@@ -25,6 +27,7 @@ declare const _default: {
|
|
|
25
27
|
"Remove from order": string;
|
|
26
28
|
"Update order": string;
|
|
27
29
|
"Add to order": string;
|
|
30
|
+
Add: string;
|
|
28
31
|
"Your order": string;
|
|
29
32
|
Subtotal: string;
|
|
30
33
|
"Empty order": string;
|
|
@@ -51,6 +54,7 @@ declare const _default: {
|
|
|
51
54
|
"In order": string;
|
|
52
55
|
"Product choices": string;
|
|
53
56
|
"Track order": string;
|
|
57
|
+
"Minimum order amount for delivery is {{amount}}": string;
|
|
54
58
|
};
|
|
55
59
|
customer: {
|
|
56
60
|
"Unknown address": string;
|
|
@@ -65,67 +69,8 @@ declare const _default: {
|
|
|
65
69
|
"Example: Door code is 555": string;
|
|
66
70
|
"Delivery Instructions": string;
|
|
67
71
|
Azerbaijan: string;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
Sumgayit: string;
|
|
71
|
-
Mingachevir: string;
|
|
72
|
-
Shirvan: string;
|
|
73
|
-
Naftalan: string;
|
|
74
|
-
Shaki: string;
|
|
75
|
-
Lenkoran: string;
|
|
76
|
-
Yevlakh: string;
|
|
77
|
-
Shamkir: string;
|
|
78
|
-
Guba: string;
|
|
79
|
-
Gusar: string;
|
|
80
|
-
Gabala: string;
|
|
81
|
-
Tartar: string;
|
|
82
|
-
Aghjabadi: string;
|
|
83
|
-
Aghdam: string;
|
|
84
|
-
Aghdash: string;
|
|
85
|
-
Astara: string;
|
|
86
|
-
Balakan: string;
|
|
87
|
-
Barda: string;
|
|
88
|
-
Beylagan: string;
|
|
89
|
-
Bilasuvar: string;
|
|
90
|
-
Jalilabad: string;
|
|
91
|
-
Dashkasan: string;
|
|
92
|
-
Fuzuli: string;
|
|
93
|
-
Gedebey: string;
|
|
94
|
-
Goranboy: string;
|
|
95
|
-
Goychay: string;
|
|
96
|
-
Hajigabul: string;
|
|
97
|
-
Imishli: string;
|
|
98
|
-
Ismayilli: string;
|
|
99
|
-
Kurdamir: string;
|
|
100
|
-
Lerik: string;
|
|
101
|
-
Masalli: string;
|
|
102
|
-
Neftchala: string;
|
|
103
|
-
Oghuz: string;
|
|
104
|
-
Gakh: string;
|
|
105
|
-
Gazakh: string;
|
|
106
|
-
Gobustan: string;
|
|
107
|
-
Saatly: string;
|
|
108
|
-
Sabirabad: string;
|
|
109
|
-
Salyan: string;
|
|
110
|
-
Samukh: string;
|
|
111
|
-
Siyezen: string;
|
|
112
|
-
Shabran: string;
|
|
113
|
-
Shamakhi: string;
|
|
114
|
-
Tovuz: string;
|
|
115
|
-
Ujar: string;
|
|
116
|
-
Khachmaz: string;
|
|
117
|
-
Khizi: string;
|
|
118
|
-
Khojaly: string;
|
|
119
|
-
Khojavend: string;
|
|
120
|
-
Yardimli: string;
|
|
121
|
-
Zagatala: string;
|
|
122
|
-
Zardab: string;
|
|
123
|
-
Zangilan: string;
|
|
124
|
-
Shusha: string;
|
|
125
|
-
Lachin: string;
|
|
126
|
-
Kalbajar: string;
|
|
127
|
-
Khankendi: string;
|
|
128
|
-
Nakhchivan: string;
|
|
72
|
+
Floor: string;
|
|
73
|
+
"Enter address": string;
|
|
129
74
|
};
|
|
130
75
|
auth: {
|
|
131
76
|
"Create an account or log in": string;
|
|
@@ -3,6 +3,7 @@ declare const _default: {
|
|
|
3
3
|
"Remove from order": string;
|
|
4
4
|
"Update order": string;
|
|
5
5
|
"Add to order": string;
|
|
6
|
+
Add: string;
|
|
6
7
|
"Your order": string;
|
|
7
8
|
Subtotal: string;
|
|
8
9
|
"Empty order": string;
|
|
@@ -29,5 +30,6 @@ declare const _default: {
|
|
|
29
30
|
"In order": string;
|
|
30
31
|
"Product choices": string;
|
|
31
32
|
"Track order": string;
|
|
33
|
+
"Minimum order amount for delivery is {{amount}}": string;
|
|
32
34
|
};
|
|
33
35
|
export default _default;
|
|
@@ -11,65 +11,7 @@ declare const _default: {
|
|
|
11
11
|
"Example: Door code is 555": string;
|
|
12
12
|
"Delivery Instructions": string;
|
|
13
13
|
Azerbaijan: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Sumgayit: string;
|
|
17
|
-
Mingachevir: string;
|
|
18
|
-
Shirvan: string;
|
|
19
|
-
Naftalan: string;
|
|
20
|
-
Shaki: string;
|
|
21
|
-
Lenkoran: string;
|
|
22
|
-
Yevlakh: string;
|
|
23
|
-
Shamkir: string;
|
|
24
|
-
Guba: string;
|
|
25
|
-
Gusar: string;
|
|
26
|
-
Gabala: string;
|
|
27
|
-
Tartar: string;
|
|
28
|
-
Aghjabadi: string;
|
|
29
|
-
Aghdam: string;
|
|
30
|
-
Aghdash: string;
|
|
31
|
-
Astara: string;
|
|
32
|
-
Balakan: string;
|
|
33
|
-
Barda: string;
|
|
34
|
-
Beylagan: string;
|
|
35
|
-
Bilasuvar: string;
|
|
36
|
-
Jalilabad: string;
|
|
37
|
-
Dashkasan: string;
|
|
38
|
-
Fuzuli: string;
|
|
39
|
-
Gedebey: string;
|
|
40
|
-
Goranboy: string;
|
|
41
|
-
Goychay: string;
|
|
42
|
-
Hajigabul: string;
|
|
43
|
-
Imishli: string;
|
|
44
|
-
Ismayilli: string;
|
|
45
|
-
Kurdamir: string;
|
|
46
|
-
Lerik: string;
|
|
47
|
-
Masalli: string;
|
|
48
|
-
Neftchala: string;
|
|
49
|
-
Oghuz: string;
|
|
50
|
-
Gakh: string;
|
|
51
|
-
Gazakh: string;
|
|
52
|
-
Gobustan: string;
|
|
53
|
-
Saatly: string;
|
|
54
|
-
Sabirabad: string;
|
|
55
|
-
Salyan: string;
|
|
56
|
-
Samukh: string;
|
|
57
|
-
Siyezen: string;
|
|
58
|
-
Shabran: string;
|
|
59
|
-
Shamakhi: string;
|
|
60
|
-
Tovuz: string;
|
|
61
|
-
Ujar: string;
|
|
62
|
-
Khachmaz: string;
|
|
63
|
-
Khizi: string;
|
|
64
|
-
Khojaly: string;
|
|
65
|
-
Khojavend: string;
|
|
66
|
-
Yardimli: string;
|
|
67
|
-
Zagatala: string;
|
|
68
|
-
Zardab: string;
|
|
69
|
-
Zangilan: string;
|
|
70
|
-
Shusha: string;
|
|
71
|
-
Lachin: string;
|
|
72
|
-
Kalbajar: string;
|
|
73
|
-
Khankendi: string;
|
|
14
|
+
Floor: string;
|
|
15
|
+
"Enter address": string;
|
|
74
16
|
};
|
|
75
17
|
export default _default;
|
|
@@ -14,6 +14,8 @@ declare const _default: {
|
|
|
14
14
|
CITY_REQUIRED: string;
|
|
15
15
|
STREET_REQUIRED: string;
|
|
16
16
|
STREET_NUMBER_REQUIRED: string;
|
|
17
|
+
OUT_OF_DELIVERY_RANGE: string;
|
|
18
|
+
NO_ORDER_TYPE: string;
|
|
17
19
|
};
|
|
18
20
|
common: {
|
|
19
21
|
Save: string;
|
|
@@ -25,6 +27,7 @@ declare const _default: {
|
|
|
25
27
|
"Remove from order": string;
|
|
26
28
|
"Update order": string;
|
|
27
29
|
"Add to order": string;
|
|
30
|
+
Add: string;
|
|
28
31
|
"Your order": string;
|
|
29
32
|
"Empty order": string;
|
|
30
33
|
"You don't have any items in your order": string;
|
|
@@ -52,6 +55,7 @@ declare const _default: {
|
|
|
52
55
|
"Place order": string;
|
|
53
56
|
Continue: string;
|
|
54
57
|
"Track order": string;
|
|
58
|
+
"Minimum order amount for delivery is {{amount}}": string;
|
|
55
59
|
};
|
|
56
60
|
customer: {
|
|
57
61
|
"Unknown address": string;
|
|
@@ -66,66 +70,8 @@ declare const _default: {
|
|
|
66
70
|
"Example: Door code is 555": string;
|
|
67
71
|
"Delivery Instructions": string;
|
|
68
72
|
Azerbaijan: string;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
Sumgayit: string;
|
|
72
|
-
Mingachevir: string;
|
|
73
|
-
Shirvan: string;
|
|
74
|
-
Naftalan: string;
|
|
75
|
-
Shaki: string;
|
|
76
|
-
Lenkoran: string;
|
|
77
|
-
Yevlakh: string;
|
|
78
|
-
Shamkir: string;
|
|
79
|
-
Guba: string;
|
|
80
|
-
Gusar: string;
|
|
81
|
-
Gabala: string;
|
|
82
|
-
Tartar: string;
|
|
83
|
-
Aghjabadi: string;
|
|
84
|
-
Aghdam: string;
|
|
85
|
-
Aghdash: string;
|
|
86
|
-
Astara: string;
|
|
87
|
-
Balakan: string;
|
|
88
|
-
Barda: string;
|
|
89
|
-
Beylagan: string;
|
|
90
|
-
Bilasuvar: string;
|
|
91
|
-
Jalilabad: string;
|
|
92
|
-
Dashkasan: string;
|
|
93
|
-
Fuzuli: string;
|
|
94
|
-
Gedebey: string;
|
|
95
|
-
Goranboy: string;
|
|
96
|
-
Goychay: string;
|
|
97
|
-
Hajigabul: string;
|
|
98
|
-
Imishli: string;
|
|
99
|
-
Ismayilli: string;
|
|
100
|
-
Kurdamir: string;
|
|
101
|
-
Lerik: string;
|
|
102
|
-
Masalli: string;
|
|
103
|
-
Neftchala: string;
|
|
104
|
-
Oghuz: string;
|
|
105
|
-
Gakh: string;
|
|
106
|
-
Gazakh: string;
|
|
107
|
-
Gobustan: string;
|
|
108
|
-
Saatly: string;
|
|
109
|
-
Sabirabad: string;
|
|
110
|
-
Salyan: string;
|
|
111
|
-
Samukh: string;
|
|
112
|
-
Siyezen: string;
|
|
113
|
-
Shabran: string;
|
|
114
|
-
Shamakhi: string;
|
|
115
|
-
Tovuz: string;
|
|
116
|
-
Ujar: string;
|
|
117
|
-
Khachmaz: string;
|
|
118
|
-
Khizi: string;
|
|
119
|
-
Khojaly: string;
|
|
120
|
-
Khojavend: string;
|
|
121
|
-
Yardimli: string;
|
|
122
|
-
Zagatala: string;
|
|
123
|
-
Zardab: string;
|
|
124
|
-
Zangilan: string;
|
|
125
|
-
Shusha: string;
|
|
126
|
-
Lachin: string;
|
|
127
|
-
Kalbajar: string;
|
|
128
|
-
Khankendi: string;
|
|
73
|
+
Floor: string;
|
|
74
|
+
"Enter address": string;
|
|
129
75
|
};
|
|
130
76
|
auth: {
|
|
131
77
|
"Create an account or log in": string;
|
|
@@ -3,6 +3,7 @@ declare const _default: {
|
|
|
3
3
|
"Remove from order": string;
|
|
4
4
|
"Update order": string;
|
|
5
5
|
"Add to order": string;
|
|
6
|
+
Add: string;
|
|
6
7
|
"Your order": string;
|
|
7
8
|
"Empty order": string;
|
|
8
9
|
"You don't have any items in your order": string;
|
|
@@ -30,5 +31,6 @@ declare const _default: {
|
|
|
30
31
|
"Place order": string;
|
|
31
32
|
Continue: string;
|
|
32
33
|
"Track order": string;
|
|
34
|
+
"Minimum order amount for delivery is {{amount}}": string;
|
|
33
35
|
};
|
|
34
36
|
export default _default;
|