@bringg/dashboard-sdk 9.28.10-pre.5 → 9.28.11-pre
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/Services/ServiceRequest.js +1 -1
- package/dist/TasksExplorer/Services/tasks-explorer-service.d.ts +2 -1
- package/dist/TasksExplorer/Services/tasks-explorer-service.js +17 -1
- package/dist/TasksExplorer/Services/tasks-explorer-service.js.map +1 -1
- package/dist/TasksExplorer/v2/tasks-explorer-api.d.ts +2 -1
- package/dist/TasksExplorer/v2/tasks-explorer-api.js +8 -0
- package/dist/TasksExplorer/v2/tasks-explorer-api.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +30 -23
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +6 -17
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/dist/data-store.js +2 -10
- package/dist/data-store.js.map +1 -1
- package/package.json +2 -2
|
@@ -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.28.
|
|
59
|
+
var version = '9.28.11-pre';
|
|
60
60
|
function logErrorResponse(response) {
|
|
61
61
|
var data = response.data, status = response.status;
|
|
62
62
|
try {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { DispatcherV2Request, DispatcherV2Response } from '@bringg/types';
|
|
1
|
+
import { AggregationRequest, AggregationResponse, DispatcherV2Request, DispatcherV2Response } from '@bringg/types';
|
|
2
2
|
import { CommonOptions } from '../../Core/RouteGenerator';
|
|
3
3
|
import Session from '../../Services/Identity/Session';
|
|
4
4
|
export default class TasksExplorerService {
|
|
5
5
|
private readonly service;
|
|
6
6
|
constructor(session: Session);
|
|
7
7
|
getAll(req: DispatcherV2Request, commonOptions?: CommonOptions): Promise<DispatcherV2Response>;
|
|
8
|
+
getAggregations(req: AggregationRequest, commonOptions?: CommonOptions): Promise<AggregationResponse>;
|
|
8
9
|
}
|
|
@@ -42,6 +42,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
var CrudService_1 = __importDefault(require("../../Core/CrudService"));
|
|
43
43
|
var baseUrl = 'data-query-service';
|
|
44
44
|
var entityName = 'tasks-explorer';
|
|
45
|
+
var Routes = {
|
|
46
|
+
GET_ALL: "/".concat(baseUrl, "/").concat(entityName),
|
|
47
|
+
GET_AGGREGATIONS: "/".concat(baseUrl, "/aggregation")
|
|
48
|
+
};
|
|
45
49
|
var TasksExplorerService = /** @class */ (function () {
|
|
46
50
|
function TasksExplorerService(session) {
|
|
47
51
|
this.service = new CrudService_1.default(session, entityName);
|
|
@@ -50,7 +54,7 @@ var TasksExplorerService = /** @class */ (function () {
|
|
|
50
54
|
return __awaiter(this, void 0, void 0, function () {
|
|
51
55
|
return __generator(this, function (_a) {
|
|
52
56
|
return [2 /*return*/, this.service.routeGenerator
|
|
53
|
-
.post(
|
|
57
|
+
.post(Routes.GET_ALL)
|
|
54
58
|
.withPayload(req)
|
|
55
59
|
.setException("failed to fetch tasks")
|
|
56
60
|
.withCommonOptions(commonOptions)
|
|
@@ -58,6 +62,18 @@ var TasksExplorerService = /** @class */ (function () {
|
|
|
58
62
|
});
|
|
59
63
|
});
|
|
60
64
|
};
|
|
65
|
+
TasksExplorerService.prototype.getAggregations = function (req, commonOptions) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
67
|
+
return __generator(this, function (_a) {
|
|
68
|
+
return [2 /*return*/, this.service.routeGenerator
|
|
69
|
+
.post(Routes.GET_AGGREGATIONS)
|
|
70
|
+
.withPayload(req)
|
|
71
|
+
.setException("failed to fetch aggregations")
|
|
72
|
+
.withCommonOptions(commonOptions)
|
|
73
|
+
.invoke()];
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
};
|
|
61
77
|
return TasksExplorerService;
|
|
62
78
|
}());
|
|
63
79
|
exports.default = TasksExplorerService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks-explorer-service.js","sourceRoot":"","sources":["../../../src/TasksExplorer/Services/tasks-explorer-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uEAAiD;AAIjD,IAAM,OAAO,GAAG,oBAAoB,CAAC;AACrC,IAAM,UAAU,GAAG,gBAAgB,CAAC;AAEpC;IAGC,8BAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACrD,CAAC;IAEY,qCAAM,GAAnB,UAAoB,GAAwB,EAAE,aAA6B;;;gBAC1E,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"tasks-explorer-service.js","sourceRoot":"","sources":["../../../src/TasksExplorer/Services/tasks-explorer-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uEAAiD;AAIjD,IAAM,OAAO,GAAG,oBAAoB,CAAC;AACrC,IAAM,UAAU,GAAG,gBAAgB,CAAC;AAEpC,IAAM,MAAM,GAAG;IACd,OAAO,EAAE,WAAI,OAAO,cAAI,UAAU,CAAE;IACpC,gBAAgB,EAAE,WAAI,OAAO,iBAAc;CAC3C,CAAC;AAEF;IAGC,8BAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACrD,CAAC;IAEY,qCAAM,GAAnB,UAAoB,GAAwB,EAAE,aAA6B;;;gBAC1E,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;yBACpB,WAAW,CAAC,GAAG,CAAC;yBAChB,YAAY,CAAC,uBAAuB,CAAC;yBACrC,iBAAiB,CAAC,aAAa,CAAC;yBAChC,MAAM,EAA8C,EAAC;;;KACvD;IAEY,8CAAe,GAA5B,UAA6B,GAAuB,EAAE,aAA6B;;;gBAClF,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;yBAC7B,WAAW,CAAC,GAAG,CAAC;yBAChB,YAAY,CAAC,8BAA8B,CAAC;yBAC5C,iBAAiB,CAAC,aAAa,CAAC;yBAChC,MAAM,EAA4C,EAAC;;;KACrD;IACF,2BAAC;AAAD,CAAC,AAxBD,IAwBC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { DispatcherV2Request, DispatcherV2Response } from '@bringg/types';
|
|
1
|
+
import { AggregationRequest, AggregationResponse, DispatcherV2Request, DispatcherV2Response } from '@bringg/types';
|
|
2
2
|
import { CommonOptions } from '../../Core/RouteGenerator';
|
|
3
3
|
import Session from '../../Services/Identity/Session';
|
|
4
4
|
export default class TasksExplorerApi {
|
|
5
5
|
private readonly tasksExplorerService;
|
|
6
6
|
constructor(session: Session);
|
|
7
7
|
getAll(req: DispatcherV2Request, commonOptions?: CommonOptions): Promise<DispatcherV2Response>;
|
|
8
|
+
getAggregations(req: AggregationRequest, commonOptions?: CommonOptions): Promise<AggregationResponse>;
|
|
8
9
|
}
|
|
@@ -52,6 +52,14 @@ var TasksExplorerApi = /** @class */ (function () {
|
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
|
+
TasksExplorerApi.prototype.getAggregations = function (req, commonOptions) {
|
|
56
|
+
if (commonOptions === void 0) { commonOptions = {}; }
|
|
57
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
58
|
+
return __generator(this, function (_a) {
|
|
59
|
+
return [2 /*return*/, this.tasksExplorerService.getAggregations(req, commonOptions)];
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
};
|
|
55
63
|
return TasksExplorerApi;
|
|
56
64
|
}());
|
|
57
65
|
exports.default = TasksExplorerApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks-explorer-api.js","sourceRoot":"","sources":["../../../src/TasksExplorer/v2/tasks-explorer-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,8FAAsE;AAEtE;IAGC,0BAAY,OAAgB;QAC3B,IAAI,CAAC,oBAAoB,GAAG,IAAI,gCAAoB,CAAC,OAAO,CAAC,CAAC;IAC/D,CAAC;IAEY,iCAAM,GAAnB,UAAoB,GAAwB,EAAE,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;gBAC9E,sBAAO,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,EAAC;;;KAC5D;IACF,uBAAC;AAAD,CAAC,
|
|
1
|
+
{"version":3,"file":"tasks-explorer-api.js","sourceRoot":"","sources":["../../../src/TasksExplorer/v2/tasks-explorer-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,8FAAsE;AAEtE;IAGC,0BAAY,OAAgB;QAC3B,IAAI,CAAC,oBAAoB,GAAG,IAAI,gCAAoB,CAAC,OAAO,CAAC,CAAC;IAC/D,CAAC;IAEY,iCAAM,GAAnB,UAAoB,GAAwB,EAAE,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;gBAC9E,sBAAO,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,EAAC;;;KAC5D;IAEY,0CAAe,GAA5B,UACC,GAAuB,EACvB,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;gBAEjC,sBAAO,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,GAAG,EAAE,aAAa,CAAC,EAAC;;;KACrE;IACF,uBAAC;AAAD,CAAC,AAjBD,IAiBC"}
|
|
@@ -22745,7 +22745,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
22745
22745
|
var BringgException_1 = __webpack_require__(43605);
|
|
22746
22746
|
var Logger_1 = __importDefault(__webpack_require__(55860));
|
|
22747
22747
|
var abort_1 = __webpack_require__(34179);
|
|
22748
|
-
var version = '9.28.
|
|
22748
|
+
var version = '9.28.11-pre';
|
|
22749
22749
|
function logErrorResponse(response) {
|
|
22750
22750
|
var data = response.data, status = response.status;
|
|
22751
22751
|
try {
|
|
@@ -27371,6 +27371,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
27371
27371
|
var CrudService_1 = __importDefault(__webpack_require__(14809));
|
|
27372
27372
|
var baseUrl = 'data-query-service';
|
|
27373
27373
|
var entityName = 'tasks-explorer';
|
|
27374
|
+
var Routes = {
|
|
27375
|
+
GET_ALL: "/".concat(baseUrl, "/").concat(entityName),
|
|
27376
|
+
GET_AGGREGATIONS: "/".concat(baseUrl, "/aggregation")
|
|
27377
|
+
};
|
|
27374
27378
|
var TasksExplorerService = /** @class */ (function () {
|
|
27375
27379
|
function TasksExplorerService(session) {
|
|
27376
27380
|
this.service = new CrudService_1.default(session, entityName);
|
|
@@ -27379,7 +27383,7 @@ var TasksExplorerService = /** @class */ (function () {
|
|
|
27379
27383
|
return __awaiter(this, void 0, void 0, function () {
|
|
27380
27384
|
return __generator(this, function (_a) {
|
|
27381
27385
|
return [2 /*return*/, this.service.routeGenerator
|
|
27382
|
-
.post(
|
|
27386
|
+
.post(Routes.GET_ALL)
|
|
27383
27387
|
.withPayload(req)
|
|
27384
27388
|
.setException("failed to fetch tasks")
|
|
27385
27389
|
.withCommonOptions(commonOptions)
|
|
@@ -27387,6 +27391,18 @@ var TasksExplorerService = /** @class */ (function () {
|
|
|
27387
27391
|
});
|
|
27388
27392
|
});
|
|
27389
27393
|
};
|
|
27394
|
+
TasksExplorerService.prototype.getAggregations = function (req, commonOptions) {
|
|
27395
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
27396
|
+
return __generator(this, function (_a) {
|
|
27397
|
+
return [2 /*return*/, this.service.routeGenerator
|
|
27398
|
+
.post(Routes.GET_AGGREGATIONS)
|
|
27399
|
+
.withPayload(req)
|
|
27400
|
+
.setException("failed to fetch aggregations")
|
|
27401
|
+
.withCommonOptions(commonOptions)
|
|
27402
|
+
.invoke()];
|
|
27403
|
+
});
|
|
27404
|
+
});
|
|
27405
|
+
};
|
|
27390
27406
|
return TasksExplorerService;
|
|
27391
27407
|
}());
|
|
27392
27408
|
exports["default"] = TasksExplorerService;
|
|
@@ -27452,6 +27468,14 @@ var TasksExplorerApi = /** @class */ (function () {
|
|
|
27452
27468
|
});
|
|
27453
27469
|
});
|
|
27454
27470
|
};
|
|
27471
|
+
TasksExplorerApi.prototype.getAggregations = function (req, commonOptions) {
|
|
27472
|
+
if (commonOptions === void 0) { commonOptions = {}; }
|
|
27473
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
27474
|
+
return __generator(this, function (_a) {
|
|
27475
|
+
return [2 /*return*/, this.tasksExplorerService.getAggregations(req, commonOptions)];
|
|
27476
|
+
});
|
|
27477
|
+
});
|
|
27478
|
+
};
|
|
27455
27479
|
return TasksExplorerApi;
|
|
27456
27480
|
}());
|
|
27457
27481
|
exports["default"] = TasksExplorerApi;
|
|
@@ -32886,7 +32910,6 @@ var DataStore = /** @class */ (function () {
|
|
|
32886
32910
|
return this.allItems;
|
|
32887
32911
|
};
|
|
32888
32912
|
DataStore.prototype.getGroup = function (group, groupValue) {
|
|
32889
|
-
console.log('rrrrr getGroup', this.getGroupItems(group, groupValue));
|
|
32890
32913
|
return Object.values(this.getGroupItems(group, groupValue));
|
|
32891
32914
|
};
|
|
32892
32915
|
DataStore.prototype.set = function (item) {
|
|
@@ -33047,7 +33070,7 @@ var DataStore = /** @class */ (function () {
|
|
|
33047
33070
|
};
|
|
33048
33071
|
DataStore.prototype.getGroupItems = function (groupType, groupValue) {
|
|
33049
33072
|
var _this = this;
|
|
33050
|
-
var _a
|
|
33073
|
+
var _a;
|
|
33051
33074
|
if (Array.isArray(groupValue)) {
|
|
33052
33075
|
return groupValue.reduce(function (all, group) {
|
|
33053
33076
|
var groupItems = _this.itemsByGroups.get(groupType).get(group) || {};
|
|
@@ -33055,14 +33078,7 @@ var DataStore = /** @class */ (function () {
|
|
|
33055
33078
|
return all;
|
|
33056
33079
|
}, {});
|
|
33057
33080
|
}
|
|
33058
|
-
|
|
33059
|
-
var b = this.itemsByGroups.get(groupType);
|
|
33060
|
-
var c = groupValue;
|
|
33061
|
-
console.log('rrrrrprops', itemsByGroup, b, c);
|
|
33062
|
-
console.log('rrrrResponse', this.itemsByGroups.get(groupType));
|
|
33063
|
-
console.log('rrrrResponse2', ((_a = this.itemsByGroups.get(groupType)) === null || _a === void 0 ? void 0 : _a.get(groupValue)) || {});
|
|
33064
|
-
console.log('rrrrResponse3', (_b = this.itemsByGroups.get(groupType)) === null || _b === void 0 ? void 0 : _b.get(groupValue));
|
|
33065
|
-
return ((_c = this.itemsByGroups.get(groupType)) === null || _c === void 0 ? void 0 : _c.get(groupValue)) || {};
|
|
33081
|
+
return ((_a = this.itemsByGroups.get(groupType)) === null || _a === void 0 ? void 0 : _a.get(groupValue)) || {};
|
|
33066
33082
|
};
|
|
33067
33083
|
DataStore.prototype.getGroupKey = function (groupType, groupValue) {
|
|
33068
33084
|
return "".concat(groupType, "-").concat(groupValue);
|
|
@@ -36032,7 +36048,6 @@ __exportStar(__webpack_require__(89792), exports);
|
|
|
36032
36048
|
__exportStar(__webpack_require__(29414), exports);
|
|
36033
36049
|
__exportStar(__webpack_require__(5961), exports);
|
|
36034
36050
|
__exportStar(__webpack_require__(72615), exports);
|
|
36035
|
-
__exportStar(__webpack_require__(32657), exports);
|
|
36036
36051
|
//# sourceMappingURL=index.js.map
|
|
36037
36052
|
|
|
36038
36053
|
/***/ }),
|
|
@@ -36185,16 +36200,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
36185
36200
|
|
|
36186
36201
|
/***/ }),
|
|
36187
36202
|
|
|
36188
|
-
/***/ 32657:
|
|
36189
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
36190
|
-
|
|
36191
|
-
"use strict";
|
|
36192
|
-
|
|
36193
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
36194
|
-
//# sourceMappingURL=users_permissions.js.map
|
|
36195
|
-
|
|
36196
|
-
/***/ }),
|
|
36197
|
-
|
|
36198
36203
|
/***/ 21434:
|
|
36199
36204
|
/***/ ((__unused_webpack_module, exports) => {
|
|
36200
36205
|
|
|
@@ -37570,6 +37575,7 @@ var FleetType;
|
|
|
37570
37575
|
FleetType[FleetType["DriveYello"] = 32] = "DriveYello";
|
|
37571
37576
|
FleetType[FleetType["Internal"] = 33] = "Internal";
|
|
37572
37577
|
FleetType[FleetType["Faction"] = 34] = "Faction";
|
|
37578
|
+
FleetType[FleetType["Walmart"] = 35] = "Walmart";
|
|
37573
37579
|
FleetType[FleetType["EmulatedDeliveryProvider"] = 999] = "EmulatedDeliveryProvider";
|
|
37574
37580
|
})(FleetType || (exports.FleetType = FleetType = {}));
|
|
37575
37581
|
exports.FleetTypeToCapabilities = (_a = {},
|
|
@@ -37629,6 +37635,7 @@ exports.FleetTypeToCapabilities = (_a = {},
|
|
|
37629
37635
|
},
|
|
37630
37636
|
_a[FleetType.Internal] = { create_delivery: true, get_quote: true, update_delivery: true, is_green: false },
|
|
37631
37637
|
_a[FleetType.Faction] = { create_delivery: true, get_quote: true, update_delivery: true, is_green: true },
|
|
37638
|
+
_a[FleetType.Walmart] = { create_delivery: true, get_quote: true, update_delivery: true, is_green: false },
|
|
37632
37639
|
_a);
|
|
37633
37640
|
//# sourceMappingURL=fleet.js.map
|
|
37634
37641
|
|