@tabres/react 1.0.34 → 1.0.37
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/Customer/UnregisteredContact/UnregisteredContact.d.ts +2 -0
- package/dist/components/PublicMenu/Customer/UnregisteredContact/index.d.ts +1 -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/index.esm.js +1 -1
- package/dist/models/index.esm.js.map +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/modules/branch/models.d.ts +3 -1
- package/dist/models/modules/customer/hooks.d.ts +1 -0
- package/dist/models/modules/order/hooks.d.ts +3 -1
- package/dist/models/modules/order/models.d.ts +40 -0
- package/dist/models/modules/order/services.d.ts +5 -1
- package/dist/models/modules/order/utils.d.ts +2 -1
- package/dist/models/services/translation/locales/az/customer.d.ts +5 -0
- package/dist/models/services/translation/locales/az/index.d.ts +5 -0
- package/dist/models/services/translation/locales/es/customer.d.ts +5 -0
- package/dist/models/services/translation/locales/es/index.d.ts +5 -0
- package/dist/models/services/translation/locales/et/customer.d.ts +5 -0
- package/dist/models/services/translation/locales/et/index.d.ts +5 -0
- package/dist/models/services/translation/locales/hr/customer.d.ts +5 -0
- package/dist/models/services/translation/locales/hr/index.d.ts +5 -0
- package/dist/models/services/translation/locales/index.d.ts +45 -0
- package/dist/models/services/translation/locales/nl/customer.d.ts +5 -0
- package/dist/models/services/translation/locales/nl/index.d.ts +5 -0
- package/dist/models/services/translation/locales/pl/customer.d.ts +5 -0
- package/dist/models/services/translation/locales/pl/index.d.ts +5 -0
- package/dist/models/services/translation/locales/pt/customer.d.ts +5 -0
- package/dist/models/services/translation/locales/pt/index.d.ts +5 -0
- package/dist/models/services/translation/locales/ru/customer.d.ts +5 -0
- package/dist/models/services/translation/locales/ru/index.d.ts +5 -0
- package/dist/models/services/translation/locales/tr/customer.d.ts +5 -0
- package/dist/models/services/translation/locales/tr/index.d.ts +5 -0
- package/dist/models/store/order.d.ts +2 -0
- package/dist/modules/branch/models.d.ts +3 -1
- package/dist/modules/customer/hooks.d.ts +1 -0
- package/dist/modules/menu/hooks.test.d.ts +1 -0
- package/dist/modules/order/hooks.d.ts +3 -1
- package/dist/modules/order/models.d.ts +40 -0
- package/dist/modules/order/services.d.ts +5 -1
- package/dist/modules/order/services.test.d.ts +1 -0
- package/dist/modules/order/utils.d.ts +2 -1
- package/dist/services/translation/locales/az/customer.d.ts +5 -0
- package/dist/services/translation/locales/az/index.d.ts +5 -0
- package/dist/services/translation/locales/es/customer.d.ts +5 -0
- package/dist/services/translation/locales/es/index.d.ts +5 -0
- package/dist/services/translation/locales/et/customer.d.ts +5 -0
- package/dist/services/translation/locales/et/index.d.ts +5 -0
- package/dist/services/translation/locales/hr/customer.d.ts +5 -0
- package/dist/services/translation/locales/hr/index.d.ts +5 -0
- package/dist/services/translation/locales/index.d.ts +45 -0
- package/dist/services/translation/locales/nl/customer.d.ts +5 -0
- package/dist/services/translation/locales/nl/index.d.ts +5 -0
- package/dist/services/translation/locales/pl/customer.d.ts +5 -0
- package/dist/services/translation/locales/pl/index.d.ts +5 -0
- package/dist/services/translation/locales/pt/customer.d.ts +5 -0
- package/dist/services/translation/locales/pt/index.d.ts +5 -0
- package/dist/services/translation/locales/ru/customer.d.ts +5 -0
- package/dist/services/translation/locales/ru/index.d.ts +5 -0
- package/dist/services/translation/locales/tr/customer.d.ts +5 -0
- package/dist/services/translation/locales/tr/index.d.ts +5 -0
- package/dist/store/order.d.ts +2 -0
- package/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- 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/modules/branch/models.d.ts +3 -1
- package/dist/utils/modules/customer/hooks.d.ts +1 -0
- package/dist/utils/modules/order/hooks.d.ts +3 -1
- package/dist/utils/modules/order/models.d.ts +40 -0
- package/dist/utils/modules/order/services.d.ts +5 -1
- package/dist/utils/modules/order/utils.d.ts +2 -1
- package/dist/utils/services/translation/locales/az/customer.d.ts +5 -0
- package/dist/utils/services/translation/locales/az/index.d.ts +5 -0
- package/dist/utils/services/translation/locales/es/customer.d.ts +5 -0
- package/dist/utils/services/translation/locales/es/index.d.ts +5 -0
- package/dist/utils/services/translation/locales/et/customer.d.ts +5 -0
- package/dist/utils/services/translation/locales/et/index.d.ts +5 -0
- package/dist/utils/services/translation/locales/hr/customer.d.ts +5 -0
- package/dist/utils/services/translation/locales/hr/index.d.ts +5 -0
- package/dist/utils/services/translation/locales/index.d.ts +45 -0
- package/dist/utils/services/translation/locales/nl/customer.d.ts +5 -0
- package/dist/utils/services/translation/locales/nl/index.d.ts +5 -0
- package/dist/utils/services/translation/locales/pl/customer.d.ts +5 -0
- package/dist/utils/services/translation/locales/pl/index.d.ts +5 -0
- package/dist/utils/services/translation/locales/pt/customer.d.ts +5 -0
- package/dist/utils/services/translation/locales/pt/index.d.ts +5 -0
- package/dist/utils/services/translation/locales/ru/customer.d.ts +5 -0
- package/dist/utils/services/translation/locales/ru/index.d.ts +5 -0
- package/dist/utils/services/translation/locales/tr/customer.d.ts +5 -0
- package/dist/utils/services/translation/locales/tr/index.d.ts +5 -0
- package/dist/utils/store/order.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconType } from "@sorocraft/ui";
|
|
2
|
-
import { CalculatePreviewResponse, Order, OrderAddon, OrderItem, OrderStatus, OrderType, SelectedAddons } from "./models";
|
|
2
|
+
import { CalculatePreviewResponse, GuestContact, GuestContactRequest, Order, OrderAddon, OrderItem, OrderStatus, OrderType, SelectedAddons } from "./models";
|
|
3
3
|
import * as addonModels from "../addon/models";
|
|
4
4
|
import * as branchModels from "../branch/models";
|
|
5
5
|
import { OrderErrors } from "./constants";
|
|
@@ -9,5 +9,6 @@ export declare const getStatusIcon: (status: OrderStatus) => IconType;
|
|
|
9
9
|
export declare const buildSelectedAddonsPayload: (productAddons?: addonModels.MenuAddon[], selectedAddons?: SelectedAddons) => OrderAddon[];
|
|
10
10
|
export declare const getDefaultOrderType: (settings: branchModels.BranchSettings, isOpen: boolean, isDelivering: boolean) => OrderType | null;
|
|
11
11
|
export declare const isValidPreviewResponse: (data: unknown) => data is CalculatePreviewResponse;
|
|
12
|
+
export declare const buildGuestContactRequest: (contact?: GuestContact) => GuestContactRequest | undefined;
|
|
12
13
|
export declare const getOrderErrorMessages: (field: keyof Order) => OrderErrors;
|
|
13
14
|
export * from "./utils/item-price";
|
|
@@ -86,6 +86,11 @@ declare const _default: {
|
|
|
86
86
|
Floor: string;
|
|
87
87
|
"Enter address": string;
|
|
88
88
|
"House No.": string;
|
|
89
|
+
"Your details": string;
|
|
90
|
+
"Full name": string;
|
|
91
|
+
"Your name": string;
|
|
92
|
+
"Phone number": string;
|
|
93
|
+
Email: string;
|
|
89
94
|
};
|
|
90
95
|
auth: {
|
|
91
96
|
"Create an account or log in": string;
|
|
@@ -38,6 +38,11 @@ declare const _default: {
|
|
|
38
38
|
Floor: string;
|
|
39
39
|
"Enter address": string;
|
|
40
40
|
"House No.": string;
|
|
41
|
+
"Your details": string;
|
|
42
|
+
"Full name": string;
|
|
43
|
+
"Your name": string;
|
|
44
|
+
"Phone number": string;
|
|
45
|
+
Email: string;
|
|
41
46
|
};
|
|
42
47
|
error: {
|
|
43
48
|
SOMETHING_WRONG: string;
|
|
@@ -85,6 +85,11 @@ declare const _default: {
|
|
|
85
85
|
Floor: string;
|
|
86
86
|
"Enter address": string;
|
|
87
87
|
"House No.": string;
|
|
88
|
+
"Your details": string;
|
|
89
|
+
"Full name": string;
|
|
90
|
+
"Your name": string;
|
|
91
|
+
"Phone number": string;
|
|
92
|
+
Email: string;
|
|
88
93
|
};
|
|
89
94
|
auth: {
|
|
90
95
|
"Create an account or log in": string;
|
|
@@ -86,6 +86,11 @@ declare const _default: {
|
|
|
86
86
|
Floor: string;
|
|
87
87
|
"Enter address": string;
|
|
88
88
|
"House No.": string;
|
|
89
|
+
"Your details": string;
|
|
90
|
+
"Full name": string;
|
|
91
|
+
"Your name": string;
|
|
92
|
+
"Phone number": string;
|
|
93
|
+
Email: string;
|
|
89
94
|
};
|
|
90
95
|
auth: {
|
|
91
96
|
"Create an account or log in": string;
|
|
@@ -87,6 +87,11 @@ declare const _default: {
|
|
|
87
87
|
Floor: string;
|
|
88
88
|
"Enter address": string;
|
|
89
89
|
"House No.": string;
|
|
90
|
+
"Your details": string;
|
|
91
|
+
"Full name": string;
|
|
92
|
+
"Your name": string;
|
|
93
|
+
"Phone number": string;
|
|
94
|
+
Email: string;
|
|
90
95
|
};
|
|
91
96
|
auth: {
|
|
92
97
|
"Create an account or log in": string;
|
|
@@ -187,6 +192,11 @@ declare const _default: {
|
|
|
187
192
|
Floor: string;
|
|
188
193
|
"Enter address": string;
|
|
189
194
|
"House No.": string;
|
|
195
|
+
"Your details": string;
|
|
196
|
+
"Full name": string;
|
|
197
|
+
"Your name": string;
|
|
198
|
+
"Phone number": string;
|
|
199
|
+
Email: string;
|
|
190
200
|
};
|
|
191
201
|
error: {
|
|
192
202
|
SOMETHING_WRONG: string;
|
|
@@ -351,6 +361,11 @@ declare const _default: {
|
|
|
351
361
|
Floor: string;
|
|
352
362
|
"Enter address": string;
|
|
353
363
|
"House No.": string;
|
|
364
|
+
"Your details": string;
|
|
365
|
+
"Full name": string;
|
|
366
|
+
"Your name": string;
|
|
367
|
+
"Phone number": string;
|
|
368
|
+
Email: string;
|
|
354
369
|
};
|
|
355
370
|
auth: {
|
|
356
371
|
"Create an account or log in": string;
|
|
@@ -465,6 +480,11 @@ declare const _default: {
|
|
|
465
480
|
Floor: string;
|
|
466
481
|
"Enter address": string;
|
|
467
482
|
"House No.": string;
|
|
483
|
+
"Your details": string;
|
|
484
|
+
"Full name": string;
|
|
485
|
+
"Your name": string;
|
|
486
|
+
"Phone number": string;
|
|
487
|
+
Email: string;
|
|
468
488
|
};
|
|
469
489
|
auth: {
|
|
470
490
|
"Create an account or log in": string;
|
|
@@ -579,6 +599,11 @@ declare const _default: {
|
|
|
579
599
|
Floor: string;
|
|
580
600
|
"Enter address": string;
|
|
581
601
|
"House No.": string;
|
|
602
|
+
"Your details": string;
|
|
603
|
+
"Full name": string;
|
|
604
|
+
"Your name": string;
|
|
605
|
+
"Phone number": string;
|
|
606
|
+
Email: string;
|
|
582
607
|
};
|
|
583
608
|
auth: {
|
|
584
609
|
"Create an account or log in": string;
|
|
@@ -693,6 +718,11 @@ declare const _default: {
|
|
|
693
718
|
Floor: string;
|
|
694
719
|
"Enter address": string;
|
|
695
720
|
"House No.": string;
|
|
721
|
+
"Your details": string;
|
|
722
|
+
"Full name": string;
|
|
723
|
+
"Your name": string;
|
|
724
|
+
"Phone number": string;
|
|
725
|
+
Email: string;
|
|
696
726
|
};
|
|
697
727
|
auth: {
|
|
698
728
|
"Create an account or log in": string;
|
|
@@ -808,6 +838,11 @@ declare const _default: {
|
|
|
808
838
|
Floor: string;
|
|
809
839
|
"Enter address": string;
|
|
810
840
|
"House No.": string;
|
|
841
|
+
"Your details": string;
|
|
842
|
+
"Full name": string;
|
|
843
|
+
"Your name": string;
|
|
844
|
+
"Phone number": string;
|
|
845
|
+
Email: string;
|
|
811
846
|
};
|
|
812
847
|
auth: {
|
|
813
848
|
"Create an account or log in": string;
|
|
@@ -924,6 +959,11 @@ declare const _default: {
|
|
|
924
959
|
Floor: string;
|
|
925
960
|
"Enter address": string;
|
|
926
961
|
"House No.": string;
|
|
962
|
+
"Your details": string;
|
|
963
|
+
"Full name": string;
|
|
964
|
+
"Your name": string;
|
|
965
|
+
"Phone number": string;
|
|
966
|
+
Email: string;
|
|
927
967
|
};
|
|
928
968
|
auth: {
|
|
929
969
|
"Create an account or log in": string;
|
|
@@ -1040,6 +1080,11 @@ declare const _default: {
|
|
|
1040
1080
|
Floor: string;
|
|
1041
1081
|
"Enter address": string;
|
|
1042
1082
|
"House No.": string;
|
|
1083
|
+
"Your details": string;
|
|
1084
|
+
"Full name": string;
|
|
1085
|
+
"Your name": string;
|
|
1086
|
+
"Phone number": string;
|
|
1087
|
+
Email: string;
|
|
1043
1088
|
};
|
|
1044
1089
|
auth: {
|
|
1045
1090
|
"Create an account or log in": string;
|
|
@@ -85,6 +85,11 @@ declare const _default: {
|
|
|
85
85
|
Floor: string;
|
|
86
86
|
"Enter address": string;
|
|
87
87
|
"House No.": string;
|
|
88
|
+
"Your details": string;
|
|
89
|
+
"Full name": string;
|
|
90
|
+
"Your name": string;
|
|
91
|
+
"Phone number": string;
|
|
92
|
+
Email: string;
|
|
88
93
|
};
|
|
89
94
|
auth: {
|
|
90
95
|
"Create an account or log in": string;
|
|
@@ -86,6 +86,11 @@ declare const _default: {
|
|
|
86
86
|
Floor: string;
|
|
87
87
|
"Enter address": string;
|
|
88
88
|
"House No.": string;
|
|
89
|
+
"Your details": string;
|
|
90
|
+
"Full name": string;
|
|
91
|
+
"Your name": string;
|
|
92
|
+
"Phone number": string;
|
|
93
|
+
Email: string;
|
|
89
94
|
};
|
|
90
95
|
auth: {
|
|
91
96
|
"Create an account or log in": string;
|
|
@@ -86,6 +86,11 @@ declare const _default: {
|
|
|
86
86
|
Floor: string;
|
|
87
87
|
"Enter address": string;
|
|
88
88
|
"House No.": string;
|
|
89
|
+
"Your details": string;
|
|
90
|
+
"Full name": string;
|
|
91
|
+
"Your name": string;
|
|
92
|
+
"Phone number": string;
|
|
93
|
+
Email: string;
|
|
89
94
|
};
|
|
90
95
|
auth: {
|
|
91
96
|
"Create an account or log in": string;
|
|
@@ -85,6 +85,11 @@ declare const _default: {
|
|
|
85
85
|
Floor: string;
|
|
86
86
|
"Enter address": string;
|
|
87
87
|
"House No.": string;
|
|
88
|
+
"Your details": string;
|
|
89
|
+
"Full name": string;
|
|
90
|
+
"Your name": string;
|
|
91
|
+
"Phone number": string;
|
|
92
|
+
Email: string;
|
|
88
93
|
};
|
|
89
94
|
auth: {
|
|
90
95
|
"Create an account or log in": string;
|
|
@@ -85,6 +85,11 @@ declare const _default: {
|
|
|
85
85
|
Floor: string;
|
|
86
86
|
"Enter address": string;
|
|
87
87
|
"House No.": string;
|
|
88
|
+
"Your details": string;
|
|
89
|
+
"Full name": string;
|
|
90
|
+
"Your name": string;
|
|
91
|
+
"Phone number": string;
|
|
92
|
+
Email: string;
|
|
88
93
|
};
|
|
89
94
|
auth: {
|
|
90
95
|
"Create an account or log in": string;
|
|
@@ -16,10 +16,12 @@ type OrderContent = {
|
|
|
16
16
|
orderItems: orderModels.OrderItems;
|
|
17
17
|
isOrderOpen: boolean;
|
|
18
18
|
customer: customerModels.Customer;
|
|
19
|
+
guestContact: orderModels.GuestContact;
|
|
19
20
|
trackingId: string;
|
|
20
21
|
errors?: FormErrors;
|
|
21
22
|
setOrderStep: Dispatch<SetStateAction<orderModels.OrderStep>>;
|
|
22
23
|
updateOrder: (updatedFields: Partial<orderModels.Order>) => void;
|
|
24
|
+
updateGuestContact: (updatedFields: Partial<orderModels.GuestContact>) => void;
|
|
23
25
|
addProduct: (params: UpdateOrderItemsParams) => void;
|
|
24
26
|
updateProduct: (params: UpdateOrderItemsParams) => void;
|
|
25
27
|
removeAllProductVariants: (productId: number) => void;
|