@bringg/dashboard-sdk 8.13.0 → 8.13.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/BringgDashboardSDK.d.ts +3 -2
- package/dist/BringgDashboardSDK.js +5 -3
- package/dist/BringgDashboardSDK.js.map +1 -1
- package/dist/OptimizationKpi/v2/OptimizationKpiApi.d.ts +7 -0
- package/dist/{Kpi/KpiApi.js → OptimizationKpi/v2/OptimizationKpiApi.js} +11 -11
- package/dist/OptimizationKpi/v2/OptimizationKpiApi.js.map +1 -0
- package/dist/OptimizationKpi/v2/optimization-kpi-service.d.ts +10 -0
- package/dist/{Kpi/Entity/KpiEntity.js → OptimizationKpi/v2/optimization-kpi-service.js} +15 -29
- package/dist/OptimizationKpi/v2/optimization-kpi-service.js.map +1 -0
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +150 -162
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +24 -24
- 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/Kpi/Entity/KpiEntity.d.ts +0 -7
- package/dist/Kpi/Entity/KpiEntity.js.map +0 -1
- package/dist/Kpi/KpiApi.d.ts +0 -7
- package/dist/Kpi/KpiApi.js.map +0 -1
|
@@ -2360,7 +2360,6 @@ var GeocodingApi_1 = __webpack_require__(87206);
|
|
|
2360
2360
|
var GoogleMapsHelperApi_1 = __webpack_require__(37828);
|
|
2361
2361
|
var Inventory_1 = __webpack_require__(74033);
|
|
2362
2362
|
var InventoryActionsConfiguration_1 = __webpack_require__(7373);
|
|
2363
|
-
var KpiApi_1 = __webpack_require__(72724);
|
|
2364
2363
|
var Language_1 = __webpack_require__(67092);
|
|
2365
2364
|
var LegacyReportsApi_1 = __webpack_require__(16761);
|
|
2366
2365
|
var lookup_api_1 = __webpack_require__(96142);
|
|
@@ -2374,6 +2373,7 @@ var OnboardingApi_1 = __webpack_require__(3481);
|
|
|
2374
2373
|
var OpenFleetApi_1 = __webpack_require__(99497);
|
|
2375
2374
|
var OptimizationConfiguration_1 = __webpack_require__(17859);
|
|
2376
2375
|
var OptimizationConfigurationV2_1 = __webpack_require__(28719);
|
|
2376
|
+
var OptimizationKpiApi_1 = __webpack_require__(42068);
|
|
2377
2377
|
var optimization_result_api_1 = __webpack_require__(51991);
|
|
2378
2378
|
var PackageApi_1 = __webpack_require__(67595);
|
|
2379
2379
|
var ParkingSpotApi_1 = __webpack_require__(43401);
|
|
@@ -2441,6 +2441,7 @@ var BringgDashboardSDK = /** @class */ (function () {
|
|
|
2441
2441
|
this.applicationMerchantConfiguration = null;
|
|
2442
2442
|
this.applicationTeamConfiguration = null;
|
|
2443
2443
|
this.chat = null;
|
|
2444
|
+
this.optimizationKpi = null;
|
|
2444
2445
|
this.companies = null;
|
|
2445
2446
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
2446
2447
|
this.credentials = {};
|
|
@@ -2691,7 +2692,8 @@ function init(session) {
|
|
|
2691
2692
|
floatingInventories: new floating_inventories_api_1.FloatingInventoriesApi(session),
|
|
2692
2693
|
deliveryWindows: new delivery_windows_api_1.default(session),
|
|
2693
2694
|
taskManagedAttributes: new TaskManagedAttributes_1.TaskManagedAttributesApi(session),
|
|
2694
|
-
chat: new Chat_1.default(session)
|
|
2695
|
+
chat: new Chat_1.default(session),
|
|
2696
|
+
optimizationKpi: new OptimizationKpiApi_1.default(session)
|
|
2695
2697
|
};
|
|
2696
2698
|
bringg.application = new ApplicationApi_1.default(session);
|
|
2697
2699
|
bringg.chat = new ChatConversationApi_1.default(session);
|
|
@@ -2778,7 +2780,7 @@ function init(session) {
|
|
|
2778
2780
|
bringg.asyncOperationStatus = new AsyncOperationStatus_1.AsyncOperationStatus(session);
|
|
2779
2781
|
bringg.addons = new AddonsApi_1.default(session);
|
|
2780
2782
|
bringg.supportTicket = new SupportTicketApi_1.default(session);
|
|
2781
|
-
bringg.
|
|
2783
|
+
bringg.optimizationKpi = new OptimizationKpiApi_1.default(session);
|
|
2782
2784
|
// dependent
|
|
2783
2785
|
bringg.crews = new Crew_1.default(session, bringg.users);
|
|
2784
2786
|
bringg.applicationMerchantConfiguration = new ApplicationMerchantConfigurationApi_1.default(session, bringg.merchantConfiguration);
|
|
@@ -10470,164 +10472,6 @@ exports["default"] = InventoryActionsConfiguration;
|
|
|
10470
10472
|
|
|
10471
10473
|
/***/ }),
|
|
10472
10474
|
|
|
10473
|
-
/***/ 68300:
|
|
10474
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
10475
|
-
|
|
10476
|
-
"use strict";
|
|
10477
|
-
|
|
10478
|
-
var __extends = (this && this.__extends) || (function () {
|
|
10479
|
-
var extendStatics = function (d, b) {
|
|
10480
|
-
extendStatics = Object.setPrototypeOf ||
|
|
10481
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10482
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10483
|
-
return extendStatics(d, b);
|
|
10484
|
-
};
|
|
10485
|
-
return function (d, b) {
|
|
10486
|
-
if (typeof b !== "function" && b !== null)
|
|
10487
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10488
|
-
extendStatics(d, b);
|
|
10489
|
-
function __() { this.constructor = d; }
|
|
10490
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10491
|
-
};
|
|
10492
|
-
})();
|
|
10493
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10494
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10495
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10496
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
10497
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10498
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10499
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10500
|
-
});
|
|
10501
|
-
};
|
|
10502
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
10503
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10504
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
10505
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10506
|
-
function step(op) {
|
|
10507
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
10508
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
10509
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
10510
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
10511
|
-
switch (op[0]) {
|
|
10512
|
-
case 0: case 1: t = op; break;
|
|
10513
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
10514
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
10515
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
10516
|
-
default:
|
|
10517
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
10518
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
10519
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
10520
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
10521
|
-
if (t[2]) _.ops.pop();
|
|
10522
|
-
_.trys.pop(); continue;
|
|
10523
|
-
}
|
|
10524
|
-
op = body.call(thisArg, _);
|
|
10525
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
10526
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10527
|
-
}
|
|
10528
|
-
};
|
|
10529
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10530
|
-
var Entity_1 = __webpack_require__(7483);
|
|
10531
|
-
var Routes = {
|
|
10532
|
-
CREATE: '/own-fleet-optimization-service/route_kpi'
|
|
10533
|
-
};
|
|
10534
|
-
var KpiEntity = /** @class */ (function (_super) {
|
|
10535
|
-
__extends(KpiEntity, _super);
|
|
10536
|
-
function KpiEntity(session) {
|
|
10537
|
-
return _super.call(this, { session: session, entityName: 'route_kpi', routes: [Entity_1.BaseRoutes.Update] }) || this;
|
|
10538
|
-
}
|
|
10539
|
-
KpiEntity.prototype.fetchKpiData = function (request) {
|
|
10540
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
10541
|
-
return __generator(this, function (_a) {
|
|
10542
|
-
switch (_a.label) {
|
|
10543
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
10544
|
-
.post(Routes.CREATE)
|
|
10545
|
-
.setException("Could not fetch kpi data")
|
|
10546
|
-
.withPayload(request)
|
|
10547
|
-
.invoke()];
|
|
10548
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
10549
|
-
}
|
|
10550
|
-
});
|
|
10551
|
-
});
|
|
10552
|
-
};
|
|
10553
|
-
return KpiEntity;
|
|
10554
|
-
}(Entity_1.default));
|
|
10555
|
-
exports["default"] = KpiEntity;
|
|
10556
|
-
//# sourceMappingURL=KpiEntity.js.map
|
|
10557
|
-
|
|
10558
|
-
/***/ }),
|
|
10559
|
-
|
|
10560
|
-
/***/ 72724:
|
|
10561
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
10562
|
-
|
|
10563
|
-
"use strict";
|
|
10564
|
-
|
|
10565
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
10566
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10567
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10568
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10569
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10570
|
-
};
|
|
10571
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10572
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10573
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10574
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
10575
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10576
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10577
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10578
|
-
});
|
|
10579
|
-
};
|
|
10580
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
10581
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10582
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
10583
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10584
|
-
function step(op) {
|
|
10585
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
10586
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
10587
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
10588
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
10589
|
-
switch (op[0]) {
|
|
10590
|
-
case 0: case 1: t = op; break;
|
|
10591
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
10592
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
10593
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
10594
|
-
default:
|
|
10595
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
10596
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
10597
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
10598
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
10599
|
-
if (t[2]) _.ops.pop();
|
|
10600
|
-
_.trys.pop(); continue;
|
|
10601
|
-
}
|
|
10602
|
-
op = body.call(thisArg, _);
|
|
10603
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
10604
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10605
|
-
}
|
|
10606
|
-
};
|
|
10607
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10608
|
-
var BringgException_1 = __webpack_require__(43605);
|
|
10609
|
-
var KpiEntity_1 = __webpack_require__(68300);
|
|
10610
|
-
var KpiApi = /** @class */ (function () {
|
|
10611
|
-
function KpiApi(session) {
|
|
10612
|
-
this.kpiEntity = new KpiEntity_1.default(session);
|
|
10613
|
-
}
|
|
10614
|
-
KpiApi.prototype.fetchKpiData = function (request) {
|
|
10615
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
10616
|
-
return __generator(this, function (_a) {
|
|
10617
|
-
return [2 /*return*/, this.kpiEntity.fetchKpiData(request)];
|
|
10618
|
-
});
|
|
10619
|
-
});
|
|
10620
|
-
};
|
|
10621
|
-
__decorate([
|
|
10622
|
-
BringgException_1.logOnException
|
|
10623
|
-
], KpiApi.prototype, "fetchKpiData", null);
|
|
10624
|
-
return KpiApi;
|
|
10625
|
-
}());
|
|
10626
|
-
exports["default"] = KpiApi;
|
|
10627
|
-
//# sourceMappingURL=KpiApi.js.map
|
|
10628
|
-
|
|
10629
|
-
/***/ }),
|
|
10630
|
-
|
|
10631
10475
|
/***/ 69245:
|
|
10632
10476
|
/***/ ((__unused_webpack_module, exports) => {
|
|
10633
10477
|
|
|
@@ -14061,6 +13905,150 @@ exports["default"] = OptimizationConfigurationsEntity;
|
|
|
14061
13905
|
|
|
14062
13906
|
/***/ }),
|
|
14063
13907
|
|
|
13908
|
+
/***/ 42068:
|
|
13909
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
13910
|
+
|
|
13911
|
+
"use strict";
|
|
13912
|
+
|
|
13913
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13914
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13915
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
13916
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13917
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13918
|
+
};
|
|
13919
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13920
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13921
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13922
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
13923
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13924
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13925
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
13926
|
+
});
|
|
13927
|
+
};
|
|
13928
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
13929
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13930
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13931
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
13932
|
+
function step(op) {
|
|
13933
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
13934
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
13935
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
13936
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
13937
|
+
switch (op[0]) {
|
|
13938
|
+
case 0: case 1: t = op; break;
|
|
13939
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
13940
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
13941
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
13942
|
+
default:
|
|
13943
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
13944
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
13945
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
13946
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
13947
|
+
if (t[2]) _.ops.pop();
|
|
13948
|
+
_.trys.pop(); continue;
|
|
13949
|
+
}
|
|
13950
|
+
op = body.call(thisArg, _);
|
|
13951
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
13952
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
13953
|
+
}
|
|
13954
|
+
};
|
|
13955
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
13956
|
+
var BringgException_1 = __webpack_require__(43605);
|
|
13957
|
+
var optimization_kpi_service_1 = __webpack_require__(63433);
|
|
13958
|
+
var OptimizationKpiApi = /** @class */ (function () {
|
|
13959
|
+
function OptimizationKpiApi(session) {
|
|
13960
|
+
this.service = new optimization_kpi_service_1.default(session);
|
|
13961
|
+
}
|
|
13962
|
+
OptimizationKpiApi.prototype.fetchOptimizationKpiData = function (request) {
|
|
13963
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13964
|
+
return __generator(this, function (_a) {
|
|
13965
|
+
return [2 /*return*/, this.service.fetchOptimizationKpiData(request)];
|
|
13966
|
+
});
|
|
13967
|
+
});
|
|
13968
|
+
};
|
|
13969
|
+
__decorate([
|
|
13970
|
+
BringgException_1.logOnException
|
|
13971
|
+
], OptimizationKpiApi.prototype, "fetchOptimizationKpiData", null);
|
|
13972
|
+
return OptimizationKpiApi;
|
|
13973
|
+
}());
|
|
13974
|
+
exports["default"] = OptimizationKpiApi;
|
|
13975
|
+
//# sourceMappingURL=OptimizationKpiApi.js.map
|
|
13976
|
+
|
|
13977
|
+
/***/ }),
|
|
13978
|
+
|
|
13979
|
+
/***/ 63433:
|
|
13980
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
13981
|
+
|
|
13982
|
+
"use strict";
|
|
13983
|
+
|
|
13984
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13985
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13986
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13987
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
13988
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13989
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13990
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
13991
|
+
});
|
|
13992
|
+
};
|
|
13993
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
13994
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13995
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13996
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
13997
|
+
function step(op) {
|
|
13998
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
13999
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
14000
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
14001
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
14002
|
+
switch (op[0]) {
|
|
14003
|
+
case 0: case 1: t = op; break;
|
|
14004
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
14005
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
14006
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
14007
|
+
default:
|
|
14008
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
14009
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
14010
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
14011
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
14012
|
+
if (t[2]) _.ops.pop();
|
|
14013
|
+
_.trys.pop(); continue;
|
|
14014
|
+
}
|
|
14015
|
+
op = body.call(thisArg, _);
|
|
14016
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
14017
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
14018
|
+
}
|
|
14019
|
+
};
|
|
14020
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14021
|
+
exports.Routes = void 0;
|
|
14022
|
+
var CrudService_1 = __webpack_require__(14809);
|
|
14023
|
+
var baseRoute = '/own-fleet-optimization-service/';
|
|
14024
|
+
exports.Routes = {
|
|
14025
|
+
CREATE: "".concat(baseRoute, "/route_kpi")
|
|
14026
|
+
};
|
|
14027
|
+
var OptimizationKpiService = /** @class */ (function () {
|
|
14028
|
+
function OptimizationKpiService(session) {
|
|
14029
|
+
this.service = new CrudService_1.default(session, 'route_kpi');
|
|
14030
|
+
}
|
|
14031
|
+
OptimizationKpiService.prototype.fetchOptimizationKpiData = function (request) {
|
|
14032
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14033
|
+
return __generator(this, function (_a) {
|
|
14034
|
+
switch (_a.label) {
|
|
14035
|
+
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
14036
|
+
.post(exports.Routes.CREATE)
|
|
14037
|
+
.setException("Could not fetch optimization kpi data")
|
|
14038
|
+
.withPayload(request)
|
|
14039
|
+
.invoke()];
|
|
14040
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
14041
|
+
}
|
|
14042
|
+
});
|
|
14043
|
+
});
|
|
14044
|
+
};
|
|
14045
|
+
return OptimizationKpiService;
|
|
14046
|
+
}());
|
|
14047
|
+
exports["default"] = OptimizationKpiService;
|
|
14048
|
+
//# sourceMappingURL=optimization-kpi-service.js.map
|
|
14049
|
+
|
|
14050
|
+
/***/ }),
|
|
14051
|
+
|
|
14064
14052
|
/***/ 51991:
|
|
14065
14053
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
14066
14054
|
|
|
@@ -20181,7 +20169,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
20181
20169
|
var BringgException_1 = __webpack_require__(43605);
|
|
20182
20170
|
var Logger_1 = __webpack_require__(55860);
|
|
20183
20171
|
var abort_1 = __webpack_require__(34179);
|
|
20184
|
-
var version = '8.13.
|
|
20172
|
+
var version = '8.13.1';
|
|
20185
20173
|
function logErrorResponse(response) {
|
|
20186
20174
|
var data = response.data, status = response.status;
|
|
20187
20175
|
try {
|