bruce-models 7.1.94 → 7.1.96
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 +28 -12
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +28 -12
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/calculator/calculator.js +9 -8
- package/dist/lib/calculator/calculator.js.map +1 -1
- package/dist/lib/data-lab/data-lab.js.map +1 -1
- package/dist/lib/entity/entity-type-trigger.js +18 -0
- package/dist/lib/entity/entity-type-trigger.js.map +1 -1
- package/dist/lib/mcp/navigator-mcp-websocket.js +0 -3
- package/dist/lib/mcp/navigator-mcp-websocket.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/data-lab/data-lab.d.ts +9 -9
- package/dist/types/entity/entity-type-trigger.d.ts +68 -0
- package/dist/types/mcp/navigator-mcp-websocket.d.ts +0 -4
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -8063,8 +8063,9 @@ var Calculator;
|
|
|
8063
8063
|
return { result: null, attrPath: null, eValue: null };
|
|
8064
8064
|
}
|
|
8065
8065
|
function _getGradientTrace(value, entity, defaultToMin) {
|
|
8066
|
-
const
|
|
8067
|
-
const
|
|
8066
|
+
const points = value.points.slice().sort((a, b) => +a.position - +b.position);
|
|
8067
|
+
const min = +points[0].position;
|
|
8068
|
+
const max = +points[points.length - 1].position;
|
|
8068
8069
|
const attrPaths = parseLegacyPath(value.field);
|
|
8069
8070
|
for (let i = 0; i < attrPaths.length; i++) {
|
|
8070
8071
|
const attrPath = attrPaths[i];
|
|
@@ -8079,14 +8080,14 @@ var Calculator;
|
|
|
8079
8080
|
continue;
|
|
8080
8081
|
}
|
|
8081
8082
|
if (eValue >= max) {
|
|
8082
|
-
return { result: Color.ColorFromStr(
|
|
8083
|
+
return { result: Color.ColorFromStr(points[points.length - 1].color), attrPath, eValue };
|
|
8083
8084
|
}
|
|
8084
8085
|
else if (eValue <= min) {
|
|
8085
|
-
return { result: Color.ColorFromStr(
|
|
8086
|
+
return { result: Color.ColorFromStr(points[0].color), attrPath, eValue };
|
|
8086
8087
|
}
|
|
8087
|
-
for (let j = 0; j <
|
|
8088
|
-
const pointA =
|
|
8089
|
-
const pointB =
|
|
8088
|
+
for (let j = 0; j < points.length - 1; j++) {
|
|
8089
|
+
const pointA = points[j];
|
|
8090
|
+
const pointB = points[j + 1];
|
|
8090
8091
|
if (eValue >= pointA.position && eValue <= pointB.position) {
|
|
8091
8092
|
if (pointA.position == pointB.position) {
|
|
8092
8093
|
return { result: Color.ColorFromStr(pointA.color), attrPath, eValue };
|
|
@@ -8108,7 +8109,7 @@ var Calculator;
|
|
|
8108
8109
|
}
|
|
8109
8110
|
}
|
|
8110
8111
|
// Fallback to min (static, no data path resolved).
|
|
8111
|
-
return { result: Color.ColorFromStr(
|
|
8112
|
+
return { result: Color.ColorFromStr(points[0].color), attrPath: null, eValue: null };
|
|
8112
8113
|
}
|
|
8113
8114
|
/**
|
|
8114
8115
|
* Like Calculate, but also returns an 'effective' key describing how the value
|
|
@@ -16859,6 +16860,24 @@ var EntityTypeRelation;
|
|
|
16859
16860
|
*/
|
|
16860
16861
|
var EntityTypeTrigger;
|
|
16861
16862
|
(function (EntityTypeTrigger) {
|
|
16863
|
+
let EType;
|
|
16864
|
+
(function (EType) {
|
|
16865
|
+
EType["DataLabQuery"] = "DataLabQuery";
|
|
16866
|
+
EType["WorkflowTicket"] = "WorkflowTicket";
|
|
16867
|
+
})(EType = EntityTypeTrigger.EType || (EntityTypeTrigger.EType = {}));
|
|
16868
|
+
function BuildWorkflowTicketSettings(params) {
|
|
16869
|
+
var _a;
|
|
16870
|
+
const settings = Object.assign(Object.assign({}, ((_a = params.extraSettings) !== null && _a !== void 0 ? _a : {})), { Condition: params.condition, WorkflowTicket: {
|
|
16871
|
+
"Workflow.ItemType.ID": params.workflowItemTypeId,
|
|
16872
|
+
"Workflow.Queue.ID": params.queueId,
|
|
16873
|
+
"Workflow.ItemStatus.ID": params.statusId
|
|
16874
|
+
} });
|
|
16875
|
+
if (params.description != null && params.description !== "") {
|
|
16876
|
+
settings.WorkflowTicket.Description = params.description;
|
|
16877
|
+
}
|
|
16878
|
+
return settings;
|
|
16879
|
+
}
|
|
16880
|
+
EntityTypeTrigger.BuildWorkflowTicketSettings = BuildWorkflowTicketSettings;
|
|
16862
16881
|
/**
|
|
16863
16882
|
* Gets a single Entity Type Trigger record.
|
|
16864
16883
|
* @param params
|
|
@@ -18746,9 +18765,6 @@ class NavigatorMcpWebSocketClient {
|
|
|
18746
18765
|
urlInstance.searchParams.set("fingerprint", this.currentAuth.fingerprint);
|
|
18747
18766
|
}
|
|
18748
18767
|
// Plugin IDs the active Project View has switched on.
|
|
18749
|
-
if (this.currentAuth.enabledPluginIds) {
|
|
18750
|
-
urlInstance.searchParams.set("enabledPluginIds", this.currentAuth.enabledPluginIds.join(","));
|
|
18751
|
-
}
|
|
18752
18768
|
// Add apiBaseUrl if provided (for anonymous access)
|
|
18753
18769
|
if (this.currentAuth.apiBaseUrl) {
|
|
18754
18770
|
urlInstance.searchParams.set("apiBaseUrl", this.currentAuth.apiBaseUrl);
|
|
@@ -23520,7 +23536,7 @@ var UrlUtils;
|
|
|
23520
23536
|
})(UrlUtils || (UrlUtils = {}));
|
|
23521
23537
|
|
|
23522
23538
|
// This is updated with the package.json version on build.
|
|
23523
|
-
const VERSION = "7.1.
|
|
23539
|
+
const VERSION = "7.1.96";
|
|
23524
23540
|
|
|
23525
23541
|
export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, ClientFileValueMap, 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, EntityTypeRelation, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportCsv, ExportNsx, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportTif, ImportedFile, Uploader, Markup, UIMarkup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, PluginAiTool, 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 };
|
|
23526
23542
|
//# sourceMappingURL=bruce-models.es5.js.map
|