@open-tender/types 0.1.0 → 0.1.1

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
Binary file
@@ -56,6 +56,11 @@ export declare type CartItemGroups = CartItemGroup[];
56
56
  export declare type Cart = CartItem[];
57
57
  export declare type CartLevels = number[][];
58
58
  export declare type CartCounts = Record<string, number>;
59
+ export declare type CartItemOptionLookup = Record<string, CartItemOption>;
60
+ export declare type CartItemGroupLookupOptions = Omit<CartItemGroup, 'options'> & {
61
+ options: CartItemOptionLookup;
62
+ };
63
+ export declare type CartItemGroupLookup = Record<string, CartItemGroupLookupOptions>;
59
64
  export interface PosCartItem extends CartItem {
60
65
  item_no: number;
61
66
  line_no: number;
@@ -56,6 +56,11 @@ export declare type CartItemGroups = CartItemGroup[];
56
56
  export declare type Cart = CartItem[];
57
57
  export declare type CartLevels = number[][];
58
58
  export declare type CartCounts = Record<string, number>;
59
+ export declare type CartItemOptionLookup = Record<string, CartItemOption>;
60
+ export declare type CartItemGroupLookupOptions = Omit<CartItemGroup, 'options'> & {
61
+ options: CartItemOptionLookup;
62
+ };
63
+ export declare type CartItemGroupLookup = Record<string, CartItemGroupLookupOptions>;
59
64
  export interface PosCartItem extends CartItem {
60
65
  item_no: number;
61
66
  line_no: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A library of types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",