bruce-models 7.1.89 → 7.1.90

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.
@@ -4337,14 +4337,18 @@ var Assembly;
4337
4337
  */
4338
4338
  function Delete(params) {
4339
4339
  return __awaiter(this, void 0, void 0, function* () {
4340
- let { api, assemblyId, req: reqParams } = params;
4340
+ let { api, assemblyId, deleteEmptyEntityTypes, req: reqParams } = params;
4341
4341
  if (!assemblyId) {
4342
4342
  throw ("Assembly ID is required.");
4343
4343
  }
4344
4344
  if (!api) {
4345
4345
  api = ENVIRONMENT.Api().GetBruceApi();
4346
4346
  }
4347
- const res = yield api.DELETE(`v3/assembly/${assemblyId}`, Api.PrepReqParams(reqParams));
4347
+ let url = `v3/assembly/${assemblyId}`;
4348
+ if (deleteEmptyEntityTypes) {
4349
+ url += "?DeleteEmptyEntityTypes=true";
4350
+ }
4351
+ const res = yield api.DELETE(url, Api.PrepReqParams(reqParams));
4348
4352
  api.Cache.RemoveByStartsWith(Api.ECacheKey.Assembly + Api.ECacheKey.Id + assemblyId);
4349
4353
  return {
4350
4354
  action: res
@@ -4358,7 +4362,7 @@ var Assembly;
4358
4362
  */
4359
4363
  function DeleteList(params) {
4360
4364
  return __awaiter(this, void 0, void 0, function* () {
4361
- let { api, req: reqParams, assemblyIds, lessThanSize, test } = params;
4365
+ let { api, req: reqParams, assemblyIds, lessThanSize, test, deleteEmptyEntityTypes } = params;
4362
4366
  if (!api) {
4363
4367
  api = ENVIRONMENT.Api().GetBruceApi();
4364
4368
  }
@@ -4367,6 +4371,9 @@ var Assembly;
4367
4371
  if (test) {
4368
4372
  urlParams.append("Test", "true");
4369
4373
  }
4374
+ if (deleteEmptyEntityTypes) {
4375
+ urlParams.append("DeleteEmptyEntityTypes", "true");
4376
+ }
4370
4377
  if (params.invalidRootIds) {
4371
4378
  urlParams.append("InvalidRootEntityID", "true");
4372
4379
  }
@@ -23261,7 +23268,7 @@ var UrlUtils;
23261
23268
  })(UrlUtils || (UrlUtils = {}));
23262
23269
 
23263
23270
  // This is updated with the package.json version on build.
23264
- const VERSION = "7.1.89";
23271
+ const VERSION = "7.1.90";
23265
23272
 
23266
23273
  export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, ClientFileValueMap, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, 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, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportCsv, ExportNsx, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, 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 };
23267
23274
  //# sourceMappingURL=bruce-models.es5.js.map