bruce-models 4.4.6 → 4.4.7

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.
@@ -12653,7 +12653,7 @@ var DataLab;
12653
12653
  */
12654
12654
  function Run(params) {
12655
12655
  return __awaiter(this, void 0, void 0, function* () {
12656
- let { api, query, key, skip, load, req: reqParams, migrated } = params;
12656
+ let { api, query, key, skip, load, req: reqParams, migrated, analysis } = params;
12657
12657
  if (!api) {
12658
12658
  api = ENVIRONMENT.Api().GetBruceApi();
12659
12659
  }
@@ -12666,12 +12666,20 @@ var DataLab;
12666
12666
  if (!load) {
12667
12667
  load = 50;
12668
12668
  }
12669
- const req = api.POST(`entities/datalab/getMatchingEntities/${key}?skip=${skip}&load=${load}?hasMigrated=${Boolean(migrated)}`, query, Api.PrepReqParams(reqParams));
12669
+ let url = null;
12670
+ if (analysis) {
12671
+ url = "entities/datalab/getMatchesCount/PrimarySelection";
12672
+ }
12673
+ else {
12674
+ url = `entities/datalab/getMatchingEntities/${key}?skip=${skip}&load=${load}&hasMigrated=${Boolean(migrated)}`;
12675
+ }
12676
+ const req = api.POST(url, query, Api.PrepReqParams(reqParams));
12670
12677
  const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
12671
12678
  try {
12672
12679
  const data = yield req;
12673
12680
  res({
12674
- entities: data.Items
12681
+ entities: data.Items,
12682
+ totalCount: data.MatchesCount
12675
12683
  });
12676
12684
  }
12677
12685
  catch (e) {
@@ -13620,7 +13628,7 @@ var DataSource;
13620
13628
  })(DataSource || (DataSource = {}));
13621
13629
 
13622
13630
  // This is updated with the package.json version on build.
13623
- const VERSION = "4.4.6";
13631
+ const VERSION = "4.4.7";
13624
13632
 
13625
13633
  export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
13626
13634
  //# sourceMappingURL=bruce-models.es5.js.map