bruce-models 6.0.0 → 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.
- package/dist/bruce-models.es5.js +33 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +33 -2
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +8 -1
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/tileset/tileset.js +24 -0
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/tileset/tileset.d.ts +15 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -4075,6 +4075,9 @@ var Entity;
|
|
|
4075
4075
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
4076
4076
|
}
|
|
4077
4077
|
let requestFilter = {};
|
|
4078
|
+
if (!filter) {
|
|
4079
|
+
filter = {};
|
|
4080
|
+
}
|
|
4078
4081
|
if (filter.entityTypeConditions) {
|
|
4079
4082
|
requestFilter = Object.assign({}, filter.entityTypeConditions);
|
|
4080
4083
|
}
|
|
@@ -4245,6 +4248,10 @@ var Entity;
|
|
|
4245
4248
|
if (!analysis) {
|
|
4246
4249
|
entities = data.Items;
|
|
4247
4250
|
// Only caching when non-CDN.
|
|
4251
|
+
let typeIdCacheKey = null;
|
|
4252
|
+
if (filter.entityTypeId) {
|
|
4253
|
+
typeIdCacheKey = typeof filter.entityTypeId == "string" ? filter.entityTypeId : filter.entityTypeId.join(",");
|
|
4254
|
+
}
|
|
4248
4255
|
for (let i = 0; i < entities.length; i++) {
|
|
4249
4256
|
const entity = entities[i];
|
|
4250
4257
|
const id = entity.Bruce.ID;
|
|
@@ -4255,7 +4262,7 @@ var Entity;
|
|
|
4255
4262
|
expandLocation,
|
|
4256
4263
|
expandImports,
|
|
4257
4264
|
expandSources,
|
|
4258
|
-
entityTypeId:
|
|
4265
|
+
entityTypeId: typeIdCacheKey,
|
|
4259
4266
|
historicFrom: historicFrom,
|
|
4260
4267
|
historicKey: historicKey,
|
|
4261
4268
|
historicTo: historicTo,
|
|
@@ -10166,6 +10173,30 @@ var Tileset;
|
|
|
10166
10173
|
});
|
|
10167
10174
|
}
|
|
10168
10175
|
Tileset$$1.Generate = Generate;
|
|
10176
|
+
/**
|
|
10177
|
+
* Requests to rebake metadata for a given Tileset.
|
|
10178
|
+
* Only supported for Assembly (MODEL) type at the moment.
|
|
10179
|
+
* Returns if changes were made.
|
|
10180
|
+
* This will throw an error if no metadata exists and therefor cannot be rebaked.
|
|
10181
|
+
* @param params
|
|
10182
|
+
* @returns
|
|
10183
|
+
*/
|
|
10184
|
+
function BakeMetadata(params) {
|
|
10185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10186
|
+
let { api, tilesetId, req: reqParams } = params;
|
|
10187
|
+
if (!tilesetId) {
|
|
10188
|
+
throw ("Tileset ID is required.");
|
|
10189
|
+
}
|
|
10190
|
+
if (!api) {
|
|
10191
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
10192
|
+
}
|
|
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
|
+
};
|
|
10197
|
+
});
|
|
10198
|
+
}
|
|
10199
|
+
Tileset$$1.BakeMetadata = BakeMetadata;
|
|
10169
10200
|
/**
|
|
10170
10201
|
* Utils for publishing the tileset to other Nextspace accounts.
|
|
10171
10202
|
*/
|
|
@@ -15693,7 +15724,7 @@ var Scenario;
|
|
|
15693
15724
|
})(Scenario || (Scenario = {}));
|
|
15694
15725
|
|
|
15695
15726
|
// This is updated with the package.json version on build.
|
|
15696
|
-
const VERSION = "6.0.
|
|
15727
|
+
const VERSION = "6.0.2";
|
|
15697
15728
|
|
|
15698
15729
|
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 };
|
|
15699
15730
|
//# sourceMappingURL=bruce-models.es5.js.map
|