@bringg/dashboard-sdk 0.16.4 → 0.17.0
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/PlannedRoutes/Entity/PlannedRoutesEntity.d.ts +1 -0
- package/dist/PlannedRoutes/Entity/PlannedRoutesEntity.js +10 -1
- package/dist/PlannedRoutes/Entity/PlannedRoutesEntity.js.map +1 -1
- package/dist/PlannedRoutes/PlannedRoutesApi.d.ts +1 -0
- package/dist/PlannedRoutes/PlannedRoutesApi.js +3 -0
- package/dist/PlannedRoutes/PlannedRoutesApi.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +14 -2
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +3 -3
- package/dist/bringg-dashboard-sdk.min.js +2 -2
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,5 +6,6 @@ declare class PlannedRoutesEntity extends StoreEntity<Bringg.PlannedRoute> {
|
|
|
6
6
|
constructor(session: Session);
|
|
7
7
|
getAll(): Promise<any>;
|
|
8
8
|
getAllByTeam(teamId: number): Promise<Bringg.PlannedRoute[]>;
|
|
9
|
+
getBatchByTeamIds(team_ids: number[]): Promise<Bringg.PlannedRoute[]>;
|
|
9
10
|
}
|
|
10
11
|
export default PlannedRoutesEntity;
|
|
@@ -21,7 +21,8 @@ var StoreEntity_1 = require("../../Core/StoreEntity");
|
|
|
21
21
|
var extractor = function (response) { return response.planned_routes; };
|
|
22
22
|
exports.extractor = extractor;
|
|
23
23
|
var Routes = {
|
|
24
|
-
GET_PLANNED_ROUTES_BY_TEAM: '/teams/{:teamId}/planned_routes'
|
|
24
|
+
GET_PLANNED_ROUTES_BY_TEAM: '/teams/{:teamId}/planned_routes',
|
|
25
|
+
GET_BATCH_BY_TEAM_IDS: '/planned_routes/batch_get'
|
|
25
26
|
};
|
|
26
27
|
var PlannedRoutesEntity = /** @class */ (function (_super) {
|
|
27
28
|
__extends(PlannedRoutesEntity, _super);
|
|
@@ -43,6 +44,14 @@ var PlannedRoutesEntity = /** @class */ (function (_super) {
|
|
|
43
44
|
.withRouteParams({ teamId: teamId })
|
|
44
45
|
.invoke();
|
|
45
46
|
};
|
|
47
|
+
PlannedRoutesEntity.prototype.getBatchByTeamIds = function (team_ids) {
|
|
48
|
+
return this.service.routeGenerator
|
|
49
|
+
.get(Routes.GET_BATCH_BY_TEAM_IDS)
|
|
50
|
+
.withExtractor(exports.extractor)
|
|
51
|
+
.setException("Could not fetch planned routes for the teams " + team_ids.toString())
|
|
52
|
+
.withQueryString({ team_ids: team_ids })
|
|
53
|
+
.invoke();
|
|
54
|
+
};
|
|
46
55
|
return PlannedRoutesEntity;
|
|
47
56
|
}(StoreEntity_1.default));
|
|
48
57
|
exports.default = PlannedRoutesEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlannedRoutesEntity.js","sourceRoot":"","sources":["../../../src/PlannedRoutes/Entity/PlannedRoutesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,4CAA+C;AAC/C,sDAAiD;AAI1C,IAAM,SAAS,GAAG,UAAC,QAA+B,IAAK,OAAA,QAAQ,CAAC,cAAc,EAAvB,CAAuB,CAAC;AAAzE,QAAA,SAAS,aAAgE;AAEtF,IAAM,MAAM,GAAG;IACd,0BAA0B,EAAE,iCAAiC;
|
|
1
|
+
{"version":3,"file":"PlannedRoutesEntity.js","sourceRoot":"","sources":["../../../src/PlannedRoutes/Entity/PlannedRoutesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,4CAA+C;AAC/C,sDAAiD;AAI1C,IAAM,SAAS,GAAG,UAAC,QAA+B,IAAK,OAAA,QAAQ,CAAC,cAAc,EAAvB,CAAuB,CAAC;AAAzE,QAAA,SAAS,aAAgE;AAEtF,IAAM,MAAM,GAAG;IACd,0BAA0B,EAAE,iCAAiC;IAC7D,qBAAqB,EAAE,2BAA2B;CAClD,CAAC;AAEF;IAAkC,uCAAgC;IACjE,6BAAY,OAAgB;eAC3B,kBAAM;YACL,OAAO,SAAA;YACP,UAAU,EAAE,gBAAgB;YAC5B,MAAM,EAAE,CAAC,mBAAU,CAAC,MAAM,CAAC;SAC3B,CAAC;IACH,CAAC;IAED,oCAAM,GAAN;QACC,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,iBAAS,EAAE,iBAAS,CAAC,CAAC;IACvD,CAAC;IAEM,0CAAY,GAAnB,UAAoB,MAAc;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc;aAChC,GAAG,CAAC,MAAM,CAAC,0BAA0B,CAAC;aACtC,aAAa,CAAC,iBAAS,CAAC;aACxB,YAAY,CAAC,iDAA+C,MAAQ,CAAC;aACrE,eAAe,CAAC,EAAE,MAAM,QAAA,EAAE,CAAC;aAC3B,MAAM,EAAE,CAAC;IACZ,CAAC;IAEM,+CAAiB,GAAxB,UAAyB,QAAkB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc;aAChC,GAAG,CAAC,MAAM,CAAC,qBAAqB,CAAC;aACjC,aAAa,CAAC,iBAAS,CAAC;aACxB,YAAY,CAAC,kDAAgD,QAAQ,CAAC,QAAQ,EAAI,CAAC;aACnF,eAAe,CAAC,EAAE,QAAQ,UAAA,EAAE,CAAC;aAC7B,MAAM,EAAE,CAAC;IACZ,CAAC;IACF,0BAAC;AAAD,CAAC,AA9BD,CAAkC,qBAAW,GA8B5C;AAED,kBAAe,mBAAmB,CAAC"}
|
|
@@ -11,6 +11,9 @@ var PlannedRoutes = /** @class */ (function () {
|
|
|
11
11
|
PlannedRoutes.prototype.getAll = function () {
|
|
12
12
|
return this.plannedRoutesEntity.getAll();
|
|
13
13
|
};
|
|
14
|
+
PlannedRoutes.prototype.getBatchByTeamIds = function (teamIds) {
|
|
15
|
+
return this.plannedRoutesEntity.getBatchByTeamIds(teamIds);
|
|
16
|
+
};
|
|
14
17
|
return PlannedRoutes;
|
|
15
18
|
}());
|
|
16
19
|
exports.default = PlannedRoutes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlannedRoutesApi.js","sourceRoot":"","sources":["../../src/PlannedRoutes/PlannedRoutesApi.ts"],"names":[],"mappings":";;AAEA,oEAA+D;AAE/D;IAGC,uBAAY,OAAgB;QAC3B,IAAI,CAAC,mBAAmB,GAAG,IAAI,6BAAmB,CAAC,OAAO,CAAC,CAAC;IAC7D,CAAC;IAEM,oCAAY,GAAnB,UAAoB,MAAc;QACjC,OAAO,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;IAEM,8BAAM,GAAb;QACC,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,EAAE,CAAC;IAC1C,CAAC;IACF,oBAAC;AAAD,CAAC,
|
|
1
|
+
{"version":3,"file":"PlannedRoutesApi.js","sourceRoot":"","sources":["../../src/PlannedRoutes/PlannedRoutesApi.ts"],"names":[],"mappings":";;AAEA,oEAA+D;AAE/D;IAGC,uBAAY,OAAgB;QAC3B,IAAI,CAAC,mBAAmB,GAAG,IAAI,6BAAmB,CAAC,OAAO,CAAC,CAAC;IAC7D,CAAC;IAEM,oCAAY,GAAnB,UAAoB,MAAc;QACjC,OAAO,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;IAEM,8BAAM,GAAb;QACC,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,EAAE,CAAC;IAC1C,CAAC;IAEM,yCAAiB,GAAxB,UAAyB,OAAiB;QACzC,OAAO,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IACF,oBAAC;AAAD,CAAC,AAlBD,IAkBC"}
|
|
@@ -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.
|
|
55
|
+
var version = '0.17.0';
|
|
56
56
|
function logErrorResponse(response) {
|
|
57
57
|
var data = response.data, status = response.status;
|
|
58
58
|
try {
|
|
@@ -30495,7 +30495,7 @@ var axios_1 = __webpack_require__(148);
|
|
|
30495
30495
|
var Logger_1 = __webpack_require__(39);
|
|
30496
30496
|
var lodash_1 = __webpack_require__(11);
|
|
30497
30497
|
var BringgException_1 = __webpack_require__(15);
|
|
30498
|
-
var version = '0.
|
|
30498
|
+
var version = '0.17.0';
|
|
30499
30499
|
function logErrorResponse(response) {
|
|
30500
30500
|
var data = response.data, status = response.status;
|
|
30501
30501
|
try {
|
|
@@ -48512,6 +48512,9 @@ var PlannedRoutes = /** @class */ (function () {
|
|
|
48512
48512
|
PlannedRoutes.prototype.getAll = function () {
|
|
48513
48513
|
return this.plannedRoutesEntity.getAll();
|
|
48514
48514
|
};
|
|
48515
|
+
PlannedRoutes.prototype.getBatchByTeamIds = function (teamIds) {
|
|
48516
|
+
return this.plannedRoutesEntity.getBatchByTeamIds(teamIds);
|
|
48517
|
+
};
|
|
48515
48518
|
return PlannedRoutes;
|
|
48516
48519
|
}());
|
|
48517
48520
|
exports.default = PlannedRoutes;
|
|
@@ -48545,7 +48548,8 @@ var StoreEntity_1 = __webpack_require__(8);
|
|
|
48545
48548
|
var extractor = function (response) { return response.planned_routes; };
|
|
48546
48549
|
exports.extractor = extractor;
|
|
48547
48550
|
var Routes = {
|
|
48548
|
-
GET_PLANNED_ROUTES_BY_TEAM: '/teams/{:teamId}/planned_routes'
|
|
48551
|
+
GET_PLANNED_ROUTES_BY_TEAM: '/teams/{:teamId}/planned_routes',
|
|
48552
|
+
GET_BATCH_BY_TEAM_IDS: '/planned_routes/batch_get'
|
|
48549
48553
|
};
|
|
48550
48554
|
var PlannedRoutesEntity = /** @class */ (function (_super) {
|
|
48551
48555
|
__extends(PlannedRoutesEntity, _super);
|
|
@@ -48567,6 +48571,14 @@ var PlannedRoutesEntity = /** @class */ (function (_super) {
|
|
|
48567
48571
|
.withRouteParams({ teamId: teamId })
|
|
48568
48572
|
.invoke();
|
|
48569
48573
|
};
|
|
48574
|
+
PlannedRoutesEntity.prototype.getBatchByTeamIds = function (team_ids) {
|
|
48575
|
+
return this.service.routeGenerator
|
|
48576
|
+
.get(Routes.GET_BATCH_BY_TEAM_IDS)
|
|
48577
|
+
.withExtractor(exports.extractor)
|
|
48578
|
+
.setException("Could not fetch planned routes for the teams " + team_ids.toString())
|
|
48579
|
+
.withQueryString({ team_ids: team_ids })
|
|
48580
|
+
.invoke();
|
|
48581
|
+
};
|
|
48570
48582
|
return PlannedRoutesEntity;
|
|
48571
48583
|
}(StoreEntity_1.default));
|
|
48572
48584
|
exports.default = PlannedRoutesEntity;
|