bruce-models 7.1.17 → 7.1.18

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.
@@ -8425,7 +8425,10 @@ var EntityTypeTrigger;
8425
8425
  */
8426
8426
  function Get(params) {
8427
8427
  return __awaiter(this, void 0, void 0, function* () {
8428
- let { api, entityTypeTriggerId, req: reqParams } = params;
8428
+ let { api, entityTypeId, entityTypeTriggerId, req: reqParams } = params;
8429
+ if (!entityTypeId) {
8430
+ throw ("Entity Type ID is required.");
8431
+ }
8429
8432
  if (entityTypeTriggerId == null || entityTypeTriggerId === "") {
8430
8433
  throw ("Entity Type Trigger ID is required.");
8431
8434
  }
@@ -8439,7 +8442,7 @@ var EntityTypeTrigger;
8439
8442
  }
8440
8443
  const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
8441
8444
  try {
8442
- const data = yield api.GET(`entityTypeTrigger/${entityTypeTriggerId}`, Api.PrepReqParams(reqParams));
8445
+ const data = yield api.GET(`entityType/${entityTypeId}/trigger/${entityTypeTriggerId}`, Api.PrepReqParams(reqParams));
8443
8446
  res({
8444
8447
  trigger: ParseResponse(data)
8445
8448
  });
@@ -8463,14 +8466,17 @@ var EntityTypeTrigger;
8463
8466
  */
8464
8467
  function Delete(params) {
8465
8468
  return __awaiter(this, void 0, void 0, function* () {
8466
- let { api, entityTypeTriggerId, req: reqParams } = params;
8469
+ let { api, entityTypeId, entityTypeTriggerId, req: reqParams } = params;
8470
+ if (!entityTypeId) {
8471
+ throw ("Entity Type ID is required.");
8472
+ }
8467
8473
  if (entityTypeTriggerId == null || entityTypeTriggerId === "") {
8468
8474
  throw ("Entity Type Trigger ID is required.");
8469
8475
  }
8470
8476
  if (!api) {
8471
8477
  api = ENVIRONMENT.Api().GetBruceApi();
8472
8478
  }
8473
- yield api.DELETE(`entityTypeTrigger/${entityTypeTriggerId}`, Api.PrepReqParams(reqParams));
8479
+ yield api.DELETE(`entityType/${entityTypeId}/trigger/${entityTypeTriggerId}`, Api.PrepReqParams(reqParams));
8474
8480
  api.Cache.Remove(GetCacheKey(entityTypeTriggerId));
8475
8481
  api.Cache.RemoveByStartsWith(GetListCacheKey());
8476
8482
  });
@@ -8483,6 +8489,9 @@ var EntityTypeTrigger;
8483
8489
  function GetList(params) {
8484
8490
  return __awaiter(this, void 0, void 0, function* () {
8485
8491
  let { api, entityTypeId, req: reqParams } = params;
8492
+ if (!entityTypeId) {
8493
+ throw ("Entity Type ID is required.");
8494
+ }
8486
8495
  if (!api) {
8487
8496
  api = ENVIRONMENT.Api().GetBruceApi();
8488
8497
  }
@@ -8493,7 +8502,7 @@ var EntityTypeTrigger;
8493
8502
  }
8494
8503
  const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
8495
8504
  try {
8496
- const data = yield api.GET(entityTypeId ? `entityType/${entityTypeId}/triggers` : "entityTypeTriggers", Api.PrepReqParams(reqParams));
8505
+ const data = yield api.GET(`entityType/${entityTypeId}/triggers`, Api.PrepReqParams(reqParams));
8497
8506
  res({
8498
8507
  triggers: ParseListResponse(data)
8499
8508
  });
@@ -17442,7 +17451,7 @@ var ChangeSet;
17442
17451
  })(ChangeSet || (ChangeSet = {}));
17443
17452
 
17444
17453
  // This is updated with the package.json version on build.
17445
- const VERSION = "7.1.17";
17454
+ const VERSION = "7.1.18";
17446
17455
 
17447
17456
  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 };
17448
17457
  //# sourceMappingURL=bruce-models.es5.js.map