@open-tender/store 0.7.16 → 0.7.17
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/.DS_Store +0 -0
- package/dist/cjs/slices/config.js +4 -2
- package/dist/esm/slices/config.js +4 -2
- package/package.json +1 -1
package/dist/.DS_Store
ADDED
|
Binary file
|
|
@@ -23,7 +23,7 @@ var initialState = {
|
|
|
23
23
|
name: null,
|
|
24
24
|
ipAddress: null,
|
|
25
25
|
hasPinpad: false,
|
|
26
|
-
hasCashDrawer:
|
|
26
|
+
hasCashDrawer: true,
|
|
27
27
|
loading: 'idle',
|
|
28
28
|
error: null,
|
|
29
29
|
retries: 0
|
|
@@ -133,13 +133,15 @@ var configSlice = (0, toolkit_1.createSlice)({
|
|
|
133
133
|
state.loading = 'pending';
|
|
134
134
|
})
|
|
135
135
|
.addCase(exports.fetchConfig.fulfilled, function (state, action) {
|
|
136
|
-
var _a = action.payload, api = _a.api, app = _a.app, devices = _a.devices, store = _a.store, selectOptions = _a.selectOptions, menuColors = _a.menuColors;
|
|
136
|
+
var _a = action.payload, api = _a.api, app = _a.app, devices = _a.devices, store = _a.store, selectOptions = _a.selectOptions, menuColors = _a.menuColors, hasPinpad = _a.hasPinpad, hasCashDrawer = _a.hasCashDrawer;
|
|
137
137
|
state.api = api;
|
|
138
138
|
state.app = app;
|
|
139
139
|
state.store = store;
|
|
140
140
|
state.devices = devices;
|
|
141
141
|
state.selectOptions = selectOptions;
|
|
142
142
|
state.menuColors = menuColors;
|
|
143
|
+
state.hasPinpad = hasPinpad;
|
|
144
|
+
state.hasCashDrawer = hasCashDrawer;
|
|
143
145
|
state.loading = 'idle';
|
|
144
146
|
state.retries = 0;
|
|
145
147
|
state.error = null;
|
|
@@ -20,7 +20,7 @@ var initialState = {
|
|
|
20
20
|
name: null,
|
|
21
21
|
ipAddress: null,
|
|
22
22
|
hasPinpad: false,
|
|
23
|
-
hasCashDrawer:
|
|
23
|
+
hasCashDrawer: true,
|
|
24
24
|
loading: 'idle',
|
|
25
25
|
error: null,
|
|
26
26
|
retries: 0
|
|
@@ -130,13 +130,15 @@ var configSlice = createSlice({
|
|
|
130
130
|
state.loading = 'pending';
|
|
131
131
|
})
|
|
132
132
|
.addCase(fetchConfig.fulfilled, function (state, action) {
|
|
133
|
-
var _a = action.payload, api = _a.api, app = _a.app, devices = _a.devices, store = _a.store, selectOptions = _a.selectOptions, menuColors = _a.menuColors;
|
|
133
|
+
var _a = action.payload, api = _a.api, app = _a.app, devices = _a.devices, store = _a.store, selectOptions = _a.selectOptions, menuColors = _a.menuColors, hasPinpad = _a.hasPinpad, hasCashDrawer = _a.hasCashDrawer;
|
|
134
134
|
state.api = api;
|
|
135
135
|
state.app = app;
|
|
136
136
|
state.store = store;
|
|
137
137
|
state.devices = devices;
|
|
138
138
|
state.selectOptions = selectOptions;
|
|
139
139
|
state.menuColors = menuColors;
|
|
140
|
+
state.hasPinpad = hasPinpad;
|
|
141
|
+
state.hasCashDrawer = hasCashDrawer;
|
|
140
142
|
state.loading = 'idle';
|
|
141
143
|
state.retries = 0;
|
|
142
144
|
state.error = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.17",
|
|
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",
|