@bringg/dashboard-sdk 3.0.2 → 4.0.0-pre.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2384,7 +2384,7 @@ eval("\nvar __extends = (this && this.__extends) || (function () {\n var exte
2384
2384
  /***/ (function(module, exports, __webpack_require__) {
2385
2385
 
2386
2386
  "use strict";
2387
- eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ServiceAreaEntity_1 = __webpack_require__(/*! ./Entity/ServiceAreaEntity */ \"./dist/ServiceArea/Entity/ServiceAreaEntity.js\");\nvar ServiceAreaApi = /** @class */ (function () {\n function ServiceAreaApi(session) {\n this.serviceAreaEntity = new ServiceAreaEntity_1.default(session);\n }\n ServiceAreaApi.prototype.getAll = function (request) {\n return this.serviceAreaEntity.service.getAll(request);\n };\n ServiceAreaApi.prototype.create = function (request) {\n return this.serviceAreaEntity.service.create(request);\n };\n ServiceAreaApi.prototype.update = function (id, request) {\n return this.serviceAreaEntity.service.update(id, request);\n };\n ServiceAreaApi.prototype.assign = function (id, request) {\n return this.serviceAreaEntity.assign(id, request);\n };\n ServiceAreaApi.prototype.unassign = function (request) {\n return this.serviceAreaEntity.unassign(request);\n };\n ServiceAreaApi.prototype.delete = function (id) {\n return this.serviceAreaEntity.service.delete(id);\n };\n return ServiceAreaApi;\n}());\nexports.default = ServiceAreaApi;\n//# sourceMappingURL=ServiceAreaApi.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/ServiceArea/ServiceAreaApi.js?");
2387
+ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ServiceAreaEntity_1 = __webpack_require__(/*! ./Entity/ServiceAreaEntity */ \"./dist/ServiceArea/Entity/ServiceAreaEntity.js\");\n/**\n * @deprecated please use ServiceArea v2\n */\nvar ServiceAreaApi = /** @class */ (function () {\n function ServiceAreaApi(session) {\n this.serviceAreaEntity = new ServiceAreaEntity_1.default(session);\n }\n /**\n * @deprecated please use ServiceArea v2\n */\n ServiceAreaApi.prototype.getAll = function () {\n return this.serviceAreaEntity.service.getAll();\n };\n /**\n * @deprecated please use ServiceArea v2\n */\n ServiceAreaApi.prototype.getAllByTeams = function (request) {\n return this.serviceAreaEntity.service.getAll(request);\n };\n ServiceAreaApi.prototype.create = function (request) {\n return this.serviceAreaEntity.service.create(request);\n };\n ServiceAreaApi.prototype.update = function (id, request) {\n return this.serviceAreaEntity.service.update(id, request);\n };\n ServiceAreaApi.prototype.assign = function (id, request) {\n return this.serviceAreaEntity.assign(id, request);\n };\n ServiceAreaApi.prototype.unassign = function (request) {\n return this.serviceAreaEntity.unassign(request);\n };\n ServiceAreaApi.prototype.delete = function (id) {\n return this.serviceAreaEntity.service.delete(id);\n };\n return ServiceAreaApi;\n}());\nexports.default = ServiceAreaApi;\n//# sourceMappingURL=ServiceAreaApi.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/ServiceArea/ServiceAreaApi.js?");
2388
2388
 
2389
2389
  /***/ }),
2390
2390
 
@@ -2397,7 +2397,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Se
2397
2397
  /***/ (function(module, exports, __webpack_require__) {
2398
2398
 
2399
2399
  "use strict";
2400
- 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};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ServiceAreaApi = void 0;\nvar data_store_1 = __webpack_require__(/*! ../../data-store */ \"./dist/data-store.js\");\nvar storable_data_service_1 = __webpack_require__(/*! ../../storable-data-service */ \"./dist/storable-data-service.js\");\nvar data_entity_1 = __webpack_require__(/*! ../../data-entity */ \"./dist/data-entity.js\");\nvar storable_api_builder_1 = __webpack_require__(/*! ../../storable-api-builder */ \"./dist/storable-api-builder.js\");\nvar service_area_service_1 = __webpack_require__(/*! ./service-area-service */ \"./dist/ServiceArea/v2/service-area-service.js\");\nvar service_area_consts_1 = __webpack_require__(/*! ./service-area.consts */ \"./dist/ServiceArea/v2/service-area.consts.js\");\nvar ServiceAreaApi = /** @class */ (function () {\n function ServiceAreaApi(session) {\n var groupFilters = [\n {\n groupType: service_area_consts_1.ServiceAreaFilterGroups.Teams,\n keyFunc: function (serviceArea) { return serviceArea.team_ids; }\n }\n ];\n this.serviceAreaStore = new data_store_1.default(groupFilters);\n this.serviceAreaService = new service_area_service_1.default(session);\n this.storableDataService = new storable_data_service_1.default(this.serviceAreaStore);\n Object.assign(this, storable_api_builder_1.default.build(this.storableDataService, this.serviceAreaService, {\n modify: ['update', 'create'],\n delete: ['delete'],\n load: ['load'],\n loadAll: [\n {\n action: 'loadAllByTeam',\n getOptions: function (_a) {\n var team_id = _a.team_id;\n return {\n groupType: service_area_consts_1.ServiceAreaFilterGroups.Teams,\n groupValue: [team_id]\n };\n }\n }\n ]\n }));\n }\n ServiceAreaApi.prototype.loadAllByTeams = function (request, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.storableDataService.loadAll('loadAllByTeams', function (teams_ids) { return _this.serviceAreaService.loadAllByTeams(__assign(__assign({}, request), { teams_ids: teams_ids })); }, __assign(__assign({}, options), { groupType: service_area_consts_1.ServiceAreaFilterGroups.Teams, groupValue: request.teams_ids }))];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n ServiceAreaApi.prototype.assign = function (id, userId) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.serviceAreaService.assign(id, userId)];\n });\n });\n };\n ServiceAreaApi.prototype.unassignUser = function (userId) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.serviceAreaService.unassign(userId)];\n });\n });\n };\n ServiceAreaApi.prototype.get = function (id) {\n return this.serviceAreaStore.get(id);\n };\n ServiceAreaApi.prototype.getByIds = function (ids) {\n var _this = this;\n return ids.map(function (id) { return _this.get(id); });\n };\n ServiceAreaApi.prototype.getAll = function () {\n return this.serviceAreaStore.getAll();\n };\n ServiceAreaApi.prototype.removeAll = function () {\n this.serviceAreaStore.removeAll();\n };\n ServiceAreaApi.prototype.getGroup = function (group, groupValue) {\n return this.serviceAreaStore.getGroup(group, groupValue);\n };\n return ServiceAreaApi;\n}());\nexports.ServiceAreaApi = ServiceAreaApi;\n//# sourceMappingURL=service-area-api.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/ServiceArea/v2/service-area-api.js?");
2400
+ 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};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ServiceAreaApi = void 0;\nvar data_store_1 = __webpack_require__(/*! ../../data-store */ \"./dist/data-store.js\");\nvar storable_data_service_1 = __webpack_require__(/*! ../../storable-data-service */ \"./dist/storable-data-service.js\");\nvar data_entity_1 = __webpack_require__(/*! ../../data-entity */ \"./dist/data-entity.js\");\nvar storable_api_builder_1 = __webpack_require__(/*! ../../storable-api-builder */ \"./dist/storable-api-builder.js\");\nvar service_area_service_1 = __webpack_require__(/*! ./service-area-service */ \"./dist/ServiceArea/v2/service-area-service.js\");\nvar service_area_consts_1 = __webpack_require__(/*! ./service-area.consts */ \"./dist/ServiceArea/v2/service-area.consts.js\");\nvar ServiceAreaApi = /** @class */ (function () {\n function ServiceAreaApi(session) {\n var groupFilters = [\n {\n groupType: service_area_consts_1.ServiceAreaFilterGroups.Teams,\n keyFunc: function (serviceArea) { return serviceArea.team_ids; }\n }\n ];\n this.serviceAreaStore = new data_store_1.default(groupFilters);\n this.serviceAreaService = new service_area_service_1.default(session);\n this.storableDataService = new storable_data_service_1.default(this.serviceAreaStore);\n Object.assign(this, storable_api_builder_1.default.build(this.storableDataService, this.serviceAreaService, {\n modify: ['update', 'create'],\n delete: ['delete'],\n load: ['load'],\n loadAll: ['loadAll']\n }));\n }\n ServiceAreaApi.prototype.loadAllByTeams = function (request, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.storableDataService.loadAll('loadAllByTeams', function (teams_ids) { return _this.serviceAreaService.loadAllByTeams(__assign(__assign({}, request), { teams_ids: teams_ids }), options); }, __assign(__assign({}, options), { groupType: service_area_consts_1.ServiceAreaFilterGroups.Teams, groupValue: request.teams_ids }))];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n ServiceAreaApi.prototype.assign = function (id, userId) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.serviceAreaService.assign(id, userId)];\n });\n });\n };\n ServiceAreaApi.prototype.unassignUser = function (userId) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.serviceAreaService.unassign(userId)];\n });\n });\n };\n ServiceAreaApi.prototype.get = function (id) {\n return this.serviceAreaStore.get(id);\n };\n ServiceAreaApi.prototype.getByIds = function (ids) {\n var _this = this;\n return ids.map(function (id) { return _this.get(id); });\n };\n ServiceAreaApi.prototype.getAll = function () {\n return this.serviceAreaStore.getAll();\n };\n ServiceAreaApi.prototype.removeAll = function () {\n this.serviceAreaStore.removeAll();\n };\n ServiceAreaApi.prototype.getGroup = function (group, groupValue) {\n return this.serviceAreaStore.getGroup(group, groupValue);\n };\n return ServiceAreaApi;\n}());\nexports.ServiceAreaApi = ServiceAreaApi;\n//# sourceMappingURL=service-area-api.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/ServiceArea/v2/service-area-api.js?");
2401
2401
 
2402
2402
  /***/ }),
2403
2403
 
@@ -2410,7 +2410,7 @@ eval("\nvar __assign = (this && this.__assign) || function () {\n __assign =
2410
2410
  /***/ (function(module, exports, __webpack_require__) {
2411
2411
 
2412
2412
  "use strict";
2413
- 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};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CrudService_1 = __webpack_require__(/*! ../../Core/CrudService */ \"./dist/Core/CrudService.js\");\nvar entityName = 'service_areas';\nvar ServiceAreaService = /** @class */ (function () {\n function ServiceAreaService(session) {\n this.service = new CrudService_1.default(session, entityName);\n }\n /**\n * @deprecated use loadAllByTeams instead\n */\n ServiceAreaService.prototype.loadAllByTeam = function (request) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.loadAllByTeams({\n teams_ids: [request.team_id],\n neighbours: request.neighbours\n })];\n });\n });\n };\n ServiceAreaService.prototype.loadAllByTeams = function (request, commonOptions) {\n 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.service.routeGenerator\n .get(\"/\".concat(this.service.entityName))\n .withQueryString(request)\n .withCommonOptions(commonOptions)\n .setException(\"Failed to get all service areas by team ids, \".concat(this.service.entityName, \", teams_ids: \").concat(request.teams_ids))\n .invoke()];\n case 1:\n result = _a.sent();\n return [2 /*return*/, result.service_areas];\n }\n });\n });\n };\n ServiceAreaService.prototype.create = function (request) {\n 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.service.create(request)];\n case 1:\n result = _a.sent();\n return [2 /*return*/, result.service_area];\n }\n });\n });\n };\n ServiceAreaService.prototype.update = function (id, request) {\n 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.service.update(id, request)];\n case 1:\n result = _a.sent();\n return [2 /*return*/, result.service_area];\n }\n });\n });\n };\n ServiceAreaService.prototype.delete = function (id) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.delete(id)];\n });\n });\n };\n ServiceAreaService.prototype.assign = function (id, userId) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .put(\"/\".concat(this.service.entityName, \"/\").concat(id, \"/assign\"))\n .withRouteParams({ id: id })\n .withPayload({ user_id: userId })\n .invoke()];\n });\n });\n };\n ServiceAreaService.prototype.unassign = function (userId) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .put(\"/\".concat(this.service.entityName, \"/unassign_user\"))\n .withPayload({ user_id: userId })\n .invoke()];\n });\n });\n };\n return ServiceAreaService;\n}());\nexports.default = ServiceAreaService;\n//# sourceMappingURL=service-area-service.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/ServiceArea/v2/service-area-service.js?");
2413
+ 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};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CrudService_1 = __webpack_require__(/*! ../../Core/CrudService */ \"./dist/Core/CrudService.js\");\nvar entityName = 'service_areas';\nvar ServiceAreaService = /** @class */ (function () {\n function ServiceAreaService(session) {\n this.service = new CrudService_1.default(session, entityName);\n }\n ServiceAreaService.prototype.loadAll = function (commonOptions) {\n 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.service.routeGenerator\n .get(\"/\".concat(this.service.entityName))\n .withCommonOptions(commonOptions)\n .setException(\"Failed to get all service areas\")\n .invoke()];\n case 1:\n result = _a.sent();\n return [2 /*return*/, result.service_areas];\n }\n });\n });\n };\n ServiceAreaService.prototype.loadAllByTeams = function (request, commonOptions) {\n var _a;\n return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n // Not requesting with empty as the API will return all the service areas the user have access to\n if (!((_a = request.teams_ids) === null || _a === void 0 ? void 0 : _a.filter(function (id) { return id != null; }).length)) {\n console.warn('Teams ids are empty, please use loadAll instead', __assign({}, request));\n return [2 /*return*/, []];\n }\n return [4 /*yield*/, this.service.routeGenerator\n .get(\"/\".concat(this.service.entityName))\n .withQueryString(request)\n .withCommonOptions(commonOptions)\n .setException(\"Failed to get all service areas by team ids, \".concat(this.service.entityName, \", teams_ids: \").concat(request.teams_ids))\n .invoke()];\n case 1:\n result = _b.sent();\n return [2 /*return*/, result.service_areas];\n }\n });\n });\n };\n ServiceAreaService.prototype.create = function (request) {\n 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.service.create(request)];\n case 1:\n result = _a.sent();\n return [2 /*return*/, result.service_area];\n }\n });\n });\n };\n ServiceAreaService.prototype.update = function (id, request) {\n 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.service.update(id, request)];\n case 1:\n result = _a.sent();\n return [2 /*return*/, result.service_area];\n }\n });\n });\n };\n ServiceAreaService.prototype.delete = function (id) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.delete(id)];\n });\n });\n };\n ServiceAreaService.prototype.assign = function (id, userId) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .put(\"/\".concat(this.service.entityName, \"/\").concat(id, \"/assign\"))\n .withRouteParams({ id: id })\n .withPayload({ user_id: userId })\n .invoke()];\n });\n });\n };\n ServiceAreaService.prototype.unassign = function (userId) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .put(\"/\".concat(this.service.entityName, \"/unassign_user\"))\n .withPayload({ user_id: userId })\n .invoke()];\n });\n });\n };\n return ServiceAreaService;\n}());\nexports.default = ServiceAreaService;\n//# sourceMappingURL=service-area-service.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/ServiceArea/v2/service-area-service.js?");
2414
2414
 
2415
2415
  /***/ }),
2416
2416
 
@@ -2592,7 +2592,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport
2592
2592
  /***/ (function(module, exports, __webpack_require__) {
2593
2593
 
2594
2594
  "use strict";
2595
- 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};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AnonymousServiceRequest = exports.AuthorizedServiceRequest = exports.ResponseHandler = exports.RequestOptions = exports.logErrorResponse = void 0;\nvar axios_1 = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\nvar Logger_1 = __webpack_require__(/*! ../Core/Logger */ \"./dist/Core/Logger.js\");\nvar lodash_1 = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\nvar BringgException_1 = __webpack_require__(/*! ../Core/BringgException */ \"./dist/Core/BringgException.js\");\nvar abort_1 = __webpack_require__(/*! ../utils/abort */ \"./dist/utils/abort.js\");\nvar version = '3.0.2';\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 try {\n Logger_1.default.info(response.config.method.toUpperCase(), response.config.url, status, data);\n }\n catch (e) { }\n try {\n Logger_1.default.debug(response);\n }\n catch (e) { }\n}\nexports.logErrorResponse = logErrorResponse;\nvar DEFAULT_TIMEOUT = 120000;\nvar RequestOptions = /** @class */ (function () {\n function RequestOptions(clientId, timeout, queryString, authenticationToken, headers, responseType, signal) {\n // NiceToHave: move headers to HttpHeaders class\n this.headers = __assign(__assign({ 'Content-Type': 'application/json' }, headers), { 'sdk-version': version, Client: clientId });\n this.timeout = timeout;\n this.validateStatus = lodash_1.stubTrue;\n if (queryString) {\n this.params = queryString;\n }\n if (authenticationToken) {\n this.headers['Authorization'] = \"Token token=\".concat(authenticationToken);\n }\n if (responseType) {\n this.responseType = responseType;\n }\n if (signal) {\n this.signal = signal;\n }\n }\n RequestOptions.new = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.clientId, clientId = _c === void 0 ? 'Bringg Dashboard' : _c, _d = _b.timeout, timeout = _d === void 0 ? DEFAULT_TIMEOUT : _d, queryString = _b.queryString, authenticationToken = _b.authenticationToken, headers = _b.headers, responseType = _b.responseType, signal = _b.signal;\n return new RequestOptions(clientId, timeout || DEFAULT_TIMEOUT, queryString, authenticationToken, headers, responseType, signal);\n };\n return RequestOptions;\n}());\nexports.RequestOptions = RequestOptions;\nvar ResponseHandler = /** @class */ (function () {\n function ResponseHandler(response, signal) {\n this.axiosPromise = response;\n this.signal = signal;\n }\n ResponseHandler.prototype.handle = function (consumer) {\n return __awaiter(this, void 0, void 0, function () {\n var axiosResponse, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if ((0, lodash_1.isUndefined)(consumer)) {\n throw new Error('consumer must be defined');\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, this.axiosPromise];\n case 2:\n axiosResponse = _a.sent();\n return [2 /*return*/, consumer(axiosResponse)];\n case 3:\n e_1 = _a.sent();\n if (axios_1.default.isCancel(e_1)) {\n (0, abort_1.throwAbortError)(this.signal, 'Request Aborted');\n }\n if (e_1 instanceof BringgException_1.BringgException) {\n throw e_1;\n }\n return [2 /*return*/, consumer(e_1)];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return ResponseHandler;\n}());\nexports.ResponseHandler = ResponseHandler;\nfunction get(axiosInstance, host, uri, queryString, signal) {\n return new ResponseHandler(axiosInstance.get(\"\".concat(host).concat(uri), { params: queryString, signal: signal }), signal);\n}\nfunction post(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.post(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction put(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.put(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction patch(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.patch(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction remove(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.delete(\"\".concat(host).concat(uri), { params: queryString, data: payload, signal: signal }), signal);\n}\nfunction routify(axiosInstance, endpoint, route, routeParams, queryString, payload, signal) {\n switch (route.httpMethod) {\n case 0 /* HttpMethod.GET */:\n return get(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, signal);\n case 1 /* HttpMethod.POST */:\n return post(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 2 /* HttpMethod.PUT */:\n return put(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 3 /* HttpMethod.PATCH */:\n return patch(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 4 /* HttpMethod.DELETE */:\n return remove(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n }\n}\nfunction wrapWithInterceptors(axios) {\n axios.interceptors.request.use(function (req) {\n var method = req.method, url = req.url, params = req.params, headers = req.headers, data = req.data;\n try {\n Logger_1.default.debug('REQUEST:', method.toUpperCase(), url);\n }\n catch (e) { }\n 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 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 try {\n Logger_1.default.trace('RESPONSE-headers:', headers);\n Logger_1.default.trace('RESPONSE-data:', data);\n }\n catch (e) { }\n return res;\n });\n return axios;\n}\nfunction axiosInstance(clientId, authenticationToken, headers, responseType, timeout, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, authenticationToken: authenticationToken, headers: headers, responseType: responseType, timeout: timeout, signal: signal })));\n}\nfunction anonymousAxiosInstance(clientId, headers, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, headers: headers, signal: signal })));\n}\nvar AuthorizedServiceRequest = /** @class */ (function () {\n function AuthorizedServiceRequest(clientId, authToken) {\n this.authToken = authToken;\n this.clientId = clientId;\n }\n AuthorizedServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload, headers, responseType, timeout, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(axiosInstance(this.clientId, this.authToken, headers, responseType, timeout), endpoint, route, routeParams, queryString, payload, signal);\n };\n return AuthorizedServiceRequest;\n}());\nexports.AuthorizedServiceRequest = AuthorizedServiceRequest;\nvar AnonymousServiceRequest = /** @class */ (function () {\n function AnonymousServiceRequest(clientId, headers) {\n this.clientId = clientId;\n this.headers = headers;\n }\n AnonymousServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(anonymousAxiosInstance(this.clientId, this.headers, signal), endpoint, route, routeParams, queryString, payload);\n };\n return AnonymousServiceRequest;\n}());\nexports.AnonymousServiceRequest = AnonymousServiceRequest;\n//# sourceMappingURL=ServiceRequest.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Services/ServiceRequest.js?");
2595
+ 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};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AnonymousServiceRequest = exports.AuthorizedServiceRequest = exports.ResponseHandler = exports.RequestOptions = exports.logErrorResponse = void 0;\nvar axios_1 = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\nvar Logger_1 = __webpack_require__(/*! ../Core/Logger */ \"./dist/Core/Logger.js\");\nvar lodash_1 = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\nvar BringgException_1 = __webpack_require__(/*! ../Core/BringgException */ \"./dist/Core/BringgException.js\");\nvar abort_1 = __webpack_require__(/*! ../utils/abort */ \"./dist/utils/abort.js\");\nvar version = '4.0.0-pre.0';\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 try {\n Logger_1.default.info(response.config.method.toUpperCase(), response.config.url, status, data);\n }\n catch (e) { }\n try {\n Logger_1.default.debug(response);\n }\n catch (e) { }\n}\nexports.logErrorResponse = logErrorResponse;\nvar DEFAULT_TIMEOUT = 120000;\nvar RequestOptions = /** @class */ (function () {\n function RequestOptions(clientId, timeout, queryString, authenticationToken, headers, responseType, signal) {\n // NiceToHave: move headers to HttpHeaders class\n this.headers = __assign(__assign({ 'Content-Type': 'application/json' }, headers), { 'sdk-version': version, Client: clientId });\n this.timeout = timeout;\n this.validateStatus = lodash_1.stubTrue;\n if (queryString) {\n this.params = queryString;\n }\n if (authenticationToken) {\n this.headers['Authorization'] = \"Token token=\".concat(authenticationToken);\n }\n if (responseType) {\n this.responseType = responseType;\n }\n if (signal) {\n this.signal = signal;\n }\n }\n RequestOptions.new = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.clientId, clientId = _c === void 0 ? 'Bringg Dashboard' : _c, _d = _b.timeout, timeout = _d === void 0 ? DEFAULT_TIMEOUT : _d, queryString = _b.queryString, authenticationToken = _b.authenticationToken, headers = _b.headers, responseType = _b.responseType, signal = _b.signal;\n return new RequestOptions(clientId, timeout || DEFAULT_TIMEOUT, queryString, authenticationToken, headers, responseType, signal);\n };\n return RequestOptions;\n}());\nexports.RequestOptions = RequestOptions;\nvar ResponseHandler = /** @class */ (function () {\n function ResponseHandler(response, signal) {\n this.axiosPromise = response;\n this.signal = signal;\n }\n ResponseHandler.prototype.handle = function (consumer) {\n return __awaiter(this, void 0, void 0, function () {\n var axiosResponse, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if ((0, lodash_1.isUndefined)(consumer)) {\n throw new Error('consumer must be defined');\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, this.axiosPromise];\n case 2:\n axiosResponse = _a.sent();\n return [2 /*return*/, consumer(axiosResponse)];\n case 3:\n e_1 = _a.sent();\n if (axios_1.default.isCancel(e_1)) {\n (0, abort_1.throwAbortError)(this.signal, 'Request Aborted');\n }\n if (e_1 instanceof BringgException_1.BringgException) {\n throw e_1;\n }\n return [2 /*return*/, consumer(e_1)];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return ResponseHandler;\n}());\nexports.ResponseHandler = ResponseHandler;\nfunction get(axiosInstance, host, uri, queryString, signal) {\n return new ResponseHandler(axiosInstance.get(\"\".concat(host).concat(uri), { params: queryString, signal: signal }), signal);\n}\nfunction post(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.post(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction put(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.put(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction patch(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.patch(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction remove(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.delete(\"\".concat(host).concat(uri), { params: queryString, data: payload, signal: signal }), signal);\n}\nfunction routify(axiosInstance, endpoint, route, routeParams, queryString, payload, signal) {\n switch (route.httpMethod) {\n case 0 /* HttpMethod.GET */:\n return get(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, signal);\n case 1 /* HttpMethod.POST */:\n return post(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 2 /* HttpMethod.PUT */:\n return put(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 3 /* HttpMethod.PATCH */:\n return patch(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 4 /* HttpMethod.DELETE */:\n return remove(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n }\n}\nfunction wrapWithInterceptors(axios) {\n axios.interceptors.request.use(function (req) {\n var method = req.method, url = req.url, params = req.params, headers = req.headers, data = req.data;\n try {\n Logger_1.default.debug('REQUEST:', method.toUpperCase(), url);\n }\n catch (e) { }\n 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 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 try {\n Logger_1.default.trace('RESPONSE-headers:', headers);\n Logger_1.default.trace('RESPONSE-data:', data);\n }\n catch (e) { }\n return res;\n });\n return axios;\n}\nfunction axiosInstance(clientId, authenticationToken, headers, responseType, timeout, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, authenticationToken: authenticationToken, headers: headers, responseType: responseType, timeout: timeout, signal: signal })));\n}\nfunction anonymousAxiosInstance(clientId, headers, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, headers: headers, signal: signal })));\n}\nvar AuthorizedServiceRequest = /** @class */ (function () {\n function AuthorizedServiceRequest(clientId, authToken) {\n this.authToken = authToken;\n this.clientId = clientId;\n }\n AuthorizedServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload, headers, responseType, timeout, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(axiosInstance(this.clientId, this.authToken, headers, responseType, timeout), endpoint, route, routeParams, queryString, payload, signal);\n };\n return AuthorizedServiceRequest;\n}());\nexports.AuthorizedServiceRequest = AuthorizedServiceRequest;\nvar AnonymousServiceRequest = /** @class */ (function () {\n function AnonymousServiceRequest(clientId, headers) {\n this.clientId = clientId;\n this.headers = headers;\n }\n AnonymousServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(anonymousAxiosInstance(this.clientId, this.headers, signal), endpoint, route, routeParams, queryString, payload);\n };\n return AnonymousServiceRequest;\n}());\nexports.AnonymousServiceRequest = AnonymousServiceRequest;\n//# sourceMappingURL=ServiceRequest.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Services/ServiceRequest.js?");
2596
2596
 
2597
2597
  /***/ }),
2598
2598
 
@@ -3593,7 +3593,7 @@ eval("\nvar __assign = (this && this.__assign) || function () {\n __assign =
3593
3593
  /***/ (function(module, exports, __webpack_require__) {
3594
3594
 
3595
3595
  "use strict";
3596
- 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};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar data_entity_1 = __webpack_require__(/*! ./data-entity */ \"./dist/data-entity.js\");\nvar StorableDataService = /** @class */ (function () {\n function StorableDataService(dataStore, mapper, extraDataStores) {\n this.dataStore = dataStore;\n this.extraDataStores = extraDataStores || [];\n this.mapper = mapper || (function (item) { return item; });\n }\n StorableDataService.prototype.loadAll = function (action, loadFunc, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n var unloadedItems, shouldLoad, groupValue, items, mappedItems_1;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n unloadedItems = [];\n shouldLoad = false;\n if (Array.isArray(options.groupValue)) {\n unloadedItems = options.groupValue.filter(function (value) { return !_this.dataStore.isGroupInitialized(options.groupType, value); });\n shouldLoad = unloadedItems.length > 0;\n groupValue = unloadedItems;\n }\n else {\n shouldLoad = !this.dataStore.isGroupInitialized(options.groupType, options.groupValue);\n groupValue = options.groupValue;\n }\n if (!(!options.useCache || shouldLoad)) return [3 /*break*/, 2];\n return [4 /*yield*/, loadFunc(unloadedItems.length > 0 ? unloadedItems : undefined)];\n case 1:\n items = _a.sent();\n mappedItems_1 = items.map(function (item) { return _this.mapper(item, action); });\n if (options.groupType) {\n this.dataStore.setGroup(options.groupType, groupValue, mappedItems_1);\n }\n else {\n this.dataStore.setAll(mappedItems_1);\n }\n this.extraDataStores.forEach(function (dataStore) { return dataStore.setMany(mappedItems_1, options.fields); });\n _a.label = 2;\n case 2: return [2 /*return*/, options.groupType\n ? this.dataStore.getGroup(options.groupType, options.groupValue)\n : this.dataStore.getAll()];\n }\n });\n });\n };\n StorableDataService.prototype.loadMany = function (action, loadFunc, ids, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n var items, mappedItems_2, unloadedIds, items, clientItems;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!!options.useCache) return [3 /*break*/, 2];\n return [4 /*yield*/, loadFunc(ids)];\n case 1:\n items = _a.sent();\n mappedItems_2 = items.map(function (item) { return _this.mapper(item, action, options.fields); });\n this.dataStore.setMany(mappedItems_2);\n this.extraDataStores.forEach(function (dataStore) { return dataStore.setMany(mappedItems_2, options.fields); });\n return [2 /*return*/, mappedItems_2];\n case 2:\n unloadedIds = ids.filter(function (id) {\n var item = _this.dataStore.get(id);\n if (!item) {\n return true;\n }\n return _this.extraDataStores.some(function (dataStore) { return !dataStore.has(item, options.fields); });\n });\n if (!(ids.length === 0 || unloadedIds.length > 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, loadFunc(unloadedIds)];\n case 3:\n items = _a.sent();\n clientItems = this.updateManyInStores(items, action, options.fields);\n if (ids.length === 0) {\n return [2 /*return*/, clientItems];\n }\n _a.label = 4;\n case 4: return [2 /*return*/, ids.map(function (id) { return _this.dataStore.get(id); })];\n }\n });\n });\n };\n StorableDataService.prototype.load = function (action, loadFunc, id, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n var item;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(!options.useCache || !this.dataStore.get(id))) return [3 /*break*/, 2];\n return [4 /*yield*/, loadFunc()];\n case 1:\n item = _a.sent();\n this.updateInStores(item, action);\n _a.label = 2;\n case 2: return [2 /*return*/, this.dataStore.get(id)];\n }\n });\n });\n };\n StorableDataService.prototype.modify = function (action, updateFunc) {\n return __awaiter(this, void 0, void 0, function () {\n var item;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, updateFunc()];\n case 1:\n item = _a.sent();\n return [2 /*return*/, this.updateInStores(item, action)];\n }\n });\n });\n };\n StorableDataService.prototype.modifyMany = function (action, updateFunc) {\n return __awaiter(this, void 0, void 0, function () {\n var items;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, updateFunc()];\n case 1:\n items = _a.sent();\n return [2 /*return*/, this.updateManyInStores(items, action)];\n }\n });\n });\n };\n StorableDataService.prototype.delete = function (action, deleteFunc, id) {\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*/, deleteFunc()];\n case 1:\n _a.sent();\n return [2 /*return*/, this.removeFromStores(id)];\n }\n });\n });\n };\n StorableDataService.prototype.updateInStores = function (item, action, fields) {\n return this.updateManyInStores([item], action, fields)[0];\n };\n StorableDataService.prototype.updateManyInStores = function (items, action, fields) {\n var _this = this;\n var clientItems = items.map(function (item) { return _this.mapper(item, action, fields); });\n this.dataStore.setMany(clientItems);\n this.extraDataStores.forEach(function (dataStore) { return dataStore.setMany(clientItems, fields); });\n return clientItems;\n };\n StorableDataService.prototype.removeFromStores = function (id) {\n var item = this.dataStore.get(id);\n this.dataStore.remove(id);\n this.extraDataStores.forEach(function (dataStore) { return dataStore.remove(id); });\n return item;\n };\n StorableDataService.prototype.getFromStores = function (ids, fields) {\n var _this = this;\n return ids\n .map(function (id) {\n var item = _this.dataStore.get(id);\n return item && (!fields || _this.extraDataStores.every(function (dataStore) { return dataStore.has(item, fields); }))\n ? item\n : undefined;\n })\n .filter(Boolean);\n };\n return StorableDataService;\n}());\nexports.default = StorableDataService;\n//# sourceMappingURL=storable-data-service.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/storable-data-service.js?");
3596
+ 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};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar data_entity_1 = __webpack_require__(/*! ./data-entity */ \"./dist/data-entity.js\");\nvar StorableDataService = /** @class */ (function () {\n function StorableDataService(dataStore, mapper, extraDataStores) {\n this.dataStore = dataStore;\n this.extraDataStores = extraDataStores || [];\n this.mapper = mapper || (function (item) { return item; });\n }\n StorableDataService.prototype.loadAll = function (action, loadFunc, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n var unloadedItems, shouldLoad, groupValue, loadFnIdsParams, items, mappedItems_1;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n unloadedItems = [];\n shouldLoad = false;\n if (Array.isArray(options.groupValue)) {\n unloadedItems = options.groupValue.filter(function (value) { return !_this.dataStore.isGroupInitialized(options.groupType, value); });\n shouldLoad = unloadedItems.length > 0;\n groupValue = unloadedItems;\n }\n else {\n shouldLoad = !this.dataStore.isGroupInitialized(options.groupType, options.groupValue);\n groupValue = options.groupValue;\n }\n if (!(!options.useCache || shouldLoad)) return [3 /*break*/, 2];\n loadFnIdsParams = groupValue;\n if (!options.useCache) {\n loadFnIdsParams = options.groupValue;\n }\n return [4 /*yield*/, loadFunc(loadFnIdsParams)];\n case 1:\n items = _a.sent();\n mappedItems_1 = items.map(function (item) { return _this.mapper(item, action); });\n if (options.groupType) {\n this.dataStore.setGroup(options.groupType, groupValue, mappedItems_1);\n }\n else {\n this.dataStore.setAll(mappedItems_1);\n }\n this.extraDataStores.forEach(function (dataStore) { return dataStore.setMany(mappedItems_1, options.fields); });\n _a.label = 2;\n case 2: return [2 /*return*/, options.groupType\n ? this.dataStore.getGroup(options.groupType, options.groupValue)\n : this.dataStore.getAll()];\n }\n });\n });\n };\n StorableDataService.prototype.loadMany = function (action, loadFunc, ids, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n var items, mappedItems_2, unloadedIds, items, clientItems;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!!options.useCache) return [3 /*break*/, 2];\n return [4 /*yield*/, loadFunc(ids)];\n case 1:\n items = _a.sent();\n mappedItems_2 = items.map(function (item) { return _this.mapper(item, action, options.fields); });\n this.dataStore.setMany(mappedItems_2);\n this.extraDataStores.forEach(function (dataStore) { return dataStore.setMany(mappedItems_2, options.fields); });\n return [2 /*return*/, mappedItems_2];\n case 2:\n unloadedIds = ids.filter(function (id) {\n var item = _this.dataStore.get(id);\n if (!item) {\n return true;\n }\n return _this.extraDataStores.some(function (dataStore) { return !dataStore.has(item, options.fields); });\n });\n if (!(ids.length === 0 || unloadedIds.length > 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, loadFunc(unloadedIds)];\n case 3:\n items = _a.sent();\n clientItems = this.updateManyInStores(items, action, options.fields);\n if (ids.length === 0) {\n return [2 /*return*/, clientItems];\n }\n _a.label = 4;\n case 4: return [2 /*return*/, ids.map(function (id) { return _this.dataStore.get(id); })];\n }\n });\n });\n };\n StorableDataService.prototype.load = function (action, loadFunc, id, options) {\n if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }\n return __awaiter(this, void 0, void 0, function () {\n var item;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(!options.useCache || !this.dataStore.get(id))) return [3 /*break*/, 2];\n return [4 /*yield*/, loadFunc()];\n case 1:\n item = _a.sent();\n this.updateInStores(item, action);\n _a.label = 2;\n case 2: return [2 /*return*/, this.dataStore.get(id)];\n }\n });\n });\n };\n StorableDataService.prototype.modify = function (action, updateFunc) {\n return __awaiter(this, void 0, void 0, function () {\n var item;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, updateFunc()];\n case 1:\n item = _a.sent();\n return [2 /*return*/, this.updateInStores(item, action)];\n }\n });\n });\n };\n StorableDataService.prototype.modifyMany = function (action, updateFunc) {\n return __awaiter(this, void 0, void 0, function () {\n var items;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, updateFunc()];\n case 1:\n items = _a.sent();\n return [2 /*return*/, this.updateManyInStores(items, action)];\n }\n });\n });\n };\n StorableDataService.prototype.delete = function (action, deleteFunc, id) {\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*/, deleteFunc()];\n case 1:\n _a.sent();\n return [2 /*return*/, this.removeFromStores(id)];\n }\n });\n });\n };\n StorableDataService.prototype.updateInStores = function (item, action, fields) {\n return this.updateManyInStores([item], action, fields)[0];\n };\n StorableDataService.prototype.updateManyInStores = function (items, action, fields) {\n var _this = this;\n var clientItems = items.map(function (item) { return _this.mapper(item, action, fields); });\n this.dataStore.setMany(clientItems);\n this.extraDataStores.forEach(function (dataStore) { return dataStore.setMany(clientItems, fields); });\n return clientItems;\n };\n StorableDataService.prototype.removeFromStores = function (id) {\n var item = this.dataStore.get(id);\n this.dataStore.remove(id);\n this.extraDataStores.forEach(function (dataStore) { return dataStore.remove(id); });\n return item;\n };\n StorableDataService.prototype.getFromStores = function (ids, fields) {\n var _this = this;\n return ids\n .map(function (id) {\n var item = _this.dataStore.get(id);\n return item && (!fields || _this.extraDataStores.every(function (dataStore) { return dataStore.has(item, fields); }))\n ? item\n : undefined;\n })\n .filter(Boolean);\n };\n return StorableDataService;\n}());\nexports.default = StorableDataService;\n//# sourceMappingURL=storable-data-service.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/storable-data-service.js?");
3597
3597
 
3598
3598
  /***/ }),
3599
3599