bruce-models 7.1.121 → 7.1.122

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.
@@ -5560,7 +5560,8 @@
5560
5560
  location: bruce.Location,
5561
5561
  transform: bruce.Transform,
5562
5562
  boundaries: bruce.Boundaries,
5563
- geometry: bruce.VectorGeometry
5563
+ geometry: bruce.VectorGeometry,
5564
+ assemblyPosition: bruce.AssemblyPosition
5564
5565
  };
5565
5566
  }
5566
5567
  EntityHistoricData.ToDataRecord = ToDataRecord;
@@ -5575,9 +5576,18 @@
5575
5576
  if (!(entityIds === null || entityIds === void 0 ? void 0 : entityIds.length) && !entityTypeId) {
5576
5577
  return { recordsByIds: {}, sample: 0 };
5577
5578
  }
5578
- const page = yield GetPage(Object.assign(Object.assign({}, params), { pageSize: params.sample > 0 ? undefined : (params.pageSize || 1000) }));
5579
+ // A page counts records across every Entity asked about, so the first page alone can stop partway
5580
+ // through the range. Read to its end, unless the caller asked for a page or a sample.
5581
+ const readAll = !(params.sample > 0) && params.pageIndex == null && params.pageSize == null;
5582
+ const items = [];
5583
+ let page = yield GetPage(Object.assign(Object.assign({}, params), { pageSize: params.sample > 0 ? undefined : (params.pageSize || 1000) }));
5584
+ items.push(...page.items);
5585
+ while (readAll && !(page.sample > 0) && page.pageSize > 0 && page.items.length >= page.pageSize) {
5586
+ page = yield GetPage(Object.assign(Object.assign({}, params), { pageIndex: page.pageIndex + 1, pageSize: page.pageSize }));
5587
+ items.push(...page.items);
5588
+ }
5579
5589
  const recordsByIds = {};
5580
- for (const item of page.items) {
5590
+ for (const item of items) {
5581
5591
  const record = ToDataRecord(item);
5582
5592
  if (!record.entityId) {
5583
5593
  continue;
@@ -25195,7 +25205,7 @@
25195
25205
  }
25196
25206
 
25197
25207
  // This is updated with the package.json version on build.
25198
- const VERSION = "7.1.121";
25208
+ const VERSION = "7.1.122";
25199
25209
 
25200
25210
  exports.VERSION = VERSION;
25201
25211
  exports.AbstractApi = AbstractApi;