@open-tender/store 0.8.7 → 0.8.9
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
|
package/dist/cjs/slices/kiosk.js
CHANGED
|
@@ -8,6 +8,7 @@ var services_1 = require("../services");
|
|
|
8
8
|
var types_1 = require("./types");
|
|
9
9
|
var errors_1 = require("../services/errors");
|
|
10
10
|
var config_1 = require("./config");
|
|
11
|
+
var order_1 = require("./order");
|
|
11
12
|
var initialState = {
|
|
12
13
|
app: null,
|
|
13
14
|
version: null,
|
|
@@ -49,6 +50,7 @@ exports.fetchKioskConfig = (0, toolkit_1.createAsyncThunk)(KioskActionType.Fetch
|
|
|
49
50
|
return [2 /*return*/, rejectWithValue(err)];
|
|
50
51
|
}
|
|
51
52
|
dispatch((0, config_1.setApi)(api));
|
|
53
|
+
dispatch((0, order_1.setRevenueCenterId)(store.revenue_center_id));
|
|
52
54
|
return [2 /*return*/, {
|
|
53
55
|
app: app,
|
|
54
56
|
devices: devices,
|
package/dist/esm/slices/kiosk.js
CHANGED
|
@@ -5,6 +5,7 @@ import { PosAPI } from '../services';
|
|
|
5
5
|
import { ReducerType } from './types';
|
|
6
6
|
import { errorsApi } from '../services/errors';
|
|
7
7
|
import { setApi } from './config';
|
|
8
|
+
import { setRevenueCenterId } from './order';
|
|
8
9
|
var initialState = {
|
|
9
10
|
app: null,
|
|
10
11
|
version: null,
|
|
@@ -46,6 +47,7 @@ export var fetchKioskConfig = createAsyncThunk(KioskActionType.FetchKiosk, funct
|
|
|
46
47
|
return [2 /*return*/, rejectWithValue(err)];
|
|
47
48
|
}
|
|
48
49
|
dispatch(setApi(api));
|
|
50
|
+
dispatch(setRevenueCenterId(store.revenue_center_id));
|
|
49
51
|
return [2 /*return*/, {
|
|
50
52
|
app: app,
|
|
51
53
|
devices: devices,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
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",
|