bruce-models 5.2.6 → 5.2.8

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.
@@ -3268,7 +3268,7 @@
3268
3268
  */
3269
3269
  function GetListByIds(params) {
3270
3270
  return __awaiter(this, void 0, void 0, function* () {
3271
- let { api, entityIds, migrated, schemaId, req: reqParams, expandRelations, expandLocation, historicFrom, historicKey, historicTo, historicPoint, expandSources, expandImports } = params;
3271
+ let { api, entityIds, migrated, schemaId, req: reqParams, expandRelations, expandLocation, historicFrom, historicKey, historicTo, historicPoint, expandSources, expandImports, maxSearchTimeSec } = params;
3272
3272
  if (!entityIds.length) {
3273
3273
  throw ("Entity IDs are required.");
3274
3274
  }
@@ -3334,6 +3334,9 @@
3334
3334
  if (schemaId) {
3335
3335
  urlParams.set("schema", schemaId);
3336
3336
  }
3337
+ if (maxSearchTimeSec) {
3338
+ urlParams.set("MaxSearchTimeSec", String(Math.ceil(maxSearchTimeSec)));
3339
+ }
3337
3340
  urlParams.set("hasMigrated", String(Boolean(migrated)));
3338
3341
  const url = `entities?${urlParams.toString()}`;
3339
3342
  const reqs = [];
@@ -3741,7 +3744,7 @@
3741
3744
  function GetList(params) {
3742
3745
  var _a;
3743
3746
  return __awaiter(this, void 0, void 0, function* () {
3744
- let { api, filter, migrated, schemaId, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, expandImports, historicFrom, historicKey, historicTo, historicPoint, expandLocation, expandSources } = params;
3747
+ let { api, filter, migrated, schemaId, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, expandImports, historicFrom, historicKey, historicTo, historicPoint, expandLocation, expandSources, maxSearchTimeSec } = params;
3745
3748
  if (!api) {
3746
3749
  api = exports.ENVIRONMENT.Api().GetBruceApi();
3747
3750
  }
@@ -3761,7 +3764,7 @@
3761
3764
  };
3762
3765
  }
3763
3766
  if (filter.bounds) {
3764
- requestFilter["geometry"] = {
3767
+ requestFilter["boundaries"] = {
3765
3768
  "intersects": [
3766
3769
  filter.bounds.south,
3767
3770
  filter.bounds.north,
@@ -3859,6 +3862,9 @@
3859
3862
  if (schemaId) {
3860
3863
  urlParams.set("schema", schemaId);
3861
3864
  }
3865
+ if (maxSearchTimeSec) {
3866
+ urlParams.set("MaxSearchTimeSec", String(Math.ceil(maxSearchTimeSec)));
3867
+ }
3862
3868
  urlParams.set("hasMigrated", String(Boolean(migrated)));
3863
3869
  let url = analysis ? "entities/summary" : "entities";
3864
3870
  // Adding url params here because this will avoid making them encoded.
@@ -3889,6 +3895,9 @@
3889
3895
  if (schemaId) {
3890
3896
  urlParams.set("schema", schemaId);
3891
3897
  }
3898
+ if (maxSearchTimeSec) {
3899
+ urlParams.set("MaxSearchTimeSec", String(Math.ceil(maxSearchTimeSec)));
3900
+ }
3892
3901
  urlParams.set("hasMigrated", String(Boolean(migrated)));
3893
3902
  let url = analysis ? "entities/summary" : "entities";
3894
3903
  // Adding url params here because this will avoid making them encoded.
@@ -14325,7 +14334,7 @@
14325
14334
  })(exports.DataSource || (exports.DataSource = {}));
14326
14335
 
14327
14336
  // This is updated with the package.json version on build.
14328
- const VERSION = "5.2.6";
14337
+ const VERSION = "5.2.8";
14329
14338
 
14330
14339
  exports.VERSION = VERSION;
14331
14340
  exports.AbstractApi = AbstractApi;