@open-tender/store 1.1.97 → 1.1.99
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/config/guest.js +2 -2
- package/dist/cjs/config/header.js +1 -1
- package/dist/cjs/services/errors.js +6 -6
- package/dist/cjs/slices/kiosk.d.ts +58 -1
- package/dist/cjs/slices/kiosk.js +18 -2
- package/dist/esm/config/guest.js +2 -2
- package/dist/esm/config/header.js +1 -1
- package/dist/esm/services/errors.js +6 -6
- package/dist/esm/slices/kiosk.d.ts +58 -1
- package/dist/esm/slices/kiosk.js +17 -1
- package/package.json +1 -1
package/dist/cjs/config/guest.js
CHANGED
|
@@ -22,7 +22,7 @@ var guest = {
|
|
|
22
22
|
classes: 'object-cover',
|
|
23
23
|
props: {
|
|
24
24
|
src: 'https://res.cloudinary.com/dlpitjizv/video/upload/v1676582896/Beggars_Web_1728x940_Pizza_V2_2_MB_985d6b0daf.mp4',
|
|
25
|
-
alt: '
|
|
25
|
+
alt: 'Checkmate Landing'
|
|
26
26
|
},
|
|
27
27
|
style: {
|
|
28
28
|
position: 'absolute',
|
|
@@ -50,7 +50,7 @@ var guest = {
|
|
|
50
50
|
classes: '',
|
|
51
51
|
props: {
|
|
52
52
|
src: 'https://io-opentender.s3.amazonaws.com/logos/open-tender-logo-white.png',
|
|
53
|
-
alt: '
|
|
53
|
+
alt: 'Checkmate Logo'
|
|
54
54
|
},
|
|
55
55
|
style: {
|
|
56
56
|
width: 480,
|
|
@@ -18,36 +18,36 @@ exports.errorsApi = {
|
|
|
18
18
|
code: 'parse_error',
|
|
19
19
|
status: 422,
|
|
20
20
|
title: 'Cannot Read File',
|
|
21
|
-
detail: 'There was an error reading this file. Please contact
|
|
21
|
+
detail: 'There was an error reading this file. Please contact Checkmate Support.'
|
|
22
22
|
},
|
|
23
23
|
internalServerError: {
|
|
24
24
|
code: 'internal_server_error',
|
|
25
25
|
status: 500,
|
|
26
26
|
title: 'Internal Server Error',
|
|
27
|
-
detail: 'Internal server error. Please contact
|
|
27
|
+
detail: 'Internal server error. Please contact Checkmate Support.'
|
|
28
28
|
},
|
|
29
29
|
notImplemented: {
|
|
30
30
|
code: 'not_implemented',
|
|
31
31
|
status: 501,
|
|
32
32
|
title: 'Servers Overloaded',
|
|
33
|
-
detail: 'Servers temporarily overloaded. Please retry your request. If this issue persists, please contact
|
|
33
|
+
detail: 'Servers temporarily overloaded. Please retry your request. If this issue persists, please contact Checkmate Support.'
|
|
34
34
|
},
|
|
35
35
|
badGateway: {
|
|
36
36
|
code: 'bad_gateway',
|
|
37
37
|
status: 502,
|
|
38
38
|
title: 'Bad Gateway',
|
|
39
|
-
detail: 'Temporary gateway error. Please retry your request. If this issue persists, please contact
|
|
39
|
+
detail: 'Temporary gateway error. Please retry your request. If this issue persists, please contact Checkmate Support.'
|
|
40
40
|
},
|
|
41
41
|
tempUnavailable: {
|
|
42
42
|
code: 'temporarily_unavailable',
|
|
43
43
|
status: 503,
|
|
44
44
|
title: 'Service Temporarily Unavailable',
|
|
45
|
-
detail: 'Service Temporarily Unavailable. Please retry your request. If this issue persists, please contact
|
|
45
|
+
detail: 'Service Temporarily Unavailable. Please retry your request. If this issue persists, please contact Checkmate Support.'
|
|
46
46
|
},
|
|
47
47
|
gatewayTimeout: {
|
|
48
48
|
code: 'gateway_timeout',
|
|
49
49
|
status: 504,
|
|
50
50
|
title: 'Gateway Timeout',
|
|
51
|
-
detail: 'Gateway Timeout. Please contact
|
|
51
|
+
detail: 'Gateway Timeout. Please contact Checkmate Support.'
|
|
52
52
|
}
|
|
53
53
|
};
|
|
@@ -97,7 +97,64 @@ export declare const selectKioskTerminal: ((state: {
|
|
|
97
97
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
98
98
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
99
99
|
};
|
|
100
|
-
export declare const
|
|
100
|
+
export declare const selectKioskHasPrinter: ((state: {
|
|
101
|
+
alerts: import("@open-tender/types").Alerts;
|
|
102
|
+
arrivals: import("./arrivals").ArrivalsState;
|
|
103
|
+
cartSummary: import("./cartSummary").CartSummaryState;
|
|
104
|
+
checkout: import("./checkout").CheckoutState;
|
|
105
|
+
config: import("./config").ConfigState;
|
|
106
|
+
customer: import("./customer").CustomerState;
|
|
107
|
+
customerIdentify: import("./customerIdentify").CustomerIdentifyState;
|
|
108
|
+
deals: import("./deals").DealsState;
|
|
109
|
+
discounts: import("./discounts").DiscountsState;
|
|
110
|
+
errorAlerts: import("./errorAlerts").ErrorAlertsState;
|
|
111
|
+
kds: import("./kds").KdsState;
|
|
112
|
+
kiosk: KioskState;
|
|
113
|
+
menu: import("./menu").MenuState;
|
|
114
|
+
menuPages: import("./menuPages").MenuPagesState;
|
|
115
|
+
modal: import("./modal").ModalState;
|
|
116
|
+
notifications: import("@open-tender/types").Notifications;
|
|
117
|
+
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
118
|
+
order: import("./order").OrderState;
|
|
119
|
+
pos: import("./pos").PosState;
|
|
120
|
+
punches: import("./punches").PunchesState;
|
|
121
|
+
refund: import("./refund").RefundState;
|
|
122
|
+
sendReceipt: import("./sendReceipt").SendReceiptState;
|
|
123
|
+
settings: import("./settings").SettingsState;
|
|
124
|
+
sidebar: import("./sidebar").SidebarState;
|
|
125
|
+
surcharges: import("./surcharges").SurchargesState;
|
|
126
|
+
taxes: import("./taxes").TaxesState;
|
|
127
|
+
}) => boolean) & {
|
|
128
|
+
clearCache: () => void;
|
|
129
|
+
resultsCount: () => number;
|
|
130
|
+
resetResultsCount: () => void;
|
|
131
|
+
} & {
|
|
132
|
+
resultFunc: (resultFuncArgs_0: {
|
|
133
|
+
devices: Devices | null;
|
|
134
|
+
terminalId: number | null;
|
|
135
|
+
}) => boolean;
|
|
136
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
137
|
+
devices: Devices | null;
|
|
138
|
+
terminalId: number | null;
|
|
139
|
+
}) => boolean) & {
|
|
140
|
+
clearCache: () => void;
|
|
141
|
+
resultsCount: () => number;
|
|
142
|
+
resetResultsCount: () => void;
|
|
143
|
+
};
|
|
144
|
+
lastResult: () => boolean;
|
|
145
|
+
dependencies: [(state: AppState) => {
|
|
146
|
+
devices: Devices | null;
|
|
147
|
+
terminalId: number | null;
|
|
148
|
+
}];
|
|
149
|
+
recomputations: () => number;
|
|
150
|
+
resetRecomputations: () => void;
|
|
151
|
+
dependencyRecomputations: () => number;
|
|
152
|
+
resetDependencyRecomputations: () => void;
|
|
153
|
+
} & {
|
|
154
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
155
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
156
|
+
};
|
|
157
|
+
export declare const selectKioskHasScanner: ((state: {
|
|
101
158
|
alerts: import("@open-tender/types").Alerts;
|
|
102
159
|
arrivals: import("./arrivals").ArrivalsState;
|
|
103
160
|
cartSummary: import("./cartSummary").CartSummaryState;
|
package/dist/cjs/slices/kiosk.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.kioskReducer = exports.selectKioskRatio = exports.selectKioskStyles = exports.selectKioskConfigScreen = exports.selectKioskConfig = exports.selectKioskApi = exports.
|
|
4
|
+
exports.kioskReducer = exports.selectKioskRatio = exports.selectKioskStyles = exports.selectKioskConfigScreen = exports.selectKioskConfig = exports.selectKioskApi = exports.selectKioskHasScanner = exports.selectKioskHasPrinter = exports.selectKioskTerminal = exports.selectKioskBrand = exports.selectKioskStore = exports.selectKioskVersion = exports.selectKiosk = exports.setKioskStyles = exports.setKioskConfig = exports.setKioskRatio = exports.setKioskVersion = exports.incrementKioskRetries = exports.resetKioskRetries = exports.resetKiosk = exports.fetchKioskConfig = exports.KioskActionType = void 0;
|
|
5
5
|
var tslib_1 = require("tslib");
|
|
6
6
|
var toolkit_1 = require("@reduxjs/toolkit");
|
|
7
7
|
var services_1 = require("../services");
|
|
@@ -148,7 +148,7 @@ exports.selectKioskTerminal = (0, toolkit_1.createSelector)(function (state) {
|
|
|
148
148
|
var terminal = devices === null || devices === void 0 ? void 0 : devices.pos_terminals.find(function (i) { return i.pos_terminal_id === terminalId; });
|
|
149
149
|
return terminal || null;
|
|
150
150
|
});
|
|
151
|
-
exports.
|
|
151
|
+
exports.selectKioskHasPrinter = (0, toolkit_1.createSelector)(function (state) {
|
|
152
152
|
var devices = state.kiosk.devices;
|
|
153
153
|
var terminalId = state.pos.terminalId;
|
|
154
154
|
return { devices: devices, terminalId: terminalId };
|
|
@@ -162,6 +162,22 @@ exports.selectKioskShowPrint = (0, toolkit_1.createSelector)(function (state) {
|
|
|
162
162
|
return false;
|
|
163
163
|
return true;
|
|
164
164
|
});
|
|
165
|
+
exports.selectKioskHasScanner = (0, toolkit_1.createSelector)(function (state) {
|
|
166
|
+
var devices = state.kiosk.devices;
|
|
167
|
+
var terminalId = state.pos.terminalId;
|
|
168
|
+
return { devices: devices, terminalId: terminalId };
|
|
169
|
+
}, function (_a) {
|
|
170
|
+
var devices = _a.devices, terminalId = _a.terminalId;
|
|
171
|
+
var terminal = devices === null || devices === void 0 ? void 0 : devices.pos_terminals.find(function (i) { return i.pos_terminal_id === terminalId; });
|
|
172
|
+
if (!terminal)
|
|
173
|
+
return false;
|
|
174
|
+
var pos_scanner_type = terminal.pos_scanner_type, pos_scanner = terminal.pos_scanner;
|
|
175
|
+
if (pos_scanner_type === 'NONE')
|
|
176
|
+
return false;
|
|
177
|
+
if (pos_scanner_type === 'MORPHSTICK' && !pos_scanner)
|
|
178
|
+
return false;
|
|
179
|
+
return true;
|
|
180
|
+
});
|
|
165
181
|
exports.selectKioskApi = (0, toolkit_1.createSelector)(function (state) {
|
|
166
182
|
var app = state.kiosk.app;
|
|
167
183
|
return app;
|
package/dist/esm/config/guest.js
CHANGED
|
@@ -20,7 +20,7 @@ var guest = {
|
|
|
20
20
|
classes: 'object-cover',
|
|
21
21
|
props: {
|
|
22
22
|
src: 'https://res.cloudinary.com/dlpitjizv/video/upload/v1676582896/Beggars_Web_1728x940_Pizza_V2_2_MB_985d6b0daf.mp4',
|
|
23
|
-
alt: '
|
|
23
|
+
alt: 'Checkmate Landing'
|
|
24
24
|
},
|
|
25
25
|
style: {
|
|
26
26
|
position: 'absolute',
|
|
@@ -48,7 +48,7 @@ var guest = {
|
|
|
48
48
|
classes: '',
|
|
49
49
|
props: {
|
|
50
50
|
src: 'https://io-opentender.s3.amazonaws.com/logos/open-tender-logo-white.png',
|
|
51
|
-
alt: '
|
|
51
|
+
alt: 'Checkmate Logo'
|
|
52
52
|
},
|
|
53
53
|
style: {
|
|
54
54
|
width: 480,
|
|
@@ -15,36 +15,36 @@ export var errorsApi = {
|
|
|
15
15
|
code: 'parse_error',
|
|
16
16
|
status: 422,
|
|
17
17
|
title: 'Cannot Read File',
|
|
18
|
-
detail: 'There was an error reading this file. Please contact
|
|
18
|
+
detail: 'There was an error reading this file. Please contact Checkmate Support.'
|
|
19
19
|
},
|
|
20
20
|
internalServerError: {
|
|
21
21
|
code: 'internal_server_error',
|
|
22
22
|
status: 500,
|
|
23
23
|
title: 'Internal Server Error',
|
|
24
|
-
detail: 'Internal server error. Please contact
|
|
24
|
+
detail: 'Internal server error. Please contact Checkmate Support.'
|
|
25
25
|
},
|
|
26
26
|
notImplemented: {
|
|
27
27
|
code: 'not_implemented',
|
|
28
28
|
status: 501,
|
|
29
29
|
title: 'Servers Overloaded',
|
|
30
|
-
detail: 'Servers temporarily overloaded. Please retry your request. If this issue persists, please contact
|
|
30
|
+
detail: 'Servers temporarily overloaded. Please retry your request. If this issue persists, please contact Checkmate Support.'
|
|
31
31
|
},
|
|
32
32
|
badGateway: {
|
|
33
33
|
code: 'bad_gateway',
|
|
34
34
|
status: 502,
|
|
35
35
|
title: 'Bad Gateway',
|
|
36
|
-
detail: 'Temporary gateway error. Please retry your request. If this issue persists, please contact
|
|
36
|
+
detail: 'Temporary gateway error. Please retry your request. If this issue persists, please contact Checkmate Support.'
|
|
37
37
|
},
|
|
38
38
|
tempUnavailable: {
|
|
39
39
|
code: 'temporarily_unavailable',
|
|
40
40
|
status: 503,
|
|
41
41
|
title: 'Service Temporarily Unavailable',
|
|
42
|
-
detail: 'Service Temporarily Unavailable. Please retry your request. If this issue persists, please contact
|
|
42
|
+
detail: 'Service Temporarily Unavailable. Please retry your request. If this issue persists, please contact Checkmate Support.'
|
|
43
43
|
},
|
|
44
44
|
gatewayTimeout: {
|
|
45
45
|
code: 'gateway_timeout',
|
|
46
46
|
status: 504,
|
|
47
47
|
title: 'Gateway Timeout',
|
|
48
|
-
detail: 'Gateway Timeout. Please contact
|
|
48
|
+
detail: 'Gateway Timeout. Please contact Checkmate Support.'
|
|
49
49
|
}
|
|
50
50
|
};
|
|
@@ -97,7 +97,64 @@ export declare const selectKioskTerminal: ((state: {
|
|
|
97
97
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
98
98
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
99
99
|
};
|
|
100
|
-
export declare const
|
|
100
|
+
export declare const selectKioskHasPrinter: ((state: {
|
|
101
|
+
alerts: import("@open-tender/types").Alerts;
|
|
102
|
+
arrivals: import("./arrivals").ArrivalsState;
|
|
103
|
+
cartSummary: import("./cartSummary").CartSummaryState;
|
|
104
|
+
checkout: import("./checkout").CheckoutState;
|
|
105
|
+
config: import("./config").ConfigState;
|
|
106
|
+
customer: import("./customer").CustomerState;
|
|
107
|
+
customerIdentify: import("./customerIdentify").CustomerIdentifyState;
|
|
108
|
+
deals: import("./deals").DealsState;
|
|
109
|
+
discounts: import("./discounts").DiscountsState;
|
|
110
|
+
errorAlerts: import("./errorAlerts").ErrorAlertsState;
|
|
111
|
+
kds: import("./kds").KdsState;
|
|
112
|
+
kiosk: KioskState;
|
|
113
|
+
menu: import("./menu").MenuState;
|
|
114
|
+
menuPages: import("./menuPages").MenuPagesState;
|
|
115
|
+
modal: import("./modal").ModalState;
|
|
116
|
+
notifications: import("@open-tender/types").Notifications;
|
|
117
|
+
offlineAuths: import("./offlineAuths").OfflineAuthsState;
|
|
118
|
+
order: import("./order").OrderState;
|
|
119
|
+
pos: import("./pos").PosState;
|
|
120
|
+
punches: import("./punches").PunchesState;
|
|
121
|
+
refund: import("./refund").RefundState;
|
|
122
|
+
sendReceipt: import("./sendReceipt").SendReceiptState;
|
|
123
|
+
settings: import("./settings").SettingsState;
|
|
124
|
+
sidebar: import("./sidebar").SidebarState;
|
|
125
|
+
surcharges: import("./surcharges").SurchargesState;
|
|
126
|
+
taxes: import("./taxes").TaxesState;
|
|
127
|
+
}) => boolean) & {
|
|
128
|
+
clearCache: () => void;
|
|
129
|
+
resultsCount: () => number;
|
|
130
|
+
resetResultsCount: () => void;
|
|
131
|
+
} & {
|
|
132
|
+
resultFunc: (resultFuncArgs_0: {
|
|
133
|
+
devices: Devices | null;
|
|
134
|
+
terminalId: number | null;
|
|
135
|
+
}) => boolean;
|
|
136
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
137
|
+
devices: Devices | null;
|
|
138
|
+
terminalId: number | null;
|
|
139
|
+
}) => boolean) & {
|
|
140
|
+
clearCache: () => void;
|
|
141
|
+
resultsCount: () => number;
|
|
142
|
+
resetResultsCount: () => void;
|
|
143
|
+
};
|
|
144
|
+
lastResult: () => boolean;
|
|
145
|
+
dependencies: [(state: AppState) => {
|
|
146
|
+
devices: Devices | null;
|
|
147
|
+
terminalId: number | null;
|
|
148
|
+
}];
|
|
149
|
+
recomputations: () => number;
|
|
150
|
+
resetRecomputations: () => void;
|
|
151
|
+
dependencyRecomputations: () => number;
|
|
152
|
+
resetDependencyRecomputations: () => void;
|
|
153
|
+
} & {
|
|
154
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
155
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
156
|
+
};
|
|
157
|
+
export declare const selectKioskHasScanner: ((state: {
|
|
101
158
|
alerts: import("@open-tender/types").Alerts;
|
|
102
159
|
arrivals: import("./arrivals").ArrivalsState;
|
|
103
160
|
cartSummary: import("./cartSummary").CartSummaryState;
|
package/dist/esm/slices/kiosk.js
CHANGED
|
@@ -141,7 +141,7 @@ export var selectKioskTerminal = createSelector(function (state) {
|
|
|
141
141
|
var terminal = devices === null || devices === void 0 ? void 0 : devices.pos_terminals.find(function (i) { return i.pos_terminal_id === terminalId; });
|
|
142
142
|
return terminal || null;
|
|
143
143
|
});
|
|
144
|
-
export var
|
|
144
|
+
export var selectKioskHasPrinter = createSelector(function (state) {
|
|
145
145
|
var devices = state.kiosk.devices;
|
|
146
146
|
var terminalId = state.pos.terminalId;
|
|
147
147
|
return { devices: devices, terminalId: terminalId };
|
|
@@ -155,6 +155,22 @@ export var selectKioskShowPrint = createSelector(function (state) {
|
|
|
155
155
|
return false;
|
|
156
156
|
return true;
|
|
157
157
|
});
|
|
158
|
+
export var selectKioskHasScanner = createSelector(function (state) {
|
|
159
|
+
var devices = state.kiosk.devices;
|
|
160
|
+
var terminalId = state.pos.terminalId;
|
|
161
|
+
return { devices: devices, terminalId: terminalId };
|
|
162
|
+
}, function (_a) {
|
|
163
|
+
var devices = _a.devices, terminalId = _a.terminalId;
|
|
164
|
+
var terminal = devices === null || devices === void 0 ? void 0 : devices.pos_terminals.find(function (i) { return i.pos_terminal_id === terminalId; });
|
|
165
|
+
if (!terminal)
|
|
166
|
+
return false;
|
|
167
|
+
var pos_scanner_type = terminal.pos_scanner_type, pos_scanner = terminal.pos_scanner;
|
|
168
|
+
if (pos_scanner_type === 'NONE')
|
|
169
|
+
return false;
|
|
170
|
+
if (pos_scanner_type === 'MORPHSTICK' && !pos_scanner)
|
|
171
|
+
return false;
|
|
172
|
+
return true;
|
|
173
|
+
});
|
|
158
174
|
export var selectKioskApi = createSelector(function (state) {
|
|
159
175
|
var app = state.kiosk.app;
|
|
160
176
|
return app;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.99",
|
|
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",
|