@open-tender/store 0.7.15 → 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 ADDED
Binary file
@@ -23,7 +23,7 @@ var initialState = {
23
23
  name: null,
24
24
  ipAddress: null,
25
25
  hasPinpad: false,
26
- hasCashDrawer: false,
26
+ hasCashDrawer: true,
27
27
  loading: 'idle',
28
28
  error: null,
29
29
  retries: 0
@@ -93,7 +93,7 @@ exports.fetchConfig = (0, toolkit_1.createAsyncThunk)(ConfigActionType.FetchConf
93
93
  name: 'Name',
94
94
  ipAddress: '10.0.0.1',
95
95
  hasPinpad: false,
96
- hasCashDrawer: false,
96
+ hasCashDrawer: true,
97
97
  error: null,
98
98
  loading: 'idle',
99
99
  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: false,
23
+ hasCashDrawer: true,
24
24
  loading: 'idle',
25
25
  error: null,
26
26
  retries: 0
@@ -90,7 +90,7 @@ export var fetchConfig = createAsyncThunk(ConfigActionType.FetchConfig, function
90
90
  name: 'Name',
91
91
  ipAddress: '10.0.0.1',
92
92
  hasPinpad: false,
93
- hasCashDrawer: false,
93
+ hasCashDrawer: true,
94
94
  error: null,
95
95
  loading: 'idle',
96
96
  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.15",
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",