@bringg/dashboard-sdk 9.42.0-pre → 9.42.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/AnalyticsReports/AnalyticsReportsApi.d.ts +6 -33
- package/dist/AnalyticsReports/AnalyticsReportsApi.js +12 -65
- package/dist/AnalyticsReports/AnalyticsReportsApi.js.map +1 -1
- package/dist/AnalyticsReports/Entity/AnalyticsReportsEntity.d.ts +6 -33
- package/dist/AnalyticsReports/Entity/AnalyticsReportsEntity.js +23 -174
- package/dist/AnalyticsReports/Entity/AnalyticsReportsEntity.js.map +1 -1
- package/dist/Customer/v2/customers-api.js +1 -3
- package/dist/Customer/v2/customers-api.js.map +1 -1
- package/dist/Relay/Relay.consts.d.ts +1 -1
- package/dist/Relay/Relay.consts.js +1 -1
- package/dist/Relay/Relay.consts.js.map +1 -1
- package/dist/Relay/RelayApi.d.ts +2 -1
- package/dist/Relay/RelayApi.js +7 -0
- package/dist/Relay/RelayApi.js.map +1 -1
- package/dist/Relay/Service/Relay.service.d.ts +2 -1
- package/dist/Relay/Service/Relay.service.js +12 -1
- package/dist/Relay/Service/Relay.service.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +57 -245
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +7 -7
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +1 -1
package/dist/Relay/RelayApi.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { RelayDataByTaskIdResponseItem } from '@bringg/types';
|
|
1
|
+
import { CreateRelayRequestBody, CreateRelayResponse, RelayDataByTaskIdResponseItem } from '@bringg/types';
|
|
2
2
|
import Session from '../Services/Identity/Session';
|
|
3
3
|
export default class RelayApi {
|
|
4
4
|
private readonly relayService;
|
|
5
5
|
constructor(session: Session);
|
|
6
6
|
getRelaysByTaskId(taskId: number): Promise<RelayDataByTaskIdResponseItem[]>;
|
|
7
|
+
createRelays(request: CreateRelayRequestBody): Promise<CreateRelayResponse>;
|
|
7
8
|
}
|
package/dist/Relay/RelayApi.js
CHANGED
|
@@ -51,6 +51,13 @@ var RelayApi = /** @class */ (function () {
|
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
+
RelayApi.prototype.createRelays = function (request) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
56
|
+
return __generator(this, function (_a) {
|
|
57
|
+
return [2 /*return*/, this.relayService.createRelays(request)];
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
};
|
|
54
61
|
return RelayApi;
|
|
55
62
|
}());
|
|
56
63
|
exports.default = RelayApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelayApi.js","sourceRoot":"","sources":["../../src/Relay/RelayApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,0EAAmD;AAEnD;IAGC,kBAAY,OAAgB;QAC3B,IAAI,CAAC,YAAY,GAAG,IAAI,uBAAY,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAEY,oCAAiB,GAA9B,UAA+B,MAAc;;;gBAC5C,sBAAO,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAC;;;KACnD;IACF,eAAC;AAAD,CAAC,
|
|
1
|
+
{"version":3,"file":"RelayApi.js","sourceRoot":"","sources":["../../src/Relay/RelayApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,0EAAmD;AAEnD;IAGC,kBAAY,OAAgB;QAC3B,IAAI,CAAC,YAAY,GAAG,IAAI,uBAAY,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAEY,oCAAiB,GAA9B,UAA+B,MAAc;;;gBAC5C,sBAAO,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAC;;;KACnD;IAEY,+BAAY,GAAzB,UAA0B,OAA+B;;;gBACxD,sBAAO,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,OAAO,CAAC,EAAC;;;KAC/C;IACF,eAAC;AAAD,CAAC,AAdD,IAcC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { RelayDataByTaskIdResponseItem } from '@bringg/types';
|
|
1
|
+
import { CreateRelayRequestBody, CreateRelayResponse, RelayDataByTaskIdResponseItem } from '@bringg/types';
|
|
2
2
|
import { CommonOptions } from '../../Core/RouteGenerator';
|
|
3
3
|
import Session from '../../Services/Identity/Session';
|
|
4
4
|
export default class RelayService {
|
|
5
5
|
private readonly service;
|
|
6
6
|
constructor(session: Session);
|
|
7
7
|
getRelaysByTaskId(taskId: number, commonOptions?: CommonOptions): Promise<RelayDataByTaskIdResponseItem[]>;
|
|
8
|
+
createRelays(relayData: CreateRelayRequestBody, commonOptions?: CommonOptions): Promise<CreateRelayResponse>;
|
|
8
9
|
}
|
|
@@ -49,7 +49,7 @@ var RelayService = /** @class */ (function () {
|
|
|
49
49
|
return __awaiter(this, void 0, void 0, function () {
|
|
50
50
|
return __generator(this, function (_a) {
|
|
51
51
|
return [2 /*return*/, this.service.routeGenerator
|
|
52
|
-
.get(Relay_consts_1.Routes.
|
|
52
|
+
.get(Relay_consts_1.Routes.RELAY)
|
|
53
53
|
.withQueryString({ task_id: taskId })
|
|
54
54
|
.setException("failed to fetch relays for task ".concat(taskId))
|
|
55
55
|
.withCommonOptions(commonOptions)
|
|
@@ -57,6 +57,17 @@ var RelayService = /** @class */ (function () {
|
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
|
+
RelayService.prototype.createRelays = function (relayData, commonOptions) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
62
|
+
return __generator(this, function (_a) {
|
|
63
|
+
return [2 /*return*/, this.service.routeGenerator
|
|
64
|
+
.post(Relay_consts_1.Routes.RELAY)
|
|
65
|
+
.withPayload(relayData)
|
|
66
|
+
.withCommonOptions(commonOptions)
|
|
67
|
+
.invoke()];
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
};
|
|
60
71
|
return RelayService;
|
|
61
72
|
}());
|
|
62
73
|
exports.default = RelayService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Relay.service.js","sourceRoot":"","sources":["../../../src/Relay/Service/Relay.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uEAAiD;AAGjD,gDAAyC;AAEzC;IAGC,sBAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;IAClE,CAAC;IAEY,wCAAiB,GAA9B,UACC,MAAc,EACd,aAA6B;;;gBAE7B,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,GAAG,CAAC,qBAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"Relay.service.js","sourceRoot":"","sources":["../../../src/Relay/Service/Relay.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uEAAiD;AAGjD,gDAAyC;AAEzC;IAGC,sBAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;IAClE,CAAC;IAEY,wCAAiB,GAA9B,UACC,MAAc,EACd,aAA6B;;;gBAE7B,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,GAAG,CAAC,qBAAM,CAAC,KAAK,CAAC;yBACjB,eAAe,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;yBACpC,YAAY,CAAC,0CAAmC,MAAM,CAAE,CAAC;yBACzD,iBAAiB,CAAC,aAAa,CAAC;yBAChC,MAAM,EAAoE,EAAC;;;KAC7E;IAEY,mCAAY,GAAzB,UACC,SAAiC,EACjC,aAA6B;;;gBAE7B,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,IAAI,CAAC,qBAAM,CAAC,KAAK,CAAC;yBAClB,WAAW,CAAC,SAAS,CAAC;yBACtB,iBAAiB,CAAC,aAAa,CAAC;yBAChC,MAAM,EAA4C,EAAC;;;KACrD;IACF,mBAAC;AAAD,CAAC,AA7BD,IA6BC"}
|
|
@@ -56,7 +56,7 @@ var lodash_1 = require("lodash");
|
|
|
56
56
|
var BringgException_1 = require("../Core/BringgException");
|
|
57
57
|
var Logger_1 = __importDefault(require("../Core/Logger"));
|
|
58
58
|
var abort_1 = require("../utils/abort");
|
|
59
|
-
var version = '9.42.
|
|
59
|
+
var version = '9.42.1';
|
|
60
60
|
function logErrorResponse(response) {
|
|
61
61
|
var data = response.data, status = response.status;
|
|
62
62
|
try {
|
|
@@ -541,14 +541,8 @@ var AnalyticsReportsApi = /** @class */ (function () {
|
|
|
541
541
|
AnalyticsReportsApi.prototype.getReport = function (reportId) {
|
|
542
542
|
return this.analyticsReportsEntity.getReport(reportId);
|
|
543
543
|
};
|
|
544
|
-
AnalyticsReportsApi.prototype.
|
|
545
|
-
return this.analyticsReportsEntity.
|
|
546
|
-
};
|
|
547
|
-
AnalyticsReportsApi.prototype.updateUserReport = function (reportId, report) {
|
|
548
|
-
return this.analyticsReportsEntity.updateUserReport(reportId, report);
|
|
549
|
-
};
|
|
550
|
-
AnalyticsReportsApi.prototype.deleteUserReport = function (reportId) {
|
|
551
|
-
return this.analyticsReportsEntity.deleteUserReport(reportId);
|
|
544
|
+
AnalyticsReportsApi.prototype.deleteReport = function (reportId) {
|
|
545
|
+
return this.analyticsReportsEntity.deleteReport(reportId);
|
|
552
546
|
};
|
|
553
547
|
AnalyticsReportsApi.prototype.getUserReports = function (queryString) {
|
|
554
548
|
return this.analyticsReportsEntity.getUserReports(queryString);
|
|
@@ -577,29 +571,16 @@ var AnalyticsReportsApi = /** @class */ (function () {
|
|
|
577
571
|
AnalyticsReportsApi.prototype.getActiveReportExecutions = function () {
|
|
578
572
|
return this.analyticsReportsEntity.getActiveReportExecutions();
|
|
579
573
|
};
|
|
580
|
-
AnalyticsReportsApi.prototype.
|
|
581
|
-
return this.analyticsReportsEntity.
|
|
582
|
-
};
|
|
583
|
-
AnalyticsReportsApi.prototype.exportSystemReport = function (reportId, queryParams) {
|
|
584
|
-
return this.analyticsReportsEntity.exportSystemReport(reportId, queryParams);
|
|
585
|
-
};
|
|
586
|
-
AnalyticsReportsApi.prototype.downloadUserReport = function (reportId, queryParams) {
|
|
587
|
-
return this.analyticsReportsEntity.downloadUserReport(reportId, queryParams);
|
|
588
|
-
};
|
|
589
|
-
AnalyticsReportsApi.prototype.downloadSystemReport = function (reportId, queryParams) {
|
|
590
|
-
return this.analyticsReportsEntity.downloadSystemReport(reportId, queryParams);
|
|
574
|
+
AnalyticsReportsApi.prototype.exportReport = function (reportId, queryParams) {
|
|
575
|
+
return this.analyticsReportsEntity.exportReport(reportId, queryParams);
|
|
591
576
|
};
|
|
592
|
-
AnalyticsReportsApi.prototype.
|
|
593
|
-
return
|
|
594
|
-
return __generator(this, function (_a) {
|
|
595
|
-
return [2 /*return*/, this.analyticsReportsEntity.retryUserReportExecutions(executionId)];
|
|
596
|
-
});
|
|
597
|
-
});
|
|
577
|
+
AnalyticsReportsApi.prototype.downloadReport = function (reportId, queryParams) {
|
|
578
|
+
return this.analyticsReportsEntity.downloadReport(reportId, queryParams);
|
|
598
579
|
};
|
|
599
|
-
AnalyticsReportsApi.prototype.
|
|
580
|
+
AnalyticsReportsApi.prototype.retryReportExecution = function (executionId) {
|
|
600
581
|
return __awaiter(this, void 0, void 0, function () {
|
|
601
582
|
return __generator(this, function (_a) {
|
|
602
|
-
return [2 /*return*/, this.analyticsReportsEntity.
|
|
583
|
+
return [2 /*return*/, this.analyticsReportsEntity.retryReportExecutions(executionId)];
|
|
603
584
|
});
|
|
604
585
|
});
|
|
605
586
|
};
|
|
@@ -616,51 +597,17 @@ var AnalyticsReportsApi = /** @class */ (function () {
|
|
|
616
597
|
AnalyticsReportsApi.prototype.unsubscribeReportExecutions = function () {
|
|
617
598
|
this.analyticsReportsEntity.unsubscribeReportExecutions();
|
|
618
599
|
};
|
|
619
|
-
AnalyticsReportsApi.prototype.getReportRowsCount = function (queryJson, timezone) {
|
|
620
|
-
return this.analyticsReportsEntity.getReportRowsCount(queryJson, timezone);
|
|
621
|
-
};
|
|
622
|
-
AnalyticsReportsApi.prototype.optOutReport = function (reportId) {
|
|
623
|
-
return this.analyticsReportsEntity.optOutReport(reportId);
|
|
624
|
-
};
|
|
625
|
-
/**
|
|
626
|
-
* @deprecated Use createUserReport() instead
|
|
627
|
-
*/
|
|
628
600
|
AnalyticsReportsApi.prototype.createReport = function (report) {
|
|
629
601
|
return this.analyticsReportsEntity.createReport(report);
|
|
630
602
|
};
|
|
631
|
-
/**
|
|
632
|
-
* @deprecated Use updateUserReport() instead
|
|
633
|
-
*/
|
|
634
603
|
AnalyticsReportsApi.prototype.updateReport = function (reportId, report) {
|
|
635
604
|
return this.analyticsReportsEntity.updateReport(reportId, report);
|
|
636
605
|
};
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
*/
|
|
640
|
-
AnalyticsReportsApi.prototype.deleteReport = function (reportId) {
|
|
641
|
-
return this.analyticsReportsEntity.deleteReport(reportId);
|
|
642
|
-
};
|
|
643
|
-
/**
|
|
644
|
-
* @deprecated Use exportUserReport() or exportSystemReport() instead
|
|
645
|
-
*/
|
|
646
|
-
AnalyticsReportsApi.prototype.exportReport = function (reportId, queryParams) {
|
|
647
|
-
return this.analyticsReportsEntity.exportReport(reportId, queryParams);
|
|
648
|
-
};
|
|
649
|
-
/**
|
|
650
|
-
* @deprecated Use downloadUserReport() or downloadSystemReport() instead
|
|
651
|
-
*/
|
|
652
|
-
AnalyticsReportsApi.prototype.downloadReport = function (reportId, queryParams) {
|
|
653
|
-
return this.analyticsReportsEntity.downloadReport(reportId, queryParams);
|
|
606
|
+
AnalyticsReportsApi.prototype.getReportRowsCount = function (queryJson, timezone) {
|
|
607
|
+
return this.analyticsReportsEntity.getReportRowsCount(queryJson, timezone);
|
|
654
608
|
};
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
*/
|
|
658
|
-
AnalyticsReportsApi.prototype.retryReportExecution = function (executionId) {
|
|
659
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
660
|
-
return __generator(this, function (_a) {
|
|
661
|
-
return [2 /*return*/, this.analyticsReportsEntity.retryReportExecutions(executionId)];
|
|
662
|
-
});
|
|
663
|
-
});
|
|
609
|
+
AnalyticsReportsApi.prototype.optOutReport = function (reportId) {
|
|
610
|
+
return this.analyticsReportsEntity.optOutReport(reportId);
|
|
664
611
|
};
|
|
665
612
|
return AnalyticsReportsApi;
|
|
666
613
|
}());
|
|
@@ -740,41 +687,30 @@ var createRoute = function (route, version) {
|
|
|
740
687
|
if (version === void 0) { version = Version.v1; }
|
|
741
688
|
return "".concat(BaseRoute, "/").concat(version).concat(route);
|
|
742
689
|
};
|
|
743
|
-
var
|
|
690
|
+
var Routes = {
|
|
691
|
+
GET_USER_REPORTS: createRoute('/reports'),
|
|
692
|
+
GET_SYSTEM_REPORTS: createRoute('/system-reports'),
|
|
693
|
+
GET_REPORT: createRoute('/reports/{:reportId}'),
|
|
744
694
|
CREATE_REPORT: createRoute('/reports'),
|
|
745
695
|
UPDATE_REPORT: createRoute('/reports/{:reportId}'),
|
|
746
696
|
DELETE_REPORT: createRoute('/reports/{:reportId}'),
|
|
747
|
-
START_EXPORT_REPORT: createRoute('/reports/{:reportId}/start-export'),
|
|
748
|
-
START_DOWNLOAD_REPORT: createRoute('/reports/{:reportId}/start-download'),
|
|
749
|
-
RETRY_EXECUTION_REPORT: createRoute('/report-executions/{:executionId}/retry')
|
|
750
|
-
};
|
|
751
|
-
var Routes = {
|
|
752
|
-
GET_USER_REPORTS: createRoute('/user-reports'),
|
|
753
|
-
CREATE_USER_REPORT: createRoute('/user-reports'),
|
|
754
|
-
UPDATE_USER_REPORT: createRoute('/user-reports/{:reportId}'),
|
|
755
|
-
DELETE_USER_REPORT: createRoute('/user-reports/{:reportId}'),
|
|
756
|
-
START_EXPORT_USER_REPORT: createRoute('/user-reports/{:reportId}/start-export'),
|
|
757
|
-
START_DOWNLOAD_USER_REPORT: createRoute('/user-reports/{:reportId}/start-download'),
|
|
758
|
-
OPT_OUT_SHARES: createRoute('/user-reports/{:reportId}/opt-out'),
|
|
759
|
-
GET_SYSTEM_REPORTS: createRoute('/system-reports'),
|
|
760
|
-
START_EXPORT_SYSTEM_REPORT: createRoute('/system-reports/{:reportId}/start-export'),
|
|
761
|
-
START_DOWNLOAD_SYSTEM_REPORT: createRoute('/system-reports/{:reportId}/start-download'),
|
|
762
697
|
CREATE_SCHEDULE_JOB: createRoute('/scheduled-jobs'),
|
|
763
698
|
UPDATE_SCHEDULE_JOB: createRoute('/scheduled-jobs/{:jobId}'),
|
|
764
699
|
GET_SCHEDULE_JOB: createRoute('/scheduled-jobs/{:jobId}'),
|
|
765
700
|
DELETE_SCHEDULE_JOB: createRoute('/scheduled-jobs/{:jobId}'),
|
|
766
701
|
IS_WEBHOOK_USED_IN_SCHEDULED_JOBS: createRoute('/scheduled-jobs/webhook/{:webhookUuid}/is-used'),
|
|
702
|
+
GET_API_LINK: createRoute('/api-link'),
|
|
703
|
+
START_EXPORT_REPORT: createRoute('/reports/{:reportId}/start-export'),
|
|
704
|
+
START_DOWNLOAD_REPORT: createRoute('/reports/{:reportId}/start-download'),
|
|
767
705
|
GET_ACTIVE_REPORT_EXECUTIONS: createRoute('/report-executions/active'),
|
|
706
|
+
RETRY_EXECUTION_REPORT: createRoute('/report-executions/{:executionId}/retry'),
|
|
768
707
|
REMOVE_EXECUTION_REPORT: createRoute('/report-executions/{:executionId}'),
|
|
769
|
-
|
|
770
|
-
RETRY_SYSTEM_REPORT_EXECUTION: createRoute('/report-executions/system/{:executionId}/retry'),
|
|
708
|
+
GET_REPORT_ROWS_COUNT: createRoute('/report-query/rows-count'),
|
|
771
709
|
SHARE_REPORT: createRoute('/reports/{:reportId}/shares'),
|
|
772
710
|
UPDATE_REPORT_SHARES: createRoute('/reports/{:reportId}/shares/{:reportShareId}'),
|
|
773
711
|
DELETE_REPORT_SHARES: createRoute('/reports/{:reportId}/shares/{:reportShareId}'),
|
|
774
712
|
DELETE_ALL_REPORT_SHARES: createRoute('/reports/{:reportId}/shares'),
|
|
775
|
-
|
|
776
|
-
GET_API_LINK: createRoute('/api-link'),
|
|
777
|
-
GET_REPORT_ROWS_COUNT: createRoute('/report-query/rows-count')
|
|
713
|
+
OPT_OUT_SHARES: createRoute('/reports/{:reportId}/opt-out')
|
|
778
714
|
};
|
|
779
715
|
var AnalyticsReportsEntity = /** @class */ (function (_super) {
|
|
780
716
|
__extends(AnalyticsReportsEntity, _super);
|
|
@@ -794,37 +730,34 @@ var AnalyticsReportsEntity = /** @class */ (function (_super) {
|
|
|
794
730
|
});
|
|
795
731
|
});
|
|
796
732
|
};
|
|
797
|
-
AnalyticsReportsEntity.prototype.
|
|
733
|
+
AnalyticsReportsEntity.prototype.deleteReport = function (reportId) {
|
|
798
734
|
return __awaiter(this, void 0, void 0, function () {
|
|
799
735
|
return __generator(this, function (_a) {
|
|
800
736
|
switch (_a.label) {
|
|
801
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator.
|
|
737
|
+
case 0: return [4 /*yield*/, this.service.routeGenerator.delete(Routes.DELETE_REPORT).withRouteParams({ reportId: reportId }).invoke()];
|
|
802
738
|
case 1: return [2 /*return*/, _a.sent()];
|
|
803
739
|
}
|
|
804
740
|
});
|
|
805
741
|
});
|
|
806
742
|
};
|
|
807
|
-
AnalyticsReportsEntity.prototype.
|
|
743
|
+
AnalyticsReportsEntity.prototype.createReport = function (report) {
|
|
808
744
|
return __awaiter(this, void 0, void 0, function () {
|
|
809
745
|
return __generator(this, function (_a) {
|
|
810
746
|
switch (_a.label) {
|
|
811
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
812
|
-
.put(Routes.UPDATE_USER_REPORT)
|
|
813
|
-
.withRouteParams({ reportId: reportId })
|
|
814
|
-
.withPayload(report)
|
|
815
|
-
.invoke()];
|
|
747
|
+
case 0: return [4 /*yield*/, this.service.routeGenerator.post(Routes.CREATE_REPORT).withPayload(report).invoke()];
|
|
816
748
|
case 1: return [2 /*return*/, _a.sent()];
|
|
817
749
|
}
|
|
818
750
|
});
|
|
819
751
|
});
|
|
820
752
|
};
|
|
821
|
-
AnalyticsReportsEntity.prototype.
|
|
753
|
+
AnalyticsReportsEntity.prototype.updateReport = function (reportId, report) {
|
|
822
754
|
return __awaiter(this, void 0, void 0, function () {
|
|
823
755
|
return __generator(this, function (_a) {
|
|
824
756
|
switch (_a.label) {
|
|
825
757
|
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
826
|
-
.
|
|
758
|
+
.put(Routes.UPDATE_REPORT)
|
|
827
759
|
.withRouteParams({ reportId: reportId })
|
|
760
|
+
.withPayload(report)
|
|
828
761
|
.invoke()];
|
|
829
762
|
case 1: return [2 /*return*/, _a.sent()];
|
|
830
763
|
}
|
|
@@ -918,40 +851,12 @@ var AnalyticsReportsEntity = /** @class */ (function (_super) {
|
|
|
918
851
|
});
|
|
919
852
|
});
|
|
920
853
|
};
|
|
921
|
-
AnalyticsReportsEntity.prototype.
|
|
922
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
923
|
-
return __generator(this, function (_a) {
|
|
924
|
-
switch (_a.label) {
|
|
925
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
926
|
-
.post(Routes.START_EXPORT_USER_REPORT)
|
|
927
|
-
.withRouteParams({ reportId: reportId })
|
|
928
|
-
.withPayload(queryParams)
|
|
929
|
-
.invoke()];
|
|
930
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
931
|
-
}
|
|
932
|
-
});
|
|
933
|
-
});
|
|
934
|
-
};
|
|
935
|
-
AnalyticsReportsEntity.prototype.exportSystemReport = function (reportId, queryParams) {
|
|
936
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
937
|
-
return __generator(this, function (_a) {
|
|
938
|
-
switch (_a.label) {
|
|
939
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
940
|
-
.post(Routes.START_EXPORT_SYSTEM_REPORT)
|
|
941
|
-
.withRouteParams({ reportId: reportId })
|
|
942
|
-
.withPayload(queryParams)
|
|
943
|
-
.invoke()];
|
|
944
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
945
|
-
}
|
|
946
|
-
});
|
|
947
|
-
});
|
|
948
|
-
};
|
|
949
|
-
AnalyticsReportsEntity.prototype.downloadUserReport = function (reportId, queryParams) {
|
|
854
|
+
AnalyticsReportsEntity.prototype.exportReport = function (reportId, queryParams) {
|
|
950
855
|
return __awaiter(this, void 0, void 0, function () {
|
|
951
856
|
return __generator(this, function (_a) {
|
|
952
857
|
switch (_a.label) {
|
|
953
858
|
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
954
|
-
.post(Routes.
|
|
859
|
+
.post(Routes.START_EXPORT_REPORT)
|
|
955
860
|
.withRouteParams({ reportId: reportId })
|
|
956
861
|
.withPayload(queryParams)
|
|
957
862
|
.invoke()];
|
|
@@ -960,12 +865,12 @@ var AnalyticsReportsEntity = /** @class */ (function (_super) {
|
|
|
960
865
|
});
|
|
961
866
|
});
|
|
962
867
|
};
|
|
963
|
-
AnalyticsReportsEntity.prototype.
|
|
868
|
+
AnalyticsReportsEntity.prototype.downloadReport = function (reportId, queryParams) {
|
|
964
869
|
return __awaiter(this, void 0, void 0, function () {
|
|
965
870
|
return __generator(this, function (_a) {
|
|
966
871
|
switch (_a.label) {
|
|
967
872
|
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
968
|
-
.post(Routes.
|
|
873
|
+
.post(Routes.START_DOWNLOAD_REPORT)
|
|
969
874
|
.withRouteParams({ reportId: reportId })
|
|
970
875
|
.withPayload(queryParams)
|
|
971
876
|
.invoke()];
|
|
@@ -990,25 +895,12 @@ var AnalyticsReportsEntity = /** @class */ (function (_super) {
|
|
|
990
895
|
AnalyticsReportsEntity.prototype.unsubscribeReportExecutions = function () {
|
|
991
896
|
this.service.session.persistentConnection.unsubscribe(new PubSubEvents_1.PubSubEvent('report_export_progress'));
|
|
992
897
|
};
|
|
993
|
-
AnalyticsReportsEntity.prototype.
|
|
994
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
995
|
-
return __generator(this, function (_a) {
|
|
996
|
-
switch (_a.label) {
|
|
997
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
998
|
-
.post(Routes.RETRY_USER_REPORT_EXECUTION)
|
|
999
|
-
.withRouteParams({ executionId: executionId })
|
|
1000
|
-
.invoke()];
|
|
1001
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
1002
|
-
}
|
|
1003
|
-
});
|
|
1004
|
-
});
|
|
1005
|
-
};
|
|
1006
|
-
AnalyticsReportsEntity.prototype.retrySystemReportExecutions = function (executionId) {
|
|
898
|
+
AnalyticsReportsEntity.prototype.retryReportExecutions = function (executionId) {
|
|
1007
899
|
return __awaiter(this, void 0, void 0, function () {
|
|
1008
900
|
return __generator(this, function (_a) {
|
|
1009
901
|
switch (_a.label) {
|
|
1010
902
|
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
1011
|
-
.post(Routes.
|
|
903
|
+
.post(Routes.RETRY_EXECUTION_REPORT)
|
|
1012
904
|
.withRouteParams({ executionId: executionId })
|
|
1013
905
|
.invoke()];
|
|
1014
906
|
case 1: return [2 /*return*/, _a.sent()];
|
|
@@ -1052,102 +944,6 @@ var AnalyticsReportsEntity = /** @class */ (function (_super) {
|
|
|
1052
944
|
});
|
|
1053
945
|
});
|
|
1054
946
|
};
|
|
1055
|
-
/**
|
|
1056
|
-
* @deprecated Use createUserReport() instead
|
|
1057
|
-
*/
|
|
1058
|
-
AnalyticsReportsEntity.prototype.createReport = function (report) {
|
|
1059
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1060
|
-
return __generator(this, function (_a) {
|
|
1061
|
-
switch (_a.label) {
|
|
1062
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator.post(DeprecatedRoutes.CREATE_REPORT).withPayload(report).invoke()];
|
|
1063
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
1064
|
-
}
|
|
1065
|
-
});
|
|
1066
|
-
});
|
|
1067
|
-
};
|
|
1068
|
-
/**
|
|
1069
|
-
* @deprecated Use updateUserReport() instead
|
|
1070
|
-
*/
|
|
1071
|
-
AnalyticsReportsEntity.prototype.updateReport = function (reportId, report) {
|
|
1072
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1073
|
-
return __generator(this, function (_a) {
|
|
1074
|
-
switch (_a.label) {
|
|
1075
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
1076
|
-
.put(DeprecatedRoutes.UPDATE_REPORT)
|
|
1077
|
-
.withRouteParams({ reportId: reportId })
|
|
1078
|
-
.withPayload(report)
|
|
1079
|
-
.invoke()];
|
|
1080
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
1081
|
-
}
|
|
1082
|
-
});
|
|
1083
|
-
});
|
|
1084
|
-
};
|
|
1085
|
-
/**
|
|
1086
|
-
* @deprecated Use deleteUserReport() instead
|
|
1087
|
-
*/
|
|
1088
|
-
AnalyticsReportsEntity.prototype.deleteReport = function (reportId) {
|
|
1089
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1090
|
-
return __generator(this, function (_a) {
|
|
1091
|
-
switch (_a.label) {
|
|
1092
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
1093
|
-
.delete(DeprecatedRoutes.DELETE_REPORT)
|
|
1094
|
-
.withRouteParams({ reportId: reportId })
|
|
1095
|
-
.invoke()];
|
|
1096
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
1097
|
-
}
|
|
1098
|
-
});
|
|
1099
|
-
});
|
|
1100
|
-
};
|
|
1101
|
-
/**
|
|
1102
|
-
* @deprecated Use exportUserReport() or exportSystemReport() instead
|
|
1103
|
-
*/
|
|
1104
|
-
AnalyticsReportsEntity.prototype.exportReport = function (reportId, queryParams) {
|
|
1105
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1106
|
-
return __generator(this, function (_a) {
|
|
1107
|
-
switch (_a.label) {
|
|
1108
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
1109
|
-
.post(DeprecatedRoutes.START_EXPORT_REPORT)
|
|
1110
|
-
.withRouteParams({ reportId: reportId })
|
|
1111
|
-
.withPayload(queryParams)
|
|
1112
|
-
.invoke()];
|
|
1113
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
1114
|
-
}
|
|
1115
|
-
});
|
|
1116
|
-
});
|
|
1117
|
-
};
|
|
1118
|
-
/**
|
|
1119
|
-
* @deprecated Use downloadUserReport() or downloadSystemReport() instead
|
|
1120
|
-
*/
|
|
1121
|
-
AnalyticsReportsEntity.prototype.downloadReport = function (reportId, queryParams) {
|
|
1122
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1123
|
-
return __generator(this, function (_a) {
|
|
1124
|
-
switch (_a.label) {
|
|
1125
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
1126
|
-
.post(DeprecatedRoutes.START_DOWNLOAD_REPORT)
|
|
1127
|
-
.withRouteParams({ reportId: reportId })
|
|
1128
|
-
.withPayload(queryParams)
|
|
1129
|
-
.invoke()];
|
|
1130
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
1131
|
-
}
|
|
1132
|
-
});
|
|
1133
|
-
});
|
|
1134
|
-
};
|
|
1135
|
-
/**
|
|
1136
|
-
* @deprecated Use retryUserReportExecutions() or retrySystemReportExecutions() instead
|
|
1137
|
-
*/
|
|
1138
|
-
AnalyticsReportsEntity.prototype.retryReportExecutions = function (executionId) {
|
|
1139
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1140
|
-
return __generator(this, function (_a) {
|
|
1141
|
-
switch (_a.label) {
|
|
1142
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
1143
|
-
.post(DeprecatedRoutes.RETRY_EXECUTION_REPORT)
|
|
1144
|
-
.withRouteParams({ executionId: executionId })
|
|
1145
|
-
.invoke()];
|
|
1146
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
1147
|
-
}
|
|
1148
|
-
});
|
|
1149
|
-
});
|
|
1150
|
-
};
|
|
1151
947
|
return AnalyticsReportsEntity;
|
|
1152
948
|
}(Entity_1.default));
|
|
1153
949
|
exports["default"] = AnalyticsReportsEntity;
|
|
@@ -6881,9 +6677,7 @@ var customers_service_1 = __importDefault(__webpack_require__(52639));
|
|
|
6881
6677
|
var CustomersApi = /** @class */ (function () {
|
|
6882
6678
|
function CustomersApi(session) {
|
|
6883
6679
|
var _this = this;
|
|
6884
|
-
|
|
6885
|
-
var disableCustomerObservabilityFF = !!((_a = session.user.feature_flags) === null || _a === void 0 ? void 0 : _a.disable_customer_observability);
|
|
6886
|
-
this.customersStore = new data_store_1.default(undefined, { shallow: disableCustomerObservabilityFF });
|
|
6680
|
+
this.customersStore = new data_store_1.default(undefined, { shallow: true });
|
|
6887
6681
|
this.customersService = new customers_service_1.default(session);
|
|
6888
6682
|
this.storableDataService = new storable_data_service_1.default(this.customersStore, function (customer) {
|
|
6889
6683
|
return merge_mapper_1.mergeMapper.mergeIntoExisting(_this.customersStore, customer);
|
|
@@ -17955,7 +17749,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
17955
17749
|
exports.Routes = exports.baseRoute = void 0;
|
|
17956
17750
|
exports.baseRoute = '/task-service/relay';
|
|
17957
17751
|
exports.Routes = {
|
|
17958
|
-
|
|
17752
|
+
RELAY: "".concat(exports.baseRoute)
|
|
17959
17753
|
};
|
|
17960
17754
|
//# sourceMappingURL=Relay.consts.js.map
|
|
17961
17755
|
|
|
@@ -18018,6 +17812,13 @@ var RelayApi = /** @class */ (function () {
|
|
|
18018
17812
|
});
|
|
18019
17813
|
});
|
|
18020
17814
|
};
|
|
17815
|
+
RelayApi.prototype.createRelays = function (request) {
|
|
17816
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17817
|
+
return __generator(this, function (_a) {
|
|
17818
|
+
return [2 /*return*/, this.relayService.createRelays(request)];
|
|
17819
|
+
});
|
|
17820
|
+
});
|
|
17821
|
+
};
|
|
18021
17822
|
return RelayApi;
|
|
18022
17823
|
}());
|
|
18023
17824
|
exports["default"] = RelayApi;
|
|
@@ -18080,7 +17881,7 @@ var RelayService = /** @class */ (function () {
|
|
|
18080
17881
|
return __awaiter(this, void 0, void 0, function () {
|
|
18081
17882
|
return __generator(this, function (_a) {
|
|
18082
17883
|
return [2 /*return*/, this.service.routeGenerator
|
|
18083
|
-
.get(Relay_consts_1.Routes.
|
|
17884
|
+
.get(Relay_consts_1.Routes.RELAY)
|
|
18084
17885
|
.withQueryString({ task_id: taskId })
|
|
18085
17886
|
.setException("failed to fetch relays for task ".concat(taskId))
|
|
18086
17887
|
.withCommonOptions(commonOptions)
|
|
@@ -18088,6 +17889,17 @@ var RelayService = /** @class */ (function () {
|
|
|
18088
17889
|
});
|
|
18089
17890
|
});
|
|
18090
17891
|
};
|
|
17892
|
+
RelayService.prototype.createRelays = function (relayData, commonOptions) {
|
|
17893
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17894
|
+
return __generator(this, function (_a) {
|
|
17895
|
+
return [2 /*return*/, this.service.routeGenerator
|
|
17896
|
+
.post(Relay_consts_1.Routes.RELAY)
|
|
17897
|
+
.withPayload(relayData)
|
|
17898
|
+
.withCommonOptions(commonOptions)
|
|
17899
|
+
.invoke()];
|
|
17900
|
+
});
|
|
17901
|
+
});
|
|
17902
|
+
};
|
|
18091
17903
|
return RelayService;
|
|
18092
17904
|
}());
|
|
18093
17905
|
exports["default"] = RelayService;
|
|
@@ -22915,7 +22727,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
22915
22727
|
var BringgException_1 = __webpack_require__(43605);
|
|
22916
22728
|
var Logger_1 = __importDefault(__webpack_require__(55860));
|
|
22917
22729
|
var abort_1 = __webpack_require__(34179);
|
|
22918
|
-
var version = '9.42.
|
|
22730
|
+
var version = '9.42.1';
|
|
22919
22731
|
function logErrorResponse(response) {
|
|
22920
22732
|
var data = response.data, status = response.status;
|
|
22921
22733
|
try {
|