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.
@@ -7738,6 +7738,26 @@
7738
7738
  });
7739
7739
  }
7740
7740
  Tileset.DeleteFile = DeleteFile;
7741
+ /**
7742
+ * Deletes all files from a tileset.
7743
+ * @param params
7744
+ */
7745
+ function DeleteAllFiles(params) {
7746
+ return __awaiter(this, void 0, void 0, function* () {
7747
+ let { api, tilesetId, req } = params;
7748
+ if (!tilesetId) {
7749
+ throw ("Tileset ID is required.");
7750
+ }
7751
+ if (!api) {
7752
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
7753
+ }
7754
+ req = exports.Api.PrepReqParams(req);
7755
+ yield api.DELETE(`ui.tileset/${tilesetId}/files`, req);
7756
+ const cacheKey = `${exports.Api.ECacheKey.Tileset}${exports.Api.ECacheKey.Id}${tilesetId}`;
7757
+ api.Cache.RemoveByStartsWith(cacheKey);
7758
+ });
7759
+ }
7760
+ Tileset.DeleteAllFiles = DeleteAllFiles;
7741
7761
  /**
7742
7762
  * Uploads a file to a tileset.
7743
7763
  * Src files are used to generate tilesets.
@@ -11271,7 +11291,7 @@
11271
11291
  })(exports.DataSource || (exports.DataSource = {}));
11272
11292
 
11273
11293
  // This is updated with the package.json version on build.
11274
- const VERSION = "3.9.7";
11294
+ const VERSION = "3.9.8";
11275
11295
 
11276
11296
  exports.VERSION = VERSION;
11277
11297
  exports.AbstractApi = AbstractApi;