bruce-models 7.1.16 → 7.1.17

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.
@@ -8517,7 +8517,7 @@ var EntityTypeTrigger;
8517
8517
  */
8518
8518
  function Update(params) {
8519
8519
  return __awaiter(this, void 0, void 0, function* () {
8520
- let { api, trigger: data, req: reqParams } = params;
8520
+ let { api, trigger: data, entityTypeId, req: reqParams } = params;
8521
8521
  if (!api) {
8522
8522
  api = ENVIRONMENT.Api().GetBruceApi();
8523
8523
  }
@@ -8527,7 +8527,11 @@ var EntityTypeTrigger;
8527
8527
  if (data.ID == null || data.ID === "") {
8528
8528
  data.ID = ObjectUtils.UId();
8529
8529
  }
8530
- const res = yield api.POST(`entityTypeTrigger/${data.ID}`, data, Api.PrepReqParams(reqParams));
8530
+ const typeId = entityTypeId !== null && entityTypeId !== void 0 ? entityTypeId : data["EntityType.ID"];
8531
+ if (!typeId) {
8532
+ throw ("Entity Type ID is required. Set trigger[\"EntityType.ID\"] or pass entityTypeId.");
8533
+ }
8534
+ const res = yield api.POST(`entityType/${typeId}/trigger/${data.ID}`, data, Api.PrepReqParams(reqParams));
8531
8535
  api.Cache.Remove(GetCacheKey(data.ID));
8532
8536
  api.Cache.RemoveByStartsWith(GetListCacheKey());
8533
8537
  return {
@@ -17438,7 +17442,7 @@ var ChangeSet;
17438
17442
  })(ChangeSet || (ChangeSet = {}));
17439
17443
 
17440
17444
  // This is updated with the package.json version on build.
17441
- const VERSION = "7.1.16";
17445
+ const VERSION = "7.1.17";
17442
17446
 
17443
17447
  export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityTypeTrigger, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking, NavigatorChatClient, NavigatorMcpWebSocketClient, ChangeSet };
17444
17448
  //# sourceMappingURL=bruce-models.es5.js.map