bruce-models 7.1.118 → 7.1.120
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 +37 -8
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +37 -8
- 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 +35 -6
- package/dist/lib/change-set/change-set.js.map +1 -1
- package/dist/lib/entity/entity.js +1 -1
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/change-set/change-set.d.ts +24 -4
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -6821,7 +6821,7 @@ var Entity;
|
|
|
6821
6821
|
const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
6822
6822
|
try {
|
|
6823
6823
|
const urlParams = new URLSearchParams();
|
|
6824
|
-
let expand;
|
|
6824
|
+
let expand = "";
|
|
6825
6825
|
if (expandLocation) {
|
|
6826
6826
|
expand = "location";
|
|
6827
6827
|
}
|
|
@@ -8886,6 +8886,7 @@ var ChangeSet;
|
|
|
8886
8886
|
EConcept["ENTITY_TYPE"] = "ET";
|
|
8887
8887
|
EConcept["ENTITY_LOD"] = "EL";
|
|
8888
8888
|
EConcept["ENTITY_RELATION"] = "ER";
|
|
8889
|
+
EConcept["ASSEMBLY"] = "A";
|
|
8889
8890
|
})(EConcept = ChangeSet.EConcept || (ChangeSet.EConcept = {}));
|
|
8890
8891
|
/**
|
|
8891
8892
|
* Updates existing or creates new Change Set record.
|
|
@@ -8922,11 +8923,18 @@ var ChangeSet;
|
|
|
8922
8923
|
*/
|
|
8923
8924
|
function Get(params) {
|
|
8924
8925
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8925
|
-
let { id, expandCount, api, req: reqParams } = params;
|
|
8926
|
+
let { id, expandCount, expandCountByConcept, api, req: reqParams } = params;
|
|
8926
8927
|
if (!api) {
|
|
8927
8928
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
8928
8929
|
}
|
|
8929
|
-
const
|
|
8930
|
+
const expand = [];
|
|
8931
|
+
if (expandCount) {
|
|
8932
|
+
expand.push("Count");
|
|
8933
|
+
}
|
|
8934
|
+
if (expandCountByConcept) {
|
|
8935
|
+
expand.push("CountByConcept");
|
|
8936
|
+
}
|
|
8937
|
+
const query = expand.length ? `?Expand=${expand.join(",")}` : "";
|
|
8930
8938
|
return yield api.GET(`v3/change/${id}${query}`, Api.PrepReqParams(reqParams));
|
|
8931
8939
|
});
|
|
8932
8940
|
}
|
|
@@ -8985,13 +8993,10 @@ var ChangeSet;
|
|
|
8985
8993
|
ChangeSet.Reject = Reject;
|
|
8986
8994
|
/**
|
|
8987
8995
|
* Gets the paged list of Change Items for the specified Change Set.
|
|
8988
|
-
* Optionally filter by Concept (E, ET, EL, ER) and/or EntityID.
|
|
8989
|
-
* TotalCount is returned when PageIndex is 0 (the default).
|
|
8990
|
-
* Pass -1 for both pageSize and pageIndex to get only TotalCount.
|
|
8991
8996
|
*/
|
|
8992
8997
|
function GetItems(params) {
|
|
8993
8998
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8994
|
-
let { id, api, req: reqParams, pageSize, pageIndex, concept, entityId } = params;
|
|
8999
|
+
let { id, api, req: reqParams, pageSize, pageIndex, concept, action, entityId } = params;
|
|
8995
9000
|
if (!api) {
|
|
8996
9001
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
8997
9002
|
}
|
|
@@ -9005,6 +9010,9 @@ var ChangeSet;
|
|
|
9005
9010
|
if (concept != null) {
|
|
9006
9011
|
urlParams.append("Concept", concept);
|
|
9007
9012
|
}
|
|
9013
|
+
if (action != null) {
|
|
9014
|
+
urlParams.append("Action", action);
|
|
9015
|
+
}
|
|
9008
9016
|
if (entityId != null) {
|
|
9009
9017
|
urlParams.append("EntityID", entityId);
|
|
9010
9018
|
}
|
|
@@ -9013,6 +9021,27 @@ var ChangeSet;
|
|
|
9013
9021
|
});
|
|
9014
9022
|
}
|
|
9015
9023
|
ChangeSet.GetItems = GetItems;
|
|
9024
|
+
/**
|
|
9025
|
+
* Locates the first Change Item naming an Entity, so a paged list can turn to the page holding it.
|
|
9026
|
+
*/
|
|
9027
|
+
function GetItemsIndexOf(params) {
|
|
9028
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9029
|
+
let { id, entityId, concept, action, api, req: reqParams } = params;
|
|
9030
|
+
if (!api) {
|
|
9031
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
9032
|
+
}
|
|
9033
|
+
const urlParams = new URLSearchParams();
|
|
9034
|
+
urlParams.append("IndexOf", entityId);
|
|
9035
|
+
if (concept != null) {
|
|
9036
|
+
urlParams.append("Concept", concept);
|
|
9037
|
+
}
|
|
9038
|
+
if (action != null) {
|
|
9039
|
+
urlParams.append("Action", action);
|
|
9040
|
+
}
|
|
9041
|
+
return api.GET(`v3/change/${id}/items?${urlParams.toString()}`, Api.PrepReqParams(reqParams));
|
|
9042
|
+
});
|
|
9043
|
+
}
|
|
9044
|
+
ChangeSet.GetItemsIndexOf = GetItemsIndexOf;
|
|
9016
9045
|
/**
|
|
9017
9046
|
* Updates existing or creates new Change Item within the specified Change Set.
|
|
9018
9047
|
* To create a new item omit changeItem.ID or set it to 0.
|
|
@@ -25359,7 +25388,7 @@ function getFirstWrappedArray(data, wrapperKeys) {
|
|
|
25359
25388
|
}
|
|
25360
25389
|
|
|
25361
25390
|
// This is updated with the package.json version on build.
|
|
25362
|
-
const VERSION = "7.1.
|
|
25391
|
+
const VERSION = "7.1.120";
|
|
25363
25392
|
|
|
25364
25393
|
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, RequestLane, 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, EntityTypeSource, 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, WorkflowItem, WorkflowSchedule, WorkflowType, WorkflowItemType };
|
|
25365
25394
|
//# sourceMappingURL=bruce-models.es5.js.map
|