@bringg/dashboard-sdk 8.29.0-pre → 8.30.1-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.
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var BaseService_1 = __importDefault(require("../../Core/BaseService"));
22
+ var SERVICE_NAME = 'own-fleet-optimization-service/speed_factor';
23
+ var SpeedFactorService = /** @class */ (function (_super) {
24
+ __extends(SpeedFactorService, _super);
25
+ function SpeedFactorService(session) {
26
+ return _super.call(this, session, 'speedFactor') || this;
27
+ }
28
+ SpeedFactorService.prototype.create = function (payload) {
29
+ return this.routeGenerator.post(SERVICE_NAME).withPayload(payload).invoke();
30
+ };
31
+ SpeedFactorService.prototype.list = function (serviceAreaId) {
32
+ return this.routeGenerator.get("/".concat(SERVICE_NAME, "/").concat(serviceAreaId)).invoke();
33
+ };
34
+ SpeedFactorService.prototype.update = function (payload) {
35
+ return this.routeGenerator.put(SERVICE_NAME).withPayload(payload).invoke();
36
+ };
37
+ SpeedFactorService.prototype.updateSeries = function (payload) {
38
+ return this.routeGenerator.put("".concat(SERVICE_NAME, "/series")).withPayload(payload).invoke();
39
+ };
40
+ SpeedFactorService.prototype.delete = function (dbId) {
41
+ return this.routeGenerator.delete("/".concat(SERVICE_NAME, "/db_id/").concat(dbId)).invoke();
42
+ };
43
+ SpeedFactorService.prototype.deleteSeries = function (originalUuid) {
44
+ return this.routeGenerator.delete("/".concat(SERVICE_NAME, "/series/").concat(originalUuid)).invoke();
45
+ };
46
+ return SpeedFactorService;
47
+ }(BaseService_1.default));
48
+ exports.default = SpeedFactorService;
49
+ //# sourceMappingURL=SpeedFactor.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpeedFactor.service.js","sourceRoot":"","sources":["../../../src/SpeedFactor/Service/SpeedFactor.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,uEAAiD;AAGjD,IAAM,YAAY,GAAG,6CAA6C,CAAC;AAiFnE;IAAgD,sCAA+B;IAC9E,4BAAY,OAAgB;eAC3B,kBAAM,OAAO,EAAE,aAAa,CAAC;IAC9B,CAAC;IAED,mCAAM,GAAN,UAAO,OAA0B;QAChC,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7E,CAAC;IAED,iCAAI,GAAJ,UAAK,aAAqB;QACzB,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,WAAI,YAAY,cAAI,aAAa,CAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9E,CAAC;IAED,mCAAM,GAAN,UAAO,OAA0B;QAChC,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5E,CAAC;IAED,yCAAY,GAAZ,UAAa,OAAgC;QAC5C,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,UAAG,YAAY,YAAS,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IACxF,CAAC;IAED,mCAAM,GAAN,UAAO,IAAY;QAClB,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,WAAI,YAAY,oBAAU,IAAI,CAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9E,CAAC;IAED,yCAAY,GAAZ,UAAa,YAAoB;QAChC,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,WAAI,YAAY,qBAAW,YAAY,CAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IACvF,CAAC;IACF,yBAAC;AAAD,CAAC,AA5BD,CAAgD,qBAAW,GA4B1D"}
@@ -0,0 +1,12 @@
1
+ import Session from '../Services/Identity/Session';
2
+ import { CreateSpeedFactor, CreateSpeedFactorResponse, DeleteSpeedFactorResponse, ListSpeedFactorResponse, UpdateSpeedFactor, UpdateSpeedFactorResponse, UpdateSpeedFactorSeries } from './Service/SpeedFactor.service';
3
+ export default class SpeedFactor {
4
+ private speedFactorService;
5
+ constructor(session: Session);
6
+ create(configuration: CreateSpeedFactor): Promise<CreateSpeedFactorResponse>;
7
+ list(serviceAreaId: number): Promise<ListSpeedFactorResponse>;
8
+ update(payload: UpdateSpeedFactor): Promise<UpdateSpeedFactorResponse>;
9
+ updateSeries(payload: UpdateSpeedFactorSeries): Promise<UpdateSpeedFactorResponse>;
10
+ delete(dbId: number): Promise<DeleteSpeedFactorResponse>;
11
+ deleteSeries(originalUuid: number): Promise<DeleteSpeedFactorResponse>;
12
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var SpeedFactor_service_1 = __importDefault(require("./Service/SpeedFactor.service"));
7
+ var SpeedFactor = /** @class */ (function () {
8
+ function SpeedFactor(session) {
9
+ this.speedFactorService = new SpeedFactor_service_1.default(session);
10
+ }
11
+ SpeedFactor.prototype.create = function (configuration) {
12
+ return this.speedFactorService.create(configuration);
13
+ };
14
+ SpeedFactor.prototype.list = function (serviceAreaId) {
15
+ return this.speedFactorService.list(serviceAreaId);
16
+ };
17
+ SpeedFactor.prototype.update = function (payload) {
18
+ return this.speedFactorService.update(payload);
19
+ };
20
+ SpeedFactor.prototype.updateSeries = function (payload) {
21
+ return this.speedFactorService.updateSeries(payload);
22
+ };
23
+ SpeedFactor.prototype.delete = function (dbId) {
24
+ return this.speedFactorService.delete(dbId);
25
+ };
26
+ SpeedFactor.prototype.deleteSeries = function (originalUuid) {
27
+ return this.speedFactorService.delete(originalUuid);
28
+ };
29
+ return SpeedFactor;
30
+ }());
31
+ exports.default = SpeedFactor;
32
+ //# sourceMappingURL=SpeedFactor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpeedFactor.js","sourceRoot":"","sources":["../../src/SpeedFactor/SpeedFactor.ts"],"names":[],"mappings":";;;;;AACA,sFAQuC;AAEvC;IAGC,qBAAY,OAAgB;QAC3B,IAAI,CAAC,kBAAkB,GAAG,IAAI,6BAAkB,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,4BAAM,GAAN,UAAO,aAAgC;QACtC,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACtD,CAAC;IAED,0BAAI,GAAJ,UAAK,aAAqB;QACzB,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACpD,CAAC;IAED,4BAAM,GAAN,UAAO,OAA0B;QAChC,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IAED,kCAAY,GAAZ,UAAa,OAAgC;QAC5C,OAAO,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;IAED,4BAAM,GAAN,UAAO,IAAY;QAClB,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,kCAAY,GAAZ,UAAa,YAAoB;QAChC,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACrD,CAAC;IACF,kBAAC;AAAD,CAAC,AA9BD,IA8BC"}
@@ -2673,6 +2673,7 @@ var Session_1 = __importDefault(__webpack_require__(44891));
2673
2673
  var ShiftsApi_1 = __importDefault(__webpack_require__(10942));
2674
2674
  var Signature_1 = __importDefault(__webpack_require__(59824));
2675
2675
  var SkillsApi_1 = __importDefault(__webpack_require__(28855));
2676
+ var SpeedFactor_1 = __importDefault(__webpack_require__(89808));
2676
2677
  var SupportTicketApi_1 = __importDefault(__webpack_require__(28002));
2677
2678
  var Tag_1 = __importDefault(__webpack_require__(78847));
2678
2679
  var TagCustomerConfiguration_1 = __importDefault(__webpack_require__(87798));
@@ -2741,6 +2742,7 @@ var BringgDashboardSDK = /** @class */ (function () {
2741
2742
  this.runs = null;
2742
2743
  this.rollouts = null;
2743
2744
  this.skills = null;
2745
+ this.speedFactor = null;
2744
2746
  this.taskConfigurations = null;
2745
2747
  this.taskInventory = null;
2746
2748
  this.inventory = null;
@@ -2754,7 +2756,6 @@ var BringgDashboardSDK = /** @class */ (function () {
2754
2756
  this.vehicleTypes = null;
2755
2757
  this.vehicles = null;
2756
2758
  this.session = session;
2757
- this.session.sdk = this;
2758
2759
  }
2759
2760
  BringgDashboardSDK.setConfigurations = function (apiEndpointURL, monitorEndpointURL, generalEnvApiEndpoint) {
2760
2761
  configurationProvider.getApiEndpoint = function () { return apiEndpointURL; };
@@ -3013,6 +3014,7 @@ function init(session) {
3013
3014
  bringg.service = new ServiceApi_1.default(session);
3014
3015
  bringg.signatures = new Signature_1.default(session);
3015
3016
  bringg.skills = new SkillsApi_1.default(session);
3017
+ bringg.speedFactor = new SpeedFactor_1.default(session);
3016
3018
  bringg.tagCustomerConfigurations = new TagCustomerConfiguration_1.default(session);
3017
3019
  bringg.tagMerchantConfigurations = new TagMerchantConfiguration_1.default(session);
3018
3020
  bringg.tags = new Tag_1.default(session);
@@ -15510,8 +15512,27 @@ var PlannedDeliveryWindowsApi = /** @class */ (function () {
15510
15512
  return this.deliveryWindowsStore.get(id);
15511
15513
  };
15512
15514
  PlannedDeliveryWindowsApi.prototype.bulkDelete = function (plannedDeliveryWindowsToDelete) {
15513
- var _this = this;
15514
- return this.storableDataService.deleteMany('delete', function () { return _this.deliveryWindowsService.bulkDelete(plannedDeliveryWindowsToDelete); }, plannedDeliveryWindowsToDelete.planned_delivery_windows.map(function (pdw) { return pdw.planned_delivery_window.id; }));
15515
+ return __awaiter(this, void 0, void 0, function () {
15516
+ var response;
15517
+ var _this = this;
15518
+ return __generator(this, function (_a) {
15519
+ switch (_a.label) {
15520
+ case 0: return [4 /*yield*/, this.storableDataService.deleteMany('delete', function () { return __awaiter(_this, void 0, void 0, function () {
15521
+ return __generator(this, function (_a) {
15522
+ switch (_a.label) {
15523
+ case 0: return [4 /*yield*/, this.deliveryWindowsService.bulkDelete(plannedDeliveryWindowsToDelete)];
15524
+ case 1:
15525
+ response = _a.sent();
15526
+ return [2 /*return*/];
15527
+ }
15528
+ });
15529
+ }); }, plannedDeliveryWindowsToDelete.planned_delivery_windows.map(function (pdw) { return pdw.planned_delivery_window.id; }))];
15530
+ case 1:
15531
+ _a.sent();
15532
+ return [2 /*return*/, response];
15533
+ }
15534
+ });
15535
+ });
15515
15536
  };
15516
15537
  PlannedDeliveryWindowsApi.prototype.bulkUpdate = function (plannedDeliveryWindowsToEdit) {
15517
15538
  return __awaiter(this, void 0, void 0, function () {
@@ -17683,6 +17704,21 @@ var OptimizationEvents;
17683
17704
 
17684
17705
  "use strict";
17685
17706
 
17707
+ var __extends = (this && this.__extends) || (function () {
17708
+ var extendStatics = function (d, b) {
17709
+ extendStatics = Object.setPrototypeOf ||
17710
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
17711
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
17712
+ return extendStatics(d, b);
17713
+ };
17714
+ return function (d, b) {
17715
+ if (typeof b !== "function" && b !== null)
17716
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
17717
+ extendStatics(d, b);
17718
+ function __() { this.constructor = d; }
17719
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
17720
+ };
17721
+ })();
17686
17722
  var __assign = (this && this.__assign) || function () {
17687
17723
  __assign = Object.assign || function(t) {
17688
17724
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -17694,78 +17730,30 @@ var __assign = (this && this.__assign) || function () {
17694
17730
  };
17695
17731
  return __assign.apply(this, arguments);
17696
17732
  };
17697
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17698
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17699
- return new (P || (P = Promise))(function (resolve, reject) {
17700
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17701
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17702
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17703
- step((generator = generator.apply(thisArg, _arguments || [])).next());
17704
- });
17705
- };
17706
- var __generator = (this && this.__generator) || function (thisArg, body) {
17707
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
17708
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
17709
- function verb(n) { return function (v) { return step([n, v]); }; }
17710
- function step(op) {
17711
- if (f) throw new TypeError("Generator is already executing.");
17712
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
17713
- 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;
17714
- if (y = 0, t) op = [op[0] & 2, t.value];
17715
- switch (op[0]) {
17716
- case 0: case 1: t = op; break;
17717
- case 4: _.label++; return { value: op[1], done: false };
17718
- case 5: _.label++; y = op[1]; op = [0]; continue;
17719
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
17720
- default:
17721
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
17722
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
17723
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
17724
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
17725
- if (t[2]) _.ops.pop();
17726
- _.trys.pop(); continue;
17727
- }
17728
- op = body.call(thisArg, _);
17729
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
17730
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
17731
- }
17732
- };
17733
- var __rest = (this && this.__rest) || function (s, e) {
17734
- var t = {};
17735
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
17736
- t[p] = s[p];
17737
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17738
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17739
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
17740
- t[p[i]] = s[p[i]];
17741
- }
17742
- return t;
17743
- };
17744
- var __importDefault = (this && this.__importDefault) || function (mod) {
17745
- return (mod && mod.__esModule) ? mod : { "default": mod };
17746
- };
17747
17733
  Object.defineProperty(exports, "__esModule", ({ value: true }));
17748
17734
  var BringgException_1 = __webpack_require__(43605);
17749
- var CrudService_1 = __importDefault(__webpack_require__(14809));
17750
17735
  var RouteGenerator_1 = __webpack_require__(84075);
17751
17736
  var Route_1 = __webpack_require__(92641);
17752
- var RouteOptimizationApi = /** @class */ (function () {
17737
+ var SessionBasedService_1 = __webpack_require__(27826);
17738
+ var RouteOptimizationApi = /** @class */ (function (_super) {
17739
+ __extends(RouteOptimizationApi, _super);
17753
17740
  function RouteOptimizationApi(session) {
17754
- this.optimization = new Route_1.Route('/route_optimizations/optimize', 1 /* HttpMethod.POST */);
17755
- this.optimization_v2 = new Route_1.Route('/own-fleet-optimization-service/route_optimization/optimize', 1 /* HttpMethod.POST */);
17756
- this.get_optimization_result = new Route_1.Route('/route_optimizations/get_optimization_result/{:request_uuid}', 0 /* HttpMethod.GET */);
17757
- this.get_optimization_result_v2 = new Route_1.Route('/own-fleet-optimization-service/route_optimization/get_optimization_result/{:request_uuid}', 0 /* HttpMethod.GET */);
17758
- this.cancel_requests = new Route_1.Route('/route_optimizations/optimization', 4 /* HttpMethod.DELETE */);
17759
- this.cancel_requests_v2 = new Route_1.Route('/own-fleet-optimization-service/route_optimization/optimization', 4 /* HttpMethod.DELETE */);
17760
- this.assign_users_by_ids = new Route_1.Route('/route_optimizations/assign_users_by_ids', 1 /* HttpMethod.POST */);
17761
- this.update_user_modified_data = new Route_1.Route('/route_optimizations/update_user_modified_data', 1 /* HttpMethod.POST */);
17762
- this.update_user_modified_data_v2 = new Route_1.Route('/own-fleet-optimization-service/route_optimization/update_user_modified_data', 1 /* HttpMethod.POST */);
17763
- this.assign_user_manual_optimization = new Route_1.Route('/route_optimizations/assign_user_manual_optimization', 1 /* HttpMethod.POST */);
17764
- this.service = new CrudService_1.default(session, '');
17741
+ var _this = _super.call(this, session.config.getApiEndpoint(), session) || this;
17742
+ _this.optimization = new Route_1.Route('/route_optimizations/optimize', 1 /* HttpMethod.POST */);
17743
+ _this.optimization_v2 = new Route_1.Route('/own-fleet-optimization-service/route_optimization/optimize', 1 /* HttpMethod.POST */);
17744
+ _this.get_optimization_result = new Route_1.Route('/route_optimizations/get_optimization_result/{:request_uuid}', 0 /* HttpMethod.GET */);
17745
+ _this.get_optimization_result_v2 = new Route_1.Route('/own-fleet-optimization-service/route_optimization/get_optimization_result/{:request_uuid}', 0 /* HttpMethod.GET */);
17746
+ _this.cancel_requests = new Route_1.Route('/route_optimizations/optimization', 4 /* HttpMethod.DELETE */);
17747
+ _this.cancel_requests_v2 = new Route_1.Route('/own-fleet-optimization-service/route_optimization/optimization', 4 /* HttpMethod.DELETE */);
17748
+ _this.assign_users_by_ids = new Route_1.Route('/route_optimizations/assign_users_by_ids', 1 /* HttpMethod.POST */);
17749
+ _this.update_user_modified_data = new Route_1.Route('/route_optimizations/update_user_modified_data', 1 /* HttpMethod.POST */);
17750
+ _this.update_user_modified_data_v2 = new Route_1.Route('/own-fleet-optimization-service/route_optimization/update_user_modified_data', 1 /* HttpMethod.POST */);
17751
+ _this.assign_user_manual_optimization = new Route_1.Route('/route_optimizations/assign_user_manual_optimization', 1 /* HttpMethod.POST */);
17752
+ return _this;
17765
17753
  }
17766
17754
  RouteOptimizationApi.prototype.cancelRequests = function (requestUuids, v2) {
17767
17755
  if (v2 === void 0) { v2 = false; }
17768
- return this.service.handleAuthorizedRequest({
17756
+ return this.handleAuthorizedRequest({
17769
17757
  route: v2 ? this.cancel_requests_v2 : this.cancel_requests,
17770
17758
  extractor: RouteGenerator_1.defaultExtractor,
17771
17759
  exceptionProducer: BringgException_1.BringgException.serviceException('Failed to call cancel optimization requests'),
@@ -17774,7 +17762,7 @@ var RouteOptimizationApi = /** @class */ (function () {
17774
17762
  };
17775
17763
  RouteOptimizationApi.prototype.optimize = function (optimizationProps, v2) {
17776
17764
  if (v2 === void 0) { v2 = false; }
17777
- return this.service.handleAuthorizedRequest({
17765
+ return this.handleAuthorizedRequest({
17778
17766
  route: v2 ? this.optimization_v2 : this.optimization,
17779
17767
  extractor: RouteGenerator_1.defaultExtractor,
17780
17768
  exceptionProducer: BringgException_1.BringgException.serviceException('Failed to call optimization requests'),
@@ -17783,7 +17771,7 @@ var RouteOptimizationApi = /** @class */ (function () {
17783
17771
  };
17784
17772
  RouteOptimizationApi.prototype.optimizationResult = function (request_uuid, v2) {
17785
17773
  if (v2 === void 0) { v2 = false; }
17786
- return this.service.handleAuthorizedRequest({
17774
+ return this.handleAuthorizedRequest({
17787
17775
  route: v2 ? this.get_optimization_result_v2 : this.get_optimization_result,
17788
17776
  extractor: RouteGenerator_1.defaultExtractor,
17789
17777
  exceptionProducer: BringgException_1.BringgException.serviceException('Failed to get optimization results'),
@@ -17791,7 +17779,7 @@ var RouteOptimizationApi = /** @class */ (function () {
17791
17779
  });
17792
17780
  };
17793
17781
  RouteOptimizationApi.prototype.assignUsersByIds = function (teams) {
17794
- return this.service.handleAuthorizedRequest({
17782
+ return this.handleAuthorizedRequest({
17795
17783
  route: this.assign_users_by_ids,
17796
17784
  extractor: RouteGenerator_1.defaultExtractor,
17797
17785
  exceptionProducer: BringgException_1.BringgException.serviceException('Failed to assign users by id'),
@@ -17800,7 +17788,7 @@ var RouteOptimizationApi = /** @class */ (function () {
17800
17788
  };
17801
17789
  RouteOptimizationApi.prototype.updateOptimizationModifiedData = function (updateData, v2) {
17802
17790
  if (v2 === void 0) { v2 = false; }
17803
- return this.service.handleAuthorizedRequest({
17791
+ return this.handleAuthorizedRequest({
17804
17792
  route: v2 ? this.update_user_modified_data_v2 : this.update_user_modified_data,
17805
17793
  extractor: RouteGenerator_1.defaultExtractor,
17806
17794
  exceptionProducer: BringgException_1.BringgException.serviceException('Failed to update optimization user data'),
@@ -17809,7 +17797,7 @@ var RouteOptimizationApi = /** @class */ (function () {
17809
17797
  };
17810
17798
  RouteOptimizationApi.prototype.assignUserManualOptimization = function (updateData) {
17811
17799
  var fiveMinutesInMs = 1000 * 60 * 5;
17812
- return this.service.handleAuthorizedRequest({
17800
+ return this.handleAuthorizedRequest({
17813
17801
  route: this.assign_user_manual_optimization,
17814
17802
  extractor: RouteGenerator_1.defaultExtractor,
17815
17803
  exceptionProducer: BringgException_1.BringgException.serviceException('Failed to assign user manual optimization data'),
@@ -17817,40 +17805,8 @@ var RouteOptimizationApi = /** @class */ (function () {
17817
17805
  timeout: fiveMinutesInMs
17818
17806
  });
17819
17807
  };
17820
- RouteOptimizationApi.prototype.calculatePlannedEta = function (data, _a) {
17821
- if (_a === void 0) { _a = {}; }
17822
- var _b = _a.timeout, timeout = _b === void 0 ? 100000 : _b, options = __rest(_a, ["timeout"]);
17823
- return __awaiter(this, void 0, void 0, function () {
17824
- var payload, result, asyncResult;
17825
- return __generator(this, function (_c) {
17826
- switch (_c.label) {
17827
- case 0:
17828
- payload = {
17829
- team_id: data.team_id,
17830
- data: __assign(__assign({}, data), { apply: true, deadline: Date.now() + timeout })
17831
- };
17832
- return [4 /*yield*/, this.service.routeGenerator
17833
- .post('/own-fleet-optimization-service/route_optimization/calculate_planned_eta')
17834
- .withPayload(payload)
17835
- .setException('Failed to calculate planned eta')
17836
- .withCommonOptions(options)
17837
- .invoke()];
17838
- case 1:
17839
- result = _c.sent();
17840
- return [4 /*yield*/, this.service.session.sdk.asyncOperationStatus.waitForResponse({
17841
- requestId: result.uuid,
17842
- timeoutInMs: timeout,
17843
- signal: options.signal
17844
- })];
17845
- case 2:
17846
- asyncResult = _c.sent();
17847
- return [2 /*return*/, asyncResult.data];
17848
- }
17849
- });
17850
- });
17851
- };
17852
17808
  return RouteOptimizationApi;
17853
- }());
17809
+ }(SessionBasedService_1.SessionBasedService));
17854
17810
  exports["default"] = RouteOptimizationApi;
17855
17811
  //# sourceMappingURL=RouteOptimizationApi.js.map
17856
17812
 
@@ -21561,7 +21517,7 @@ var lodash_1 = __webpack_require__(96486);
21561
21517
  var BringgException_1 = __webpack_require__(43605);
21562
21518
  var Logger_1 = __importDefault(__webpack_require__(55860));
21563
21519
  var abort_1 = __webpack_require__(34179);
21564
- var version = '8.29.0-pre';
21520
+ var version = '8.30.1-pre';
21565
21521
  function logErrorResponse(response) {
21566
21522
  var data = response.data, status = response.status;
21567
21523
  try {
@@ -22410,6 +22366,101 @@ exports["default"] = SkillsApi;
22410
22366
 
22411
22367
  /***/ }),
22412
22368
 
22369
+ /***/ 38796:
22370
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
22371
+
22372
+ "use strict";
22373
+
22374
+ var __extends = (this && this.__extends) || (function () {
22375
+ var extendStatics = function (d, b) {
22376
+ extendStatics = Object.setPrototypeOf ||
22377
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
22378
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
22379
+ return extendStatics(d, b);
22380
+ };
22381
+ return function (d, b) {
22382
+ if (typeof b !== "function" && b !== null)
22383
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
22384
+ extendStatics(d, b);
22385
+ function __() { this.constructor = d; }
22386
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
22387
+ };
22388
+ })();
22389
+ var __importDefault = (this && this.__importDefault) || function (mod) {
22390
+ return (mod && mod.__esModule) ? mod : { "default": mod };
22391
+ };
22392
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
22393
+ var BaseService_1 = __importDefault(__webpack_require__(41992));
22394
+ var SERVICE_NAME = 'own-fleet-optimization-service/speed_factor';
22395
+ var SpeedFactorService = /** @class */ (function (_super) {
22396
+ __extends(SpeedFactorService, _super);
22397
+ function SpeedFactorService(session) {
22398
+ return _super.call(this, session, 'speedFactor') || this;
22399
+ }
22400
+ SpeedFactorService.prototype.create = function (payload) {
22401
+ return this.routeGenerator.post(SERVICE_NAME).withPayload(payload).invoke();
22402
+ };
22403
+ SpeedFactorService.prototype.list = function (serviceAreaId) {
22404
+ return this.routeGenerator.get("/".concat(SERVICE_NAME, "/").concat(serviceAreaId)).invoke();
22405
+ };
22406
+ SpeedFactorService.prototype.update = function (payload) {
22407
+ return this.routeGenerator.put(SERVICE_NAME).withPayload(payload).invoke();
22408
+ };
22409
+ SpeedFactorService.prototype.updateSeries = function (payload) {
22410
+ return this.routeGenerator.put("".concat(SERVICE_NAME, "/series")).withPayload(payload).invoke();
22411
+ };
22412
+ SpeedFactorService.prototype.delete = function (dbId) {
22413
+ return this.routeGenerator.delete("/".concat(SERVICE_NAME, "/db_id/").concat(dbId)).invoke();
22414
+ };
22415
+ SpeedFactorService.prototype.deleteSeries = function (originalUuid) {
22416
+ return this.routeGenerator.delete("/".concat(SERVICE_NAME, "/series/").concat(originalUuid)).invoke();
22417
+ };
22418
+ return SpeedFactorService;
22419
+ }(BaseService_1.default));
22420
+ exports["default"] = SpeedFactorService;
22421
+ //# sourceMappingURL=SpeedFactor.service.js.map
22422
+
22423
+ /***/ }),
22424
+
22425
+ /***/ 89808:
22426
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
22427
+
22428
+ "use strict";
22429
+
22430
+ var __importDefault = (this && this.__importDefault) || function (mod) {
22431
+ return (mod && mod.__esModule) ? mod : { "default": mod };
22432
+ };
22433
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
22434
+ var SpeedFactor_service_1 = __importDefault(__webpack_require__(38796));
22435
+ var SpeedFactor = /** @class */ (function () {
22436
+ function SpeedFactor(session) {
22437
+ this.speedFactorService = new SpeedFactor_service_1.default(session);
22438
+ }
22439
+ SpeedFactor.prototype.create = function (configuration) {
22440
+ return this.speedFactorService.create(configuration);
22441
+ };
22442
+ SpeedFactor.prototype.list = function (serviceAreaId) {
22443
+ return this.speedFactorService.list(serviceAreaId);
22444
+ };
22445
+ SpeedFactor.prototype.update = function (payload) {
22446
+ return this.speedFactorService.update(payload);
22447
+ };
22448
+ SpeedFactor.prototype.updateSeries = function (payload) {
22449
+ return this.speedFactorService.updateSeries(payload);
22450
+ };
22451
+ SpeedFactor.prototype.delete = function (dbId) {
22452
+ return this.speedFactorService.delete(dbId);
22453
+ };
22454
+ SpeedFactor.prototype.deleteSeries = function (originalUuid) {
22455
+ return this.speedFactorService.delete(originalUuid);
22456
+ };
22457
+ return SpeedFactor;
22458
+ }());
22459
+ exports["default"] = SpeedFactor;
22460
+ //# sourceMappingURL=SpeedFactor.js.map
22461
+
22462
+ /***/ }),
22463
+
22413
22464
  /***/ 20040:
22414
22465
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
22415
22466
 
@@ -34842,18 +34893,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
34842
34893
  "use strict";
34843
34894
 
34844
34895
  Object.defineProperty(exports, "__esModule", ({ value: true }));
34845
- exports.PlannedTasksFilterOptions = exports.UnassignedFilterOptions = exports.ReadyForPickupFilterOptions = exports.GroupMode = void 0;
34846
- var GroupMode;
34847
- (function (GroupMode) {
34848
- GroupMode["Driver"] = "Driver";
34849
- GroupMode["Fleet"] = "Fleet";
34850
- GroupMode["FleetTeam"] = "FleetTeam";
34851
- GroupMode["None"] = "None";
34852
- GroupMode["Route"] = "Route";
34853
- GroupMode["Team"] = "Team";
34854
- GroupMode["TeamDriver"] = "TeamDriver";
34855
- GroupMode["TeamRoute"] = "TeamRoute";
34856
- })(GroupMode || (exports.GroupMode = GroupMode = {}));
34896
+ exports.PlannedTasksFilterOptions = exports.UnassignedFilterOptions = exports.ReadyForPickupFilterOptions = void 0;
34857
34897
  var ReadyForPickupFilterOptions;
34858
34898
  (function (ReadyForPickupFilterOptions) {
34859
34899
  ReadyForPickupFilterOptions[ReadyForPickupFilterOptions["NOT_READY_FOR_PICKUP"] = 1] = "NOT_READY_FOR_PICKUP";