@bringg/dashboard-sdk 9.28.4 → 9.28.6

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.
@@ -103,7 +103,8 @@ var OptimizationResultService = /** @class */ (function () {
103
103
  .withPayload({
104
104
  parent_request_uuid: request.parent_request_uuid,
105
105
  request_uuid: request.request_uuid,
106
- configuration: request.configuration
106
+ configuration: request.configuration,
107
+ resources: request.resources
107
108
  })
108
109
  .invoke()];
109
110
  case 1: return [2 /*return*/, _a.sent()];
@@ -1 +1 @@
1
- {"version":3,"file":"optimization-result-service.js","sourceRoot":"","sources":["../../src/OptimizationResult/optimization-result-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,oEAA8C;AAG9C,IAAM,UAAU,GAAG,qBAAqB,CAAC;AAEzC,IAAM,MAAM,GAAG,gCAAgC,CAAC;AAEnC,QAAA,MAAM,GAAG;IACrB,GAAG,EAAE,WAAI,MAAM,yBAAsB;IACrC,OAAO,EAAE,WAAI,MAAM,0BAAuB;IAC1C,KAAK,EAAE,WAAI,MAAM,2CAAwC;CACzD,CAAC;AAEF;IAEC,mCAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;IAEY,wCAAI,GAAjB,UAAkB,MAAc,EAAE,WAAmB;;;;4BAC7C,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,GAAG,CAAC,cAAM,CAAC,GAAG,CAAC;6BACf,YAAY,CAAC,oCAAoC,CAAC;6BAClD,eAAe,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;6BAC/D,MAAM,EAAE,EAAA;4BAJV,sBAAO,SAIG,EAAC;;;;KACX;IAEY,2CAAO,GAApB,UAAqB,OAAmC;;;;4BAChD,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,GAAG,CAAC,cAAM,CAAC,OAAO,CAAC;6BACnB,YAAY,CAAC,qCAAqC,CAAC;6BACnD,eAAe,CAAC;4BAChB,OAAO,EAAE,OAAO,CAAC,OAAO;4BACxB,UAAU,EAAE,OAAO,CAAC,UAAU;4BAC9B,QAAQ,EAAE,OAAO,CAAC,QAAQ;4BAC1B,SAAS,EAAE,OAAO,CAAC,SAAS;4BAC5B,WAAW,EAAE,OAAO,CAAC,WAAW;4BAChC,MAAM,EAAE,OAAO,CAAC,MAAM;4BACtB,QAAQ,EAAE,OAAO,CAAC,QAAQ;4BAC1B,WAAW,EAAE,OAAO,CAAC,WAAW;4BAChC,cAAc,EAAE,OAAO,CAAC,cAAc;4BACtC,aAAa,EAAE,OAAO,CAAC,aAAa;4BACpC,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;4BAClD,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;yBAChD,CAAC;6BACD,MAAM,EAAE,EAAA;4BAjBV,sBAAO,SAiBG,EAAC;;;;KACX;IAEY,yCAAK,GAAlB,UAAmB,OAAiC;;;;4BAC5C,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,IAAI,CAAC,cAAM,CAAC,KAAK,CAAC;6BAClB,YAAY,CAAC,qDAA8C,OAAO,CAAC,YAAY,CAAE,CAAC;6BAClF,WAAW,CAAC;4BACZ,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;4BAChD,YAAY,EAAE,OAAO,CAAC,YAAY;4BAClC,aAAa,EAAE,OAAO,CAAC,aAAa;yBACpC,CAAC;6BACD,MAAM,EAAE,EAAA;4BARV,sBAAO,SAQG,EAAC;;;;KACX;IACF,gCAAC;AAAD,CAAC,AA9CD,IA8CC"}
1
+ {"version":3,"file":"optimization-result-service.js","sourceRoot":"","sources":["../../src/OptimizationResult/optimization-result-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,oEAA8C;AAG9C,IAAM,UAAU,GAAG,qBAAqB,CAAC;AAEzC,IAAM,MAAM,GAAG,gCAAgC,CAAC;AAEnC,QAAA,MAAM,GAAG;IACrB,GAAG,EAAE,WAAI,MAAM,yBAAsB;IACrC,OAAO,EAAE,WAAI,MAAM,0BAAuB;IAC1C,KAAK,EAAE,WAAI,MAAM,2CAAwC;CACzD,CAAC;AAEF;IAEC,mCAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;IAEY,wCAAI,GAAjB,UAAkB,MAAc,EAAE,WAAmB;;;;4BAC7C,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,GAAG,CAAC,cAAM,CAAC,GAAG,CAAC;6BACf,YAAY,CAAC,oCAAoC,CAAC;6BAClD,eAAe,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;6BAC/D,MAAM,EAAE,EAAA;4BAJV,sBAAO,SAIG,EAAC;;;;KACX;IAEY,2CAAO,GAApB,UAAqB,OAAmC;;;;4BAChD,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,GAAG,CAAC,cAAM,CAAC,OAAO,CAAC;6BACnB,YAAY,CAAC,qCAAqC,CAAC;6BACnD,eAAe,CAAC;4BAChB,OAAO,EAAE,OAAO,CAAC,OAAO;4BACxB,UAAU,EAAE,OAAO,CAAC,UAAU;4BAC9B,QAAQ,EAAE,OAAO,CAAC,QAAQ;4BAC1B,SAAS,EAAE,OAAO,CAAC,SAAS;4BAC5B,WAAW,EAAE,OAAO,CAAC,WAAW;4BAChC,MAAM,EAAE,OAAO,CAAC,MAAM;4BACtB,QAAQ,EAAE,OAAO,CAAC,QAAQ;4BAC1B,WAAW,EAAE,OAAO,CAAC,WAAW;4BAChC,cAAc,EAAE,OAAO,CAAC,cAAc;4BACtC,aAAa,EAAE,OAAO,CAAC,aAAa;4BACpC,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;4BAClD,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;yBAChD,CAAC;6BACD,MAAM,EAAE,EAAA;4BAjBV,sBAAO,SAiBG,EAAC;;;;KACX;IAEY,yCAAK,GAAlB,UAAmB,OAAiC;;;;4BAC5C,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,IAAI,CAAC,cAAM,CAAC,KAAK,CAAC;6BAClB,YAAY,CAAC,qDAA8C,OAAO,CAAC,YAAY,CAAE,CAAC;6BAClF,WAAW,CAAC;4BACZ,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;4BAChD,YAAY,EAAE,OAAO,CAAC,YAAY;4BAClC,aAAa,EAAE,OAAO,CAAC,aAAa;4BACpC,SAAS,EAAE,OAAO,CAAC,SAAS;yBAC5B,CAAC;6BACD,MAAM,EAAE,EAAA;4BATV,sBAAO,SASG,EAAC;;;;KACX;IACF,gCAAC;AAAD,CAAC,AA/CD,IA+CC"}
@@ -56,7 +56,7 @@ var lodash_1 = require("lodash");
56
56
  var BringgException_1 = require("../Core/BringgException");
57
57
  var Logger_1 = __importDefault(require("../Core/Logger"));
58
58
  var abort_1 = require("../utils/abort");
59
- var version = '9.28.4';
59
+ var version = '9.28.6';
60
60
  function logErrorResponse(response) {
61
61
  var data = response.data, status = response.status;
62
62
  try {
@@ -15287,7 +15287,8 @@ var OptimizationResultService = /** @class */ (function () {
15287
15287
  .withPayload({
15288
15288
  parent_request_uuid: request.parent_request_uuid,
15289
15289
  request_uuid: request.request_uuid,
15290
- configuration: request.configuration
15290
+ configuration: request.configuration,
15291
+ resources: request.resources
15291
15292
  })
15292
15293
  .invoke()];
15293
15294
  case 1: return [2 /*return*/, _a.sent()];
@@ -22742,7 +22743,7 @@ var lodash_1 = __webpack_require__(96486);
22742
22743
  var BringgException_1 = __webpack_require__(43605);
22743
22744
  var Logger_1 = __importDefault(__webpack_require__(55860));
22744
22745
  var abort_1 = __webpack_require__(34179);
22745
- var version = '9.28.4';
22746
+ var version = '9.28.6';
22746
22747
  function logErrorResponse(response) {
22747
22748
  var data = response.data, status = response.status;
22748
22749
  try {
@@ -35123,11 +35124,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
35123
35124
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
35124
35125
  };
35125
35126
  Object.defineProperty(exports, "__esModule", ({ value: true }));
35127
+ exports.RouteOptimizer = exports.MapOptimizer = void 0;
35126
35128
  __exportStar(__webpack_require__(82285), exports);
35127
35129
  __exportStar(__webpack_require__(2267), exports);
35128
35130
  __exportStar(__webpack_require__(13401), exports);
35129
35131
  __exportStar(__webpack_require__(63725), exports);
35130
35132
  __exportStar(__webpack_require__(26383), exports);
35133
+ __exportStar(__webpack_require__(11168), exports);
35131
35134
  __exportStar(__webpack_require__(82849), exports);
35132
35135
  __exportStar(__webpack_require__(54581), exports);
35133
35136
  __exportStar(__webpack_require__(21434), exports);
@@ -35177,6 +35180,7 @@ __exportStar(__webpack_require__(55820), exports);
35177
35180
  __exportStar(__webpack_require__(52658), exports);
35178
35181
  __exportStar(__webpack_require__(7798), exports);
35179
35182
  __exportStar(__webpack_require__(9922), exports);
35183
+ exports.MapOptimizer = __webpack_require__(72385);
35180
35184
  __exportStar(__webpack_require__(46298), exports);
35181
35185
  __exportStar(__webpack_require__(95372), exports);
35182
35186
  __exportStar(__webpack_require__(81422), exports);
@@ -35215,6 +35219,7 @@ __exportStar(__webpack_require__(10228), exports);
35215
35219
  __exportStar(__webpack_require__(53543), exports);
35216
35220
  __exportStar(__webpack_require__(2730), exports);
35217
35221
  __exportStar(__webpack_require__(56526), exports);
35222
+ exports.RouteOptimizer = __webpack_require__(44336);
35218
35223
  __exportStar(__webpack_require__(37390), exports);
35219
35224
  __exportStar(__webpack_require__(4443), exports);
35220
35225
  __exportStar(__webpack_require__(71836), exports);
@@ -35319,6 +35324,7 @@ var ActionType;
35319
35324
  ActionType[ActionType["DUPLICATE_TASK"] = 26] = "DUPLICATE_TASK";
35320
35325
  ActionType[ActionType["USER_WEBHOOK"] = 27] = "USER_WEBHOOK";
35321
35326
  ActionType[ActionType["DELIVERY_WINDOW_WEBHOOK"] = 28] = "DELIVERY_WINDOW_WEBHOOK";
35327
+ ActionType[ActionType["RESTORE_PREVIOUSLY_REMOVED_WAYPOINT"] = 29] = "RESTORE_PREVIOUSLY_REMOVED_WAYPOINT";
35322
35328
  })(ActionType || (exports.ActionType = ActionType = {}));
35323
35329
  var ActionKey;
35324
35330
  (function (ActionKey) {
@@ -35433,6 +35439,16 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
35433
35439
 
35434
35440
  /***/ }),
35435
35441
 
35442
+ /***/ 11168:
35443
+ /***/ ((__unused_webpack_module, exports) => {
35444
+
35445
+ "use strict";
35446
+
35447
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
35448
+ //# sourceMappingURL=ai_insights.js.map
35449
+
35450
+ /***/ }),
35451
+
35436
35452
  /***/ 82849:
35437
35453
  /***/ ((__unused_webpack_module, exports) => {
35438
35454
 
@@ -35574,6 +35590,21 @@ var SharedEntityAccessLevel;
35574
35590
  "use strict";
35575
35591
 
35576
35592
  Object.defineProperty(exports, "__esModule", ({ value: true }));
35593
+ exports.PredefinedDateRange = void 0;
35594
+ var PredefinedDateRange;
35595
+ (function (PredefinedDateRange) {
35596
+ PredefinedDateRange["today"] = "today";
35597
+ PredefinedDateRange["yesterday"] = "yesterday";
35598
+ PredefinedDateRange["tomorrow"] = "tomorrow";
35599
+ PredefinedDateRange["this week"] = "this week";
35600
+ PredefinedDateRange["this month"] = "this month";
35601
+ PredefinedDateRange["from 6 days ago to now"] = "from 6 days ago to now";
35602
+ PredefinedDateRange["from 29 days ago to now"] = "from 29 days ago to now";
35603
+ PredefinedDateRange["last month"] = "last month";
35604
+ PredefinedDateRange["next 7 days"] = "next 7 days";
35605
+ PredefinedDateRange["next 30 days"] = "next 30 days";
35606
+ PredefinedDateRange["next month"] = "next month";
35607
+ })(PredefinedDateRange || (exports.PredefinedDateRange = PredefinedDateRange = {}));
35577
35608
  //# sourceMappingURL=cubejs.js.map
35578
35609
 
35579
35610
  /***/ }),
@@ -35902,6 +35933,8 @@ var WidgetType;
35902
35933
  WidgetType[WidgetType["ReversedBarChart"] = 5] = "ReversedBarChart";
35903
35934
  WidgetType[WidgetType["ReversedFullWidthBarChart"] = 6] = "ReversedFullWidthBarChart";
35904
35935
  WidgetType[WidgetType["BasicLineChart"] = 7] = "BasicLineChart";
35936
+ WidgetType[WidgetType["MultiHorizontalReversedBarChart"] = 8] = "MultiHorizontalReversedBarChart";
35937
+ WidgetType[WidgetType["DoubleYAxisChart"] = 9] = "DoubleYAxisChart";
35905
35938
  })(WidgetType || (exports.WidgetType = WidgetType = {}));
35906
35939
  //# sourceMappingURL=widgets.js.map
35907
35940
 
@@ -36070,6 +36103,7 @@ var RecurrencePeriod;
36070
36103
  RecurrencePeriod["Monthly"] = "Monthly";
36071
36104
  RecurrencePeriod["Weekly"] = "Weekly";
36072
36105
  RecurrencePeriod["Daily"] = "Daily";
36106
+ RecurrencePeriod["Hourly"] = "Hourly";
36073
36107
  })(RecurrencePeriod || (exports.RecurrencePeriod = RecurrencePeriod = {}));
36074
36108
  var ReportDeliveryType;
36075
36109
  (function (ReportDeliveryType) {
@@ -36134,7 +36168,6 @@ var ApplicationUuid;
36134
36168
  ApplicationUuid["BackToWarehouse"] = "d21a5684-8997-11e8-9a94-a6cf71072f73";
36135
36169
  ApplicationUuid["Boulanger"] = "34dc733d-7d17-4e44-8884-bb1ec1197da6";
36136
36170
  ApplicationUuid["Clover"] = "7661994f-da60-4f5d-bda9-4c132fb19484";
36137
- ApplicationUuid["CocaCola"] = "eaf03283-dce4-4567-b6bf-f3eb3573357e";
36138
36171
  ApplicationUuid["CancellationTasks"] = "94c67d35-e289-44de-a19d-8ee0b02b00e0";
36139
36172
  ApplicationUuid["Chat"] = "6ee9296a-38bd-4d8e-81c6-b16001a20ee3";
36140
36173
  ApplicationUuid["CocaColaBrazilApp"] = "f9bd58a4-a514-11ea-bb37-0242ac130002";
@@ -36180,7 +36213,6 @@ var ApplicationUuid;
36180
36213
  ApplicationUuid["SuperAdmin"] = "2b8d33ba-41dc-4db5-bf42-791cd340154e";
36181
36214
  ApplicationUuid["ShareLocationOnUpdate"] = "b9c4b248-c517-11e9-aa8c-2a2ae2dbcce4";
36182
36215
  ApplicationUuid["Shell"] = "7167224f-1689-44eb-a615-ca2935e71b83";
36183
- ApplicationUuid["Shopify"] = "2c376813-6647-498f-b53f-a53352ba02d7";
36184
36216
  ApplicationUuid["SingleSignOn"] = "ec763a46-8ad7-48d8-aab7-dcefcb794ff9";
36185
36217
  ApplicationUuid["SmsDriverNotifier"] = "cbd475f3-a88b-45cb-aaf5-4d9bbe2c2f0b";
36186
36218
  ApplicationUuid["StoreAppApp"] = "b4152c59-70a3-415e-b414-ce419550782e";
@@ -37093,7 +37125,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
37093
37125
  "use strict";
37094
37126
 
37095
37127
  Object.defineProperty(exports, "__esModule", ({ value: true }));
37096
- exports.RouteOrderByField = exports.RunStatusFilterOptions = exports.PlannedTasksFilterOptions = exports.UnassignedFilterOptions = exports.ReadyForPickupFilterOptions = exports.GroupMode = void 0;
37128
+ exports.RouteOrderByField = exports.SORT_VALUE = exports.RunStatusFilterOptions = exports.PlannedTasksFilterOptions = exports.UnassignedFilterOptions = exports.ReadyForPickupFilterOptions = exports.GroupMode = void 0;
37097
37129
  var GroupMode;
37098
37130
  (function (GroupMode) {
37099
37131
  GroupMode["Driver"] = "Driver";
@@ -37125,6 +37157,7 @@ var RunStatusFilterOptions;
37125
37157
  RunStatusFilterOptions[RunStatusFilterOptions["OPEN"] = 1] = "OPEN";
37126
37158
  RunStatusFilterOptions[RunStatusFilterOptions["CLOSE"] = 2] = "CLOSE";
37127
37159
  })(RunStatusFilterOptions || (exports.RunStatusFilterOptions = RunStatusFilterOptions = {}));
37160
+ exports.SORT_VALUE = 'sort_value';
37128
37161
  var RouteOrderByField;
37129
37162
  (function (RouteOrderByField) {
37130
37163
  RouteOrderByField["Name"] = "Name";
@@ -37728,6 +37761,36 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
37728
37761
 
37729
37762
  /***/ }),
37730
37763
 
37764
+ /***/ 72385:
37765
+ /***/ ((__unused_webpack_module, exports) => {
37766
+
37767
+ "use strict";
37768
+
37769
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
37770
+ exports.SpeedFactorCrudAction = exports.MapOptimizerAction = void 0;
37771
+ var MapOptimizerAction;
37772
+ (function (MapOptimizerAction) {
37773
+ MapOptimizerAction["AddDirections"] = "add_directions";
37774
+ MapOptimizerAction["CalculateDistanceMatrix"] = "calculate_distance_matrix";
37775
+ MapOptimizerAction["CalculateDistanceMatrixWithMultipleTimeWindows"] = "calculate_distance_matrix_with_multiple_tw";
37776
+ MapOptimizerAction["CalculateRoutes"] = "calculate_routes";
37777
+ MapOptimizerAction["CalculateRoutesMatrix"] = "calculate_routes_matrix";
37778
+ MapOptimizerAction["CalculateIsochrone"] = "calculate_isochrone";
37779
+ MapOptimizerAction["ServiceAreaSpeedFactorsCRUD"] = "service_area_speed_factors_CRUD";
37780
+ })(MapOptimizerAction || (exports.MapOptimizerAction = MapOptimizerAction = {}));
37781
+ var SpeedFactorCrudAction;
37782
+ (function (SpeedFactorCrudAction) {
37783
+ SpeedFactorCrudAction["Create"] = "create";
37784
+ SpeedFactorCrudAction["Read"] = "read";
37785
+ SpeedFactorCrudAction["Update"] = "update";
37786
+ SpeedFactorCrudAction["UpdateSeries"] = "update_series";
37787
+ SpeedFactorCrudAction["Delete"] = "delete";
37788
+ SpeedFactorCrudAction["DeleteSeries"] = "delete_series";
37789
+ })(SpeedFactorCrudAction || (exports.SpeedFactorCrudAction = SpeedFactorCrudAction = {}));
37790
+ //# sourceMappingURL=map_optimizer_types.js.map
37791
+
37792
+ /***/ }),
37793
+
37731
37794
  /***/ 46298:
37732
37795
  /***/ ((__unused_webpack_module, exports) => {
37733
37796
 
@@ -38349,6 +38412,7 @@ var PrivilegeTypes;
38349
38412
  PrivilegeTypes["EDIT_COMPANY"] = "edit_company";
38350
38413
  PrivilegeTypes["ENABLE_BI_DASHBOARD"] = "enable_bi_dashboard";
38351
38414
  PrivilegeTypes["EDIT_EXCLUSION_WINDOWS"] = "edit_exclusion_windows";
38415
+ PrivilegeTypes["VIEW_EXCLUSION_WINDOWS"] = "view_exclusion_windows";
38352
38416
  PrivilegeTypes["EDIT_TASK_DETAILS"] = "edit_task_details";
38353
38417
  PrivilegeTypes["TASKS_CSV_IMPORTER_EDIT_HEADERS"] = "tasks_csv_importer_edit_headers";
38354
38418
  PrivilegeTypes["EDIT_SERVICE_AREAS"] = "edit_service_areas";
@@ -38387,6 +38451,8 @@ var PrivilegeTypes;
38387
38451
  PrivilegeTypes["ALLOW_USING_ROUTE_PLANNER_IN_DISPATCH"] = "allow_using_route_planner_in_dispatch";
38388
38452
  PrivilegeTypes["ALLOW_USING_ROUTE_PLANNER_IN_PLANNING"] = "allow_using_route_planner_in_planning";
38389
38453
  PrivilegeTypes["IS_ANALYTICS_CAPACITY_UTILIZATION_REPORT_ENABLED"] = "is_analytics_capacity_utilization_report_enabled";
38454
+ PrivilegeTypes["VIEW_PLANNED_DELIVERY_WINDOWS"] = "view_planned_delivery_windows";
38455
+ PrivilegeTypes["EDIT_PLANNED_DELIVERY_WINDOWS"] = "edit_planned_delivery_windows";
38390
38456
  })(PrivilegeTypes || (exports.PrivilegeTypes = PrivilegeTypes = {}));
38391
38457
  exports.PRIVILEGES_DEFAULTS = (_a = {},
38392
38458
  _a[PrivilegeTypes.CANCEL_TASK] = true,
@@ -38402,6 +38468,8 @@ exports.PRIVILEGES_DEFAULTS = (_a = {},
38402
38468
  _a[PrivilegeTypes.FLOATING_INVENTORY_TRANSFER_OWNERSHIP_TO_TEAM] = true,
38403
38469
  _a[PrivilegeTypes.ALLOW_USING_ROUTE_PLANNER_IN_DISPATCH] = true,
38404
38470
  _a[PrivilegeTypes.ALLOW_USING_ROUTE_PLANNER_IN_PLANNING] = true,
38471
+ _a[PrivilegeTypes.VIEW_PLANNED_DELIVERY_WINDOWS] = true,
38472
+ _a[PrivilegeTypes.VIEW_EXCLUSION_WINDOWS] = true,
38405
38473
  _a);
38406
38474
  //# sourceMappingURL=privilege.js.map
38407
38475
 
@@ -38527,6 +38595,7 @@ var RealtimeEvent;
38527
38595
  RealtimeEvent["EtaRecalculateDone"] = "eta_recalculate:done";
38528
38596
  RealtimeEvent["FloatingInventoryAdded"] = "floating_inventory:added";
38529
38597
  RealtimeEvent["FloatingInventoryRemoved"] = "floating_inventory:removed";
38598
+ RealtimeEvent["InsightStream"] = "insight_stream";
38530
38599
  RealtimeEvent["MerchantConfigurationUpdated"] = "merchant:configuration_updated";
38531
38600
  RealtimeEvent["UserConfigurationUpdated"] = "user:configuration_updated";
38532
38601
  RealtimeEvent["MerchantUpdated"] = "merchant:updated";
@@ -38761,6 +38830,214 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
38761
38830
 
38762
38831
  /***/ }),
38763
38832
 
38833
+ /***/ 44336:
38834
+ /***/ ((__unused_webpack_module, exports) => {
38835
+
38836
+ "use strict";
38837
+
38838
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
38839
+ exports.OptimizationPriorities = exports.ERROR_CODE = exports.TASK_FIFO = exports.ValidLimitations = exports.WayPointType = exports.ActivityType = exports.SquashType = exports.FleetSize = exports.DMEngine = exports.OptimizationSolver = exports.UnassignedAfterOptimization = exports.UnassignedBeforeOptimization = exports.UnassignedJobReasonForServer = exports.UnassignedJobReason = exports.Actions = exports.DEFAULT_OPTIMIZATION_PARAMETERS = void 0;
38840
+ exports.DEFAULT_OPTIMIZATION_PARAMETERS = {
38841
+ TASK_PRIORITY: 2,
38842
+ TASK_DURATION_IN_MINUTES: 1,
38843
+ TASK_CAPACITY: 1,
38844
+ USER_TYPE_CAPACITY: 1,
38845
+ USER_TYPE_COST: 1,
38846
+ USER_TYPE_ID: 0,
38847
+ MIN_OPTIMIZATION_PRIORITY: 10
38848
+ };
38849
+ var Actions;
38850
+ (function (Actions) {
38851
+ Actions["ScheduledRouteOptimization"] = "scheduled_route_optimization";
38852
+ Actions["BatchScheduledRouteOptimization"] = "batch_scheduled_route_optimization";
38853
+ Actions["RouteOptimizationRequest"] = "route_optimization_request";
38854
+ Actions["RouteOptimizationRpcRequest"] = "route_optimization_request_rpc";
38855
+ Actions["RouteOptimizationCacheRefresh"] = "route_optimization_cache_refresh";
38856
+ Actions["RouteOptimizationDone"] = "route_optimization_done";
38857
+ Actions["CalculateDistanceMatrix"] = "calculate_distance_matrix";
38858
+ Actions["CalculateRoutesResponse"] = "help_build_distance_matrix_response";
38859
+ Actions["CalculateETA"] = "calculate_eta";
38860
+ Actions["AcceptQuote"] = "accept_quote";
38861
+ Actions["SplitToClusters"] = "split_to_clusters";
38862
+ })(Actions || (exports.Actions = Actions = {}));
38863
+ var UnassignedJobReason;
38864
+ (function (UnassignedJobReason) {
38865
+ UnassignedJobReason["reason_not_found"] = "reason not found";
38866
+ UnassignedJobReason["out_of_max_distance"] = "cannot be assigned due to max distance constraint of vehicle";
38867
+ UnassignedJobReason["no_driver_in_tasks_time_window"] = "no driver in appropriate time window";
38868
+ UnassignedJobReason["exceed_all_drivers_allowed_maximal_load"] = "Exceed all drivers maximal load";
38869
+ UnassignedJobReason["exceed_all_drivers_containers"] = "Exceed all drivers containers";
38870
+ UnassignedJobReason["no_driver_with_required_skills"] = "no_driver_with_required_skills";
38871
+ UnassignedJobReason["excluded_from_all_drivers"] = "no driver that can serve the job";
38872
+ UnassignedJobReason["driver_that_task_assign_to_not_found_in_optimization"] = "driver that task assigned to not found in optimization";
38873
+ UnassignedJobReason["active_task_not_assigned_to_driver"] = "active task not assigned to driver";
38874
+ UnassignedJobReason["illegal_coordinate"] = "illegal coordinate";
38875
+ UnassignedJobReason["task_assigned_to_driver_that_rejected_the_task"] = "task assigned to driver that rejected the task";
38876
+ UnassignedJobReason["invalid_capacity_dimensions_for_task"] = "invalid capacity dimensions for task";
38877
+ UnassignedJobReason["negative_capacity_requirements"] = "The capacity value must not be negative.";
38878
+ UnassignedJobReason["negative_max_time_in_vehicle"] = "The maximum time in vehicle must be positive.";
38879
+ UnassignedJobReason["negative_service_time"] = "The service time of must be positive";
38880
+ UnassignedJobReason["negative_loading_time"] = "The loading time of must be positive";
38881
+ UnassignedJobReason["max_time_in_vehicle_not_supported_for_job_type"] = "The maximum time in vehicle is not yet supported for Pickups and Services.";
38882
+ UnassignedJobReason["invalid_priority"] = "The priority value is not valid. Only 1 (very high) to 10 (very low) are allowed.";
38883
+ UnassignedJobReason["load_constrains"] = "does not fit into any vehicle due to capacity";
38884
+ UnassignedJobReason["time_constraints"] = "cannot be visited within time window";
38885
+ UnassignedJobReason["time_or_customer_availability_constraints"] = "Order cannot be fulfilled at this time due to time window or your availability limitations";
38886
+ UnassignedJobReason["skills_constraint"] = "cannot serve required skill";
38887
+ UnassignedJobReason["max_time_in_vehicle_constraint"] = "cannot be assigned due to max time on vehicle constraint of vehicle";
38888
+ UnassignedJobReason["failed_to_pack"] = "failed to pack";
38889
+ UnassignedJobReason["route_constraint"] = "failed due to route constraint";
38890
+ UnassignedJobReason["driving_times_limitations"] = "failed due driving time limitations";
38891
+ UnassignedJobReason["failed_to_find_driver_for_cluster"] = "failed to find driver for cluster";
38892
+ UnassignedJobReason["tasks_unmatched_conditions"] = "Order removed from optimization due to unmatched conditions";
38893
+ })(UnassignedJobReason || (exports.UnassignedJobReason = UnassignedJobReason = {}));
38894
+ exports.UnassignedJobReasonForServer = {
38895
+ 'reason not found': 'reason_not_found',
38896
+ 'cannot be assigned due to max distance constraint of vehicle': 'OUT_OF_MAX_DISTANCE',
38897
+ 'no driver in appropriate time window': 'NO_DRIVER_IN_TASKS_TIME_WINDOW',
38898
+ 'Exceed all drivers maximal load': 'EXCEED_ALL_DRIVERS_ALLOWED_MAXIMAL_LOAD',
38899
+ 'Exceed all drivers containers': 'EXCEED_ALL_DRIVERS_CONTAINERS',
38900
+ no_driver_with_required_skills: 'NO_DRIVER_WITH_REQUIRED_SKILLS',
38901
+ 'no driver that can serve the job': 'EXCLUDED_FROM_ALL_DRIVERS',
38902
+ 'driver that task assigned to not found in optimization': 'DRIVER_THAT_TASK_ASSIGN_TO_NOT_FOUND_IN_OPTIMIZATION',
38903
+ 'active task not assigned to driver': 'ACTIVE_TASK_NOT_ASSIGNED_TO_DRIVER',
38904
+ 'illegal coordinate': 'ILLEGAL_COORDINATE',
38905
+ 'task assigned to driver that rejected the task': 'TASK_ASSIGNED_TO_DRIVER_THAT_REJECTED_THE_TASK',
38906
+ 'invalid capacity dimensions for task': 'INVALID_CAPACITY_DIMENSIONS_FOR_TASK',
38907
+ 'The capacity value must not be negative.': 'NEGATIVE_CAPACITY_REQUIREMENTS',
38908
+ 'The maximum time in vehicle must be positive.': 'NEGATIVE_MAX_TIME_IN_VEHICLE',
38909
+ 'The service time of must be positive': 'NEGATIVE_SERVICE_TIME',
38910
+ 'The loading time of must be positive': 'NEGATIVE_LOADING_TIME',
38911
+ 'The maximum time in vehicle is not yet supported for Pickups and Services.': 'MAX_TIME_IN_VEHICLE_NOT_SUPPORTED_FOR_JOB_TYPE',
38912
+ 'The priority value is not valid. Only 1 (very high) to 10 (very low) are allowed.': 'INVALID_PRIORITY',
38913
+ 'does not fit into any vehicle due to capacity': 'LOAD_CONSTRAINS',
38914
+ 'cannot be visited within time window': 'TIME_CONSTRAINTS',
38915
+ 'Order cannot be fulfilled at this time due to time window or your availability limitations': 'TIME_OR_CUSTOMER_AVAILABILITY_CONSTRAINTS',
38916
+ 'cannot serve required skill': 'SKILLS_CONSTRAINT',
38917
+ 'cannot be assigned due to max time on vehicle constraint of vehicle': 'MAX_TIME_IN_VEHICLE_CONSTRAINT',
38918
+ 'failed to pack': 'FAILED_TO_PACK',
38919
+ 'failed due to route constraint': 'ROUTE_CONSTRAINT',
38920
+ 'failed due driving time limitations': 'DRIVING_TIMES_LIMITATIONS',
38921
+ 'failed to find driver for cluster': 'FAILED_TO_FIND_DRIVER_FOR_CLUSTER',
38922
+ 'failed due to routing area': 'FAILED_TO_INSERT_DUE_TO_ROUTING_AREA'
38923
+ };
38924
+ exports.UnassignedBeforeOptimization = [
38925
+ UnassignedJobReason.out_of_max_distance,
38926
+ UnassignedJobReason.no_driver_in_tasks_time_window,
38927
+ UnassignedJobReason.no_driver_with_required_skills,
38928
+ UnassignedJobReason.exceed_all_drivers_allowed_maximal_load,
38929
+ UnassignedJobReason.exceed_all_drivers_containers,
38930
+ UnassignedJobReason.excluded_from_all_drivers,
38931
+ UnassignedJobReason.driver_that_task_assign_to_not_found_in_optimization,
38932
+ UnassignedJobReason.active_task_not_assigned_to_driver,
38933
+ UnassignedJobReason.illegal_coordinate,
38934
+ UnassignedJobReason.task_assigned_to_driver_that_rejected_the_task,
38935
+ UnassignedJobReason.invalid_capacity_dimensions_for_task,
38936
+ UnassignedJobReason.negative_capacity_requirements,
38937
+ UnassignedJobReason.negative_max_time_in_vehicle,
38938
+ UnassignedJobReason.negative_service_time,
38939
+ UnassignedJobReason.negative_loading_time,
38940
+ UnassignedJobReason.max_time_in_vehicle_not_supported_for_job_type,
38941
+ UnassignedJobReason.invalid_priority,
38942
+ UnassignedJobReason.tasks_unmatched_conditions
38943
+ ];
38944
+ exports.UnassignedAfterOptimization = [
38945
+ UnassignedJobReason.load_constrains,
38946
+ UnassignedJobReason.time_constraints,
38947
+ UnassignedJobReason.time_or_customer_availability_constraints,
38948
+ UnassignedJobReason.skills_constraint,
38949
+ UnassignedJobReason.failed_to_find_driver_for_cluster,
38950
+ UnassignedJobReason.failed_to_pack,
38951
+ UnassignedJobReason.route_constraint,
38952
+ UnassignedJobReason.max_time_in_vehicle_constraint,
38953
+ UnassignedJobReason.driving_times_limitations
38954
+ ];
38955
+ var OptimizationSolver;
38956
+ (function (OptimizationSolver) {
38957
+ OptimizationSolver["G2S"] = "g2s";
38958
+ OptimizationSolver["Vroom"] = "vroom";
38959
+ OptimizationSolver["Jsprit"] = "jsprit";
38960
+ OptimizationSolver["GoogleCloudFleetRouting"] = "google_cfr";
38961
+ })(OptimizationSolver || (exports.OptimizationSolver = OptimizationSolver = {}));
38962
+ var DMEngine;
38963
+ (function (DMEngine) {
38964
+ DMEngine["OSRM"] = "osrm";
38965
+ DMEngine["GRAPHHOPPER"] = "graphhopper";
38966
+ DMEngine["NEXTBILLION"] = "nextbillion";
38967
+ DMEngine["HERE"] = "here";
38968
+ DMEngine["VALHALLA"] = "valhalla";
38969
+ DMEngine["ORS"] = "ors";
38970
+ DMEngine["UNKNOWN"] = "unknown";
38971
+ })(DMEngine || (exports.DMEngine = DMEngine = {}));
38972
+ var FleetSize;
38973
+ (function (FleetSize) {
38974
+ FleetSize["Finite"] = "FINITE";
38975
+ FleetSize["Infinite"] = "INFINITE_WITH_BREAKS";
38976
+ })(FleetSize || (exports.FleetSize = FleetSize = {}));
38977
+ var SquashType;
38978
+ (function (SquashType) {
38979
+ SquashType["Pickup"] = "pu";
38980
+ SquashType["Dropoff"] = "do";
38981
+ })(SquashType || (exports.SquashType = SquashType = {}));
38982
+ var ActivityType;
38983
+ (function (ActivityType) {
38984
+ ActivityType["foot"] = "foot";
38985
+ ActivityType["vehicle"] = "vehicle";
38986
+ })(ActivityType || (exports.ActivityType = ActivityType = {}));
38987
+ var WayPointType;
38988
+ (function (WayPointType) {
38989
+ WayPointType[WayPointType["pickup"] = 0] = "pickup";
38990
+ WayPointType[WayPointType["delivery"] = 1] = "delivery";
38991
+ })(WayPointType || (exports.WayPointType = WayPointType = {}));
38992
+ exports.ValidLimitations = ['mustBeOnTop', 'mustBeOnBottom', 'disable2DRotation'];
38993
+ var TASK_FIFO;
38994
+ (function (TASK_FIFO) {
38995
+ TASK_FIFO[TASK_FIFO["none"] = 0] = "none";
38996
+ TASK_FIFO[TASK_FIFO["by_pickup"] = 1] = "by_pickup";
38997
+ TASK_FIFO[TASK_FIFO["by_dropoff"] = 2] = "by_dropoff";
38998
+ })(TASK_FIFO || (exports.TASK_FIFO = TASK_FIFO = {}));
38999
+ var ERROR_CODE;
39000
+ (function (ERROR_CODE) {
39001
+ ERROR_CODE[ERROR_CODE["NO_DRIVER_TYPE_PASSED"] = 1] = "NO_DRIVER_TYPE_PASSED";
39002
+ ERROR_CODE[ERROR_CODE["NO_ROUTE_START_IN_DRIVER_SHIFT"] = 2] = "NO_ROUTE_START_IN_DRIVER_SHIFT";
39003
+ ERROR_CODE[ERROR_CODE["NO_DRIVER_PASSED"] = 3] = "NO_DRIVER_PASSED";
39004
+ ERROR_CODE[ERROR_CODE["NO_DRIVER_TYPES_PASSED"] = 4] = "NO_DRIVER_TYPES_PASSED";
39005
+ ERROR_CODE[ERROR_CODE["NO_TASKS_PASSED"] = 5] = "NO_TASKS_PASSED";
39006
+ ERROR_CODE[ERROR_CODE["NO_ROUTES_FOR_CALCULATE_ETA"] = 6] = "NO_ROUTES_FOR_CALCULATE_ETA";
39007
+ ERROR_CODE[ERROR_CODE["NO_DROP_OFF_FOR_PICK_UP_TASK"] = 7] = "NO_DROP_OFF_FOR_PICK_UP_TASK";
39008
+ ERROR_CODE[ERROR_CODE["NO_PICK_UP_AND_DROP_OFF_FOR_TASK"] = 8] = "NO_PICK_UP_AND_DROP_OFF_FOR_TASK";
39009
+ ERROR_CODE[ERROR_CODE["INVALID_ROUTE_START_LOCATION"] = 9] = "INVALID_ROUTE_START_LOCATION";
39010
+ ERROR_CODE[ERROR_CODE["INVALID_TIME_WINDOW_ON_BREAK"] = 10] = "INVALID_TIME_WINDOW_ON_BREAK";
39011
+ ERROR_CODE[ERROR_CODE["INVALID_BREAK_DURATION_LESS_THEN_ZERO"] = 11] = "INVALID_BREAK_DURATION_LESS_THEN_ZERO";
39012
+ ERROR_CODE[ERROR_CODE["INVALID_DRIVERS_LOCATION"] = 12] = "INVALID_DRIVERS_LOCATION";
39013
+ ERROR_CODE[ERROR_CODE["INVALID_TASK_PRIORITY"] = 13] = "INVALID_TASK_PRIORITY";
39014
+ ERROR_CODE[ERROR_CODE["INVALID_TIME_WINDOW_ON_WAY_POINT"] = 14] = "INVALID_TIME_WINDOW_ON_WAY_POINT";
39015
+ ERROR_CODE[ERROR_CODE["INVALID_COORDINATE"] = 15] = "INVALID_COORDINATE";
39016
+ ERROR_CODE[ERROR_CODE["INVALID_RUN_ID"] = 16] = "INVALID_RUN_ID";
39017
+ ERROR_CODE[ERROR_CODE["ABNORMAL_REQUEST"] = 17] = "ABNORMAL_REQUEST";
39018
+ ERROR_CODE[ERROR_CODE["INVALID_VEHICLE_DIMENSIONS"] = 18] = "INVALID_VEHICLE_DIMENSIONS";
39019
+ ERROR_CODE[ERROR_CODE["INVALID_TASK_DIMENSIONS"] = 19] = "INVALID_TASK_DIMENSIONS";
39020
+ ERROR_CODE[ERROR_CODE["INVALID_DRIVER_TIME_WINDOW"] = 20] = "INVALID_DRIVER_TIME_WINDOW";
39021
+ ERROR_CODE[ERROR_CODE["INVALID_DRIVERS_QUANTITY"] = 21] = "INVALID_DRIVERS_QUANTITY";
39022
+ ERROR_CODE[ERROR_CODE["INVALID_ETOS"] = 22] = "INVALID_ETOS";
39023
+ ERROR_CODE[ERROR_CODE["TIMEOUT"] = 23] = "TIMEOUT";
39024
+ ERROR_CODE[ERROR_CODE["NOT_ENOUGH_TIME_TO_RUN_OPTIMIZATION"] = 24] = "NOT_ENOUGH_TIME_TO_RUN_OPTIMIZATION";
39025
+ ERROR_CODE[ERROR_CODE["OPTIMIZATION_SOLVER_INTERNAL_ERROR"] = 25] = "OPTIMIZATION_SOLVER_INTERNAL_ERROR";
39026
+ ERROR_CODE[ERROR_CODE["REQUEST_EXCEED_QUOTA"] = 26] = "REQUEST_EXCEED_QUOTA";
39027
+ ERROR_CODE[ERROR_CODE["TOO_MANY_FAILED_OPTIMIZATIONS_FOR_TIME_WINDOW"] = 27] = "TOO_MANY_FAILED_OPTIMIZATIONS_FOR_TIME_WINDOW";
39028
+ })(ERROR_CODE || (exports.ERROR_CODE = ERROR_CODE = {}));
39029
+ var OptimizationPriorities;
39030
+ (function (OptimizationPriorities) {
39031
+ OptimizationPriorities["CLUSTERED"] = "CLUSTERED";
39032
+ OptimizationPriorities["MIN_DRIVERS"] = "MIN_DRIVERS";
39033
+ OptimizationPriorities["MIN_UNASSIGNED"] = "MIN_UNASSIGNED";
39034
+ OptimizationPriorities["FAIRNESS"] = "FAIRNESS";
39035
+ OptimizationPriorities["MIN_TIME"] = "MIN_TIME";
39036
+ })(OptimizationPriorities || (exports.OptimizationPriorities = OptimizationPriorities = {}));
39037
+ //# sourceMappingURL=route_optimizer_types.js.map
39038
+
39039
+ /***/ }),
39040
+
38764
39041
  /***/ 4443:
38765
39042
  /***/ ((__unused_webpack_module, exports) => {
38766
39043
 
@@ -39842,13 +40119,18 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
39842
40119
  "use strict";
39843
40120
 
39844
40121
  Object.defineProperty(exports, "__esModule", ({ value: true }));
39845
- exports.Plan = void 0;
40122
+ exports.RateLimiterTiers = exports.Plan = void 0;
39846
40123
  var Plan;
39847
40124
  (function (Plan) {
39848
40125
  Plan[Plan["Simple"] = 0] = "Simple";
39849
40126
  Plan[Plan["Advanced"] = 1] = "Advanced";
39850
40127
  Plan[Plan["Full"] = 2] = "Full";
39851
40128
  })(Plan || (exports.Plan = Plan = {}));
40129
+ var RateLimiterTiers;
40130
+ (function (RateLimiterTiers) {
40131
+ RateLimiterTiers[RateLimiterTiers["Strict"] = 0] = "Strict";
40132
+ RateLimiterTiers[RateLimiterTiers["Permissive"] = 1] = "Permissive";
40133
+ })(RateLimiterTiers || (exports.RateLimiterTiers = RateLimiterTiers = {}));
39852
40134
  //# sourceMappingURL=webhooks_configuration.js.map
39853
40135
 
39854
40136
  /***/ }),
@@ -43689,7 +43971,7 @@ module.exports = Set;
43689
43971
 
43690
43972
  var MapCache = __webpack_require__(83369),
43691
43973
  setCacheAdd = __webpack_require__(90619),
43692
- setCacheHas = __webpack_require__(72385);
43974
+ setCacheHas = __webpack_require__(12082);
43693
43975
 
43694
43976
  /**
43695
43977
  *
@@ -48050,7 +48332,7 @@ module.exports = setCacheAdd;
48050
48332
 
48051
48333
  /***/ }),
48052
48334
 
48053
- /***/ 72385:
48335
+ /***/ 12082:
48054
48336
  /***/ ((module) => {
48055
48337
 
48056
48338
  /**