bruce-models 7.1.124 → 7.1.126

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.
@@ -7203,7 +7203,7 @@ var Entity;
7203
7203
  function Update(params) {
7204
7204
  var _a, _b, _c, _d, _e, _f, _g;
7205
7205
  return __awaiter(this, void 0, void 0, function* () {
7206
- let { api, entity: data, entities, override, req: reqParams, migrated, skipSourcePush } = params;
7206
+ let { api, entity: data, entities, override, req: reqParams, migrated, skipSourcePush, expandLocation } = params;
7207
7207
  if (migrated == null || migrated == undefined) {
7208
7208
  // Changed to default = true. 18th April 2025.
7209
7209
  migrated = true;
@@ -7229,9 +7229,16 @@ var Entity;
7229
7229
  if (!api) {
7230
7230
  api = ENVIRONMENT.Api().GetBruceApi();
7231
7231
  }
7232
- let reqUrl = "v3/entities";
7232
+ const urlParams = new URLSearchParams();
7233
7233
  if (skipSourcePushParam) {
7234
- reqUrl += `?SkipSourcePush=${encodeURIComponent(skipSourcePushParam)}`;
7234
+ urlParams.set("SkipSourcePush", skipSourcePushParam);
7235
+ }
7236
+ if (expandLocation) {
7237
+ urlParams.set("Expand", "location");
7238
+ }
7239
+ let reqUrl = "v3/entities";
7240
+ if (urlParams.toString()) {
7241
+ reqUrl += `?${urlParams.toString()}`;
7235
7242
  }
7236
7243
  const reqBody = {
7237
7244
  Items: entities,
@@ -7295,6 +7302,9 @@ var Entity;
7295
7302
  if (skipSourcePushParam) {
7296
7303
  reqUrl += `&SkipSourcePush=${encodeURIComponent(skipSourcePushParam)}`;
7297
7304
  }
7305
+ if (expandLocation) {
7306
+ reqUrl += "&Expand=location";
7307
+ }
7298
7308
  const res = yield api.POST(reqUrl, data, Api.PrepReqParams(reqParams));
7299
7309
  api.Cache.RemoveByContains(GetContainsKey(data.Bruce.ID));
7300
7310
  EntityHistoricData.ClearCacheByEntityIds(api, [data.Bruce.ID]);
@@ -25672,7 +25682,7 @@ function getFirstWrappedArray(data, wrapperKeys) {
25672
25682
  }
25673
25683
 
25674
25684
  // This is updated with the package.json version on build.
25675
- const VERSION = "7.1.124";
25685
+ const VERSION = "7.1.126";
25676
25686
 
25677
25687
  export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, ClientFileFolder, ClientFileValueMap, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, RequestLane, GeoJson, Geometry, LRUCache, UTC, CustomForm, DashboardView, DataFeed, DataLab, DataLabGroup, DataSource, DataTransform, Comment, Entity, EntityAttachment, EntityAttachmentType, EntityAttribute, EntityComment, EntityCoords, EntityHistoricData, EntityLink, EntityLod, EntityLodCategory, EntityRelation, EntityRelationType, EntitySource, EntityTableView, EntityTag, EntityType, EntityTypeRelation, EntityTypeSource, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportCsv, ExportNsx, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportTif, ImportedFile, Uploader, Markup, UIMarkup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, PluginAiTool, ProgramKey, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewBookmarkGroup, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewLegacyTile, ProjectViewTile, ZoomControl, Scenario, HostingLocation, MessageBroker, PendingAction, RecordChangeFeed, Style, Tileset, Tracking, Permission, Session, User, UserGroup, UserMfaMethod, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, WorkflowItem, WorkflowSchedule, WorkflowType, WorkflowItemType };
25678
25688
  //# sourceMappingURL=bruce-models.es5.js.map