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.umd.js
CHANGED
|
@@ -7097,11 +7097,18 @@
|
|
|
7097
7097
|
function Update(params) {
|
|
7098
7098
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
7099
7099
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7100
|
-
let { api, entity: data, entities, override, req: reqParams, migrated } = params;
|
|
7100
|
+
let { api, entity: data, entities, override, req: reqParams, migrated, skipSourcePush } = params;
|
|
7101
7101
|
if (migrated == null || migrated == undefined) {
|
|
7102
7102
|
// Changed to default = true. 18th April 2025.
|
|
7103
7103
|
migrated = true;
|
|
7104
7104
|
}
|
|
7105
|
+
let skipSourcePushParam = null;
|
|
7106
|
+
if (skipSourcePush === true) {
|
|
7107
|
+
skipSourcePushParam = "true";
|
|
7108
|
+
}
|
|
7109
|
+
else if (Array.isArray(skipSourcePush) && skipSourcePush.length) {
|
|
7110
|
+
skipSourcePushParam = skipSourcePush.join(",");
|
|
7111
|
+
}
|
|
7105
7112
|
// Bulk save. Always using a v3 endpoint as v1 did not have a bulk save.
|
|
7106
7113
|
if (entities === null || entities === void 0 ? void 0 : entities.length) {
|
|
7107
7114
|
// If the Entities don't have IDs, then they must have a Type ID.
|
|
@@ -7116,7 +7123,10 @@
|
|
|
7116
7123
|
if (!api) {
|
|
7117
7124
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
7118
7125
|
}
|
|
7119
|
-
|
|
7126
|
+
let reqUrl = "v3/entities";
|
|
7127
|
+
if (skipSourcePushParam) {
|
|
7128
|
+
reqUrl += `?SkipSourcePush=${encodeURIComponent(skipSourcePushParam)}`;
|
|
7129
|
+
}
|
|
7120
7130
|
const reqBody = {
|
|
7121
7131
|
Items: entities,
|
|
7122
7132
|
Override: override
|
|
@@ -7176,6 +7186,9 @@
|
|
|
7176
7186
|
if (!migrated) {
|
|
7177
7187
|
reqUrl += "&hasMigrated=false";
|
|
7178
7188
|
}
|
|
7189
|
+
if (skipSourcePushParam) {
|
|
7190
|
+
reqUrl += `&SkipSourcePush=${encodeURIComponent(skipSourcePushParam)}`;
|
|
7191
|
+
}
|
|
7179
7192
|
const res = yield api.POST(reqUrl, data, exports.Api.PrepReqParams(reqParams));
|
|
7180
7193
|
api.Cache.RemoveByContains(GetContainsKey(data.Bruce.ID));
|
|
7181
7194
|
exports.EntityHistoricData.ClearCacheByEntityIds(api, [data.Bruce.ID]);
|
|
@@ -22603,12 +22616,27 @@
|
|
|
22603
22616
|
})(exports.PendingAction || (exports.PendingAction = {}));
|
|
22604
22617
|
|
|
22605
22618
|
(function (Tracking) {
|
|
22619
|
+
/**
|
|
22620
|
+
* Columns a transaction summary can be grouped by.
|
|
22621
|
+
* Guardian groups by App, Account, Type and Count when none are given.
|
|
22622
|
+
*/
|
|
22623
|
+
let ETransactionGroupBy;
|
|
22624
|
+
(function (ETransactionGroupBy) {
|
|
22625
|
+
ETransactionGroupBy["App"] = "App";
|
|
22626
|
+
ETransactionGroupBy["Account"] = "Account";
|
|
22627
|
+
ETransactionGroupBy["User"] = "User";
|
|
22628
|
+
ETransactionGroupBy["Environment"] = "Environment";
|
|
22629
|
+
ETransactionGroupBy["Type"] = "Type";
|
|
22630
|
+
ETransactionGroupBy["Count"] = "Count";
|
|
22631
|
+
ETransactionGroupBy["Month"] = "Month";
|
|
22632
|
+
})(ETransactionGroupBy = Tracking.ETransactionGroupBy || (Tracking.ETransactionGroupBy = {}));
|
|
22606
22633
|
/**
|
|
22607
22634
|
* Returns tracking data based on provided parameters.
|
|
22608
22635
|
* @param params
|
|
22609
22636
|
* @returns
|
|
22610
22637
|
*/
|
|
22611
22638
|
function GetData(params) {
|
|
22639
|
+
var _a;
|
|
22612
22640
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22613
22641
|
let { api, req } = params;
|
|
22614
22642
|
if (!api) {
|
|
@@ -22621,6 +22649,9 @@
|
|
|
22621
22649
|
if (params.cType) {
|
|
22622
22650
|
query.append("CType", params.cType);
|
|
22623
22651
|
}
|
|
22652
|
+
if (params.tType) {
|
|
22653
|
+
query.append("TType", params.tType);
|
|
22654
|
+
}
|
|
22624
22655
|
if (params.tCount) {
|
|
22625
22656
|
query.append("TCount", params.tCount);
|
|
22626
22657
|
}
|
|
@@ -22630,12 +22661,27 @@
|
|
|
22630
22661
|
if (params.app) {
|
|
22631
22662
|
query.append("App", params.app);
|
|
22632
22663
|
}
|
|
22664
|
+
if (params.environment) {
|
|
22665
|
+
query.append("Environment", params.environment);
|
|
22666
|
+
}
|
|
22667
|
+
if (params.includeDeleted != null) {
|
|
22668
|
+
query.append("IncludeDeleted", String(params.includeDeleted));
|
|
22669
|
+
}
|
|
22633
22670
|
if (params.year) {
|
|
22634
22671
|
query.append("Year", String(params.year));
|
|
22635
22672
|
}
|
|
22636
22673
|
if (params.month) {
|
|
22637
22674
|
query.append("Month", String(params.month));
|
|
22638
22675
|
}
|
|
22676
|
+
if (params.fromYear) {
|
|
22677
|
+
query.append("FromYear", String(params.fromYear));
|
|
22678
|
+
}
|
|
22679
|
+
if (params.fromMonth) {
|
|
22680
|
+
query.append("FromMonth", String(params.fromMonth));
|
|
22681
|
+
}
|
|
22682
|
+
if ((_a = params.groupBy) === null || _a === void 0 ? void 0 : _a.length) {
|
|
22683
|
+
query.append("GroupBy", params.groupBy.join(","));
|
|
22684
|
+
}
|
|
22639
22685
|
return yield api.GET("tracking?" + query.toString(), exports.Api.PrepReqParams(req));
|
|
22640
22686
|
});
|
|
22641
22687
|
}
|
|
@@ -24798,7 +24844,7 @@
|
|
|
24798
24844
|
}
|
|
24799
24845
|
|
|
24800
24846
|
// This is updated with the package.json version on build.
|
|
24801
|
-
const VERSION = "7.1.
|
|
24847
|
+
const VERSION = "7.1.115";
|
|
24802
24848
|
|
|
24803
24849
|
exports.VERSION = VERSION;
|
|
24804
24850
|
exports.AbstractApi = AbstractApi;
|