bruce-models 7.1.75 → 7.1.77
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 +79 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +74 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +2 -1
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/entity/entity.js +1 -0
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/geography/hexbin.js +90 -0
- package/dist/lib/geography/hexbin.js.map +1 -0
- package/dist/types/bruce-models.d.ts +2 -1
- package/dist/types/entity/entity.d.ts +10 -1
- package/dist/types/geography/hexbin.d.ts +79 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -6475,6 +6475,7 @@ var Entity;
|
|
|
6475
6475
|
(function (EOutlineKind) {
|
|
6476
6476
|
EOutlineKind["Entity"] = "ENTITY";
|
|
6477
6477
|
EOutlineKind["Attribute"] = "ATTRIBUTE";
|
|
6478
|
+
EOutlineKind["Reference"] = "REFERENCE";
|
|
6478
6479
|
})(EOutlineKind = Entity.EOutlineKind || (Entity.EOutlineKind = {}));
|
|
6479
6480
|
/**
|
|
6480
6481
|
* Returns an entity record for the given entity id.
|
|
@@ -14790,6 +14791,82 @@ var ExportUsd;
|
|
|
14790
14791
|
ExportUsd.Export = Export;
|
|
14791
14792
|
})(ExportUsd || (ExportUsd = {}));
|
|
14792
14793
|
|
|
14794
|
+
/**
|
|
14795
|
+
* Describes the Bruce API Hexbin geography helpers.
|
|
14796
|
+
*/
|
|
14797
|
+
var Hexbin;
|
|
14798
|
+
(function (Hexbin) {
|
|
14799
|
+
const RESOLUTIONS_CACHE_KEY = "hexbin:resolutions";
|
|
14800
|
+
function GetResolutionsCacheKey() {
|
|
14801
|
+
return RESOLUTIONS_CACHE_KEY;
|
|
14802
|
+
}
|
|
14803
|
+
Hexbin.GetResolutionsCacheKey = GetResolutionsCacheKey;
|
|
14804
|
+
function GetResolutions(params) {
|
|
14805
|
+
var _a, _b;
|
|
14806
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14807
|
+
if (!params) {
|
|
14808
|
+
params = {};
|
|
14809
|
+
}
|
|
14810
|
+
let { api, req: reqParams } = params;
|
|
14811
|
+
if (!api) {
|
|
14812
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
14813
|
+
}
|
|
14814
|
+
const cache = (_a = api.GetCacheItem) === null || _a === void 0 ? void 0 : _a.call(api, GetResolutionsCacheKey(), reqParams);
|
|
14815
|
+
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
14816
|
+
return cache.data;
|
|
14817
|
+
}
|
|
14818
|
+
const prom = api.GET("geography/hexbin/resolutions", Api.PrepReqParams(reqParams));
|
|
14819
|
+
(_b = api.SetCacheItem) === null || _b === void 0 ? void 0 : _b.call(api, {
|
|
14820
|
+
key: GetResolutionsCacheKey(),
|
|
14821
|
+
value: prom,
|
|
14822
|
+
req: reqParams
|
|
14823
|
+
});
|
|
14824
|
+
return prom;
|
|
14825
|
+
});
|
|
14826
|
+
}
|
|
14827
|
+
Hexbin.GetResolutions = GetResolutions;
|
|
14828
|
+
function GenerateEntities(params) {
|
|
14829
|
+
var _a, _b, _c, _d;
|
|
14830
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14831
|
+
let { api, targetEntityTypeId, resolution, geometry, wkt, entityId, objectBase, body, req: reqParams } = params;
|
|
14832
|
+
if (!api) {
|
|
14833
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
14834
|
+
}
|
|
14835
|
+
const payload = Object.assign({}, (body !== null && body !== void 0 ? body : {}));
|
|
14836
|
+
const resolvedTargetEntityTypeId = (_b = (_a = targetEntityTypeId !== null && targetEntityTypeId !== void 0 ? targetEntityTypeId : payload.TargetEntityTypeID) !== null && _a !== void 0 ? _a : payload.EntityTypeId) !== null && _b !== void 0 ? _b : payload.Type;
|
|
14837
|
+
if (!resolvedTargetEntityTypeId) {
|
|
14838
|
+
throw new Error("Target Entity Type ID is required. Set targetEntityTypeId, body.TargetEntityTypeID, body.EntityTypeId, or body.Type.");
|
|
14839
|
+
}
|
|
14840
|
+
const resolvedResolution = resolution !== null && resolution !== void 0 ? resolution : payload.Resolution;
|
|
14841
|
+
if (resolvedResolution == null) {
|
|
14842
|
+
throw new Error("Resolution is required.");
|
|
14843
|
+
}
|
|
14844
|
+
const resolvedEntityId = (_c = entityId !== null && entityId !== void 0 ? entityId : payload.EntityID) !== null && _c !== void 0 ? _c : (_d = payload.Entity) === null || _d === void 0 ? void 0 : _d.ID;
|
|
14845
|
+
const resolvedGeometry = geometry !== null && geometry !== void 0 ? geometry : payload.Geometry;
|
|
14846
|
+
const resolvedWkt = wkt !== null && wkt !== void 0 ? wkt : payload.WKT;
|
|
14847
|
+
if (resolvedGeometry == null && resolvedWkt == null && !resolvedEntityId) {
|
|
14848
|
+
throw new Error("Specify one of geometry, wkt, entityId, body.Geometry, body.WKT, or body.EntityID.");
|
|
14849
|
+
}
|
|
14850
|
+
payload.TargetEntityTypeID = resolvedTargetEntityTypeId;
|
|
14851
|
+
payload.Resolution = resolvedResolution;
|
|
14852
|
+
if (resolvedGeometry != null) {
|
|
14853
|
+
payload.Geometry = resolvedGeometry;
|
|
14854
|
+
}
|
|
14855
|
+
if (resolvedWkt != null) {
|
|
14856
|
+
payload.WKT = resolvedWkt;
|
|
14857
|
+
}
|
|
14858
|
+
if (resolvedEntityId) {
|
|
14859
|
+
payload.EntityID = resolvedEntityId;
|
|
14860
|
+
}
|
|
14861
|
+
if (objectBase != null) {
|
|
14862
|
+
payload.ObjectBase = objectBase;
|
|
14863
|
+
}
|
|
14864
|
+
return yield api.POST("geography/hexbin/entities", payload, Api.PrepReqParams(reqParams));
|
|
14865
|
+
});
|
|
14866
|
+
}
|
|
14867
|
+
Hexbin.GenerateEntities = GenerateEntities;
|
|
14868
|
+
})(Hexbin || (Hexbin = {}));
|
|
14869
|
+
|
|
14793
14870
|
var ImportAssembly;
|
|
14794
14871
|
(function (ImportAssembly) {
|
|
14795
14872
|
function Analyze(params) {
|
|
@@ -20362,7 +20439,7 @@ var UrlUtils;
|
|
|
20362
20439
|
})(UrlUtils || (UrlUtils = {}));
|
|
20363
20440
|
|
|
20364
20441
|
// This is updated with the package.json version on build.
|
|
20365
|
-
const VERSION = "7.1.
|
|
20442
|
+
const VERSION = "7.1.77";
|
|
20366
20443
|
|
|
20367
|
-
export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, GeoJson, Geometry, LRUCache, UTC, CustomForm, DashboardView, DataFeed, DataLab, DataLabGroup, DataSource, DataTransform, Comment, Entity, EntityAttachment, EntityAttachmentType, EntityAttribute, EntityComment, EntityCoords, EntityHistoricData, EntityLink, EntityLod, EntityLodCategory, EntityRelation, EntityRelationType, EntitySource, EntityTableView, EntityTag, EntityType, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportUsd, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, UIMarkup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, ProgramKey, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewBookmarkGroup, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewLegacyTile, ProjectViewTile, ZoomControl, Scenario, HostingLocation, MessageBroker, PendingAction, RecordChangeFeed, Style, Tileset, Tracking, Permission, Session, User, UserGroup, UserMfaMethod, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils };
|
|
20444
|
+
export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, GeoJson, Geometry, LRUCache, UTC, CustomForm, DashboardView, DataFeed, DataLab, DataLabGroup, DataSource, DataTransform, Comment, Entity, EntityAttachment, EntityAttachmentType, EntityAttribute, EntityComment, EntityCoords, EntityHistoricData, EntityLink, EntityLod, EntityLodCategory, EntityRelation, EntityRelationType, EntitySource, EntityTableView, EntityTag, EntityType, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, UIMarkup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, ProgramKey, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewBookmarkGroup, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewLegacyTile, ProjectViewTile, ZoomControl, Scenario, HostingLocation, MessageBroker, PendingAction, RecordChangeFeed, Style, Tileset, Tracking, Permission, Session, User, UserGroup, UserMfaMethod, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils };
|
|
20368
20445
|
//# sourceMappingURL=bruce-models.es5.js.map
|