@bringg/dashboard-sdk 9.94.0-pre.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.
- package/dist/Analyst/AnalystApi.d.ts +4 -5
- package/dist/Analyst/AnalystApi.js.map +1 -1
- package/dist/Analyst/Chat/AnalystChatEntity.d.ts +5 -5
- package/dist/Analyst/Chat/AnalystChatEntity.js.map +1 -1
- package/dist/BringgDashboardSDK.d.ts +2 -2
- package/dist/BringgDashboardSDK.js +2 -13
- package/dist/BringgDashboardSDK.js.map +1 -1
- package/dist/NotificationSubscriptions/NotificationSubscriptions.d.ts +25 -0
- package/dist/NotificationSubscriptions/NotificationSubscriptions.js +37 -0
- package/dist/NotificationSubscriptions/NotificationSubscriptions.js.map +1 -0
- package/dist/NotificationSubscriptions/Service/NotificationSubscriptionsService.d.ts +12 -0
- package/dist/NotificationSubscriptions/Service/NotificationSubscriptionsService.js +90 -0
- package/dist/NotificationSubscriptions/Service/NotificationSubscriptionsService.js.map +1 -0
- package/dist/Services/Identity/AuthService.d.ts +0 -3
- package/dist/Services/Identity/AuthService.js +1 -28
- package/dist/Services/Identity/AuthService.js.map +1 -1
- package/dist/Services/Identity/Session.d.ts +0 -20
- package/dist/Services/Identity/Session.js +0 -49
- package/dist/Services/Identity/Session.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +218 -230
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +41 -74
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +3 -3
|
@@ -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));
|
|
@@ -3433,19 +3434,6 @@ var BringgDashboardSDK = /** @class */ (function () {
|
|
|
3433
3434
|
});
|
|
3434
3435
|
});
|
|
3435
3436
|
};
|
|
3436
|
-
BringgDashboardSDK.prototype.getSamlSignOutUrl = function () {
|
|
3437
|
-
return this.session.getSamlSignOutUrl();
|
|
3438
|
-
};
|
|
3439
|
-
BringgDashboardSDK.prototype.samlSignOut = function () {
|
|
3440
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3441
|
-
return __generator(this, function (_a) {
|
|
3442
|
-
switch (_a.label) {
|
|
3443
|
-
case 0: return [4 /*yield*/, this.session.samlSignOut()];
|
|
3444
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
3445
|
-
}
|
|
3446
|
-
});
|
|
3447
|
-
});
|
|
3448
|
-
};
|
|
3449
3437
|
BringgDashboardSDK.resendConfirmationEmail = function (params) {
|
|
3450
3438
|
return __awaiter(this, void 0, void 0, function () {
|
|
3451
3439
|
var authService, email, password, merchant_uuid, recaptchaToken, recaptcha_qa_token;
|
|
@@ -3641,6 +3629,7 @@ function init(session) {
|
|
|
3641
3629
|
bringg.optimizationConfiguration = new OptimizationConfiguration_1.default(session);
|
|
3642
3630
|
bringg.optimizationConfigurationV2 = new OptimizationConfigurationV2_1.default(session);
|
|
3643
3631
|
bringg.configurationProfiles = new ConfigurationProfiles_1.default(session);
|
|
3632
|
+
bringg.notificationSubscriptions = new NotificationSubscriptions_1.default(session);
|
|
3644
3633
|
bringg.fleetTemplates = new FleetTemplateApi_1.default(session);
|
|
3645
3634
|
bringg.openFleets = new OpenFleetApi_1.default(session);
|
|
3646
3635
|
bringg.customerAvailabilityHours = new CustomerAvailabilityHourApi_1.default(session);
|
|
@@ -14953,6 +14942,147 @@ exports["default"] = MerchantPrototypeApi;
|
|
|
14953
14942
|
|
|
14954
14943
|
/***/ }),
|
|
14955
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
|
+
|
|
14956
15086
|
/***/ 58467:
|
|
14957
15087
|
/***/ ((__unused_webpack_module, exports) => {
|
|
14958
15088
|
|
|
@@ -23403,7 +23533,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
23403
23533
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23404
23534
|
};
|
|
23405
23535
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23406
|
-
exports.
|
|
23536
|
+
exports.SEND_OTP_MAIL_ROUTE = exports.OTP_CREATE_TOKEN_ROUTE = exports.RESEND_CONFIRMATION_EMAIL_ROUTE = exports.UNWIND_ROUTE = exports.IMPERSONATE_BY_TEAM_ROUTE = exports.IMPERSONATE_ROUTE = exports.SWITCH_ROUTE = exports.LOGOUT_ROUTE = exports.GET_USER_ROUTE = exports.CREATE_TOKEN_ONE_TIME_CODE_ROUTE = exports.CREATE_TOKEN_ROUTE = void 0;
|
|
23407
23537
|
var lodash_1 = __webpack_require__(96486);
|
|
23408
23538
|
var sha1_1 = __importDefault(__webpack_require__(18738));
|
|
23409
23539
|
var BringgDashboardSDK_1 = __webpack_require__(5655);
|
|
@@ -23425,7 +23555,6 @@ exports.UNWIND_ROUTE = new Route_1.Route('/tokens/unwind_impersonate', 1 /* Http
|
|
|
23425
23555
|
exports.RESEND_CONFIRMATION_EMAIL_ROUTE = new Route_1.Route('/tokens/resend_confirmation_email', 1 /* HttpMethod.POST */);
|
|
23426
23556
|
exports.OTP_CREATE_TOKEN_ROUTE = new Route_1.Route('/otp', 1 /* HttpMethod.POST */);
|
|
23427
23557
|
exports.SEND_OTP_MAIL_ROUTE = new Route_1.Route('/otp/send', 1 /* HttpMethod.POST */);
|
|
23428
|
-
exports.SAML_SIGN_OUT_ROUTE = new Route_1.Route('/users/saml/idp_sign_out', 0 /* HttpMethod.GET */);
|
|
23429
23558
|
var AuthService = /** @class */ (function () {
|
|
23430
23559
|
function AuthService(clientId, endpoint) {
|
|
23431
23560
|
this.clientId = clientId;
|
|
@@ -23592,32 +23721,6 @@ var AuthService = /** @class */ (function () {
|
|
|
23592
23721
|
});
|
|
23593
23722
|
});
|
|
23594
23723
|
};
|
|
23595
|
-
AuthService.prototype.getSamlSignOutUrl = function (authToken, merchantUuid) {
|
|
23596
|
-
var query = new URLSearchParams({ merchant_uuid: merchantUuid, token: authToken });
|
|
23597
|
-
return "".concat(this.endpoint.encode()).concat(exports.SAML_SIGN_OUT_ROUTE.uri, "?").concat(query);
|
|
23598
|
-
};
|
|
23599
|
-
AuthService.prototype.samlSignOut = function (authToken, merchantUuid) {
|
|
23600
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
23601
|
-
return __generator(this, function (_a) {
|
|
23602
|
-
switch (_a.label) {
|
|
23603
|
-
case 0: return [4 /*yield*/, new ServiceRequest_1.AnonymousServiceRequest(this.clientId)
|
|
23604
|
-
.invoke(this.endpoint, exports.SAML_SIGN_OUT_ROUTE, null, {
|
|
23605
|
-
merchant_uuid: merchantUuid,
|
|
23606
|
-
token: authToken
|
|
23607
|
-
})
|
|
23608
|
-
.handle(function (response) {
|
|
23609
|
-
var data = response.data, status = response.status;
|
|
23610
|
-
if (status !== Enums_1.HttpStatusCode.OK) {
|
|
23611
|
-
(0, ServiceRequest_1.logErrorResponse)(response);
|
|
23612
|
-
throw new BringgException_1.BringgException(ExceptionReason_1.ExceptionReason.fromHttpStatusCode(status), 'Unable to sign out of SAML');
|
|
23613
|
-
}
|
|
23614
|
-
return data === null || data === void 0 ? void 0 : data.redirect_url;
|
|
23615
|
-
})];
|
|
23616
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
23617
|
-
}
|
|
23618
|
-
});
|
|
23619
|
-
});
|
|
23620
|
-
};
|
|
23621
23724
|
AuthService.prototype.switchAccounts = function (authToken) {
|
|
23622
23725
|
return __awaiter(this, void 0, void 0, function () {
|
|
23623
23726
|
return __generator(this, function (_a) {
|
|
@@ -24107,55 +24210,6 @@ var Session = /** @class */ (function () {
|
|
|
24107
24210
|
});
|
|
24108
24211
|
});
|
|
24109
24212
|
};
|
|
24110
|
-
/**
|
|
24111
|
-
* Whether the user signed in through SAML, read from the `aut` claim of the authentication token.
|
|
24112
|
-
* @returns false when the token cannot be read
|
|
24113
|
-
*/
|
|
24114
|
-
Session.prototype.isSamlUser = function () {
|
|
24115
|
-
try {
|
|
24116
|
-
var payload = this.user.authentication_token.split('.')[1];
|
|
24117
|
-
return JSON.parse(atob(payload.replace(/-/g, '+').replace(/_/g, '/'))).aut === 'saml';
|
|
24118
|
-
}
|
|
24119
|
-
catch (_a) {
|
|
24120
|
-
return false;
|
|
24121
|
-
}
|
|
24122
|
-
};
|
|
24123
|
-
/**
|
|
24124
|
-
* Url that signs a SAML user out of the identity provider when the browser navigates to it.
|
|
24125
|
-
* @returns undefined for users who did not sign in through SAML, or before the merchant is loaded
|
|
24126
|
-
*/
|
|
24127
|
-
Session.prototype.getSamlSignOutUrl = function () {
|
|
24128
|
-
if (!this.canSignOutOfSaml()) {
|
|
24129
|
-
return undefined;
|
|
24130
|
-
}
|
|
24131
|
-
return AuthService_1.default.init(this.user.region).getSamlSignOutUrl(this.user.authentication_token, this.merchant.uuid);
|
|
24132
|
-
};
|
|
24133
|
-
/**
|
|
24134
|
-
* Signs a SAML user out of the identity provider and returns where to send the browser next.
|
|
24135
|
-
* Only for users with `sso_logout_redirect_on_frontend`; without it the server answers with a redirect,
|
|
24136
|
-
* so navigate to `getSamlSignOutUrl()` instead.
|
|
24137
|
-
* @returns the url to send the browser to, or undefined when the server has none,
|
|
24138
|
-
* for users who did not sign in through SAML, or before the merchant is loaded
|
|
24139
|
-
* @throws {BringgException} When the server rejects the token
|
|
24140
|
-
*/
|
|
24141
|
-
Session.prototype.samlSignOut = function () {
|
|
24142
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
24143
|
-
return __generator(this, function (_a) {
|
|
24144
|
-
switch (_a.label) {
|
|
24145
|
-
case 0:
|
|
24146
|
-
if (!this.canSignOutOfSaml()) {
|
|
24147
|
-
return [2 /*return*/, undefined];
|
|
24148
|
-
}
|
|
24149
|
-
return [4 /*yield*/, AuthService_1.default.init(this.user.region).samlSignOut(this.user.authentication_token, this.merchant.uuid)];
|
|
24150
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
24151
|
-
}
|
|
24152
|
-
});
|
|
24153
|
-
});
|
|
24154
|
-
};
|
|
24155
|
-
Session.prototype.canSignOutOfSaml = function () {
|
|
24156
|
-
var _a;
|
|
24157
|
-
return this.isSamlUser() && !!((_a = this.merchant) === null || _a === void 0 ? void 0 : _a.uuid);
|
|
24158
|
-
};
|
|
24159
24213
|
Session.prototype.switchAccounts = function () {
|
|
24160
24214
|
return __awaiter(this, void 0, void 0, function () {
|
|
24161
24215
|
var _a, _b;
|
|
@@ -24900,7 +24954,7 @@ var BringgException_1 = __webpack_require__(43605);
|
|
|
24900
24954
|
var client_page_1 = __webpack_require__(16573);
|
|
24901
24955
|
var Logger_1 = __importDefault(__webpack_require__(55860));
|
|
24902
24956
|
var abort_1 = __webpack_require__(34179);
|
|
24903
|
-
var version = '9.94.0
|
|
24957
|
+
var version = '9.94.0';
|
|
24904
24958
|
function logErrorResponse(response) {
|
|
24905
24959
|
var data = response.data, status = response.status;
|
|
24906
24960
|
try {
|
|
@@ -37872,13 +37926,13 @@ var ChartKind;
|
|
|
37872
37926
|
"use strict";
|
|
37873
37927
|
|
|
37874
37928
|
/**
|
|
37875
|
-
* The `RUN_ERROR` codes an agent-chat client branches on, and the
|
|
37876
|
-
* event
|
|
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
|
|
37877
37931
|
* to retype the strings, and a typo in a retyped string fails silently: the
|
|
37878
37932
|
* branch simply never runs.
|
|
37879
37933
|
*/
|
|
37880
37934
|
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;
|
|
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;
|
|
37882
37936
|
/**
|
|
37883
37937
|
* The thread is working on a different turn. The prompt was NOT accepted and it
|
|
37884
37938
|
* is NOT queued.
|
|
@@ -37890,6 +37944,8 @@ exports.STORED_HISTORY_EVENT_NAME = exports.PROMPT_UNSCREENED_MESSAGE = exports.
|
|
|
37890
37944
|
* again. Nothing was lost and nothing will happen on its own.
|
|
37891
37945
|
*/
|
|
37892
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';
|
|
37893
37949
|
/**
|
|
37894
37950
|
* The graph failed for a reason the user was never meant to read. The wire
|
|
37895
37951
|
* carries {@link RUN_FAILED_MESSAGE}; the real error is in the service log.
|
|
@@ -37950,6 +38006,19 @@ exports.PROMPT_UNSCREENED_MESSAGE = 'the prompt was not screened';
|
|
|
37950
38006
|
* naming a turn this thread already finished.
|
|
37951
38007
|
*/
|
|
37952
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';
|
|
37953
38022
|
//# sourceMappingURL=events.js.map
|
|
37954
38023
|
|
|
37955
38024
|
/***/ }),
|
|
@@ -38018,6 +38087,10 @@ exports.INTENT_PROP = 'agentChat.intent';
|
|
|
38018
38087
|
* turn asked again after it failed
|
|
38019
38088
|
* Attach open, reload or reconnect. Observe only; never execute
|
|
38020
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
|
+
*
|
|
38021
38094
|
* A const object rather than an `enum`: an `enum` emits a runtime object
|
|
38022
38095
|
* compared nominally, which fights the discriminated unions the server routes
|
|
38023
38096
|
* on, and the server's `isolatedModules` makes `const enum` a compile error.
|
|
@@ -39918,7 +39991,6 @@ __exportStar(__webpack_require__(63725), exports);
|
|
|
39918
39991
|
__exportStar(__webpack_require__(26383), exports);
|
|
39919
39992
|
__exportStar(__webpack_require__(11168), exports);
|
|
39920
39993
|
__exportStar(__webpack_require__(82849), exports);
|
|
39921
|
-
__exportStar(__webpack_require__(76797), exports);
|
|
39922
39994
|
__exportStar(__webpack_require__(54581), exports);
|
|
39923
39995
|
__exportStar(__webpack_require__(21434), exports);
|
|
39924
39996
|
__exportStar(__webpack_require__(30983), exports);
|
|
@@ -40363,121 +40435,6 @@ var AlertDisplayCategory;
|
|
|
40363
40435
|
|
|
40364
40436
|
/***/ }),
|
|
40365
40437
|
|
|
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
40438
|
/***/ 9439:
|
|
40482
40439
|
/***/ ((__unused_webpack_module, exports) => {
|
|
40483
40440
|
|
|
@@ -41504,6 +41461,7 @@ var ApplicationUuid;
|
|
|
41504
41461
|
ApplicationUuid["CustomerExperienceApp"] = "caf4e836-e507-4f68-bb9c-c4511bb69750";
|
|
41505
41462
|
ApplicationUuid["CustomerExperienceWebApp"] = "a4338daf-babe-4fc4-a2d4-9050da8c1782";
|
|
41506
41463
|
ApplicationUuid["DataTrac"] = "d07f52b1-bf43-400f-88ab-40426de4b17c";
|
|
41464
|
+
ApplicationUuid["DeliveryReportApp"] = "cb2b12a5-29bc-4577-84ca-83ea0cef1192";
|
|
41507
41465
|
ApplicationUuid["DeliveryWindowUtilizationApp"] = "2bdbfac0-6a94-44da-841f-16cb6bfd8b59";
|
|
41508
41466
|
ApplicationUuid["DetectDriverOffRoute"] = "dd2ad97a-ffee-11e5-86aa-5e5517507c66";
|
|
41509
41467
|
ApplicationUuid["DHL"] = "ec424a40-a9b9-11e6-80f5-76304dec7eb7";
|
|
@@ -41586,8 +41544,9 @@ var TaskTimePredictionApplicationFieldName;
|
|
|
41586
41544
|
"use strict";
|
|
41587
41545
|
|
|
41588
41546
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
41589
|
-
exports.MANAGED_BY_PROFILE = void 0;
|
|
41547
|
+
exports.SHOULD_SCREEN_FOR_PROMPT_INJECTION = exports.MANAGED_BY_PROFILE = void 0;
|
|
41590
41548
|
exports.MANAGED_BY_PROFILE = 'managed_by_profile';
|
|
41549
|
+
exports.SHOULD_SCREEN_FOR_PROMPT_INJECTION = 'should_screen_for_prompt_injection';
|
|
41591
41550
|
//# sourceMappingURL=application_configuration_profile.js.map
|
|
41592
41551
|
|
|
41593
41552
|
/***/ }),
|
|
@@ -42722,7 +42681,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
42722
42681
|
"use strict";
|
|
42723
42682
|
|
|
42724
42683
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
42725
|
-
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;
|
|
42726
42685
|
var GroupMode;
|
|
42727
42686
|
(function (GroupMode) {
|
|
42728
42687
|
GroupMode["Driver"] = "Driver";
|
|
@@ -42754,6 +42713,17 @@ var RunStatusFilterOptions;
|
|
|
42754
42713
|
RunStatusFilterOptions[RunStatusFilterOptions["OPEN"] = 1] = "OPEN";
|
|
42755
42714
|
RunStatusFilterOptions[RunStatusFilterOptions["CLOSE"] = 2] = "CLOSE";
|
|
42756
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
|
+
];
|
|
42757
42727
|
exports.SORT_VALUE = 'sort_value';
|
|
42758
42728
|
var RouteOrderByField;
|
|
42759
42729
|
(function (RouteOrderByField) {
|
|
@@ -42871,7 +42841,6 @@ var EventType;
|
|
|
42871
42841
|
EventType["UserPreLeftHome"] = "user:pre_left_home";
|
|
42872
42842
|
EventType["UserPreGotHome"] = "user:pre_got_home";
|
|
42873
42843
|
EventType["UserTypeChanged"] = "user_type_changed";
|
|
42874
|
-
EventType["TaskCashoutCreated"] = "task:cashout:created";
|
|
42875
42844
|
EventType["EmployeeUpdateLocation"] = "employee:update_location";
|
|
42876
42845
|
EventType["EmployeeUpdate"] = "employee:update";
|
|
42877
42846
|
EventType["TaskNew"] = "task:new";
|
|
@@ -42884,7 +42853,6 @@ var EventType;
|
|
|
42884
42853
|
EventType["TaskOnTheWay"] = "task:status_changed:on_the_way";
|
|
42885
42854
|
EventType["TaskStatusChangedRejected"] = "task:status_changed:rejected";
|
|
42886
42855
|
EventType["TaskPaymentHistoryCreated"] = "task_payment_history:created";
|
|
42887
|
-
EventType["UserRated"] = "user:rated";
|
|
42888
42856
|
EventType["CustomerTipped"] = "customer:tipped";
|
|
42889
42857
|
EventType["CustomerCreated"] = "customer:created";
|
|
42890
42858
|
EventType["CustomerUpdated"] = "customer:updated";
|
|
@@ -42968,6 +42936,7 @@ var EventType;
|
|
|
42968
42936
|
EventType["RunUpdated"] = "run:updated";
|
|
42969
42937
|
EventType["RunCreated"] = "run:created";
|
|
42970
42938
|
EventType["RunSendUpdateWebhook"] = "run:send_update_webhook";
|
|
42939
|
+
EventType["RouteOptimizationAppliedSendWebhook"] = "route:optimization:applied:send_webhook";
|
|
42971
42940
|
EventType["RunCalculateAggregations"] = "run:calculate_aggregations";
|
|
42972
42941
|
EventType["InvoiceCreated"] = "invoice:created";
|
|
42973
42942
|
EventType["RunDebriefed"] = "run:debriefed";
|
|
@@ -42985,7 +42954,6 @@ var EventType;
|
|
|
42985
42954
|
EventType["DeliveryBlockCreated"] = "delivery_block:created";
|
|
42986
42955
|
EventType["DeliveryBlockUpdated"] = "delivery_block:updated";
|
|
42987
42956
|
EventType["DeliveryBlockDeleted"] = "delivery_block:deleted";
|
|
42988
|
-
EventType["DriverShiftScheduleUpdated"] = "driver_shift_schedule:updated";
|
|
42989
42957
|
EventType["SchedulerEvent"] = "scheduler_event";
|
|
42990
42958
|
EventType["MobileAnalyticsEvent"] = "mobile_analytics_event";
|
|
42991
42959
|
EventType["MenuUpdated"] = "menu:updated";
|
|
@@ -43695,11 +43663,8 @@ var SubscriptionType;
|
|
|
43695
43663
|
})(SubscriptionType || (exports.SubscriptionType = SubscriptionType = {}));
|
|
43696
43664
|
var SubscriptionNotificationType;
|
|
43697
43665
|
(function (SubscriptionNotificationType) {
|
|
43698
|
-
SubscriptionNotificationType[SubscriptionNotificationType["InvalidInventory"] = 0] = "InvalidInventory";
|
|
43699
|
-
SubscriptionNotificationType[SubscriptionNotificationType["EtlReport"] = 1] = "EtlReport";
|
|
43700
43666
|
SubscriptionNotificationType[SubscriptionNotificationType["WebhookFailures"] = 2] = "WebhookFailures";
|
|
43701
|
-
SubscriptionNotificationType[SubscriptionNotificationType["
|
|
43702
|
-
SubscriptionNotificationType[SubscriptionNotificationType["IntegrationPollingError"] = 4] = "IntegrationPollingError";
|
|
43667
|
+
SubscriptionNotificationType[SubscriptionNotificationType["AnalystFindings"] = 5] = "AnalystFindings";
|
|
43703
43668
|
})(SubscriptionNotificationType || (exports.SubscriptionNotificationType = SubscriptionNotificationType = {}));
|
|
43704
43669
|
//# sourceMappingURL=notification_subscription.js.map
|
|
43705
43670
|
|
|
@@ -43802,6 +43767,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
43802
43767
|
"use strict";
|
|
43803
43768
|
|
|
43804
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 = {}));
|
|
43805
43777
|
//# sourceMappingURL=optimization_rerun.js.map
|
|
43806
43778
|
|
|
43807
43779
|
/***/ }),
|
|
@@ -43898,7 +43870,6 @@ var RouteItemType;
|
|
|
43898
43870
|
var OptimizeFor;
|
|
43899
43871
|
(function (OptimizeFor) {
|
|
43900
43872
|
OptimizeFor["CUSTOM"] = "custom";
|
|
43901
|
-
OptimizeFor["NEXT_SHIFT"] = "next_shift";
|
|
43902
43873
|
})(OptimizeFor || (exports.OptimizeFor = OptimizeFor = {}));
|
|
43903
43874
|
var OptimizationRequestErrorCodes;
|
|
43904
43875
|
(function (OptimizationRequestErrorCodes) {
|
|
@@ -43909,6 +43880,8 @@ var OptimizationRequestErrorCodes;
|
|
|
43909
43880
|
OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["NoResourcesWorkingDuringTimeWindow"] = 404] = "NoResourcesWorkingDuringTimeWindow";
|
|
43910
43881
|
OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["MissingSchedules"] = 405] = "MissingSchedules";
|
|
43911
43882
|
OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["TasksOutsideTimeWindow"] = 406] = "TasksOutsideTimeWindow";
|
|
43883
|
+
OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["NoDriversProvided"] = 407] = "NoDriversProvided";
|
|
43884
|
+
OptimizationRequestErrorCodes[OptimizationRequestErrorCodes["NoResourcesProvided"] = 408] = "NoResourcesProvided";
|
|
43912
43885
|
})(OptimizationRequestErrorCodes || (exports.OptimizationRequestErrorCodes = OptimizationRequestErrorCodes = {}));
|
|
43913
43886
|
exports.OptimizationErrors = (_a = {},
|
|
43914
43887
|
_a[OptimizationRequestErrorCodes.NoTasksFound] = {
|
|
@@ -43936,6 +43909,14 @@ exports.OptimizationErrors = (_a = {},
|
|
|
43936
43909
|
message: 'Tasks outside the optimization or resources time window',
|
|
43937
43910
|
key: 'TASKS_OUTSIDE_TIME_WINDOW_ERROR'
|
|
43938
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
|
+
},
|
|
43939
43920
|
_a);
|
|
43940
43921
|
var OptimizationItemType;
|
|
43941
43922
|
(function (OptimizationItemType) {
|
|
@@ -44118,11 +44099,9 @@ var PrivilegeTypes;
|
|
|
44118
44099
|
PrivilegeTypes["REPORTS"] = "reports";
|
|
44119
44100
|
PrivilegeTypes["REPORTS_NEW"] = "reports_new";
|
|
44120
44101
|
PrivilegeTypes["DASHBOARD"] = "dashboard";
|
|
44121
|
-
PrivilegeTypes["CASHOUT_EDIT_DISTANCE"] = "cashout_edit_distance";
|
|
44122
44102
|
PrivilegeTypes["ACCESS_SETTINGS_SCREEN"] = "access_settings_screen";
|
|
44123
44103
|
PrivilegeTypes["ENABLE_SETTING_PAGE"] = "enable_setting_page";
|
|
44124
44104
|
PrivilegeTypes["CUSTOMER_CARE"] = "customer_care";
|
|
44125
|
-
PrivilegeTypes["MAINTAIN_DRIVER_SHIFT_TIMES"] = "maintain_driver_shift_times";
|
|
44126
44105
|
PrivilegeTypes["COMPLETE_TASK"] = "complete_task";
|
|
44127
44106
|
PrivilegeTypes["EDIT_DELIVERY_BLOCK"] = "edit_delivery_block";
|
|
44128
44107
|
PrivilegeTypes["SEE_SEND_TO_PREPARATION"] = "send_to_preparation";
|
|
@@ -44199,6 +44178,7 @@ var PrivilegeTypes;
|
|
|
44199
44178
|
PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS_EDIT"] = "edit";
|
|
44200
44179
|
PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS_VIEW"] = "view";
|
|
44201
44180
|
PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS_NONE"] = "none";
|
|
44181
|
+
PrivilegeTypes["MODIFY_FORCED_DRIVER"] = "modify_forced_driver";
|
|
44202
44182
|
})(PrivilegeTypes || (exports.PrivilegeTypes = PrivilegeTypes = {}));
|
|
44203
44183
|
exports.PRIVILEGES_DEFAULTS = (_a = {},
|
|
44204
44184
|
_a[PrivilegeTypes.CANCEL_TASK] = true,
|
|
@@ -44217,6 +44197,7 @@ exports.PRIVILEGES_DEFAULTS = (_a = {},
|
|
|
44217
44197
|
_a[PrivilegeTypes.VIEW_PLANNED_DELIVERY_WINDOWS] = true,
|
|
44218
44198
|
_a[PrivilegeTypes.VIEW_EXCLUSION_WINDOWS] = true,
|
|
44219
44199
|
_a[PrivilegeTypes.VEHICLES] = true,
|
|
44200
|
+
_a[PrivilegeTypes.MODIFY_FORCED_DRIVER] = true,
|
|
44220
44201
|
_a);
|
|
44221
44202
|
//# sourceMappingURL=privilege.js.map
|
|
44222
44203
|
|
|
@@ -45792,7 +45773,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
45792
45773
|
"use strict";
|
|
45793
45774
|
|
|
45794
45775
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
45795
|
-
exports.TemplateRpcActions = exports.TemplateContentType = exports.TemplateTypeEnum = void 0;
|
|
45776
|
+
exports.PrintOrderRenderFormat = exports.TemplateRpcActions = exports.TemplateContentType = exports.TemplateTypeEnum = void 0;
|
|
45796
45777
|
var TemplateTypeEnum;
|
|
45797
45778
|
(function (TemplateTypeEnum) {
|
|
45798
45779
|
TemplateTypeEnum["package_label"] = "package_label";
|
|
@@ -45813,8 +45794,12 @@ var TemplateRpcActions;
|
|
|
45813
45794
|
TemplateRpcActions["GENERATE_LABEL"] = "generate:package_label";
|
|
45814
45795
|
TemplateRpcActions["GET_TEMPLATE_DISPLAY_TYPE"] = "get:template_display_type";
|
|
45815
45796
|
TemplateRpcActions["RENDER_PRINT_ORDER"] = "render:print_order";
|
|
45816
|
-
TemplateRpcActions["RENDER_PRINT_ORDER_PDF"] = "render:print_order_pdf";
|
|
45817
45797
|
})(TemplateRpcActions || (exports.TemplateRpcActions = TemplateRpcActions = {}));
|
|
45798
|
+
var PrintOrderRenderFormat;
|
|
45799
|
+
(function (PrintOrderRenderFormat) {
|
|
45800
|
+
PrintOrderRenderFormat["html"] = "html";
|
|
45801
|
+
PrintOrderRenderFormat["pdf"] = "pdf";
|
|
45802
|
+
})(PrintOrderRenderFormat || (exports.PrintOrderRenderFormat = PrintOrderRenderFormat = {}));
|
|
45818
45803
|
//# sourceMappingURL=templates.js.map
|
|
45819
45804
|
|
|
45820
45805
|
/***/ }),
|
|
@@ -45858,6 +45843,7 @@ var TimeWindowChangeOrigin;
|
|
|
45858
45843
|
TimeWindowChangeOrigin["AUTOMATION_PLATFORM"] = "automation_platform";
|
|
45859
45844
|
TimeWindowChangeOrigin["RELAY_CHAIN_TIME_WINDOW_CHANGE"] = "relay_chain_time_window_change";
|
|
45860
45845
|
TimeWindowChangeOrigin["ORDER_UPDATE_MOBILE_API"] = "order_update_mobile_api";
|
|
45846
|
+
TimeWindowChangeOrigin["AI_EXTRACTED_FROM_NOTES"] = "ai_extracted_from_notes";
|
|
45861
45847
|
})(TimeWindowChangeOrigin || (exports.TimeWindowChangeOrigin = TimeWindowChangeOrigin = {}));
|
|
45862
45848
|
//# sourceMappingURL=time-window-change-origin.js.map
|
|
45863
45849
|
|
|
@@ -46362,6 +46348,7 @@ var EntityDataType;
|
|
|
46362
46348
|
(function (EntityDataType) {
|
|
46363
46349
|
EntityDataType["Driver"] = "driver";
|
|
46364
46350
|
EntityDataType["Task"] = "task";
|
|
46351
|
+
EntityDataType["Tasks"] = "tasks";
|
|
46365
46352
|
})(EntityDataType || (exports.EntityDataType = EntityDataType = {}));
|
|
46366
46353
|
var RuleCompareOperator;
|
|
46367
46354
|
(function (RuleCompareOperator) {
|
|
@@ -46509,6 +46496,7 @@ var ChangeType;
|
|
|
46509
46496
|
(function (ChangeType) {
|
|
46510
46497
|
ChangeType["SPECIFIC_VALUE"] = "specific";
|
|
46511
46498
|
ChangeType["RELATIVE_VALUE"] = "relative";
|
|
46499
|
+
ChangeType["VALUE_FROM_FIELD"] = "value_from_field";
|
|
46512
46500
|
})(ChangeType || (exports.ChangeType = ChangeType = {}));
|
|
46513
46501
|
var MathOperator;
|
|
46514
46502
|
(function (MathOperator) {
|
|
@@ -115533,7 +115521,7 @@ const util_js_1 = __webpack_require__(89622);
|
|
|
115533
115521
|
const parseqs_js_1 = __webpack_require__(75754);
|
|
115534
115522
|
const parseuri_js_1 = __webpack_require__(75222);
|
|
115535
115523
|
const component_emitter_1 = __webpack_require__(95260);
|
|
115536
|
-
const engine_io_parser_1 = __webpack_require__(
|
|
115524
|
+
const engine_io_parser_1 = __webpack_require__(77857);
|
|
115537
115525
|
const globals_node_js_1 = __webpack_require__(15010);
|
|
115538
115526
|
const debug_1 = __importDefault(__webpack_require__(14802)); // debug()
|
|
115539
115527
|
const debug = (0, debug_1.default)("engine.io-client:socket"); // debug()
|
|
@@ -116301,7 +116289,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
116301
116289
|
};
|
|
116302
116290
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
116303
116291
|
exports.Transport = exports.TransportError = void 0;
|
|
116304
|
-
const engine_io_parser_1 = __webpack_require__(
|
|
116292
|
+
const engine_io_parser_1 = __webpack_require__(77857);
|
|
116305
116293
|
const component_emitter_1 = __webpack_require__(95260);
|
|
116306
116294
|
const util_js_1 = __webpack_require__(89622);
|
|
116307
116295
|
const parseqs_js_1 = __webpack_require__(75754);
|
|
@@ -116844,7 +116832,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
116844
116832
|
exports.Polling = void 0;
|
|
116845
116833
|
const transport_js_1 = __webpack_require__(29870);
|
|
116846
116834
|
const util_js_1 = __webpack_require__(89622);
|
|
116847
|
-
const engine_io_parser_1 = __webpack_require__(
|
|
116835
|
+
const engine_io_parser_1 = __webpack_require__(77857);
|
|
116848
116836
|
const debug_1 = __importDefault(__webpack_require__(14802)); // debug()
|
|
116849
116837
|
const debug = (0, debug_1.default)("engine.io-client:polling"); // debug()
|
|
116850
116838
|
class Polling extends transport_js_1.Transport {
|
|
@@ -117017,7 +117005,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
117017
117005
|
exports.WS = exports.BaseWS = void 0;
|
|
117018
117006
|
const transport_js_1 = __webpack_require__(29870);
|
|
117019
117007
|
const util_js_1 = __webpack_require__(89622);
|
|
117020
|
-
const engine_io_parser_1 = __webpack_require__(
|
|
117008
|
+
const engine_io_parser_1 = __webpack_require__(77857);
|
|
117021
117009
|
const globals_node_js_1 = __webpack_require__(15010);
|
|
117022
117010
|
const debug_1 = __importDefault(__webpack_require__(14802)); // debug()
|
|
117023
117011
|
const debug = (0, debug_1.default)("engine.io-client:websocket"); // debug()
|
|
@@ -117161,7 +117149,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
117161
117149
|
exports.WT = void 0;
|
|
117162
117150
|
const transport_js_1 = __webpack_require__(29870);
|
|
117163
117151
|
const globals_node_js_1 = __webpack_require__(15010);
|
|
117164
|
-
const engine_io_parser_1 = __webpack_require__(
|
|
117152
|
+
const engine_io_parser_1 = __webpack_require__(77857);
|
|
117165
117153
|
const debug_1 = __importDefault(__webpack_require__(14802)); // debug()
|
|
117166
117154
|
const debug = (0, debug_1.default)("engine.io-client:webtransport"); // debug()
|
|
117167
117155
|
/**
|
|
@@ -117561,7 +117549,7 @@ function encodePacketToBinary(packet, callback) {
|
|
|
117561
117549
|
|
|
117562
117550
|
/***/ }),
|
|
117563
117551
|
|
|
117564
|
-
/***/
|
|
117552
|
+
/***/ 77857:
|
|
117565
117553
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
117566
117554
|
|
|
117567
117555
|
"use strict";
|