bruce-models 7.1.114 → 7.1.115
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 +49 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +49 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/data-lab/data-lab.js.map +1 -1
- package/dist/lib/entity/entity.js +15 -2
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/markup/markup.js.map +1 -1
- package/dist/lib/tracking/tracking.js +33 -0
- package/dist/lib/tracking/tracking.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/data-lab/data-lab.d.ts +2 -2
- package/dist/types/entity/entity.d.ts +1 -0
- package/dist/types/markup/markup.d.ts +1 -0
- package/dist/types/tracking/tracking.d.ts +26 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -7175,11 +7175,18 @@ var Entity;
|
|
|
7175
7175
|
function Update(params) {
|
|
7176
7176
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
7177
7177
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7178
|
-
let { api, entity: data, entities, override, req: reqParams, migrated } = params;
|
|
7178
|
+
let { api, entity: data, entities, override, req: reqParams, migrated, skipSourcePush } = params;
|
|
7179
7179
|
if (migrated == null || migrated == undefined) {
|
|
7180
7180
|
// Changed to default = true. 18th April 2025.
|
|
7181
7181
|
migrated = true;
|
|
7182
7182
|
}
|
|
7183
|
+
let skipSourcePushParam = null;
|
|
7184
|
+
if (skipSourcePush === true) {
|
|
7185
|
+
skipSourcePushParam = "true";
|
|
7186
|
+
}
|
|
7187
|
+
else if (Array.isArray(skipSourcePush) && skipSourcePush.length) {
|
|
7188
|
+
skipSourcePushParam = skipSourcePush.join(",");
|
|
7189
|
+
}
|
|
7183
7190
|
// Bulk save. Always using a v3 endpoint as v1 did not have a bulk save.
|
|
7184
7191
|
if (entities === null || entities === void 0 ? void 0 : entities.length) {
|
|
7185
7192
|
// If the Entities don't have IDs, then they must have a Type ID.
|
|
@@ -7194,7 +7201,10 @@ var Entity;
|
|
|
7194
7201
|
if (!api) {
|
|
7195
7202
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
7196
7203
|
}
|
|
7197
|
-
|
|
7204
|
+
let reqUrl = "v3/entities";
|
|
7205
|
+
if (skipSourcePushParam) {
|
|
7206
|
+
reqUrl += `?SkipSourcePush=${encodeURIComponent(skipSourcePushParam)}`;
|
|
7207
|
+
}
|
|
7198
7208
|
const reqBody = {
|
|
7199
7209
|
Items: entities,
|
|
7200
7210
|
Override: override
|
|
@@ -7254,6 +7264,9 @@ var Entity;
|
|
|
7254
7264
|
if (!migrated) {
|
|
7255
7265
|
reqUrl += "&hasMigrated=false";
|
|
7256
7266
|
}
|
|
7267
|
+
if (skipSourcePushParam) {
|
|
7268
|
+
reqUrl += `&SkipSourcePush=${encodeURIComponent(skipSourcePushParam)}`;
|
|
7269
|
+
}
|
|
7257
7270
|
const res = yield api.POST(reqUrl, data, Api.PrepReqParams(reqParams));
|
|
7258
7271
|
api.Cache.RemoveByContains(GetContainsKey(data.Bruce.ID));
|
|
7259
7272
|
EntityHistoricData.ClearCacheByEntityIds(api, [data.Bruce.ID]);
|
|
@@ -22964,12 +22977,27 @@ var PendingAction;
|
|
|
22964
22977
|
*/
|
|
22965
22978
|
var Tracking;
|
|
22966
22979
|
(function (Tracking) {
|
|
22980
|
+
/**
|
|
22981
|
+
* Columns a transaction summary can be grouped by.
|
|
22982
|
+
* Guardian groups by App, Account, Type and Count when none are given.
|
|
22983
|
+
*/
|
|
22984
|
+
let ETransactionGroupBy;
|
|
22985
|
+
(function (ETransactionGroupBy) {
|
|
22986
|
+
ETransactionGroupBy["App"] = "App";
|
|
22987
|
+
ETransactionGroupBy["Account"] = "Account";
|
|
22988
|
+
ETransactionGroupBy["User"] = "User";
|
|
22989
|
+
ETransactionGroupBy["Environment"] = "Environment";
|
|
22990
|
+
ETransactionGroupBy["Type"] = "Type";
|
|
22991
|
+
ETransactionGroupBy["Count"] = "Count";
|
|
22992
|
+
ETransactionGroupBy["Month"] = "Month";
|
|
22993
|
+
})(ETransactionGroupBy = Tracking.ETransactionGroupBy || (Tracking.ETransactionGroupBy = {}));
|
|
22967
22994
|
/**
|
|
22968
22995
|
* Returns tracking data based on provided parameters.
|
|
22969
22996
|
* @param params
|
|
22970
22997
|
* @returns
|
|
22971
22998
|
*/
|
|
22972
22999
|
function GetData(params) {
|
|
23000
|
+
var _a;
|
|
22973
23001
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22974
23002
|
let { api, req } = params;
|
|
22975
23003
|
if (!api) {
|
|
@@ -22982,6 +23010,9 @@ var Tracking;
|
|
|
22982
23010
|
if (params.cType) {
|
|
22983
23011
|
query.append("CType", params.cType);
|
|
22984
23012
|
}
|
|
23013
|
+
if (params.tType) {
|
|
23014
|
+
query.append("TType", params.tType);
|
|
23015
|
+
}
|
|
22985
23016
|
if (params.tCount) {
|
|
22986
23017
|
query.append("TCount", params.tCount);
|
|
22987
23018
|
}
|
|
@@ -22991,12 +23022,27 @@ var Tracking;
|
|
|
22991
23022
|
if (params.app) {
|
|
22992
23023
|
query.append("App", params.app);
|
|
22993
23024
|
}
|
|
23025
|
+
if (params.environment) {
|
|
23026
|
+
query.append("Environment", params.environment);
|
|
23027
|
+
}
|
|
23028
|
+
if (params.includeDeleted != null) {
|
|
23029
|
+
query.append("IncludeDeleted", String(params.includeDeleted));
|
|
23030
|
+
}
|
|
22994
23031
|
if (params.year) {
|
|
22995
23032
|
query.append("Year", String(params.year));
|
|
22996
23033
|
}
|
|
22997
23034
|
if (params.month) {
|
|
22998
23035
|
query.append("Month", String(params.month));
|
|
22999
23036
|
}
|
|
23037
|
+
if (params.fromYear) {
|
|
23038
|
+
query.append("FromYear", String(params.fromYear));
|
|
23039
|
+
}
|
|
23040
|
+
if (params.fromMonth) {
|
|
23041
|
+
query.append("FromMonth", String(params.fromMonth));
|
|
23042
|
+
}
|
|
23043
|
+
if ((_a = params.groupBy) === null || _a === void 0 ? void 0 : _a.length) {
|
|
23044
|
+
query.append("GroupBy", params.groupBy.join(","));
|
|
23045
|
+
}
|
|
23000
23046
|
return yield api.GET("tracking?" + query.toString(), Api.PrepReqParams(req));
|
|
23001
23047
|
});
|
|
23002
23048
|
}
|
|
@@ -25189,7 +25235,7 @@ function getFirstWrappedArray(data, wrapperKeys) {
|
|
|
25189
25235
|
}
|
|
25190
25236
|
|
|
25191
25237
|
// This is updated with the package.json version on build.
|
|
25192
|
-
const VERSION = "7.1.
|
|
25238
|
+
const VERSION = "7.1.115";
|
|
25193
25239
|
|
|
25194
25240
|
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 };
|
|
25195
25241
|
//# sourceMappingURL=bruce-models.es5.js.map
|