@orderingstack/front-hooks 5.0.6 → 5.0.7

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.
@@ -1,12 +1,17 @@
1
1
  import { IOrderInBucket, IOrderLine } from '@orderingstack/ordering-types';
2
+ interface IGroupedDiscount {
3
+ name?: string;
4
+ value: number;
5
+ }
2
6
  export interface IGroupedOrderLine extends IOrderLine {
3
7
  firstProductQuantity: number;
4
8
  itemsToRemove: string[];
5
9
  discounted: number;
6
- discountNames?: string[];
10
+ groupedDiscounts?: IGroupedDiscount[];
7
11
  originalLines: IOrderLine[];
8
12
  }
9
13
  export declare function groupOrderLines(array: IOrderLine[]): IGroupedOrderLine[];
10
14
  export declare function useGroupOrderLines(array: IOrderLine[]): IGroupedOrderLine[];
11
15
  export declare function getGroupedBucketLines(buckets?: IOrderInBucket[]): IGroupedOrderLine[] | null;
16
+ export {};
12
17
  //# sourceMappingURL=useGroupOrderLines.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGroupOrderLines.d.ts","sourceRoot":"","sources":["useGroupOrderLines.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,UAAU,EAEX,MAAM,+BAA+B,CAAC;AAIvC,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE,UAAU,EAAE,CAAC;CAC7B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,uBAmDlD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,uBAErD;AAED,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,cAAc,EAAE,8BAK/D"}
1
+ {"version":3,"file":"useGroupOrderLines.d.ts","sourceRoot":"","sources":["useGroupOrderLines.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,UAAU,EAEX,MAAM,+BAA+B,CAAC;AAIvC,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACtC,aAAa,EAAE,UAAU,EAAE,CAAC;CAC7B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,uBAgElD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,uBAErD;AAED,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,cAAc,EAAE,8BAK/D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/front-hooks",
3
- "version": "5.0.6",
3
+ "version": "5.0.7",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",