@open-tender/store 0.2.8 → 0.2.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.
@@ -25,7 +25,7 @@ export declare const makeItemTypeSettings: (itemType: ItemType) => {
25
25
  is_hidden_qa: boolean;
26
26
  print_on_completed: boolean;
27
27
  };
28
- export declare const makeItemTypesMap: (itemTypes: ItemTypes) => {};
28
+ export declare const makeItemTypesMap: (itemTypes: ItemTypes) => {} | null;
29
29
  export declare const makeTicketGroups: (tickets: OrderTickets, cart: OrderCart, itemTypes: ItemTypes, isAssembly: boolean) => TicketGroups;
30
30
  export declare const makeDisplayCounts: (counts: Record<string, number>) => number[] | "";
31
31
  export declare const displayCounts: (counts: Record<string, number>) => string;
@@ -190,7 +190,7 @@ var makeItemTypesMap = function (itemTypes) {
190
190
  var _a;
191
191
  return (tslib_1.__assign(tslib_1.__assign({}, obj), (_a = {}, _a[i.item_type_id] = i, _a)));
192
192
  }, {})
193
- : {};
193
+ : null;
194
194
  };
195
195
  exports.makeItemTypesMap = makeItemTypesMap;
196
196
  var makeTicketGroups = function (tickets, cart, itemTypes, isAssembly) {
@@ -25,7 +25,7 @@ export declare const makeItemTypeSettings: (itemType: ItemType) => {
25
25
  is_hidden_qa: boolean;
26
26
  print_on_completed: boolean;
27
27
  };
28
- export declare const makeItemTypesMap: (itemTypes: ItemTypes) => {};
28
+ export declare const makeItemTypesMap: (itemTypes: ItemTypes) => {} | null;
29
29
  export declare const makeTicketGroups: (tickets: OrderTickets, cart: OrderCart, itemTypes: ItemTypes, isAssembly: boolean) => TicketGroups;
30
30
  export declare const makeDisplayCounts: (counts: Record<string, number>) => number[] | "";
31
31
  export declare const displayCounts: (counts: Record<string, number>) => string;
@@ -176,7 +176,7 @@ export var makeItemTypesMap = function (itemTypes) {
176
176
  var _a;
177
177
  return (__assign(__assign({}, obj), (_a = {}, _a[i.item_type_id] = i, _a)));
178
178
  }, {})
179
- : {};
179
+ : null;
180
180
  };
181
181
  export var makeTicketGroups = function (tickets, cart, itemTypes, isAssembly) {
182
182
  var lookup = makeCartLookup(cart);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "0.2.8",
3
+ "version": "0.2.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",