@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/env.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PmtHouseClient } from './client-D1Xz-xlx.cjs';
1
+ import { P as PmtHouseClient } from './client-C0HgAugK.cjs';
2
2
  import './tokens.cjs';
3
3
  import './types-BORaHW_x.cjs';
4
4
 
package/dist/env.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PmtHouseClient } from './client-CauCfGa7.js';
1
+ import { P as PmtHouseClient } from './client-zCskUJag.js';
2
2
  import './tokens.js';
3
3
  import './types-BORaHW_x.js';
4
4
 
package/dist/env.js CHANGED
@@ -3,8 +3,13 @@ import 'crypto';
3
3
 
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __esm = (fn, res) => function __init() {
7
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
6
+ var __esm = (fn, res, err) => function __init() {
7
+ if (err) throw err[0];
8
+ try {
9
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
+ } catch (e) {
11
+ throw err = [e], e;
12
+ }
8
13
  };
9
14
  var __export = (target, all) => {
10
15
  for (var name in all)
@@ -1382,7 +1387,8 @@ var PmtHouseClient = class {
1382
1387
  const usageByUser = await this.getUsage({
1383
1388
  startDate: input.startDate,
1384
1389
  endDate: input.endDate,
1385
- groupBy: "user"
1390
+ groupBy: "user",
1391
+ includeRetail: input.includeRetail
1386
1392
  });
1387
1393
  const userIds = getEndUserIdsForExternalUser(usageByUser, input.externalUserId);
1388
1394
  const cap = input.maxEndUserIds ?? DEFAULT_MAX_END_USER_IDS;
@@ -1393,7 +1399,8 @@ var PmtHouseClient = class {
1393
1399
  startDate: input.startDate,
1394
1400
  endDate: input.endDate,
1395
1401
  groupBy: "pipeline_model",
1396
- userId
1402
+ userId,
1403
+ includeRetail: input.includeRetail
1397
1404
  })
1398
1405
  )
1399
1406
  );