@open-tender/store 1.1.80 → 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/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/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
package/dist/cjs/app/hooks.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
2
|
import type { RootState } from './store';
|
|
3
3
|
export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
|
|
4
|
-
alerts:
|
|
4
|
+
alerts: Alerts;
|
|
5
5
|
arrivals: import("..").ArrivalsState;
|
|
6
6
|
cartSummary: import("..").CartSummaryState;
|
|
7
7
|
checkout: import("..").CheckoutState;
|
|
@@ -16,7 +16,7 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
|
|
|
16
16
|
menu: import("..").MenuState;
|
|
17
17
|
menuPages: import("..").MenuPagesState;
|
|
18
18
|
modal: import("..").ModalState;
|
|
19
|
-
notifications:
|
|
19
|
+
notifications: Notifications;
|
|
20
20
|
offlineAuths: import("..").OfflineAuthsState;
|
|
21
21
|
order: import("..").OrderState;
|
|
22
22
|
pos: import("..").PosState;
|
package/dist/cjs/app/store.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Action, ThunkAction } from '@reduxjs/toolkit';
|
|
2
2
|
export declare const appReducer: import("redux").Reducer<{
|
|
3
|
-
alerts:
|
|
3
|
+
alerts: Alerts;
|
|
4
4
|
arrivals: import("../slices").ArrivalsState;
|
|
5
5
|
cartSummary: import("../slices").CartSummaryState;
|
|
6
6
|
checkout: import("../slices").CheckoutState;
|
|
@@ -15,7 +15,7 @@ export declare const appReducer: import("redux").Reducer<{
|
|
|
15
15
|
menu: import("../slices").MenuState;
|
|
16
16
|
menuPages: import("../slices").MenuPagesState;
|
|
17
17
|
modal: import("../slices").ModalState;
|
|
18
|
-
notifications:
|
|
18
|
+
notifications: Notifications;
|
|
19
19
|
offlineAuths: import("../slices").OfflineAuthsState;
|
|
20
20
|
order: import("../slices").OrderState;
|
|
21
21
|
pos: import("../slices").PosState;
|
|
@@ -27,7 +27,7 @@ export declare const appReducer: import("redux").Reducer<{
|
|
|
27
27
|
surcharges: import("../slices").SurchargesState;
|
|
28
28
|
taxes: import("../slices").TaxesState;
|
|
29
29
|
}, import("redux").UnknownAction, Partial<{
|
|
30
|
-
alerts:
|
|
30
|
+
alerts: any;
|
|
31
31
|
arrivals: import("../slices").ArrivalsState | undefined;
|
|
32
32
|
cartSummary: import("../slices").CartSummaryState | undefined;
|
|
33
33
|
checkout: import("../slices").CheckoutState | undefined;
|
|
@@ -42,7 +42,7 @@ export declare const appReducer: import("redux").Reducer<{
|
|
|
42
42
|
menu: import("../slices").MenuState | undefined;
|
|
43
43
|
menuPages: import("../slices").MenuPagesState | undefined;
|
|
44
44
|
modal: import("../slices").ModalState | undefined;
|
|
45
|
-
notifications:
|
|
45
|
+
notifications: any;
|
|
46
46
|
offlineAuths: import("../slices").OfflineAuthsState | undefined;
|
|
47
47
|
order: import("../slices").OrderState | undefined;
|
|
48
48
|
pos: import("../slices").PosState | undefined;
|
|
@@ -56,7 +56,7 @@ export declare const appReducer: import("redux").Reducer<{
|
|
|
56
56
|
}>>;
|
|
57
57
|
export type AppState = ReturnType<typeof appReducer>;
|
|
58
58
|
declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
59
|
-
alerts:
|
|
59
|
+
alerts: Alerts;
|
|
60
60
|
arrivals: import("../slices").ArrivalsState;
|
|
61
61
|
cartSummary: import("../slices").CartSummaryState;
|
|
62
62
|
checkout: import("../slices").CheckoutState;
|
|
@@ -71,7 +71,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
71
71
|
menu: import("../slices").MenuState;
|
|
72
72
|
menuPages: import("../slices").MenuPagesState;
|
|
73
73
|
modal: import("../slices").ModalState;
|
|
74
|
-
notifications:
|
|
74
|
+
notifications: Notifications;
|
|
75
75
|
offlineAuths: import("../slices").OfflineAuthsState;
|
|
76
76
|
order: import("../slices").OrderState;
|
|
77
77
|
pos: import("../slices").PosState;
|
|
@@ -84,7 +84,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
84
84
|
taxes: import("../slices").TaxesState;
|
|
85
85
|
}, Action, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
86
86
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
87
|
-
alerts:
|
|
87
|
+
alerts: Alerts;
|
|
88
88
|
arrivals: import("../slices").ArrivalsState;
|
|
89
89
|
cartSummary: import("../slices").CartSummaryState;
|
|
90
90
|
checkout: import("../slices").CheckoutState;
|
|
@@ -99,7 +99,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
99
99
|
menu: import("../slices").MenuState;
|
|
100
100
|
menuPages: import("../slices").MenuPagesState;
|
|
101
101
|
modal: import("../slices").ModalState;
|
|
102
|
-
notifications:
|
|
102
|
+
notifications: Notifications;
|
|
103
103
|
offlineAuths: import("../slices").OfflineAuthsState;
|
|
104
104
|
order: import("../slices").OrderState;
|
|
105
105
|
pos: import("../slices").PosState;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Cart } from '@open-tender/types';
|
|
2
|
-
import { CheckoutCartProps } from '@open-tender/ui';
|
|
2
|
+
import { CartItemProps, CheckoutCartProps, QuantityProps } from '@open-tender/ui';
|
|
3
3
|
import React, { ReactNode } from 'react';
|
|
4
|
-
declare const CheckoutCart: ({ cart, apiUrl, navigate, children }: {
|
|
4
|
+
declare const CheckoutCart: ({ cart, apiUrl, navigate, children, QuantityView, CartItemView }: {
|
|
5
5
|
cart: Cart;
|
|
6
6
|
apiUrl: string;
|
|
7
7
|
navigate: (route: string) => void;
|
|
8
8
|
children: (props: CheckoutCartProps) => ReactNode;
|
|
9
|
+
QuantityView: (props: QuantityProps) => React.ReactNode;
|
|
10
|
+
CartItemView: (props: CartItemProps) => React.ReactNode;
|
|
9
11
|
}) => React.ReactNode;
|
|
10
12
|
export default CheckoutCart;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
|
-
var ui_1 = require("@open-tender/ui");
|
|
5
4
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
6
5
|
var hooks_1 = require("../app/hooks");
|
|
7
6
|
var slices_1 = require("../slices");
|
|
8
7
|
var CartItem_1 = tslib_1.__importDefault(require("./CartItem"));
|
|
9
8
|
var CheckoutCart = function (_a) {
|
|
10
|
-
var cart = _a.cart, apiUrl = _a.apiUrl, navigate = _a.navigate, children = _a.children;
|
|
9
|
+
var cart = _a.cart, apiUrl = _a.apiUrl, navigate = _a.navigate, children = _a.children, QuantityView = _a.QuantityView, CartItemView = _a.CartItemView;
|
|
11
10
|
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).checkoutCart;
|
|
12
|
-
var renderCartItem = (0, react_1.useCallback)(function (item, index) { return (react_1.default.createElement(CartItem_1.default, { QuantityView:
|
|
11
|
+
var renderCartItem = (0, react_1.useCallback)(function (item, index) { return (react_1.default.createElement(CartItem_1.default, { QuantityView: QuantityView, apiUrl: apiUrl, navigate: navigate, children: CartItemView, key: "".concat(item.id, "-").concat(index), item: item, isLast: index + 1 === cart.length, isEditable: false })); }, [QuantityView, apiUrl, navigate, CartItemView, cart.length]);
|
|
13
12
|
return children({ config: config, cart: cart, renderCartItem: renderCartItem });
|
|
14
13
|
};
|
|
15
14
|
exports.default = CheckoutCart;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Order } from '@open-tender/types';
|
|
2
|
-
import { CheckoutTotalsProps } from '@open-tender/ui';
|
|
2
|
+
import { CheckTotalsProps, CheckoutTotalsProps } from '@open-tender/ui';
|
|
3
3
|
import React, { ReactNode } from 'react';
|
|
4
|
-
declare const CheckoutTotalsContainer: ({ check, children }: {
|
|
4
|
+
declare const CheckoutTotalsContainer: ({ check, children, CheckTotalsView }: {
|
|
5
5
|
check: Order;
|
|
6
6
|
children: (props: CheckoutTotalsProps) => ReactNode;
|
|
7
|
+
CheckTotalsView: (props: CheckTotalsProps) => React.ReactNode;
|
|
7
8
|
}) => React.ReactNode;
|
|
8
9
|
export default CheckoutTotalsContainer;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
|
-
var ui_1 = require("@open-tender/ui");
|
|
5
4
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
6
5
|
var hooks_1 = require("../app/hooks");
|
|
7
6
|
var slices_1 = require("../slices");
|
|
8
7
|
var CheckTotals_1 = tslib_1.__importDefault(require("./CheckTotals"));
|
|
9
8
|
var CheckoutTotalsContainer = function (_a) {
|
|
10
|
-
var check = _a.check, children = _a.children;
|
|
9
|
+
var check = _a.check, children = _a.children, CheckTotalsView = _a.CheckTotalsView;
|
|
11
10
|
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).checkoutTotals;
|
|
12
11
|
var renderCheckTotals = (0, react_1.useCallback)(function () {
|
|
13
|
-
return react_1.default.createElement(CheckTotals_1.default, { children:
|
|
14
|
-
}, [check]);
|
|
12
|
+
return react_1.default.createElement(CheckTotals_1.default, { children: CheckTotalsView, check: check });
|
|
13
|
+
}, [check, CheckTotalsView]);
|
|
15
14
|
return children({ config: config, renderCheckTotals: renderCheckTotals });
|
|
16
15
|
};
|
|
17
16
|
exports.default = CheckoutTotalsContainer;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MenuCategory, MenuItem } from '@open-tender/types';
|
|
2
|
-
export declare const useKioskImageUrl: (entity: MenuItem | MenuCategory) =>
|
|
2
|
+
export declare const useKioskImageUrl: (entity: MenuItem | MenuCategory) => any;
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import { Order } from '@open-tender/types';
|
|
2
1
|
declare const useOrder: (order: Order, callback?: () => void) => {
|
|
3
|
-
isInPrepQueue:
|
|
2
|
+
isInPrepQueue: any;
|
|
4
3
|
isUpcoming: boolean;
|
|
5
|
-
itemImages:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
orderPrep: import("@open-tender/types").OrderPrep | null;
|
|
13
|
-
orderType: import("@open-tender/types").OrderType;
|
|
14
|
-
orderTypeName: string | undefined;
|
|
4
|
+
itemImages: any;
|
|
5
|
+
itemNames: any;
|
|
6
|
+
status: Order;
|
|
7
|
+
orderId: Order;
|
|
8
|
+
orderPrep: Order;
|
|
9
|
+
orderType: Order;
|
|
10
|
+
orderTypeName: any;
|
|
15
11
|
reorder: () => void;
|
|
16
|
-
requestedAt:
|
|
17
|
-
revenueCenter:
|
|
18
|
-
serviceType:
|
|
12
|
+
requestedAt: any;
|
|
13
|
+
revenueCenter: Order;
|
|
14
|
+
serviceType: Order;
|
|
19
15
|
subtitle: string;
|
|
20
16
|
orderNo: string;
|
|
21
17
|
title: string;
|
|
22
|
-
total:
|
|
18
|
+
total: any;
|
|
23
19
|
};
|
|
24
20
|
export default useOrder;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CheckoutTender, CustomerEndpoints, CustomerIdentifier, OrderCreatePos, OrderUpdate, OrderType, RequestedAt, ServiceType, TicketUpdate, TicketsUpdate, TicketStatusUpdate, EntityType, InternalSettings, GiftCardCredit, Punch, CashEvent, ErrorAlert, CheckoutTenderPos, Refund, OrderCreateSendReceipt } from '@open-tender/types';
|
|
2
2
|
import { OrdersParams } from '../slices';
|
|
3
3
|
export interface InitAPI {
|
|
4
4
|
apiUrl: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Alerts } from '@open-tender/types';
|
|
2
1
|
import { AppState } from '../app';
|
|
3
2
|
export declare const clearAlerts: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"alerts/clearAlerts">, addAlert: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "alerts/addAlert">, dismissAlert: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "alerts/dismissAlert">;
|
|
4
3
|
export declare const selectAlerts: (state: AppState) => Alerts;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomerIdentifier, CustomerIdentify, Money, Order, OrderCreate, OrderCreateDiscounts, OrderCreateGiftCards, OrderCreatePoints, OrderCreateSurcharges, RequestError, RequestStatus, Taxes } from '@open-tender/types';
|
|
2
2
|
import { AppState } from '../app';
|
|
3
3
|
import { OrderState } from './order';
|
|
4
4
|
export interface CheckoutState {
|
|
@@ -51,7 +51,7 @@ export declare const addPromoCode: import("@reduxjs/toolkit").AsyncThunk<Discoun
|
|
|
51
51
|
fulfilledMeta?: unknown;
|
|
52
52
|
rejectedMeta?: unknown;
|
|
53
53
|
}>;
|
|
54
|
-
export declare const addTender: import("@reduxjs/toolkit").AsyncThunk<
|
|
54
|
+
export declare const addTender: import("@reduxjs/toolkit").AsyncThunk<any, CheckoutTenderPos, {
|
|
55
55
|
state: AppState;
|
|
56
56
|
rejectValue: RequestError;
|
|
57
57
|
dispatch?: import("redux").Dispatch<import("redux").UnknownAction> | undefined;
|
|
@@ -61,7 +61,7 @@ export declare const addTender: import("@reduxjs/toolkit").AsyncThunk<void | Ord
|
|
|
61
61
|
fulfilledMeta?: unknown;
|
|
62
62
|
rejectedMeta?: unknown;
|
|
63
63
|
}>;
|
|
64
|
-
export declare const removeTender: import("@reduxjs/toolkit").AsyncThunk<
|
|
64
|
+
export declare const removeTender: import("@reduxjs/toolkit").AsyncThunk<any, number, {
|
|
65
65
|
state: AppState;
|
|
66
66
|
rejectValue: RequestError;
|
|
67
67
|
dispatch?: import("redux").Dispatch<import("redux").UnknownAction> | undefined;
|
|
@@ -71,7 +71,7 @@ export declare const removeTender: import("@reduxjs/toolkit").AsyncThunk<void |
|
|
|
71
71
|
fulfilledMeta?: unknown;
|
|
72
72
|
rejectedMeta?: unknown;
|
|
73
73
|
}>;
|
|
74
|
-
export declare const updateTender: import("@reduxjs/toolkit").AsyncThunk<
|
|
74
|
+
export declare const updateTender: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
75
75
|
state: AppState;
|
|
76
76
|
rejectValue: RequestError;
|
|
77
77
|
dispatch?: import("redux").Dispatch<import("redux").UnknownAction> | undefined;
|
|
@@ -96,7 +96,7 @@ export interface IdentifyCustomer {
|
|
|
96
96
|
callback?: () => void;
|
|
97
97
|
showError?: boolean;
|
|
98
98
|
}
|
|
99
|
-
export declare const identifyCustomer: import("@reduxjs/toolkit").AsyncThunk<
|
|
99
|
+
export declare const identifyCustomer: import("@reduxjs/toolkit").AsyncThunk<any, IdentifyCustomer, {
|
|
100
100
|
state: AppState;
|
|
101
101
|
rejectValue: RequestError;
|
|
102
102
|
dispatch?: import("redux").Dispatch<import("redux").UnknownAction> | undefined;
|
|
@@ -116,7 +116,7 @@ export declare const completeChipDNA: import("@reduxjs/toolkit").AsyncThunk<any,
|
|
|
116
116
|
fulfilledMeta?: unknown;
|
|
117
117
|
rejectedMeta?: unknown;
|
|
118
118
|
}>;
|
|
119
|
-
export declare const validatePosOrder: import("@reduxjs/toolkit").AsyncThunk<
|
|
119
|
+
export declare const validatePosOrder: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
120
120
|
state: AppState;
|
|
121
121
|
rejectValue: RequestError;
|
|
122
122
|
dispatch?: import("redux").Dispatch<import("redux").UnknownAction> | undefined;
|
|
@@ -126,7 +126,7 @@ export declare const validatePosOrder: import("@reduxjs/toolkit").AsyncThunk<voi
|
|
|
126
126
|
fulfilledMeta?: unknown;
|
|
127
127
|
rejectedMeta?: unknown;
|
|
128
128
|
}>;
|
|
129
|
-
export declare const submitPosOrder: import("@reduxjs/toolkit").AsyncThunk<
|
|
129
|
+
export declare const submitPosOrder: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
130
130
|
state: AppState;
|
|
131
131
|
rejectValue: RequestError;
|
|
132
132
|
dispatch?: import("redux").Dispatch<import("redux").UnknownAction> | undefined;
|
|
@@ -136,7 +136,7 @@ export declare const submitPosOrder: import("@reduxjs/toolkit").AsyncThunk<void
|
|
|
136
136
|
fulfilledMeta?: unknown;
|
|
137
137
|
rejectedMeta?: unknown;
|
|
138
138
|
}>;
|
|
139
|
-
export declare const voidPosOrder: import("@reduxjs/toolkit").AsyncThunk<
|
|
139
|
+
export declare const voidPosOrder: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
140
140
|
state: AppState;
|
|
141
141
|
rejectValue: RequestError;
|
|
142
142
|
dispatch?: import("redux").Dispatch<import("redux").UnknownAction> | undefined;
|
|
@@ -156,16 +156,16 @@ export declare const activateGiftCards: import("@reduxjs/toolkit").AsyncThunk<an
|
|
|
156
156
|
fulfilledMeta?: unknown;
|
|
157
157
|
rejectedMeta?: unknown;
|
|
158
158
|
}>;
|
|
159
|
-
export declare const resetPosCheckout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheckout">, resetPosCheck: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheck">, handleCheckoutError: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/handleCheckoutError">, addGiftCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addGiftCard">, removeGiftCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeGiftCard">, addSurcharge: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
159
|
+
export declare const resetPosCheckout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheckout">, resetPosCheck: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/resetPosCheck">, handleCheckoutError: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/handleCheckoutError">, addGiftCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addGiftCard">, removeGiftCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeGiftCard">, addSurcharge: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addSurcharge">, removeSurcharge: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeSurcharge">, addDiscount: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addDiscount">, removeDiscount: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeDiscount">, addTax: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addTax">, removeTax: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/removeTax">, addTip: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addTip">, removeTip: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/removeTip">, setTaxExempt: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setTaxExempt">, addCustomer: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/addCustomer">, removeCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"checkout/removeCustomer">, setPendingDiscounts: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPendingDiscounts">, setPoints: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPoints">, setMadeFor: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setMadeFor">, setPhone: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "checkout/setPhone">;
|
|
160
160
|
export declare const selectPosCheckout: (state: AppState) => CheckoutState;
|
|
161
|
-
export declare const selectPosCheck: (state: AppState) =>
|
|
162
|
-
export declare const selectPosCustomer: (state: AppState) =>
|
|
161
|
+
export declare const selectPosCheck: (state: AppState) => any;
|
|
162
|
+
export declare const selectPosCustomer: (state: AppState) => any;
|
|
163
163
|
export declare const selectPosCustomerName: (state: AppState) => string | null;
|
|
164
164
|
export declare const selectPosCustomerNameShort: (state: AppState) => string | null;
|
|
165
165
|
export declare const selectPosPendingDiscounts: (state: AppState) => boolean;
|
|
166
|
-
export declare const selectPosAmountDue: (state: AppState) =>
|
|
167
|
-
export declare const selectPosCheckSubtotal: (state: AppState) =>
|
|
168
|
-
export declare const selectPosCheckTotal: (state: AppState) =>
|
|
169
|
-
export declare const selectPosCheckTenders: (state: AppState) =>
|
|
166
|
+
export declare const selectPosAmountDue: (state: AppState) => any;
|
|
167
|
+
export declare const selectPosCheckSubtotal: (state: AppState) => any;
|
|
168
|
+
export declare const selectPosCheckTotal: (state: AppState) => any;
|
|
169
|
+
export declare const selectPosCheckTenders: (state: AppState) => any;
|
|
170
170
|
export declare const checkoutReducer: import("redux").Reducer<CheckoutState>;
|
|
171
171
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Devices, MenuColors, RequestError, RequestStatus, SelectOptions, Store
|
|
1
|
+
import { Devices, MenuColors, RequestError, RequestStatus, SelectOptions, Store } from '@open-tender/types';
|
|
2
2
|
import { AppState } from '../app';
|
|
3
3
|
import { PosAPI } from '../services';
|
|
4
4
|
import { InitAPI } from '../services/api';
|
|
@@ -40,12 +40,12 @@ export declare const resetConfig: import("@reduxjs/toolkit").ActionCreatorWithou
|
|
|
40
40
|
export declare const selectConfig: (state: AppState) => ConfigState;
|
|
41
41
|
export declare const selectApi: (state: AppState) => PosAPI;
|
|
42
42
|
export declare const selectVersion: (state: AppState) => string | null | undefined;
|
|
43
|
-
export declare const selectDevices: (state: AppState) =>
|
|
44
|
-
export declare const selectStore: (state: AppState) =>
|
|
45
|
-
export declare const selectSelectOptions: (state: AppState) =>
|
|
46
|
-
export declare const selectMenuColors: (state: AppState) =>
|
|
43
|
+
export declare const selectDevices: (state: AppState) => any;
|
|
44
|
+
export declare const selectStore: (state: AppState) => any;
|
|
45
|
+
export declare const selectSelectOptions: (state: AppState) => any;
|
|
46
|
+
export declare const selectMenuColors: (state: AppState) => any;
|
|
47
47
|
export declare const selectTimezone: () => Timezone;
|
|
48
|
-
export declare const selectLoyalty: (state: AppState) =>
|
|
48
|
+
export declare const selectLoyalty: (state: AppState) => any;
|
|
49
49
|
export declare const selectPinpad: (state: AppState) => boolean;
|
|
50
50
|
export declare const selectCashDrawer: (state: AppState) => boolean;
|
|
51
51
|
export declare const configReducer: import("redux").Reducer<ConfigState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Customer,
|
|
1
|
+
import { Customer, Discounts, Favorites, GiftCards, LoyaltyPrograms, Orders, RequestError, RequestStatus } from '@open-tender/types';
|
|
2
2
|
import { AppState } from '../app';
|
|
3
3
|
export interface CustomerState {
|
|
4
4
|
account: Customer | null;
|
|
@@ -29,7 +29,7 @@ export declare const fetchCustomer: import("@reduxjs/toolkit").AsyncThunk<Custom
|
|
|
29
29
|
}>;
|
|
30
30
|
export declare const resetCustomer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"customer/resetCustomer">;
|
|
31
31
|
export declare const selectCustomer: (state: AppState) => CustomerState;
|
|
32
|
-
export declare const selectCustomerAccount: (state: AppState) =>
|
|
32
|
+
export declare const selectCustomerAccount: (state: AppState) => any;
|
|
33
33
|
export declare const selectCustomerDeals: (state: AppState) => Discounts;
|
|
34
34
|
export declare const selectCustomerFavorites: (state: AppState) => Favorites;
|
|
35
35
|
export declare const selectCustomerGiftCards: (state: AppState) => GiftCards;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomerIdentify, RequestError, RequestStatus } from '@open-tender/types';
|
|
2
2
|
import { AppState } from '../app';
|
|
3
3
|
export interface CustomerIdentifyState {
|
|
4
4
|
data: CustomerIdentify | null;
|
|
@@ -20,5 +20,5 @@ export declare const fetchCustomerIdentify: import("@reduxjs/toolkit").AsyncThun
|
|
|
20
20
|
}>;
|
|
21
21
|
export declare const resetCustomerIdentify: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"customerIdentify/resetCustomerIdentify">;
|
|
22
22
|
export declare const selectCustomerIdentify: (state: AppState) => CustomerIdentifyState;
|
|
23
|
-
export declare const selectCustomerIdentified: (state: AppState) =>
|
|
23
|
+
export declare const selectCustomerIdentified: (state: AppState) => any;
|
|
24
24
|
export declare const customerIdentifyReducer: import("redux").Reducer<CustomerIdentifyState>;
|
package/dist/cjs/slices/kds.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChannelType, DeviceColorScheme, DeviceFontSize, DateString, ItemTypes, KdsOrderType, KdsStationCounts, KdsView, Order, OrderCounts, Orders,
|
|
1
|
+
import { ChannelType, DeviceColorScheme, DeviceFontSize, DateString, ItemTypes, KdsOrderType, KdsStationCounts, KdsView, Order, OrderCounts, Orders, PrepStation, PrepStations, PrepStatus, ReceiptType, RequestError, RequestStatus } from '@open-tender/types';
|
|
2
2
|
import { AppState } from '../app';
|
|
3
3
|
export interface KdsState {
|
|
4
4
|
terminalId: number | null;
|
|
@@ -92,7 +92,7 @@ export declare const printKdsOrder: import("@reduxjs/toolkit").AsyncThunk<void,
|
|
|
92
92
|
}>;
|
|
93
93
|
export declare const printTickets: import("@reduxjs/toolkit").AsyncThunk<void, {
|
|
94
94
|
orderId: string;
|
|
95
|
-
status?:
|
|
95
|
+
status?: any;
|
|
96
96
|
ticketNos?: number[] | undefined;
|
|
97
97
|
}, {
|
|
98
98
|
state: AppState;
|
|
@@ -131,7 +131,7 @@ export declare const resetTickets: import("@reduxjs/toolkit").AsyncThunk<void, s
|
|
|
131
131
|
export declare const printTicket: import("@reduxjs/toolkit").AsyncThunk<void, {
|
|
132
132
|
orderId: string;
|
|
133
133
|
ticketNo: number;
|
|
134
|
-
status?:
|
|
134
|
+
status?: any;
|
|
135
135
|
}, {
|
|
136
136
|
state: AppState;
|
|
137
137
|
dispatch?: import("redux").Dispatch<import("redux").UnknownAction> | undefined;
|
|
@@ -197,12 +197,12 @@ export declare const completeTicket: import("@reduxjs/toolkit").AsyncThunk<void,
|
|
|
197
197
|
}>;
|
|
198
198
|
export declare const resetkds: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"kds/resetkds">, setKdsTerminalId: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsTerminalId">, setKdsItemTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsItemTypes">, setKdsPrepStations: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsPrepStations">, setKdsPrepStationId: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsPrepStationId">, setKdsOrderType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsOrderType">, setKdsColumns: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsColumns">, setKdsBoxes: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsBoxes">, setKdsCardWidth: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsCardWidth">, setKdsFontSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsFontSize">, setKdsColorScheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsColorScheme">, setKdsPage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsPage">, setKdsView: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsView">, setKdsBusinessDate: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsBusinessDate">, setKdsSearch: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsSearch">, toggleKdsSummary: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"kds/toggleKdsSummary">, toggleKdsAllDay: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"kds/toggleKdsAllDay">, toggleKdsAllDayMods: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"kds/toggleKdsAllDayMods">, setKdsOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/setKdsOrder">, replaceKdsOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "kds/replaceKdsOrder">;
|
|
199
199
|
export declare const selectKds: (state: AppState) => KdsState;
|
|
200
|
-
export declare const selectKdsTerminal: (state: AppState) =>
|
|
201
|
-
export declare const selectKdsItemTypes: (state: AppState) =>
|
|
200
|
+
export declare const selectKdsTerminal: (state: AppState) => any;
|
|
201
|
+
export declare const selectKdsItemTypes: (state: AppState) => any;
|
|
202
202
|
export declare const selectKdsPrepStations: (state: AppState) => PrepStations;
|
|
203
203
|
export declare const selectKdsPrepStationId: (state: AppState) => number | null;
|
|
204
204
|
export declare const selectKdsPrepStation: (state: AppState) => PrepStation | null;
|
|
205
|
-
export declare const selectKdsPrepType: (state: AppState) =>
|
|
205
|
+
export declare const selectKdsPrepType: (state: AppState) => any;
|
|
206
206
|
export declare const selectKdsOrderType: (state: AppState) => KdsOrderType;
|
|
207
207
|
export declare const selectKdsColumns: (state: AppState) => number;
|
|
208
208
|
export declare const selectKdsBoxes: (state: AppState) => number;
|
|
@@ -214,33 +214,33 @@ export declare const selectKdsAllDay: (state: AppState) => boolean;
|
|
|
214
214
|
export declare const selectKdsAllDayMods: (state: AppState) => boolean;
|
|
215
215
|
export declare const selectKdsPage: (state: AppState) => number;
|
|
216
216
|
export declare const selectKdsPageIndex: (state: AppState) => number;
|
|
217
|
-
export declare const selectKdsView: (state: AppState) =>
|
|
218
|
-
export declare const selectKdsBusinessDate: (state: AppState) =>
|
|
219
|
-
export declare const selectKdsOrder: (state: AppState) =>
|
|
217
|
+
export declare const selectKdsView: (state: AppState) => any;
|
|
218
|
+
export declare const selectKdsBusinessDate: (state: AppState) => any;
|
|
219
|
+
export declare const selectKdsOrder: (state: AppState) => any;
|
|
220
220
|
export declare const selectKdsOrders: (state: AppState) => {
|
|
221
221
|
orders: Orders;
|
|
222
222
|
loading: RequestStatus;
|
|
223
223
|
error: RequestError;
|
|
224
224
|
};
|
|
225
225
|
export declare const selectKdsCurrentOrders: (state: AppState) => {
|
|
226
|
-
orders:
|
|
226
|
+
orders: any;
|
|
227
227
|
loading: RequestStatus;
|
|
228
228
|
error: RequestError;
|
|
229
229
|
};
|
|
230
|
-
export declare const selectKdsCurrentCount: (state: AppState) =>
|
|
230
|
+
export declare const selectKdsCurrentCount: (state: AppState) => any;
|
|
231
231
|
export declare const selectKdsFutureOrders: (state: AppState) => {
|
|
232
|
-
orders:
|
|
232
|
+
orders: any;
|
|
233
233
|
loading: RequestStatus;
|
|
234
234
|
error: RequestError;
|
|
235
235
|
};
|
|
236
|
-
export declare const selectKdsFutureCount: (state: AppState) =>
|
|
237
|
-
export declare const selectKdsPrepStationOrders: (state: AppState) =>
|
|
238
|
-
export declare const selectKdsPrepStationAllDay: (state: AppState) =>
|
|
236
|
+
export declare const selectKdsFutureCount: (state: AppState) => any;
|
|
237
|
+
export declare const selectKdsPrepStationOrders: (state: AppState) => any;
|
|
238
|
+
export declare const selectKdsPrepStationAllDay: (state: AppState) => any;
|
|
239
239
|
export declare const selectKdsPrepStationAllIncomplete: (state: AppState) => Orders;
|
|
240
240
|
export declare const selectKdsPrepStationAllIncompleteToday: (state: AppState) => Orders;
|
|
241
241
|
export declare const selectKdsOrdersCounts: (state: AppState) => {
|
|
242
|
-
current:
|
|
243
|
-
future:
|
|
244
|
-
qa:
|
|
242
|
+
current: OrderCounts;
|
|
243
|
+
future: OrderCounts;
|
|
244
|
+
qa: OrderCounts;
|
|
245
245
|
};
|
|
246
246
|
export declare const kdsReducer: import("redux").Reducer<KdsState>;
|