@open-tender/store 1.1.79 → 1.1.81
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/cjs/app/hooks.d.ts +2 -2
- package/dist/cjs/app/store.d.ts +8 -8
- package/dist/cjs/components/CheckoutCart.d.ts +4 -2
- package/dist/cjs/components/CheckoutCart.js +2 -3
- package/dist/cjs/components/CheckoutTotals.d.ts +3 -2
- package/dist/cjs/components/CheckoutTotals.js +3 -4
- package/dist/cjs/components/index.d.ts +2 -1
- package/dist/cjs/components/index.js +4 -3
- package/dist/cjs/hooks/useEmployee.d.ts +1 -2
- package/dist/cjs/hooks/useGiftCardBalance.d.ts +1 -2
- package/dist/cjs/hooks/useKioskImageUrl.d.ts +1 -1
- package/dist/cjs/hooks/useOrder.d.ts +12 -16
- package/dist/cjs/hooks/usePunch.d.ts +0 -1
- package/dist/cjs/hooks/useRefund.d.ts +0 -1
- package/dist/cjs/services/api.d.ts +1 -1
- package/dist/cjs/slices/alerts.d.ts +0 -1
- package/dist/cjs/slices/arrivals.d.ts +1 -1
- package/dist/cjs/slices/checkout.d.ts +15 -15
- package/dist/cjs/slices/config.d.ts +6 -6
- package/dist/cjs/slices/customer.d.ts +2 -2
- package/dist/cjs/slices/customerIdentify.d.ts +2 -2
- package/dist/cjs/slices/kds.d.ts +18 -18
- package/dist/cjs/slices/kiosk.d.ts +32 -32
- package/dist/cjs/slices/menu.d.ts +1 -1
- package/dist/cjs/slices/menuPages.d.ts +9 -33
- package/dist/cjs/slices/notifications.d.ts +0 -1
- package/dist/cjs/slices/order.d.ts +41 -41
- package/dist/cjs/slices/pos.d.ts +5 -8
- package/dist/cjs/slices/refund.d.ts +1 -1
- package/dist/cjs/slices/sendReceipt.d.ts +1 -1
- package/dist/cjs/slices/settings.d.ts +2 -2
- package/dist/cjs/slices/surcharges.d.ts +1 -1
- package/dist/cjs/utils/menu.d.ts +4 -11
- package/dist/cjs/utils/orders.d.ts +10 -10
- package/dist/cjs/utils/pos.d.ts +0 -1
- package/dist/cjs/utils/punches.d.ts +2 -2
- package/dist/cjs/utils/refunds.d.ts +13 -14
- package/dist/esm/app/hooks.d.ts +2 -2
- package/dist/esm/app/store.d.ts +8 -8
- package/dist/esm/components/CheckoutCart.d.ts +4 -2
- package/dist/esm/components/CheckoutCart.js +2 -3
- package/dist/esm/components/CheckoutTotals.d.ts +3 -2
- package/dist/esm/components/CheckoutTotals.js +3 -4
- package/dist/esm/components/index.d.ts +2 -1
- package/dist/esm/components/index.js +2 -4
- package/dist/esm/hooks/useEmployee.d.ts +1 -2
- package/dist/esm/hooks/useGiftCardBalance.d.ts +1 -2
- package/dist/esm/hooks/useKioskImageUrl.d.ts +1 -1
- package/dist/esm/hooks/useOrder.d.ts +12 -16
- package/dist/esm/hooks/usePunch.d.ts +0 -1
- package/dist/esm/hooks/useRefund.d.ts +0 -1
- package/dist/esm/services/api.d.ts +1 -1
- package/dist/esm/slices/alerts.d.ts +0 -1
- package/dist/esm/slices/arrivals.d.ts +1 -1
- package/dist/esm/slices/checkout.d.ts +15 -15
- package/dist/esm/slices/config.d.ts +6 -6
- package/dist/esm/slices/customer.d.ts +2 -2
- package/dist/esm/slices/customerIdentify.d.ts +2 -2
- package/dist/esm/slices/kds.d.ts +18 -18
- package/dist/esm/slices/kiosk.d.ts +32 -32
- package/dist/esm/slices/menu.d.ts +1 -1
- package/dist/esm/slices/menuPages.d.ts +9 -33
- package/dist/esm/slices/notifications.d.ts +0 -1
- package/dist/esm/slices/order.d.ts +41 -41
- package/dist/esm/slices/pos.d.ts +5 -8
- package/dist/esm/slices/refund.d.ts +1 -1
- package/dist/esm/slices/sendReceipt.d.ts +1 -1
- package/dist/esm/slices/settings.d.ts +2 -2
- package/dist/esm/slices/surcharges.d.ts +1 -1
- package/dist/esm/utils/menu.d.ts +4 -11
- package/dist/esm/utils/orders.d.ts +10 -10
- package/dist/esm/utils/pos.d.ts +0 -1
- package/dist/esm/utils/punches.d.ts +2 -2
- package/dist/esm/utils/refunds.d.ts +13 -14
- package/package.json +3 -3
|
@@ -35,13 +35,13 @@ export declare const fetchKioskConfig: import("@reduxjs/toolkit").AsyncThunk<Kio
|
|
|
35
35
|
fulfilledMeta?: unknown;
|
|
36
36
|
rejectedMeta?: unknown;
|
|
37
37
|
}>;
|
|
38
|
-
export declare const resetKiosk: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"kiosk/resetKiosk">, resetKioskRetries: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"kiosk/resetKioskRetries">, incrementKioskRetries: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"kiosk/incrementKioskRetries">, setKioskVersion: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kiosk/setKioskVersion">, setKioskRatio: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "kiosk/setKioskRatio">, setKioskConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
38
|
+
export declare const resetKiosk: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"kiosk/resetKiosk">, resetKioskRetries: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"kiosk/resetKioskRetries">, incrementKioskRetries: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"kiosk/incrementKioskRetries">, setKioskVersion: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kiosk/setKioskVersion">, setKioskRatio: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "kiosk/setKioskRatio">, setKioskConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kiosk/setKioskConfig">, setKioskStyles: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kiosk/setKioskStyles">;
|
|
39
39
|
export declare const selectKiosk: (state: AppState) => KioskState;
|
|
40
40
|
export declare const selectKioskVersion: (state: AppState) => string | null | undefined;
|
|
41
|
-
export declare const selectKioskStore: (state: AppState) =>
|
|
42
|
-
export declare const selectKioskBrand: (state: AppState) =>
|
|
41
|
+
export declare const selectKioskStore: (state: AppState) => any;
|
|
42
|
+
export declare const selectKioskBrand: (state: AppState) => any;
|
|
43
43
|
export declare const selectKioskTerminal: ((state: {
|
|
44
|
-
alerts:
|
|
44
|
+
alerts: Alerts;
|
|
45
45
|
arrivals: import("./arrivals").ArrivalsState;
|
|
46
46
|
cartSummary: import("./cartSummary").CartSummaryState;
|
|
47
47
|
checkout: import("./checkout").CheckoutState;
|
|
@@ -56,7 +56,7 @@ export declare const selectKioskTerminal: ((state: {
|
|
|
56
56
|
menu: import("./menu").MenuState;
|
|
57
57
|
menuPages: import("./menuPages").MenuPagesState;
|
|
58
58
|
modal: import("./modal").ModalState;
|
|
59
|
-
notifications:
|
|
59
|
+
notifications: Notifications;
|
|
60
60
|
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
61
61
|
order: import("./order").OrderState;
|
|
62
62
|
pos: import("./pos").PosState;
|
|
@@ -67,26 +67,26 @@ export declare const selectKioskTerminal: ((state: {
|
|
|
67
67
|
sidebar: import("./sidebar").SidebarState;
|
|
68
68
|
surcharges: import("./surcharges").SurchargesState;
|
|
69
69
|
taxes: import("./taxes").TaxesState;
|
|
70
|
-
}) =>
|
|
70
|
+
}) => any) & {
|
|
71
71
|
clearCache: () => void;
|
|
72
72
|
resultsCount: () => number;
|
|
73
73
|
resetResultsCount: () => void;
|
|
74
74
|
} & {
|
|
75
75
|
resultFunc: (resultFuncArgs_0: {
|
|
76
|
-
devices:
|
|
76
|
+
devices: any;
|
|
77
77
|
terminalId: number | null;
|
|
78
|
-
}) =>
|
|
78
|
+
}) => any;
|
|
79
79
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
80
|
-
devices:
|
|
80
|
+
devices: any;
|
|
81
81
|
terminalId: number | null;
|
|
82
|
-
}) =>
|
|
82
|
+
}) => any) & {
|
|
83
83
|
clearCache: () => void;
|
|
84
84
|
resultsCount: () => number;
|
|
85
85
|
resetResultsCount: () => void;
|
|
86
86
|
};
|
|
87
|
-
lastResult: () =>
|
|
87
|
+
lastResult: () => any;
|
|
88
88
|
dependencies: [(state: AppState) => {
|
|
89
|
-
devices:
|
|
89
|
+
devices: any;
|
|
90
90
|
terminalId: number | null;
|
|
91
91
|
}];
|
|
92
92
|
recomputations: () => number;
|
|
@@ -98,7 +98,7 @@ export declare const selectKioskTerminal: ((state: {
|
|
|
98
98
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
99
99
|
};
|
|
100
100
|
export declare const selectKioskShowPrint: ((state: {
|
|
101
|
-
alerts:
|
|
101
|
+
alerts: Alerts;
|
|
102
102
|
arrivals: import("./arrivals").ArrivalsState;
|
|
103
103
|
cartSummary: import("./cartSummary").CartSummaryState;
|
|
104
104
|
checkout: import("./checkout").CheckoutState;
|
|
@@ -113,7 +113,7 @@ export declare const selectKioskShowPrint: ((state: {
|
|
|
113
113
|
menu: import("./menu").MenuState;
|
|
114
114
|
menuPages: import("./menuPages").MenuPagesState;
|
|
115
115
|
modal: import("./modal").ModalState;
|
|
116
|
-
notifications:
|
|
116
|
+
notifications: Notifications;
|
|
117
117
|
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
118
118
|
order: import("./order").OrderState;
|
|
119
119
|
pos: import("./pos").PosState;
|
|
@@ -130,11 +130,11 @@ export declare const selectKioskShowPrint: ((state: {
|
|
|
130
130
|
resetResultsCount: () => void;
|
|
131
131
|
} & {
|
|
132
132
|
resultFunc: (resultFuncArgs_0: {
|
|
133
|
-
devices:
|
|
133
|
+
devices: any;
|
|
134
134
|
terminalId: number | null;
|
|
135
135
|
}) => boolean;
|
|
136
136
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
137
|
-
devices:
|
|
137
|
+
devices: any;
|
|
138
138
|
terminalId: number | null;
|
|
139
139
|
}) => boolean) & {
|
|
140
140
|
clearCache: () => void;
|
|
@@ -143,7 +143,7 @@ export declare const selectKioskShowPrint: ((state: {
|
|
|
143
143
|
};
|
|
144
144
|
lastResult: () => boolean;
|
|
145
145
|
dependencies: [(state: AppState) => {
|
|
146
|
-
devices:
|
|
146
|
+
devices: any;
|
|
147
147
|
terminalId: number | null;
|
|
148
148
|
}];
|
|
149
149
|
recomputations: () => number;
|
|
@@ -155,7 +155,7 @@ export declare const selectKioskShowPrint: ((state: {
|
|
|
155
155
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
156
156
|
};
|
|
157
157
|
export declare const selectKioskApi: ((state: {
|
|
158
|
-
alerts:
|
|
158
|
+
alerts: Alerts;
|
|
159
159
|
arrivals: import("./arrivals").ArrivalsState;
|
|
160
160
|
cartSummary: import("./cartSummary").CartSummaryState;
|
|
161
161
|
checkout: import("./checkout").CheckoutState;
|
|
@@ -170,7 +170,7 @@ export declare const selectKioskApi: ((state: {
|
|
|
170
170
|
menu: import("./menu").MenuState;
|
|
171
171
|
menuPages: import("./menuPages").MenuPagesState;
|
|
172
172
|
modal: import("./modal").ModalState;
|
|
173
|
-
notifications:
|
|
173
|
+
notifications: Notifications;
|
|
174
174
|
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
175
175
|
order: import("./order").OrderState;
|
|
176
176
|
pos: import("./pos").PosState;
|
|
@@ -203,7 +203,7 @@ export declare const selectKioskApi: ((state: {
|
|
|
203
203
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
204
204
|
};
|
|
205
205
|
export declare const selectKioskConfig: ((state: {
|
|
206
|
-
alerts:
|
|
206
|
+
alerts: Alerts;
|
|
207
207
|
arrivals: import("./arrivals").ArrivalsState;
|
|
208
208
|
cartSummary: import("./cartSummary").CartSummaryState;
|
|
209
209
|
checkout: import("./checkout").CheckoutState;
|
|
@@ -218,7 +218,7 @@ export declare const selectKioskConfig: ((state: {
|
|
|
218
218
|
menu: import("./menu").MenuState;
|
|
219
219
|
menuPages: import("./menuPages").MenuPagesState;
|
|
220
220
|
modal: import("./modal").ModalState;
|
|
221
|
-
notifications:
|
|
221
|
+
notifications: Notifications;
|
|
222
222
|
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
223
223
|
order: import("./order").OrderState;
|
|
224
224
|
pos: import("./pos").PosState;
|
|
@@ -234,14 +234,14 @@ export declare const selectKioskConfig: ((state: {
|
|
|
234
234
|
resultsCount: () => number;
|
|
235
235
|
resetResultsCount: () => void;
|
|
236
236
|
} & {
|
|
237
|
-
resultFunc: (resultFuncArgs_0:
|
|
238
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
237
|
+
resultFunc: (resultFuncArgs_0: any) => AppConfig;
|
|
238
|
+
memoizedResultFunc: ((resultFuncArgs_0: any) => AppConfig) & {
|
|
239
239
|
clearCache: () => void;
|
|
240
240
|
resultsCount: () => number;
|
|
241
241
|
resetResultsCount: () => void;
|
|
242
242
|
};
|
|
243
243
|
lastResult: () => AppConfig;
|
|
244
|
-
dependencies: [(state: AppState) =>
|
|
244
|
+
dependencies: [(state: AppState) => any];
|
|
245
245
|
recomputations: () => number;
|
|
246
246
|
resetRecomputations: () => void;
|
|
247
247
|
dependencyRecomputations: () => number;
|
|
@@ -251,7 +251,7 @@ export declare const selectKioskConfig: ((state: {
|
|
|
251
251
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
252
252
|
};
|
|
253
253
|
export declare const selectKioskConfigScreen: (screen: string) => ((state: {
|
|
254
|
-
alerts:
|
|
254
|
+
alerts: Alerts;
|
|
255
255
|
arrivals: import("./arrivals").ArrivalsState;
|
|
256
256
|
cartSummary: import("./cartSummary").CartSummaryState;
|
|
257
257
|
checkout: import("./checkout").CheckoutState;
|
|
@@ -266,7 +266,7 @@ export declare const selectKioskConfigScreen: (screen: string) => ((state: {
|
|
|
266
266
|
menu: import("./menu").MenuState;
|
|
267
267
|
menuPages: import("./menuPages").MenuPagesState;
|
|
268
268
|
modal: import("./modal").ModalState;
|
|
269
|
-
notifications:
|
|
269
|
+
notifications: Notifications;
|
|
270
270
|
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
271
271
|
order: import("./order").OrderState;
|
|
272
272
|
pos: import("./pos").PosState;
|
|
@@ -277,19 +277,19 @@ export declare const selectKioskConfigScreen: (screen: string) => ((state: {
|
|
|
277
277
|
sidebar: import("./sidebar").SidebarState;
|
|
278
278
|
surcharges: import("./surcharges").SurchargesState;
|
|
279
279
|
taxes: import("./taxes").TaxesState;
|
|
280
|
-
}) =>
|
|
280
|
+
}) => any) & {
|
|
281
281
|
clearCache: () => void;
|
|
282
282
|
resultsCount: () => number;
|
|
283
283
|
resetResultsCount: () => void;
|
|
284
284
|
} & {
|
|
285
|
-
resultFunc: (resultFuncArgs_0:
|
|
286
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
285
|
+
resultFunc: (resultFuncArgs_0: any) => any;
|
|
286
|
+
memoizedResultFunc: ((resultFuncArgs_0: any) => any) & {
|
|
287
287
|
clearCache: () => void;
|
|
288
288
|
resultsCount: () => number;
|
|
289
289
|
resetResultsCount: () => void;
|
|
290
290
|
};
|
|
291
|
-
lastResult: () =>
|
|
292
|
-
dependencies: [(state: AppState) =>
|
|
291
|
+
lastResult: () => any;
|
|
292
|
+
dependencies: [(state: AppState) => any];
|
|
293
293
|
recomputations: () => number;
|
|
294
294
|
resetRecomputations: () => void;
|
|
295
295
|
dependencyRecomputations: () => number;
|
|
@@ -298,6 +298,6 @@ export declare const selectKioskConfigScreen: (screen: string) => ((state: {
|
|
|
298
298
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
299
299
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
300
300
|
};
|
|
301
|
-
export declare const selectKioskStyles: (state: AppState) =>
|
|
301
|
+
export declare const selectKioskStyles: (state: AppState) => any;
|
|
302
302
|
export declare const selectKioskRatio: (state: AppState) => number;
|
|
303
303
|
export declare const kioskReducer: import("redux").Reducer<KioskState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MenuCategories, MenuItems,
|
|
1
|
+
import { MenuCategories, MenuItems, RequestError, RequestStatus, SoldOut } from '@open-tender/types';
|
|
2
2
|
import { AppState } from '../app';
|
|
3
3
|
export interface MenuState {
|
|
4
4
|
categories: MenuCategories;
|
|
@@ -21,7 +21,7 @@ export declare const fetchMenuPages: import("@reduxjs/toolkit").AsyncThunk<MenuP
|
|
|
21
21
|
export declare const resetMenuPages: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"menuPages/resetMenuPages">;
|
|
22
22
|
export declare const selectMenuPages: (state: AppState) => MenuPagesState;
|
|
23
23
|
export declare const selectMenuPagesFiltered: ((state: {
|
|
24
|
-
alerts:
|
|
24
|
+
alerts: Alerts;
|
|
25
25
|
arrivals: import("./arrivals").ArrivalsState;
|
|
26
26
|
cartSummary: import("./cartSummary").CartSummaryState;
|
|
27
27
|
checkout: import("./checkout").CheckoutState;
|
|
@@ -36,7 +36,7 @@ export declare const selectMenuPagesFiltered: ((state: {
|
|
|
36
36
|
menu: import("./menu").MenuState;
|
|
37
37
|
menuPages: MenuPagesState;
|
|
38
38
|
modal: import("./modal").ModalState;
|
|
39
|
-
notifications:
|
|
39
|
+
notifications: Notifications;
|
|
40
40
|
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
41
41
|
order: import("./order").OrderState;
|
|
42
42
|
pos: import("./pos").PosState;
|
|
@@ -47,50 +47,26 @@ export declare const selectMenuPagesFiltered: ((state: {
|
|
|
47
47
|
sidebar: import("./sidebar").SidebarState;
|
|
48
48
|
surcharges: import("./surcharges").SurchargesState;
|
|
49
49
|
taxes: import("./taxes").TaxesState;
|
|
50
|
-
}) => {
|
|
51
|
-
order_type: import("@open-tender/types").FullOrderType;
|
|
52
|
-
name: string;
|
|
53
|
-
pos_page_id: number;
|
|
54
|
-
position: number;
|
|
55
|
-
sections: import("@open-tender/types").MenuPageSections;
|
|
56
|
-
}[]) & {
|
|
50
|
+
}) => any) & {
|
|
57
51
|
clearCache: () => void;
|
|
58
52
|
resultsCount: () => number;
|
|
59
53
|
resetResultsCount: () => void;
|
|
60
54
|
} & {
|
|
61
55
|
resultFunc: (resultFuncArgs_0: {
|
|
62
|
-
orderType:
|
|
56
|
+
orderType: any;
|
|
63
57
|
pages: MenuPages;
|
|
64
|
-
}) =>
|
|
65
|
-
order_type: import("@open-tender/types").FullOrderType;
|
|
66
|
-
name: string;
|
|
67
|
-
pos_page_id: number;
|
|
68
|
-
position: number;
|
|
69
|
-
sections: import("@open-tender/types").MenuPageSections;
|
|
70
|
-
}[];
|
|
58
|
+
}) => any;
|
|
71
59
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
72
|
-
orderType:
|
|
60
|
+
orderType: any;
|
|
73
61
|
pages: MenuPages;
|
|
74
|
-
}) => {
|
|
75
|
-
order_type: import("@open-tender/types").FullOrderType;
|
|
76
|
-
name: string;
|
|
77
|
-
pos_page_id: number;
|
|
78
|
-
position: number;
|
|
79
|
-
sections: import("@open-tender/types").MenuPageSections;
|
|
80
|
-
}[]) & {
|
|
62
|
+
}) => any) & {
|
|
81
63
|
clearCache: () => void;
|
|
82
64
|
resultsCount: () => number;
|
|
83
65
|
resetResultsCount: () => void;
|
|
84
66
|
};
|
|
85
|
-
lastResult: () =>
|
|
86
|
-
order_type: import("@open-tender/types").FullOrderType;
|
|
87
|
-
name: string;
|
|
88
|
-
pos_page_id: number;
|
|
89
|
-
position: number;
|
|
90
|
-
sections: import("@open-tender/types").MenuPageSections;
|
|
91
|
-
}[];
|
|
67
|
+
lastResult: () => any;
|
|
92
68
|
dependencies: [(state: AppState) => {
|
|
93
|
-
orderType:
|
|
69
|
+
orderType: any;
|
|
94
70
|
pages: MenuPages;
|
|
95
71
|
}];
|
|
96
72
|
recomputations: () => number;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Notifications } from '@open-tender/types';
|
|
2
1
|
import { AppState } from '../app';
|
|
3
2
|
export declare const showNotification: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "notifications/showNotification">, hideNotification: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "notifications/hideNotification">;
|
|
4
3
|
export declare const selectNotifications: (state: AppState) => Notifications;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cart, CartCounts, CartItem, CartLevels, MenuCategory, MenuRevenueCenter, Messages,
|
|
1
|
+
import { Cart, CartCounts, CartItem, CartLevels, MenuCategory, MenuRevenueCenter, Messages, OrderType, PrepType, RequestError, RequestStatus, RequestedAt, ServiceType } from '@open-tender/types';
|
|
2
2
|
import { AppState } from '../app';
|
|
3
3
|
export interface NestedOption {
|
|
4
4
|
groupId: number;
|
|
@@ -45,26 +45,26 @@ export declare const resetOrder: import("@reduxjs/toolkit").ActionCreatorWithout
|
|
|
45
45
|
export declare const selectOrder: (state: AppState) => OrderState;
|
|
46
46
|
export declare const selectAlert: (state: AppState) => string | null;
|
|
47
47
|
export declare const selectMessages: (state: AppState) => Messages;
|
|
48
|
-
export declare const selectOrderType: (state: AppState) =>
|
|
49
|
-
export declare const selectOrderTypeName: (state: AppState) =>
|
|
50
|
-
export declare const selectServiceType: (state: AppState) =>
|
|
51
|
-
export declare const selectServiceTypeName: (state: AppState) =>
|
|
52
|
-
export declare const selectRequestedAt: (state: AppState) =>
|
|
48
|
+
export declare const selectOrderType: (state: AppState) => any;
|
|
49
|
+
export declare const selectOrderTypeName: (state: AppState) => any;
|
|
50
|
+
export declare const selectServiceType: (state: AppState) => any;
|
|
51
|
+
export declare const selectServiceTypeName: (state: AppState) => any;
|
|
52
|
+
export declare const selectRequestedAt: (state: AppState) => any;
|
|
53
53
|
export declare const selectRevenueCenterId: (state: AppState) => number | null;
|
|
54
54
|
export declare const selectMenuSlug: (state: AppState) => string;
|
|
55
55
|
export declare const selectMenuVars: (state: AppState) => {
|
|
56
56
|
revenueCenterId: number | null;
|
|
57
|
-
serviceType:
|
|
57
|
+
serviceType: any;
|
|
58
58
|
requestedAt: RequestedAt;
|
|
59
59
|
};
|
|
60
|
-
export declare const selectCurrentVendor: (state: AppState) =>
|
|
61
|
-
export declare const selectCurrentCategory: (state: AppState) =>
|
|
62
|
-
export declare const selectCurrentItem: (state: AppState) =>
|
|
60
|
+
export declare const selectCurrentVendor: (state: AppState) => any;
|
|
61
|
+
export declare const selectCurrentCategory: (state: AppState) => any;
|
|
62
|
+
export declare const selectCurrentItem: (state: AppState) => any;
|
|
63
63
|
export declare const selectCurrentOption: (state: AppState) => NestedOption | null;
|
|
64
64
|
export declare const selectCurrentSection: (state: AppState) => string | null;
|
|
65
65
|
export declare const selectCart: (state: AppState) => Cart;
|
|
66
66
|
export declare const selectCartIds: ((state: {
|
|
67
|
-
alerts:
|
|
67
|
+
alerts: Alerts;
|
|
68
68
|
arrivals: import("./arrivals").ArrivalsState;
|
|
69
69
|
cartSummary: import("./cartSummary").CartSummaryState;
|
|
70
70
|
checkout: import("./checkout").CheckoutState;
|
|
@@ -79,7 +79,7 @@ export declare const selectCartIds: ((state: {
|
|
|
79
79
|
menu: import("./menu").MenuState;
|
|
80
80
|
menuPages: import("./menuPages").MenuPagesState;
|
|
81
81
|
modal: import("./modal").ModalState;
|
|
82
|
-
notifications:
|
|
82
|
+
notifications: Notifications;
|
|
83
83
|
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
84
84
|
order: OrderState;
|
|
85
85
|
pos: import("./pos").PosState;
|
|
@@ -90,18 +90,18 @@ export declare const selectCartIds: ((state: {
|
|
|
90
90
|
sidebar: import("./sidebar").SidebarState;
|
|
91
91
|
surcharges: import("./surcharges").SurchargesState;
|
|
92
92
|
taxes: import("./taxes").TaxesState;
|
|
93
|
-
}) =>
|
|
93
|
+
}) => any) & {
|
|
94
94
|
clearCache: () => void;
|
|
95
95
|
resultsCount: () => number;
|
|
96
96
|
resetResultsCount: () => void;
|
|
97
97
|
} & {
|
|
98
|
-
resultFunc: (resultFuncArgs_0: Cart) =>
|
|
99
|
-
memoizedResultFunc: ((resultFuncArgs_0: Cart) =>
|
|
98
|
+
resultFunc: (resultFuncArgs_0: Cart) => any;
|
|
99
|
+
memoizedResultFunc: ((resultFuncArgs_0: Cart) => any) & {
|
|
100
100
|
clearCache: () => void;
|
|
101
101
|
resultsCount: () => number;
|
|
102
102
|
resetResultsCount: () => void;
|
|
103
103
|
};
|
|
104
|
-
lastResult: () =>
|
|
104
|
+
lastResult: () => any;
|
|
105
105
|
dependencies: [(state: AppState) => Cart];
|
|
106
106
|
recomputations: () => number;
|
|
107
107
|
resetRecomputations: () => void;
|
|
@@ -112,7 +112,7 @@ export declare const selectCartIds: ((state: {
|
|
|
112
112
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
113
113
|
};
|
|
114
114
|
export declare const selectCartQuantity: ((state: {
|
|
115
|
-
alerts:
|
|
115
|
+
alerts: Alerts;
|
|
116
116
|
arrivals: import("./arrivals").ArrivalsState;
|
|
117
117
|
cartSummary: import("./cartSummary").CartSummaryState;
|
|
118
118
|
checkout: import("./checkout").CheckoutState;
|
|
@@ -127,7 +127,7 @@ export declare const selectCartQuantity: ((state: {
|
|
|
127
127
|
menu: import("./menu").MenuState;
|
|
128
128
|
menuPages: import("./menuPages").MenuPagesState;
|
|
129
129
|
modal: import("./modal").ModalState;
|
|
130
|
-
notifications:
|
|
130
|
+
notifications: Notifications;
|
|
131
131
|
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
132
132
|
order: OrderState;
|
|
133
133
|
pos: import("./pos").PosState;
|
|
@@ -138,18 +138,18 @@ export declare const selectCartQuantity: ((state: {
|
|
|
138
138
|
sidebar: import("./sidebar").SidebarState;
|
|
139
139
|
surcharges: import("./surcharges").SurchargesState;
|
|
140
140
|
taxes: import("./taxes").TaxesState;
|
|
141
|
-
}) =>
|
|
141
|
+
}) => any) & {
|
|
142
142
|
clearCache: () => void;
|
|
143
143
|
resultsCount: () => number;
|
|
144
144
|
resetResultsCount: () => void;
|
|
145
145
|
} & {
|
|
146
|
-
resultFunc: (resultFuncArgs_0: Cart) =>
|
|
147
|
-
memoizedResultFunc: ((resultFuncArgs_0: Cart) =>
|
|
146
|
+
resultFunc: (resultFuncArgs_0: Cart) => any;
|
|
147
|
+
memoizedResultFunc: ((resultFuncArgs_0: Cart) => any) & {
|
|
148
148
|
clearCache: () => void;
|
|
149
149
|
resultsCount: () => number;
|
|
150
150
|
resetResultsCount: () => void;
|
|
151
151
|
};
|
|
152
|
-
lastResult: () =>
|
|
152
|
+
lastResult: () => any;
|
|
153
153
|
dependencies: [(state: AppState) => Cart];
|
|
154
154
|
recomputations: () => number;
|
|
155
155
|
resetRecomputations: () => void;
|
|
@@ -160,7 +160,7 @@ export declare const selectCartQuantity: ((state: {
|
|
|
160
160
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
161
161
|
};
|
|
162
162
|
export declare const selectCartTotal: ((state: {
|
|
163
|
-
alerts:
|
|
163
|
+
alerts: Alerts;
|
|
164
164
|
arrivals: import("./arrivals").ArrivalsState;
|
|
165
165
|
cartSummary: import("./cartSummary").CartSummaryState;
|
|
166
166
|
checkout: import("./checkout").CheckoutState;
|
|
@@ -175,7 +175,7 @@ export declare const selectCartTotal: ((state: {
|
|
|
175
175
|
menu: import("./menu").MenuState;
|
|
176
176
|
menuPages: import("./menuPages").MenuPagesState;
|
|
177
177
|
modal: import("./modal").ModalState;
|
|
178
|
-
notifications:
|
|
178
|
+
notifications: Notifications;
|
|
179
179
|
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
180
180
|
order: OrderState;
|
|
181
181
|
pos: import("./pos").PosState;
|
|
@@ -186,18 +186,18 @@ export declare const selectCartTotal: ((state: {
|
|
|
186
186
|
sidebar: import("./sidebar").SidebarState;
|
|
187
187
|
surcharges: import("./surcharges").SurchargesState;
|
|
188
188
|
taxes: import("./taxes").TaxesState;
|
|
189
|
-
}) =>
|
|
189
|
+
}) => any) & {
|
|
190
190
|
clearCache: () => void;
|
|
191
191
|
resultsCount: () => number;
|
|
192
192
|
resetResultsCount: () => void;
|
|
193
193
|
} & {
|
|
194
|
-
resultFunc: (resultFuncArgs_0: Cart) =>
|
|
195
|
-
memoizedResultFunc: ((resultFuncArgs_0: Cart) =>
|
|
194
|
+
resultFunc: (resultFuncArgs_0: Cart) => any;
|
|
195
|
+
memoizedResultFunc: ((resultFuncArgs_0: Cart) => any) & {
|
|
196
196
|
clearCache: () => void;
|
|
197
197
|
resultsCount: () => number;
|
|
198
198
|
resetResultsCount: () => void;
|
|
199
199
|
};
|
|
200
|
-
lastResult: () =>
|
|
200
|
+
lastResult: () => any;
|
|
201
201
|
dependencies: [(state: AppState) => Cart];
|
|
202
202
|
recomputations: () => number;
|
|
203
203
|
resetRecomputations: () => void;
|
|
@@ -208,7 +208,7 @@ export declare const selectCartTotal: ((state: {
|
|
|
208
208
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
209
209
|
};
|
|
210
210
|
export declare const selectCartTotals: ((state: {
|
|
211
|
-
alerts:
|
|
211
|
+
alerts: Alerts;
|
|
212
212
|
arrivals: import("./arrivals").ArrivalsState;
|
|
213
213
|
cartSummary: import("./cartSummary").CartSummaryState;
|
|
214
214
|
checkout: import("./checkout").CheckoutState;
|
|
@@ -223,7 +223,7 @@ export declare const selectCartTotals: ((state: {
|
|
|
223
223
|
menu: import("./menu").MenuState;
|
|
224
224
|
menuPages: import("./menuPages").MenuPagesState;
|
|
225
225
|
modal: import("./modal").ModalState;
|
|
226
|
-
notifications:
|
|
226
|
+
notifications: Notifications;
|
|
227
227
|
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
228
228
|
order: OrderState;
|
|
229
229
|
pos: import("./pos").PosState;
|
|
@@ -235,28 +235,28 @@ export declare const selectCartTotals: ((state: {
|
|
|
235
235
|
surcharges: import("./surcharges").SurchargesState;
|
|
236
236
|
taxes: import("./taxes").TaxesState;
|
|
237
237
|
}) => {
|
|
238
|
-
count:
|
|
239
|
-
total:
|
|
238
|
+
count: any;
|
|
239
|
+
total: any;
|
|
240
240
|
}) & {
|
|
241
241
|
clearCache: () => void;
|
|
242
242
|
resultsCount: () => number;
|
|
243
243
|
resetResultsCount: () => void;
|
|
244
244
|
} & {
|
|
245
245
|
resultFunc: (resultFuncArgs_0: Cart) => {
|
|
246
|
-
count:
|
|
247
|
-
total:
|
|
246
|
+
count: any;
|
|
247
|
+
total: any;
|
|
248
248
|
};
|
|
249
249
|
memoizedResultFunc: ((resultFuncArgs_0: Cart) => {
|
|
250
|
-
count:
|
|
251
|
-
total:
|
|
250
|
+
count: any;
|
|
251
|
+
total: any;
|
|
252
252
|
}) & {
|
|
253
253
|
clearCache: () => void;
|
|
254
254
|
resultsCount: () => number;
|
|
255
255
|
resetResultsCount: () => void;
|
|
256
256
|
};
|
|
257
257
|
lastResult: () => {
|
|
258
|
-
count:
|
|
259
|
-
total:
|
|
258
|
+
count: any;
|
|
259
|
+
total: any;
|
|
260
260
|
};
|
|
261
261
|
dependencies: [(state: AppState) => Cart];
|
|
262
262
|
recomputations: () => number;
|
|
@@ -267,11 +267,11 @@ export declare const selectCartTotals: ((state: {
|
|
|
267
267
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
268
268
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
269
269
|
};
|
|
270
|
-
export declare const selectCartCounts: (state: AppState) =>
|
|
271
|
-
export declare const selectCanOrder: (state: AppState) =>
|
|
270
|
+
export declare const selectCartCounts: (state: AppState) => any;
|
|
271
|
+
export declare const selectCanOrder: (state: AppState) => any;
|
|
272
272
|
export declare const selectCartValidate: (state: AppState) => {
|
|
273
273
|
revenueCenterId: number | null;
|
|
274
|
-
serviceType:
|
|
274
|
+
serviceType: any;
|
|
275
275
|
requestedAt: RequestedAt;
|
|
276
276
|
cart: Cart;
|
|
277
277
|
};
|
package/dist/cjs/slices/pos.d.ts
CHANGED
|
@@ -53,22 +53,19 @@ export declare const printPosOrder: import("@reduxjs/toolkit").AsyncThunk<void,
|
|
|
53
53
|
}>;
|
|
54
54
|
export declare const resetPos: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"pos/resetPos">, setPosTerminalId: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pos/setPosTerminalId">, setLastOrderId: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pos/setLastOrderId">, setMenuPage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pos/setMenuPage">, setPosName: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pos/setPosName">, setPosNotes: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pos/setPosNotes">, setCashier: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pos/setCashier">, setManager: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pos/setManager">, setPosFontSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pos/setPosFontSize">, setPosColorScheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pos/setPosColorScheme">, setPosOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pos/setPosOrder">, setPosRefund: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "pos/setPosRefund">;
|
|
55
55
|
export declare const selectPos: (state: AppState) => PosState;
|
|
56
|
-
export declare const selectPosTerminal: (state: AppState) =>
|
|
56
|
+
export declare const selectPosTerminal: (state: AppState) => any;
|
|
57
57
|
export declare const selectLastOrderId: (state: AppState) => string | null;
|
|
58
58
|
export declare const selectMenuPage: (state: AppState) => number | null;
|
|
59
59
|
export declare const selectPosName: (state: AppState) => string | null;
|
|
60
60
|
export declare const selectPosNotes: (state: AppState) => string | null;
|
|
61
61
|
export declare const selectCashier: (state: AppState) => {
|
|
62
|
-
cashier:
|
|
63
|
-
isExpired: boolean;
|
|
64
|
-
} | {
|
|
65
|
-
cashier: Cashier;
|
|
62
|
+
cashier: any;
|
|
66
63
|
isExpired: boolean;
|
|
67
64
|
};
|
|
68
|
-
export declare const selectManager: (state: AppState) =>
|
|
65
|
+
export declare const selectManager: (state: AppState) => any;
|
|
69
66
|
export declare const selectIsOffline: (state: AppState) => boolean;
|
|
70
|
-
export declare const selectPosOrder: (state: AppState) =>
|
|
71
|
-
export declare const selectPosRefund: (state: AppState) =>
|
|
67
|
+
export declare const selectPosOrder: (state: AppState) => any;
|
|
68
|
+
export declare const selectPosRefund: (state: AppState) => any;
|
|
72
69
|
export declare const selectPosFontSize: (state: AppState) => DeviceFontSize;
|
|
73
70
|
export declare const selectPosColorScheme: (state: AppState) => DeviceColorScheme;
|
|
74
71
|
export declare const posReducer: import("redux").Reducer<PosState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Order, Orders,
|
|
1
|
+
import { Order, Orders, RequestError, RequestStatus } from '@open-tender/types';
|
|
2
2
|
import { AppState } from '../app';
|
|
3
3
|
export interface RefundState {
|
|
4
4
|
previous: Orders | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequestError, RequestStatus } from '@open-tender/types';
|
|
2
2
|
import { AppState } from '../app';
|
|
3
3
|
export interface SettingsState {
|
|
4
4
|
data: any | null;
|
|
@@ -20,7 +20,7 @@ export declare const fetchSetting: import("@reduxjs/toolkit").AsyncThunk<any, En
|
|
|
20
20
|
fulfilledMeta?: unknown;
|
|
21
21
|
rejectedMeta?: unknown;
|
|
22
22
|
}>;
|
|
23
|
-
export declare const updateSetting: import("@reduxjs/toolkit").AsyncThunk<Settings,
|
|
23
|
+
export declare const updateSetting: import("@reduxjs/toolkit").AsyncThunk<Settings, any, {
|
|
24
24
|
state: AppState;
|
|
25
25
|
rejectValue: RequestError;
|
|
26
26
|
dispatch?: import("redux").Dispatch<import("redux").UnknownAction> | undefined;
|
|
@@ -21,7 +21,7 @@ export declare const fetchSurcharges: import("@reduxjs/toolkit").AsyncThunk<Surc
|
|
|
21
21
|
}>;
|
|
22
22
|
export declare const resetSurcharges: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"surcharges/resetSurcharges">;
|
|
23
23
|
export declare const selectSurcharges: (state: AppState) => {
|
|
24
|
-
entities:
|
|
24
|
+
entities: any;
|
|
25
25
|
loading: RequestStatus;
|
|
26
26
|
error: RequestError;
|
|
27
27
|
};
|
package/dist/cjs/utils/menu.d.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const makeMenuSections: (sections: MenuPageSections, categories: MenuCategories) => {
|
|
6
|
-
items: import("@open-tender/types").MenuItem[];
|
|
7
|
-
name: string;
|
|
8
|
-
pos_page_id: number;
|
|
9
|
-
pos_section_id: number;
|
|
10
|
-
position: number;
|
|
11
|
-
}[];
|
|
1
|
+
export declare const flattenCategories: (categories: MenuCategories) => any;
|
|
2
|
+
export declare const makeOptionGroups: (groups: MenuItemGroups) => any;
|
|
3
|
+
export declare const flattenItems: (categories: MenuCategories) => any;
|
|
4
|
+
export declare const makeMenuSections: (sections: MenuPageSections, categories: MenuCategories) => any;
|