bruce-models 6.0.1 → 6.0.2

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.
@@ -9992,6 +9992,30 @@
9992
9992
  });
9993
9993
  }
9994
9994
  Tileset.Generate = Generate;
9995
+ /**
9996
+ * Requests to rebake metadata for a given Tileset.
9997
+ * Only supported for Assembly (MODEL) type at the moment.
9998
+ * Returns if changes were made.
9999
+ * This will throw an error if no metadata exists and therefor cannot be rebaked.
10000
+ * @param params
10001
+ * @returns
10002
+ */
10003
+ function BakeMetadata(params) {
10004
+ return __awaiter(this, void 0, void 0, function* () {
10005
+ let { api, tilesetId, req: reqParams } = params;
10006
+ if (!tilesetId) {
10007
+ throw ("Tileset ID is required.");
10008
+ }
10009
+ if (!api) {
10010
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
10011
+ }
10012
+ const data = yield api.POST(`v3/tileset/${tilesetId}/bakeMetadata`, exports.Api.PrepReqParams(reqParams));
10013
+ return {
10014
+ changed: Boolean(data === null || data === void 0 ? void 0 : data.Changed)
10015
+ };
10016
+ });
10017
+ }
10018
+ Tileset.BakeMetadata = BakeMetadata;
9995
10019
  /**
9996
10020
  * Utils for publishing the tileset to other Nextspace accounts.
9997
10021
  */
@@ -15391,7 +15415,7 @@
15391
15415
  })(exports.Scenario || (exports.Scenario = {}));
15392
15416
 
15393
15417
  // This is updated with the package.json version on build.
15394
- const VERSION = "6.0.1";
15418
+ const VERSION = "6.0.2";
15395
15419
 
15396
15420
  exports.VERSION = VERSION;
15397
15421
  exports.AbstractApi = AbstractApi;