@bringg/dashboard-sdk 9.94.0-pre.0 → 9.95.0-pre.0

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.
@@ -3169,6 +3169,7 @@ var lookup_api_1 = __importDefault(__webpack_require__(96142));
3169
3169
  var MerchantApi_1 = __importDefault(__webpack_require__(63111));
3170
3170
  var MerchantConfigurationApi_1 = __webpack_require__(83611);
3171
3171
  var MerchantPrototypeApi_1 = __importDefault(__webpack_require__(50347));
3172
+ var NotificationSubscriptions_1 = __importDefault(__webpack_require__(48849));
3172
3173
  var NotificationTemplate_1 = __webpack_require__(97655);
3173
3174
  var NotificationType_1 = __webpack_require__(2765);
3174
3175
  var OauthApplicationApi_1 = __importDefault(__webpack_require__(94051));
@@ -3641,6 +3642,7 @@ function init(session) {
3641
3642
  bringg.optimizationConfiguration = new OptimizationConfiguration_1.default(session);
3642
3643
  bringg.optimizationConfigurationV2 = new OptimizationConfigurationV2_1.default(session);
3643
3644
  bringg.configurationProfiles = new ConfigurationProfiles_1.default(session);
3645
+ bringg.notificationSubscriptions = new NotificationSubscriptions_1.default(session);
3644
3646
  bringg.fleetTemplates = new FleetTemplateApi_1.default(session);
3645
3647
  bringg.openFleets = new OpenFleetApi_1.default(session);
3646
3648
  bringg.customerAvailabilityHours = new CustomerAvailabilityHourApi_1.default(session);
@@ -14953,6 +14955,147 @@ exports["default"] = MerchantPrototypeApi;
14953
14955
 
14954
14956
  /***/ }),
14955
14957
 
14958
+ /***/ 48849:
14959
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
14960
+
14961
+ "use strict";
14962
+
14963
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14964
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14965
+ };
14966
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
14967
+ var NotificationSubscriptionsService_1 = __importDefault(__webpack_require__(43931));
14968
+ /**
14969
+ * Merchant-level recipient lists of a notification type (settings-service `/notification-subscriptions`).
14970
+ * Only types registered in settings-service are served; the rest answer 404, as does a registered type
14971
+ * whose feature flag is off for the merchant. Admin only.
14972
+ */
14973
+ var NotificationSubscriptions = /** @class */ (function () {
14974
+ function NotificationSubscriptions(session) {
14975
+ this.notificationSubscriptionsService = new NotificationSubscriptionsService_1.default(session);
14976
+ }
14977
+ /**
14978
+ * Reads the current recipient list of the notification type.
14979
+ * @param notificationType - Numeric notification type, e.g. `SubscriptionNotificationType.AnalystFindings`
14980
+ * @returns Bringg user ids and external emails subscribed to the type
14981
+ */
14982
+ NotificationSubscriptions.prototype.get = function (notificationType) {
14983
+ return this.notificationSubscriptionsService.get(notificationType);
14984
+ };
14985
+ /**
14986
+ * Replaces the whole recipient list of the notification type. Both arrays are required;
14987
+ * `{ user_ids: [], emails: [] }` clears the list.
14988
+ * @param notificationType - Numeric notification type, e.g. `SubscriptionNotificationType.AnalystFindings`
14989
+ * @param recipients - The complete list to store (0-50 user ids, 0-50 emails)
14990
+ * @returns The stored list as the server read it back
14991
+ */
14992
+ NotificationSubscriptions.prototype.put = function (notificationType, recipients) {
14993
+ return this.notificationSubscriptionsService.replace(notificationType, recipients);
14994
+ };
14995
+ return NotificationSubscriptions;
14996
+ }());
14997
+ exports["default"] = NotificationSubscriptions;
14998
+ //# sourceMappingURL=NotificationSubscriptions.js.map
14999
+
15000
+ /***/ }),
15001
+
15002
+ /***/ 43931:
15003
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
15004
+
15005
+ "use strict";
15006
+
15007
+ var __extends = (this && this.__extends) || (function () {
15008
+ var extendStatics = function (d, b) {
15009
+ extendStatics = Object.setPrototypeOf ||
15010
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15011
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
15012
+ return extendStatics(d, b);
15013
+ };
15014
+ return function (d, b) {
15015
+ if (typeof b !== "function" && b !== null)
15016
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15017
+ extendStatics(d, b);
15018
+ function __() { this.constructor = d; }
15019
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15020
+ };
15021
+ })();
15022
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15023
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15024
+ return new (P || (P = Promise))(function (resolve, reject) {
15025
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
15026
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
15027
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
15028
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
15029
+ });
15030
+ };
15031
+ var __generator = (this && this.__generator) || function (thisArg, body) {
15032
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
15033
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
15034
+ function verb(n) { return function (v) { return step([n, v]); }; }
15035
+ function step(op) {
15036
+ if (f) throw new TypeError("Generator is already executing.");
15037
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
15038
+ 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;
15039
+ if (y = 0, t) op = [op[0] & 2, t.value];
15040
+ switch (op[0]) {
15041
+ case 0: case 1: t = op; break;
15042
+ case 4: _.label++; return { value: op[1], done: false };
15043
+ case 5: _.label++; y = op[1]; op = [0]; continue;
15044
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
15045
+ default:
15046
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
15047
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
15048
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
15049
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
15050
+ if (t[2]) _.ops.pop();
15051
+ _.trys.pop(); continue;
15052
+ }
15053
+ op = body.call(thisArg, _);
15054
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
15055
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
15056
+ }
15057
+ };
15058
+ var __importDefault = (this && this.__importDefault) || function (mod) {
15059
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15060
+ };
15061
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
15062
+ exports.Routes = void 0;
15063
+ var BaseService_1 = __importDefault(__webpack_require__(41992));
15064
+ var SERVICE_NAME = 'settings-service';
15065
+ exports.Routes = {
15066
+ GET: "/".concat(SERVICE_NAME, "/notification-subscriptions/{:notification_type}"),
15067
+ REPLACE: "/".concat(SERVICE_NAME, "/notification-subscriptions/{:notification_type}")
15068
+ };
15069
+ var NotificationSubscriptionsService = /** @class */ (function (_super) {
15070
+ __extends(NotificationSubscriptionsService, _super);
15071
+ function NotificationSubscriptionsService(session) {
15072
+ return _super.call(this, session, 'notification_subscriptions') || this;
15073
+ }
15074
+ NotificationSubscriptionsService.prototype.get = function (notificationType) {
15075
+ return __awaiter(this, void 0, void 0, function () {
15076
+ return __generator(this, function (_a) {
15077
+ return [2 /*return*/, this.routeGenerator.get(exports.Routes.GET).withRouteParams({ notification_type: notificationType }).invoke()];
15078
+ });
15079
+ });
15080
+ };
15081
+ NotificationSubscriptionsService.prototype.replace = function (notificationType, recipients) {
15082
+ return __awaiter(this, void 0, void 0, function () {
15083
+ return __generator(this, function (_a) {
15084
+ return [2 /*return*/, this.routeGenerator
15085
+ .put(exports.Routes.REPLACE)
15086
+ .withRouteParams({ notification_type: notificationType })
15087
+ .withPayload(recipients)
15088
+ .invoke()];
15089
+ });
15090
+ });
15091
+ };
15092
+ return NotificationSubscriptionsService;
15093
+ }(BaseService_1.default));
15094
+ exports["default"] = NotificationSubscriptionsService;
15095
+ //# sourceMappingURL=NotificationSubscriptionsService.js.map
15096
+
15097
+ /***/ }),
15098
+
14956
15099
  /***/ 58467:
14957
15100
  /***/ ((__unused_webpack_module, exports) => {
14958
15101
 
@@ -24900,7 +25043,7 @@ var BringgException_1 = __webpack_require__(43605);
24900
25043
  var client_page_1 = __webpack_require__(16573);
24901
25044
  var Logger_1 = __importDefault(__webpack_require__(55860));
24902
25045
  var abort_1 = __webpack_require__(34179);
24903
- var version = '9.94.0-pre.0';
25046
+ var version = '9.95.0-pre.0';
24904
25047
  function logErrorResponse(response) {
24905
25048
  var data = response.data, status = response.status;
24906
25049
  try {
@@ -37872,13 +38015,13 @@ var ChartKind;
37872
38015
  "use strict";
37873
38016
 
37874
38017
  /**
37875
- * The `RUN_ERROR` codes an agent-chat client branches on, and the one `CUSTOM`
37876
- * event name it reads. Published because a client that cannot import these has
38018
+ * The `RUN_ERROR` codes an agent-chat client branches on, and the `CUSTOM`
38019
+ * event names it reads. Published because a client that cannot import these has
37877
38020
  * to retype the strings, and a typo in a retyped string fails silently: the
37878
38021
  * branch simply never runs.
37879
38022
  */
37880
38023
  Object.defineProperty(exports, "__esModule", ({ value: true }));
37881
- exports.STORED_HISTORY_EVENT_NAME = exports.PROMPT_UNSCREENED_MESSAGE = exports.PROMPT_UNSCREENED_CODE = exports.PROMPT_BLOCKED_MESSAGE = exports.PROMPT_BLOCKED_CODE = exports.OWNER_GONE_ERROR_CODE = exports.RUN_FAILED_MESSAGE = exports.RUN_FAILED_CODE = exports.BUSY_ERROR_CODE = void 0;
38024
+ exports.PROGRESS_EVENT_NAME = exports.STORED_HISTORY_EVENT_NAME = exports.PROMPT_UNSCREENED_MESSAGE = exports.PROMPT_UNSCREENED_CODE = exports.PROMPT_BLOCKED_MESSAGE = exports.PROMPT_BLOCKED_CODE = exports.OWNER_GONE_ERROR_CODE = exports.RUN_FAILED_MESSAGE = exports.RUN_FAILED_CODE = exports.BUSY_ERROR_MESSAGE = exports.BUSY_ERROR_CODE = void 0;
37882
38025
  /**
37883
38026
  * The thread is working on a different turn. The prompt was NOT accepted and it
37884
38027
  * is NOT queued.
@@ -37890,6 +38033,8 @@ exports.STORED_HISTORY_EVENT_NAME = exports.PROMPT_UNSCREENED_MESSAGE = exports.
37890
38033
  * again. Nothing was lost and nothing will happen on its own.
37891
38034
  */
37892
38035
  exports.BUSY_ERROR_CODE = 'agentChat.busy';
38036
+ /** The fixed text carried on {@link BUSY_ERROR_CODE}. */
38037
+ exports.BUSY_ERROR_MESSAGE = 'the thread is busy';
37893
38038
  /**
37894
38039
  * The graph failed for a reason the user was never meant to read. The wire
37895
38040
  * carries {@link RUN_FAILED_MESSAGE}; the real error is in the service log.
@@ -37950,6 +38095,19 @@ exports.PROMPT_UNSCREENED_MESSAGE = 'the prompt was not screened';
37950
38095
  * naming a turn this thread already finished.
37951
38096
  */
37952
38097
  exports.STORED_HISTORY_EVENT_NAME = 'agentChat.fromHistory';
38098
+ /**
38099
+ * The `CUSTOM` event name on a progress line: one short sentence saying what the
38100
+ * running turn is doing now. Its `value` is a {@link ProgressEventValue}.
38101
+ *
38102
+ * Sent only inside a running execution, between `RUN_STARTED` and the event
38103
+ * that ends the run: none, one or many per turn. A client that joins a running
38104
+ * turn gets the lines sent so far again. It is not a message, so thread history
38105
+ * never holds it and a feed served from history never carries it.
38106
+ *
38107
+ * What a client does with it: show the newest line beside its "working"
38108
+ * indicator, in place of the one before, and drop it when a new run starts.
38109
+ */
38110
+ exports.PROGRESS_EVENT_NAME = 'agentChat.progress';
37953
38111
  //# sourceMappingURL=events.js.map
37954
38112
 
37955
38113
  /***/ }),
@@ -38018,6 +38176,10 @@ exports.INTENT_PROP = 'agentChat.intent';
38018
38176
  * turn asked again after it failed
38019
38177
  * Attach open, reload or reconnect. Observe only; never execute
38020
38178
  *
38179
+ * An `ask` names its turn by the id of the last `role: 'user'` message it
38180
+ * sends, so a new question needs a new id. An id the thread already finished is
38181
+ * answered from stored history instead of running again.
38182
+ *
38021
38183
  * A const object rather than an `enum`: an `enum` emits a runtime object
38022
38184
  * compared nominally, which fights the discriminated unions the server routes
38023
38185
  * on, and the server's `isolatedModules` makes `const enum` a compile error.
@@ -39918,7 +40080,6 @@ __exportStar(__webpack_require__(63725), exports);
39918
40080
  __exportStar(__webpack_require__(26383), exports);
39919
40081
  __exportStar(__webpack_require__(11168), exports);
39920
40082
  __exportStar(__webpack_require__(82849), exports);
39921
- __exportStar(__webpack_require__(76797), exports);
39922
40083
  __exportStar(__webpack_require__(54581), exports);
39923
40084
  __exportStar(__webpack_require__(21434), exports);
39924
40085
  __exportStar(__webpack_require__(30983), exports);
@@ -40363,121 +40524,6 @@ var AlertDisplayCategory;
40363
40524
 
40364
40525
  /***/ }),
40365
40526
 
40366
- /***/ 39625:
40367
- /***/ ((__unused_webpack_module, exports) => {
40368
-
40369
- "use strict";
40370
-
40371
- Object.defineProperty(exports, "__esModule", ({ value: true }));
40372
- exports.ToolName = exports.ChartKind = exports.toRole = exports.Role = void 0;
40373
- var Role;
40374
- (function (Role) {
40375
- Role["Human"] = "human";
40376
- Role["Ai"] = "ai";
40377
- })(Role || (exports.Role = Role = {}));
40378
- var toRole = function (role) { return (role === Role.Ai || role === 'assistant' ? Role.Ai : Role.Human); };
40379
- exports.toRole = toRole;
40380
- var ChartKind;
40381
- (function (ChartKind) {
40382
- ChartKind["Bar"] = "bar";
40383
- ChartKind["Line"] = "line";
40384
- ChartKind["Pie"] = "pie";
40385
- ChartKind["Area"] = "area";
40386
- ChartKind["Scatter"] = "scatter";
40387
- ChartKind["StackedBar"] = "stacked_bar";
40388
- })(ChartKind || (exports.ChartKind = ChartKind = {}));
40389
- var ToolName;
40390
- (function (ToolName) {
40391
- ToolName["CreateVisualization"] = "create_visualization";
40392
- ToolName["SuggestFollowupQuestions"] = "suggest_followup_questions";
40393
- })(ToolName || (exports.ToolName = ToolName = {}));
40394
- //# sourceMappingURL=analyst_chat.js.map
40395
-
40396
- /***/ }),
40397
-
40398
- /***/ 67823:
40399
- /***/ ((__unused_webpack_module, exports) => {
40400
-
40401
- "use strict";
40402
-
40403
- Object.defineProperty(exports, "__esModule", ({ value: true }));
40404
- exports.AnalystFindingTag = exports.AnalystFindingSeverity = void 0;
40405
- var AnalystFindingSeverity;
40406
- (function (AnalystFindingSeverity) {
40407
- AnalystFindingSeverity[AnalystFindingSeverity["Critical"] = 0] = "Critical";
40408
- AnalystFindingSeverity[AnalystFindingSeverity["High"] = 1] = "High";
40409
- AnalystFindingSeverity[AnalystFindingSeverity["Medium"] = 2] = "Medium";
40410
- AnalystFindingSeverity[AnalystFindingSeverity["Low"] = 3] = "Low";
40411
- })(AnalystFindingSeverity || (exports.AnalystFindingSeverity = AnalystFindingSeverity = {}));
40412
- var AnalystFindingTag;
40413
- (function (AnalystFindingTag) {
40414
- AnalystFindingTag[AnalystFindingTag["OnTimePerformance"] = 0] = "OnTimePerformance";
40415
- AnalystFindingTag[AnalystFindingTag["DeliveryCost"] = 1] = "DeliveryCost";
40416
- AnalystFindingTag[AnalystFindingTag["CustomerExperience"] = 2] = "CustomerExperience";
40417
- AnalystFindingTag[AnalystFindingTag["OperationalEfficiency"] = 3] = "OperationalEfficiency";
40418
- AnalystFindingTag[AnalystFindingTag["OrderFulfillment"] = 4] = "OrderFulfillment";
40419
- AnalystFindingTag[AnalystFindingTag["PlanReliability"] = 5] = "PlanReliability";
40420
- AnalystFindingTag[AnalystFindingTag["Compliance"] = 6] = "Compliance";
40421
- })(AnalystFindingTag || (exports.AnalystFindingTag = AnalystFindingTag = {}));
40422
- //# sourceMappingURL=analyst_finding.js.map
40423
-
40424
- /***/ }),
40425
-
40426
- /***/ 56381:
40427
- /***/ ((__unused_webpack_module, exports) => {
40428
-
40429
- "use strict";
40430
-
40431
- Object.defineProperty(exports, "__esModule", ({ value: true }));
40432
- //# sourceMappingURL=analyst_investigation_flow.js.map
40433
-
40434
- /***/ }),
40435
-
40436
- /***/ 77857:
40437
- /***/ ((__unused_webpack_module, exports) => {
40438
-
40439
- "use strict";
40440
-
40441
- Object.defineProperty(exports, "__esModule", ({ value: true }));
40442
- exports.AnalystEmailRecipientType = void 0;
40443
- var AnalystEmailRecipientType;
40444
- (function (AnalystEmailRecipientType) {
40445
- AnalystEmailRecipientType["User"] = "user";
40446
- AnalystEmailRecipientType["ExternalEmail"] = "external_email";
40447
- })(AnalystEmailRecipientType || (exports.AnalystEmailRecipientType = AnalystEmailRecipientType = {}));
40448
- //# sourceMappingURL=analyst_settings.js.map
40449
-
40450
- /***/ }),
40451
-
40452
- /***/ 76797:
40453
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
40454
-
40455
- "use strict";
40456
-
40457
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
40458
- if (k2 === undefined) k2 = k;
40459
- var desc = Object.getOwnPropertyDescriptor(m, k);
40460
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
40461
- desc = { enumerable: true, get: function() { return m[k]; } };
40462
- }
40463
- Object.defineProperty(o, k2, desc);
40464
- }) : (function(o, m, k, k2) {
40465
- if (k2 === undefined) k2 = k;
40466
- o[k2] = m[k];
40467
- }));
40468
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
40469
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
40470
- };
40471
- Object.defineProperty(exports, "__esModule", ({ value: true }));
40472
- exports.AnalystChat = void 0;
40473
- exports.AnalystChat = __webpack_require__(39625);
40474
- __exportStar(__webpack_require__(67823), exports);
40475
- __exportStar(__webpack_require__(56381), exports);
40476
- __exportStar(__webpack_require__(77857), exports);
40477
- //# sourceMappingURL=index.js.map
40478
-
40479
- /***/ }),
40480
-
40481
40527
  /***/ 9439:
40482
40528
  /***/ ((__unused_webpack_module, exports) => {
40483
40529
 
@@ -41504,6 +41550,7 @@ var ApplicationUuid;
41504
41550
  ApplicationUuid["CustomerExperienceApp"] = "caf4e836-e507-4f68-bb9c-c4511bb69750";
41505
41551
  ApplicationUuid["CustomerExperienceWebApp"] = "a4338daf-babe-4fc4-a2d4-9050da8c1782";
41506
41552
  ApplicationUuid["DataTrac"] = "d07f52b1-bf43-400f-88ab-40426de4b17c";
41553
+ ApplicationUuid["DeliveryReportApp"] = "cb2b12a5-29bc-4577-84ca-83ea0cef1192";
41507
41554
  ApplicationUuid["DeliveryWindowUtilizationApp"] = "2bdbfac0-6a94-44da-841f-16cb6bfd8b59";
41508
41555
  ApplicationUuid["DetectDriverOffRoute"] = "dd2ad97a-ffee-11e5-86aa-5e5517507c66";
41509
41556
  ApplicationUuid["DHL"] = "ec424a40-a9b9-11e6-80f5-76304dec7eb7";
@@ -41586,8 +41633,9 @@ var TaskTimePredictionApplicationFieldName;
41586
41633
  "use strict";
41587
41634
 
41588
41635
  Object.defineProperty(exports, "__esModule", ({ value: true }));
41589
- exports.MANAGED_BY_PROFILE = void 0;
41636
+ exports.SHOULD_SCREEN_FOR_PROMPT_INJECTION = exports.MANAGED_BY_PROFILE = void 0;
41590
41637
  exports.MANAGED_BY_PROFILE = 'managed_by_profile';
41638
+ exports.SHOULD_SCREEN_FOR_PROMPT_INJECTION = 'should_screen_for_prompt_injection';
41591
41639
  //# sourceMappingURL=application_configuration_profile.js.map
41592
41640
 
41593
41641
  /***/ }),
@@ -42722,7 +42770,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
42722
42770
  "use strict";
42723
42771
 
42724
42772
  Object.defineProperty(exports, "__esModule", ({ value: true }));
42725
- exports.RouteOrderByField = exports.SORT_VALUE = exports.RunStatusFilterOptions = exports.PlannedTasksFilterOptions = exports.UnassignedFilterOptions = exports.ReadyForPickupFilterOptions = exports.GroupMode = void 0;
42773
+ exports.RouteOrderByField = exports.SORT_VALUE = exports.GLOBAL_SEARCH_KEYS = exports.RunStatusFilterOptions = exports.PlannedTasksFilterOptions = exports.UnassignedFilterOptions = exports.ReadyForPickupFilterOptions = exports.GroupMode = void 0;
42726
42774
  var GroupMode;
42727
42775
  (function (GroupMode) {
42728
42776
  GroupMode["Driver"] = "Driver";
@@ -42754,6 +42802,17 @@ var RunStatusFilterOptions;
42754
42802
  RunStatusFilterOptions[RunStatusFilterOptions["OPEN"] = 1] = "OPEN";
42755
42803
  RunStatusFilterOptions[RunStatusFilterOptions["CLOSE"] = 2] = "CLOSE";
42756
42804
  })(RunStatusFilterOptions || (exports.RunStatusFilterOptions = RunStatusFilterOptions = {}));
42805
+ exports.GLOBAL_SEARCH_KEYS = [
42806
+ 'external_id',
42807
+ 'title',
42808
+ 'first_customer.name',
42809
+ 'second_customer.name',
42810
+ 'wp1.address',
42811
+ 'wp2.address',
42812
+ 'wp1.phone',
42813
+ 'wp2.phone',
42814
+ 'name'
42815
+ ];
42757
42816
  exports.SORT_VALUE = 'sort_value';
42758
42817
  var RouteOrderByField;
42759
42818
  (function (RouteOrderByField) {
@@ -42871,7 +42930,6 @@ var EventType;
42871
42930
  EventType["UserPreLeftHome"] = "user:pre_left_home";
42872
42931
  EventType["UserPreGotHome"] = "user:pre_got_home";
42873
42932
  EventType["UserTypeChanged"] = "user_type_changed";
42874
- EventType["TaskCashoutCreated"] = "task:cashout:created";
42875
42933
  EventType["EmployeeUpdateLocation"] = "employee:update_location";
42876
42934
  EventType["EmployeeUpdate"] = "employee:update";
42877
42935
  EventType["TaskNew"] = "task:new";
@@ -42884,7 +42942,6 @@ var EventType;
42884
42942
  EventType["TaskOnTheWay"] = "task:status_changed:on_the_way";
42885
42943
  EventType["TaskStatusChangedRejected"] = "task:status_changed:rejected";
42886
42944
  EventType["TaskPaymentHistoryCreated"] = "task_payment_history:created";
42887
- EventType["UserRated"] = "user:rated";
42888
42945
  EventType["CustomerTipped"] = "customer:tipped";
42889
42946
  EventType["CustomerCreated"] = "customer:created";
42890
42947
  EventType["CustomerUpdated"] = "customer:updated";
@@ -42968,6 +43025,7 @@ var EventType;
42968
43025
  EventType["RunUpdated"] = "run:updated";
42969
43026
  EventType["RunCreated"] = "run:created";
42970
43027
  EventType["RunSendUpdateWebhook"] = "run:send_update_webhook";
43028
+ EventType["RouteOptimizationAppliedSendWebhook"] = "route:optimization:applied:send_webhook";
42971
43029
  EventType["RunCalculateAggregations"] = "run:calculate_aggregations";
42972
43030
  EventType["InvoiceCreated"] = "invoice:created";
42973
43031
  EventType["RunDebriefed"] = "run:debriefed";
@@ -42985,7 +43043,6 @@ var EventType;
42985
43043
  EventType["DeliveryBlockCreated"] = "delivery_block:created";
42986
43044
  EventType["DeliveryBlockUpdated"] = "delivery_block:updated";
42987
43045
  EventType["DeliveryBlockDeleted"] = "delivery_block:deleted";
42988
- EventType["DriverShiftScheduleUpdated"] = "driver_shift_schedule:updated";
42989
43046
  EventType["SchedulerEvent"] = "scheduler_event";
42990
43047
  EventType["MobileAnalyticsEvent"] = "mobile_analytics_event";
42991
43048
  EventType["MenuUpdated"] = "menu:updated";
@@ -43695,11 +43752,8 @@ var SubscriptionType;
43695
43752
  })(SubscriptionType || (exports.SubscriptionType = SubscriptionType = {}));
43696
43753
  var SubscriptionNotificationType;
43697
43754
  (function (SubscriptionNotificationType) {
43698
- SubscriptionNotificationType[SubscriptionNotificationType["InvalidInventory"] = 0] = "InvalidInventory";
43699
- SubscriptionNotificationType[SubscriptionNotificationType["EtlReport"] = 1] = "EtlReport";
43700
43755
  SubscriptionNotificationType[SubscriptionNotificationType["WebhookFailures"] = 2] = "WebhookFailures";
43701
- SubscriptionNotificationType[SubscriptionNotificationType["MenuIssue"] = 3] = "MenuIssue";
43702
- SubscriptionNotificationType[SubscriptionNotificationType["IntegrationPollingError"] = 4] = "IntegrationPollingError";
43756
+ SubscriptionNotificationType[SubscriptionNotificationType["AnalystFindings"] = 5] = "AnalystFindings";
43703
43757
  })(SubscriptionNotificationType || (exports.SubscriptionNotificationType = SubscriptionNotificationType = {}));
43704
43758
  //# sourceMappingURL=notification_subscription.js.map
43705
43759
 
@@ -43802,6 +43856,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
43802
43856
  "use strict";
43803
43857
 
43804
43858
  Object.defineProperty(exports, "__esModule", ({ value: true }));
43859
+ exports.OptimizationRerunResourceType = void 0;
43860
+ var OptimizationRerunResourceType;
43861
+ (function (OptimizationRerunResourceType) {
43862
+ OptimizationRerunResourceType["REAL"] = "real";
43863
+ OptimizationRerunResourceType["EDITED"] = "edited";
43864
+ OptimizationRerunResourceType["VIRTUAL"] = "virtual";
43865
+ })(OptimizationRerunResourceType || (exports.OptimizationRerunResourceType = OptimizationRerunResourceType = {}));
43805
43866
  //# sourceMappingURL=optimization_rerun.js.map
43806
43867
 
43807
43868
  /***/ }),
@@ -43898,7 +43959,6 @@ var RouteItemType;
43898
43959
  var OptimizeFor;
43899
43960
  (function (OptimizeFor) {
43900
43961
  OptimizeFor["CUSTOM"] = "custom";
43901
- OptimizeFor["NEXT_SHIFT"] = "next_shift";
43902
43962
  })(OptimizeFor || (exports.OptimizeFor = OptimizeFor = {}));
43903
43963
  var OptimizationRequestErrorCodes;
43904
43964
  (function (OptimizationRequestErrorCodes) {
@@ -43909,6 +43969,8 @@ var OptimizationRequestErrorCodes;
43909
43969
  OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["NoResourcesWorkingDuringTimeWindow"] = 404] = "NoResourcesWorkingDuringTimeWindow";
43910
43970
  OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["MissingSchedules"] = 405] = "MissingSchedules";
43911
43971
  OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["TasksOutsideTimeWindow"] = 406] = "TasksOutsideTimeWindow";
43972
+ OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["NoDriversProvided"] = 407] = "NoDriversProvided";
43973
+ OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["NoResourcesProvided"] = 408] = "NoResourcesProvided";
43912
43974
  })(OptimizationRequestErrorCodes || (exports.OptimizationRequestErrorCodes = OptimizationRequestErrorCodes = {}));
43913
43975
  exports.OptimizationErrors = (_a = {},
43914
43976
  _a[OptimizationRequestErrorCodes.NoTasksFound] = {
@@ -43936,6 +43998,14 @@ exports.OptimizationErrors = (_a = {},
43936
43998
  message: 'Tasks outside the optimization or resources time window',
43937
43999
  key: 'TASKS_OUTSIDE_TIME_WINDOW_ERROR'
43938
44000
  },
44001
+ _a[OptimizationRequestErrorCodes.NoDriversProvided] = {
44002
+ message: 'No drivers provided',
44003
+ key: 'NO_DRIVERS_PROVIDED_ERROR'
44004
+ },
44005
+ _a[OptimizationRequestErrorCodes.NoResourcesProvided] = {
44006
+ message: 'No delivery block resource ids or drivers or vehicles provided',
44007
+ key: 'NO_RESOURCES_PROVIDED_ERROR'
44008
+ },
43939
44009
  _a);
43940
44010
  var OptimizationItemType;
43941
44011
  (function (OptimizationItemType) {
@@ -44118,11 +44188,9 @@ var PrivilegeTypes;
44118
44188
  PrivilegeTypes["REPORTS"] = "reports";
44119
44189
  PrivilegeTypes["REPORTS_NEW"] = "reports_new";
44120
44190
  PrivilegeTypes["DASHBOARD"] = "dashboard";
44121
- PrivilegeTypes["CASHOUT_EDIT_DISTANCE"] = "cashout_edit_distance";
44122
44191
  PrivilegeTypes["ACCESS_SETTINGS_SCREEN"] = "access_settings_screen";
44123
44192
  PrivilegeTypes["ENABLE_SETTING_PAGE"] = "enable_setting_page";
44124
44193
  PrivilegeTypes["CUSTOMER_CARE"] = "customer_care";
44125
- PrivilegeTypes["MAINTAIN_DRIVER_SHIFT_TIMES"] = "maintain_driver_shift_times";
44126
44194
  PrivilegeTypes["COMPLETE_TASK"] = "complete_task";
44127
44195
  PrivilegeTypes["EDIT_DELIVERY_BLOCK"] = "edit_delivery_block";
44128
44196
  PrivilegeTypes["SEE_SEND_TO_PREPARATION"] = "send_to_preparation";
@@ -44199,6 +44267,7 @@ var PrivilegeTypes;
44199
44267
  PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS_EDIT"] = "edit";
44200
44268
  PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS_VIEW"] = "view";
44201
44269
  PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS_NONE"] = "none";
44270
+ PrivilegeTypes["MODIFY_FORCED_DRIVER"] = "modify_forced_driver";
44202
44271
  })(PrivilegeTypes || (exports.PrivilegeTypes = PrivilegeTypes = {}));
44203
44272
  exports.PRIVILEGES_DEFAULTS = (_a = {},
44204
44273
  _a[PrivilegeTypes.CANCEL_TASK] = true,
@@ -44217,6 +44286,7 @@ exports.PRIVILEGES_DEFAULTS = (_a = {},
44217
44286
  _a[PrivilegeTypes.VIEW_PLANNED_DELIVERY_WINDOWS] = true,
44218
44287
  _a[PrivilegeTypes.VIEW_EXCLUSION_WINDOWS] = true,
44219
44288
  _a[PrivilegeTypes.VEHICLES] = true,
44289
+ _a[PrivilegeTypes.MODIFY_FORCED_DRIVER] = true,
44220
44290
  _a);
44221
44291
  //# sourceMappingURL=privilege.js.map
44222
44292
 
@@ -45792,7 +45862,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
45792
45862
  "use strict";
45793
45863
 
45794
45864
  Object.defineProperty(exports, "__esModule", ({ value: true }));
45795
- exports.TemplateRpcActions = exports.TemplateContentType = exports.TemplateTypeEnum = void 0;
45865
+ exports.PrintOrderRenderFormat = exports.TemplateRpcActions = exports.TemplateContentType = exports.TemplateTypeEnum = void 0;
45796
45866
  var TemplateTypeEnum;
45797
45867
  (function (TemplateTypeEnum) {
45798
45868
  TemplateTypeEnum["package_label"] = "package_label";
@@ -45813,8 +45883,12 @@ var TemplateRpcActions;
45813
45883
  TemplateRpcActions["GENERATE_LABEL"] = "generate:package_label";
45814
45884
  TemplateRpcActions["GET_TEMPLATE_DISPLAY_TYPE"] = "get:template_display_type";
45815
45885
  TemplateRpcActions["RENDER_PRINT_ORDER"] = "render:print_order";
45816
- TemplateRpcActions["RENDER_PRINT_ORDER_PDF"] = "render:print_order_pdf";
45817
45886
  })(TemplateRpcActions || (exports.TemplateRpcActions = TemplateRpcActions = {}));
45887
+ var PrintOrderRenderFormat;
45888
+ (function (PrintOrderRenderFormat) {
45889
+ PrintOrderRenderFormat["html"] = "html";
45890
+ PrintOrderRenderFormat["pdf"] = "pdf";
45891
+ })(PrintOrderRenderFormat || (exports.PrintOrderRenderFormat = PrintOrderRenderFormat = {}));
45818
45892
  //# sourceMappingURL=templates.js.map
45819
45893
 
45820
45894
  /***/ }),
@@ -45858,6 +45932,7 @@ var TimeWindowChangeOrigin;
45858
45932
  TimeWindowChangeOrigin["AUTOMATION_PLATFORM"] = "automation_platform";
45859
45933
  TimeWindowChangeOrigin["RELAY_CHAIN_TIME_WINDOW_CHANGE"] = "relay_chain_time_window_change";
45860
45934
  TimeWindowChangeOrigin["ORDER_UPDATE_MOBILE_API"] = "order_update_mobile_api";
45935
+ TimeWindowChangeOrigin["AI_EXTRACTED_FROM_NOTES"] = "ai_extracted_from_notes";
45861
45936
  })(TimeWindowChangeOrigin || (exports.TimeWindowChangeOrigin = TimeWindowChangeOrigin = {}));
45862
45937
  //# sourceMappingURL=time-window-change-origin.js.map
45863
45938
 
@@ -46362,6 +46437,7 @@ var EntityDataType;
46362
46437
  (function (EntityDataType) {
46363
46438
  EntityDataType["Driver"] = "driver";
46364
46439
  EntityDataType["Task"] = "task";
46440
+ EntityDataType["Tasks"] = "tasks";
46365
46441
  })(EntityDataType || (exports.EntityDataType = EntityDataType = {}));
46366
46442
  var RuleCompareOperator;
46367
46443
  (function (RuleCompareOperator) {
@@ -46509,6 +46585,7 @@ var ChangeType;
46509
46585
  (function (ChangeType) {
46510
46586
  ChangeType["SPECIFIC_VALUE"] = "specific";
46511
46587
  ChangeType["RELATIVE_VALUE"] = "relative";
46588
+ ChangeType["VALUE_FROM_FIELD"] = "value_from_field";
46512
46589
  })(ChangeType || (exports.ChangeType = ChangeType = {}));
46513
46590
  var MathOperator;
46514
46591
  (function (MathOperator) {
@@ -115533,7 +115610,7 @@ const util_js_1 = __webpack_require__(89622);
115533
115610
  const parseqs_js_1 = __webpack_require__(75754);
115534
115611
  const parseuri_js_1 = __webpack_require__(75222);
115535
115612
  const component_emitter_1 = __webpack_require__(95260);
115536
- const engine_io_parser_1 = __webpack_require__(64076);
115613
+ const engine_io_parser_1 = __webpack_require__(77857);
115537
115614
  const globals_node_js_1 = __webpack_require__(15010);
115538
115615
  const debug_1 = __importDefault(__webpack_require__(14802)); // debug()
115539
115616
  const debug = (0, debug_1.default)("engine.io-client:socket"); // debug()
@@ -116301,7 +116378,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
116301
116378
  };
116302
116379
  Object.defineProperty(exports, "__esModule", ({ value: true }));
116303
116380
  exports.Transport = exports.TransportError = void 0;
116304
- const engine_io_parser_1 = __webpack_require__(64076);
116381
+ const engine_io_parser_1 = __webpack_require__(77857);
116305
116382
  const component_emitter_1 = __webpack_require__(95260);
116306
116383
  const util_js_1 = __webpack_require__(89622);
116307
116384
  const parseqs_js_1 = __webpack_require__(75754);
@@ -116844,7 +116921,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
116844
116921
  exports.Polling = void 0;
116845
116922
  const transport_js_1 = __webpack_require__(29870);
116846
116923
  const util_js_1 = __webpack_require__(89622);
116847
- const engine_io_parser_1 = __webpack_require__(64076);
116924
+ const engine_io_parser_1 = __webpack_require__(77857);
116848
116925
  const debug_1 = __importDefault(__webpack_require__(14802)); // debug()
116849
116926
  const debug = (0, debug_1.default)("engine.io-client:polling"); // debug()
116850
116927
  class Polling extends transport_js_1.Transport {
@@ -117017,7 +117094,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
117017
117094
  exports.WS = exports.BaseWS = void 0;
117018
117095
  const transport_js_1 = __webpack_require__(29870);
117019
117096
  const util_js_1 = __webpack_require__(89622);
117020
- const engine_io_parser_1 = __webpack_require__(64076);
117097
+ const engine_io_parser_1 = __webpack_require__(77857);
117021
117098
  const globals_node_js_1 = __webpack_require__(15010);
117022
117099
  const debug_1 = __importDefault(__webpack_require__(14802)); // debug()
117023
117100
  const debug = (0, debug_1.default)("engine.io-client:websocket"); // debug()
@@ -117161,7 +117238,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
117161
117238
  exports.WT = void 0;
117162
117239
  const transport_js_1 = __webpack_require__(29870);
117163
117240
  const globals_node_js_1 = __webpack_require__(15010);
117164
- const engine_io_parser_1 = __webpack_require__(64076);
117241
+ const engine_io_parser_1 = __webpack_require__(77857);
117165
117242
  const debug_1 = __importDefault(__webpack_require__(14802)); // debug()
117166
117243
  const debug = (0, debug_1.default)("engine.io-client:webtransport"); // debug()
117167
117244
  /**
@@ -117561,7 +117638,7 @@ function encodePacketToBinary(packet, callback) {
117561
117638
 
117562
117639
  /***/ }),
117563
117640
 
117564
- /***/ 64076:
117641
+ /***/ 77857:
117565
117642
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
117566
117643
 
117567
117644
  "use strict";