@open-tender/store 0.3.16 → 0.3.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/cjs/slices/kds.d.ts
CHANGED
|
@@ -193,6 +193,7 @@ export declare const selectKds: (state: AppState) => KdsState;
|
|
|
193
193
|
export declare const selectKdsItemTypes: (state: AppState) => ItemTypes | null;
|
|
194
194
|
export declare const selectKdsPrepStations: (state: AppState) => PrepStations;
|
|
195
195
|
export declare const selectKdsPrepStationId: (state: AppState) => number | null;
|
|
196
|
+
export declare const selectKdsPrepStation: (state: AppState) => import("../types").PrepStation | undefined;
|
|
196
197
|
export declare const selectKdsOrderType: (state: AppState) => KdsOrderType;
|
|
197
198
|
export declare const selectKdsColumns: (state: AppState) => number;
|
|
198
199
|
export declare const selectKdsBoxes: (state: AppState) => number;
|
package/dist/cjs/slices/kds.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.kdsReducer = exports.selectKdsOrdersCounts = exports.selectKdsPrepStationOrders = exports.selectKdsFutureCount = exports.selectKdsFutureOrders = exports.selectKdsCurrentCount = exports.selectKdsCurrentOrders = exports.selectKdsOrders = exports.selectKdsOrder = exports.selectKdsBusinessDate = exports.selectKdsView = exports.selectKdsPageIndex = exports.selectKdsPage = exports.selectKdsSummary = exports.selectKdsFontSize = exports.selectKdsCardWidth = exports.selectKdsBoxes = exports.selectKdsColumns = exports.selectKdsOrderType = exports.selectKdsPrepStationId = exports.selectKdsPrepStations = exports.selectKdsItemTypes = exports.selectKds = exports.replaceKdsOrder = exports.setKdsOrder = exports.toggleKdsSummary = exports.setKdsSearch = exports.setKdsBusinessDate = exports.setKdsView = exports.setKdsPage = exports.setKdsFontSize = exports.setKdsCardWidth = exports.setKdsBoxes = exports.setKdsColumns = exports.setKdsOrderType = exports.setKdsPrepStationId = exports.setKdsPrepStations = exports.setKdsItemTypes = exports.resetkds = exports.kdsSlice = exports.updateTicket = exports.printTicket = exports.resetTickets = exports.printTickets = exports.printKdsOrder = exports.updateKdsOrder = exports.fetchKdsOrders = exports.KdsActionType = void 0;
|
|
4
|
+
exports.kdsReducer = exports.selectKdsOrdersCounts = exports.selectKdsPrepStationOrders = exports.selectKdsFutureCount = exports.selectKdsFutureOrders = exports.selectKdsCurrentCount = exports.selectKdsCurrentOrders = exports.selectKdsOrders = exports.selectKdsOrder = exports.selectKdsBusinessDate = exports.selectKdsView = exports.selectKdsPageIndex = exports.selectKdsPage = exports.selectKdsSummary = exports.selectKdsFontSize = exports.selectKdsCardWidth = exports.selectKdsBoxes = exports.selectKdsColumns = exports.selectKdsOrderType = exports.selectKdsPrepStation = exports.selectKdsPrepStationId = exports.selectKdsPrepStations = exports.selectKdsItemTypes = exports.selectKds = exports.replaceKdsOrder = exports.setKdsOrder = exports.toggleKdsSummary = exports.setKdsSearch = exports.setKdsBusinessDate = exports.setKdsView = exports.setKdsPage = exports.setKdsFontSize = exports.setKdsCardWidth = exports.setKdsBoxes = exports.setKdsColumns = exports.setKdsOrderType = exports.setKdsPrepStationId = exports.setKdsPrepStations = exports.setKdsItemTypes = exports.resetkds = exports.kdsSlice = exports.updateTicket = exports.printTicket = exports.resetTickets = exports.printTickets = exports.printKdsOrder = exports.updateKdsOrder = exports.fetchKdsOrders = exports.KdsActionType = void 0;
|
|
5
5
|
var tslib_1 = require("tslib");
|
|
6
6
|
var toolkit_1 = require("@reduxjs/toolkit");
|
|
7
7
|
var types_1 = require("./types");
|
|
@@ -369,6 +369,11 @@ var selectKdsPrepStationId = function (state) {
|
|
|
369
369
|
return state.kds.prepStationId;
|
|
370
370
|
};
|
|
371
371
|
exports.selectKdsPrepStationId = selectKdsPrepStationId;
|
|
372
|
+
var selectKdsPrepStation = function (state) {
|
|
373
|
+
var _a = state.kds, prepStations = _a.prepStations, prepStationId = _a.prepStationId;
|
|
374
|
+
return prepStations.find(function (i) { return i.prep_station_id === prepStationId; });
|
|
375
|
+
};
|
|
376
|
+
exports.selectKdsPrepStation = selectKdsPrepStation;
|
|
372
377
|
var selectKdsOrderType = function (state) { return state.kds.orderType; };
|
|
373
378
|
exports.selectKdsOrderType = selectKdsOrderType;
|
|
374
379
|
var selectKdsColumns = function (state) { return state.kds.columns; };
|
package/dist/esm/slices/kds.d.ts
CHANGED
|
@@ -193,6 +193,7 @@ export declare const selectKds: (state: AppState) => KdsState;
|
|
|
193
193
|
export declare const selectKdsItemTypes: (state: AppState) => ItemTypes | null;
|
|
194
194
|
export declare const selectKdsPrepStations: (state: AppState) => PrepStations;
|
|
195
195
|
export declare const selectKdsPrepStationId: (state: AppState) => number | null;
|
|
196
|
+
export declare const selectKdsPrepStation: (state: AppState) => import("../types").PrepStation | undefined;
|
|
196
197
|
export declare const selectKdsOrderType: (state: AppState) => KdsOrderType;
|
|
197
198
|
export declare const selectKdsColumns: (state: AppState) => number;
|
|
198
199
|
export declare const selectKdsBoxes: (state: AppState) => number;
|
package/dist/esm/slices/kds.js
CHANGED
|
@@ -362,6 +362,10 @@ export var selectKdsPrepStations = function (state) { return state.kds.prepStati
|
|
|
362
362
|
export var selectKdsPrepStationId = function (state) {
|
|
363
363
|
return state.kds.prepStationId;
|
|
364
364
|
};
|
|
365
|
+
export var selectKdsPrepStation = function (state) {
|
|
366
|
+
var _a = state.kds, prepStations = _a.prepStations, prepStationId = _a.prepStationId;
|
|
367
|
+
return prepStations.find(function (i) { return i.prep_station_id === prepStationId; });
|
|
368
|
+
};
|
|
365
369
|
export var selectKdsOrderType = function (state) { return state.kds.orderType; };
|
|
366
370
|
export var selectKdsColumns = function (state) { return state.kds.columns; };
|
|
367
371
|
export var selectKdsBoxes = function (state) { return state.kds.boxes; };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.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",
|