bruce-models 6.0.2 → 6.0.4

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.
@@ -9995,24 +9995,27 @@
9995
9995
  /**
9996
9996
  * Requests to rebake metadata for a given Tileset.
9997
9997
  * Only supported for Assembly (MODEL) type at the moment.
9998
- * Returns if changes were made.
9999
9998
  * This will throw an error if no metadata exists and therefor cannot be rebaked.
10000
9999
  * @param params
10001
10000
  * @returns
10002
10001
  */
10003
10002
  function BakeMetadata(params) {
10004
10003
  return __awaiter(this, void 0, void 0, function* () {
10005
- let { api, tilesetId, req: reqParams } = params;
10004
+ let { api, tilesetId, req: reqParams, entityIds, parentChildIds } = params;
10006
10005
  if (!tilesetId) {
10007
10006
  throw ("Tileset ID is required.");
10008
10007
  }
10009
10008
  if (!api) {
10010
10009
  api = exports.ENVIRONMENT.Api().GetBruceApi();
10011
10010
  }
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
- };
10011
+ const body = {};
10012
+ if (entityIds === null || entityIds === void 0 ? void 0 : entityIds.length) {
10013
+ body["Entity.ID"] = entityIds;
10014
+ }
10015
+ if (parentChildIds === null || parentChildIds === void 0 ? void 0 : parentChildIds.length) {
10016
+ body["ParentChild.ID"] = parentChildIds;
10017
+ }
10018
+ return yield api.POST(`v3/tileset/${tilesetId}/bakeMetadata`, body, exports.Api.PrepReqParams(reqParams));
10016
10019
  });
10017
10020
  }
10018
10021
  Tileset.BakeMetadata = BakeMetadata;
@@ -15415,7 +15418,7 @@
15415
15418
  })(exports.Scenario || (exports.Scenario = {}));
15416
15419
 
15417
15420
  // This is updated with the package.json version on build.
15418
- const VERSION = "6.0.2";
15421
+ const VERSION = "6.0.4";
15419
15422
 
15420
15423
  exports.VERSION = VERSION;
15421
15424
  exports.AbstractApi = AbstractApi;