@pymthouse/builder-sdk 0.4.2-rc.0 → 0.4.2-rc.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.
@@ -102,6 +102,7 @@ declare class PmtHouseClient {
102
102
  startDate: string;
103
103
  endDate: string;
104
104
  maxEndUserIds?: number;
105
+ includeRetail?: boolean;
105
106
  }): Promise<MeScopeUsagePayload>;
106
107
  getAppManifest(opts?: {
107
108
  ifNoneMatch?: string;
@@ -102,6 +102,7 @@ declare class PmtHouseClient {
102
102
  startDate: string;
103
103
  endDate: string;
104
104
  maxEndUserIds?: number;
105
+ includeRetail?: boolean;
105
106
  }): Promise<MeScopeUsagePayload>;
106
107
  getAppManifest(opts?: {
107
108
  ifNoneMatch?: string;
package/dist/env.cjs CHANGED
@@ -1384,7 +1384,8 @@ var PmtHouseClient = class {
1384
1384
  const usageByUser = await this.getUsage({
1385
1385
  startDate: input.startDate,
1386
1386
  endDate: input.endDate,
1387
- groupBy: "user"
1387
+ groupBy: "user",
1388
+ includeRetail: input.includeRetail
1388
1389
  });
1389
1390
  const userIds = getEndUserIdsForExternalUser(usageByUser, input.externalUserId);
1390
1391
  const cap = input.maxEndUserIds ?? DEFAULT_MAX_END_USER_IDS;
@@ -1395,7 +1396,8 @@ var PmtHouseClient = class {
1395
1396
  startDate: input.startDate,
1396
1397
  endDate: input.endDate,
1397
1398
  groupBy: "pipeline_model",
1398
- userId
1399
+ userId,
1400
+ includeRetail: input.includeRetail
1399
1401
  })
1400
1402
  )
1401
1403
  );