@bringg/dashboard-sdk 9.56.0 → 9.57.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.
@@ -2686,6 +2686,7 @@ var ApplicationMerchantConfigurationApi_1 = __importDefault(__webpack_require__(
2686
2686
  var ApplicationTeamConfigurationApi_1 = __importDefault(__webpack_require__(59306));
2687
2687
  var AsyncOperationStatus_1 = __webpack_require__(37360);
2688
2688
  var BillingApi_1 = __importDefault(__webpack_require__(25475));
2689
+ var CapacityInsightsApi_1 = __importDefault(__webpack_require__(75494));
2689
2690
  var Chat_1 = __importDefault(__webpack_require__(17629));
2690
2691
  var ChatConversationApi_1 = __importDefault(__webpack_require__(74617));
2691
2692
  var Company_1 = __importDefault(__webpack_require__(97275));
@@ -3189,6 +3190,7 @@ function init(session) {
3189
3190
  bringg.orderExecutionActions = new order_execution_actions_api_1.default(session);
3190
3191
  bringg.presetViews = new preset_views_api_1.default(session);
3191
3192
  bringg.userPresetViews = new user_preset_views_api_1.default(session);
3193
+ bringg.capacityInsights = new CapacityInsightsApi_1.default(session);
3192
3194
  // dependent
3193
3195
  bringg.crews = new Crew_1.default(session, bringg.users);
3194
3196
  bringg.applicationMerchantConfiguration = new ApplicationMerchantConfigurationApi_1.default(session, bringg.merchantConfiguration);
@@ -3356,6 +3358,323 @@ exports.newConfigurationProvider = newConfigurationProvider;
3356
3358
 
3357
3359
  /***/ }),
3358
3360
 
3361
+ /***/ 30114:
3362
+ /***/ ((__unused_webpack_module, exports) => {
3363
+
3364
+ "use strict";
3365
+
3366
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
3367
+ exports.Routes = void 0;
3368
+ var SERVICE_PREFIX = '/capacity-planning-service/insights';
3369
+ exports.Routes = {
3370
+ GET_INSIGHTS_COUNT: "".concat(SERVICE_PREFIX, "/count"),
3371
+ GET_INSIGHTS: "".concat(SERVICE_PREFIX, "/"),
3372
+ UPDATE_INSIGHT_DONE: "".concat(SERVICE_PREFIX, "/{:insightId}/done")
3373
+ };
3374
+ //# sourceMappingURL=CapacityInsights.consts.js.map
3375
+
3376
+ /***/ }),
3377
+
3378
+ /***/ 75494:
3379
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3380
+
3381
+ "use strict";
3382
+
3383
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3384
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3385
+ return new (P || (P = Promise))(function (resolve, reject) {
3386
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3387
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3388
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3389
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
3390
+ });
3391
+ };
3392
+ var __generator = (this && this.__generator) || function (thisArg, body) {
3393
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3394
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3395
+ function verb(n) { return function (v) { return step([n, v]); }; }
3396
+ function step(op) {
3397
+ if (f) throw new TypeError("Generator is already executing.");
3398
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
3399
+ 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;
3400
+ if (y = 0, t) op = [op[0] & 2, t.value];
3401
+ switch (op[0]) {
3402
+ case 0: case 1: t = op; break;
3403
+ case 4: _.label++; return { value: op[1], done: false };
3404
+ case 5: _.label++; y = op[1]; op = [0]; continue;
3405
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
3406
+ default:
3407
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
3408
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
3409
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
3410
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
3411
+ if (t[2]) _.ops.pop();
3412
+ _.trys.pop(); continue;
3413
+ }
3414
+ op = body.call(thisArg, _);
3415
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
3416
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
3417
+ }
3418
+ };
3419
+ var __read = (this && this.__read) || function (o, n) {
3420
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
3421
+ if (!m) return o;
3422
+ var i = m.call(o), r, ar = [], e;
3423
+ try {
3424
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
3425
+ }
3426
+ catch (error) { e = { error: error }; }
3427
+ finally {
3428
+ try {
3429
+ if (r && !r.done && (m = i["return"])) m.call(i);
3430
+ }
3431
+ finally { if (e) throw e.error; }
3432
+ }
3433
+ return ar;
3434
+ };
3435
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3436
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3437
+ if (ar || !(i in from)) {
3438
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
3439
+ ar[i] = from[i];
3440
+ }
3441
+ }
3442
+ return to.concat(ar || Array.prototype.slice.call(from));
3443
+ };
3444
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3445
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3446
+ };
3447
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
3448
+ var moment_1 = __importDefault(__webpack_require__(30381));
3449
+ var CapacityInsightsEntity_1 = __importDefault(__webpack_require__(53948));
3450
+ var DATE_FORMAT = 'YYYY-MM-DD';
3451
+ var CapacityInsightsApi = /** @class */ (function () {
3452
+ function CapacityInsightsApi(session) {
3453
+ this.capacityInsightsEntity = new CapacityInsightsEntity_1.default(session);
3454
+ }
3455
+ CapacityInsightsApi.prototype.getInsightCount = function (params) {
3456
+ return __awaiter(this, void 0, void 0, function () {
3457
+ return __generator(this, function (_a) {
3458
+ return [2 /*return*/, this.capacityInsightsEntity.getInsightCount(params)];
3459
+ });
3460
+ });
3461
+ };
3462
+ CapacityInsightsApi.prototype.getInsights = function (params) {
3463
+ return __awaiter(this, void 0, void 0, function () {
3464
+ return __generator(this, function (_a) {
3465
+ return [2 /*return*/, this.capacityInsightsEntity.getInsights(params)];
3466
+ });
3467
+ });
3468
+ };
3469
+ CapacityInsightsApi.prototype.updateInsightDone = function (params) {
3470
+ return __awaiter(this, void 0, void 0, function () {
3471
+ return __generator(this, function (_a) {
3472
+ return [2 /*return*/, this.capacityInsightsEntity.updateInsightDone(params)];
3473
+ });
3474
+ });
3475
+ };
3476
+ CapacityInsightsApi.prototype.getInsightsForDates = function (dates, teamId) {
3477
+ return __awaiter(this, void 0, void 0, function () {
3478
+ var sortedDates, dateStart, dateEnd, insights, insightsByDate;
3479
+ return __generator(this, function (_a) {
3480
+ switch (_a.label) {
3481
+ case 0:
3482
+ if (dates.length === 0) {
3483
+ return [2 /*return*/, {}];
3484
+ }
3485
+ sortedDates = __spreadArray([], __read(dates), false).sort(function (a, b) { return a.valueOf() - b.valueOf(); });
3486
+ dateStart = sortedDates[0].format(DATE_FORMAT);
3487
+ dateEnd = sortedDates[sortedDates.length - 1].format(DATE_FORMAT);
3488
+ return [4 /*yield*/, this.getInsights({
3489
+ teamId: teamId,
3490
+ dateStart: dateStart,
3491
+ dateEnd: dateEnd
3492
+ })];
3493
+ case 1:
3494
+ insights = _a.sent();
3495
+ insightsByDate = {};
3496
+ dates.forEach(function (date) {
3497
+ var dateString = date.format(DATE_FORMAT);
3498
+ insightsByDate[dateString] = insights.filter(function (insight) {
3499
+ var insightDate = (0, moment_1.default)(insight.scheduled_date).format(DATE_FORMAT);
3500
+ return insightDate === dateString;
3501
+ });
3502
+ });
3503
+ return [2 /*return*/, insightsByDate];
3504
+ }
3505
+ });
3506
+ });
3507
+ };
3508
+ CapacityInsightsApi.prototype.getInsightCountsForTeams = function (teamIds, dateStart, dateEnd) {
3509
+ return __awaiter(this, void 0, void 0, function () {
3510
+ var BATCH_SIZE, countsMap, i, batch, response;
3511
+ return __generator(this, function (_a) {
3512
+ switch (_a.label) {
3513
+ case 0:
3514
+ if (teamIds.length === 0) {
3515
+ return [2 /*return*/, new Map()];
3516
+ }
3517
+ BATCH_SIZE = 100;
3518
+ countsMap = new Map();
3519
+ i = 0;
3520
+ _a.label = 1;
3521
+ case 1:
3522
+ if (!(i < teamIds.length)) return [3 /*break*/, 4];
3523
+ batch = teamIds.slice(i, i + BATCH_SIZE);
3524
+ return [4 /*yield*/, this.getInsightCount({
3525
+ teamIds: batch,
3526
+ dateStart: dateStart.format(DATE_FORMAT),
3527
+ dateEnd: dateEnd.format(DATE_FORMAT)
3528
+ })];
3529
+ case 2:
3530
+ response = _a.sent();
3531
+ response.forEach(function (item) {
3532
+ countsMap.set(item.team_id, item.insight_count);
3533
+ });
3534
+ _a.label = 3;
3535
+ case 3:
3536
+ i += BATCH_SIZE;
3537
+ return [3 /*break*/, 1];
3538
+ case 4: return [2 /*return*/, countsMap];
3539
+ }
3540
+ });
3541
+ });
3542
+ };
3543
+ return CapacityInsightsApi;
3544
+ }());
3545
+ exports["default"] = CapacityInsightsApi;
3546
+ //# sourceMappingURL=CapacityInsightsApi.js.map
3547
+
3548
+ /***/ }),
3549
+
3550
+ /***/ 53948:
3551
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3552
+
3553
+ "use strict";
3554
+
3555
+ var __extends = (this && this.__extends) || (function () {
3556
+ var extendStatics = function (d, b) {
3557
+ extendStatics = Object.setPrototypeOf ||
3558
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3559
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3560
+ return extendStatics(d, b);
3561
+ };
3562
+ return function (d, b) {
3563
+ if (typeof b !== "function" && b !== null)
3564
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3565
+ extendStatics(d, b);
3566
+ function __() { this.constructor = d; }
3567
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3568
+ };
3569
+ })();
3570
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3571
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3572
+ return new (P || (P = Promise))(function (resolve, reject) {
3573
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3574
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3575
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3576
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
3577
+ });
3578
+ };
3579
+ var __generator = (this && this.__generator) || function (thisArg, body) {
3580
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3581
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3582
+ function verb(n) { return function (v) { return step([n, v]); }; }
3583
+ function step(op) {
3584
+ if (f) throw new TypeError("Generator is already executing.");
3585
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
3586
+ 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;
3587
+ if (y = 0, t) op = [op[0] & 2, t.value];
3588
+ switch (op[0]) {
3589
+ case 0: case 1: t = op; break;
3590
+ case 4: _.label++; return { value: op[1], done: false };
3591
+ case 5: _.label++; y = op[1]; op = [0]; continue;
3592
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
3593
+ default:
3594
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
3595
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
3596
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
3597
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
3598
+ if (t[2]) _.ops.pop();
3599
+ _.trys.pop(); continue;
3600
+ }
3601
+ op = body.call(thisArg, _);
3602
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
3603
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
3604
+ }
3605
+ };
3606
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3607
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3608
+ };
3609
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
3610
+ var Entity_1 = __importDefault(__webpack_require__(7483));
3611
+ var CapacityInsights_consts_1 = __webpack_require__(30114);
3612
+ var CapacityInsightsEntity = /** @class */ (function (_super) {
3613
+ __extends(CapacityInsightsEntity, _super);
3614
+ function CapacityInsightsEntity(session) {
3615
+ return _super.call(this, {
3616
+ session: session,
3617
+ entityName: 'insights',
3618
+ routePrefix: 'capacity-planning-service'
3619
+ }) || this;
3620
+ }
3621
+ CapacityInsightsEntity.prototype.getInsightCount = function (params) {
3622
+ return __awaiter(this, void 0, void 0, function () {
3623
+ var queryParams;
3624
+ return __generator(this, function (_a) {
3625
+ queryParams = {
3626
+ team_ids: params.teamIds,
3627
+ date_start: params.dateStart,
3628
+ date_end: params.dateEnd
3629
+ };
3630
+ return [2 /*return*/, this.service.routeGenerator
3631
+ .get(CapacityInsights_consts_1.Routes.GET_INSIGHTS_COUNT)
3632
+ .withQueryString(queryParams)
3633
+ .setException('Failed to fetch insight count')
3634
+ .invoke()];
3635
+ });
3636
+ });
3637
+ };
3638
+ CapacityInsightsEntity.prototype.getInsights = function (params) {
3639
+ return __awaiter(this, void 0, void 0, function () {
3640
+ var queryParams;
3641
+ return __generator(this, function (_a) {
3642
+ queryParams = {
3643
+ team_id: params.teamId.toString(),
3644
+ date_start: params.dateStart,
3645
+ date_end: params.dateEnd
3646
+ };
3647
+ return [2 /*return*/, this.service.routeGenerator
3648
+ .get(CapacityInsights_consts_1.Routes.GET_INSIGHTS)
3649
+ .withQueryString(queryParams)
3650
+ .setException('Failed to fetch insights')
3651
+ .invoke()];
3652
+ });
3653
+ });
3654
+ };
3655
+ CapacityInsightsEntity.prototype.updateInsightDone = function (params) {
3656
+ return __awaiter(this, void 0, void 0, function () {
3657
+ var formParams;
3658
+ return __generator(this, function (_a) {
3659
+ formParams = new URLSearchParams();
3660
+ formParams.append('done', params.done.toString());
3661
+ return [2 /*return*/, this.service.routeGenerator
3662
+ .put(CapacityInsights_consts_1.Routes.UPDATE_INSIGHT_DONE)
3663
+ .withRouteParams({ insightId: params.insightId.toString() })
3664
+ .withPayload(formParams.toString())
3665
+ .withHeaders({ 'Content-Type': 'application/x-www-form-urlencoded' })
3666
+ .setException('Failed to update insight done status')
3667
+ .invoke()];
3668
+ });
3669
+ });
3670
+ };
3671
+ return CapacityInsightsEntity;
3672
+ }(Entity_1.default));
3673
+ exports["default"] = CapacityInsightsEntity;
3674
+ //# sourceMappingURL=CapacityInsightsEntity.js.map
3675
+
3676
+ /***/ }),
3677
+
3359
3678
  /***/ 17629:
3360
3679
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3361
3680
 
@@ -22426,7 +22745,7 @@ var lodash_1 = __webpack_require__(96486);
22426
22745
  var BringgException_1 = __webpack_require__(43605);
22427
22746
  var Logger_1 = __importDefault(__webpack_require__(55860));
22428
22747
  var abort_1 = __webpack_require__(34179);
22429
- var version = '9.56.0';
22748
+ var version = '9.57.1';
22430
22749
  function logErrorResponse(response) {
22431
22750
  var data = response.data, status = response.status;
22432
22751
  try {
@@ -35781,12 +36100,14 @@ __exportStar(__webpack_require__(21434), exports);
35781
36100
  __exportStar(__webpack_require__(65111), exports);
35782
36101
  __exportStar(__webpack_require__(91758), exports);
35783
36102
  __exportStar(__webpack_require__(72285), exports);
36103
+ __exportStar(__webpack_require__(6533), exports);
35784
36104
  __exportStar(__webpack_require__(68734), exports);
35785
36105
  __exportStar(__webpack_require__(37443), exports);
35786
36106
  __exportStar(__webpack_require__(51837), exports);
35787
36107
  __exportStar(__webpack_require__(55936), exports);
35788
36108
  __exportStar(__webpack_require__(58466), exports);
35789
36109
  __exportStar(__webpack_require__(14570), exports);
36110
+ __exportStar(__webpack_require__(29384), exports);
35790
36111
  __exportStar(__webpack_require__(97935), exports);
35791
36112
  __exportStar(__webpack_require__(18980), exports);
35792
36113
  __exportStar(__webpack_require__(15632), exports);
@@ -35854,6 +36175,7 @@ __exportStar(__webpack_require__(69786), exports);
35854
36175
  __exportStar(__webpack_require__(52632), exports);
35855
36176
  __exportStar(__webpack_require__(87907), exports);
35856
36177
  __exportStar(__webpack_require__(97868), exports);
36178
+ __exportStar(__webpack_require__(5220), exports);
35857
36179
  __exportStar(__webpack_require__(96425), exports);
35858
36180
  __exportStar(__webpack_require__(89220), exports);
35859
36181
  __exportStar(__webpack_require__(70242), exports);
@@ -35865,6 +36187,7 @@ __exportStar(__webpack_require__(87785), exports);
35865
36187
  __exportStar(__webpack_require__(63413), exports);
35866
36188
  __exportStar(__webpack_require__(10228), exports);
35867
36189
  __exportStar(__webpack_require__(53543), exports);
36190
+ __exportStar(__webpack_require__(78048), exports);
35868
36191
  __exportStar(__webpack_require__(2730), exports);
35869
36192
  __exportStar(__webpack_require__(56526), exports);
35870
36193
  exports.RouteOptimizer = __webpack_require__(44336);
@@ -35900,6 +36223,7 @@ __exportStar(__webpack_require__(686), exports);
35900
36223
  __exportStar(__webpack_require__(23400), exports);
35901
36224
  __exportStar(__webpack_require__(67175), exports);
35902
36225
  __exportStar(__webpack_require__(46347), exports);
36226
+ __exportStar(__webpack_require__(70467), exports);
35903
36227
  __exportStar(__webpack_require__(43048), exports);
35904
36228
  __exportStar(__webpack_require__(41164), exports);
35905
36229
  __exportStar(__webpack_require__(25443), exports);
@@ -37256,6 +37580,82 @@ var LOGIN_ERRORS;
37256
37580
 
37257
37581
  /***/ }),
37258
37582
 
37583
+ /***/ 10870:
37584
+ /***/ ((__unused_webpack_module, exports) => {
37585
+
37586
+ "use strict";
37587
+
37588
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
37589
+ exports.CapacityPlanningServiceRpcAction = void 0;
37590
+ var CapacityPlanningServiceRpcAction;
37591
+ (function (CapacityPlanningServiceRpcAction) {
37592
+ CapacityPlanningServiceRpcAction["GET_INSIGHTS_BY_OPTIMIZATION_REQUESTS_UUIDS"] = "get_insights_by_optimizations_request_uuids";
37593
+ })(CapacityPlanningServiceRpcAction || (exports.CapacityPlanningServiceRpcAction = CapacityPlanningServiceRpcAction = {}));
37594
+ //# sourceMappingURL=capacity-planning-service-rpc-client.js.map
37595
+
37596
+ /***/ }),
37597
+
37598
+ /***/ 48711:
37599
+ /***/ ((__unused_webpack_module, exports) => {
37600
+
37601
+ "use strict";
37602
+
37603
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
37604
+ exports.CapacityPlanningSeverity = exports.CapacityPlanningActionType = exports.CapacityPlanningProblems = exports.CapacityPlanningKPIs = void 0;
37605
+ var CapacityPlanningKPIs;
37606
+ (function (CapacityPlanningKPIs) {
37607
+ CapacityPlanningKPIs[CapacityPlanningKPIs["AdditionalShipments"] = 0] = "AdditionalShipments";
37608
+ CapacityPlanningKPIs[CapacityPlanningKPIs["ServiceCoverage"] = 1] = "ServiceCoverage";
37609
+ })(CapacityPlanningKPIs || (exports.CapacityPlanningKPIs = CapacityPlanningKPIs = {}));
37610
+ var CapacityPlanningProblems;
37611
+ (function (CapacityPlanningProblems) {
37612
+ CapacityPlanningProblems[CapacityPlanningProblems["UnassignedOrders"] = 0] = "UnassignedOrders";
37613
+ CapacityPlanningProblems[CapacityPlanningProblems["NoService"] = 1] = "NoService";
37614
+ CapacityPlanningProblems[CapacityPlanningProblems["LowResources"] = 2] = "LowResources";
37615
+ CapacityPlanningProblems[CapacityPlanningProblems["CapacityLimitation"] = 3] = "CapacityLimitation";
37616
+ CapacityPlanningProblems[CapacityPlanningProblems["UnderUtilization"] = 4] = "UnderUtilization";
37617
+ })(CapacityPlanningProblems || (exports.CapacityPlanningProblems = CapacityPlanningProblems = {}));
37618
+ var CapacityPlanningActionType;
37619
+ (function (CapacityPlanningActionType) {
37620
+ CapacityPlanningActionType[CapacityPlanningActionType["UpdateResources"] = 0] = "UpdateResources";
37621
+ CapacityPlanningActionType[CapacityPlanningActionType["UpdateAreas"] = 1] = "UpdateAreas";
37622
+ })(CapacityPlanningActionType || (exports.CapacityPlanningActionType = CapacityPlanningActionType = {}));
37623
+ var CapacityPlanningSeverity;
37624
+ (function (CapacityPlanningSeverity) {
37625
+ CapacityPlanningSeverity[CapacityPlanningSeverity["High"] = 0] = "High";
37626
+ CapacityPlanningSeverity[CapacityPlanningSeverity["Medium"] = 1] = "Medium";
37627
+ CapacityPlanningSeverity[CapacityPlanningSeverity["Low"] = 2] = "Low";
37628
+ })(CapacityPlanningSeverity || (exports.CapacityPlanningSeverity = CapacityPlanningSeverity = {}));
37629
+ //# sourceMappingURL=capacity_planning_insight.js.map
37630
+
37631
+ /***/ }),
37632
+
37633
+ /***/ 6533:
37634
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
37635
+
37636
+ "use strict";
37637
+
37638
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
37639
+ if (k2 === undefined) k2 = k;
37640
+ var desc = Object.getOwnPropertyDescriptor(m, k);
37641
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
37642
+ desc = { enumerable: true, get: function() { return m[k]; } };
37643
+ }
37644
+ Object.defineProperty(o, k2, desc);
37645
+ }) : (function(o, m, k, k2) {
37646
+ if (k2 === undefined) k2 = k;
37647
+ o[k2] = m[k];
37648
+ }));
37649
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
37650
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37651
+ };
37652
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
37653
+ __exportStar(__webpack_require__(48711), exports);
37654
+ __exportStar(__webpack_require__(10870), exports);
37655
+ //# sourceMappingURL=index.js.map
37656
+
37657
+ /***/ }),
37658
+
37259
37659
  /***/ 53888:
37260
37660
  /***/ ((__unused_webpack_module, exports) => {
37261
37661
 
@@ -37471,6 +37871,23 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
37471
37871
 
37472
37872
  /***/ }),
37473
37873
 
37874
+ /***/ 29384:
37875
+ /***/ ((__unused_webpack_module, exports) => {
37876
+
37877
+ "use strict";
37878
+
37879
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
37880
+ exports.CostTypeEnum = void 0;
37881
+ var CostTypeEnum;
37882
+ (function (CostTypeEnum) {
37883
+ CostTypeEnum[CostTypeEnum["OVERALL_COST_PER_MINUTE"] = 1] = "OVERALL_COST_PER_MINUTE";
37884
+ CostTypeEnum[CostTypeEnum["ORDER_COST_PERCENTAGE"] = 2] = "ORDER_COST_PERCENTAGE";
37885
+ CostTypeEnum[CostTypeEnum["COST_BREAKDOWN"] = 3] = "COST_BREAKDOWN";
37886
+ })(CostTypeEnum || (exports.CostTypeEnum = CostTypeEnum = {}));
37887
+ //# sourceMappingURL=cost_type.js.map
37888
+
37889
+ /***/ }),
37890
+
37474
37891
  /***/ 97935:
37475
37892
  /***/ ((__unused_webpack_module, exports) => {
37476
37893
 
@@ -38424,12 +38841,17 @@ var EventType;
38424
38841
  EventType["RunCalculateEtaForRuns"] = "RUN_CALCULATE_ETA_FOR_RUNS";
38425
38842
  EventType["WayPointScheduleChanged"] = "way_point:schedule_changed";
38426
38843
  EventType["TaskManagedAttributeChanged"] = "task_managed_attribute:changed";
38844
+ EventType["ApplicationMerchantConfigurationCreated"] = "application_merchant_configuration:created";
38845
+ EventType["ApplicationMerchantConfigurationUpdated"] = "application_merchant_configuration:updated";
38846
+ EventType["ApplicationMerchantConfigurationRemoved"] = "application_merchant_configuration:removed";
38847
+ EventType["VehicleUpdated"] = "vehicle:update";
38427
38848
  })(EventType || (exports.EventType = EventType = {}));
38428
38849
  var AvailabilityCalculationOrigin;
38429
38850
  (function (AvailabilityCalculationOrigin) {
38430
38851
  AvailabilityCalculationOrigin["QUOTE_ORDERS"] = "QUOTE_ORDERS";
38431
38852
  AvailabilityCalculationOrigin["AUTOMATION_PLATFORM"] = "AUTOMATION_PLATFORM";
38432
38853
  AvailabilityCalculationOrigin["SIMULATOR"] = "SIMULATOR";
38854
+ AvailabilityCalculationOrigin["ADMIN_BCONTROL"] = "ADMIN_BCONTROL";
38433
38855
  })(AvailabilityCalculationOrigin || (exports.AvailabilityCalculationOrigin = AvailabilityCalculationOrigin = {}));
38434
38856
  //# sourceMappingURL=event.js.map
38435
38857
 
@@ -38550,6 +38972,8 @@ var FleetType;
38550
38972
  FleetType[FleetType["Eva"] = 38] = "Eva";
38551
38973
  FleetType[FleetType["CIL"] = 39] = "CIL";
38552
38974
  FleetType[FleetType["RasXps"] = 40] = "RasXps";
38975
+ FleetType[FleetType["DispatchIt"] = 41] = "DispatchIt";
38976
+ FleetType[FleetType["Curri"] = 42] = "Curri";
38553
38977
  FleetType[FleetType["EmulatedDeliveryProvider"] = 999] = "EmulatedDeliveryProvider";
38554
38978
  })(FleetType || (exports.FleetType = FleetType = {}));
38555
38979
  exports.FleetTypeToCapabilities = (_a = {},
@@ -38625,7 +39049,9 @@ exports.FleetTypeToCapabilities = (_a = {},
38625
39049
  },
38626
39050
  _a[FleetType.Eva] = { create_delivery: true, get_quote: true, update_delivery: true, pickup_eta_available: true },
38627
39051
  _a[FleetType.CIL] = { create_delivery: true, get_quote: true, update_delivery: true },
38628
- _a[FleetType.RasXps] = { create_delivery: true, get_quote: true, update_delivery: false },
39052
+ _a[FleetType.RasXps] = { create_delivery: true, get_quote: true, update_delivery: true },
39053
+ _a[FleetType.DispatchIt] = { create_delivery: true, get_quote: true, update_delivery: true },
39054
+ _a[FleetType.Curri] = { create_delivery: true, get_quote: true, update_delivery: true },
38629
39055
  _a);
38630
39056
  //# sourceMappingURL=fleet.js.map
38631
39057
 
@@ -39245,6 +39671,8 @@ var OptimizationOrigin;
39245
39671
  OptimizationOrigin["QUOTES_CACHE_REFRESH"] = "quotes_cache_refresh";
39246
39672
  OptimizationOrigin["REALTIME_ETA_APP"] = "realtime_eta_app";
39247
39673
  OptimizationOrigin["AGENT_TRIGGERED_OPTIMIZATION"] = "agent_triggered_optimization";
39674
+ OptimizationOrigin["CAPACITY_PLANNING_BACKGROUND"] = "capacity_planning_background";
39675
+ OptimizationOrigin["CAPACITY_SANDBOX_DUMMY_ORDERS_OPTIMIZATION"] = "capacity_sandbox_dummy_orders_optimization";
39248
39676
  })(OptimizationOrigin || (exports.OptimizationOrigin = OptimizationOrigin = {}));
39249
39677
  var RouteItemType;
39250
39678
  (function (RouteItemType) {
@@ -39509,6 +39937,7 @@ var PrivilegeTypes;
39509
39937
  PrivilegeTypes["VEHICLE_CREATE_AND_UPDATE"] = "allow_dispatcher_create_vehicle";
39510
39938
  PrivilegeTypes["ALLOW_DISPATCHER_EDIT_SERVICE_AREA"] = "allow_dispatcher_edit_service_area";
39511
39939
  PrivilegeTypes["SEND_TO_DRIVERS"] = "send_to_drivers";
39940
+ PrivilegeTypes["SEND_TASK_FROM_DISPATCH_TO_PLANNING"] = "send_task_from_dispatch_to_planning";
39512
39941
  PrivilegeTypes["OPTIMIZE_ORDERS"] = "optimize_orders";
39513
39942
  PrivilegeTypes["ASSIGN_USER_TO_COMPANY"] = "assign_user_to_company";
39514
39943
  PrivilegeTypes["ENABLE_WEBHOOKS"] = "enable_webhooks";
@@ -39544,6 +39973,9 @@ var PrivilegeTypes;
39544
39973
  PrivilegeTypes["CHANGE_SKILLS"] = "change_skills";
39545
39974
  PrivilegeTypes["CREATE_SKILLS"] = "create_skills";
39546
39975
  PrivilegeTypes["ALLOW_USING_ROUTE_SIMULATOR"] = "allow_using_route_simulator";
39976
+ PrivilegeTypes["ALLOW_DISPATCHER_EDIT_ROUTE_COST_CALCULATION"] = "allow_dispatcher_edit_route_cost_calculation";
39977
+ PrivilegeTypes["CHANGE_SKILLS_ORDER_PAGE"] = "change_skills_order_page";
39978
+ PrivilegeTypes["ALLOW_DISPATCHER_EDIT_ADDITIONAL_DRIVER_COST_FIELDS"] = "allow_dispatcher_edit_additional_driver_cost_fields";
39547
39979
  })(PrivilegeTypes || (exports.PrivilegeTypes = PrivilegeTypes = {}));
39548
39980
  exports.PRIVILEGES_DEFAULTS = (_a = {},
39549
39981
  _a[PrivilegeTypes.CANCEL_TASK] = true,
@@ -39602,6 +40034,28 @@ var ApplicationType;
39602
40034
 
39603
40035
  /***/ }),
39604
40036
 
40037
+ /***/ 5220:
40038
+ /***/ ((__unused_webpack_module, exports) => {
40039
+
40040
+ "use strict";
40041
+
40042
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
40043
+ exports.QuestionnaireStatus = exports.QuestionnaireTrigger = void 0;
40044
+ var QuestionnaireTrigger;
40045
+ (function (QuestionnaireTrigger) {
40046
+ QuestionnaireTrigger[QuestionnaireTrigger["Hidden"] = 0] = "Hidden";
40047
+ QuestionnaireTrigger[QuestionnaireTrigger["BeforeScheduling"] = 1] = "BeforeScheduling";
40048
+ QuestionnaireTrigger[QuestionnaireTrigger["AfterScheduling"] = 2] = "AfterScheduling";
40049
+ })(QuestionnaireTrigger || (exports.QuestionnaireTrigger = QuestionnaireTrigger = {}));
40050
+ var QuestionnaireStatus;
40051
+ (function (QuestionnaireStatus) {
40052
+ QuestionnaireStatus[QuestionnaireStatus["Pending"] = 0] = "Pending";
40053
+ QuestionnaireStatus[QuestionnaireStatus["Completed"] = 1] = "Completed";
40054
+ })(QuestionnaireStatus || (exports.QuestionnaireStatus = QuestionnaireStatus = {}));
40055
+ //# sourceMappingURL=questionnaire_data.js.map
40056
+
40057
+ /***/ }),
40058
+
39605
40059
  /***/ 96425:
39606
40060
  /***/ ((__unused_webpack_module, exports) => {
39607
40061
 
@@ -39992,6 +40446,23 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
39992
40446
 
39993
40447
  /***/ }),
39994
40448
 
40449
+ /***/ 78048:
40450
+ /***/ ((__unused_webpack_module, exports) => {
40451
+
40452
+ "use strict";
40453
+
40454
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
40455
+ exports.RouteCostModel = void 0;
40456
+ var RouteCostModel;
40457
+ (function (RouteCostModel) {
40458
+ RouteCostModel[RouteCostModel["overall_cost_per_minute"] = 1] = "overall_cost_per_minute";
40459
+ RouteCostModel[RouteCostModel["order_cost_percentage"] = 2] = "order_cost_percentage";
40460
+ RouteCostModel[RouteCostModel["cost_breakdown"] = 3] = "cost_breakdown";
40461
+ })(RouteCostModel || (exports.RouteCostModel = RouteCostModel = {}));
40462
+ //# sourceMappingURL=route_cost.js.map
40463
+
40464
+ /***/ }),
40465
+
39995
40466
  /***/ 2730:
39996
40467
  /***/ ((__unused_webpack_module, exports) => {
39997
40468
 
@@ -40669,6 +41140,7 @@ var TaskHistoryEvent;
40669
41140
  TaskHistoryEvent[TaskHistoryEvent["way_point_field_value_changed"] = 55] = "way_point_field_value_changed";
40670
41141
  TaskHistoryEvent[TaskHistoryEvent["way_point_added"] = 56] = "way_point_added";
40671
41142
  TaskHistoryEvent[TaskHistoryEvent["way_point_removed"] = 57] = "way_point_removed";
41143
+ TaskHistoryEvent[TaskHistoryEvent["external_delivery_update_failed"] = 58] = "external_delivery_update_failed";
40672
41144
  })(TaskHistoryEvent || (exports.TaskHistoryEvent = TaskHistoryEvent = {}));
40673
41145
  var TaskCustomAttributesChangeOrigin;
40674
41146
  (function (TaskCustomAttributesChangeOrigin) {
@@ -40985,6 +41457,27 @@ var TaskServiceType;
40985
41457
 
40986
41458
  /***/ }),
40987
41459
 
41460
+ /***/ 70467:
41461
+ /***/ ((__unused_webpack_module, exports) => {
41462
+
41463
+ "use strict";
41464
+
41465
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
41466
+ exports.TaskTemplateType = exports.TaskTemplatingActions = void 0;
41467
+ var TaskTemplatingActions;
41468
+ (function (TaskTemplatingActions) {
41469
+ TaskTemplatingActions["CreateTaskFromTaskAndTemplate"] = "create_task_from_task_and_template";
41470
+ TaskTemplatingActions["GetRelatedTaskIds"] = "get_related_task_ids";
41471
+ })(TaskTemplatingActions || (exports.TaskTemplatingActions = TaskTemplatingActions = {}));
41472
+ var TaskTemplateType;
41473
+ (function (TaskTemplateType) {
41474
+ TaskTemplateType["FloatingHelper"] = "FloatingHelper";
41475
+ TaskTemplateType["Meetup"] = "Meetup";
41476
+ })(TaskTemplateType || (exports.TaskTemplateType = TaskTemplateType = {}));
41477
+ //# sourceMappingURL=task_templates.js.map
41478
+
41479
+ /***/ }),
41480
+
40988
41481
  /***/ 41164:
40989
41482
  /***/ ((__unused_webpack_module, exports) => {
40990
41483
 
@@ -41256,7 +41749,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
41256
41749
  "use strict";
41257
41750
 
41258
41751
  Object.defineProperty(exports, "__esModule", ({ value: true }));
41259
- exports.OAuth2RequestType = exports.JWTTokenEncoding = exports.JWTAlgorithm = exports.AuthorizationType = exports.AuthenticationMethod = void 0;
41752
+ exports.ClientCredentialsPlacement = exports.OAuth2RequestType = exports.JWTTokenEncoding = exports.JWTAlgorithm = exports.AuthorizationType = exports.AuthenticationMethod = void 0;
41260
41753
  var AuthenticationMethod;
41261
41754
  (function (AuthenticationMethod) {
41262
41755
  AuthenticationMethod[AuthenticationMethod["WEBHOOKS"] = 0] = "WEBHOOKS";
@@ -41284,6 +41777,11 @@ var OAuth2RequestType;
41284
41777
  OAuth2RequestType[OAuth2RequestType["JSON"] = 1] = "JSON";
41285
41778
  OAuth2RequestType[OAuth2RequestType["QUERY_STRING"] = 2] = "QUERY_STRING";
41286
41779
  })(OAuth2RequestType || (exports.OAuth2RequestType = OAuth2RequestType = {}));
41780
+ var ClientCredentialsPlacement;
41781
+ (function (ClientCredentialsPlacement) {
41782
+ ClientCredentialsPlacement["BODY"] = "body";
41783
+ ClientCredentialsPlacement["HEADER"] = "header";
41784
+ })(ClientCredentialsPlacement || (exports.ClientCredentialsPlacement = ClientCredentialsPlacement = {}));
41287
41785
  //# sourceMappingURL=webhook_authentication_configuration.js.map
41288
41786
 
41289
41787
  /***/ }),
@@ -41588,6 +42086,7 @@ var AttributeDatatype;
41588
42086
  var EntityDataType;
41589
42087
  (function (EntityDataType) {
41590
42088
  EntityDataType["Driver"] = "driver";
42089
+ EntityDataType["Task"] = "task";
41591
42090
  })(EntityDataType || (exports.EntityDataType = EntityDataType = {}));
41592
42091
  var RuleCompareOperator;
41593
42092
  (function (RuleCompareOperator) {
@@ -41664,6 +42163,7 @@ var FactType;
41664
42163
  FactType["PlannedDeliveryWindow"] = "planned_delivery_window";
41665
42164
  FactType["DeliveryWindow"] = "delivery_window";
41666
42165
  FactType["ServiceArea"] = "service_area";
42166
+ FactType["Vehicle"] = "vehicle";
41667
42167
  })(FactType || (exports.FactType = FactType = {}));
41668
42168
  var RuleRequestType;
41669
42169
  (function (RuleRequestType) {
@@ -41679,6 +42179,7 @@ var DisplayFact;
41679
42179
  DisplayFact["DeliveryWindow"] = "delivery_window";
41680
42180
  DisplayFact["ServiceArea"] = "service_area";
41681
42181
  DisplayFact["Run"] = "run";
42182
+ DisplayFact["Vehicle"] = "vehicle";
41682
42183
  })(DisplayFact || (exports.DisplayFact = DisplayFact = {}));
41683
42184
  //# sourceMappingURL=rule_types.js.map
41684
42185
 
@@ -41706,6 +42207,7 @@ var SharedLocationPlaceHolderType;
41706
42207
  SharedLocationPlaceHolderType["ADDRESS"] = "Delivery address";
41707
42208
  SharedLocationPlaceHolderType["TEAM_DESCRIPTION"] = "Team description";
41708
42209
  SharedLocationPlaceHolderType["UUID"] = "Unique notification ID";
42210
+ SharedLocationPlaceHolderType["VERIFICATION_PIN_CODE"] = "Verification pin code";
41709
42211
  })(SharedLocationPlaceHolderType || (exports.SharedLocationPlaceHolderType = SharedLocationPlaceHolderType = {}));
41710
42212
  var SharedLocationPlaceHolderLinkType;
41711
42213
  (function (SharedLocationPlaceHolderLinkType) {