@bringg/dashboard-sdk 9.6.0-pre → 9.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1546,7 +1546,7 @@ eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _argument
1546
1546
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1547
1547
 
1548
1548
  "use strict";
1549
- eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar optimization_result_service_1 = __importDefault(__webpack_require__(/*! ./optimization-result-service */ \"./dist/OptimizationResult/optimization-result-service.js\"));\nvar OptimizationResultApi = /** @class */ (function () {\n function OptimizationResultApi(session) {\n this.optimizationResultService = new optimization_result_service_1.default(session);\n }\n OptimizationResultApi.prototype.load = function (teamId, requestUuid) {\n return this.optimizationResultService.load(teamId, requestUuid);\n };\n OptimizationResultApi.prototype.loadAll = function (request) {\n return this.optimizationResultService.loadAll(request);\n };\n return OptimizationResultApi;\n}());\nexports[\"default\"] = OptimizationResultApi;\n//# sourceMappingURL=optimization-result-api.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/OptimizationResult/optimization-result-api.js?");
1549
+ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar optimization_result_service_1 = __importDefault(__webpack_require__(/*! ./optimization-result-service */ \"./dist/OptimizationResult/optimization-result-service.js\"));\nvar OptimizationResultApi = /** @class */ (function () {\n function OptimizationResultApi(session) {\n this.optimizationResultService = new optimization_result_service_1.default(session);\n }\n OptimizationResultApi.prototype.load = function (teamId, requestUuid) {\n return this.optimizationResultService.load(teamId, requestUuid);\n };\n OptimizationResultApi.prototype.loadAll = function (request) {\n return this.optimizationResultService.loadAll(request);\n };\n OptimizationResultApi.prototype.rerun = function (request) {\n return this.optimizationResultService.rerun(request);\n };\n return OptimizationResultApi;\n}());\nexports[\"default\"] = OptimizationResultApi;\n//# sourceMappingURL=optimization-result-api.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/OptimizationResult/optimization-result-api.js?");
1550
1550
 
1551
1551
  /***/ }),
1552
1552
 
@@ -1557,7 +1557,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
1557
1557
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1558
1558
 
1559
1559
  "use strict";
1560
- eval("\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.Routes = void 0;\nvar CrudService_1 = __importDefault(__webpack_require__(/*! ../Core/CrudService */ \"./dist/Core/CrudService.js\"));\nvar entityName = 'optimization_result';\nvar prefix = 'own-fleet-optimization-service';\nexports.Routes = {\n GET: \"/\".concat(prefix, \"/optimization_result\"),\n GET_ALL: \"/\".concat(prefix, \"/optimization_results\")\n};\nvar OptimizationResultService = /** @class */ (function () {\n function OptimizationResultService(session) {\n this.service = new CrudService_1.default(session, entityName, prefix);\n }\n OptimizationResultService.prototype.load = function (teamId, requestUuid) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .get(exports.Routes.GET)\n .setException('failed to load optimization result')\n .withQueryString({ team_id: teamId, request_uuid: requestUuid })\n .invoke()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n OptimizationResultService.prototype.loadAll = function (request) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .get(exports.Routes.GET_ALL)\n .setException('failed to load optimization results')\n .withQueryString({\n team_id: request.team_id,\n start_time: request.start_time,\n end_time: request.end_time,\n page_size: request.page_size,\n page_number: request.page_number,\n origin: request.origin,\n user_ids: request.user_ids,\n sort_column: request.sort_column,\n sort_direction: request.sort_direction\n })\n .invoke()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n return OptimizationResultService;\n}());\nexports[\"default\"] = OptimizationResultService;\n//# sourceMappingURL=optimization-result-service.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/OptimizationResult/optimization-result-service.js?");
1560
+ eval("\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.Routes = void 0;\nvar CrudService_1 = __importDefault(__webpack_require__(/*! ../Core/CrudService */ \"./dist/Core/CrudService.js\"));\nvar entityName = 'optimization_result';\nvar prefix = 'own-fleet-optimization-service';\nexports.Routes = {\n GET: \"/\".concat(prefix, \"/optimization_result\"),\n GET_ALL: \"/\".concat(prefix, \"/optimization_results\"),\n RERUN: \"/\".concat(prefix, \"/route_optimization/rerun_optimization\")\n};\nvar OptimizationResultService = /** @class */ (function () {\n function OptimizationResultService(session) {\n this.service = new CrudService_1.default(session, entityName, prefix);\n }\n OptimizationResultService.prototype.load = function (teamId, requestUuid) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .get(exports.Routes.GET)\n .setException('failed to load optimization result')\n .withQueryString({ team_id: teamId, request_uuid: requestUuid })\n .invoke()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n OptimizationResultService.prototype.loadAll = function (request) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .get(exports.Routes.GET_ALL)\n .setException('failed to load optimization results')\n .withQueryString({\n team_id: request.team_id,\n start_time: request.start_time,\n end_time: request.end_time,\n page_size: request.page_size,\n page_number: request.page_number,\n origin: request.origin,\n user_ids: request.user_ids,\n sort_column: request.sort_column,\n sort_direction: request.sort_direction,\n request_uuids: request.request_uuids,\n parent_request_uuids: request.parent_request_uuids\n })\n .invoke()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n OptimizationResultService.prototype.rerun = function (request) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .post(exports.Routes.RERUN)\n .setException(\"failed to rerun optimization, request_uuid:\".concat(request.request_uuid))\n .withPayload({\n parent_request_uuid: request.parent_request_uuid,\n request_uuid: request.request_uuid,\n configuration: request.configuration\n })\n .invoke()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n return OptimizationResultService;\n}());\nexports[\"default\"] = OptimizationResultService;\n//# sourceMappingURL=optimization-result-service.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/OptimizationResult/optimization-result-service.js?");
1561
1561
 
1562
1562
  /***/ }),
1563
1563
 
@@ -1975,7 +1975,7 @@ eval("\nvar __extends = (this && this.__extends) || (function () {\n var exte
1975
1975
  /***/ ((__unused_webpack_module, exports) => {
1976
1976
 
1977
1977
  "use strict";
1978
- eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar ResourceUploadType;\n(function (ResourceUploadType) {\n ResourceUploadType[\"ZipCodes\"] = \"zip_codes\";\n ResourceUploadType[\"ServiceAreas\"] = \"service_areas\";\n})(ResourceUploadType || (ResourceUploadType = {}));\nexports[\"default\"] = ResourceUploadType;\n//# sourceMappingURL=ResourceUploadType.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/ResourceUpload/ResourceUploadType.js?");
1978
+ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar ResourceUploadType;\n(function (ResourceUploadType) {\n ResourceUploadType[\"ZipCodes\"] = \"zip_codes\";\n ResourceUploadType[\"ServiceAreas\"] = \"service_areas\";\n ResourceUploadType[\"Tasks\"] = \"task_create\";\n})(ResourceUploadType || (ResourceUploadType = {}));\nexports[\"default\"] = ResourceUploadType;\n//# sourceMappingURL=ResourceUploadType.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/ResourceUpload/ResourceUploadType.js?");
1979
1979
 
1980
1980
  /***/ }),
1981
1981
 
@@ -2371,7 +2371,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
2371
2371
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2372
2372
 
2373
2373
  "use strict";
2374
- 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 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.6.0-pre';\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, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, authenticationToken, \n // eslint-disable-next-line @typescript-eslint/ban-types\n 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 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, \n// eslint-disable-next-line @typescript-eslint/ban-types\nrouteParams, 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, \n// eslint-disable-next-line @typescript-eslint/ban-types\nheaders, 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}\n// eslint-disable-next-line @typescript-eslint/ban-types\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, \n // eslint-disable-next-line @typescript-eslint/ban-types\n routeParams, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, payload, \n // eslint-disable-next-line @typescript-eslint/ban-types\n 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, \n // eslint-disable-next-line @typescript-eslint/ban-types\n routeParams, \n // eslint-disable-next-line @typescript-eslint/ban-types\n 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?");
2374
+ 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 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.6.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, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, authenticationToken, \n // eslint-disable-next-line @typescript-eslint/ban-types\n 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 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, \n// eslint-disable-next-line @typescript-eslint/ban-types\nrouteParams, 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, \n// eslint-disable-next-line @typescript-eslint/ban-types\nheaders, 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}\n// eslint-disable-next-line @typescript-eslint/ban-types\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, \n // eslint-disable-next-line @typescript-eslint/ban-types\n routeParams, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, payload, \n // eslint-disable-next-line @typescript-eslint/ban-types\n 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, \n // eslint-disable-next-line @typescript-eslint/ban-types\n routeParams, \n // eslint-disable-next-line @typescript-eslint/ban-types\n 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?");
2375
2375
 
2376
2376
  /***/ }),
2377
2377
 
@@ -2657,7 +2657,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
2657
2657
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2658
2658
 
2659
2659
  "use strict";
2660
- 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 __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar types_1 = __webpack_require__(/*! @bringg/types */ \"./node_modules/@bringg/types/index.js\");\nvar light_data_store_1 = __importDefault(__webpack_require__(/*! ../../Data/light-data-store */ \"./dist/Data/light-data-store.js\"));\nvar merge_mapper_1 = __webpack_require__(/*! ../../Data/merge-mapper */ \"./dist/Data/merge-mapper.js\");\nvar data_entity_1 = __webpack_require__(/*! ../../data-entity */ \"./dist/data-entity.js\");\nvar data_store_1 = __importDefault(__webpack_require__(/*! ../../data-store */ \"./dist/data-store.js\"));\nvar storable_data_service_1 = __importDefault(__webpack_require__(/*! ../../storable-data-service */ \"./dist/storable-data-service.js\"));\nvar keyset_pagination_consts_1 = __webpack_require__(/*! ../../utils/consts/keyset-pagination.consts */ \"./dist/utils/consts/keyset-pagination.consts.js\");\nvar Tasks_consts_1 = __webpack_require__(/*! ../Tasks.consts */ \"./dist/Task/Tasks.consts.js\");\nvar task_realtime_subscriptions_1 = __importDefault(__webpack_require__(/*! ./task-realtime-subscriptions */ \"./dist/Task/v2/task-realtime-subscriptions.js\"));\nvar tasks_service_1 = __importDefault(__webpack_require__(/*! ./tasks-service */ \"./dist/Task/v2/tasks-service.js\"));\n// hard coded fields to take advantage of the light data store cache\nvar READY_TO_EXECUTE_FIELDS = ['ready_to_execute'];\nvar TasksApi = /** @class */ (function () {\n function TasksApi(session) {\n var _this = this;\n var groupFilters = [\n {\n groupType: Tasks_consts_1.TaskGroupTypes.Main,\n keyFunc: function (task) {\n if (task.invalidated) {\n return Tasks_consts_1.GROUP_VALUES.Invalid;\n }\n else if (task.group_leader_id) {\n return Tasks_consts_1.GROUP_VALUES.Followers;\n }\n else if ([types_1.TaskStatus.Done, types_1.TaskStatus.Cancelled].indexOf(task.status) !== -1) {\n return Tasks_consts_1.GROUP_VALUES.Closed;\n }\n else if (task.status === types_1.TaskStatus.Unacknowledged) {\n return Tasks_consts_1.GROUP_VALUES.Unacknowledged;\n }\n else if (task.ready_to_execute) {\n return Tasks_consts_1.GROUP_VALUES.Open;\n }\n else {\n return Tasks_consts_1.GROUP_VALUES.Planning;\n }\n }\n },\n {\n groupType: Tasks_consts_1.TaskGroupTypes.Followers,\n keyFunc: function (task) { return task.group_leader_id; }\n }\n ];\n this.tasksStore = new data_store_1.default(groupFilters, { shallow: true });\n this.tasksService = new tasks_service_1.default(session);\n var lightDataStore = new light_data_store_1.default();\n this.storableDataService = new storable_data_service_1.default(this.tasksStore, function (task) { return merge_mapper_1.mergeMapper.mergeIntoExisting(_this.tasksStore, task); }, [lightDataStore]);\n this.taskRealtimeSubscriptions = new task_realtime_subscriptions_1.default(session, this.tasksStore, this.storableDataService);\n }\n TasksApi.prototype.updateStoreOnEvents = function () {\n this.taskRealtimeSubscriptions.updateStoreOnEvents();\n };\n TasksApi.prototype.onUpdate = function (callback) {\n return this.taskRealtimeSubscriptions.onUpdate(callback);\n };\n TasksApi.prototype.onCreate = function (callback) {\n return this.taskRealtimeSubscriptions.onCreate(callback);\n };\n TasksApi.prototype.onDelete = function (callback) {\n return this.taskRealtimeSubscriptions.onDelete(callback);\n };\n TasksApi.prototype.onWayPointUpdate = function (callback) {\n return this.taskRealtimeSubscriptions.onWayPointUpdate(callback);\n };\n TasksApi.prototype.onWayPointDelete = function (callback) {\n return this.taskRealtimeSubscriptions.onWayPointDelete(callback);\n };\n TasksApi.prototype.get = function (id, fields) {\n return this.getMany([id], this.getFieldsToLoad(fields))[0];\n };\n TasksApi.prototype.getMany = function (ids, fields) {\n return this.storableDataService.getFromStores(ids, this.getFieldsToLoad(fields));\n };\n TasksApi.prototype.getGroup = function (groupType, groupValue) {\n return this.tasksStore.getGroup(groupType, groupValue);\n };\n TasksApi.prototype.getAllById = function () {\n return this.tasksStore.getAllById();\n };\n TasksApi.prototype.load = function (id, options) {\n var _this = this;\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return this.storableDataService.load('load', function () { return _this.tasksService.load(id); }, id, options);\n };\n TasksApi.prototype.loadMany = function (ids, fields, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n var allFields;\n var _this = this;\n return __generator(this, function (_a) {\n allFields = this.getFieldsToLoad(fields);\n return [2 /*return*/, this.storableDataService.loadMany('batchLoad', function (idsToLoad) { return _this.tasksService.batchLoad(idsToLoad, allFields); }, ids, __assign(__assign({}, options), { fields: allFields }))];\n });\n });\n };\n TasksApi.prototype.loadPlanning = function (columns, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.loadKeySet('loadPlanningTasks', columns, __assign(__assign({}, options), { groupType: Tasks_consts_1.TaskGroupTypes.Main, groupValue: Tasks_consts_1.GROUP_VALUES.Planning }))];\n });\n });\n };\n TasksApi.prototype.loadOpen = function (columns, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.loadKeySet('loadOpenTasks', columns, __assign(__assign({}, options), { groupType: Tasks_consts_1.TaskGroupTypes.Main, groupValue: Tasks_consts_1.GROUP_VALUES.Open }))];\n });\n });\n };\n TasksApi.prototype.loadKeySet = function (action, columns, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n var loadResult, request;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n request = {\n limit: options.chunkSize,\n page_action: keyset_pagination_consts_1.KeysetPaginationPageAction.NEXT_ONLY,\n pgver: keyset_pagination_consts_1.KEYSET_PAGINATION_VER,\n columns: columns,\n cursor: options.cursor\n };\n return [4 /*yield*/, this.storableDataService.loadMany(action, function () { return __awaiter(_this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.tasksService[action](request)];\n case 1:\n result = _a.sent();\n loadResult = result;\n return [2 /*return*/, result.items];\n }\n });\n }); }, [], __assign(__assign({}, options), { fields: this.getFieldsToLoad(columns) }))];\n case 1:\n _a.sent();\n if (!loadResult.next_page_cursor) {\n this.tasksStore.setGroupInitialized(options.groupType, options.groupValue);\n }\n return [2 /*return*/, __assign(__assign({}, loadResult), { items: loadResult.items.map(function (item) { return _this.tasksStore.get(item.id); }) })];\n }\n });\n });\n };\n TasksApi.prototype.massAssign = function (userId, taskIds, \n // eslint-disable-next-line @typescript-eslint/ban-types\n options, targetRun) {\n return this.tasksService.massAssign(userId, taskIds, options, targetRun);\n };\n // eslint-disable-next-line @typescript-eslint/ban-types\n TasksApi.prototype.massUnassign = function (taskIds, options) {\n return this.tasksService.massUnassign(taskIds, options);\n };\n TasksApi.prototype.massCancel = function (taskIds, reasonId, text, automaticallyCancelled) {\n return this.tasksService.massCancel(taskIds, reasonId, text, automaticallyCancelled);\n };\n TasksApi.prototype.loadInvalid = function (options) {\n var _this = this;\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return this.storableDataService.loadAll('loadInvalid', function () { return _this.tasksService.loadInvalid(); }, __assign(__assign({}, options), { groupType: Tasks_consts_1.TaskGroupTypes.Main, groupValue: Tasks_consts_1.GROUP_VALUES.Invalid }));\n };\n TasksApi.prototype.loadClosed = function (options) {\n var _this = this;\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return this.storableDataService.loadAll('loadClosed', function () { return _this.tasksService.loadClosed(); }, __assign(__assign({}, options), { groupType: Tasks_consts_1.TaskGroupTypes.Main, groupValue: Tasks_consts_1.GROUP_VALUES.Closed }));\n };\n TasksApi.prototype.broadcastToDrivers = function (id, userIds, message) {\n return this.tasksService.broadcastToDrivers(id, userIds, message);\n };\n TasksApi.prototype.acknowledgeTask = function (id) {\n var _this = this;\n return this.storableDataService.modify('acknowledgeTask', function () { return _this.tasksService.acknowledgeTask(id); });\n };\n TasksApi.prototype.releaseToDrivers = function (ids) {\n return __awaiter(this, void 0, void 0, function () {\n var result;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.storableDataService.modifyMany('releaseToDrivers', function () { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.tasksService.releaseToDrivers(ids)];\n case 1:\n result = _a.sent();\n return [2 /*return*/, ids.map(function (id) { return ({ id: id, ready_to_execute: true }); })];\n }\n });\n }); }, READY_TO_EXECUTE_FIELDS)];\n case 1:\n _a.sent();\n return [2 /*return*/, result];\n }\n });\n });\n };\n TasksApi.prototype.moveToPlanning = function (ids) {\n return __awaiter(this, void 0, void 0, function () {\n var result;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.storableDataService.modifyMany('moveToPlanning', function () { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.tasksService.moveToPlanning(ids)];\n case 1:\n result = _a.sent();\n return [2 /*return*/, ids.map(function (id) { return ({ id: id, ready_to_execute: false }); })];\n }\n });\n }); }, READY_TO_EXECUTE_FIELDS)];\n case 1:\n _a.sent();\n return [2 /*return*/, result];\n }\n });\n });\n };\n TasksApi.prototype.update = function (task) {\n var _this = this;\n return this.storableDataService.modify('update', function () { return _this.tasksService.update(task); });\n };\n TasksApi.prototype.updatePreparationStatus = function (taskId, preparationStatus) {\n var _this = this;\n return this.storableDataService.modify('updatePreparationStatus', function () {\n return _this.tasksService.updatePreparationStatus(taskId, preparationStatus);\n });\n };\n TasksApi.prototype.rescheduleVirtualTasks = function (taskIds, noLaterThan, noEarlierThan) {\n return this.tasksService.rescheduleVirtualTasks(taskIds, noLaterThan, noEarlierThan);\n };\n TasksApi.prototype.duplicate = function (taskId) {\n var _this = this;\n return this.storableDataService.modify('duplicate', function () { return _this.tasksService.duplicate(taskId); });\n };\n TasksApi.prototype.cancel = function (id) {\n var _this = this;\n return this.storableDataService.modify('cancel', function () {\n return _this.tasksService.cancel(id);\n });\n };\n TasksApi.prototype.getChildTasks = function (taskId) {\n return this.tasksService.getChildTasks(taskId);\n };\n TasksApi.prototype.lock = function (taskIds) {\n return this.tasksService.lock(taskIds);\n };\n TasksApi.prototype.unlock = function (taskIds) {\n return this.tasksService.unlock(taskIds);\n };\n TasksApi.prototype.finish = function (id) {\n var _this = this;\n return this.storableDataService.modify('finish', function () { return _this.tasksService.finish(id); });\n };\n TasksApi.prototype.rescheduleCancelled = function (taskId) {\n return this.tasksService.rescheduleCancelled(taskId);\n };\n TasksApi.prototype.getRescheduleQuote = function (taskId) {\n return this.tasksService.getRescheduleQuote(taskId);\n };\n TasksApi.prototype.addTaskNote = function (taskId, wayPointId, note, type, image, hiddenFromDrivers) {\n return this.tasksService.addTaskNote(taskId, wayPointId, note, type, image, hiddenFromDrivers);\n };\n TasksApi.prototype.getLocations = function (taskId) {\n return this.tasksService.getLocations(taskId);\n };\n TasksApi.prototype.deleteWayPoint = function (taskId, wayPointId) {\n return this.tasksService.deleteWayPoint(taskId, wayPointId);\n };\n TasksApi.prototype.importTasksCsv = function (file) {\n return this.tasksService.importTasksCsv(file);\n };\n TasksApi.prototype.activityLog = function (taskId) {\n return this.tasksService.activityLog(taskId);\n };\n TasksApi.prototype.massDeleteGroups = function (groupLeaderTaskIds) {\n return this.tasksService.massDeleteGroups(groupLeaderTaskIds);\n };\n TasksApi.prototype.getFieldsToLoad = function (fields) {\n if (!fields) {\n return fields;\n }\n if (typeof fields === 'string') {\n fields = fields.split(',');\n }\n var allFields = __spreadArray([], __read(fields), false);\n ['status', 'invalidated', 'group_leader_id', 'id', 'ready_to_execute'].forEach(function (field) {\n if (!fields.includes(field)) {\n allFields.push(field);\n }\n });\n // To take advantage of the LightData store cache\n if (allFields.length === fields.length) {\n return fields;\n }\n return allFields;\n };\n return TasksApi;\n}());\nexports[\"default\"] = TasksApi;\n//# sourceMappingURL=tasks-api.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Task/v2/tasks-api.js?");
2660
+ 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 __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar types_1 = __webpack_require__(/*! @bringg/types */ \"./node_modules/@bringg/types/index.js\");\nvar light_data_store_1 = __importDefault(__webpack_require__(/*! ../../Data/light-data-store */ \"./dist/Data/light-data-store.js\"));\nvar merge_mapper_1 = __webpack_require__(/*! ../../Data/merge-mapper */ \"./dist/Data/merge-mapper.js\");\nvar data_entity_1 = __webpack_require__(/*! ../../data-entity */ \"./dist/data-entity.js\");\nvar data_store_1 = __importDefault(__webpack_require__(/*! ../../data-store */ \"./dist/data-store.js\"));\nvar storable_data_service_1 = __importDefault(__webpack_require__(/*! ../../storable-data-service */ \"./dist/storable-data-service.js\"));\nvar keyset_pagination_consts_1 = __webpack_require__(/*! ../../utils/consts/keyset-pagination.consts */ \"./dist/utils/consts/keyset-pagination.consts.js\");\nvar Tasks_consts_1 = __webpack_require__(/*! ../Tasks.consts */ \"./dist/Task/Tasks.consts.js\");\nvar task_realtime_subscriptions_1 = __importDefault(__webpack_require__(/*! ./task-realtime-subscriptions */ \"./dist/Task/v2/task-realtime-subscriptions.js\"));\nvar tasks_service_1 = __importDefault(__webpack_require__(/*! ./tasks-service */ \"./dist/Task/v2/tasks-service.js\"));\n// hard coded fields to take advantage of the light data store cache\nvar READY_TO_EXECUTE_FIELDS = ['ready_to_execute'];\nvar TasksApi = /** @class */ (function () {\n function TasksApi(session) {\n var _this = this;\n var groupFilters = [\n {\n groupType: Tasks_consts_1.TaskGroupTypes.Main,\n keyFunc: function (task) {\n if (task.invalidated) {\n return Tasks_consts_1.GROUP_VALUES.Invalid;\n }\n else if (task.group_leader_id) {\n return Tasks_consts_1.GROUP_VALUES.Followers;\n }\n else if ([types_1.TaskStatus.Done, types_1.TaskStatus.Cancelled].indexOf(task.status) !== -1) {\n return Tasks_consts_1.GROUP_VALUES.Closed;\n }\n else if (task.status === types_1.TaskStatus.Unacknowledged) {\n return Tasks_consts_1.GROUP_VALUES.Unacknowledged;\n }\n else if (task.ready_to_execute) {\n return Tasks_consts_1.GROUP_VALUES.Open;\n }\n else {\n return Tasks_consts_1.GROUP_VALUES.Planning;\n }\n }\n },\n {\n groupType: Tasks_consts_1.TaskGroupTypes.Followers,\n keyFunc: function (task) { return task.group_leader_id; }\n }\n ];\n this.tasksStore = new data_store_1.default(groupFilters, { shallow: true });\n this.tasksService = new tasks_service_1.default(session);\n var lightDataStore = new light_data_store_1.default();\n this.storableDataService = new storable_data_service_1.default(this.tasksStore, function (task) { return merge_mapper_1.mergeMapper.mergeIntoExisting(_this.tasksStore, task); }, [lightDataStore]);\n this.taskRealtimeSubscriptions = new task_realtime_subscriptions_1.default(session, this.tasksStore, this.storableDataService);\n }\n TasksApi.prototype.updateStoreOnEvents = function () {\n this.taskRealtimeSubscriptions.updateStoreOnEvents();\n };\n TasksApi.prototype.onUpdate = function (callback) {\n return this.taskRealtimeSubscriptions.onUpdate(callback);\n };\n TasksApi.prototype.onCreate = function (callback) {\n return this.taskRealtimeSubscriptions.onCreate(callback);\n };\n TasksApi.prototype.onDelete = function (callback) {\n return this.taskRealtimeSubscriptions.onDelete(callback);\n };\n TasksApi.prototype.onWayPointUpdate = function (callback) {\n return this.taskRealtimeSubscriptions.onWayPointUpdate(callback);\n };\n TasksApi.prototype.onWayPointDelete = function (callback) {\n return this.taskRealtimeSubscriptions.onWayPointDelete(callback);\n };\n TasksApi.prototype.get = function (id, fields) {\n return this.getMany([id], this.getFieldsToLoad(fields))[0];\n };\n TasksApi.prototype.getMany = function (ids, fields) {\n return this.storableDataService.getFromStores(ids, this.getFieldsToLoad(fields));\n };\n TasksApi.prototype.getGroup = function (groupType, groupValue) {\n return this.tasksStore.getGroup(groupType, groupValue);\n };\n TasksApi.prototype.isInGroup = function (taskId, groupType, groupValue) {\n return this.tasksStore.isInGroup(taskId, groupType, groupValue);\n };\n TasksApi.prototype.getAllById = function () {\n return this.tasksStore.getAllById();\n };\n TasksApi.prototype.load = function (id, options) {\n var _this = this;\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return this.storableDataService.load('load', function () { return _this.tasksService.load(id); }, id, options);\n };\n TasksApi.prototype.loadMany = function (ids, fields, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n var allFields;\n var _this = this;\n return __generator(this, function (_a) {\n allFields = this.getFieldsToLoad(fields);\n return [2 /*return*/, this.storableDataService.loadMany('batchLoad', function (idsToLoad) { return _this.tasksService.batchLoad(idsToLoad, allFields); }, ids, __assign(__assign({}, options), { fields: allFields }))];\n });\n });\n };\n TasksApi.prototype.loadPlanning = function (columns, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.loadKeySet('loadPlanningTasks', columns, __assign(__assign({}, options), { groupType: Tasks_consts_1.TaskGroupTypes.Main, groupValue: Tasks_consts_1.GROUP_VALUES.Planning }))];\n });\n });\n };\n TasksApi.prototype.loadOpen = function (columns, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.loadKeySet('loadOpenTasks', columns, __assign(__assign({}, options), { groupType: Tasks_consts_1.TaskGroupTypes.Main, groupValue: Tasks_consts_1.GROUP_VALUES.Open }))];\n });\n });\n };\n TasksApi.prototype.loadKeySet = function (action, columns, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n var loadResult, request;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n request = {\n limit: options.chunkSize,\n page_action: keyset_pagination_consts_1.KeysetPaginationPageAction.NEXT_ONLY,\n pgver: keyset_pagination_consts_1.KEYSET_PAGINATION_VER,\n columns: columns,\n cursor: options.cursor\n };\n return [4 /*yield*/, this.storableDataService.loadMany(action, function () { return __awaiter(_this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.tasksService[action](request)];\n case 1:\n result = _a.sent();\n loadResult = result;\n return [2 /*return*/, result.items];\n }\n });\n }); }, [], __assign(__assign({}, options), { fields: this.getFieldsToLoad(columns) }))];\n case 1:\n _a.sent();\n if (!loadResult.next_page_cursor) {\n this.tasksStore.setGroupInitialized(options.groupType, options.groupValue);\n }\n return [2 /*return*/, __assign(__assign({}, loadResult), { items: loadResult.items.map(function (item) { return _this.tasksStore.get(item.id); }) })];\n }\n });\n });\n };\n TasksApi.prototype.massAssign = function (userId, taskIds, \n // eslint-disable-next-line @typescript-eslint/ban-types\n options, targetRun) {\n return this.tasksService.massAssign(userId, taskIds, options, targetRun);\n };\n // eslint-disable-next-line @typescript-eslint/ban-types\n TasksApi.prototype.massUnassign = function (taskIds, options) {\n return this.tasksService.massUnassign(taskIds, options);\n };\n TasksApi.prototype.massCancel = function (taskIds, reasonId, text, automaticallyCancelled) {\n return this.tasksService.massCancel(taskIds, reasonId, text, automaticallyCancelled);\n };\n TasksApi.prototype.loadInvalid = function (options) {\n var _this = this;\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return this.storableDataService.loadAll('loadInvalid', function () { return _this.tasksService.loadInvalid(); }, __assign(__assign({}, options), { groupType: Tasks_consts_1.TaskGroupTypes.Main, groupValue: Tasks_consts_1.GROUP_VALUES.Invalid }));\n };\n TasksApi.prototype.loadClosed = function (options) {\n var _this = this;\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return this.storableDataService.loadAll('loadClosed', function () { return _this.tasksService.loadClosed(); }, __assign(__assign({}, options), { groupType: Tasks_consts_1.TaskGroupTypes.Main, groupValue: Tasks_consts_1.GROUP_VALUES.Closed }));\n };\n TasksApi.prototype.broadcastToDrivers = function (id, userIds, message) {\n return this.tasksService.broadcastToDrivers(id, userIds, message);\n };\n TasksApi.prototype.acknowledgeTask = function (id) {\n var _this = this;\n return this.storableDataService.modify('acknowledgeTask', function () { return _this.tasksService.acknowledgeTask(id); });\n };\n TasksApi.prototype.releaseToDrivers = function (ids) {\n return __awaiter(this, void 0, void 0, function () {\n var result;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.storableDataService.modifyMany('releaseToDrivers', function () { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.tasksService.releaseToDrivers(ids)];\n case 1:\n result = _a.sent();\n return [2 /*return*/, ids.map(function (id) { return ({ id: id, ready_to_execute: true }); })];\n }\n });\n }); }, READY_TO_EXECUTE_FIELDS)];\n case 1:\n _a.sent();\n return [2 /*return*/, result];\n }\n });\n });\n };\n TasksApi.prototype.moveToPlanning = function (ids) {\n return __awaiter(this, void 0, void 0, function () {\n var result;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.storableDataService.modifyMany('moveToPlanning', function () { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.tasksService.moveToPlanning(ids)];\n case 1:\n result = _a.sent();\n return [2 /*return*/, ids.map(function (id) { return ({ id: id, ready_to_execute: false }); })];\n }\n });\n }); }, READY_TO_EXECUTE_FIELDS)];\n case 1:\n _a.sent();\n return [2 /*return*/, result];\n }\n });\n });\n };\n TasksApi.prototype.update = function (task) {\n var _this = this;\n return this.storableDataService.modify('update', function () { return _this.tasksService.update(task); });\n };\n TasksApi.prototype.updatePreparationStatus = function (taskId, preparationStatus) {\n var _this = this;\n return this.storableDataService.modify('updatePreparationStatus', function () {\n return _this.tasksService.updatePreparationStatus(taskId, preparationStatus);\n });\n };\n TasksApi.prototype.rescheduleVirtualTasks = function (taskIds, noLaterThan, noEarlierThan) {\n return this.tasksService.rescheduleVirtualTasks(taskIds, noLaterThan, noEarlierThan);\n };\n TasksApi.prototype.duplicate = function (taskId) {\n var _this = this;\n return this.storableDataService.modify('duplicate', function () { return _this.tasksService.duplicate(taskId); });\n };\n TasksApi.prototype.cancel = function (id) {\n var _this = this;\n return this.storableDataService.modify('cancel', function () {\n return _this.tasksService.cancel(id);\n });\n };\n TasksApi.prototype.getChildTasks = function (taskId) {\n return this.tasksService.getChildTasks(taskId);\n };\n TasksApi.prototype.lock = function (taskIds) {\n return this.tasksService.lock(taskIds);\n };\n TasksApi.prototype.unlock = function (taskIds) {\n return this.tasksService.unlock(taskIds);\n };\n TasksApi.prototype.finish = function (id) {\n var _this = this;\n return this.storableDataService.modify('finish', function () { return _this.tasksService.finish(id); });\n };\n TasksApi.prototype.rescheduleCancelled = function (taskId) {\n return this.tasksService.rescheduleCancelled(taskId);\n };\n TasksApi.prototype.getRescheduleQuote = function (taskId) {\n return this.tasksService.getRescheduleQuote(taskId);\n };\n TasksApi.prototype.addTaskNote = function (taskId, wayPointId, note, type, image, hiddenFromDrivers) {\n return this.tasksService.addTaskNote(taskId, wayPointId, note, type, image, hiddenFromDrivers);\n };\n TasksApi.prototype.getLocations = function (taskId) {\n return this.tasksService.getLocations(taskId);\n };\n TasksApi.prototype.deleteWayPoint = function (taskId, wayPointId) {\n return this.tasksService.deleteWayPoint(taskId, wayPointId);\n };\n TasksApi.prototype.importTasksCsv = function (file) {\n return this.tasksService.importTasksCsv(file);\n };\n TasksApi.prototype.activityLog = function (taskId) {\n return this.tasksService.activityLog(taskId);\n };\n TasksApi.prototype.massDeleteGroups = function (groupLeaderTaskIds) {\n return this.tasksService.massDeleteGroups(groupLeaderTaskIds);\n };\n TasksApi.prototype.getFieldsToLoad = function (fields) {\n if (!fields) {\n return fields;\n }\n if (typeof fields === 'string') {\n fields = fields.split(',');\n }\n var allFields = __spreadArray([], __read(fields), false);\n ['status', 'invalidated', 'group_leader_id', 'id', 'ready_to_execute'].forEach(function (field) {\n if (!fields.includes(field)) {\n allFields.push(field);\n }\n });\n // To take advantage of the LightData store cache\n if (allFields.length === fields.length) {\n return fields;\n }\n return allFields;\n };\n return TasksApi;\n}());\nexports[\"default\"] = TasksApi;\n//# sourceMappingURL=tasks-api.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Task/v2/tasks-api.js?");
2661
2661
 
2662
2662
  /***/ }),
2663
2663
 
@@ -3361,7 +3361,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
3361
3361
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3362
3362
 
3363
3363
  "use strict";
3364
- 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 __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar BringgDashboardSDK_1 = __webpack_require__(/*! ./BringgDashboardSDK */ \"./dist/BringgDashboardSDK.js\");\nvar DataStore = /** @class */ (function () {\n function DataStore(groupFilters, options) {\n var e_1, _a;\n if (groupFilters === void 0) { groupFilters = []; }\n if (options === void 0) { options = {}; }\n this.itemsByGroups = new Map();\n this.allItems = {};\n if (!options.shallow) {\n (0, BringgDashboardSDK_1.getGlobals)().mobx.makeAutoObservable(this);\n }\n this.groupFilters = groupFilters || [];\n this.initializedGroups = new Set();\n try {\n for (var _b = __values(this.groupFilters), _c = _b.next(); !_c.done; _c = _b.next()) {\n var groupFilter = _c.value;\n this.itemsByGroups.set(groupFilter.groupType, new Map());\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n DataStore.prototype.isGroupInitialized = function (groupType, groupValue) {\n return this.isAllInitialized || this.initializedGroups.has(this.getGroupKey(groupType, groupValue));\n };\n DataStore.prototype.get = function (id) {\n return this.allItems[id];\n };\n DataStore.prototype.getMany = function (ids) {\n var all = this.getAllById();\n return ids.reduce(function (acc, id) {\n acc[id] = all[id];\n return acc;\n }, {});\n };\n DataStore.prototype.getAll = function () {\n return Object.values(this.allItems);\n };\n DataStore.prototype.getAllById = function () {\n return this.allItems;\n };\n DataStore.prototype.getGroup = function (group, groupValue) {\n return Object.values(this.getGroupItems(group, groupValue));\n };\n DataStore.prototype.set = function (item) {\n var previousItem = this.get(item.id);\n this.allItems[item.id] = item;\n this.updateItemInGroups(item, previousItem);\n };\n DataStore.prototype.remove = function (id) {\n var item = this.get(id);\n delete this.allItems[id];\n this.updateItemInGroups(undefined, item);\n };\n DataStore.prototype.setMany = function (items) {\n var e_2, _a;\n try {\n for (var items_1 = __values(items), items_1_1 = items_1.next(); !items_1_1.done; items_1_1 = items_1.next()) {\n var item = items_1_1.value;\n this.allItems[item.current.id] = item.current;\n this.updateItemInGroups(item.current, item.diff);\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (items_1_1 && !items_1_1.done && (_a = items_1.return)) _a.call(items_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n };\n DataStore.prototype.setAll = function (items) {\n this.allItems = {};\n this.setAllItems(items);\n this.isAllInitialized = true;\n };\n DataStore.prototype.setGroup = function (groupType, groupValue, items) {\n var _this = this;\n var previousItems = this.getGroup(groupType, groupValue);\n this.removeMany(previousItems);\n if (Array.isArray(groupValue)) {\n groupValue.forEach(function (group) {\n _this.itemsByGroups.get(groupType).set(group, {});\n });\n }\n else {\n this.itemsByGroups.get(groupType).set(groupValue, {});\n }\n this.setAllItems(items);\n this.setGroupInitialized(groupType, groupValue);\n };\n DataStore.prototype.setGroupInitialized = function (groupType, groupValue) {\n var _this = this;\n if (Array.isArray(groupValue)) {\n groupValue.forEach(function (group) {\n _this.initializedGroups.add(_this.getGroupKey(groupType, group));\n });\n }\n else {\n this.initializedGroups.add(this.getGroupKey(groupType, groupValue));\n }\n };\n DataStore.prototype.setAllItems = function (items) {\n var e_3, _a;\n try {\n for (var items_2 = __values(items), items_2_1 = items_2.next(); !items_2_1.done; items_2_1 = items_2.next()) {\n var item = items_2_1.value;\n this.allItems[item.current.id] = item.current;\n this.updateItemInGroups(item.current, item.diff);\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (items_2_1 && !items_2_1.done && (_a = items_2.return)) _a.call(items_2);\n }\n finally { if (e_3) throw e_3.error; }\n }\n };\n DataStore.prototype.removeMany = function (items) {\n var e_4, _a;\n var allItemsLength = Object.keys(this.allItems).length;\n if (items.length === allItemsLength) {\n this.allItems = {};\n return;\n }\n try {\n for (var items_3 = __values(items), items_3_1 = items_3.next(); !items_3_1.done; items_3_1 = items_3.next()) {\n var item = items_3_1.value;\n delete this.allItems[item.id];\n }\n }\n catch (e_4_1) { e_4 = { error: e_4_1 }; }\n finally {\n try {\n if (items_3_1 && !items_3_1.done && (_a = items_3.return)) _a.call(items_3);\n }\n finally { if (e_4) throw e_4.error; }\n }\n };\n DataStore.prototype.removeAll = function () {\n var e_5, _a;\n this.removeMany(this.getAll());\n try {\n for (var _b = __values(this.groupFilters), _c = _b.next(); !_c.done; _c = _b.next()) {\n var groupFilter = _c.value;\n this.itemsByGroups.get(groupFilter.groupType).clear();\n }\n }\n catch (e_5_1) { e_5 = { error: e_5_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_5) throw e_5.error; }\n }\n this.initializedGroups.clear();\n };\n DataStore.prototype.updateItemInGroups = function (item, diff) {\n var e_6, _a;\n var _this = this;\n var _loop_1 = function (groupFilter) {\n var groupValue = item && groupFilter.keyFunc(item);\n groupValue = Array.isArray(groupValue) ? groupValue : [groupValue];\n if (item) {\n var groupItems_1 = this_1.itemsByGroups.get(groupFilter.groupType);\n groupValue.forEach(function (group) {\n if (!groupItems_1.get(group)) {\n groupItems_1.set(group, {});\n }\n groupItems_1.get(group)[item.id] = _this.allItems[item.id];\n });\n }\n if (diff) {\n var previousGroupValue = groupFilter.keyFunc(__assign(__assign({}, item), diff));\n previousGroupValue = Array.isArray(previousGroupValue) ? previousGroupValue : [previousGroupValue];\n previousGroupValue\n .filter(function (diffItem) { return groupValue.indexOf(diffItem) === -1; })\n .forEach(function (diffItem) {\n var _a;\n var previousGroupItems = _this.itemsByGroups.get(groupFilter.groupType);\n (_a = previousGroupItems.get(diffItem)) === null || _a === void 0 ? true : delete _a[(item === null || item === void 0 ? void 0 : item.id) || diff.id];\n });\n }\n };\n var this_1 = this;\n try {\n for (var _b = __values(this.groupFilters), _c = _b.next(); !_c.done; _c = _b.next()) {\n var groupFilter = _c.value;\n _loop_1(groupFilter);\n }\n }\n catch (e_6_1) { e_6 = { error: e_6_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_6) throw e_6.error; }\n }\n };\n DataStore.prototype.getGroupItems = function (groupType, groupValue) {\n var _this = this;\n var _a;\n if (Array.isArray(groupValue)) {\n return groupValue.reduce(function (all, group) {\n var groupItems = _this.itemsByGroups.get(groupType).get(group) || {};\n Object.assign(all, groupItems);\n return all;\n }, {});\n }\n return ((_a = this.itemsByGroups.get(groupType)) === null || _a === void 0 ? void 0 : _a.get(groupValue)) || {};\n };\n DataStore.prototype.getGroupKey = function (groupType, groupValue) {\n return \"\".concat(groupType, \"-\").concat(groupValue);\n };\n return DataStore;\n}());\nexports[\"default\"] = DataStore;\n//# sourceMappingURL=data-store.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/data-store.js?");
3364
+ 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 __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar BringgDashboardSDK_1 = __webpack_require__(/*! ./BringgDashboardSDK */ \"./dist/BringgDashboardSDK.js\");\nvar DataStore = /** @class */ (function () {\n function DataStore(groupFilters, options) {\n var e_1, _a;\n if (groupFilters === void 0) { groupFilters = []; }\n if (options === void 0) { options = {}; }\n this.itemsByGroups = new Map();\n this.allItems = {};\n if (!options.shallow) {\n (0, BringgDashboardSDK_1.getGlobals)().mobx.makeAutoObservable(this);\n }\n this.groupFilters = groupFilters || [];\n this.initializedGroups = new Set();\n try {\n for (var _b = __values(this.groupFilters), _c = _b.next(); !_c.done; _c = _b.next()) {\n var groupFilter = _c.value;\n this.itemsByGroups.set(groupFilter.groupType, new Map());\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n DataStore.prototype.isGroupInitialized = function (groupType, groupValue) {\n return this.isAllInitialized || this.initializedGroups.has(this.getGroupKey(groupType, groupValue));\n };\n DataStore.prototype.get = function (id) {\n return this.allItems[id];\n };\n DataStore.prototype.isInGroup = function (id, groupType, groupValue) {\n var _a;\n var itemsInGroup = (_a = this.itemsByGroups.get(groupType)) === null || _a === void 0 ? void 0 : _a.get(groupValue);\n if (!itemsInGroup) {\n return false;\n }\n return Boolean(itemsInGroup[id]);\n };\n DataStore.prototype.getMany = function (ids) {\n var all = this.getAllById();\n return ids.reduce(function (acc, id) {\n acc[id] = all[id];\n return acc;\n }, {});\n };\n DataStore.prototype.getAll = function () {\n return Object.values(this.allItems);\n };\n DataStore.prototype.getAllById = function () {\n return this.allItems;\n };\n DataStore.prototype.getGroup = function (group, groupValue) {\n return Object.values(this.getGroupItems(group, groupValue));\n };\n DataStore.prototype.set = function (item) {\n var previousItem = this.get(item.id);\n this.allItems[item.id] = item;\n this.updateItemInGroups(item, previousItem);\n };\n DataStore.prototype.remove = function (id) {\n var item = this.get(id);\n delete this.allItems[id];\n this.updateItemInGroups(undefined, item);\n };\n DataStore.prototype.setMany = function (items) {\n var e_2, _a;\n try {\n for (var items_1 = __values(items), items_1_1 = items_1.next(); !items_1_1.done; items_1_1 = items_1.next()) {\n var item = items_1_1.value;\n this.allItems[item.current.id] = item.current;\n this.updateItemInGroups(item.current, item.diff);\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (items_1_1 && !items_1_1.done && (_a = items_1.return)) _a.call(items_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n };\n DataStore.prototype.setAll = function (items) {\n this.allItems = {};\n this.setAllItems(items);\n this.isAllInitialized = true;\n };\n DataStore.prototype.setGroup = function (groupType, groupValue, items) {\n var _this = this;\n var previousItems = this.getGroup(groupType, groupValue);\n this.removeMany(previousItems);\n if (Array.isArray(groupValue)) {\n groupValue.forEach(function (group) {\n _this.itemsByGroups.get(groupType).set(group, {});\n });\n }\n else {\n this.itemsByGroups.get(groupType).set(groupValue, {});\n }\n this.setAllItems(items);\n this.setGroupInitialized(groupType, groupValue);\n };\n DataStore.prototype.setGroupInitialized = function (groupType, groupValue) {\n var _this = this;\n if (Array.isArray(groupValue)) {\n groupValue.forEach(function (group) {\n _this.initializedGroups.add(_this.getGroupKey(groupType, group));\n });\n }\n else {\n this.initializedGroups.add(this.getGroupKey(groupType, groupValue));\n }\n };\n DataStore.prototype.setAllItems = function (items) {\n var e_3, _a;\n try {\n for (var items_2 = __values(items), items_2_1 = items_2.next(); !items_2_1.done; items_2_1 = items_2.next()) {\n var item = items_2_1.value;\n this.allItems[item.current.id] = item.current;\n this.updateItemInGroups(item.current, item.diff);\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (items_2_1 && !items_2_1.done && (_a = items_2.return)) _a.call(items_2);\n }\n finally { if (e_3) throw e_3.error; }\n }\n };\n DataStore.prototype.removeMany = function (items) {\n var e_4, _a;\n var allItemsLength = Object.keys(this.allItems).length;\n if (items.length === allItemsLength) {\n this.allItems = {};\n return;\n }\n try {\n for (var items_3 = __values(items), items_3_1 = items_3.next(); !items_3_1.done; items_3_1 = items_3.next()) {\n var item = items_3_1.value;\n delete this.allItems[item.id];\n }\n }\n catch (e_4_1) { e_4 = { error: e_4_1 }; }\n finally {\n try {\n if (items_3_1 && !items_3_1.done && (_a = items_3.return)) _a.call(items_3);\n }\n finally { if (e_4) throw e_4.error; }\n }\n };\n DataStore.prototype.removeAll = function () {\n var e_5, _a;\n this.removeMany(this.getAll());\n try {\n for (var _b = __values(this.groupFilters), _c = _b.next(); !_c.done; _c = _b.next()) {\n var groupFilter = _c.value;\n this.itemsByGroups.get(groupFilter.groupType).clear();\n }\n }\n catch (e_5_1) { e_5 = { error: e_5_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_5) throw e_5.error; }\n }\n this.initializedGroups.clear();\n };\n DataStore.prototype.updateItemInGroups = function (item, diff) {\n var e_6, _a;\n var _this = this;\n var _loop_1 = function (groupFilter) {\n var groupValue = item && groupFilter.keyFunc(item);\n groupValue = Array.isArray(groupValue) ? groupValue : [groupValue];\n if (item) {\n var groupItems_1 = this_1.itemsByGroups.get(groupFilter.groupType);\n groupValue.forEach(function (group) {\n if (!groupItems_1.get(group)) {\n groupItems_1.set(group, {});\n }\n groupItems_1.get(group)[item.id] = _this.allItems[item.id];\n });\n }\n if (diff) {\n var previousGroupValue = groupFilter.keyFunc(__assign(__assign({}, item), diff));\n previousGroupValue = Array.isArray(previousGroupValue) ? previousGroupValue : [previousGroupValue];\n previousGroupValue\n .filter(function (diffItem) { return groupValue.indexOf(diffItem) === -1; })\n .forEach(function (diffItem) {\n var _a;\n var previousGroupItems = _this.itemsByGroups.get(groupFilter.groupType);\n (_a = previousGroupItems.get(diffItem)) === null || _a === void 0 ? true : delete _a[(item === null || item === void 0 ? void 0 : item.id) || diff.id];\n });\n }\n };\n var this_1 = this;\n try {\n for (var _b = __values(this.groupFilters), _c = _b.next(); !_c.done; _c = _b.next()) {\n var groupFilter = _c.value;\n _loop_1(groupFilter);\n }\n }\n catch (e_6_1) { e_6 = { error: e_6_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_6) throw e_6.error; }\n }\n };\n DataStore.prototype.getGroupItems = function (groupType, groupValue) {\n var _this = this;\n var _a;\n if (Array.isArray(groupValue)) {\n return groupValue.reduce(function (all, group) {\n var groupItems = _this.itemsByGroups.get(groupType).get(group) || {};\n Object.assign(all, groupItems);\n return all;\n }, {});\n }\n return ((_a = this.itemsByGroups.get(groupType)) === null || _a === void 0 ? void 0 : _a.get(groupValue)) || {};\n };\n DataStore.prototype.getGroupKey = function (groupType, groupValue) {\n return \"\".concat(groupType, \"-\").concat(groupValue);\n };\n return DataStore;\n}());\nexports[\"default\"] = DataStore;\n//# sourceMappingURL=data-store.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/data-store.js?");
3365
3365
 
3366
3366
  /***/ }),
3367
3367
 
@@ -3779,7 +3779,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
3779
3779
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3780
3780
 
3781
3781
  "use strict";
3782
- eval("\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./types/action */ \"./node_modules/@bringg/types/types/action.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/action_data */ \"./node_modules/@bringg/types/types/action_data.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/actual_break */ \"./node_modules/@bringg/types/types/actual_break.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/addons_management */ \"./node_modules/@bringg/types/types/addons_management/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/admin_users */ \"./node_modules/@bringg/types/types/admin_users.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/alert */ \"./node_modules/@bringg/types/types/alert.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/analytics */ \"./node_modules/@bringg/types/types/analytics/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/application */ \"./node_modules/@bringg/types/types/application.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/async_operation_status */ \"./node_modules/@bringg/types/types/async_operation_status.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/auth */ \"./node_modules/@bringg/types/types/auth.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/chat */ \"./node_modules/@bringg/types/types/chat/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/chat_conversation */ \"./node_modules/@bringg/types/types/chat_conversation.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/chat_message */ \"./node_modules/@bringg/types/types/chat_message.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/common */ \"./node_modules/@bringg/types/types/common.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/company */ \"./node_modules/@bringg/types/types/company.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/config_loader */ \"./node_modules/@bringg/types/types/config_loader.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/country */ \"./node_modules/@bringg/types/types/country.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/crew */ \"./node_modules/@bringg/types/types/crew.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/currency */ \"./node_modules/@bringg/types/types/currency.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/custom_attribute */ \"./node_modules/@bringg/types/types/custom_attribute.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/custom_filter */ \"./node_modules/@bringg/types/types/custom_filter.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/customer */ \"./node_modules/@bringg/types/types/customer.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/customer_configuration */ \"./node_modules/@bringg/types/types/customer_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/customer_experience */ \"./node_modules/@bringg/types/types/customer_experience.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/dashboard_ui_configuration */ \"./node_modules/@bringg/types/types/dashboard_ui_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_block */ \"./node_modules/@bringg/types/types/delivery_block.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_block_schedule */ \"./node_modules/@bringg/types/types/delivery_block_schedule.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_provider */ \"./node_modules/@bringg/types/types/delivery_provider.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_provider_aggregator_item */ \"./node_modules/@bringg/types/types/delivery_provider_aggregator_item.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_provider_category_item */ \"./node_modules/@bringg/types/types/delivery_provider_category_item.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_provider_display_destination_item */ \"./node_modules/@bringg/types/types/delivery_provider_display_destination_item.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_provider_lookup_item */ \"./node_modules/@bringg/types/types/delivery_provider_lookup_item.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_provider_offering */ \"./node_modules/@bringg/types/types/delivery_provider_offering.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/deprecated_alert_types */ \"./node_modules/@bringg/types/types/deprecated_alert_types.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/dispatcher-v2 */ \"./node_modules/@bringg/types/types/dispatcher-v2/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/dispute */ \"./node_modules/@bringg/types/types/dispute.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/driver_unavailability */ \"./node_modules/@bringg/types/types/driver_unavailability.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/emulated_delivery_provider_types */ \"./node_modules/@bringg/types/types/emulated_delivery_provider_types.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/error_code */ \"./node_modules/@bringg/types/types/error_code.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/event */ \"./node_modules/@bringg/types/types/event.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/external_data_team */ \"./node_modules/@bringg/types/types/external_data_team.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/filter_conditions */ \"./node_modules/@bringg/types/types/filter_conditions.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/fleet */ \"./node_modules/@bringg/types/types/fleet.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/fleet_router_rules */ \"./node_modules/@bringg/types/types/fleet_router_rules.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/fleet_template */ \"./node_modules/@bringg/types/types/fleet_template.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/floating_inventory */ \"./node_modules/@bringg/types/types/floating_inventory.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/franchisee */ \"./node_modules/@bringg/types/types/franchisee.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/geocoding */ \"./node_modules/@bringg/types/types/geocoding.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/handling_units */ \"./node_modules/@bringg/types/types/handling_units.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/integration */ \"./node_modules/@bringg/types/types/integration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/keyset_pagination */ \"./node_modules/@bringg/types/types/keyset_pagination.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/language */ \"./node_modules/@bringg/types/types/language.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/location */ \"./node_modules/@bringg/types/types/location.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/mapbox */ \"./node_modules/@bringg/types/types/mapbox.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/menu */ \"./node_modules/@bringg/types/types/menu.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/merchant */ \"./node_modules/@bringg/types/types/merchant.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/merchant_configuration */ \"./node_modules/@bringg/types/types/merchant_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/merchant_prototypes */ \"./node_modules/@bringg/types/types/merchant_prototypes.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/merchant_secrets_service */ \"./node_modules/@bringg/types/types/merchant_secrets_service.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/notification_subscription */ \"./node_modules/@bringg/types/types/notification_subscription.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/notification_template */ \"./node_modules/@bringg/types/types/notification_template.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/notification_type */ \"./node_modules/@bringg/types/types/notification_type.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/open_fleet */ \"./node_modules/@bringg/types/types/open_fleet.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/opt_in_out_history */ \"./node_modules/@bringg/types/types/opt_in_out_history.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/optimization_configuration */ \"./node_modules/@bringg/types/types/optimization_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/optimization_configurations_teams */ \"./node_modules/@bringg/types/types/optimization_configurations_teams.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/optimization_result */ \"./node_modules/@bringg/types/types/optimization_result.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/optimization_type */ \"./node_modules/@bringg/types/types/optimization_type.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/package */ \"./node_modules/@bringg/types/types/package.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/parking_spot */ \"./node_modules/@bringg/types/types/parking_spot.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/planned_delivery_window */ \"./node_modules/@bringg/types/types/planned_delivery_window.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/planned_route */ \"./node_modules/@bringg/types/types/planned_route.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/predicate */ \"./node_modules/@bringg/types/types/predicate.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/preset_view */ \"./node_modules/@bringg/types/types/preset_view/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/privilege */ \"./node_modules/@bringg/types/types/privilege.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/push_notification_registration */ \"./node_modules/@bringg/types/types/push_notification_registration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/push_token_subscription */ \"./node_modules/@bringg/types/types/push_token_subscription.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/quote */ \"./node_modules/@bringg/types/types/quote.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/rate_card */ \"./node_modules/@bringg/types/types/rate_card.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/rating */ \"./node_modules/@bringg/types/types/rating.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/realtime_event */ \"./node_modules/@bringg/types/types/realtime_event.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/reason_to_cancel_task */ \"./node_modules/@bringg/types/types/reason_to_cancel_task.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/reason_to_change_inventory */ \"./node_modules/@bringg/types/types/reason_to_change_inventory.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/reason_to_reassign_task */ \"./node_modules/@bringg/types/types/reason_to_reassign_task.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/report_preference */ \"./node_modules/@bringg/types/types/report_preference.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/reports */ \"./node_modules/@bringg/types/types/reports.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/request_origin */ \"./node_modules/@bringg/types/types/request_origin.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/route_kpi */ \"./node_modules/@bringg/types/types/route_kpi.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/route_optimization */ \"./node_modules/@bringg/types/types/route_optimization.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/route-settings */ \"./node_modules/@bringg/types/types/route-settings.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/routesMonitoring */ \"./node_modules/@bringg/types/types/routesMonitoring/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/rpc */ \"./node_modules/@bringg/types/types/rpc.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/run */ \"./node_modules/@bringg/types/types/run.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/scan */ \"./node_modules/@bringg/types/types/scan.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/serializer */ \"./node_modules/@bringg/types/types/serializer.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/service */ \"./node_modules/@bringg/types/types/service.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/service_area */ \"./node_modules/@bringg/types/types/service_area.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/service_event */ \"./node_modules/@bringg/types/types/service_event.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/service_plan */ \"./node_modules/@bringg/types/types/service_plan.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/service_window */ \"./node_modules/@bringg/types/types/service_window.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/shared_location */ \"./node_modules/@bringg/types/types/shared_location.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/shift */ \"./node_modules/@bringg/types/types/shift.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/skill */ \"./node_modules/@bringg/types/types/skill.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/sms_data */ \"./node_modules/@bringg/types/types/sms_data.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/sms_number */ \"./node_modules/@bringg/types/types/sms_number.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/sms_provider_account */ \"./node_modules/@bringg/types/types/sms_provider_account.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/sms_setting */ \"./node_modules/@bringg/types/types/sms_setting.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/support-ticket */ \"./node_modules/@bringg/types/types/support-ticket.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/tag */ \"./node_modules/@bringg/types/types/tag.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/tag_customer_configuration */ \"./node_modules/@bringg/types/types/tag_customer_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/tag_merchant_configuration */ \"./node_modules/@bringg/types/types/tag_merchant_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/tag_rules_configuration */ \"./node_modules/@bringg/types/types/tag_rules_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task */ \"./node_modules/@bringg/types/types/task.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_aggregations */ \"./node_modules/@bringg/types/types/task_aggregations.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_configuration */ \"./node_modules/@bringg/types/types/task_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_payment_history */ \"./node_modules/@bringg/types/types/task_payment_history.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_rates */ \"./node_modules/@bringg/types/types/task_rates.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_reassign_reasons */ \"./node_modules/@bringg/types/types/task_reassign_reasons.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_reject */ \"./node_modules/@bringg/types/types/task_reject.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_service */ \"./node_modules/@bringg/types/types/task_service.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/taskRejectReason */ \"./node_modules/@bringg/types/types/taskRejectReason/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/team_configuration */ \"./node_modules/@bringg/types/types/team_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/team_service_zip_codes */ \"./node_modules/@bringg/types/types/team_service_zip_codes.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/teams */ \"./node_modules/@bringg/types/types/teams.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/template_languages */ \"./node_modules/@bringg/types/types/template_languages.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/template_merchants */ \"./node_modules/@bringg/types/types/template_merchants.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/templates */ \"./node_modules/@bringg/types/types/templates.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/tender_notify */ \"./node_modules/@bringg/types/types/tender_notify.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/time-window-change-origin */ \"./node_modules/@bringg/types/types/time-window-change-origin.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/twilio_number */ \"./node_modules/@bringg/types/types/twilio_number.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/upload */ \"./node_modules/@bringg/types/types/upload.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/user_configuration */ \"./node_modules/@bringg/types/types/user_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/user_realtime_data */ \"./node_modules/@bringg/types/types/user_realtime_data.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/user_types */ \"./node_modules/@bringg/types/types/user_types.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/users */ \"./node_modules/@bringg/types/types/users.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/vehicle */ \"./node_modules/@bringg/types/types/vehicle.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/vehicle_category */ \"./node_modules/@bringg/types/types/vehicle_category.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/vehicle_type */ \"./node_modules/@bringg/types/types/vehicle_type.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/web_application_configuration */ \"./node_modules/@bringg/types/types/web_application_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/webhook_authentication_configuration */ \"./node_modules/@bringg/types/types/webhook_authentication_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/webhooks */ \"./node_modules/@bringg/types/types/webhooks.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/webhooks_configuration */ \"./node_modules/@bringg/types/types/webhooks_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/widget */ \"./node_modules/@bringg/types/types/widget.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/windows */ \"./node_modules/@bringg/types/types/windows.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/workflow */ \"./node_modules/@bringg/types/types/workflow/index.js\"), exports);\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/index.js?");
3782
+ eval("\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n__exportStar(__webpack_require__(/*! ./types/action */ \"./node_modules/@bringg/types/types/action.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/action_data */ \"./node_modules/@bringg/types/types/action_data.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/actual_break */ \"./node_modules/@bringg/types/types/actual_break.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/addons_management */ \"./node_modules/@bringg/types/types/addons_management/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/admin_users */ \"./node_modules/@bringg/types/types/admin_users.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/alert */ \"./node_modules/@bringg/types/types/alert.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/analytics */ \"./node_modules/@bringg/types/types/analytics/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/application */ \"./node_modules/@bringg/types/types/application.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/async_operation_status */ \"./node_modules/@bringg/types/types/async_operation_status.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/auth */ \"./node_modules/@bringg/types/types/auth.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/chat */ \"./node_modules/@bringg/types/types/chat/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/chat_conversation */ \"./node_modules/@bringg/types/types/chat_conversation.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/chat_message */ \"./node_modules/@bringg/types/types/chat_message.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/common */ \"./node_modules/@bringg/types/types/common.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/company */ \"./node_modules/@bringg/types/types/company.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/config_loader */ \"./node_modules/@bringg/types/types/config_loader.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/country */ \"./node_modules/@bringg/types/types/country.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/crew */ \"./node_modules/@bringg/types/types/crew.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/currency */ \"./node_modules/@bringg/types/types/currency.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/custom_attribute */ \"./node_modules/@bringg/types/types/custom_attribute.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/custom_filter */ \"./node_modules/@bringg/types/types/custom_filter.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/customer */ \"./node_modules/@bringg/types/types/customer.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/customer_configuration */ \"./node_modules/@bringg/types/types/customer_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/customer_experience */ \"./node_modules/@bringg/types/types/customer_experience.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/dashboard_ui_configuration */ \"./node_modules/@bringg/types/types/dashboard_ui_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_block */ \"./node_modules/@bringg/types/types/delivery_block.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_block_schedule */ \"./node_modules/@bringg/types/types/delivery_block_schedule.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_provider */ \"./node_modules/@bringg/types/types/delivery_provider.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_provider_aggregator_item */ \"./node_modules/@bringg/types/types/delivery_provider_aggregator_item.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_provider_category_item */ \"./node_modules/@bringg/types/types/delivery_provider_category_item.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_provider_display_destination_item */ \"./node_modules/@bringg/types/types/delivery_provider_display_destination_item.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_provider_lookup_item */ \"./node_modules/@bringg/types/types/delivery_provider_lookup_item.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/delivery_provider_offering */ \"./node_modules/@bringg/types/types/delivery_provider_offering.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/deprecated_alert_types */ \"./node_modules/@bringg/types/types/deprecated_alert_types.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/dispatcher-v2 */ \"./node_modules/@bringg/types/types/dispatcher-v2/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/dispute */ \"./node_modules/@bringg/types/types/dispute.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/driver_unavailability */ \"./node_modules/@bringg/types/types/driver_unavailability.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/emulated_delivery_provider_types */ \"./node_modules/@bringg/types/types/emulated_delivery_provider_types.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/error_code */ \"./node_modules/@bringg/types/types/error_code.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/event */ \"./node_modules/@bringg/types/types/event.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/external_data_team */ \"./node_modules/@bringg/types/types/external_data_team.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/filter_conditions */ \"./node_modules/@bringg/types/types/filter_conditions.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/fleet */ \"./node_modules/@bringg/types/types/fleet.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/fleet_router_rules */ \"./node_modules/@bringg/types/types/fleet_router_rules.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/fleet_template */ \"./node_modules/@bringg/types/types/fleet_template.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/floating_inventory */ \"./node_modules/@bringg/types/types/floating_inventory.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/franchisee */ \"./node_modules/@bringg/types/types/franchisee.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/geocoding */ \"./node_modules/@bringg/types/types/geocoding.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/handling_units */ \"./node_modules/@bringg/types/types/handling_units.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/integration */ \"./node_modules/@bringg/types/types/integration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/keyset_pagination */ \"./node_modules/@bringg/types/types/keyset_pagination.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/language */ \"./node_modules/@bringg/types/types/language.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/location */ \"./node_modules/@bringg/types/types/location.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/mapbox */ \"./node_modules/@bringg/types/types/mapbox.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/menu */ \"./node_modules/@bringg/types/types/menu.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/merchant */ \"./node_modules/@bringg/types/types/merchant.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/merchant_configuration */ \"./node_modules/@bringg/types/types/merchant_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/merchant_prototypes */ \"./node_modules/@bringg/types/types/merchant_prototypes.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/merchant_secrets_service */ \"./node_modules/@bringg/types/types/merchant_secrets_service.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/notification_subscription */ \"./node_modules/@bringg/types/types/notification_subscription.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/notification_template */ \"./node_modules/@bringg/types/types/notification_template.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/notification_type */ \"./node_modules/@bringg/types/types/notification_type.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/open_fleet */ \"./node_modules/@bringg/types/types/open_fleet.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/opt_in_out_history */ \"./node_modules/@bringg/types/types/opt_in_out_history.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/optimization_configuration */ \"./node_modules/@bringg/types/types/optimization_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/optimization_configurations_teams */ \"./node_modules/@bringg/types/types/optimization_configurations_teams.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/optimization_rerun */ \"./node_modules/@bringg/types/types/optimization_rerun.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/optimization_result */ \"./node_modules/@bringg/types/types/optimization_result.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/optimization_type */ \"./node_modules/@bringg/types/types/optimization_type.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/package */ \"./node_modules/@bringg/types/types/package.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/parking_spot */ \"./node_modules/@bringg/types/types/parking_spot.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/planned_delivery_window */ \"./node_modules/@bringg/types/types/planned_delivery_window.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/planned_route */ \"./node_modules/@bringg/types/types/planned_route.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/predicate */ \"./node_modules/@bringg/types/types/predicate.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/preset_view */ \"./node_modules/@bringg/types/types/preset_view/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/privilege */ \"./node_modules/@bringg/types/types/privilege.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/push_notification_registration */ \"./node_modules/@bringg/types/types/push_notification_registration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/push_token_subscription */ \"./node_modules/@bringg/types/types/push_token_subscription.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/quote */ \"./node_modules/@bringg/types/types/quote.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/rate_card */ \"./node_modules/@bringg/types/types/rate_card.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/rating */ \"./node_modules/@bringg/types/types/rating.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/realtime_event */ \"./node_modules/@bringg/types/types/realtime_event.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/reason_to_cancel_task */ \"./node_modules/@bringg/types/types/reason_to_cancel_task.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/reason_to_change_inventory */ \"./node_modules/@bringg/types/types/reason_to_change_inventory.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/reason_to_reassign_task */ \"./node_modules/@bringg/types/types/reason_to_reassign_task.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/report_preference */ \"./node_modules/@bringg/types/types/report_preference.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/reports */ \"./node_modules/@bringg/types/types/reports.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/request_origin */ \"./node_modules/@bringg/types/types/request_origin.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/route_kpi */ \"./node_modules/@bringg/types/types/route_kpi.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/route_optimization */ \"./node_modules/@bringg/types/types/route_optimization.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/route-settings */ \"./node_modules/@bringg/types/types/route-settings.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/routesMonitoring */ \"./node_modules/@bringg/types/types/routesMonitoring/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/rpc */ \"./node_modules/@bringg/types/types/rpc.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/run */ \"./node_modules/@bringg/types/types/run.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/scan */ \"./node_modules/@bringg/types/types/scan.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/serializer */ \"./node_modules/@bringg/types/types/serializer.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/service */ \"./node_modules/@bringg/types/types/service.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/service_area */ \"./node_modules/@bringg/types/types/service_area.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/service_event */ \"./node_modules/@bringg/types/types/service_event.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/service_plan */ \"./node_modules/@bringg/types/types/service_plan.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/service_window */ \"./node_modules/@bringg/types/types/service_window.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/shared_location */ \"./node_modules/@bringg/types/types/shared_location.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/shift */ \"./node_modules/@bringg/types/types/shift.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/skill */ \"./node_modules/@bringg/types/types/skill.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/sms_data */ \"./node_modules/@bringg/types/types/sms_data.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/sms_number */ \"./node_modules/@bringg/types/types/sms_number.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/sms_provider_account */ \"./node_modules/@bringg/types/types/sms_provider_account.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/sms_setting */ \"./node_modules/@bringg/types/types/sms_setting.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/support-ticket */ \"./node_modules/@bringg/types/types/support-ticket.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/tag */ \"./node_modules/@bringg/types/types/tag.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/tag_customer_configuration */ \"./node_modules/@bringg/types/types/tag_customer_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/tag_merchant_configuration */ \"./node_modules/@bringg/types/types/tag_merchant_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/tag_rules_configuration */ \"./node_modules/@bringg/types/types/tag_rules_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task */ \"./node_modules/@bringg/types/types/task.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_aggregations */ \"./node_modules/@bringg/types/types/task_aggregations.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_configuration */ \"./node_modules/@bringg/types/types/task_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_payment_history */ \"./node_modules/@bringg/types/types/task_payment_history.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_rates */ \"./node_modules/@bringg/types/types/task_rates.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_reassign_reasons */ \"./node_modules/@bringg/types/types/task_reassign_reasons.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_reject */ \"./node_modules/@bringg/types/types/task_reject.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/task_service */ \"./node_modules/@bringg/types/types/task_service.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/taskRejectReason */ \"./node_modules/@bringg/types/types/taskRejectReason/index.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/team_configuration */ \"./node_modules/@bringg/types/types/team_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/team_service_zip_codes */ \"./node_modules/@bringg/types/types/team_service_zip_codes.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/teams */ \"./node_modules/@bringg/types/types/teams.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/template_languages */ \"./node_modules/@bringg/types/types/template_languages.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/template_merchants */ \"./node_modules/@bringg/types/types/template_merchants.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/templates */ \"./node_modules/@bringg/types/types/templates.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/tender_notify */ \"./node_modules/@bringg/types/types/tender_notify.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/time-window-change-origin */ \"./node_modules/@bringg/types/types/time-window-change-origin.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/twilio_number */ \"./node_modules/@bringg/types/types/twilio_number.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/upload */ \"./node_modules/@bringg/types/types/upload.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/user_configuration */ \"./node_modules/@bringg/types/types/user_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/user_realtime_data */ \"./node_modules/@bringg/types/types/user_realtime_data.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/user_types */ \"./node_modules/@bringg/types/types/user_types.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/users */ \"./node_modules/@bringg/types/types/users.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/vehicle */ \"./node_modules/@bringg/types/types/vehicle.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/vehicle_category */ \"./node_modules/@bringg/types/types/vehicle_category.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/vehicle_type */ \"./node_modules/@bringg/types/types/vehicle_type.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/web_application_configuration */ \"./node_modules/@bringg/types/types/web_application_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/webhook_authentication_configuration */ \"./node_modules/@bringg/types/types/webhook_authentication_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/webhooks */ \"./node_modules/@bringg/types/types/webhooks.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/webhooks_configuration */ \"./node_modules/@bringg/types/types/webhooks_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/widget */ \"./node_modules/@bringg/types/types/widget.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/windows */ \"./node_modules/@bringg/types/types/windows.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/workflow */ \"./node_modules/@bringg/types/types/workflow/index.js\"), exports);\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/index.js?");
3783
3783
 
3784
3784
  /***/ }),
3785
3785
 
@@ -4795,6 +4795,17 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n//#
4795
4795
 
4796
4796
  /***/ }),
4797
4797
 
4798
+ /***/ "./node_modules/@bringg/types/types/optimization_rerun.js":
4799
+ /*!****************************************************************!*\
4800
+ !*** ./node_modules/@bringg/types/types/optimization_rerun.js ***!
4801
+ \****************************************************************/
4802
+ /***/ ((__unused_webpack_module, exports) => {
4803
+
4804
+ "use strict";
4805
+ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n//# sourceMappingURL=optimization_rerun.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/optimization_rerun.js?");
4806
+
4807
+ /***/ }),
4808
+
4798
4809
  /***/ "./node_modules/@bringg/types/types/optimization_result.js":
4799
4810
  /*!*****************************************************************!*\
4800
4811
  !*** ./node_modules/@bringg/types/types/optimization_result.js ***!