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.
@@ -10176,24 +10176,27 @@ var Tileset;
10176
10176
  /**
10177
10177
  * Requests to rebake metadata for a given Tileset.
10178
10178
  * Only supported for Assembly (MODEL) type at the moment.
10179
- * Returns if changes were made.
10180
10179
  * This will throw an error if no metadata exists and therefor cannot be rebaked.
10181
10180
  * @param params
10182
10181
  * @returns
10183
10182
  */
10184
10183
  function BakeMetadata(params) {
10185
10184
  return __awaiter(this, void 0, void 0, function* () {
10186
- let { api, tilesetId, req: reqParams } = params;
10185
+ let { api, tilesetId, req: reqParams, entityIds, parentChildIds } = params;
10187
10186
  if (!tilesetId) {
10188
10187
  throw ("Tileset ID is required.");
10189
10188
  }
10190
10189
  if (!api) {
10191
10190
  api = ENVIRONMENT.Api().GetBruceApi();
10192
10191
  }
10193
- const data = yield api.POST(`v3/tileset/${tilesetId}/bakeMetadata`, Api.PrepReqParams(reqParams));
10194
- return {
10195
- changed: Boolean(data === null || data === void 0 ? void 0 : data.Changed)
10196
- };
10192
+ const body = {};
10193
+ if (entityIds === null || entityIds === void 0 ? void 0 : entityIds.length) {
10194
+ body["Entity.ID"] = entityIds;
10195
+ }
10196
+ if (parentChildIds === null || parentChildIds === void 0 ? void 0 : parentChildIds.length) {
10197
+ body["ParentChild.ID"] = parentChildIds;
10198
+ }
10199
+ return yield api.POST(`v3/tileset/${tilesetId}/bakeMetadata`, body, Api.PrepReqParams(reqParams));
10197
10200
  });
10198
10201
  }
10199
10202
  Tileset$$1.BakeMetadata = BakeMetadata;
@@ -15724,7 +15727,7 @@ var Scenario;
15724
15727
  })(Scenario || (Scenario = {}));
15725
15728
 
15726
15729
  // This is updated with the package.json version on build.
15727
- const VERSION = "6.0.2";
15730
+ const VERSION = "6.0.4";
15728
15731
 
15729
15732
  export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario };
15730
15733
  //# sourceMappingURL=bruce-models.es5.js.map