bruce-models 7.1.30 → 7.1.32
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 +59 -104
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +60 -103
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/change-set/change-set.js +48 -102
- package/dist/lib/change-set/change-set.js.map +1 -1
- package/dist/lib/mcp/navigator-chat.js +3 -1
- package/dist/lib/mcp/navigator-chat.js.map +1 -1
- package/dist/lib/mcp/navigator-mcp-websocket.js +7 -0
- package/dist/lib/mcp/navigator-mcp-websocket.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/change-set/change-set.d.ts +54 -94
- package/dist/types/mcp/navigator-chat.d.ts +28 -0
- package/dist/types/mcp/navigator-mcp-websocket.d.ts +2 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -17439,6 +17439,8 @@ var Tracking;
|
|
|
17439
17439
|
|
|
17440
17440
|
const DEFAULT_JOB_POLL_INTERVAL_MS = 1000;
|
|
17441
17441
|
const DEFAULT_JOB_POLL_TIMEOUT_MS = 10 * 60 * 1000; // match server timeout (10 minutes)
|
|
17442
|
+
const NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED = "entity_highlight_applied";
|
|
17443
|
+
const NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED = "scene_context_prefetched";
|
|
17442
17444
|
const DEFAULT_BASE_URL = "http://localhost:8888";
|
|
17443
17445
|
/**
|
|
17444
17446
|
* Lightweight client for the Navigator MCP chat HTTP endpoints.
|
|
@@ -17735,6 +17737,13 @@ class NavigatorMcpWebSocketClient {
|
|
|
17735
17737
|
setAuth(auth) {
|
|
17736
17738
|
this.currentAuth = auth;
|
|
17737
17739
|
}
|
|
17740
|
+
sendChatEvent(event) {
|
|
17741
|
+
this.send({
|
|
17742
|
+
jsonrpc: "2.0",
|
|
17743
|
+
method: "chat/event",
|
|
17744
|
+
params: event
|
|
17745
|
+
});
|
|
17746
|
+
}
|
|
17738
17747
|
logger() {
|
|
17739
17748
|
var _a;
|
|
17740
17749
|
return (_a = this.options.logger) !== null && _a !== void 0 ? _a : console;
|
|
@@ -17833,7 +17842,7 @@ var ChangeSet;
|
|
|
17833
17842
|
EStatus["ERROR"] = "Error";
|
|
17834
17843
|
})(EStatus = ChangeSet.EStatus || (ChangeSet.EStatus = {}));
|
|
17835
17844
|
/**
|
|
17836
|
-
* Single-character action values stored on
|
|
17845
|
+
* Single-character action values stored on Change Item records.
|
|
17837
17846
|
*/
|
|
17838
17847
|
let EAction;
|
|
17839
17848
|
(function (EAction) {
|
|
@@ -17841,6 +17850,16 @@ var ChangeSet;
|
|
|
17841
17850
|
EAction["UPDATE"] = "U";
|
|
17842
17851
|
EAction["DELETE"] = "D";
|
|
17843
17852
|
})(EAction = ChangeSet.EAction || (ChangeSet.EAction = {}));
|
|
17853
|
+
/**
|
|
17854
|
+
* Concept codes that identify what kind of record a Change Item targets.
|
|
17855
|
+
*/
|
|
17856
|
+
let EConcept;
|
|
17857
|
+
(function (EConcept) {
|
|
17858
|
+
EConcept["ENTITY"] = "E";
|
|
17859
|
+
EConcept["ENTITY_TYPE"] = "ET";
|
|
17860
|
+
EConcept["ENTITY_LOD"] = "EL";
|
|
17861
|
+
EConcept["ENTITY_RELATION"] = "ER";
|
|
17862
|
+
})(EConcept = ChangeSet.EConcept || (ChangeSet.EConcept = {}));
|
|
17844
17863
|
/**
|
|
17845
17864
|
* Updates existing or creates new Change Set record.
|
|
17846
17865
|
* To create a new record pass a changeSet without an ID (or with ID set to 0/null).
|
|
@@ -17853,12 +17872,12 @@ var ChangeSet;
|
|
|
17853
17872
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17854
17873
|
}
|
|
17855
17874
|
const id = (_a = data.ID) !== null && _a !== void 0 ? _a : 0;
|
|
17856
|
-
return api.POST(`change/${id}`, data, Api.PrepReqParams(reqParams));
|
|
17875
|
+
return api.POST(`v3/change/${id}`, data, Api.PrepReqParams(reqParams));
|
|
17857
17876
|
});
|
|
17858
17877
|
}
|
|
17859
17878
|
ChangeSet.Update = Update;
|
|
17860
17879
|
/**
|
|
17861
|
-
* Deletes the specified Change Set record.
|
|
17880
|
+
* Deletes the specified Change Set record and all its associated Change Items.
|
|
17862
17881
|
*/
|
|
17863
17882
|
function Delete(params) {
|
|
17864
17883
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -17866,7 +17885,7 @@ var ChangeSet;
|
|
|
17866
17885
|
if (!api) {
|
|
17867
17886
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17868
17887
|
}
|
|
17869
|
-
yield api.DELETE(`change/${id}`, Api.PrepReqParams(reqParams));
|
|
17888
|
+
yield api.DELETE(`v3/change/${id}`, Api.PrepReqParams(reqParams));
|
|
17870
17889
|
});
|
|
17871
17890
|
}
|
|
17872
17891
|
ChangeSet.Delete = Delete;
|
|
@@ -17880,7 +17899,7 @@ var ChangeSet;
|
|
|
17880
17899
|
if (!api) {
|
|
17881
17900
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17882
17901
|
}
|
|
17883
|
-
return yield api.GET(`change/${id}`, Api.PrepReqParams(reqParams));
|
|
17902
|
+
return yield api.GET(`v3/change/${id}`, Api.PrepReqParams(reqParams));
|
|
17884
17903
|
});
|
|
17885
17904
|
}
|
|
17886
17905
|
ChangeSet.Get = Get;
|
|
@@ -17902,47 +17921,10 @@ var ChangeSet;
|
|
|
17902
17921
|
urlParams.append("PageIndex", String(pageIndex));
|
|
17903
17922
|
}
|
|
17904
17923
|
const query = urlParams.toString();
|
|
17905
|
-
return api.GET(query ? `changes?${query}` : "changes", Api.PrepReqParams(reqParams));
|
|
17924
|
+
return api.GET(query ? `v3/changes?${query}` : "v3/changes", Api.PrepReqParams(reqParams));
|
|
17906
17925
|
});
|
|
17907
17926
|
}
|
|
17908
17927
|
ChangeSet.GetList = GetList;
|
|
17909
|
-
/**
|
|
17910
|
-
* Gets the content of the specified Change Set including Entity Type and Entity change records.
|
|
17911
|
-
* Supports pagination, mapping mode, and filtering by entity action and Entity IDs.
|
|
17912
|
-
*/
|
|
17913
|
-
function GetContent(params) {
|
|
17914
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
17915
|
-
let { id, api, req: reqParams, pageSize, pageIndex, select, entityStatus, entityId } = params;
|
|
17916
|
-
if (!api) {
|
|
17917
|
-
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17918
|
-
}
|
|
17919
|
-
const urlParams = new URLSearchParams();
|
|
17920
|
-
if (pageSize != null) {
|
|
17921
|
-
urlParams.append("PageSize", String(pageSize));
|
|
17922
|
-
}
|
|
17923
|
-
if (pageIndex != null) {
|
|
17924
|
-
urlParams.append("PageIndex", String(pageIndex));
|
|
17925
|
-
}
|
|
17926
|
-
if (select != null) {
|
|
17927
|
-
urlParams.append("Select", select);
|
|
17928
|
-
}
|
|
17929
|
-
if (entityStatus != null) {
|
|
17930
|
-
const statuses = Array.isArray(entityStatus) ? entityStatus : [entityStatus];
|
|
17931
|
-
for (const s of statuses) {
|
|
17932
|
-
urlParams.append("EntityStatus", s);
|
|
17933
|
-
}
|
|
17934
|
-
}
|
|
17935
|
-
if (entityId != null) {
|
|
17936
|
-
const ids = Array.isArray(entityId) ? entityId : [entityId];
|
|
17937
|
-
for (const eid of ids) {
|
|
17938
|
-
urlParams.append("EntityID", eid);
|
|
17939
|
-
}
|
|
17940
|
-
}
|
|
17941
|
-
const query = urlParams.toString();
|
|
17942
|
-
return api.GET(query ? `change/${id}/content?${query}` : `change/${id}/content`, Api.PrepReqParams(reqParams));
|
|
17943
|
-
});
|
|
17944
|
-
}
|
|
17945
|
-
ChangeSet.GetContent = GetContent;
|
|
17946
17928
|
/**
|
|
17947
17929
|
* Starts job to commit changes proposed in the change set.
|
|
17948
17930
|
* Returns the PA ID to monitor.
|
|
@@ -17953,30 +17935,32 @@ var ChangeSet;
|
|
|
17953
17935
|
if (!api) {
|
|
17954
17936
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17955
17937
|
}
|
|
17956
|
-
return api.POST(`change/${id}/commit`, null, Api.PrepReqParams(reqParams));
|
|
17938
|
+
return api.POST(`v3/change/${id}/commit`, null, Api.PrepReqParams(reqParams));
|
|
17957
17939
|
});
|
|
17958
17940
|
}
|
|
17959
17941
|
ChangeSet.Commit = Commit;
|
|
17960
17942
|
/**
|
|
17961
|
-
*
|
|
17943
|
+
* Rejects (cancels) the specified Change Set by setting its Status to Cancelled.
|
|
17962
17944
|
*/
|
|
17963
|
-
function
|
|
17945
|
+
function Reject(params) {
|
|
17964
17946
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17965
17947
|
let { id, api, req: reqParams } = params;
|
|
17966
17948
|
if (!api) {
|
|
17967
17949
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17968
17950
|
}
|
|
17969
|
-
return api.
|
|
17951
|
+
return api.POST(`v3/change/${id}/reject`, null, Api.PrepReqParams(reqParams));
|
|
17970
17952
|
});
|
|
17971
17953
|
}
|
|
17972
|
-
ChangeSet.
|
|
17954
|
+
ChangeSet.Reject = Reject;
|
|
17973
17955
|
/**
|
|
17974
|
-
* Gets the list of
|
|
17975
|
-
*
|
|
17956
|
+
* Gets the paged list of Change Items for the specified Change Set.
|
|
17957
|
+
* Optionally filter by Concept (E, ET, EL, ER) and/or EntityID.
|
|
17958
|
+
* TotalCount is returned when PageIndex is 0 (the default).
|
|
17959
|
+
* Pass -1 for both pageSize and pageIndex to get only TotalCount.
|
|
17976
17960
|
*/
|
|
17977
|
-
function
|
|
17961
|
+
function GetItems(params) {
|
|
17978
17962
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17979
|
-
let {
|
|
17963
|
+
let { id, api, req: reqParams, pageSize, pageIndex, concept, entityId } = params;
|
|
17980
17964
|
if (!api) {
|
|
17981
17965
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
17982
17966
|
}
|
|
@@ -17987,90 +17971,61 @@ var ChangeSet;
|
|
|
17987
17971
|
if (pageIndex != null) {
|
|
17988
17972
|
urlParams.append("PageIndex", String(pageIndex));
|
|
17989
17973
|
}
|
|
17990
|
-
if (
|
|
17991
|
-
|
|
17992
|
-
for (const s of statuses) {
|
|
17993
|
-
urlParams.append("Status", s);
|
|
17994
|
-
}
|
|
17974
|
+
if (concept != null) {
|
|
17975
|
+
urlParams.append("Concept", concept);
|
|
17995
17976
|
}
|
|
17996
17977
|
if (entityId != null) {
|
|
17997
|
-
|
|
17998
|
-
for (const eid of ids) {
|
|
17999
|
-
urlParams.append("EntityID", eid);
|
|
18000
|
-
}
|
|
17978
|
+
urlParams.append("EntityID", entityId);
|
|
18001
17979
|
}
|
|
18002
17980
|
const query = urlParams.toString();
|
|
18003
|
-
return api.GET(query
|
|
18004
|
-
? `entity/changes/by_change_id/${changeId}?${query}`
|
|
18005
|
-
: `entity/changes/by_change_id/${changeId}`, Api.PrepReqParams(reqParams));
|
|
17981
|
+
return api.GET(query ? `v3/change/${id}/items?${query}` : `v3/change/${id}/items`, Api.PrepReqParams(reqParams));
|
|
18006
17982
|
});
|
|
18007
17983
|
}
|
|
18008
|
-
ChangeSet.
|
|
17984
|
+
ChangeSet.GetItems = GetItems;
|
|
18009
17985
|
/**
|
|
18010
|
-
*
|
|
18011
|
-
*
|
|
17986
|
+
* Updates existing or creates new Change Item within the specified Change Set.
|
|
17987
|
+
* To create a new item omit changeItem.ID or set it to 0.
|
|
18012
17988
|
*/
|
|
18013
|
-
function
|
|
17989
|
+
function UpdateItem(params) {
|
|
18014
17990
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18015
|
-
let { changeId, api, req: reqParams
|
|
17991
|
+
let { changeId, changeItem: data, api, req: reqParams } = params;
|
|
18016
17992
|
if (!api) {
|
|
18017
17993
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
18018
17994
|
}
|
|
18019
|
-
|
|
18020
|
-
urlParams.append("Select", "MAPPING");
|
|
18021
|
-
if (pageSize != null) {
|
|
18022
|
-
urlParams.append("PageSize", String(pageSize));
|
|
18023
|
-
}
|
|
18024
|
-
if (pageIndex != null) {
|
|
18025
|
-
urlParams.append("PageIndex", String(pageIndex));
|
|
18026
|
-
}
|
|
18027
|
-
if (status != null) {
|
|
18028
|
-
const statuses = Array.isArray(status) ? status : [status];
|
|
18029
|
-
for (const s of statuses) {
|
|
18030
|
-
urlParams.append("Status", s);
|
|
18031
|
-
}
|
|
18032
|
-
}
|
|
18033
|
-
if (entityId != null) {
|
|
18034
|
-
const ids = Array.isArray(entityId) ? entityId : [entityId];
|
|
18035
|
-
for (const eid of ids) {
|
|
18036
|
-
urlParams.append("EntityID", eid);
|
|
18037
|
-
}
|
|
18038
|
-
}
|
|
18039
|
-
return api.GET(`entity/changes/by_change_id/${changeId}?${urlParams.toString()}`, Api.PrepReqParams(reqParams));
|
|
17995
|
+
return yield api.POST(`v3/change/${changeId}/item/${data.ID || 0}`, data, Api.PrepReqParams(reqParams));
|
|
18040
17996
|
});
|
|
18041
17997
|
}
|
|
18042
|
-
ChangeSet.
|
|
17998
|
+
ChangeSet.UpdateItem = UpdateItem;
|
|
18043
17999
|
/**
|
|
18044
|
-
*
|
|
18045
|
-
* To create a new record, omit entityChange.ID or set it to 0.
|
|
18000
|
+
* Deletes a single Change Item from the specified Change Set.
|
|
18046
18001
|
*/
|
|
18047
|
-
function
|
|
18002
|
+
function DeleteItem(params) {
|
|
18048
18003
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18049
|
-
let { changeId,
|
|
18004
|
+
let { changeId, itemId, api, req: reqParams } = params;
|
|
18050
18005
|
if (!api) {
|
|
18051
18006
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
18052
18007
|
}
|
|
18053
|
-
|
|
18008
|
+
yield api.DELETE(`v3/change/${changeId}/item/${itemId}`, Api.PrepReqParams(reqParams));
|
|
18054
18009
|
});
|
|
18055
18010
|
}
|
|
18056
|
-
ChangeSet.
|
|
18011
|
+
ChangeSet.DeleteItem = DeleteItem;
|
|
18057
18012
|
/**
|
|
18058
|
-
*
|
|
18013
|
+
* Batch-creates or updates Change Items within the specified Change Set.
|
|
18059
18014
|
*/
|
|
18060
|
-
function
|
|
18015
|
+
function UpdateItems(params) {
|
|
18061
18016
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18062
|
-
let {
|
|
18017
|
+
let { changeId, items, api, req: reqParams } = params;
|
|
18063
18018
|
if (!api) {
|
|
18064
18019
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
18065
18020
|
}
|
|
18066
|
-
yield api.
|
|
18021
|
+
return yield api.POST(`v3/change/${changeId}/items`, { Items: items }, Api.PrepReqParams(reqParams));
|
|
18067
18022
|
});
|
|
18068
18023
|
}
|
|
18069
|
-
ChangeSet.
|
|
18024
|
+
ChangeSet.UpdateItems = UpdateItems;
|
|
18070
18025
|
})(ChangeSet || (ChangeSet = {}));
|
|
18071
18026
|
|
|
18072
18027
|
// This is updated with the package.json version on build.
|
|
18073
|
-
const VERSION = "7.1.
|
|
18028
|
+
const VERSION = "7.1.32";
|
|
18074
18029
|
|
|
18075
|
-
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, EntityTypeTrigger, 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, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, DataFeed, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportLcc, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking, NavigatorChatClient, NavigatorMcpWebSocketClient, ChangeSet };
|
|
18030
|
+
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, EntityTypeTrigger, 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, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, DataFeed, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportLcc, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, ChangeSet };
|
|
18076
18031
|
//# sourceMappingURL=bruce-models.es5.js.map
|