bruce-models 3.9.7 → 3.9.8

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.
@@ -7901,6 +7901,26 @@ var Tileset;
7901
7901
  });
7902
7902
  }
7903
7903
  Tileset.DeleteFile = DeleteFile;
7904
+ /**
7905
+ * Deletes all files from a tileset.
7906
+ * @param params
7907
+ */
7908
+ function DeleteAllFiles(params) {
7909
+ return __awaiter(this, void 0, void 0, function* () {
7910
+ let { api, tilesetId, req } = params;
7911
+ if (!tilesetId) {
7912
+ throw ("Tileset ID is required.");
7913
+ }
7914
+ if (!api) {
7915
+ api = ENVIRONMENT.Api().GetBruceApi();
7916
+ }
7917
+ req = Api.PrepReqParams(req);
7918
+ yield api.DELETE(`ui.tileset/${tilesetId}/files`, req);
7919
+ const cacheKey = `${Api.ECacheKey.Tileset}${Api.ECacheKey.Id}${tilesetId}`;
7920
+ api.Cache.RemoveByStartsWith(cacheKey);
7921
+ });
7922
+ }
7923
+ Tileset.DeleteAllFiles = DeleteAllFiles;
7904
7924
  /**
7905
7925
  * Uploads a file to a tileset.
7906
7926
  * Src files are used to generate tilesets.
@@ -11530,7 +11550,7 @@ var DataSource;
11530
11550
  })(DataSource || (DataSource = {}));
11531
11551
 
11532
11552
  // This is updated with the package.json version on build.
11533
- const VERSION = "3.9.7";
11553
+ const VERSION = "3.9.8";
11534
11554
 
11535
11555
  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, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
11536
11556
  //# sourceMappingURL=bruce-models.es5.js.map