@open-tender/store 0.1.321 → 0.1.323
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 +1 -0
- package/dist/cjs/app/store.d.ts +4 -0
- package/dist/cjs/app/store.js +2 -1
- package/dist/cjs/slices/allergens.d.ts +1 -0
- package/dist/cjs/slices/customer.d.ts +7 -0
- package/dist/cjs/slices/index.d.ts +1 -0
- package/dist/cjs/slices/index.js +1 -0
- package/dist/cjs/slices/kiosk.d.ts +7 -0
- package/dist/cjs/slices/menuPages.d.ts +1 -0
- package/dist/cjs/slices/order.d.ts +4 -0
- package/dist/cjs/slices/standbySlice.d.ts +12 -0
- package/dist/cjs/slices/standbySlice.js +27 -0
- package/dist/cjs/slices/tags.d.ts +1 -0
- package/dist/esm/app/hooks.d.ts +1 -0
- package/dist/esm/app/store.d.ts +4 -0
- package/dist/esm/app/store.js +3 -2
- package/dist/esm/slices/allergens.d.ts +1 -0
- package/dist/esm/slices/customer.d.ts +7 -0
- package/dist/esm/slices/index.d.ts +1 -0
- package/dist/esm/slices/index.js +1 -0
- package/dist/esm/slices/kiosk.d.ts +7 -0
- package/dist/esm/slices/menuPages.d.ts +1 -0
- package/dist/esm/slices/order.d.ts +4 -0
- package/dist/esm/slices/standbySlice.d.ts +12 -0
- package/dist/esm/slices/standbySlice.js +22 -0
- package/dist/esm/slices/tags.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/app/hooks.d.ts
CHANGED
|
@@ -31,5 +31,6 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
|
|
|
31
31
|
idle: import("..").IdleState;
|
|
32
32
|
tags: import("..").TagsState;
|
|
33
33
|
revenueCenter: import("..").RevenueCenterState;
|
|
34
|
+
standby: import("..").StandbyState;
|
|
34
35
|
}, undefined, import("redux").UnknownAction> & import("redux").Dispatch<import("redux").Action>;
|
|
35
36
|
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
package/dist/cjs/app/store.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare const appReducer: import("redux").Reducer<{
|
|
|
30
30
|
idle: import("../slices").IdleState;
|
|
31
31
|
tags: import("../slices").TagsState;
|
|
32
32
|
revenueCenter: import("../slices").RevenueCenterState;
|
|
33
|
+
standby: import("../slices").StandbyState;
|
|
33
34
|
}, import("redux").UnknownAction, Partial<{
|
|
34
35
|
alerts: import("@open-tender/types").Alerts | undefined;
|
|
35
36
|
allergens: import("../slices").AllergensState | undefined;
|
|
@@ -61,6 +62,7 @@ export declare const appReducer: import("redux").Reducer<{
|
|
|
61
62
|
idle: import("../slices").IdleState | undefined;
|
|
62
63
|
tags: import("../slices").TagsState | undefined;
|
|
63
64
|
revenueCenter: import("../slices").RevenueCenterState | undefined;
|
|
65
|
+
standby: import("../slices").StandbyState | undefined;
|
|
64
66
|
}>>;
|
|
65
67
|
export type AppState = ReturnType<typeof appReducer>;
|
|
66
68
|
declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
@@ -94,6 +96,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
94
96
|
idle: import("../slices").IdleState;
|
|
95
97
|
tags: import("../slices").TagsState;
|
|
96
98
|
revenueCenter: import("../slices").RevenueCenterState;
|
|
99
|
+
standby: import("../slices").StandbyState;
|
|
97
100
|
}, Action, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
98
101
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
99
102
|
alerts: import("@open-tender/types").Alerts;
|
|
@@ -126,6 +129,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
126
129
|
idle: import("../slices").IdleState;
|
|
127
130
|
tags: import("../slices").TagsState;
|
|
128
131
|
revenueCenter: import("../slices").RevenueCenterState;
|
|
132
|
+
standby: import("../slices").StandbyState;
|
|
129
133
|
}, undefined, import("redux").UnknownAction>;
|
|
130
134
|
}>, import("redux").StoreEnhancer]>>;
|
|
131
135
|
export type AppDispatch = typeof store.dispatch;
|
package/dist/cjs/app/store.js
CHANGED
|
@@ -33,7 +33,8 @@ exports.appReducer = (0, toolkit_1.combineReducers)({
|
|
|
33
33
|
taxes: slices_1.taxesReducer,
|
|
34
34
|
idle: slices_1.idleReducer,
|
|
35
35
|
tags: slices_1.tagsReducer,
|
|
36
|
-
revenueCenter: slices_1.revenueCenterReducer
|
|
36
|
+
revenueCenter: slices_1.revenueCenterReducer,
|
|
37
|
+
standby: slices_1.standbyReducer
|
|
37
38
|
});
|
|
38
39
|
var rootReducer = function (state, action) {
|
|
39
40
|
if (action.type === 'clearState') {
|
|
@@ -56,6 +56,7 @@ export declare const selectSelectedAllergenNames: ((state: {
|
|
|
56
56
|
idle: import("./idle").IdleState;
|
|
57
57
|
tags: import("./tags").TagsState;
|
|
58
58
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
59
|
+
standby: import("./standbySlice").StandbyState;
|
|
59
60
|
}) => string[]) & {
|
|
60
61
|
clearCache: () => void;
|
|
61
62
|
resultsCount: () => number;
|
|
@@ -67,6 +67,7 @@ export declare const selectCustomerLoyaltySummary: ((state: {
|
|
|
67
67
|
idle: import("./idle").IdleState;
|
|
68
68
|
tags: import("./tags").TagsState;
|
|
69
69
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
70
|
+
standby: import("./standbySlice").StandbyState;
|
|
70
71
|
}) => LoyaltyProgramSummary | null) & {
|
|
71
72
|
clearCache: () => void;
|
|
72
73
|
resultsCount: () => number;
|
|
@@ -120,6 +121,7 @@ export declare const selectCustomerLoyaltyProgram: ((state: {
|
|
|
120
121
|
idle: import("./idle").IdleState;
|
|
121
122
|
tags: import("./tags").TagsState;
|
|
122
123
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
124
|
+
standby: import("./standbySlice").StandbyState;
|
|
123
125
|
}) => {
|
|
124
126
|
program: import("@open-tender/types").LoyaltyProgram | null;
|
|
125
127
|
loading: RequestStatus;
|
|
@@ -188,6 +190,7 @@ export declare const selectCustomerPointsProgram: ((state: {
|
|
|
188
190
|
idle: import("./idle").IdleState;
|
|
189
191
|
tags: import("./tags").TagsState;
|
|
190
192
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
193
|
+
standby: import("./standbySlice").StandbyState;
|
|
191
194
|
}) => import("@open-tender/types").LoyaltyProgram | null) & {
|
|
192
195
|
clearCache: () => void;
|
|
193
196
|
resultsCount: () => number;
|
|
@@ -240,6 +243,7 @@ export declare const selectCustomerPoints: ((state: {
|
|
|
240
243
|
idle: import("./idle").IdleState;
|
|
241
244
|
tags: import("./tags").TagsState;
|
|
242
245
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
246
|
+
standby: import("./standbySlice").StandbyState;
|
|
243
247
|
}) => {
|
|
244
248
|
name: string;
|
|
245
249
|
points: `${number}.${number}` | null;
|
|
@@ -295,6 +299,7 @@ export declare const selectCustomerPoints: ((state: {
|
|
|
295
299
|
idle: import("./idle").IdleState;
|
|
296
300
|
tags: import("./tags").TagsState;
|
|
297
301
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
302
|
+
standby: import("./standbySlice").StandbyState;
|
|
298
303
|
}) => import("@open-tender/types").LoyaltyProgram | null) & {
|
|
299
304
|
clearCache: () => void;
|
|
300
305
|
resultsCount: () => number;
|
|
@@ -355,6 +360,7 @@ export declare const selectPointsProgram: ((state: {
|
|
|
355
360
|
idle: import("./idle").IdleState;
|
|
356
361
|
tags: import("./tags").TagsState;
|
|
357
362
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
363
|
+
standby: import("./standbySlice").StandbyState;
|
|
358
364
|
}) => import("@open-tender/types").LoyaltyProgram | null) & {
|
|
359
365
|
clearCache: () => void;
|
|
360
366
|
resultsCount: () => number;
|
|
@@ -398,6 +404,7 @@ export declare const selectPointsProgram: ((state: {
|
|
|
398
404
|
idle: import("./idle").IdleState;
|
|
399
405
|
tags: import("./tags").TagsState;
|
|
400
406
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
407
|
+
standby: import("./standbySlice").StandbyState;
|
|
401
408
|
}) => import("@open-tender/types").LoyaltyProgram | null) & {
|
|
402
409
|
clearCache: () => void;
|
|
403
410
|
resultsCount: () => number;
|
package/dist/cjs/slices/index.js
CHANGED
|
@@ -31,3 +31,4 @@ tslib_1.__exportStar(require("./taxes"), exports);
|
|
|
31
31
|
tslib_1.__exportStar(require("./idle"), exports);
|
|
32
32
|
tslib_1.__exportStar(require("./tags"), exports);
|
|
33
33
|
tslib_1.__exportStar(require("./revenueCenter"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./standbySlice"), exports);
|
|
@@ -116,6 +116,7 @@ export declare const selectStoreSettings: ((state: {
|
|
|
116
116
|
idle: import("./idle").IdleState;
|
|
117
117
|
tags: import("./tags").TagsState;
|
|
118
118
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
119
|
+
standby: import("./standbySlice").StandbyState;
|
|
119
120
|
}) => Store) & {
|
|
120
121
|
clearCache: () => void;
|
|
121
122
|
resultsCount: () => number;
|
|
@@ -168,6 +169,7 @@ export declare const selectKioskTerminal: ((state: {
|
|
|
168
169
|
idle: import("./idle").IdleState;
|
|
169
170
|
tags: import("./tags").TagsState;
|
|
170
171
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
172
|
+
standby: import("./standbySlice").StandbyState;
|
|
171
173
|
}) => import("@open-tender/types").PosTerminal | null) & {
|
|
172
174
|
clearCache: () => void;
|
|
173
175
|
resultsCount: () => number;
|
|
@@ -220,6 +222,7 @@ export declare const selectKioskHasPrinter: ((state: {
|
|
|
220
222
|
idle: import("./idle").IdleState;
|
|
221
223
|
tags: import("./tags").TagsState;
|
|
222
224
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
225
|
+
standby: import("./standbySlice").StandbyState;
|
|
223
226
|
}) => boolean) & {
|
|
224
227
|
clearCache: () => void;
|
|
225
228
|
resultsCount: () => number;
|
|
@@ -272,6 +275,7 @@ export declare const selectKioskHasScanner: ((state: {
|
|
|
272
275
|
idle: import("./idle").IdleState;
|
|
273
276
|
tags: import("./tags").TagsState;
|
|
274
277
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
278
|
+
standby: import("./standbySlice").StandbyState;
|
|
275
279
|
}) => boolean) & {
|
|
276
280
|
clearCache: () => void;
|
|
277
281
|
resultsCount: () => number;
|
|
@@ -324,6 +328,7 @@ export declare const selectKioskApi: ((state: {
|
|
|
324
328
|
idle: import("./idle").IdleState;
|
|
325
329
|
tags: import("./tags").TagsState;
|
|
326
330
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
331
|
+
standby: import("./standbySlice").StandbyState;
|
|
327
332
|
}) => string) & {
|
|
328
333
|
clearCache: () => void;
|
|
329
334
|
resultsCount: () => number;
|
|
@@ -376,6 +381,7 @@ export declare const selectKioskConfig: ((state: {
|
|
|
376
381
|
idle: import("./idle").IdleState;
|
|
377
382
|
tags: import("./tags").TagsState;
|
|
378
383
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
384
|
+
standby: import("./standbySlice").StandbyState;
|
|
379
385
|
}) => AppConfig) & {
|
|
380
386
|
clearCache: () => void;
|
|
381
387
|
resultsCount: () => number;
|
|
@@ -428,6 +434,7 @@ export declare const selectKioskConfigScreen: (screen: string) => ((state: {
|
|
|
428
434
|
idle: import("./idle").IdleState;
|
|
429
435
|
tags: import("./tags").TagsState;
|
|
430
436
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
437
|
+
standby: import("./standbySlice").StandbyState;
|
|
431
438
|
}) => import("@open-tender/ui").ScreenConfig | null) & {
|
|
432
439
|
clearCache: () => void;
|
|
433
440
|
resultsCount: () => number;
|
|
@@ -51,6 +51,7 @@ export declare const selectMenuPagesFiltered: ((state: {
|
|
|
51
51
|
idle: import("./idle").IdleState;
|
|
52
52
|
tags: import("./tags").TagsState;
|
|
53
53
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
54
|
+
standby: import("./standbySlice").StandbyState;
|
|
54
55
|
}) => {
|
|
55
56
|
order_type: import("@open-tender/types").FullOrderType;
|
|
56
57
|
name: string;
|
|
@@ -95,6 +95,7 @@ export declare const selectCartIds: ((state: {
|
|
|
95
95
|
idle: import("./idle").IdleState;
|
|
96
96
|
tags: import("./tags").TagsState;
|
|
97
97
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
98
|
+
standby: import("./standbySlice").StandbyState;
|
|
98
99
|
}) => number[]) & {
|
|
99
100
|
clearCache: () => void;
|
|
100
101
|
resultsCount: () => number;
|
|
@@ -147,6 +148,7 @@ export declare const selectCartQuantity: ((state: {
|
|
|
147
148
|
idle: import("./idle").IdleState;
|
|
148
149
|
tags: import("./tags").TagsState;
|
|
149
150
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
151
|
+
standby: import("./standbySlice").StandbyState;
|
|
150
152
|
}) => number) & {
|
|
151
153
|
clearCache: () => void;
|
|
152
154
|
resultsCount: () => number;
|
|
@@ -199,6 +201,7 @@ export declare const selectCartTotal: ((state: {
|
|
|
199
201
|
idle: import("./idle").IdleState;
|
|
200
202
|
tags: import("./tags").TagsState;
|
|
201
203
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
204
|
+
standby: import("./standbySlice").StandbyState;
|
|
202
205
|
}) => number) & {
|
|
203
206
|
clearCache: () => void;
|
|
204
207
|
resultsCount: () => number;
|
|
@@ -251,6 +254,7 @@ export declare const selectCartTotals: ((state: {
|
|
|
251
254
|
idle: import("./idle").IdleState;
|
|
252
255
|
tags: import("./tags").TagsState;
|
|
253
256
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
257
|
+
standby: import("./standbySlice").StandbyState;
|
|
254
258
|
}) => {
|
|
255
259
|
count: number;
|
|
256
260
|
total: number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface StandbyState {
|
|
2
|
+
standby: boolean;
|
|
3
|
+
hydrated: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const setStandby: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "standby/setStandby">, hydrateStandby: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "standby/hydrateStandby">;
|
|
6
|
+
export declare const selectStandby: (s: {
|
|
7
|
+
standby: StandbyState;
|
|
8
|
+
}) => boolean;
|
|
9
|
+
export declare const selectStandbyHydrated: (s: {
|
|
10
|
+
standby: StandbyState;
|
|
11
|
+
}) => boolean;
|
|
12
|
+
export declare const standbyReducer: import("redux").Reducer<StandbyState>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.standbyReducer = exports.selectStandbyHydrated = exports.selectStandby = exports.hydrateStandby = exports.setStandby = void 0;
|
|
5
|
+
var toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
var initialState = { standby: false, hydrated: false };
|
|
7
|
+
var standbySlice = (0, toolkit_1.createSlice)({
|
|
8
|
+
name: 'standby',
|
|
9
|
+
initialState: initialState,
|
|
10
|
+
reducers: {
|
|
11
|
+
setStandby: function (state, action) {
|
|
12
|
+
state.standby = action.payload;
|
|
13
|
+
},
|
|
14
|
+
hydrateStandby: function (state, action) {
|
|
15
|
+
state.standby = action.payload;
|
|
16
|
+
state.hydrated = true;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
exports.setStandby = (_a = standbySlice.actions, _a.setStandby), exports.hydrateStandby = _a.hydrateStandby;
|
|
21
|
+
var selectStandby = function (s) { return s.standby.standby; };
|
|
22
|
+
exports.selectStandby = selectStandby;
|
|
23
|
+
var selectStandbyHydrated = function (s) {
|
|
24
|
+
return s.standby.hydrated;
|
|
25
|
+
};
|
|
26
|
+
exports.selectStandbyHydrated = selectStandbyHydrated;
|
|
27
|
+
exports.standbyReducer = standbySlice.reducer;
|
|
@@ -55,6 +55,7 @@ export declare const selectSelectedTagNames: ((state: {
|
|
|
55
55
|
idle: import("./idle").IdleState;
|
|
56
56
|
tags: TagsState;
|
|
57
57
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
58
|
+
standby: import("./standbySlice").StandbyState;
|
|
58
59
|
}) => string[]) & {
|
|
59
60
|
clearCache: () => void;
|
|
60
61
|
resultsCount: () => number;
|
package/dist/esm/app/hooks.d.ts
CHANGED
|
@@ -31,5 +31,6 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
|
|
|
31
31
|
idle: import("..").IdleState;
|
|
32
32
|
tags: import("..").TagsState;
|
|
33
33
|
revenueCenter: import("..").RevenueCenterState;
|
|
34
|
+
standby: import("..").StandbyState;
|
|
34
35
|
}, undefined, import("redux").UnknownAction> & import("redux").Dispatch<import("redux").Action>;
|
|
35
36
|
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
package/dist/esm/app/store.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare const appReducer: import("redux").Reducer<{
|
|
|
30
30
|
idle: import("../slices").IdleState;
|
|
31
31
|
tags: import("../slices").TagsState;
|
|
32
32
|
revenueCenter: import("../slices").RevenueCenterState;
|
|
33
|
+
standby: import("../slices").StandbyState;
|
|
33
34
|
}, import("redux").UnknownAction, Partial<{
|
|
34
35
|
alerts: import("@open-tender/types").Alerts | undefined;
|
|
35
36
|
allergens: import("../slices").AllergensState | undefined;
|
|
@@ -61,6 +62,7 @@ export declare const appReducer: import("redux").Reducer<{
|
|
|
61
62
|
idle: import("../slices").IdleState | undefined;
|
|
62
63
|
tags: import("../slices").TagsState | undefined;
|
|
63
64
|
revenueCenter: import("../slices").RevenueCenterState | undefined;
|
|
65
|
+
standby: import("../slices").StandbyState | undefined;
|
|
64
66
|
}>>;
|
|
65
67
|
export type AppState = ReturnType<typeof appReducer>;
|
|
66
68
|
declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
@@ -94,6 +96,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
94
96
|
idle: import("../slices").IdleState;
|
|
95
97
|
tags: import("../slices").TagsState;
|
|
96
98
|
revenueCenter: import("../slices").RevenueCenterState;
|
|
99
|
+
standby: import("../slices").StandbyState;
|
|
97
100
|
}, Action, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
98
101
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
99
102
|
alerts: import("@open-tender/types").Alerts;
|
|
@@ -126,6 +129,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
126
129
|
idle: import("../slices").IdleState;
|
|
127
130
|
tags: import("../slices").TagsState;
|
|
128
131
|
revenueCenter: import("../slices").RevenueCenterState;
|
|
132
|
+
standby: import("../slices").StandbyState;
|
|
129
133
|
}, undefined, import("redux").UnknownAction>;
|
|
130
134
|
}>, import("redux").StoreEnhancer]>>;
|
|
131
135
|
export type AppDispatch = typeof store.dispatch;
|
package/dist/esm/app/store.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { combineReducers, configureStore } from '@reduxjs/toolkit';
|
|
2
|
-
import { alertsReducer, arrivalsReducer, cartSummaryReducer, checkoutReducer, configReducer, customerReducer, customerIdentifyReducer, dealsReducer, discountsReducer, errorAlertsReducer, kdsReducer, kioskReducer, menuReducer, menuPagesReducer, modalReducer, notificationsReducer, offlineAuthsReducer, orderReducer, posReducer, punchesReducer, refundReducer, sendReceiptReducer, settingsReducer, sidebarReducer, surchargesReducer, taxesReducer, idleReducer, tagsReducer, allergensReducer, revenueCenterReducer } from '../slices';
|
|
2
|
+
import { alertsReducer, arrivalsReducer, cartSummaryReducer, checkoutReducer, configReducer, customerReducer, customerIdentifyReducer, dealsReducer, discountsReducer, errorAlertsReducer, kdsReducer, kioskReducer, menuReducer, menuPagesReducer, modalReducer, notificationsReducer, offlineAuthsReducer, orderReducer, posReducer, punchesReducer, refundReducer, sendReceiptReducer, settingsReducer, sidebarReducer, surchargesReducer, taxesReducer, idleReducer, tagsReducer, allergensReducer, revenueCenterReducer, standbyReducer } from '../slices';
|
|
3
3
|
export var appReducer = combineReducers({
|
|
4
4
|
alerts: alertsReducer,
|
|
5
5
|
allergens: allergensReducer,
|
|
@@ -30,7 +30,8 @@ export var appReducer = combineReducers({
|
|
|
30
30
|
taxes: taxesReducer,
|
|
31
31
|
idle: idleReducer,
|
|
32
32
|
tags: tagsReducer,
|
|
33
|
-
revenueCenter: revenueCenterReducer
|
|
33
|
+
revenueCenter: revenueCenterReducer,
|
|
34
|
+
standby: standbyReducer
|
|
34
35
|
});
|
|
35
36
|
var rootReducer = function (state, action) {
|
|
36
37
|
if (action.type === 'clearState') {
|
|
@@ -56,6 +56,7 @@ export declare const selectSelectedAllergenNames: ((state: {
|
|
|
56
56
|
idle: import("./idle").IdleState;
|
|
57
57
|
tags: import("./tags").TagsState;
|
|
58
58
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
59
|
+
standby: import("./standbySlice").StandbyState;
|
|
59
60
|
}) => string[]) & {
|
|
60
61
|
clearCache: () => void;
|
|
61
62
|
resultsCount: () => number;
|
|
@@ -67,6 +67,7 @@ export declare const selectCustomerLoyaltySummary: ((state: {
|
|
|
67
67
|
idle: import("./idle").IdleState;
|
|
68
68
|
tags: import("./tags").TagsState;
|
|
69
69
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
70
|
+
standby: import("./standbySlice").StandbyState;
|
|
70
71
|
}) => LoyaltyProgramSummary | null) & {
|
|
71
72
|
clearCache: () => void;
|
|
72
73
|
resultsCount: () => number;
|
|
@@ -120,6 +121,7 @@ export declare const selectCustomerLoyaltyProgram: ((state: {
|
|
|
120
121
|
idle: import("./idle").IdleState;
|
|
121
122
|
tags: import("./tags").TagsState;
|
|
122
123
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
124
|
+
standby: import("./standbySlice").StandbyState;
|
|
123
125
|
}) => {
|
|
124
126
|
program: import("@open-tender/types").LoyaltyProgram | null;
|
|
125
127
|
loading: RequestStatus;
|
|
@@ -188,6 +190,7 @@ export declare const selectCustomerPointsProgram: ((state: {
|
|
|
188
190
|
idle: import("./idle").IdleState;
|
|
189
191
|
tags: import("./tags").TagsState;
|
|
190
192
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
193
|
+
standby: import("./standbySlice").StandbyState;
|
|
191
194
|
}) => import("@open-tender/types").LoyaltyProgram | null) & {
|
|
192
195
|
clearCache: () => void;
|
|
193
196
|
resultsCount: () => number;
|
|
@@ -240,6 +243,7 @@ export declare const selectCustomerPoints: ((state: {
|
|
|
240
243
|
idle: import("./idle").IdleState;
|
|
241
244
|
tags: import("./tags").TagsState;
|
|
242
245
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
246
|
+
standby: import("./standbySlice").StandbyState;
|
|
243
247
|
}) => {
|
|
244
248
|
name: string;
|
|
245
249
|
points: `${number}.${number}` | null;
|
|
@@ -295,6 +299,7 @@ export declare const selectCustomerPoints: ((state: {
|
|
|
295
299
|
idle: import("./idle").IdleState;
|
|
296
300
|
tags: import("./tags").TagsState;
|
|
297
301
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
302
|
+
standby: import("./standbySlice").StandbyState;
|
|
298
303
|
}) => import("@open-tender/types").LoyaltyProgram | null) & {
|
|
299
304
|
clearCache: () => void;
|
|
300
305
|
resultsCount: () => number;
|
|
@@ -355,6 +360,7 @@ export declare const selectPointsProgram: ((state: {
|
|
|
355
360
|
idle: import("./idle").IdleState;
|
|
356
361
|
tags: import("./tags").TagsState;
|
|
357
362
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
363
|
+
standby: import("./standbySlice").StandbyState;
|
|
358
364
|
}) => import("@open-tender/types").LoyaltyProgram | null) & {
|
|
359
365
|
clearCache: () => void;
|
|
360
366
|
resultsCount: () => number;
|
|
@@ -398,6 +404,7 @@ export declare const selectPointsProgram: ((state: {
|
|
|
398
404
|
idle: import("./idle").IdleState;
|
|
399
405
|
tags: import("./tags").TagsState;
|
|
400
406
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
407
|
+
standby: import("./standbySlice").StandbyState;
|
|
401
408
|
}) => import("@open-tender/types").LoyaltyProgram | null) & {
|
|
402
409
|
clearCache: () => void;
|
|
403
410
|
resultsCount: () => number;
|
package/dist/esm/slices/index.js
CHANGED
|
@@ -116,6 +116,7 @@ export declare const selectStoreSettings: ((state: {
|
|
|
116
116
|
idle: import("./idle").IdleState;
|
|
117
117
|
tags: import("./tags").TagsState;
|
|
118
118
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
119
|
+
standby: import("./standbySlice").StandbyState;
|
|
119
120
|
}) => Store) & {
|
|
120
121
|
clearCache: () => void;
|
|
121
122
|
resultsCount: () => number;
|
|
@@ -168,6 +169,7 @@ export declare const selectKioskTerminal: ((state: {
|
|
|
168
169
|
idle: import("./idle").IdleState;
|
|
169
170
|
tags: import("./tags").TagsState;
|
|
170
171
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
172
|
+
standby: import("./standbySlice").StandbyState;
|
|
171
173
|
}) => import("@open-tender/types").PosTerminal | null) & {
|
|
172
174
|
clearCache: () => void;
|
|
173
175
|
resultsCount: () => number;
|
|
@@ -220,6 +222,7 @@ export declare const selectKioskHasPrinter: ((state: {
|
|
|
220
222
|
idle: import("./idle").IdleState;
|
|
221
223
|
tags: import("./tags").TagsState;
|
|
222
224
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
225
|
+
standby: import("./standbySlice").StandbyState;
|
|
223
226
|
}) => boolean) & {
|
|
224
227
|
clearCache: () => void;
|
|
225
228
|
resultsCount: () => number;
|
|
@@ -272,6 +275,7 @@ export declare const selectKioskHasScanner: ((state: {
|
|
|
272
275
|
idle: import("./idle").IdleState;
|
|
273
276
|
tags: import("./tags").TagsState;
|
|
274
277
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
278
|
+
standby: import("./standbySlice").StandbyState;
|
|
275
279
|
}) => boolean) & {
|
|
276
280
|
clearCache: () => void;
|
|
277
281
|
resultsCount: () => number;
|
|
@@ -324,6 +328,7 @@ export declare const selectKioskApi: ((state: {
|
|
|
324
328
|
idle: import("./idle").IdleState;
|
|
325
329
|
tags: import("./tags").TagsState;
|
|
326
330
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
331
|
+
standby: import("./standbySlice").StandbyState;
|
|
327
332
|
}) => string) & {
|
|
328
333
|
clearCache: () => void;
|
|
329
334
|
resultsCount: () => number;
|
|
@@ -376,6 +381,7 @@ export declare const selectKioskConfig: ((state: {
|
|
|
376
381
|
idle: import("./idle").IdleState;
|
|
377
382
|
tags: import("./tags").TagsState;
|
|
378
383
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
384
|
+
standby: import("./standbySlice").StandbyState;
|
|
379
385
|
}) => AppConfig) & {
|
|
380
386
|
clearCache: () => void;
|
|
381
387
|
resultsCount: () => number;
|
|
@@ -428,6 +434,7 @@ export declare const selectKioskConfigScreen: (screen: string) => ((state: {
|
|
|
428
434
|
idle: import("./idle").IdleState;
|
|
429
435
|
tags: import("./tags").TagsState;
|
|
430
436
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
437
|
+
standby: import("./standbySlice").StandbyState;
|
|
431
438
|
}) => import("@open-tender/ui").ScreenConfig | null) & {
|
|
432
439
|
clearCache: () => void;
|
|
433
440
|
resultsCount: () => number;
|
|
@@ -51,6 +51,7 @@ export declare const selectMenuPagesFiltered: ((state: {
|
|
|
51
51
|
idle: import("./idle").IdleState;
|
|
52
52
|
tags: import("./tags").TagsState;
|
|
53
53
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
54
|
+
standby: import("./standbySlice").StandbyState;
|
|
54
55
|
}) => {
|
|
55
56
|
order_type: import("@open-tender/types").FullOrderType;
|
|
56
57
|
name: string;
|
|
@@ -95,6 +95,7 @@ export declare const selectCartIds: ((state: {
|
|
|
95
95
|
idle: import("./idle").IdleState;
|
|
96
96
|
tags: import("./tags").TagsState;
|
|
97
97
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
98
|
+
standby: import("./standbySlice").StandbyState;
|
|
98
99
|
}) => number[]) & {
|
|
99
100
|
clearCache: () => void;
|
|
100
101
|
resultsCount: () => number;
|
|
@@ -147,6 +148,7 @@ export declare const selectCartQuantity: ((state: {
|
|
|
147
148
|
idle: import("./idle").IdleState;
|
|
148
149
|
tags: import("./tags").TagsState;
|
|
149
150
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
151
|
+
standby: import("./standbySlice").StandbyState;
|
|
150
152
|
}) => number) & {
|
|
151
153
|
clearCache: () => void;
|
|
152
154
|
resultsCount: () => number;
|
|
@@ -199,6 +201,7 @@ export declare const selectCartTotal: ((state: {
|
|
|
199
201
|
idle: import("./idle").IdleState;
|
|
200
202
|
tags: import("./tags").TagsState;
|
|
201
203
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
204
|
+
standby: import("./standbySlice").StandbyState;
|
|
202
205
|
}) => number) & {
|
|
203
206
|
clearCache: () => void;
|
|
204
207
|
resultsCount: () => number;
|
|
@@ -251,6 +254,7 @@ export declare const selectCartTotals: ((state: {
|
|
|
251
254
|
idle: import("./idle").IdleState;
|
|
252
255
|
tags: import("./tags").TagsState;
|
|
253
256
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
257
|
+
standby: import("./standbySlice").StandbyState;
|
|
254
258
|
}) => {
|
|
255
259
|
count: number;
|
|
256
260
|
total: number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface StandbyState {
|
|
2
|
+
standby: boolean;
|
|
3
|
+
hydrated: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const setStandby: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "standby/setStandby">, hydrateStandby: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "standby/hydrateStandby">;
|
|
6
|
+
export declare const selectStandby: (s: {
|
|
7
|
+
standby: StandbyState;
|
|
8
|
+
}) => boolean;
|
|
9
|
+
export declare const selectStandbyHydrated: (s: {
|
|
10
|
+
standby: StandbyState;
|
|
11
|
+
}) => boolean;
|
|
12
|
+
export declare const standbyReducer: import("redux").Reducer<StandbyState>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
3
|
+
var initialState = { standby: false, hydrated: false };
|
|
4
|
+
var standbySlice = createSlice({
|
|
5
|
+
name: 'standby',
|
|
6
|
+
initialState: initialState,
|
|
7
|
+
reducers: {
|
|
8
|
+
setStandby: function (state, action) {
|
|
9
|
+
state.standby = action.payload;
|
|
10
|
+
},
|
|
11
|
+
hydrateStandby: function (state, action) {
|
|
12
|
+
state.standby = action.payload;
|
|
13
|
+
state.hydrated = true;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export var setStandby = (_a = standbySlice.actions, _a.setStandby), hydrateStandby = _a.hydrateStandby;
|
|
18
|
+
export var selectStandby = function (s) { return s.standby.standby; };
|
|
19
|
+
export var selectStandbyHydrated = function (s) {
|
|
20
|
+
return s.standby.hydrated;
|
|
21
|
+
};
|
|
22
|
+
export var standbyReducer = standbySlice.reducer;
|
|
@@ -55,6 +55,7 @@ export declare const selectSelectedTagNames: ((state: {
|
|
|
55
55
|
idle: import("./idle").IdleState;
|
|
56
56
|
tags: TagsState;
|
|
57
57
|
revenueCenter: import("./revenueCenter").RevenueCenterState;
|
|
58
|
+
standby: import("./standbySlice").StandbyState;
|
|
58
59
|
}) => string[]) & {
|
|
59
60
|
clearCache: () => void;
|
|
60
61
|
resultsCount: () => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.323",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|