@bringg/dashboard-sdk 8.12.3-pre → 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 -5
- package/dist/BringgDashboardSDK.js +5 -6
- package/dist/BringgDashboardSDK.js.map +1 -1
- package/dist/CustomerAvailabilityHour/CustomerAvailabilityHourApi.d.ts +0 -3
- package/dist/CustomerAvailabilityHour/CustomerAvailabilityHourApi.js +0 -10
- package/dist/CustomerAvailabilityHour/CustomerAvailabilityHourApi.js.map +1 -1
- package/dist/CustomerAvailabilityHour/Entity/CustomerAvailabilityHourEntity.d.ts +0 -5
- package/dist/CustomerAvailabilityHour/Entity/CustomerAvailabilityHourEntity.js +1 -26
- package/dist/CustomerAvailabilityHour/Entity/CustomerAvailabilityHourEntity.js.map +1 -1
- package/dist/LookUp/lookup-api.d.ts +6 -5
- package/dist/LookUp/lookup-api.js +15 -10
- package/dist/LookUp/lookup-api.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 +166 -378
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +27 -71
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +2 -1
- package/dist/AlertConfiguration/AlertConfigurationApi.d.ts +0 -17
- package/dist/AlertConfiguration/AlertConfigurationApi.js +0 -39
- package/dist/AlertConfiguration/AlertConfigurationApi.js.map +0 -1
- package/dist/AlertConfiguration/Entity/AlertConfigurationEntity.d.ts +0 -11
- package/dist/AlertConfiguration/Entity/AlertConfigurationEntity.js +0 -36
- package/dist/AlertConfiguration/Entity/AlertConfigurationEntity.js.map +0 -1
- package/dist/AlertConfiguration/Entity/ConfigurationEntity.d.ts +0 -6
- package/dist/AlertConfiguration/Entity/ConfigurationEntity.js +0 -32
- package/dist/AlertConfiguration/Entity/ConfigurationEntity.js.map +0 -1
- package/dist/AlertConfiguration/Entity/SetEntity.d.ts +0 -6
- package/dist/AlertConfiguration/Entity/SetEntity.js +0 -32
- package/dist/AlertConfiguration/Entity/SetEntity.js.map +0 -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
|
@@ -247,173 +247,6 @@ exports["default"] = AddonsEntity;
|
|
|
247
247
|
|
|
248
248
|
/***/ }),
|
|
249
249
|
|
|
250
|
-
/***/ 81212:
|
|
251
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
252
|
-
|
|
253
|
-
"use strict";
|
|
254
|
-
|
|
255
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
256
|
-
var AlertConfigurationEntity_1 = __webpack_require__(44760);
|
|
257
|
-
var ConfigurationEntity_1 = __webpack_require__(90671);
|
|
258
|
-
var SetEntity_1 = __webpack_require__(84368);
|
|
259
|
-
var AlertConfigurationApi = /** @class */ (function () {
|
|
260
|
-
function AlertConfigurationApi(session) {
|
|
261
|
-
this.alertConfigurationEntity = new AlertConfigurationEntity_1.default(session);
|
|
262
|
-
this.configurationEntity = new ConfigurationEntity_1.default(session);
|
|
263
|
-
this.alertSetEntity = new SetEntity_1.default(session);
|
|
264
|
-
}
|
|
265
|
-
AlertConfigurationApi.prototype.getAll = function () {
|
|
266
|
-
return this.alertConfigurationEntity.service.getAll();
|
|
267
|
-
};
|
|
268
|
-
AlertConfigurationApi.prototype.createSet = function (request) {
|
|
269
|
-
return this.alertSetEntity.service.create(request);
|
|
270
|
-
};
|
|
271
|
-
AlertConfigurationApi.prototype.deleteSet = function (setId) {
|
|
272
|
-
return this.alertSetEntity.service.delete(setId);
|
|
273
|
-
};
|
|
274
|
-
AlertConfigurationApi.prototype.updateSet = function (setId, request) {
|
|
275
|
-
return this.alertSetEntity.service.patch(setId, request);
|
|
276
|
-
};
|
|
277
|
-
AlertConfigurationApi.prototype.createAlertConfiguration = function (request) {
|
|
278
|
-
return this.configurationEntity.service.create(request);
|
|
279
|
-
};
|
|
280
|
-
AlertConfigurationApi.prototype.deleteAlertConfiguration = function (configurationId) {
|
|
281
|
-
return this.configurationEntity.service.delete(configurationId);
|
|
282
|
-
};
|
|
283
|
-
AlertConfigurationApi.prototype.updateAlertConfiguration = function (configurationId, request) {
|
|
284
|
-
return this.configurationEntity.service.patch(configurationId, request);
|
|
285
|
-
};
|
|
286
|
-
AlertConfigurationApi.prototype.getTemplates = function () {
|
|
287
|
-
return this.alertConfigurationEntity.getTemplates();
|
|
288
|
-
};
|
|
289
|
-
return AlertConfigurationApi;
|
|
290
|
-
}());
|
|
291
|
-
exports["default"] = AlertConfigurationApi;
|
|
292
|
-
//# sourceMappingURL=AlertConfigurationApi.js.map
|
|
293
|
-
|
|
294
|
-
/***/ }),
|
|
295
|
-
|
|
296
|
-
/***/ 44760:
|
|
297
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
298
|
-
|
|
299
|
-
"use strict";
|
|
300
|
-
|
|
301
|
-
var __extends = (this && this.__extends) || (function () {
|
|
302
|
-
var extendStatics = function (d, b) {
|
|
303
|
-
extendStatics = Object.setPrototypeOf ||
|
|
304
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
305
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
306
|
-
return extendStatics(d, b);
|
|
307
|
-
};
|
|
308
|
-
return function (d, b) {
|
|
309
|
-
if (typeof b !== "function" && b !== null)
|
|
310
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
311
|
-
extendStatics(d, b);
|
|
312
|
-
function __() { this.constructor = d; }
|
|
313
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
314
|
-
};
|
|
315
|
-
})();
|
|
316
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
317
|
-
var Entity_1 = __webpack_require__(7483);
|
|
318
|
-
var StoreEntity_1 = __webpack_require__(95574);
|
|
319
|
-
var baseRoute = "alerts_configuration";
|
|
320
|
-
var AlertConfigurationEntity = /** @class */ (function (_super) {
|
|
321
|
-
__extends(AlertConfigurationEntity, _super);
|
|
322
|
-
function AlertConfigurationEntity(session) {
|
|
323
|
-
return _super.call(this, {
|
|
324
|
-
session: session,
|
|
325
|
-
entityName: baseRoute,
|
|
326
|
-
routes: [Entity_1.BaseRoutes.Create, Entity_1.BaseRoutes.Delete, Entity_1.BaseRoutes.Update, Entity_1.BaseRoutes.GetAll, Entity_1.BaseRoutes.Patch]
|
|
327
|
-
}) || this;
|
|
328
|
-
}
|
|
329
|
-
AlertConfigurationEntity.prototype.getTemplates = function () {
|
|
330
|
-
return this.service.routeGenerator.get("/".concat(baseRoute, "/templates")).invoke();
|
|
331
|
-
};
|
|
332
|
-
return AlertConfigurationEntity;
|
|
333
|
-
}(StoreEntity_1.default));
|
|
334
|
-
exports["default"] = AlertConfigurationEntity;
|
|
335
|
-
//# sourceMappingURL=AlertConfigurationEntity.js.map
|
|
336
|
-
|
|
337
|
-
/***/ }),
|
|
338
|
-
|
|
339
|
-
/***/ 90671:
|
|
340
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
341
|
-
|
|
342
|
-
"use strict";
|
|
343
|
-
|
|
344
|
-
var __extends = (this && this.__extends) || (function () {
|
|
345
|
-
var extendStatics = function (d, b) {
|
|
346
|
-
extendStatics = Object.setPrototypeOf ||
|
|
347
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
348
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
349
|
-
return extendStatics(d, b);
|
|
350
|
-
};
|
|
351
|
-
return function (d, b) {
|
|
352
|
-
if (typeof b !== "function" && b !== null)
|
|
353
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
354
|
-
extendStatics(d, b);
|
|
355
|
-
function __() { this.constructor = d; }
|
|
356
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
357
|
-
};
|
|
358
|
-
})();
|
|
359
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
360
|
-
var Entity_1 = __webpack_require__(7483);
|
|
361
|
-
var ConfigurationEntity = /** @class */ (function (_super) {
|
|
362
|
-
__extends(ConfigurationEntity, _super);
|
|
363
|
-
function ConfigurationEntity(session) {
|
|
364
|
-
return _super.call(this, {
|
|
365
|
-
session: session,
|
|
366
|
-
entityName: 'configurations',
|
|
367
|
-
routePrefix: 'alerts_configuration',
|
|
368
|
-
routes: [Entity_1.BaseRoutes.Patch, Entity_1.BaseRoutes.Delete, Entity_1.BaseRoutes.Create, Entity_1.BaseRoutes.Update]
|
|
369
|
-
}) || this;
|
|
370
|
-
}
|
|
371
|
-
return ConfigurationEntity;
|
|
372
|
-
}(Entity_1.default));
|
|
373
|
-
exports["default"] = ConfigurationEntity;
|
|
374
|
-
//# sourceMappingURL=ConfigurationEntity.js.map
|
|
375
|
-
|
|
376
|
-
/***/ }),
|
|
377
|
-
|
|
378
|
-
/***/ 84368:
|
|
379
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
380
|
-
|
|
381
|
-
"use strict";
|
|
382
|
-
|
|
383
|
-
var __extends = (this && this.__extends) || (function () {
|
|
384
|
-
var extendStatics = function (d, b) {
|
|
385
|
-
extendStatics = Object.setPrototypeOf ||
|
|
386
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
387
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
388
|
-
return extendStatics(d, b);
|
|
389
|
-
};
|
|
390
|
-
return function (d, b) {
|
|
391
|
-
if (typeof b !== "function" && b !== null)
|
|
392
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
393
|
-
extendStatics(d, b);
|
|
394
|
-
function __() { this.constructor = d; }
|
|
395
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
396
|
-
};
|
|
397
|
-
})();
|
|
398
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
399
|
-
var Entity_1 = __webpack_require__(7483);
|
|
400
|
-
var SetEntity = /** @class */ (function (_super) {
|
|
401
|
-
__extends(SetEntity, _super);
|
|
402
|
-
function SetEntity(session) {
|
|
403
|
-
return _super.call(this, {
|
|
404
|
-
session: session,
|
|
405
|
-
entityName: 'sets',
|
|
406
|
-
routePrefix: 'alerts_configuration',
|
|
407
|
-
routes: [Entity_1.BaseRoutes.Patch, Entity_1.BaseRoutes.Delete, Entity_1.BaseRoutes.Create, Entity_1.BaseRoutes.Update]
|
|
408
|
-
}) || this;
|
|
409
|
-
}
|
|
410
|
-
return SetEntity;
|
|
411
|
-
}(Entity_1.default));
|
|
412
|
-
exports["default"] = SetEntity;
|
|
413
|
-
//# sourceMappingURL=SetEntity.js.map
|
|
414
|
-
|
|
415
|
-
/***/ }),
|
|
416
|
-
|
|
417
250
|
/***/ 30671:
|
|
418
251
|
/***/ ((__unused_webpack_module, exports) => {
|
|
419
252
|
|
|
@@ -2493,7 +2326,6 @@ exports.newConfigurationProvider = exports.getFullConfiguration = exports.setEnv
|
|
|
2493
2326
|
// eslint-disable-next-line no-restricted-imports
|
|
2494
2327
|
var mobx = __webpack_require__(68949);
|
|
2495
2328
|
var AddonsApi_1 = __webpack_require__(22464);
|
|
2496
|
-
var AlertConfigurationApi_1 = __webpack_require__(81212);
|
|
2497
2329
|
var AlertsApi_1 = __webpack_require__(86776);
|
|
2498
2330
|
var AnalyticsReportsApi_1 = __webpack_require__(80034);
|
|
2499
2331
|
var ApplicationApi_1 = __webpack_require__(50513);
|
|
@@ -2528,7 +2360,6 @@ var GeocodingApi_1 = __webpack_require__(87206);
|
|
|
2528
2360
|
var GoogleMapsHelperApi_1 = __webpack_require__(37828);
|
|
2529
2361
|
var Inventory_1 = __webpack_require__(74033);
|
|
2530
2362
|
var InventoryActionsConfiguration_1 = __webpack_require__(7373);
|
|
2531
|
-
var KpiApi_1 = __webpack_require__(72724);
|
|
2532
2363
|
var Language_1 = __webpack_require__(67092);
|
|
2533
2364
|
var LegacyReportsApi_1 = __webpack_require__(16761);
|
|
2534
2365
|
var lookup_api_1 = __webpack_require__(96142);
|
|
@@ -2542,6 +2373,7 @@ var OnboardingApi_1 = __webpack_require__(3481);
|
|
|
2542
2373
|
var OpenFleetApi_1 = __webpack_require__(99497);
|
|
2543
2374
|
var OptimizationConfiguration_1 = __webpack_require__(17859);
|
|
2544
2375
|
var OptimizationConfigurationV2_1 = __webpack_require__(28719);
|
|
2376
|
+
var OptimizationKpiApi_1 = __webpack_require__(42068);
|
|
2545
2377
|
var optimization_result_api_1 = __webpack_require__(51991);
|
|
2546
2378
|
var PackageApi_1 = __webpack_require__(67595);
|
|
2547
2379
|
var ParkingSpotApi_1 = __webpack_require__(43401);
|
|
@@ -2609,6 +2441,7 @@ var BringgDashboardSDK = /** @class */ (function () {
|
|
|
2609
2441
|
this.applicationMerchantConfiguration = null;
|
|
2610
2442
|
this.applicationTeamConfiguration = null;
|
|
2611
2443
|
this.chat = null;
|
|
2444
|
+
this.optimizationKpi = null;
|
|
2612
2445
|
this.companies = null;
|
|
2613
2446
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
2614
2447
|
this.credentials = {};
|
|
@@ -2623,7 +2456,6 @@ var BringgDashboardSDK = /** @class */ (function () {
|
|
|
2623
2456
|
this.floatingInventory = null;
|
|
2624
2457
|
this.inventoryActionsConfigurations = null;
|
|
2625
2458
|
this.languages = null;
|
|
2626
|
-
this.lookup = null;
|
|
2627
2459
|
this.merchant = null;
|
|
2628
2460
|
this.merchantConfiguration = null;
|
|
2629
2461
|
this.merchantPrototype = null;
|
|
@@ -2860,7 +2692,8 @@ function init(session) {
|
|
|
2860
2692
|
floatingInventories: new floating_inventories_api_1.FloatingInventoriesApi(session),
|
|
2861
2693
|
deliveryWindows: new delivery_windows_api_1.default(session),
|
|
2862
2694
|
taskManagedAttributes: new TaskManagedAttributes_1.TaskManagedAttributesApi(session),
|
|
2863
|
-
chat: new Chat_1.default(session)
|
|
2695
|
+
chat: new Chat_1.default(session),
|
|
2696
|
+
optimizationKpi: new OptimizationKpiApi_1.default(session)
|
|
2864
2697
|
};
|
|
2865
2698
|
bringg.application = new ApplicationApi_1.default(session);
|
|
2866
2699
|
bringg.chat = new ChatConversationApi_1.default(session);
|
|
@@ -2873,7 +2706,6 @@ function init(session) {
|
|
|
2873
2706
|
bringg.fleets = new FleetApi_1.default(session);
|
|
2874
2707
|
bringg.rules = new RuleApi_1.default(session);
|
|
2875
2708
|
bringg.fleetRouterApi = new FleetRouterApi_1.default(session);
|
|
2876
|
-
bringg.alertConfiguration = new AlertConfigurationApi_1.default(session);
|
|
2877
2709
|
bringg.floatingInventory = new FloatingInventoryApi_1.default(session);
|
|
2878
2710
|
bringg.geocoding = new GeocodingApi_1.default(session);
|
|
2879
2711
|
bringg.googleMapsHelper = new GoogleMapsHelperApi_1.default(session);
|
|
@@ -2948,7 +2780,7 @@ function init(session) {
|
|
|
2948
2780
|
bringg.asyncOperationStatus = new AsyncOperationStatus_1.AsyncOperationStatus(session);
|
|
2949
2781
|
bringg.addons = new AddonsApi_1.default(session);
|
|
2950
2782
|
bringg.supportTicket = new SupportTicketApi_1.default(session);
|
|
2951
|
-
bringg.
|
|
2783
|
+
bringg.optimizationKpi = new OptimizationKpiApi_1.default(session);
|
|
2952
2784
|
// dependent
|
|
2953
2785
|
bringg.crews = new Crew_1.default(session, bringg.users);
|
|
2954
2786
|
bringg.applicationMerchantConfiguration = new ApplicationMerchantConfigurationApi_1.default(session, bringg.merchantConfiguration);
|
|
@@ -6733,16 +6565,6 @@ var CustomerAvailabilityHourApi = /** @class */ (function () {
|
|
|
6733
6565
|
});
|
|
6734
6566
|
});
|
|
6735
6567
|
};
|
|
6736
|
-
CustomerAvailabilityHourApi.prototype.getBatchTaskCustomerAvailabilityHours = function (params) {
|
|
6737
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
6738
|
-
var a;
|
|
6739
|
-
return __generator(this, function (_a) {
|
|
6740
|
-
a = this.customerAvailabilityHourEntity.getBatchTaskCustomerAvailabilityHours(params);
|
|
6741
|
-
console.log('a', a);
|
|
6742
|
-
return [2 /*return*/, this.customerAvailabilityHourEntity.getBatchTaskCustomerAvailabilityHours(params)];
|
|
6743
|
-
});
|
|
6744
|
-
});
|
|
6745
|
-
};
|
|
6746
6568
|
return CustomerAvailabilityHourApi;
|
|
6747
6569
|
}());
|
|
6748
6570
|
exports["default"] = CustomerAvailabilityHourApi;
|
|
@@ -6810,8 +6632,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
6810
6632
|
exports.Routes = void 0;
|
|
6811
6633
|
var StoreEntity_1 = __webpack_require__(95574);
|
|
6812
6634
|
exports.Routes = {
|
|
6813
|
-
GET_AVAILABILITY_HOURS: '/customer_availability_hours'
|
|
6814
|
-
BATCH_GET_AVAILABILITY_HOURS: '/batch_customer_availability_hours/batch_get'
|
|
6635
|
+
GET_AVAILABILITY_HOURS: '/customer_availability_hours'
|
|
6815
6636
|
};
|
|
6816
6637
|
var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
6817
6638
|
__extends(CustomerAvailabilityHourEntity, _super);
|
|
@@ -6842,19 +6663,6 @@ var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
|
6842
6663
|
});
|
|
6843
6664
|
});
|
|
6844
6665
|
};
|
|
6845
|
-
CustomerAvailabilityHourEntity.prototype.getBatchTaskCustomerAvailabilityHours = function (params) {
|
|
6846
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
6847
|
-
var response;
|
|
6848
|
-
return __generator(this, function (_a) {
|
|
6849
|
-
switch (_a.label) {
|
|
6850
|
-
case 0: return [4 /*yield*/, this._getBatchTaskCustomerAvailabilityHours(params)];
|
|
6851
|
-
case 1:
|
|
6852
|
-
response = _a.sent();
|
|
6853
|
-
return [2 /*return*/, response];
|
|
6854
|
-
}
|
|
6855
|
-
});
|
|
6856
|
-
});
|
|
6857
|
-
};
|
|
6858
6666
|
CustomerAvailabilityHourEntity.prototype._getTaskCustomerAvailabilityHours = function (params) {
|
|
6859
6667
|
return __awaiter(this, void 0, void 0, function () {
|
|
6860
6668
|
return __generator(this, function (_a) {
|
|
@@ -6869,17 +6677,6 @@ var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
|
6869
6677
|
CustomerAvailabilityHourEntity.prototype._getKey = function (customerId, taskId) {
|
|
6870
6678
|
return "customer_id:".concat(customerId, ":task_id:").concat(taskId);
|
|
6871
6679
|
};
|
|
6872
|
-
CustomerAvailabilityHourEntity.prototype._getBatchTaskCustomerAvailabilityHours = function (params) {
|
|
6873
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
6874
|
-
return __generator(this, function (_a) {
|
|
6875
|
-
return [2 /*return*/, this.service.routeGenerator
|
|
6876
|
-
.get(exports.Routes.BATCH_GET_AVAILABILITY_HOURS)
|
|
6877
|
-
.withQueryString(params)
|
|
6878
|
-
.withExtractor(function (response) { return response.availability_hours; })
|
|
6879
|
-
.invoke()];
|
|
6880
|
-
});
|
|
6881
|
-
});
|
|
6882
|
-
};
|
|
6883
6680
|
return CustomerAvailabilityHourEntity;
|
|
6884
6681
|
}(StoreEntity_1.default));
|
|
6885
6682
|
exports["default"] = CustomerAvailabilityHourEntity;
|
|
@@ -10675,164 +10472,6 @@ exports["default"] = InventoryActionsConfiguration;
|
|
|
10675
10472
|
|
|
10676
10473
|
/***/ }),
|
|
10677
10474
|
|
|
10678
|
-
/***/ 68300:
|
|
10679
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
10680
|
-
|
|
10681
|
-
"use strict";
|
|
10682
|
-
|
|
10683
|
-
var __extends = (this && this.__extends) || (function () {
|
|
10684
|
-
var extendStatics = function (d, b) {
|
|
10685
|
-
extendStatics = Object.setPrototypeOf ||
|
|
10686
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10687
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10688
|
-
return extendStatics(d, b);
|
|
10689
|
-
};
|
|
10690
|
-
return function (d, b) {
|
|
10691
|
-
if (typeof b !== "function" && b !== null)
|
|
10692
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10693
|
-
extendStatics(d, b);
|
|
10694
|
-
function __() { this.constructor = d; }
|
|
10695
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10696
|
-
};
|
|
10697
|
-
})();
|
|
10698
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10699
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10700
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10701
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
10702
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10703
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10704
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10705
|
-
});
|
|
10706
|
-
};
|
|
10707
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
10708
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10709
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
10710
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10711
|
-
function step(op) {
|
|
10712
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
10713
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
10714
|
-
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;
|
|
10715
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
10716
|
-
switch (op[0]) {
|
|
10717
|
-
case 0: case 1: t = op; break;
|
|
10718
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
10719
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
10720
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
10721
|
-
default:
|
|
10722
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
10723
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
10724
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
10725
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
10726
|
-
if (t[2]) _.ops.pop();
|
|
10727
|
-
_.trys.pop(); continue;
|
|
10728
|
-
}
|
|
10729
|
-
op = body.call(thisArg, _);
|
|
10730
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
10731
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10732
|
-
}
|
|
10733
|
-
};
|
|
10734
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10735
|
-
var Entity_1 = __webpack_require__(7483);
|
|
10736
|
-
var Routes = {
|
|
10737
|
-
CREATE: '/own-fleet-optimization-service/route_kpi'
|
|
10738
|
-
};
|
|
10739
|
-
var KpiEntity = /** @class */ (function (_super) {
|
|
10740
|
-
__extends(KpiEntity, _super);
|
|
10741
|
-
function KpiEntity(session) {
|
|
10742
|
-
return _super.call(this, { session: session, entityName: 'route_kpi', routes: [Entity_1.BaseRoutes.Update] }) || this;
|
|
10743
|
-
}
|
|
10744
|
-
KpiEntity.prototype.fetchKpiData = function (request) {
|
|
10745
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
10746
|
-
return __generator(this, function (_a) {
|
|
10747
|
-
switch (_a.label) {
|
|
10748
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
10749
|
-
.post(Routes.CREATE)
|
|
10750
|
-
.setException("Could not fetch kpi data")
|
|
10751
|
-
.withPayload(request)
|
|
10752
|
-
.invoke()];
|
|
10753
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
10754
|
-
}
|
|
10755
|
-
});
|
|
10756
|
-
});
|
|
10757
|
-
};
|
|
10758
|
-
return KpiEntity;
|
|
10759
|
-
}(Entity_1.default));
|
|
10760
|
-
exports["default"] = KpiEntity;
|
|
10761
|
-
//# sourceMappingURL=KpiEntity.js.map
|
|
10762
|
-
|
|
10763
|
-
/***/ }),
|
|
10764
|
-
|
|
10765
|
-
/***/ 72724:
|
|
10766
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
10767
|
-
|
|
10768
|
-
"use strict";
|
|
10769
|
-
|
|
10770
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
10771
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10772
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10773
|
-
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;
|
|
10774
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10775
|
-
};
|
|
10776
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10777
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10778
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10779
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
10780
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10781
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10782
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10783
|
-
});
|
|
10784
|
-
};
|
|
10785
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
10786
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
10787
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
10788
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
10789
|
-
function step(op) {
|
|
10790
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
10791
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
10792
|
-
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;
|
|
10793
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
10794
|
-
switch (op[0]) {
|
|
10795
|
-
case 0: case 1: t = op; break;
|
|
10796
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
10797
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
10798
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
10799
|
-
default:
|
|
10800
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
10801
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
10802
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
10803
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
10804
|
-
if (t[2]) _.ops.pop();
|
|
10805
|
-
_.trys.pop(); continue;
|
|
10806
|
-
}
|
|
10807
|
-
op = body.call(thisArg, _);
|
|
10808
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
10809
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10810
|
-
}
|
|
10811
|
-
};
|
|
10812
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10813
|
-
var BringgException_1 = __webpack_require__(43605);
|
|
10814
|
-
var KpiEntity_1 = __webpack_require__(68300);
|
|
10815
|
-
var KpiApi = /** @class */ (function () {
|
|
10816
|
-
function KpiApi(session) {
|
|
10817
|
-
this.kpiEntity = new KpiEntity_1.default(session);
|
|
10818
|
-
}
|
|
10819
|
-
KpiApi.prototype.fetchKpiData = function (request) {
|
|
10820
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
10821
|
-
return __generator(this, function (_a) {
|
|
10822
|
-
return [2 /*return*/, this.kpiEntity.fetchKpiData(request)];
|
|
10823
|
-
});
|
|
10824
|
-
});
|
|
10825
|
-
};
|
|
10826
|
-
__decorate([
|
|
10827
|
-
BringgException_1.logOnException
|
|
10828
|
-
], KpiApi.prototype, "fetchKpiData", null);
|
|
10829
|
-
return KpiApi;
|
|
10830
|
-
}());
|
|
10831
|
-
exports["default"] = KpiApi;
|
|
10832
|
-
//# sourceMappingURL=KpiApi.js.map
|
|
10833
|
-
|
|
10834
|
-
/***/ }),
|
|
10835
|
-
|
|
10836
10475
|
/***/ 69245:
|
|
10837
10476
|
/***/ ((__unused_webpack_module, exports) => {
|
|
10838
10477
|
|
|
@@ -11217,51 +10856,56 @@ var Lookup = /** @class */ (function () {
|
|
|
11217
10856
|
function Lookup(session) {
|
|
11218
10857
|
this.lookUpEntity = new lookup_service_1.default(session);
|
|
11219
10858
|
}
|
|
11220
|
-
Lookup.prototype.getUsers = function (query) {
|
|
10859
|
+
Lookup.prototype.getUsers = function (query, commonOptions) {
|
|
10860
|
+
if (commonOptions === void 0) { commonOptions = {}; }
|
|
11221
10861
|
return __awaiter(this, void 0, void 0, function () {
|
|
11222
10862
|
return __generator(this, function (_a) {
|
|
11223
10863
|
switch (_a.label) {
|
|
11224
|
-
case 0: return [4 /*yield*/, this.lookUpEntity.getUsers(query)];
|
|
10864
|
+
case 0: return [4 /*yield*/, this.lookUpEntity.getUsers(query, commonOptions)];
|
|
11225
10865
|
case 1: return [2 /*return*/, _a.sent()];
|
|
11226
10866
|
}
|
|
11227
10867
|
});
|
|
11228
10868
|
});
|
|
11229
10869
|
};
|
|
11230
|
-
Lookup.prototype.getRuns = function (query) {
|
|
10870
|
+
Lookup.prototype.getRuns = function (query, commonOptions) {
|
|
10871
|
+
if (commonOptions === void 0) { commonOptions = {}; }
|
|
11231
10872
|
return __awaiter(this, void 0, void 0, function () {
|
|
11232
10873
|
return __generator(this, function (_a) {
|
|
11233
10874
|
switch (_a.label) {
|
|
11234
|
-
case 0: return [4 /*yield*/, this.lookUpEntity.getRuns(query)];
|
|
10875
|
+
case 0: return [4 /*yield*/, this.lookUpEntity.getRuns(query, commonOptions)];
|
|
11235
10876
|
case 1: return [2 /*return*/, _a.sent()];
|
|
11236
10877
|
}
|
|
11237
10878
|
});
|
|
11238
10879
|
});
|
|
11239
10880
|
};
|
|
11240
|
-
Lookup.prototype.getTasks = function (query) {
|
|
10881
|
+
Lookup.prototype.getTasks = function (query, commonOptions) {
|
|
10882
|
+
if (commonOptions === void 0) { commonOptions = {}; }
|
|
11241
10883
|
return __awaiter(this, void 0, void 0, function () {
|
|
11242
10884
|
return __generator(this, function (_a) {
|
|
11243
10885
|
switch (_a.label) {
|
|
11244
|
-
case 0: return [4 /*yield*/, this.lookUpEntity.getTasks(query)];
|
|
10886
|
+
case 0: return [4 /*yield*/, this.lookUpEntity.getTasks(query, commonOptions)];
|
|
11245
10887
|
case 1: return [2 /*return*/, _a.sent()];
|
|
11246
10888
|
}
|
|
11247
10889
|
});
|
|
11248
10890
|
});
|
|
11249
10891
|
};
|
|
11250
|
-
Lookup.prototype.getPlannedRoutes = function (query) {
|
|
10892
|
+
Lookup.prototype.getPlannedRoutes = function (query, commonOptions) {
|
|
10893
|
+
if (commonOptions === void 0) { commonOptions = {}; }
|
|
11251
10894
|
return __awaiter(this, void 0, void 0, function () {
|
|
11252
10895
|
return __generator(this, function (_a) {
|
|
11253
10896
|
switch (_a.label) {
|
|
11254
|
-
case 0: return [4 /*yield*/, this.lookUpEntity.getPlannedRoutes(query)];
|
|
10897
|
+
case 0: return [4 /*yield*/, this.lookUpEntity.getPlannedRoutes(query, commonOptions)];
|
|
11255
10898
|
case 1: return [2 /*return*/, _a.sent()];
|
|
11256
10899
|
}
|
|
11257
10900
|
});
|
|
11258
10901
|
});
|
|
11259
10902
|
};
|
|
11260
|
-
Lookup.prototype.getTeams = function (query) {
|
|
10903
|
+
Lookup.prototype.getTeams = function (query, commonOptions) {
|
|
10904
|
+
if (commonOptions === void 0) { commonOptions = {}; }
|
|
11261
10905
|
return __awaiter(this, void 0, void 0, function () {
|
|
11262
10906
|
return __generator(this, function (_a) {
|
|
11263
10907
|
switch (_a.label) {
|
|
11264
|
-
case 0: return [4 /*yield*/, this.lookUpEntity.getTeams(query)];
|
|
10908
|
+
case 0: return [4 /*yield*/, this.lookUpEntity.getTeams(query, commonOptions)];
|
|
11265
10909
|
case 1: return [2 /*return*/, _a.sent()];
|
|
11266
10910
|
}
|
|
11267
10911
|
});
|
|
@@ -14261,6 +13905,150 @@ exports["default"] = OptimizationConfigurationsEntity;
|
|
|
14261
13905
|
|
|
14262
13906
|
/***/ }),
|
|
14263
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
|
+
|
|
14264
14052
|
/***/ 51991:
|
|
14265
14053
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
14266
14054
|
|
|
@@ -20381,7 +20169,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
20381
20169
|
var BringgException_1 = __webpack_require__(43605);
|
|
20382
20170
|
var Logger_1 = __webpack_require__(55860);
|
|
20383
20171
|
var abort_1 = __webpack_require__(34179);
|
|
20384
|
-
var version = '8.
|
|
20172
|
+
var version = '8.13.1';
|
|
20385
20173
|
function logErrorResponse(response) {
|
|
20386
20174
|
var data = response.data, status = response.status;
|
|
20387
20175
|
try {
|