@pymthouse/builder-sdk 0.4.2-rc.0 → 0.4.3

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/index.cjs CHANGED
@@ -5,8 +5,13 @@ var crypto = require('crypto');
5
5
 
6
6
  var __defProp = Object.defineProperty;
7
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
8
+ var __esm = (fn, res, err) => function __init() {
9
+ if (err) throw err[0];
10
+ try {
11
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
12
+ } catch (e) {
13
+ throw err = [e], e;
14
+ }
10
15
  };
11
16
  var __export = (target, all) => {
12
17
  for (var name in all)
@@ -1627,7 +1632,8 @@ var PmtHouseClient = class {
1627
1632
  const usageByUser = await this.getUsage({
1628
1633
  startDate: input.startDate,
1629
1634
  endDate: input.endDate,
1630
- groupBy: "user"
1635
+ groupBy: "user",
1636
+ includeRetail: input.includeRetail
1631
1637
  });
1632
1638
  const userIds = getEndUserIdsForExternalUser(usageByUser, input.externalUserId);
1633
1639
  const cap = input.maxEndUserIds ?? DEFAULT_MAX_END_USER_IDS;
@@ -1638,7 +1644,8 @@ var PmtHouseClient = class {
1638
1644
  startDate: input.startDate,
1639
1645
  endDate: input.endDate,
1640
1646
  groupBy: "pipeline_model",
1641
- userId
1647
+ userId,
1648
+ includeRetail: input.includeRetail
1642
1649
  })
1643
1650
  )
1644
1651
  );