@bringg/dashboard-sdk 9.93.0 → 9.94.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));
@@ -3628,6 +3629,7 @@ function init(session) {
3628
3629
  bringg.optimizationConfiguration = new OptimizationConfiguration_1.default(session);
3629
3630
  bringg.optimizationConfigurationV2 = new OptimizationConfigurationV2_1.default(session);
3630
3631
  bringg.configurationProfiles = new ConfigurationProfiles_1.default(session);
3632
+ bringg.notificationSubscriptions = new NotificationSubscriptions_1.default(session);
3631
3633
  bringg.fleetTemplates = new FleetTemplateApi_1.default(session);
3632
3634
  bringg.openFleets = new OpenFleetApi_1.default(session);
3633
3635
  bringg.customerAvailabilityHours = new CustomerAvailabilityHourApi_1.default(session);
@@ -14940,6 +14942,147 @@ exports["default"] = MerchantPrototypeApi;
14940
14942
 
14941
14943
  /***/ }),
14942
14944
 
14945
+ /***/ 48849:
14946
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
14947
+
14948
+ "use strict";
14949
+
14950
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14951
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14952
+ };
14953
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
14954
+ var NotificationSubscriptionsService_1 = __importDefault(__webpack_require__(43931));
14955
+ /**
14956
+ * Merchant-level recipient lists of a notification type (settings-service `/notification-subscriptions`).
14957
+ * Only types registered in settings-service are served; the rest answer 404, as does a registered type
14958
+ * whose feature flag is off for the merchant. Admin only.
14959
+ */
14960
+ var NotificationSubscriptions = /** @class */ (function () {
14961
+ function NotificationSubscriptions(session) {
14962
+ this.notificationSubscriptionsService = new NotificationSubscriptionsService_1.default(session);
14963
+ }
14964
+ /**
14965
+ * Reads the current recipient list of the notification type.
14966
+ * @param notificationType - Numeric notification type, e.g. `SubscriptionNotificationType.AnalystFindings`
14967
+ * @returns Bringg user ids and external emails subscribed to the type
14968
+ */
14969
+ NotificationSubscriptions.prototype.get = function (notificationType) {
14970
+ return this.notificationSubscriptionsService.get(notificationType);
14971
+ };
14972
+ /**
14973
+ * Replaces the whole recipient list of the notification type. Both arrays are required;
14974
+ * `{ user_ids: [], emails: [] }` clears the list.
14975
+ * @param notificationType - Numeric notification type, e.g. `SubscriptionNotificationType.AnalystFindings`
14976
+ * @param recipients - The complete list to store (0-50 user ids, 0-50 emails)
14977
+ * @returns The stored list as the server read it back
14978
+ */
14979
+ NotificationSubscriptions.prototype.put = function (notificationType, recipients) {
14980
+ return this.notificationSubscriptionsService.replace(notificationType, recipients);
14981
+ };
14982
+ return NotificationSubscriptions;
14983
+ }());
14984
+ exports["default"] = NotificationSubscriptions;
14985
+ //# sourceMappingURL=NotificationSubscriptions.js.map
14986
+
14987
+ /***/ }),
14988
+
14989
+ /***/ 43931:
14990
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
14991
+
14992
+ "use strict";
14993
+
14994
+ var __extends = (this && this.__extends) || (function () {
14995
+ var extendStatics = function (d, b) {
14996
+ extendStatics = Object.setPrototypeOf ||
14997
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14998
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
14999
+ return extendStatics(d, b);
15000
+ };
15001
+ return function (d, b) {
15002
+ if (typeof b !== "function" && b !== null)
15003
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15004
+ extendStatics(d, b);
15005
+ function __() { this.constructor = d; }
15006
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15007
+ };
15008
+ })();
15009
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15010
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15011
+ return new (P || (P = Promise))(function (resolve, reject) {
15012
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
15013
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
15014
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
15015
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
15016
+ });
15017
+ };
15018
+ var __generator = (this && this.__generator) || function (thisArg, body) {
15019
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
15020
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
15021
+ function verb(n) { return function (v) { return step([n, v]); }; }
15022
+ function step(op) {
15023
+ if (f) throw new TypeError("Generator is already executing.");
15024
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
15025
+ 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;
15026
+ if (y = 0, t) op = [op[0] & 2, t.value];
15027
+ switch (op[0]) {
15028
+ case 0: case 1: t = op; break;
15029
+ case 4: _.label++; return { value: op[1], done: false };
15030
+ case 5: _.label++; y = op[1]; op = [0]; continue;
15031
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
15032
+ default:
15033
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
15034
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
15035
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
15036
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
15037
+ if (t[2]) _.ops.pop();
15038
+ _.trys.pop(); continue;
15039
+ }
15040
+ op = body.call(thisArg, _);
15041
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
15042
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
15043
+ }
15044
+ };
15045
+ var __importDefault = (this && this.__importDefault) || function (mod) {
15046
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15047
+ };
15048
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
15049
+ exports.Routes = void 0;
15050
+ var BaseService_1 = __importDefault(__webpack_require__(41992));
15051
+ var SERVICE_NAME = 'settings-service';
15052
+ exports.Routes = {
15053
+ GET: "/".concat(SERVICE_NAME, "/notification-subscriptions/{:notification_type}"),
15054
+ REPLACE: "/".concat(SERVICE_NAME, "/notification-subscriptions/{:notification_type}")
15055
+ };
15056
+ var NotificationSubscriptionsService = /** @class */ (function (_super) {
15057
+ __extends(NotificationSubscriptionsService, _super);
15058
+ function NotificationSubscriptionsService(session) {
15059
+ return _super.call(this, session, 'notification_subscriptions') || this;
15060
+ }
15061
+ NotificationSubscriptionsService.prototype.get = function (notificationType) {
15062
+ return __awaiter(this, void 0, void 0, function () {
15063
+ return __generator(this, function (_a) {
15064
+ return [2 /*return*/, this.routeGenerator.get(exports.Routes.GET).withRouteParams({ notification_type: notificationType }).invoke()];
15065
+ });
15066
+ });
15067
+ };
15068
+ NotificationSubscriptionsService.prototype.replace = function (notificationType, recipients) {
15069
+ return __awaiter(this, void 0, void 0, function () {
15070
+ return __generator(this, function (_a) {
15071
+ return [2 /*return*/, this.routeGenerator
15072
+ .put(exports.Routes.REPLACE)
15073
+ .withRouteParams({ notification_type: notificationType })
15074
+ .withPayload(recipients)
15075
+ .invoke()];
15076
+ });
15077
+ });
15078
+ };
15079
+ return NotificationSubscriptionsService;
15080
+ }(BaseService_1.default));
15081
+ exports["default"] = NotificationSubscriptionsService;
15082
+ //# sourceMappingURL=NotificationSubscriptionsService.js.map
15083
+
15084
+ /***/ }),
15085
+
14943
15086
  /***/ 58467:
14944
15087
  /***/ ((__unused_webpack_module, exports) => {
14945
15088
 
@@ -24811,7 +24954,7 @@ var BringgException_1 = __webpack_require__(43605);
24811
24954
  var client_page_1 = __webpack_require__(16573);
24812
24955
  var Logger_1 = __importDefault(__webpack_require__(55860));
24813
24956
  var abort_1 = __webpack_require__(34179);
24814
- var version = '9.93.0';
24957
+ var version = '9.94.0';
24815
24958
  function logErrorResponse(response) {
24816
24959
  var data = response.data, status = response.status;
24817
24960
  try {
@@ -37783,13 +37926,13 @@ var ChartKind;
37783
37926
  "use strict";
37784
37927
 
37785
37928
  /**
37786
- * The `RUN_ERROR` codes an agent-chat client branches on, and the one `CUSTOM`
37787
- * event name it reads. Published because a client that cannot import these has
37929
+ * The `RUN_ERROR` codes an agent-chat client branches on, and the `CUSTOM`
37930
+ * event names it reads. Published because a client that cannot import these has
37788
37931
  * to retype the strings, and a typo in a retyped string fails silently: the
37789
37932
  * branch simply never runs.
37790
37933
  */
37791
37934
  Object.defineProperty(exports, "__esModule", ({ value: true }));
37792
- 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;
37935
+ 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;
37793
37936
  /**
37794
37937
  * The thread is working on a different turn. The prompt was NOT accepted and it
37795
37938
  * is NOT queued.
@@ -37801,6 +37944,8 @@ exports.STORED_HISTORY_EVENT_NAME = exports.PROMPT_UNSCREENED_MESSAGE = exports.
37801
37944
  * again. Nothing was lost and nothing will happen on its own.
37802
37945
  */
37803
37946
  exports.BUSY_ERROR_CODE = 'agentChat.busy';
37947
+ /** The fixed text carried on {@link BUSY_ERROR_CODE}. */
37948
+ exports.BUSY_ERROR_MESSAGE = 'the thread is busy';
37804
37949
  /**
37805
37950
  * The graph failed for a reason the user was never meant to read. The wire
37806
37951
  * carries {@link RUN_FAILED_MESSAGE}; the real error is in the service log.
@@ -37861,6 +38006,19 @@ exports.PROMPT_UNSCREENED_MESSAGE = 'the prompt was not screened';
37861
38006
  * naming a turn this thread already finished.
37862
38007
  */
37863
38008
  exports.STORED_HISTORY_EVENT_NAME = 'agentChat.fromHistory';
38009
+ /**
38010
+ * The `CUSTOM` event name on a progress line: one short sentence saying what the
38011
+ * running turn is doing now. Its `value` is a {@link ProgressEventValue}.
38012
+ *
38013
+ * Sent only inside a running execution, between `RUN_STARTED` and the event
38014
+ * that ends the run: none, one or many per turn. A client that joins a running
38015
+ * turn gets the lines sent so far again. It is not a message, so thread history
38016
+ * never holds it and a feed served from history never carries it.
38017
+ *
38018
+ * What a client does with it: show the newest line beside its "working"
38019
+ * indicator, in place of the one before, and drop it when a new run starts.
38020
+ */
38021
+ exports.PROGRESS_EVENT_NAME = 'agentChat.progress';
37864
38022
  //# sourceMappingURL=events.js.map
37865
38023
 
37866
38024
  /***/ }),
@@ -37929,6 +38087,10 @@ exports.INTENT_PROP = 'agentChat.intent';
37929
38087
  * turn asked again after it failed
37930
38088
  * Attach open, reload or reconnect. Observe only; never execute
37931
38089
  *
38090
+ * An `ask` names its turn by the id of the last `role: 'user'` message it
38091
+ * sends, so a new question needs a new id. An id the thread already finished is
38092
+ * answered from stored history instead of running again.
38093
+ *
37932
38094
  * A const object rather than an `enum`: an `enum` emits a runtime object
37933
38095
  * compared nominally, which fights the discriminated unions the server routes
37934
38096
  * on, and the server's `isolatedModules` makes `const enum` a compile error.
@@ -39829,7 +39991,6 @@ __exportStar(__webpack_require__(63725), exports);
39829
39991
  __exportStar(__webpack_require__(26383), exports);
39830
39992
  __exportStar(__webpack_require__(11168), exports);
39831
39993
  __exportStar(__webpack_require__(82849), exports);
39832
- __exportStar(__webpack_require__(76797), exports);
39833
39994
  __exportStar(__webpack_require__(54581), exports);
39834
39995
  __exportStar(__webpack_require__(21434), exports);
39835
39996
  __exportStar(__webpack_require__(30983), exports);
@@ -40274,121 +40435,6 @@ var AlertDisplayCategory;
40274
40435
 
40275
40436
  /***/ }),
40276
40437
 
40277
- /***/ 39625:
40278
- /***/ ((__unused_webpack_module, exports) => {
40279
-
40280
- "use strict";
40281
-
40282
- Object.defineProperty(exports, "__esModule", ({ value: true }));
40283
- exports.ToolName = exports.ChartKind = exports.toRole = exports.Role = void 0;
40284
- var Role;
40285
- (function (Role) {
40286
- Role["Human"] = "human";
40287
- Role["Ai"] = "ai";
40288
- })(Role || (exports.Role = Role = {}));
40289
- var toRole = function (role) { return (role === Role.Ai || role === 'assistant' ? Role.Ai : Role.Human); };
40290
- exports.toRole = toRole;
40291
- var ChartKind;
40292
- (function (ChartKind) {
40293
- ChartKind["Bar"] = "bar";
40294
- ChartKind["Line"] = "line";
40295
- ChartKind["Pie"] = "pie";
40296
- ChartKind["Area"] = "area";
40297
- ChartKind["Scatter"] = "scatter";
40298
- ChartKind["StackedBar"] = "stacked_bar";
40299
- })(ChartKind || (exports.ChartKind = ChartKind = {}));
40300
- var ToolName;
40301
- (function (ToolName) {
40302
- ToolName["CreateVisualization"] = "create_visualization";
40303
- ToolName["SuggestFollowupQuestions"] = "suggest_followup_questions";
40304
- })(ToolName || (exports.ToolName = ToolName = {}));
40305
- //# sourceMappingURL=analyst_chat.js.map
40306
-
40307
- /***/ }),
40308
-
40309
- /***/ 67823:
40310
- /***/ ((__unused_webpack_module, exports) => {
40311
-
40312
- "use strict";
40313
-
40314
- Object.defineProperty(exports, "__esModule", ({ value: true }));
40315
- exports.AnalystFindingTag = exports.AnalystFindingSeverity = void 0;
40316
- var AnalystFindingSeverity;
40317
- (function (AnalystFindingSeverity) {
40318
- AnalystFindingSeverity[AnalystFindingSeverity["Critical"] = 0] = "Critical";
40319
- AnalystFindingSeverity[AnalystFindingSeverity["High"] = 1] = "High";
40320
- AnalystFindingSeverity[AnalystFindingSeverity["Medium"] = 2] = "Medium";
40321
- AnalystFindingSeverity[AnalystFindingSeverity["Low"] = 3] = "Low";
40322
- })(AnalystFindingSeverity || (exports.AnalystFindingSeverity = AnalystFindingSeverity = {}));
40323
- var AnalystFindingTag;
40324
- (function (AnalystFindingTag) {
40325
- AnalystFindingTag[AnalystFindingTag["OnTimePerformance"] = 0] = "OnTimePerformance";
40326
- AnalystFindingTag[AnalystFindingTag["DeliveryCost"] = 1] = "DeliveryCost";
40327
- AnalystFindingTag[AnalystFindingTag["CustomerExperience"] = 2] = "CustomerExperience";
40328
- AnalystFindingTag[AnalystFindingTag["OperationalEfficiency"] = 3] = "OperationalEfficiency";
40329
- AnalystFindingTag[AnalystFindingTag["OrderFulfillment"] = 4] = "OrderFulfillment";
40330
- AnalystFindingTag[AnalystFindingTag["PlanReliability"] = 5] = "PlanReliability";
40331
- AnalystFindingTag[AnalystFindingTag["Compliance"] = 6] = "Compliance";
40332
- })(AnalystFindingTag || (exports.AnalystFindingTag = AnalystFindingTag = {}));
40333
- //# sourceMappingURL=analyst_finding.js.map
40334
-
40335
- /***/ }),
40336
-
40337
- /***/ 56381:
40338
- /***/ ((__unused_webpack_module, exports) => {
40339
-
40340
- "use strict";
40341
-
40342
- Object.defineProperty(exports, "__esModule", ({ value: true }));
40343
- //# sourceMappingURL=analyst_investigation_flow.js.map
40344
-
40345
- /***/ }),
40346
-
40347
- /***/ 77857:
40348
- /***/ ((__unused_webpack_module, exports) => {
40349
-
40350
- "use strict";
40351
-
40352
- Object.defineProperty(exports, "__esModule", ({ value: true }));
40353
- exports.AnalystEmailRecipientType = void 0;
40354
- var AnalystEmailRecipientType;
40355
- (function (AnalystEmailRecipientType) {
40356
- AnalystEmailRecipientType["User"] = "user";
40357
- AnalystEmailRecipientType["ExternalEmail"] = "external_email";
40358
- })(AnalystEmailRecipientType || (exports.AnalystEmailRecipientType = AnalystEmailRecipientType = {}));
40359
- //# sourceMappingURL=analyst_settings.js.map
40360
-
40361
- /***/ }),
40362
-
40363
- /***/ 76797:
40364
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
40365
-
40366
- "use strict";
40367
-
40368
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
40369
- if (k2 === undefined) k2 = k;
40370
- var desc = Object.getOwnPropertyDescriptor(m, k);
40371
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
40372
- desc = { enumerable: true, get: function() { return m[k]; } };
40373
- }
40374
- Object.defineProperty(o, k2, desc);
40375
- }) : (function(o, m, k, k2) {
40376
- if (k2 === undefined) k2 = k;
40377
- o[k2] = m[k];
40378
- }));
40379
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
40380
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
40381
- };
40382
- Object.defineProperty(exports, "__esModule", ({ value: true }));
40383
- exports.AnalystChat = void 0;
40384
- exports.AnalystChat = __webpack_require__(39625);
40385
- __exportStar(__webpack_require__(67823), exports);
40386
- __exportStar(__webpack_require__(56381), exports);
40387
- __exportStar(__webpack_require__(77857), exports);
40388
- //# sourceMappingURL=index.js.map
40389
-
40390
- /***/ }),
40391
-
40392
40438
  /***/ 9439:
40393
40439
  /***/ ((__unused_webpack_module, exports) => {
40394
40440
 
@@ -41415,6 +41461,7 @@ var ApplicationUuid;
41415
41461
  ApplicationUuid["CustomerExperienceApp"] = "caf4e836-e507-4f68-bb9c-c4511bb69750";
41416
41462
  ApplicationUuid["CustomerExperienceWebApp"] = "a4338daf-babe-4fc4-a2d4-9050da8c1782";
41417
41463
  ApplicationUuid["DataTrac"] = "d07f52b1-bf43-400f-88ab-40426de4b17c";
41464
+ ApplicationUuid["DeliveryReportApp"] = "cb2b12a5-29bc-4577-84ca-83ea0cef1192";
41418
41465
  ApplicationUuid["DeliveryWindowUtilizationApp"] = "2bdbfac0-6a94-44da-841f-16cb6bfd8b59";
41419
41466
  ApplicationUuid["DetectDriverOffRoute"] = "dd2ad97a-ffee-11e5-86aa-5e5517507c66";
41420
41467
  ApplicationUuid["DHL"] = "ec424a40-a9b9-11e6-80f5-76304dec7eb7";
@@ -41497,8 +41544,9 @@ var TaskTimePredictionApplicationFieldName;
41497
41544
  "use strict";
41498
41545
 
41499
41546
  Object.defineProperty(exports, "__esModule", ({ value: true }));
41500
- exports.MANAGED_BY_PROFILE = void 0;
41547
+ exports.SHOULD_SCREEN_FOR_PROMPT_INJECTION = exports.MANAGED_BY_PROFILE = void 0;
41501
41548
  exports.MANAGED_BY_PROFILE = 'managed_by_profile';
41549
+ exports.SHOULD_SCREEN_FOR_PROMPT_INJECTION = 'should_screen_for_prompt_injection';
41502
41550
  //# sourceMappingURL=application_configuration_profile.js.map
41503
41551
 
41504
41552
  /***/ }),
@@ -42633,7 +42681,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
42633
42681
  "use strict";
42634
42682
 
42635
42683
  Object.defineProperty(exports, "__esModule", ({ value: true }));
42636
- exports.RouteOrderByField = exports.SORT_VALUE = exports.RunStatusFilterOptions = exports.PlannedTasksFilterOptions = exports.UnassignedFilterOptions = exports.ReadyForPickupFilterOptions = exports.GroupMode = void 0;
42684
+ exports.RouteOrderByField = exports.SORT_VALUE = exports.GLOBAL_SEARCH_KEYS = exports.RunStatusFilterOptions = exports.PlannedTasksFilterOptions = exports.UnassignedFilterOptions = exports.ReadyForPickupFilterOptions = exports.GroupMode = void 0;
42637
42685
  var GroupMode;
42638
42686
  (function (GroupMode) {
42639
42687
  GroupMode["Driver"] = "Driver";
@@ -42665,6 +42713,17 @@ var RunStatusFilterOptions;
42665
42713
  RunStatusFilterOptions[RunStatusFilterOptions["OPEN"] = 1] = "OPEN";
42666
42714
  RunStatusFilterOptions[RunStatusFilterOptions["CLOSE"] = 2] = "CLOSE";
42667
42715
  })(RunStatusFilterOptions || (exports.RunStatusFilterOptions = RunStatusFilterOptions = {}));
42716
+ exports.GLOBAL_SEARCH_KEYS = [
42717
+ 'external_id',
42718
+ 'title',
42719
+ 'first_customer.name',
42720
+ 'second_customer.name',
42721
+ 'wp1.address',
42722
+ 'wp2.address',
42723
+ 'wp1.phone',
42724
+ 'wp2.phone',
42725
+ 'name'
42726
+ ];
42668
42727
  exports.SORT_VALUE = 'sort_value';
42669
42728
  var RouteOrderByField;
42670
42729
  (function (RouteOrderByField) {
@@ -42782,7 +42841,6 @@ var EventType;
42782
42841
  EventType["UserPreLeftHome"] = "user:pre_left_home";
42783
42842
  EventType["UserPreGotHome"] = "user:pre_got_home";
42784
42843
  EventType["UserTypeChanged"] = "user_type_changed";
42785
- EventType["TaskCashoutCreated"] = "task:cashout:created";
42786
42844
  EventType["EmployeeUpdateLocation"] = "employee:update_location";
42787
42845
  EventType["EmployeeUpdate"] = "employee:update";
42788
42846
  EventType["TaskNew"] = "task:new";
@@ -42795,7 +42853,6 @@ var EventType;
42795
42853
  EventType["TaskOnTheWay"] = "task:status_changed:on_the_way";
42796
42854
  EventType["TaskStatusChangedRejected"] = "task:status_changed:rejected";
42797
42855
  EventType["TaskPaymentHistoryCreated"] = "task_payment_history:created";
42798
- EventType["UserRated"] = "user:rated";
42799
42856
  EventType["CustomerTipped"] = "customer:tipped";
42800
42857
  EventType["CustomerCreated"] = "customer:created";
42801
42858
  EventType["CustomerUpdated"] = "customer:updated";
@@ -42879,6 +42936,7 @@ var EventType;
42879
42936
  EventType["RunUpdated"] = "run:updated";
42880
42937
  EventType["RunCreated"] = "run:created";
42881
42938
  EventType["RunSendUpdateWebhook"] = "run:send_update_webhook";
42939
+ EventType["RouteOptimizationAppliedSendWebhook"] = "route:optimization:applied:send_webhook";
42882
42940
  EventType["RunCalculateAggregations"] = "run:calculate_aggregations";
42883
42941
  EventType["InvoiceCreated"] = "invoice:created";
42884
42942
  EventType["RunDebriefed"] = "run:debriefed";
@@ -42896,7 +42954,6 @@ var EventType;
42896
42954
  EventType["DeliveryBlockCreated"] = "delivery_block:created";
42897
42955
  EventType["DeliveryBlockUpdated"] = "delivery_block:updated";
42898
42956
  EventType["DeliveryBlockDeleted"] = "delivery_block:deleted";
42899
- EventType["DriverShiftScheduleUpdated"] = "driver_shift_schedule:updated";
42900
42957
  EventType["SchedulerEvent"] = "scheduler_event";
42901
42958
  EventType["MobileAnalyticsEvent"] = "mobile_analytics_event";
42902
42959
  EventType["MenuUpdated"] = "menu:updated";
@@ -43606,11 +43663,8 @@ var SubscriptionType;
43606
43663
  })(SubscriptionType || (exports.SubscriptionType = SubscriptionType = {}));
43607
43664
  var SubscriptionNotificationType;
43608
43665
  (function (SubscriptionNotificationType) {
43609
- SubscriptionNotificationType[SubscriptionNotificationType["InvalidInventory"] = 0] = "InvalidInventory";
43610
- SubscriptionNotificationType[SubscriptionNotificationType["EtlReport"] = 1] = "EtlReport";
43611
43666
  SubscriptionNotificationType[SubscriptionNotificationType["WebhookFailures"] = 2] = "WebhookFailures";
43612
- SubscriptionNotificationType[SubscriptionNotificationType["MenuIssue"] = 3] = "MenuIssue";
43613
- SubscriptionNotificationType[SubscriptionNotificationType["IntegrationPollingError"] = 4] = "IntegrationPollingError";
43667
+ SubscriptionNotificationType[SubscriptionNotificationType["AnalystFindings"] = 5] = "AnalystFindings";
43614
43668
  })(SubscriptionNotificationType || (exports.SubscriptionNotificationType = SubscriptionNotificationType = {}));
43615
43669
  //# sourceMappingURL=notification_subscription.js.map
43616
43670
 
@@ -43713,6 +43767,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
43713
43767
  "use strict";
43714
43768
 
43715
43769
  Object.defineProperty(exports, "__esModule", ({ value: true }));
43770
+ exports.OptimizationRerunResourceType = void 0;
43771
+ var OptimizationRerunResourceType;
43772
+ (function (OptimizationRerunResourceType) {
43773
+ OptimizationRerunResourceType["REAL"] = "real";
43774
+ OptimizationRerunResourceType["EDITED"] = "edited";
43775
+ OptimizationRerunResourceType["VIRTUAL"] = "virtual";
43776
+ })(OptimizationRerunResourceType || (exports.OptimizationRerunResourceType = OptimizationRerunResourceType = {}));
43716
43777
  //# sourceMappingURL=optimization_rerun.js.map
43717
43778
 
43718
43779
  /***/ }),
@@ -43809,7 +43870,6 @@ var RouteItemType;
43809
43870
  var OptimizeFor;
43810
43871
  (function (OptimizeFor) {
43811
43872
  OptimizeFor["CUSTOM"] = "custom";
43812
- OptimizeFor["NEXT_SHIFT"] = "next_shift";
43813
43873
  })(OptimizeFor || (exports.OptimizeFor = OptimizeFor = {}));
43814
43874
  var OptimizationRequestErrorCodes;
43815
43875
  (function (OptimizationRequestErrorCodes) {
@@ -43820,6 +43880,8 @@ var OptimizationRequestErrorCodes;
43820
43880
  OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["NoResourcesWorkingDuringTimeWindow"] = 404] = "NoResourcesWorkingDuringTimeWindow";
43821
43881
  OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["MissingSchedules"] = 405] = "MissingSchedules";
43822
43882
  OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["TasksOutsideTimeWindow"] = 406] = "TasksOutsideTimeWindow";
43883
+ OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["NoDriversProvided"] = 407] = "NoDriversProvided";
43884
+ OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["NoResourcesProvided"] = 408] = "NoResourcesProvided";
43823
43885
  })(OptimizationRequestErrorCodes || (exports.OptimizationRequestErrorCodes = OptimizationRequestErrorCodes = {}));
43824
43886
  exports.OptimizationErrors = (_a = {},
43825
43887
  _a[OptimizationRequestErrorCodes.NoTasksFound] = {
@@ -43847,6 +43909,14 @@ exports.OptimizationErrors = (_a = {},
43847
43909
  message: 'Tasks outside the optimization or resources time window',
43848
43910
  key: 'TASKS_OUTSIDE_TIME_WINDOW_ERROR'
43849
43911
  },
43912
+ _a[OptimizationRequestErrorCodes.NoDriversProvided] = {
43913
+ message: 'No drivers provided',
43914
+ key: 'NO_DRIVERS_PROVIDED_ERROR'
43915
+ },
43916
+ _a[OptimizationRequestErrorCodes.NoResourcesProvided] = {
43917
+ message: 'No delivery block resource ids or drivers or vehicles provided',
43918
+ key: 'NO_RESOURCES_PROVIDED_ERROR'
43919
+ },
43850
43920
  _a);
43851
43921
  var OptimizationItemType;
43852
43922
  (function (OptimizationItemType) {
@@ -44029,11 +44099,9 @@ var PrivilegeTypes;
44029
44099
  PrivilegeTypes["REPORTS"] = "reports";
44030
44100
  PrivilegeTypes["REPORTS_NEW"] = "reports_new";
44031
44101
  PrivilegeTypes["DASHBOARD"] = "dashboard";
44032
- PrivilegeTypes["CASHOUT_EDIT_DISTANCE"] = "cashout_edit_distance";
44033
44102
  PrivilegeTypes["ACCESS_SETTINGS_SCREEN"] = "access_settings_screen";
44034
44103
  PrivilegeTypes["ENABLE_SETTING_PAGE"] = "enable_setting_page";
44035
44104
  PrivilegeTypes["CUSTOMER_CARE"] = "customer_care";
44036
- PrivilegeTypes["MAINTAIN_DRIVER_SHIFT_TIMES"] = "maintain_driver_shift_times";
44037
44105
  PrivilegeTypes["COMPLETE_TASK"] = "complete_task";
44038
44106
  PrivilegeTypes["EDIT_DELIVERY_BLOCK"] = "edit_delivery_block";
44039
44107
  PrivilegeTypes["SEE_SEND_TO_PREPARATION"] = "send_to_preparation";
@@ -44110,6 +44178,7 @@ var PrivilegeTypes;
44110
44178
  PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS_EDIT"] = "edit";
44111
44179
  PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS_VIEW"] = "view";
44112
44180
  PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS_NONE"] = "none";
44181
+ PrivilegeTypes["MODIFY_FORCED_DRIVER"] = "modify_forced_driver";
44113
44182
  })(PrivilegeTypes || (exports.PrivilegeTypes = PrivilegeTypes = {}));
44114
44183
  exports.PRIVILEGES_DEFAULTS = (_a = {},
44115
44184
  _a[PrivilegeTypes.CANCEL_TASK] = true,
@@ -44128,6 +44197,7 @@ exports.PRIVILEGES_DEFAULTS = (_a = {},
44128
44197
  _a[PrivilegeTypes.VIEW_PLANNED_DELIVERY_WINDOWS] = true,
44129
44198
  _a[PrivilegeTypes.VIEW_EXCLUSION_WINDOWS] = true,
44130
44199
  _a[PrivilegeTypes.VEHICLES] = true,
44200
+ _a[PrivilegeTypes.MODIFY_FORCED_DRIVER] = true,
44131
44201
  _a);
44132
44202
  //# sourceMappingURL=privilege.js.map
44133
44203
 
@@ -45703,7 +45773,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
45703
45773
  "use strict";
45704
45774
 
45705
45775
  Object.defineProperty(exports, "__esModule", ({ value: true }));
45706
- exports.TemplateRpcActions = exports.TemplateContentType = exports.TemplateTypeEnum = void 0;
45776
+ exports.PrintOrderRenderFormat = exports.TemplateRpcActions = exports.TemplateContentType = exports.TemplateTypeEnum = void 0;
45707
45777
  var TemplateTypeEnum;
45708
45778
  (function (TemplateTypeEnum) {
45709
45779
  TemplateTypeEnum["package_label"] = "package_label";
@@ -45724,8 +45794,12 @@ var TemplateRpcActions;
45724
45794
  TemplateRpcActions["GENERATE_LABEL"] = "generate:package_label";
45725
45795
  TemplateRpcActions["GET_TEMPLATE_DISPLAY_TYPE"] = "get:template_display_type";
45726
45796
  TemplateRpcActions["RENDER_PRINT_ORDER"] = "render:print_order";
45727
- TemplateRpcActions["RENDER_PRINT_ORDER_PDF"] = "render:print_order_pdf";
45728
45797
  })(TemplateRpcActions || (exports.TemplateRpcActions = TemplateRpcActions = {}));
45798
+ var PrintOrderRenderFormat;
45799
+ (function (PrintOrderRenderFormat) {
45800
+ PrintOrderRenderFormat["html"] = "html";
45801
+ PrintOrderRenderFormat["pdf"] = "pdf";
45802
+ })(PrintOrderRenderFormat || (exports.PrintOrderRenderFormat = PrintOrderRenderFormat = {}));
45729
45803
  //# sourceMappingURL=templates.js.map
45730
45804
 
45731
45805
  /***/ }),
@@ -45769,6 +45843,7 @@ var TimeWindowChangeOrigin;
45769
45843
  TimeWindowChangeOrigin["AUTOMATION_PLATFORM"] = "automation_platform";
45770
45844
  TimeWindowChangeOrigin["RELAY_CHAIN_TIME_WINDOW_CHANGE"] = "relay_chain_time_window_change";
45771
45845
  TimeWindowChangeOrigin["ORDER_UPDATE_MOBILE_API"] = "order_update_mobile_api";
45846
+ TimeWindowChangeOrigin["AI_EXTRACTED_FROM_NOTES"] = "ai_extracted_from_notes";
45772
45847
  })(TimeWindowChangeOrigin || (exports.TimeWindowChangeOrigin = TimeWindowChangeOrigin = {}));
45773
45848
  //# sourceMappingURL=time-window-change-origin.js.map
45774
45849
 
@@ -46273,6 +46348,7 @@ var EntityDataType;
46273
46348
  (function (EntityDataType) {
46274
46349
  EntityDataType["Driver"] = "driver";
46275
46350
  EntityDataType["Task"] = "task";
46351
+ EntityDataType["Tasks"] = "tasks";
46276
46352
  })(EntityDataType || (exports.EntityDataType = EntityDataType = {}));
46277
46353
  var RuleCompareOperator;
46278
46354
  (function (RuleCompareOperator) {
@@ -46420,6 +46496,7 @@ var ChangeType;
46420
46496
  (function (ChangeType) {
46421
46497
  ChangeType["SPECIFIC_VALUE"] = "specific";
46422
46498
  ChangeType["RELATIVE_VALUE"] = "relative";
46499
+ ChangeType["VALUE_FROM_FIELD"] = "value_from_field";
46423
46500
  })(ChangeType || (exports.ChangeType = ChangeType = {}));
46424
46501
  var MathOperator;
46425
46502
  (function (MathOperator) {
@@ -115444,7 +115521,7 @@ const util_js_1 = __webpack_require__(89622);
115444
115521
  const parseqs_js_1 = __webpack_require__(75754);
115445
115522
  const parseuri_js_1 = __webpack_require__(75222);
115446
115523
  const component_emitter_1 = __webpack_require__(95260);
115447
- const engine_io_parser_1 = __webpack_require__(64076);
115524
+ const engine_io_parser_1 = __webpack_require__(77857);
115448
115525
  const globals_node_js_1 = __webpack_require__(15010);
115449
115526
  const debug_1 = __importDefault(__webpack_require__(14802)); // debug()
115450
115527
  const debug = (0, debug_1.default)("engine.io-client:socket"); // debug()
@@ -116212,7 +116289,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
116212
116289
  };
116213
116290
  Object.defineProperty(exports, "__esModule", ({ value: true }));
116214
116291
  exports.Transport = exports.TransportError = void 0;
116215
- const engine_io_parser_1 = __webpack_require__(64076);
116292
+ const engine_io_parser_1 = __webpack_require__(77857);
116216
116293
  const component_emitter_1 = __webpack_require__(95260);
116217
116294
  const util_js_1 = __webpack_require__(89622);
116218
116295
  const parseqs_js_1 = __webpack_require__(75754);
@@ -116755,7 +116832,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
116755
116832
  exports.Polling = void 0;
116756
116833
  const transport_js_1 = __webpack_require__(29870);
116757
116834
  const util_js_1 = __webpack_require__(89622);
116758
- const engine_io_parser_1 = __webpack_require__(64076);
116835
+ const engine_io_parser_1 = __webpack_require__(77857);
116759
116836
  const debug_1 = __importDefault(__webpack_require__(14802)); // debug()
116760
116837
  const debug = (0, debug_1.default)("engine.io-client:polling"); // debug()
116761
116838
  class Polling extends transport_js_1.Transport {
@@ -116928,7 +117005,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
116928
117005
  exports.WS = exports.BaseWS = void 0;
116929
117006
  const transport_js_1 = __webpack_require__(29870);
116930
117007
  const util_js_1 = __webpack_require__(89622);
116931
- const engine_io_parser_1 = __webpack_require__(64076);
117008
+ const engine_io_parser_1 = __webpack_require__(77857);
116932
117009
  const globals_node_js_1 = __webpack_require__(15010);
116933
117010
  const debug_1 = __importDefault(__webpack_require__(14802)); // debug()
116934
117011
  const debug = (0, debug_1.default)("engine.io-client:websocket"); // debug()
@@ -117072,7 +117149,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
117072
117149
  exports.WT = void 0;
117073
117150
  const transport_js_1 = __webpack_require__(29870);
117074
117151
  const globals_node_js_1 = __webpack_require__(15010);
117075
- const engine_io_parser_1 = __webpack_require__(64076);
117152
+ const engine_io_parser_1 = __webpack_require__(77857);
117076
117153
  const debug_1 = __importDefault(__webpack_require__(14802)); // debug()
117077
117154
  const debug = (0, debug_1.default)("engine.io-client:webtransport"); // debug()
117078
117155
  /**
@@ -117472,7 +117549,7 @@ function encodePacketToBinary(packet, callback) {
117472
117549
 
117473
117550
  /***/ }),
117474
117551
 
117475
- /***/ 64076:
117552
+ /***/ 77857:
117476
117553
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
117477
117554
 
117478
117555
  "use strict";