bruce-models 6.0.1 → 6.0.3

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,26 @@
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
+ * This will throw an error if no metadata exists and therefor cannot be rebaked.
9999
+ * @param params
10000
+ * @returns
10001
+ */
10002
+ function BakeMetadata(params) {
10003
+ return __awaiter(this, void 0, void 0, function* () {
10004
+ let { api, tilesetId, req: reqParams } = params;
10005
+ if (!tilesetId) {
10006
+ throw ("Tileset ID is required.");
10007
+ }
10008
+ if (!api) {
10009
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
10010
+ }
10011
+ return yield api.POST(`v3/tileset/${tilesetId}/bakeMetadata`, exports.Api.PrepReqParams(reqParams));
10012
+ });
10013
+ }
10014
+ Tileset.BakeMetadata = BakeMetadata;
9995
10015
  /**
9996
10016
  * Utils for publishing the tileset to other Nextspace accounts.
9997
10017
  */
@@ -15391,7 +15411,7 @@
15391
15411
  })(exports.Scenario || (exports.Scenario = {}));
15392
15412
 
15393
15413
  // This is updated with the package.json version on build.
15394
- const VERSION = "6.0.1";
15414
+ const VERSION = "6.0.3";
15395
15415
 
15396
15416
  exports.VERSION = VERSION;
15397
15417
  exports.AbstractApi = AbstractApi;