@open-tender/store 0.2.4 → 0.2.6
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.
|
@@ -36,7 +36,7 @@ export declare const selectVersion: (state: AppState) => string | null;
|
|
|
36
36
|
export declare const selectPinpad: (state: AppState) => boolean;
|
|
37
37
|
export declare const selectCashDrawer: (state: AppState) => boolean;
|
|
38
38
|
export declare const selectRevenueCenterId: (state: AppState) => number | null;
|
|
39
|
-
export declare const selectStore: (state: AppState) =>
|
|
39
|
+
export declare const selectStore: (state: AppState) => Store | null;
|
|
40
40
|
export declare const selectSelectOptions: (state: AppState) => SelectOptions;
|
|
41
41
|
export declare const selectTimezone: (state: AppState) => Timezone;
|
|
42
42
|
export declare const selectLoyalty: (state: AppState) => boolean;
|
|
@@ -152,7 +152,7 @@ var selectRevenueCenterId = function (state) {
|
|
|
152
152
|
return state.config.revenueCenterId;
|
|
153
153
|
};
|
|
154
154
|
exports.selectRevenueCenterId = selectRevenueCenterId;
|
|
155
|
-
var selectStore = function (state) { return state.config.store
|
|
155
|
+
var selectStore = function (state) { return state.config.store; };
|
|
156
156
|
exports.selectStore = selectStore;
|
|
157
157
|
var selectSelectOptions = function (state) {
|
|
158
158
|
return state.config.selectOptions || [];
|
|
@@ -139,7 +139,7 @@ exports.resetTickets = (0, toolkit_1.createAsyncThunk)(OrdersActionType.ResetTic
|
|
|
139
139
|
case 0:
|
|
140
140
|
_b.trys.push([0, 2, , 3]);
|
|
141
141
|
api = getState().config.api;
|
|
142
|
-
return [4 /*yield*/, api.
|
|
142
|
+
return [4 /*yield*/, api.postTicketsReset(orderId)];
|
|
143
143
|
case 1:
|
|
144
144
|
order = _b.sent();
|
|
145
145
|
dispatch((0, exports.updateOrdersOrder)(order));
|
|
@@ -36,7 +36,7 @@ export declare const selectVersion: (state: AppState) => string | null;
|
|
|
36
36
|
export declare const selectPinpad: (state: AppState) => boolean;
|
|
37
37
|
export declare const selectCashDrawer: (state: AppState) => boolean;
|
|
38
38
|
export declare const selectRevenueCenterId: (state: AppState) => number | null;
|
|
39
|
-
export declare const selectStore: (state: AppState) =>
|
|
39
|
+
export declare const selectStore: (state: AppState) => Store | null;
|
|
40
40
|
export declare const selectSelectOptions: (state: AppState) => SelectOptions;
|
|
41
41
|
export declare const selectTimezone: (state: AppState) => Timezone;
|
|
42
42
|
export declare const selectLoyalty: (state: AppState) => boolean;
|
|
@@ -143,7 +143,7 @@ export var selectCashDrawer = function (state) { return state.config.hasCashDraw
|
|
|
143
143
|
export var selectRevenueCenterId = function (state) {
|
|
144
144
|
return state.config.revenueCenterId;
|
|
145
145
|
};
|
|
146
|
-
export var selectStore = function (state) { return state.config.store
|
|
146
|
+
export var selectStore = function (state) { return state.config.store; };
|
|
147
147
|
export var selectSelectOptions = function (state) {
|
|
148
148
|
return state.config.selectOptions || [];
|
|
149
149
|
};
|
|
@@ -136,7 +136,7 @@ export var resetTickets = createAsyncThunk(OrdersActionType.ResetTickets, functi
|
|
|
136
136
|
case 0:
|
|
137
137
|
_b.trys.push([0, 2, , 3]);
|
|
138
138
|
api = getState().config.api;
|
|
139
|
-
return [4 /*yield*/, api.
|
|
139
|
+
return [4 /*yield*/, api.postTicketsReset(orderId)];
|
|
140
140
|
case 1:
|
|
141
141
|
order = _b.sent();
|
|
142
142
|
dispatch(updateOrdersOrder(order));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
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",
|