@bringg/dashboard-sdk 0.4.53 → 0.4.57
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/AnalyticsReports/AnalyticsReports.types.d.ts +0 -10
- package/dist/AnalyticsReports/AnalyticsReports.types.js +0 -6
- package/dist/AnalyticsReports/AnalyticsReports.types.js.map +1 -1
- package/dist/AnalyticsReports/AnalyticsReportsApi.d.ts +5 -4
- package/dist/AnalyticsReports/AnalyticsReportsApi.js +5 -2
- package/dist/AnalyticsReports/AnalyticsReportsApi.js.map +1 -1
- package/dist/AnalyticsReports/Entity/AnalyticsReportsEntity.d.ts +10 -0
- package/dist/AnalyticsReports/Entity/{AnalyticsRepotsEntity.js → AnalyticsReportsEntity.js} +16 -1
- package/dist/AnalyticsReports/Entity/AnalyticsReportsEntity.js.map +1 -0
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +32 -5
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +11 -11
- package/dist/bringg-dashboard-sdk.min.js +2 -2
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/dist/stats.json +465 -425
- package/package.json +2 -2
- package/dist/AnalyticsReports/Entity/AnalyticsRepotsEntity.d.ts +0 -9
- package/dist/AnalyticsReports/Entity/AnalyticsRepotsEntity.js.map +0 -1
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
export declare enum Order {
|
|
2
|
-
asc = "asc",
|
|
3
|
-
desc = "desc"
|
|
4
|
-
}
|
|
5
|
-
export declare type GetReportPayload = {
|
|
6
|
-
order?: Order;
|
|
7
|
-
orderBy?: string;
|
|
8
|
-
limit?: number;
|
|
9
|
-
offset?: number;
|
|
10
|
-
};
|
|
11
1
|
export interface ReportResponse<T> {
|
|
12
2
|
data: T;
|
|
13
3
|
success: boolean;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Order = void 0;
|
|
4
|
-
var Order;
|
|
5
|
-
(function (Order) {
|
|
6
|
-
Order["asc"] = "asc";
|
|
7
|
-
Order["desc"] = "desc";
|
|
8
|
-
})(Order = exports.Order || (exports.Order = {}));
|
|
9
3
|
//# sourceMappingURL=AnalyticsReports.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticsReports.types.js","sourceRoot":"","sources":["../../src/AnalyticsReports/AnalyticsReports.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnalyticsReports.types.js","sourceRoot":"","sources":["../../src/AnalyticsReports/AnalyticsReports.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ReportDtoInterface } from '@bringg/types';
|
|
1
|
+
import { ExecuteReportInterface, ReportDtoInterface, ReportPagination } from '@bringg/types';
|
|
2
2
|
import Session from '../Services/Identity/Session';
|
|
3
|
-
import {
|
|
3
|
+
import { ReportResponse } from './AnalyticsReports.types';
|
|
4
4
|
export default class AnalyticsReportsApi {
|
|
5
5
|
private analyticsReportsEntity;
|
|
6
6
|
constructor(session: Session);
|
|
7
|
-
getUserReports(queryString:
|
|
8
|
-
|
|
7
|
+
getUserReports(queryString: ReportPagination): Promise<ReportResponse<ReportDtoInterface[]>>;
|
|
8
|
+
getExecutedReport(reportId: string, queryParams: ExecuteReportInterface): Promise<Record<string, string>>;
|
|
9
|
+
getSystemReports(queryString: ReportPagination): Promise<ReportResponse<ReportDtoInterface[]>>;
|
|
9
10
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var
|
|
3
|
+
var AnalyticsReportsEntity_1 = require("./Entity/AnalyticsReportsEntity");
|
|
4
4
|
var AnalyticsReportsApi = /** @class */ (function () {
|
|
5
5
|
function AnalyticsReportsApi(session) {
|
|
6
|
-
this.analyticsReportsEntity = new
|
|
6
|
+
this.analyticsReportsEntity = new AnalyticsReportsEntity_1.default(session);
|
|
7
7
|
}
|
|
8
8
|
AnalyticsReportsApi.prototype.getUserReports = function (queryString) {
|
|
9
9
|
return this.analyticsReportsEntity.getUserReports(queryString);
|
|
10
10
|
};
|
|
11
|
+
AnalyticsReportsApi.prototype.getExecutedReport = function (reportId, queryParams) {
|
|
12
|
+
return this.analyticsReportsEntity.getExecutedReport(reportId, queryParams);
|
|
13
|
+
};
|
|
11
14
|
AnalyticsReportsApi.prototype.getSystemReports = function (queryString) {
|
|
12
15
|
return this.analyticsReportsEntity.getSystemReports(queryString);
|
|
13
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticsReportsApi.js","sourceRoot":"","sources":["../../src/AnalyticsReports/AnalyticsReportsApi.ts"],"names":[],"mappings":";;AAIA,
|
|
1
|
+
{"version":3,"file":"AnalyticsReportsApi.js","sourceRoot":"","sources":["../../src/AnalyticsReports/AnalyticsReportsApi.ts"],"names":[],"mappings":";;AAIA,0EAAqE;AAErE;IAGC,6BAAY,OAAgB;QAC3B,IAAI,CAAC,sBAAsB,GAAG,IAAI,gCAAsB,CAAC,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,4CAAc,GAAd,UAAe,WAA6B;QAC3C,OAAO,IAAI,CAAC,sBAAsB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAChE,CAAC;IAED,+CAAiB,GAAjB,UAAkB,QAAgB,EAAE,WAAmC;QACtE,OAAO,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IAC7E,CAAC;IAED,8CAAgB,GAAhB,UAAiB,WAA6B;QAC7C,OAAO,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAClE,CAAC;IACF,0BAAC;AAAD,CAAC,AAlBD,IAkBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExecuteReportInterface, ReportDtoInterface, ReportPagination } from '@bringg/types';
|
|
2
|
+
import Entity from '../../Core/Entity';
|
|
3
|
+
import Session from '../../Services/Identity/Session';
|
|
4
|
+
import { ReportResponse } from '../AnalyticsReports.types';
|
|
5
|
+
export default class AnalyticsReportsEntity extends Entity<AnalyticsReportsEntity> {
|
|
6
|
+
constructor(session: Session);
|
|
7
|
+
getUserReports(queryString: ReportPagination): Promise<ReportResponse<ReportDtoInterface[]>>;
|
|
8
|
+
getExecutedReport(reportId: string, queryParams: ExecuteReportInterface): Promise<Record<string, string>>;
|
|
9
|
+
getSystemReports(queryString: ReportPagination): Promise<ReportResponse<ReportDtoInterface[]>>;
|
|
10
|
+
}
|
|
@@ -59,6 +59,7 @@ var Version;
|
|
|
59
59
|
var BaseRoute = '/report-service';
|
|
60
60
|
var Routes = {
|
|
61
61
|
GET_USER_REPORTS: BaseRoute + "/" + Version.v1 + "/reports",
|
|
62
|
+
GET_EXECUTED_REPORT: BaseRoute + "/" + Version.v1 + "/reports/{:reportId}/execute",
|
|
62
63
|
GET_SYSTEM_REPORTS: BaseRoute + "/" + Version.v1 + "/system-reports"
|
|
63
64
|
};
|
|
64
65
|
var AnalyticsReportsEntity = /** @class */ (function (_super) {
|
|
@@ -82,6 +83,20 @@ var AnalyticsReportsEntity = /** @class */ (function (_super) {
|
|
|
82
83
|
});
|
|
83
84
|
});
|
|
84
85
|
};
|
|
86
|
+
AnalyticsReportsEntity.prototype.getExecutedReport = function (reportId, queryParams) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88
|
+
return __generator(this, function (_a) {
|
|
89
|
+
switch (_a.label) {
|
|
90
|
+
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
91
|
+
.post(Routes.GET_EXECUTED_REPORT)
|
|
92
|
+
.withRouteParams({ reportId: reportId })
|
|
93
|
+
.withPayload(queryParams)
|
|
94
|
+
.invoke()];
|
|
95
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
};
|
|
85
100
|
AnalyticsReportsEntity.prototype.getSystemReports = function (queryString) {
|
|
86
101
|
return __awaiter(this, void 0, void 0, function () {
|
|
87
102
|
return __generator(this, function (_a) {
|
|
@@ -98,4 +113,4 @@ var AnalyticsReportsEntity = /** @class */ (function (_super) {
|
|
|
98
113
|
return AnalyticsReportsEntity;
|
|
99
114
|
}(Entity_1.default));
|
|
100
115
|
exports.default = AnalyticsReportsEntity;
|
|
101
|
-
//# sourceMappingURL=
|
|
116
|
+
//# sourceMappingURL=AnalyticsReportsEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnalyticsReportsEntity.js","sourceRoot":"","sources":["../../../src/AnalyticsReports/Entity/AnalyticsReportsEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,4CAAuC;AAIvC,IAAK,OAEJ;AAFD,WAAK,OAAO;IACX,oBAAS,CAAA;AACV,CAAC,EAFI,OAAO,KAAP,OAAO,QAEX;AACD,IAAM,SAAS,GAAG,iBAAiB,CAAC;AACpC,IAAM,MAAM,GAAG;IACd,gBAAgB,EAAK,SAAS,SAAI,OAAO,CAAC,EAAE,aAAU;IACtD,mBAAmB,EAAK,SAAS,SAAI,OAAO,CAAC,EAAE,iCAA8B;IAC7E,kBAAkB,EAAK,SAAS,SAAI,OAAO,CAAC,EAAE,oBAAiB;CAC/D,CAAC;AAEF;IAAoD,0CAA8B;IACjF,gCAAY,OAAgB;eAC3B,kBAAM;YACL,OAAO,SAAA;YACP,UAAU,EAAE,gBAAgB;SAC5B,CAAC;IACH,CAAC;IAEK,+CAAc,GAApB,UAAqB,WAA6B;;;;4BAC1C,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC;6BAC5B,eAAe,CAAC,WAAW,CAAC;6BAC5B,MAAM,EAAE,EAAA;4BAHV,sBAAO,SAGG,EAAC;;;;KACX;IAEK,kDAAiB,GAAvB,UAAwB,QAAgB,EAAE,WAAmC;;;;4BACrE,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC;6BAChC,eAAe,CAAC,EAAE,QAAQ,UAAA,EAAE,CAAC;6BAC7B,WAAW,CAAC,WAAW,CAAC;6BACxB,MAAM,EAAE,EAAA;4BAJV,sBAAO,SAIG,EAAC;;;;KACX;IAEK,iDAAgB,GAAtB,UAAuB,WAA6B;;;;4BAC5C,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,GAAG,CAAC,MAAM,CAAC,kBAAkB,CAAC;6BAC9B,eAAe,CAAC,WAAW,CAAC;6BAC5B,MAAM,EAAE,EAAA;4BAHV,sBAAO,SAGG,EAAC;;;;KACX;IACF,6BAAC;AAAD,CAAC,AA7BD,CAAoD,gBAAM,GA6BzD"}
|
|
@@ -52,7 +52,7 @@ var axios_1 = require("axios");
|
|
|
52
52
|
var Logger_1 = require("../Core/Logger");
|
|
53
53
|
var lodash_1 = require("lodash");
|
|
54
54
|
var BringgException_1 = require("../Core/BringgException");
|
|
55
|
-
var version = '0.4.
|
|
55
|
+
var version = '0.4.57';
|
|
56
56
|
function logErrorResponse(response) {
|
|
57
57
|
var data = response.data, status = response.status;
|
|
58
58
|
try {
|
|
@@ -30008,7 +30008,7 @@ var axios_1 = __webpack_require__(146);
|
|
|
30008
30008
|
var Logger_1 = __webpack_require__(39);
|
|
30009
30009
|
var lodash_1 = __webpack_require__(10);
|
|
30010
30010
|
var BringgException_1 = __webpack_require__(15);
|
|
30011
|
-
var version = '0.4.
|
|
30011
|
+
var version = '0.4.57';
|
|
30012
30012
|
function logErrorResponse(response) {
|
|
30013
30013
|
var data = response.data, status = response.status;
|
|
30014
30014
|
try {
|
|
@@ -31564,7 +31564,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
31564
31564
|
o[k2] = m[k];
|
|
31565
31565
|
}));
|
|
31566
31566
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
31567
|
-
for (var p in m) if (p !== "default" && !
|
|
31567
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
31568
31568
|
};
|
|
31569
31569
|
exports.__esModule = true;
|
|
31570
31570
|
__exportStar(__webpack_require__(307), exports);
|
|
@@ -52206,6 +52206,7 @@ var ApplicationUuid;
|
|
|
52206
52206
|
ApplicationUuid["Webhooks"] = "5920d1a0-4c82-11e4-916c-0800200c9a66";
|
|
52207
52207
|
ApplicationUuid["WebhookTimeZone"] = "d3b976db-a8cf-4930-9489-b13d21075180";
|
|
52208
52208
|
ApplicationUuid["WebhookApp"] = "52228df2-2759-432d-8865-2593d2ba6c12";
|
|
52209
|
+
ApplicationUuid["EventBasedActions"] = "56cc30b4-1600-42ca-ba58-94220961f110";
|
|
52209
52210
|
})(ApplicationUuid = exports.ApplicationUuid || (exports.ApplicationUuid = {}));
|
|
52210
52211
|
//# sourceMappingURL=application.js.map
|
|
52211
52212
|
|
|
@@ -53861,10 +53862,12 @@ var AttributeDatatype;
|
|
|
53861
53862
|
var RuleCategory;
|
|
53862
53863
|
(function (RuleCategory) {
|
|
53863
53864
|
RuleCategory[RuleCategory["FleetRouter"] = 0] = "FleetRouter";
|
|
53865
|
+
RuleCategory[RuleCategory["Action"] = 1] = "Action";
|
|
53864
53866
|
})(RuleCategory = exports.RuleCategory || (exports.RuleCategory = {}));
|
|
53865
53867
|
var Entity;
|
|
53866
53868
|
(function (Entity) {
|
|
53867
53869
|
Entity["Fleet"] = "fleet";
|
|
53870
|
+
Entity["Action"] = "action";
|
|
53868
53871
|
})(Entity = exports.Entity || (exports.Entity = {}));
|
|
53869
53872
|
var FactType;
|
|
53870
53873
|
(function (FactType) {
|
|
@@ -53883,6 +53886,12 @@ var RuleRequestType;
|
|
|
53883
53886
|
"use strict";
|
|
53884
53887
|
|
|
53885
53888
|
exports.__esModule = true;
|
|
53889
|
+
exports.Order = void 0;
|
|
53890
|
+
var Order;
|
|
53891
|
+
(function (Order) {
|
|
53892
|
+
Order["asc"] = "asc";
|
|
53893
|
+
Order["desc"] = "desc";
|
|
53894
|
+
})(Order = exports.Order || (exports.Order = {}));
|
|
53886
53895
|
//# sourceMappingURL=report.js.map
|
|
53887
53896
|
|
|
53888
53897
|
/***/ }),
|
|
@@ -57794,14 +57803,17 @@ exports.PendoProvider = PendoProvider;
|
|
|
57794
57803
|
"use strict";
|
|
57795
57804
|
|
|
57796
57805
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57797
|
-
var
|
|
57806
|
+
var AnalyticsReportsEntity_1 = __webpack_require__(444);
|
|
57798
57807
|
var AnalyticsReportsApi = /** @class */ (function () {
|
|
57799
57808
|
function AnalyticsReportsApi(session) {
|
|
57800
|
-
this.analyticsReportsEntity = new
|
|
57809
|
+
this.analyticsReportsEntity = new AnalyticsReportsEntity_1.default(session);
|
|
57801
57810
|
}
|
|
57802
57811
|
AnalyticsReportsApi.prototype.getUserReports = function (queryString) {
|
|
57803
57812
|
return this.analyticsReportsEntity.getUserReports(queryString);
|
|
57804
57813
|
};
|
|
57814
|
+
AnalyticsReportsApi.prototype.getExecutedReport = function (reportId, queryParams) {
|
|
57815
|
+
return this.analyticsReportsEntity.getExecutedReport(reportId, queryParams);
|
|
57816
|
+
};
|
|
57805
57817
|
AnalyticsReportsApi.prototype.getSystemReports = function (queryString) {
|
|
57806
57818
|
return this.analyticsReportsEntity.getSystemReports(queryString);
|
|
57807
57819
|
};
|
|
@@ -57876,6 +57888,7 @@ var Version;
|
|
|
57876
57888
|
var BaseRoute = '/report-service';
|
|
57877
57889
|
var Routes = {
|
|
57878
57890
|
GET_USER_REPORTS: BaseRoute + "/" + Version.v1 + "/reports",
|
|
57891
|
+
GET_EXECUTED_REPORT: BaseRoute + "/" + Version.v1 + "/reports/{:reportId}/execute",
|
|
57879
57892
|
GET_SYSTEM_REPORTS: BaseRoute + "/" + Version.v1 + "/system-reports"
|
|
57880
57893
|
};
|
|
57881
57894
|
var AnalyticsReportsEntity = /** @class */ (function (_super) {
|
|
@@ -57899,6 +57912,20 @@ var AnalyticsReportsEntity = /** @class */ (function (_super) {
|
|
|
57899
57912
|
});
|
|
57900
57913
|
});
|
|
57901
57914
|
};
|
|
57915
|
+
AnalyticsReportsEntity.prototype.getExecutedReport = function (reportId, queryParams) {
|
|
57916
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
57917
|
+
return __generator(this, function (_a) {
|
|
57918
|
+
switch (_a.label) {
|
|
57919
|
+
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
57920
|
+
.post(Routes.GET_EXECUTED_REPORT)
|
|
57921
|
+
.withRouteParams({ reportId: reportId })
|
|
57922
|
+
.withPayload(queryParams)
|
|
57923
|
+
.invoke()];
|
|
57924
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
57925
|
+
}
|
|
57926
|
+
});
|
|
57927
|
+
});
|
|
57928
|
+
};
|
|
57902
57929
|
AnalyticsReportsEntity.prototype.getSystemReports = function (queryString) {
|
|
57903
57930
|
return __awaiter(this, void 0, void 0, function () {
|
|
57904
57931
|
return __generator(this, function (_a) {
|
|
@@ -57915,7 +57942,7 @@ var AnalyticsReportsEntity = /** @class */ (function (_super) {
|
|
|
57915
57942
|
return AnalyticsReportsEntity;
|
|
57916
57943
|
}(Entity_1.default));
|
|
57917
57944
|
exports.default = AnalyticsReportsEntity;
|
|
57918
|
-
//# sourceMappingURL=
|
|
57945
|
+
//# sourceMappingURL=AnalyticsReportsEntity.js.map
|
|
57919
57946
|
|
|
57920
57947
|
/***/ }),
|
|
57921
57948
|
/* 445 */
|