bruce-models 6.0.3 → 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.
@@ -10001,14 +10001,21 @@
10001
10001
  */
10002
10002
  function BakeMetadata(params) {
10003
10003
  return __awaiter(this, void 0, void 0, function* () {
10004
- let { api, tilesetId, req: reqParams } = params;
10004
+ let { api, tilesetId, req: reqParams, entityIds, parentChildIds } = params;
10005
10005
  if (!tilesetId) {
10006
10006
  throw ("Tileset ID is required.");
10007
10007
  }
10008
10008
  if (!api) {
10009
10009
  api = exports.ENVIRONMENT.Api().GetBruceApi();
10010
10010
  }
10011
- return yield api.POST(`v3/tileset/${tilesetId}/bakeMetadata`, exports.Api.PrepReqParams(reqParams));
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));
10012
10019
  });
10013
10020
  }
10014
10021
  Tileset.BakeMetadata = BakeMetadata;
@@ -15411,7 +15418,7 @@
15411
15418
  })(exports.Scenario || (exports.Scenario = {}));
15412
15419
 
15413
15420
  // This is updated with the package.json version on build.
15414
- const VERSION = "6.0.3";
15421
+ const VERSION = "6.0.4";
15415
15422
 
15416
15423
  exports.VERSION = VERSION;
15417
15424
  exports.AbstractApi = AbstractApi;