@bringg/dashboard-sdk 9.96.0-pre.1 → 9.96.0-pre.3
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.
|
@@ -2712,7 +2712,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
|
2712
2712
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2713
2713
|
|
|
2714
2714
|
"use strict";
|
|
2715
|
-
eval("\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n 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;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.AnonymousServiceRequest = exports.AuthorizedServiceRequest = exports.ResponseHandler = exports.RequestOptions = exports.logErrorResponse = void 0;\nvar axios_1 = __importDefault(__webpack_require__(/*! axios */ \"./node_modules/axios/index.js\"));\nvar lodash_1 = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\nvar BringgException_1 = __webpack_require__(/*! ../Core/BringgException */ \"./dist/Core/BringgException.js\");\nvar client_page_1 = __webpack_require__(/*! ../Core/Http/client-page */ \"./dist/Core/Http/client-page.js\");\nvar Logger_1 = __importDefault(__webpack_require__(/*! ../Core/Logger */ \"./dist/Core/Logger.js\"));\nvar abort_1 = __webpack_require__(/*! ../utils/abort */ \"./dist/utils/abort.js\");\nvar version = '9.96.0-pre.1';\nfunction logErrorResponse(response) {\n var data = response.data, status = response.status;\n try {\n Logger_1.default.error(response.config.method.toUpperCase(), response.config.url, status);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.info(response.config.method.toUpperCase(), response.config.url, status, data);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.debug(response);\n }\n catch (e) {\n //\n }\n}\nexports.logErrorResponse = logErrorResponse;\nvar DEFAULT_TIMEOUT = 120000;\nvar RequestOptions = /** @class */ (function () {\n function RequestOptions(clientId, timeout, queryString, authenticationToken, headers, responseType, signal) {\n // NiceToHave: move headers to HttpHeaders class\n this.headers = __assign(__assign({ 'Content-Type': 'application/json' }, headers), { 'sdk-version': version, Client: clientId });\n this.timeout = timeout;\n this.validateStatus = lodash_1.stubTrue;\n var clientPage = (0, client_page_1.currentClientPage)();\n if (clientPage) {\n this.headers[client_page_1.CLIENT_PAGE_HEADER] = clientPage;\n }\n if (queryString) {\n this.params = queryString;\n }\n if (authenticationToken) {\n this.headers['Authorization'] = \"Token token=\".concat(authenticationToken);\n }\n if (responseType) {\n this.responseType = responseType;\n }\n if (signal) {\n this.signal = signal;\n }\n }\n RequestOptions.new = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.clientId, clientId = _c === void 0 ? 'Bringg Dashboard' : _c, _d = _b.timeout, timeout = _d === void 0 ? DEFAULT_TIMEOUT : _d, queryString = _b.queryString, authenticationToken = _b.authenticationToken, headers = _b.headers, responseType = _b.responseType, signal = _b.signal;\n return new RequestOptions(clientId, timeout || DEFAULT_TIMEOUT, queryString, authenticationToken, headers, responseType, signal);\n };\n return RequestOptions;\n}());\nexports.RequestOptions = RequestOptions;\nvar ResponseHandler = /** @class */ (function () {\n function ResponseHandler(response, signal) {\n this.axiosPromise = response;\n this.signal = signal;\n }\n ResponseHandler.prototype.handle = function (consumer) {\n return __awaiter(this, void 0, void 0, function () {\n var axiosResponse, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if ((0, lodash_1.isUndefined)(consumer)) {\n throw new Error('consumer must be defined');\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, this.axiosPromise];\n case 2:\n axiosResponse = _a.sent();\n return [2 /*return*/, consumer(axiosResponse)];\n case 3:\n e_1 = _a.sent();\n if (axios_1.default.isCancel(e_1)) {\n (0, abort_1.throwAbortError)(this.signal, 'Request Aborted');\n }\n if (e_1 instanceof BringgException_1.BringgException) {\n throw e_1;\n }\n return [2 /*return*/, consumer(e_1)];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return ResponseHandler;\n}());\nexports.ResponseHandler = ResponseHandler;\nfunction get(axiosInstance, host, uri, queryString, signal) {\n return new ResponseHandler(axiosInstance.get(\"\".concat(host).concat(uri), { params: queryString, signal: signal }), signal);\n}\nfunction post(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.post(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction put(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.put(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction patch(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.patch(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction remove(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.delete(\"\".concat(host).concat(uri), { params: queryString, data: payload, signal: signal }), signal);\n}\nfunction routify(axiosInstance, endpoint, route, routeParams, queryString, payload, signal) {\n switch (route.httpMethod) {\n case 0 /* HttpMethod.GET */:\n return get(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, signal);\n case 1 /* HttpMethod.POST */:\n return post(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 2 /* HttpMethod.PUT */:\n return put(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 3 /* HttpMethod.PATCH */:\n return patch(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 4 /* HttpMethod.DELETE */:\n return remove(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n }\n}\nfunction wrapWithInterceptors(axios) {\n axios.interceptors.request.use(function (req) {\n var method = req.method, url = req.url, params = req.params, headers = req.headers, data = req.data;\n try {\n Logger_1.default.debug('REQUEST:', method.toUpperCase(), url);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('REQUEST-query-string:', params);\n Logger_1.default.trace('REQUEST-headers:', headers);\n Logger_1.default.trace('REQUEST-data:', data);\n }\n catch (e) {\n //\n }\n return req;\n });\n axios.interceptors.response.use(function (res) {\n var statusText = res.statusText, status = res.status, headers = res.headers, data = res.data;\n try {\n Logger_1.default.debug('RESPONSE:', res.config.url, status, statusText);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('RESPONSE-headers:', headers);\n Logger_1.default.trace('RESPONSE-data:', data);\n }\n catch (e) {\n //\n }\n return res;\n });\n return axios;\n}\nfunction axiosInstance(clientId, authenticationToken, headers, responseType, timeout, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, authenticationToken: authenticationToken, headers: headers, responseType: responseType, timeout: timeout, signal: signal })));\n}\nfunction anonymousAxiosInstance(clientId, headers, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, headers: headers, signal: signal })));\n}\nvar AuthorizedServiceRequest = /** @class */ (function () {\n function AuthorizedServiceRequest(clientId, authToken) {\n this.authToken = authToken;\n this.clientId = clientId;\n }\n AuthorizedServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload, headers, responseType, timeout, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(axiosInstance(this.clientId, this.authToken, headers, responseType, timeout), endpoint, route, routeParams, queryString, payload, signal);\n };\n return AuthorizedServiceRequest;\n}());\nexports.AuthorizedServiceRequest = AuthorizedServiceRequest;\nvar AnonymousServiceRequest = /** @class */ (function () {\n function AnonymousServiceRequest(clientId, headers) {\n this.clientId = clientId;\n this.headers = headers;\n }\n AnonymousServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(anonymousAxiosInstance(this.clientId, this.headers, signal), endpoint, route, routeParams, queryString, payload);\n };\n return AnonymousServiceRequest;\n}());\nexports.AnonymousServiceRequest = AnonymousServiceRequest;\n//# sourceMappingURL=ServiceRequest.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Services/ServiceRequest.js?");
|
|
2715
|
+
eval("\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n 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;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.AnonymousServiceRequest = exports.AuthorizedServiceRequest = exports.ResponseHandler = exports.RequestOptions = exports.logErrorResponse = void 0;\nvar axios_1 = __importDefault(__webpack_require__(/*! axios */ \"./node_modules/axios/index.js\"));\nvar lodash_1 = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\nvar BringgException_1 = __webpack_require__(/*! ../Core/BringgException */ \"./dist/Core/BringgException.js\");\nvar client_page_1 = __webpack_require__(/*! ../Core/Http/client-page */ \"./dist/Core/Http/client-page.js\");\nvar Logger_1 = __importDefault(__webpack_require__(/*! ../Core/Logger */ \"./dist/Core/Logger.js\"));\nvar abort_1 = __webpack_require__(/*! ../utils/abort */ \"./dist/utils/abort.js\");\nvar version = '9.96.0-pre.3';\nfunction logErrorResponse(response) {\n var data = response.data, status = response.status;\n try {\n Logger_1.default.error(response.config.method.toUpperCase(), response.config.url, status);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.info(response.config.method.toUpperCase(), response.config.url, status, data);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.debug(response);\n }\n catch (e) {\n //\n }\n}\nexports.logErrorResponse = logErrorResponse;\nvar DEFAULT_TIMEOUT = 120000;\nvar RequestOptions = /** @class */ (function () {\n function RequestOptions(clientId, timeout, queryString, authenticationToken, headers, responseType, signal) {\n // NiceToHave: move headers to HttpHeaders class\n this.headers = __assign(__assign({ 'Content-Type': 'application/json' }, headers), { 'sdk-version': version, Client: clientId });\n this.timeout = timeout;\n this.validateStatus = lodash_1.stubTrue;\n var clientPage = (0, client_page_1.currentClientPage)();\n if (clientPage) {\n this.headers[client_page_1.CLIENT_PAGE_HEADER] = clientPage;\n }\n if (queryString) {\n this.params = queryString;\n }\n if (authenticationToken) {\n this.headers['Authorization'] = \"Token token=\".concat(authenticationToken);\n }\n if (responseType) {\n this.responseType = responseType;\n }\n if (signal) {\n this.signal = signal;\n }\n }\n RequestOptions.new = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.clientId, clientId = _c === void 0 ? 'Bringg Dashboard' : _c, _d = _b.timeout, timeout = _d === void 0 ? DEFAULT_TIMEOUT : _d, queryString = _b.queryString, authenticationToken = _b.authenticationToken, headers = _b.headers, responseType = _b.responseType, signal = _b.signal;\n return new RequestOptions(clientId, timeout || DEFAULT_TIMEOUT, queryString, authenticationToken, headers, responseType, signal);\n };\n return RequestOptions;\n}());\nexports.RequestOptions = RequestOptions;\nvar ResponseHandler = /** @class */ (function () {\n function ResponseHandler(response, signal) {\n this.axiosPromise = response;\n this.signal = signal;\n }\n ResponseHandler.prototype.handle = function (consumer) {\n return __awaiter(this, void 0, void 0, function () {\n var axiosResponse, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if ((0, lodash_1.isUndefined)(consumer)) {\n throw new Error('consumer must be defined');\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, this.axiosPromise];\n case 2:\n axiosResponse = _a.sent();\n return [2 /*return*/, consumer(axiosResponse)];\n case 3:\n e_1 = _a.sent();\n if (axios_1.default.isCancel(e_1)) {\n (0, abort_1.throwAbortError)(this.signal, 'Request Aborted');\n }\n if (e_1 instanceof BringgException_1.BringgException) {\n throw e_1;\n }\n return [2 /*return*/, consumer(e_1)];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return ResponseHandler;\n}());\nexports.ResponseHandler = ResponseHandler;\nfunction get(axiosInstance, host, uri, queryString, signal) {\n return new ResponseHandler(axiosInstance.get(\"\".concat(host).concat(uri), { params: queryString, signal: signal }), signal);\n}\nfunction post(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.post(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction put(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.put(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction patch(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.patch(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction remove(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.delete(\"\".concat(host).concat(uri), { params: queryString, data: payload, signal: signal }), signal);\n}\nfunction routify(axiosInstance, endpoint, route, routeParams, queryString, payload, signal) {\n switch (route.httpMethod) {\n case 0 /* HttpMethod.GET */:\n return get(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, signal);\n case 1 /* HttpMethod.POST */:\n return post(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 2 /* HttpMethod.PUT */:\n return put(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 3 /* HttpMethod.PATCH */:\n return patch(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 4 /* HttpMethod.DELETE */:\n return remove(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n }\n}\nfunction wrapWithInterceptors(axios) {\n axios.interceptors.request.use(function (req) {\n var method = req.method, url = req.url, params = req.params, headers = req.headers, data = req.data;\n try {\n Logger_1.default.debug('REQUEST:', method.toUpperCase(), url);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('REQUEST-query-string:', params);\n Logger_1.default.trace('REQUEST-headers:', headers);\n Logger_1.default.trace('REQUEST-data:', data);\n }\n catch (e) {\n //\n }\n return req;\n });\n axios.interceptors.response.use(function (res) {\n var statusText = res.statusText, status = res.status, headers = res.headers, data = res.data;\n try {\n Logger_1.default.debug('RESPONSE:', res.config.url, status, statusText);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('RESPONSE-headers:', headers);\n Logger_1.default.trace('RESPONSE-data:', data);\n }\n catch (e) {\n //\n }\n return res;\n });\n return axios;\n}\nfunction axiosInstance(clientId, authenticationToken, headers, responseType, timeout, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, authenticationToken: authenticationToken, headers: headers, responseType: responseType, timeout: timeout, signal: signal })));\n}\nfunction anonymousAxiosInstance(clientId, headers, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, headers: headers, signal: signal })));\n}\nvar AuthorizedServiceRequest = /** @class */ (function () {\n function AuthorizedServiceRequest(clientId, authToken) {\n this.authToken = authToken;\n this.clientId = clientId;\n }\n AuthorizedServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload, headers, responseType, timeout, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(axiosInstance(this.clientId, this.authToken, headers, responseType, timeout), endpoint, route, routeParams, queryString, payload, signal);\n };\n return AuthorizedServiceRequest;\n}());\nexports.AuthorizedServiceRequest = AuthorizedServiceRequest;\nvar AnonymousServiceRequest = /** @class */ (function () {\n function AnonymousServiceRequest(clientId, headers) {\n this.clientId = clientId;\n this.headers = headers;\n }\n AnonymousServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(anonymousAxiosInstance(this.clientId, this.headers, signal), endpoint, route, routeParams, queryString, payload);\n };\n return AnonymousServiceRequest;\n}());\nexports.AnonymousServiceRequest = AnonymousServiceRequest;\n//# sourceMappingURL=ServiceRequest.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Services/ServiceRequest.js?");
|
|
2716
2716
|
|
|
2717
2717
|
/***/ }),
|
|
2718
2718
|
|
|
@@ -6430,7 +6430,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n//#
|
|
|
6430
6430
|
/***/ ((__unused_webpack_module, exports) => {
|
|
6431
6431
|
|
|
6432
6432
|
"use strict";
|
|
6433
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.OptimizationPriorities = exports.ERROR_CODE = exports.TASK_FIFO = exports.ValidLimitations = exports.WayPointType = exports.ActivityType = exports.SquashType = exports.FleetSize = exports.DMEngine = exports.OptimizationSolver = exports.UnassignedAfterOptimization = exports.UnassignedBeforeOptimization = exports.UnassignedJobReasonForServer = exports.UnassignedJobReason = exports.Actions = exports.DEFAULT_OPTIMIZATION_PARAMETERS = void 0;\nexports.DEFAULT_OPTIMIZATION_PARAMETERS = {\n TASK_PRIORITY: 2,\n TASK_DURATION_IN_MINUTES: 1,\n TASK_CAPACITY: 1,\n USER_TYPE_CAPACITY: 1,\n USER_TYPE_COST: 1,\n USER_TYPE_ID: 0,\n MIN_OPTIMIZATION_PRIORITY: 10\n};\nvar Actions;\n(function (Actions) {\n Actions[\"ScheduledRouteOptimization\"] = \"scheduled_route_optimization\";\n Actions[\"BatchScheduledRouteOptimization\"] = \"batch_scheduled_route_optimization\";\n Actions[\"RouteOptimizationRequest\"] = \"route_optimization_request\";\n Actions[\"RouteOptimizationRpcRequest\"] = \"route_optimization_request_rpc\";\n Actions[\"RouteOptimizationCacheRefresh\"] = \"route_optimization_cache_refresh\";\n Actions[\"RouteOptimizationDone\"] = \"route_optimization_done\";\n Actions[\"CalculateDistanceMatrix\"] = \"calculate_distance_matrix\";\n Actions[\"CalculateRoutesResponse\"] = \"help_build_distance_matrix_response\";\n Actions[\"CalculateETA\"] = \"calculate_eta\";\n Actions[\"AcceptQuote\"] = \"accept_quote\";\n Actions[\"SplitToClusters\"] = \"split_to_clusters\";\n})(Actions || (exports.Actions = Actions = {}));\nvar UnassignedJobReason;\n(function (UnassignedJobReason) {\n UnassignedJobReason[\"reason_not_found\"] = \"reason not found\";\n UnassignedJobReason[\"out_of_max_distance\"] = \"cannot be assigned due to max distance constraint of vehicle\";\n UnassignedJobReason[\"no_driver_in_tasks_time_window\"] = \"no driver in appropriate time window\";\n UnassignedJobReason[\"exceed_all_drivers_allowed_maximal_load\"] = \"Exceed all drivers maximal load\";\n UnassignedJobReason[\"exceed_all_drivers_containers\"] = \"Exceed all drivers containers\";\n UnassignedJobReason[\"no_driver_with_required_skills\"] = \"no_driver_with_required_skills\";\n UnassignedJobReason[\"excluded_from_all_drivers\"] = \"no driver that can serve the job\";\n UnassignedJobReason[\"driver_that_task_assign_to_not_found_in_optimization\"] = \"driver that task assigned to not found in optimization\";\n UnassignedJobReason[\"active_task_not_assigned_to_driver\"] = \"active task not assigned to driver\";\n UnassignedJobReason[\"illegal_coordinate\"] = \"illegal coordinate\";\n UnassignedJobReason[\"task_assigned_to_driver_that_rejected_the_task\"] = \"task assigned to driver that rejected the task\";\n UnassignedJobReason[\"invalid_capacity_dimensions_for_task\"] = \"invalid capacity dimensions for task\";\n UnassignedJobReason[\"negative_capacity_requirements\"] = \"The capacity value must not be negative.\";\n UnassignedJobReason[\"negative_max_time_in_vehicle\"] = \"The maximum time in vehicle must be positive.\";\n UnassignedJobReason[\"negative_service_time\"] = \"The service time of must be positive\";\n UnassignedJobReason[\"negative_loading_time\"] = \"The loading time of must be positive\";\n UnassignedJobReason[\"max_time_in_vehicle_not_supported_for_job_type\"] = \"The maximum time in vehicle is not yet supported for Pickups and Services.\";\n UnassignedJobReason[\"invalid_priority\"] = \"The priority value is not valid. Only 1 (very high) to 10 (very low) are allowed.\";\n UnassignedJobReason[\"load_constrains\"] = \"does not fit into any vehicle due to capacity\";\n UnassignedJobReason[\"time_constraints\"] = \"cannot be visited within time window\";\n UnassignedJobReason[\"time_or_customer_availability_constraints\"] = \"Order cannot be fulfilled at this time due to time window or your availability limitations\";\n UnassignedJobReason[\"skills_constraint\"] = \"cannot serve required skill\";\n UnassignedJobReason[\"max_time_in_vehicle_constraint\"] = \"cannot be assigned due to max time on vehicle constraint of vehicle\";\n UnassignedJobReason[\"failed_to_pack\"] = \"failed to pack\";\n UnassignedJobReason[\"route_constraint\"] = \"failed due to route constraint\";\n UnassignedJobReason[\"driving_times_limitations\"] = \"failed due driving time limitations\";\n UnassignedJobReason[\"failed_to_find_driver_for_cluster\"] = \"failed to find driver for cluster\";\n UnassignedJobReason[\"tasks_unmatched_conditions\"] = \"Order removed from optimization due to unmatched conditions\";\n})(UnassignedJobReason || (exports.UnassignedJobReason = UnassignedJobReason = {}));\nexports.UnassignedJobReasonForServer = {\n 'reason not found': 'reason_not_found',\n 'cannot be assigned due to max distance constraint of vehicle': 'OUT_OF_MAX_DISTANCE',\n 'no driver in appropriate time window': 'NO_DRIVER_IN_TASKS_TIME_WINDOW',\n 'Exceed all drivers maximal load': 'EXCEED_ALL_DRIVERS_ALLOWED_MAXIMAL_LOAD',\n 'Exceed all drivers containers': 'EXCEED_ALL_DRIVERS_CONTAINERS',\n no_driver_with_required_skills: 'NO_DRIVER_WITH_REQUIRED_SKILLS',\n 'no driver that can serve the job': 'EXCLUDED_FROM_ALL_DRIVERS',\n 'driver that task assigned to not found in optimization': 'DRIVER_THAT_TASK_ASSIGN_TO_NOT_FOUND_IN_OPTIMIZATION',\n 'active task not assigned to driver': 'ACTIVE_TASK_NOT_ASSIGNED_TO_DRIVER',\n 'illegal coordinate': 'ILLEGAL_COORDINATE',\n 'task assigned to driver that rejected the task': 'TASK_ASSIGNED_TO_DRIVER_THAT_REJECTED_THE_TASK',\n 'invalid capacity dimensions for task': 'INVALID_CAPACITY_DIMENSIONS_FOR_TASK',\n 'The capacity value must not be negative.': 'NEGATIVE_CAPACITY_REQUIREMENTS',\n 'The maximum time in vehicle must be positive.': 'NEGATIVE_MAX_TIME_IN_VEHICLE',\n 'The service time of must be positive': 'NEGATIVE_SERVICE_TIME',\n 'The loading time of must be positive': 'NEGATIVE_LOADING_TIME',\n 'The maximum time in vehicle is not yet supported for Pickups and Services.': 'MAX_TIME_IN_VEHICLE_NOT_SUPPORTED_FOR_JOB_TYPE',\n 'The priority value is not valid. Only 1 (very high) to 10 (very low) are allowed.': 'INVALID_PRIORITY',\n 'does not fit into any vehicle due to capacity': 'LOAD_CONSTRAINS',\n 'cannot be visited within time window': 'TIME_CONSTRAINTS',\n 'Order cannot be fulfilled at this time due to time window or your availability limitations': 'TIME_OR_CUSTOMER_AVAILABILITY_CONSTRAINTS',\n 'cannot serve required skill': 'SKILLS_CONSTRAINT',\n 'cannot be assigned due to max time on vehicle constraint of vehicle': 'MAX_TIME_IN_VEHICLE_CONSTRAINT',\n 'failed to pack': 'FAILED_TO_PACK',\n 'failed due to route constraint': 'ROUTE_CONSTRAINT',\n 'failed due driving time limitations': 'DRIVING_TIMES_LIMITATIONS',\n 'failed to find driver for cluster': 'FAILED_TO_FIND_DRIVER_FOR_CLUSTER',\n 'failed due to routing area': 'FAILED_TO_INSERT_DUE_TO_ROUTING_AREA'\n};\nexports.UnassignedBeforeOptimization = [\n UnassignedJobReason.out_of_max_distance,\n UnassignedJobReason.no_driver_in_tasks_time_window,\n UnassignedJobReason.no_driver_with_required_skills,\n UnassignedJobReason.exceed_all_drivers_allowed_maximal_load,\n UnassignedJobReason.exceed_all_drivers_containers,\n UnassignedJobReason.excluded_from_all_drivers,\n UnassignedJobReason.driver_that_task_assign_to_not_found_in_optimization,\n UnassignedJobReason.active_task_not_assigned_to_driver,\n UnassignedJobReason.illegal_coordinate,\n UnassignedJobReason.task_assigned_to_driver_that_rejected_the_task,\n UnassignedJobReason.invalid_capacity_dimensions_for_task,\n UnassignedJobReason.negative_capacity_requirements,\n UnassignedJobReason.negative_max_time_in_vehicle,\n UnassignedJobReason.negative_service_time,\n UnassignedJobReason.negative_loading_time,\n UnassignedJobReason.max_time_in_vehicle_not_supported_for_job_type,\n UnassignedJobReason.invalid_priority,\n UnassignedJobReason.tasks_unmatched_conditions\n];\nexports.UnassignedAfterOptimization = [\n UnassignedJobReason.load_constrains,\n UnassignedJobReason.time_constraints,\n UnassignedJobReason.time_or_customer_availability_constraints,\n UnassignedJobReason.skills_constraint,\n UnassignedJobReason.failed_to_find_driver_for_cluster,\n UnassignedJobReason.failed_to_pack,\n UnassignedJobReason.route_constraint,\n UnassignedJobReason.max_time_in_vehicle_constraint,\n UnassignedJobReason.driving_times_limitations\n];\nvar OptimizationSolver;\n(function (OptimizationSolver) {\n OptimizationSolver[\"G2S\"] = \"g2s\";\n OptimizationSolver[\"Vroom\"] = \"vroom\";\n OptimizationSolver[\"Jsprit\"] = \"jsprit\";\n OptimizationSolver[\"GoogleCloudFleetRouting\"] = \"google_cfr\";\n})(OptimizationSolver || (exports.OptimizationSolver = OptimizationSolver = {}));\nvar DMEngine;\n(function (DMEngine) {\n DMEngine[\"OSRM\"] = \"osrm\";\n DMEngine[\"GRAPHHOPPER\"] = \"graphhopper\";\n DMEngine[\"NEXTBILLION\"] = \"nextbillion\";\n DMEngine[\"HERE\"] = \"here\";\n DMEngine[\"VALHALLA\"] = \"valhalla\";\n DMEngine[\"ORS\"] = \"ors\";\n DMEngine[\"UNKNOWN\"] = \"unknown\";\n})(DMEngine || (exports.DMEngine = DMEngine = {}));\nvar FleetSize;\n(function (FleetSize) {\n FleetSize[\"Finite\"] = \"FINITE\";\n FleetSize[\"Infinite\"] = \"INFINITE_WITH_BREAKS\";\n})(FleetSize || (exports.FleetSize = FleetSize = {}));\nvar SquashType;\n(function (SquashType) {\n SquashType[\"Pickup\"] = \"pu\";\n SquashType[\"Dropoff\"] = \"do\";\n})(SquashType || (exports.SquashType = SquashType = {}));\nvar ActivityType;\n(function (ActivityType) {\n ActivityType[\"foot\"] = \"foot\";\n ActivityType[\"vehicle\"] = \"vehicle\";\n})(ActivityType || (exports.ActivityType = ActivityType = {}));\nvar WayPointType;\n(function (WayPointType) {\n WayPointType[WayPointType[\"pickup\"] = 0] = \"pickup\";\n WayPointType[WayPointType[\"delivery\"] = 1] = \"delivery\";\n})(WayPointType || (exports.WayPointType = WayPointType = {}));\nexports.ValidLimitations = ['mustBeOnTop', 'mustBeOnBottom', 'disable2DRotation'];\nvar TASK_FIFO;\n(function (TASK_FIFO) {\n TASK_FIFO[TASK_FIFO[\"none\"] = 0] = \"none\";\n TASK_FIFO[TASK_FIFO[\"by_pickup\"] = 1] = \"by_pickup\";\n TASK_FIFO[TASK_FIFO[\"by_dropoff\"] = 2] = \"by_dropoff\";\n})(TASK_FIFO || (exports.TASK_FIFO = TASK_FIFO = {}));\nvar ERROR_CODE;\n(function (ERROR_CODE) {\n ERROR_CODE[ERROR_CODE[\"NO_DRIVER_TYPE_PASSED\"] = 1] = \"NO_DRIVER_TYPE_PASSED\";\n ERROR_CODE[ERROR_CODE[\"NO_ROUTE_START_IN_DRIVER_SHIFT\"] = 2] = \"NO_ROUTE_START_IN_DRIVER_SHIFT\";\n ERROR_CODE[ERROR_CODE[\"NO_DRIVER_PASSED\"] = 3] = \"NO_DRIVER_PASSED\";\n ERROR_CODE[ERROR_CODE[\"NO_DRIVER_TYPES_PASSED\"] = 4] = \"NO_DRIVER_TYPES_PASSED\";\n ERROR_CODE[ERROR_CODE[\"NO_TASKS_PASSED\"] = 5] = \"NO_TASKS_PASSED\";\n ERROR_CODE[ERROR_CODE[\"NO_ROUTES_FOR_CALCULATE_ETA\"] = 6] = \"NO_ROUTES_FOR_CALCULATE_ETA\";\n ERROR_CODE[ERROR_CODE[\"NO_DROP_OFF_FOR_PICK_UP_TASK\"] = 7] = \"NO_DROP_OFF_FOR_PICK_UP_TASK\";\n ERROR_CODE[ERROR_CODE[\"NO_PICK_UP_AND_DROP_OFF_FOR_TASK\"] = 8] = \"NO_PICK_UP_AND_DROP_OFF_FOR_TASK\";\n ERROR_CODE[ERROR_CODE[\"INVALID_ROUTE_START_LOCATION\"] = 9] = \"INVALID_ROUTE_START_LOCATION\";\n ERROR_CODE[ERROR_CODE[\"INVALID_TIME_WINDOW_ON_BREAK\"] = 10] = \"INVALID_TIME_WINDOW_ON_BREAK\";\n ERROR_CODE[ERROR_CODE[\"INVALID_BREAK_DURATION_LESS_THEN_ZERO\"] = 11] = \"INVALID_BREAK_DURATION_LESS_THEN_ZERO\";\n ERROR_CODE[ERROR_CODE[\"INVALID_DRIVERS_LOCATION\"] = 12] = \"INVALID_DRIVERS_LOCATION\";\n ERROR_CODE[ERROR_CODE[\"INVALID_TASK_PRIORITY\"] = 13] = \"INVALID_TASK_PRIORITY\";\n ERROR_CODE[ERROR_CODE[\"INVALID_TIME_WINDOW_ON_WAY_POINT\"] = 14] = \"INVALID_TIME_WINDOW_ON_WAY_POINT\";\n ERROR_CODE[ERROR_CODE[\"INVALID_COORDINATE\"] = 15] = \"INVALID_COORDINATE\";\n ERROR_CODE[ERROR_CODE[\"INVALID_RUN_ID\"] = 16] = \"INVALID_RUN_ID\";\n ERROR_CODE[ERROR_CODE[\"ABNORMAL_REQUEST\"] = 17] = \"ABNORMAL_REQUEST\";\n ERROR_CODE[ERROR_CODE[\"INVALID_VEHICLE_DIMENSIONS\"] = 18] = \"INVALID_VEHICLE_DIMENSIONS\";\n ERROR_CODE[ERROR_CODE[\"INVALID_TASK_DIMENSIONS\"] = 19] = \"INVALID_TASK_DIMENSIONS\";\n ERROR_CODE[ERROR_CODE[\"INVALID_DRIVER_TIME_WINDOW\"] = 20] = \"INVALID_DRIVER_TIME_WINDOW\";\n ERROR_CODE[ERROR_CODE[\"INVALID_DRIVERS_QUANTITY\"] = 21] = \"INVALID_DRIVERS_QUANTITY\";\n ERROR_CODE[ERROR_CODE[\"INVALID_ETOS\"] = 22] = \"INVALID_ETOS\";\n ERROR_CODE[ERROR_CODE[\"TIMEOUT\"] = 23] = \"TIMEOUT\";\n ERROR_CODE[ERROR_CODE[\"NOT_ENOUGH_TIME_TO_RUN_OPTIMIZATION\"] = 24] = \"NOT_ENOUGH_TIME_TO_RUN_OPTIMIZATION\";\n ERROR_CODE[ERROR_CODE[\"OPTIMIZATION_SOLVER_INTERNAL_ERROR\"] = 25] = \"OPTIMIZATION_SOLVER_INTERNAL_ERROR\";\n ERROR_CODE[ERROR_CODE[\"REQUEST_EXCEED_QUOTA\"] = 26] = \"REQUEST_EXCEED_QUOTA\";\n ERROR_CODE[ERROR_CODE[\"TOO_MANY_FAILED_OPTIMIZATIONS_FOR_TIME_WINDOW\"] = 27] = \"TOO_MANY_FAILED_OPTIMIZATIONS_FOR_TIME_WINDOW\";\n})(ERROR_CODE || (exports.ERROR_CODE = ERROR_CODE = {}));\nvar OptimizationPriorities;\n(function (OptimizationPriorities) {\n OptimizationPriorities[\"CLUSTERED\"] = \"CLUSTERED\";\n OptimizationPriorities[\"MIN_DRIVERS\"] = \"MIN_DRIVERS\";\n OptimizationPriorities[\"MIN_UNASSIGNED\"] = \"MIN_UNASSIGNED\";\n OptimizationPriorities[\"FAIRNESS\"] = \"FAIRNESS\";\n OptimizationPriorities[\"MIN_TIME\"] = \"MIN_TIME\";\n})(OptimizationPriorities || (exports.OptimizationPriorities = OptimizationPriorities = {}));\n//# sourceMappingURL=route_optimizer_types.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/route_optimizer_types.js?");
|
|
6433
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.OptimizationPriorities = exports.ERROR_CODE = exports.TASK_FIFO = exports.ValidLimitations = exports.WayPointType = exports.ActivityType = exports.SquashType = exports.FleetSize = exports.DMEngine = exports.OptimizationSolver = exports.UnassignedAfterOptimization = exports.UnassignedBeforeOptimization = exports.UnassignedJobReasonForServer = exports.UnassignedJobReason = exports.Actions = exports.DEFAULT_OPTIMIZATION_PARAMETERS = void 0;\nexports.DEFAULT_OPTIMIZATION_PARAMETERS = {\n TASK_PRIORITY: 2,\n TASK_DURATION_IN_MINUTES: 1,\n TASK_CAPACITY: 1,\n USER_TYPE_CAPACITY: 1,\n USER_TYPE_COST: 1,\n USER_TYPE_ID: 0,\n MIN_OPTIMIZATION_PRIORITY: 10\n};\nvar Actions;\n(function (Actions) {\n Actions[\"ScheduledRouteOptimization\"] = \"scheduled_route_optimization\";\n Actions[\"BatchScheduledRouteOptimization\"] = \"batch_scheduled_route_optimization\";\n Actions[\"RouteOptimizationRequest\"] = \"route_optimization_request\";\n Actions[\"RouteOptimizationRpcRequest\"] = \"route_optimization_request_rpc\";\n Actions[\"RouteOptimizationCacheRefresh\"] = \"route_optimization_cache_refresh\";\n Actions[\"RouteOptimizationDone\"] = \"route_optimization_done\";\n Actions[\"CalculateDistanceMatrix\"] = \"calculate_distance_matrix\";\n Actions[\"CalculateRoutesResponse\"] = \"help_build_distance_matrix_response\";\n Actions[\"CalculateETA\"] = \"calculate_eta\";\n Actions[\"AcceptQuote\"] = \"accept_quote\";\n Actions[\"SplitToClusters\"] = \"split_to_clusters\";\n})(Actions || (exports.Actions = Actions = {}));\nvar UnassignedJobReason;\n(function (UnassignedJobReason) {\n UnassignedJobReason[\"reason_not_found\"] = \"reason not found\";\n UnassignedJobReason[\"out_of_max_distance\"] = \"cannot be assigned due to max distance constraint of vehicle\";\n UnassignedJobReason[\"no_driver_in_tasks_time_window\"] = \"no driver in appropriate time window\";\n UnassignedJobReason[\"exceed_all_drivers_allowed_maximal_load\"] = \"Exceed all drivers maximal load\";\n UnassignedJobReason[\"exceed_all_drivers_containers\"] = \"Exceed all drivers containers\";\n UnassignedJobReason[\"no_driver_with_required_skills\"] = \"no_driver_with_required_skills\";\n UnassignedJobReason[\"excluded_from_all_drivers\"] = \"no driver that can serve the job\";\n UnassignedJobReason[\"driver_that_task_assign_to_not_found_in_optimization\"] = \"driver that task assigned to not found in optimization\";\n UnassignedJobReason[\"forced_driver_not_in_optimization\"] = \"forced driver not in optimization\";\n UnassignedJobReason[\"active_task_not_assigned_to_driver\"] = \"active task not assigned to driver\";\n UnassignedJobReason[\"illegal_coordinate\"] = \"illegal coordinate\";\n UnassignedJobReason[\"task_assigned_to_driver_that_rejected_the_task\"] = \"task assigned to driver that rejected the task\";\n UnassignedJobReason[\"invalid_capacity_dimensions_for_task\"] = \"invalid capacity dimensions for task\";\n UnassignedJobReason[\"negative_capacity_requirements\"] = \"The capacity value must not be negative.\";\n UnassignedJobReason[\"negative_max_time_in_vehicle\"] = \"The maximum time in vehicle must be positive.\";\n UnassignedJobReason[\"negative_service_time\"] = \"The service time of must be positive\";\n UnassignedJobReason[\"negative_loading_time\"] = \"The loading time of must be positive\";\n UnassignedJobReason[\"max_time_in_vehicle_not_supported_for_job_type\"] = \"The maximum time in vehicle is not yet supported for Pickups and Services.\";\n UnassignedJobReason[\"invalid_priority\"] = \"The priority value is not valid. Only 1 (very high) to 10 (very low) are allowed.\";\n UnassignedJobReason[\"load_constrains\"] = \"does not fit into any vehicle due to capacity\";\n UnassignedJobReason[\"time_constraints\"] = \"cannot be visited within time window\";\n UnassignedJobReason[\"time_or_customer_availability_constraints\"] = \"Order cannot be fulfilled at this time due to time window or your availability limitations\";\n UnassignedJobReason[\"skills_constraint\"] = \"cannot serve required skill\";\n UnassignedJobReason[\"max_time_in_vehicle_constraint\"] = \"cannot be assigned due to max time on vehicle constraint of vehicle\";\n UnassignedJobReason[\"failed_to_pack\"] = \"failed to pack\";\n UnassignedJobReason[\"route_constraint\"] = \"failed due to route constraint\";\n UnassignedJobReason[\"driving_times_limitations\"] = \"failed due driving time limitations\";\n UnassignedJobReason[\"failed_to_find_driver_for_cluster\"] = \"failed to find driver for cluster\";\n UnassignedJobReason[\"tasks_unmatched_conditions\"] = \"Order removed from optimization due to unmatched conditions\";\n})(UnassignedJobReason || (exports.UnassignedJobReason = UnassignedJobReason = {}));\nexports.UnassignedJobReasonForServer = {\n 'reason not found': 'reason_not_found',\n 'cannot be assigned due to max distance constraint of vehicle': 'OUT_OF_MAX_DISTANCE',\n 'no driver in appropriate time window': 'NO_DRIVER_IN_TASKS_TIME_WINDOW',\n 'Exceed all drivers maximal load': 'EXCEED_ALL_DRIVERS_ALLOWED_MAXIMAL_LOAD',\n 'Exceed all drivers containers': 'EXCEED_ALL_DRIVERS_CONTAINERS',\n no_driver_with_required_skills: 'NO_DRIVER_WITH_REQUIRED_SKILLS',\n 'no driver that can serve the job': 'EXCLUDED_FROM_ALL_DRIVERS',\n 'driver that task assigned to not found in optimization': 'DRIVER_THAT_TASK_ASSIGN_TO_NOT_FOUND_IN_OPTIMIZATION',\n 'forced driver not in optimization': 'FORCED_DRIVER_NOT_IN_OPTIMIZATION',\n 'active task not assigned to driver': 'ACTIVE_TASK_NOT_ASSIGNED_TO_DRIVER',\n 'illegal coordinate': 'ILLEGAL_COORDINATE',\n 'task assigned to driver that rejected the task': 'TASK_ASSIGNED_TO_DRIVER_THAT_REJECTED_THE_TASK',\n 'invalid capacity dimensions for task': 'INVALID_CAPACITY_DIMENSIONS_FOR_TASK',\n 'The capacity value must not be negative.': 'NEGATIVE_CAPACITY_REQUIREMENTS',\n 'The maximum time in vehicle must be positive.': 'NEGATIVE_MAX_TIME_IN_VEHICLE',\n 'The service time of must be positive': 'NEGATIVE_SERVICE_TIME',\n 'The loading time of must be positive': 'NEGATIVE_LOADING_TIME',\n 'The maximum time in vehicle is not yet supported for Pickups and Services.': 'MAX_TIME_IN_VEHICLE_NOT_SUPPORTED_FOR_JOB_TYPE',\n 'The priority value is not valid. Only 1 (very high) to 10 (very low) are allowed.': 'INVALID_PRIORITY',\n 'does not fit into any vehicle due to capacity': 'LOAD_CONSTRAINS',\n 'cannot be visited within time window': 'TIME_CONSTRAINTS',\n 'Order cannot be fulfilled at this time due to time window or your availability limitations': 'TIME_OR_CUSTOMER_AVAILABILITY_CONSTRAINTS',\n 'cannot serve required skill': 'SKILLS_CONSTRAINT',\n 'cannot be assigned due to max time on vehicle constraint of vehicle': 'MAX_TIME_IN_VEHICLE_CONSTRAINT',\n 'failed to pack': 'FAILED_TO_PACK',\n 'failed due to route constraint': 'ROUTE_CONSTRAINT',\n 'failed due driving time limitations': 'DRIVING_TIMES_LIMITATIONS',\n 'failed to find driver for cluster': 'FAILED_TO_FIND_DRIVER_FOR_CLUSTER',\n 'failed due to routing area': 'FAILED_TO_INSERT_DUE_TO_ROUTING_AREA'\n};\nexports.UnassignedBeforeOptimization = [\n UnassignedJobReason.out_of_max_distance,\n UnassignedJobReason.no_driver_in_tasks_time_window,\n UnassignedJobReason.no_driver_with_required_skills,\n UnassignedJobReason.exceed_all_drivers_allowed_maximal_load,\n UnassignedJobReason.exceed_all_drivers_containers,\n UnassignedJobReason.excluded_from_all_drivers,\n UnassignedJobReason.driver_that_task_assign_to_not_found_in_optimization,\n UnassignedJobReason.active_task_not_assigned_to_driver,\n UnassignedJobReason.illegal_coordinate,\n UnassignedJobReason.task_assigned_to_driver_that_rejected_the_task,\n UnassignedJobReason.invalid_capacity_dimensions_for_task,\n UnassignedJobReason.negative_capacity_requirements,\n UnassignedJobReason.negative_max_time_in_vehicle,\n UnassignedJobReason.negative_service_time,\n UnassignedJobReason.negative_loading_time,\n UnassignedJobReason.max_time_in_vehicle_not_supported_for_job_type,\n UnassignedJobReason.invalid_priority,\n UnassignedJobReason.tasks_unmatched_conditions\n];\nexports.UnassignedAfterOptimization = [\n UnassignedJobReason.load_constrains,\n UnassignedJobReason.time_constraints,\n UnassignedJobReason.time_or_customer_availability_constraints,\n UnassignedJobReason.skills_constraint,\n UnassignedJobReason.failed_to_find_driver_for_cluster,\n UnassignedJobReason.failed_to_pack,\n UnassignedJobReason.route_constraint,\n UnassignedJobReason.max_time_in_vehicle_constraint,\n UnassignedJobReason.driving_times_limitations\n];\nvar OptimizationSolver;\n(function (OptimizationSolver) {\n OptimizationSolver[\"G2S\"] = \"g2s\";\n OptimizationSolver[\"Vroom\"] = \"vroom\";\n OptimizationSolver[\"Jsprit\"] = \"jsprit\";\n OptimizationSolver[\"GoogleCloudFleetRouting\"] = \"google_cfr\";\n})(OptimizationSolver || (exports.OptimizationSolver = OptimizationSolver = {}));\nvar DMEngine;\n(function (DMEngine) {\n DMEngine[\"OSRM\"] = \"osrm\";\n DMEngine[\"GRAPHHOPPER\"] = \"graphhopper\";\n DMEngine[\"NEXTBILLION\"] = \"nextbillion\";\n DMEngine[\"HERE\"] = \"here\";\n DMEngine[\"VALHALLA\"] = \"valhalla\";\n DMEngine[\"ORS\"] = \"ors\";\n DMEngine[\"UNKNOWN\"] = \"unknown\";\n})(DMEngine || (exports.DMEngine = DMEngine = {}));\nvar FleetSize;\n(function (FleetSize) {\n FleetSize[\"Finite\"] = \"FINITE\";\n FleetSize[\"Infinite\"] = \"INFINITE_WITH_BREAKS\";\n})(FleetSize || (exports.FleetSize = FleetSize = {}));\nvar SquashType;\n(function (SquashType) {\n SquashType[\"Pickup\"] = \"pu\";\n SquashType[\"Dropoff\"] = \"do\";\n})(SquashType || (exports.SquashType = SquashType = {}));\nvar ActivityType;\n(function (ActivityType) {\n ActivityType[\"foot\"] = \"foot\";\n ActivityType[\"vehicle\"] = \"vehicle\";\n})(ActivityType || (exports.ActivityType = ActivityType = {}));\nvar WayPointType;\n(function (WayPointType) {\n WayPointType[WayPointType[\"pickup\"] = 0] = \"pickup\";\n WayPointType[WayPointType[\"delivery\"] = 1] = \"delivery\";\n})(WayPointType || (exports.WayPointType = WayPointType = {}));\nexports.ValidLimitations = ['mustBeOnTop', 'mustBeOnBottom', 'disable2DRotation'];\nvar TASK_FIFO;\n(function (TASK_FIFO) {\n TASK_FIFO[TASK_FIFO[\"none\"] = 0] = \"none\";\n TASK_FIFO[TASK_FIFO[\"by_pickup\"] = 1] = \"by_pickup\";\n TASK_FIFO[TASK_FIFO[\"by_dropoff\"] = 2] = \"by_dropoff\";\n})(TASK_FIFO || (exports.TASK_FIFO = TASK_FIFO = {}));\nvar ERROR_CODE;\n(function (ERROR_CODE) {\n ERROR_CODE[ERROR_CODE[\"NO_DRIVER_TYPE_PASSED\"] = 1] = \"NO_DRIVER_TYPE_PASSED\";\n ERROR_CODE[ERROR_CODE[\"NO_ROUTE_START_IN_DRIVER_SHIFT\"] = 2] = \"NO_ROUTE_START_IN_DRIVER_SHIFT\";\n ERROR_CODE[ERROR_CODE[\"NO_DRIVER_PASSED\"] = 3] = \"NO_DRIVER_PASSED\";\n ERROR_CODE[ERROR_CODE[\"NO_DRIVER_TYPES_PASSED\"] = 4] = \"NO_DRIVER_TYPES_PASSED\";\n ERROR_CODE[ERROR_CODE[\"NO_TASKS_PASSED\"] = 5] = \"NO_TASKS_PASSED\";\n ERROR_CODE[ERROR_CODE[\"NO_ROUTES_FOR_CALCULATE_ETA\"] = 6] = \"NO_ROUTES_FOR_CALCULATE_ETA\";\n ERROR_CODE[ERROR_CODE[\"NO_DROP_OFF_FOR_PICK_UP_TASK\"] = 7] = \"NO_DROP_OFF_FOR_PICK_UP_TASK\";\n ERROR_CODE[ERROR_CODE[\"NO_PICK_UP_AND_DROP_OFF_FOR_TASK\"] = 8] = \"NO_PICK_UP_AND_DROP_OFF_FOR_TASK\";\n ERROR_CODE[ERROR_CODE[\"INVALID_ROUTE_START_LOCATION\"] = 9] = \"INVALID_ROUTE_START_LOCATION\";\n ERROR_CODE[ERROR_CODE[\"INVALID_TIME_WINDOW_ON_BREAK\"] = 10] = \"INVALID_TIME_WINDOW_ON_BREAK\";\n ERROR_CODE[ERROR_CODE[\"INVALID_BREAK_DURATION_LESS_THEN_ZERO\"] = 11] = \"INVALID_BREAK_DURATION_LESS_THEN_ZERO\";\n ERROR_CODE[ERROR_CODE[\"INVALID_DRIVERS_LOCATION\"] = 12] = \"INVALID_DRIVERS_LOCATION\";\n ERROR_CODE[ERROR_CODE[\"INVALID_TASK_PRIORITY\"] = 13] = \"INVALID_TASK_PRIORITY\";\n ERROR_CODE[ERROR_CODE[\"INVALID_TIME_WINDOW_ON_WAY_POINT\"] = 14] = \"INVALID_TIME_WINDOW_ON_WAY_POINT\";\n ERROR_CODE[ERROR_CODE[\"INVALID_COORDINATE\"] = 15] = \"INVALID_COORDINATE\";\n ERROR_CODE[ERROR_CODE[\"INVALID_RUN_ID\"] = 16] = \"INVALID_RUN_ID\";\n ERROR_CODE[ERROR_CODE[\"ABNORMAL_REQUEST\"] = 17] = \"ABNORMAL_REQUEST\";\n ERROR_CODE[ERROR_CODE[\"INVALID_VEHICLE_DIMENSIONS\"] = 18] = \"INVALID_VEHICLE_DIMENSIONS\";\n ERROR_CODE[ERROR_CODE[\"INVALID_TASK_DIMENSIONS\"] = 19] = \"INVALID_TASK_DIMENSIONS\";\n ERROR_CODE[ERROR_CODE[\"INVALID_DRIVER_TIME_WINDOW\"] = 20] = \"INVALID_DRIVER_TIME_WINDOW\";\n ERROR_CODE[ERROR_CODE[\"INVALID_DRIVERS_QUANTITY\"] = 21] = \"INVALID_DRIVERS_QUANTITY\";\n ERROR_CODE[ERROR_CODE[\"INVALID_ETOS\"] = 22] = \"INVALID_ETOS\";\n ERROR_CODE[ERROR_CODE[\"TIMEOUT\"] = 23] = \"TIMEOUT\";\n ERROR_CODE[ERROR_CODE[\"NOT_ENOUGH_TIME_TO_RUN_OPTIMIZATION\"] = 24] = \"NOT_ENOUGH_TIME_TO_RUN_OPTIMIZATION\";\n ERROR_CODE[ERROR_CODE[\"OPTIMIZATION_SOLVER_INTERNAL_ERROR\"] = 25] = \"OPTIMIZATION_SOLVER_INTERNAL_ERROR\";\n ERROR_CODE[ERROR_CODE[\"REQUEST_EXCEED_QUOTA\"] = 26] = \"REQUEST_EXCEED_QUOTA\";\n ERROR_CODE[ERROR_CODE[\"TOO_MANY_FAILED_OPTIMIZATIONS_FOR_TIME_WINDOW\"] = 27] = \"TOO_MANY_FAILED_OPTIMIZATIONS_FOR_TIME_WINDOW\";\n})(ERROR_CODE || (exports.ERROR_CODE = ERROR_CODE = {}));\nvar OptimizationPriorities;\n(function (OptimizationPriorities) {\n OptimizationPriorities[\"CLUSTERED\"] = \"CLUSTERED\";\n OptimizationPriorities[\"MIN_DRIVERS\"] = \"MIN_DRIVERS\";\n OptimizationPriorities[\"MIN_UNASSIGNED\"] = \"MIN_UNASSIGNED\";\n OptimizationPriorities[\"FAIRNESS\"] = \"FAIRNESS\";\n OptimizationPriorities[\"MIN_TIME\"] = \"MIN_TIME\";\n})(OptimizationPriorities || (exports.OptimizationPriorities = OptimizationPriorities = {}));\n//# sourceMappingURL=route_optimizer_types.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/route_optimizer_types.js?");
|
|
6434
6434
|
|
|
6435
6435
|
/***/ }),
|
|
6436
6436
|
|