bruce-models 6.0.1 → 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 +25 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +25 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +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
|
@@ -10173,6 +10173,30 @@ var Tileset;
|
|
|
10173
10173
|
});
|
|
10174
10174
|
}
|
|
10175
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;
|
|
10176
10200
|
/**
|
|
10177
10201
|
* Utils for publishing the tileset to other Nextspace accounts.
|
|
10178
10202
|
*/
|
|
@@ -15700,7 +15724,7 @@ var Scenario;
|
|
|
15700
15724
|
})(Scenario || (Scenario = {}));
|
|
15701
15725
|
|
|
15702
15726
|
// This is updated with the package.json version on build.
|
|
15703
|
-
const VERSION = "6.0.
|
|
15727
|
+
const VERSION = "6.0.2";
|
|
15704
15728
|
|
|
15705
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 };
|
|
15706
15730
|
//# sourceMappingURL=bruce-models.es5.js.map
|