@open-tender/store 0.3.27 → 0.3.28

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.
@@ -223,6 +223,7 @@ export declare const selectKdsItemTypes: (state: AppState) => ItemTypes | null;
223
223
  export declare const selectKdsPrepStations: (state: AppState) => PrepStations;
224
224
  export declare const selectKdsPrepStationId: (state: AppState) => number | null;
225
225
  export declare const selectKdsPrepStation: (state: AppState) => PrepStation | null;
226
+ export declare const selectKdsPrepType: (state: AppState) => import("../types").KdsPrepType | null;
226
227
  export declare const selectKdsOrderType: (state: AppState) => KdsOrderType;
227
228
  export declare const selectKdsColumns: (state: AppState) => number;
228
229
  export declare const selectKdsBoxes: (state: AppState) => number;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- 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.completeTicket = exports.doneTicket = exports.resetTicket = exports.updateTicket = exports.printTicket = exports.resetTickets = exports.updateTickets = exports.printTickets = exports.printKdsOrder = exports.updateKdsOrder = exports.fetchKdsOrders = exports.KdsActionType = void 0;
5
- exports.kdsReducer = exports.selectKdsOrdersCounts = exports.selectKdsPrepStationOrders = void 0;
4
+ 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.selectKdsPrepType = 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.completeTicket = exports.doneTicket = exports.resetTicket = exports.updateTicket = exports.printTicket = exports.resetTickets = exports.updateTickets = exports.printTickets = exports.printKdsOrder = exports.updateKdsOrder = exports.fetchKdsOrders = exports.KdsActionType = void 0;
5
+ exports.kdsReducer = exports.selectKdsOrdersCounts = exports.selectKdsPrepStationOrders = exports.selectKdsFutureCount = void 0;
6
6
  var tslib_1 = require("tslib");
7
7
  var toolkit_1 = require("@reduxjs/toolkit");
8
8
  var types_1 = require("./types");
@@ -516,6 +516,11 @@ var selectKdsPrepStation = function (state) {
516
516
  return (_a = prepStations.find(function (i) { return i.prep_station_id === prepStationId; })) !== null && _a !== void 0 ? _a : null;
517
517
  };
518
518
  exports.selectKdsPrepStation = selectKdsPrepStation;
519
+ var selectKdsPrepType = function (state) {
520
+ var prepStation = (0, exports.selectKdsPrepStation)(state);
521
+ return prepStation ? prepStation.prep_type : null;
522
+ };
523
+ exports.selectKdsPrepType = selectKdsPrepType;
519
524
  var selectKdsOrderType = function (state) { return state.kds.orderType; };
520
525
  exports.selectKdsOrderType = selectKdsOrderType;
521
526
  var selectKdsColumns = function (state) { return state.kds.columns; };
@@ -223,6 +223,7 @@ export declare const selectKdsItemTypes: (state: AppState) => ItemTypes | null;
223
223
  export declare const selectKdsPrepStations: (state: AppState) => PrepStations;
224
224
  export declare const selectKdsPrepStationId: (state: AppState) => number | null;
225
225
  export declare const selectKdsPrepStation: (state: AppState) => PrepStation | null;
226
+ export declare const selectKdsPrepType: (state: AppState) => import("../types").KdsPrepType | null;
226
227
  export declare const selectKdsOrderType: (state: AppState) => KdsOrderType;
227
228
  export declare const selectKdsColumns: (state: AppState) => number;
228
229
  export declare const selectKdsBoxes: (state: AppState) => number;
@@ -507,6 +507,10 @@ export var selectKdsPrepStation = function (state) {
507
507
  var _b = state.kds, prepStations = _b.prepStations, prepStationId = _b.prepStationId;
508
508
  return (_a = prepStations.find(function (i) { return i.prep_station_id === prepStationId; })) !== null && _a !== void 0 ? _a : null;
509
509
  };
510
+ export var selectKdsPrepType = function (state) {
511
+ var prepStation = selectKdsPrepStation(state);
512
+ return prepStation ? prepStation.prep_type : null;
513
+ };
510
514
  export var selectKdsOrderType = function (state) { return state.kds.orderType; };
511
515
  export var selectKdsColumns = function (state) { return state.kds.columns; };
512
516
  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.27",
3
+ "version": "0.3.28",
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",