bruce-models 6.1.0 → 6.1.1
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 +47 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +41 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +2 -1
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/tracking/tracking.js +59 -0
- package/dist/lib/tracking/tracking.js.map +1 -0
- package/dist/types/bruce-models.d.ts +2 -1
- package/dist/types/tracking/tracking.d.ts +52 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -15508,8 +15508,48 @@
|
|
|
15508
15508
|
Scenario.Delete = Delete;
|
|
15509
15509
|
})(exports.Scenario || (exports.Scenario = {}));
|
|
15510
15510
|
|
|
15511
|
+
(function (Tracking) {
|
|
15512
|
+
/**
|
|
15513
|
+
* Returns tracking data based on provided parameters.
|
|
15514
|
+
* @param params
|
|
15515
|
+
* @returns
|
|
15516
|
+
*/
|
|
15517
|
+
function GetData(params) {
|
|
15518
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15519
|
+
let { api, req } = params;
|
|
15520
|
+
if (!api) {
|
|
15521
|
+
api = exports.ENVIRONMENT.Api().GetGuardianApi();
|
|
15522
|
+
}
|
|
15523
|
+
const query = new URLSearchParams();
|
|
15524
|
+
if (params.select) {
|
|
15525
|
+
query.append("Select", params.select);
|
|
15526
|
+
}
|
|
15527
|
+
if (params.cType) {
|
|
15528
|
+
query.append("CType", params.cType);
|
|
15529
|
+
}
|
|
15530
|
+
if (params.tCount) {
|
|
15531
|
+
query.append("TCount", params.tCount);
|
|
15532
|
+
}
|
|
15533
|
+
if (params.accountId) {
|
|
15534
|
+
query.append("Account", params.accountId);
|
|
15535
|
+
}
|
|
15536
|
+
if (params.app) {
|
|
15537
|
+
query.append("App", params.app);
|
|
15538
|
+
}
|
|
15539
|
+
if (params.year) {
|
|
15540
|
+
query.append("Year", String(params.year));
|
|
15541
|
+
}
|
|
15542
|
+
if (params.month) {
|
|
15543
|
+
query.append("Month", String(params.month));
|
|
15544
|
+
}
|
|
15545
|
+
return yield api.GET("tracking?" + query.toString(), exports.Api.PrepReqParams(req));
|
|
15546
|
+
});
|
|
15547
|
+
}
|
|
15548
|
+
Tracking.GetData = GetData;
|
|
15549
|
+
})(exports.Tracking || (exports.Tracking = {}));
|
|
15550
|
+
|
|
15511
15551
|
// This is updated with the package.json version on build.
|
|
15512
|
-
const VERSION = "6.1.
|
|
15552
|
+
const VERSION = "6.1.1";
|
|
15513
15553
|
|
|
15514
15554
|
exports.VERSION = VERSION;
|
|
15515
15555
|
exports.AbstractApi = AbstractApi;
|