@bringg/dashboard-sdk 0.10.0 → 0.10.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.
@@ -1253,7 +1253,7 @@ eval("\nvar __decorate = (this && this.__decorate) || function (decorators, targ
1253
1253
  /***/ (function(module, exports, __webpack_require__) {
1254
1254
 
1255
1255
  "use strict";
1256
- eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\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 (_) 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 Entity_1 = __webpack_require__(/*! ../../Core/Entity */ \"./dist/Core/Entity.js\");\nvar BaseRoute = '/merchant/merchant_configuration';\nvar Routes = {\n RESET_DELIVERY_PIN: BaseRoute + \"/delivery_pin_reset\",\n RESET_DESTINATION_PIN: BaseRoute + \"/destination_pin_reset\",\n GET_CSV_FIELDS: BaseRoute + \"/csv_upload_fields\",\n SET_CSV_FIELDS: BaseRoute + \"/csv_upload_fields\",\n GET_USER_CSV_FIELDS: BaseRoute + \"/user_csv_upload_fields\",\n SET_USER_CSV_FIELDS: BaseRoute + \"/user_csv_upload_fields\",\n DELIVERY_PIN_CHANGE: BaseRoute + \"/delivery_pin_change\",\n RESET_EMAIL_LOGO: BaseRoute + \"/email_logo_reset\",\n UPLOAD_LOGO: BaseRoute + \"/logo\",\n RESET_CLIENT_APP_LOGO: BaseRoute + \"/client_app_logo_reset\",\n GET_RATING_REASON_CONFIGURATION: BaseRoute + \"/rating_reasons\",\n SET_RATING_REASON_CONFIGURATION: BaseRoute + \"/rating_reasons\",\n REQUEST_BETA_PROGRAM: BaseRoute + \"/request_beta_program\",\n GET_TIP_DRIVER_CONFIGURATION: BaseRoute + \"/tip_driver\",\n SET_TIP_DRIVER_CONFIGURATION: BaseRoute + \"/tip_driver\",\n NOTIFY_CUSTOMERS: BaseRoute + \"/notify_customers\",\n GET_PUBLIC_TASK_FORM: BaseRoute + \"/public_task_form\",\n SET_PUBLIC_TASK_FORM: BaseRoute + \"/public_task_form\",\n RESET_PUBLIC_TASK_FORM_LOGO: BaseRoute + \"/reset_public_task_form_logo\",\n GET_MOBILE_TASK_FORM: BaseRoute + \"/mobile_task_form\",\n SET_MOBILE_TASK_FORM: BaseRoute + \"/mobile_task_form\",\n UPDATE_TABLE_CONFIGURATION: \"/dashboard_ui_configuration\"\n};\nvar MerchantConfigurationEntity = /** @class */ (function (_super) {\n __extends(MerchantConfigurationEntity, _super);\n function MerchantConfigurationEntity(session) {\n return _super.call(this, {\n session: session,\n entityName: 'merchant',\n routeSuffix: 'merchant_configuration',\n routes: []\n }) || this;\n }\n MerchantConfigurationEntity.prototype.updateMerchantConfigurationField = function (field, value) {\n var _a;\n this.service.session.update('merchantConfiguration', (_a = {}, _a[field] = value, _a));\n };\n MerchantConfigurationEntity.prototype.updateMerchantConfiguration = function (merchantConfiguration) {\n this.service.session.update('merchantConfiguration', merchantConfiguration);\n };\n MerchantConfigurationEntity.prototype.urlRequest = function (_a) {\n var route = _a.route, errorMessage = _a.errorMessage, fieldToUpdate = _a.fieldToUpdate, payload = _a.payload;\n return __awaiter(this, void 0, void 0, function () {\n var request, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n request = this.service.routeGenerator\n .post(route)\n .withExtractor(function (response) { return response.url; })\n .setException(errorMessage);\n if (payload) {\n request.withPayload(payload);\n }\n return [4 /*yield*/, request.invoke()];\n case 1:\n response = _b.sent();\n if (fieldToUpdate) {\n this.updateMerchantConfigurationField(fieldToUpdate, response);\n }\n return [2 /*return*/, response];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.resetDeliveryPin = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.urlRequest({\n route: Routes.RESET_DELIVERY_PIN,\n fieldToUpdate: 'delivery_pin',\n errorMessage: 'could not reset delivery pin'\n })];\n });\n });\n };\n MerchantConfigurationEntity.prototype.resetDestinationPin = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.urlRequest({\n route: Routes.RESET_DESTINATION_PIN,\n fieldToUpdate: 'destination_pin',\n errorMessage: 'could not reset destination pin'\n })];\n });\n });\n };\n MerchantConfigurationEntity.prototype.resetEmailLogo = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.urlRequest({\n route: Routes.RESET_EMAIL_LOGO,\n fieldToUpdate: 'email_logo',\n errorMessage: 'could not reset email logo'\n })];\n });\n });\n };\n MerchantConfigurationEntity.prototype.resetClientAppLogo = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.urlRequest({\n route: Routes.RESET_CLIENT_APP_LOGO,\n fieldToUpdate: 'logo',\n errorMessage: 'could not reset client app logo'\n })];\n });\n });\n };\n MerchantConfigurationEntity.prototype.uploadLogo = function (imageFile) {\n return __awaiter(this, void 0, void 0, function () {\n var formData;\n return __generator(this, function (_a) {\n formData = new FormData();\n formData.append('file', imageFile);\n return [2 /*return*/, this.service.routeGenerator\n .post(Routes.UPLOAD_LOGO)\n .withHeaders({ 'Content-Type': 'multipart/form-data' })\n .withPayload(formData)\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.get = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (this.service.session.merchantConfiguration) {\n return [2 /*return*/, this.service.session.merchantConfiguration];\n }\n return [4 /*yield*/, this.fetchConfiguration()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.fetchConfiguration = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this.service.session;\n return [4 /*yield*/, this.service.routeGenerator\n .get(BaseRoute + \"/\")\n .withExtractor(function (response) { return response; })\n .setException('could not fetch merchant_configuration')\n .invoke()];\n case 1:\n _a.merchantConfiguration = _b.sent();\n return [2 /*return*/, this.service.session.merchantConfiguration];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.update = function (diff) {\n return __awaiter(this, void 0, void 0, function () {\n var response;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .put(BaseRoute + \"/\")\n .withExtractor(function (response) { return response.merchant_configuration; })\n .setException('failed updating merchant_configuration')\n .withPayload(diff)\n .invoke()];\n case 1:\n response = _a.sent();\n this.updateMerchantConfiguration(response);\n return [2 /*return*/, response];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.getCsvFields = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .get(Routes.GET_CSV_FIELDS)\n .withExtractor(function (response) { return response.csv_upload_fields; })\n .setException('could not fetch csv fields configuration')\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.setCsvFields = function (csvFields) {\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(Routes.SET_CSV_FIELDS)\n .setException('could not set csv fields configuration')\n .withPayload({ csv_fields: csvFields })\n .invoke()];\n case 1:\n _a.sent();\n return [4 /*yield*/, this.getCsvFields()];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.getUserCsvFields = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .get(Routes.GET_USER_CSV_FIELDS)\n .withExtractor(function (response) { return response.csv_upload_fields; })\n .setException('could not fetch user csv fields configuration')\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.setUserCsvFields = function (csvFields) {\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(Routes.SET_USER_CSV_FIELDS)\n .setException('could not set user csv fields configuration')\n .withPayload({ csv_fields: csvFields })\n .invoke()];\n case 1:\n _a.sent();\n return [4 /*yield*/, this.getUserCsvFields()];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.deliveryPinChange = function (alternativePin) {\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.urlRequest({\n route: Routes.DELIVERY_PIN_CHANGE,\n fieldToUpdate: 'delivery_pin',\n errorMessage: \"failed updating delivery pin: \" + alternativePin,\n payload: { alternate_delivery_pin: alternativePin }\n })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.dashboardTableConfigurationUpdate = function (table_configuration) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .put(Routes.UPDATE_TABLE_CONFIGURATION)\n .withPayload({ dashboard_ui_configuration: { table_configuration: table_configuration } })\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.resetPublicTaskFormLogo = function () {\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.urlRequest({\n route: Routes.RESET_PUBLIC_TASK_FORM_LOGO,\n errorMessage: 'could not reset public task logo'\n })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.getRatingReasonConfiguration = function () {\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(Routes.GET_RATING_REASON_CONFIGURATION)\n .withExtractor(function (response) { return response.rating_reason_config; })\n .setException('could not fetch rating reason configuration')\n .invoke()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.setRatingReasonConfiguration = function (ratingReasonConfig) {\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(Routes.SET_RATING_REASON_CONFIGURATION)\n .setException('could not set merchant_configuration rating reason')\n .withPayload({ rating_reason_config: ratingReasonConfig })\n .invoke()];\n case 1:\n _a.sent();\n return [4 /*yield*/, this.getRatingReasonConfiguration()];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.requestBetaProgram = function (featureName) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .post(Routes.REQUEST_BETA_PROGRAM)\n .setException('could not set beta program')\n .withPayload({ feature_name: featureName })\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.getTipDriverConfiguration = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .get(Routes.GET_TIP_DRIVER_CONFIGURATION)\n .withExtractor(function (response) { return response.configuration; })\n .setException('could not get driver tip configuration')\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.setTipDriverConfiguration = function (configuration) {\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(Routes.SET_TIP_DRIVER_CONFIGURATION)\n .withExtractor(function (response) { return response.message; })\n .setException('could not set driver tip configuration')\n .withPayload({ tip_driver_configuration: configuration })\n .invoke()];\n case 1:\n _a.sent();\n return [4 /*yield*/, this.getTipDriverConfiguration()];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.notifyCustomers = function (text, url, sendAll, customerIds) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .post(Routes.NOTIFY_CUSTOMERS)\n .setException(\"could not notify customers: \" + customerIds)\n .withPayload({\n notification_text: text,\n notification_url: url,\n send_all: sendAll,\n customer_ids: customerIds\n })\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.getPublicTaskForm = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .get(Routes.GET_PUBLIC_TASK_FORM)\n .withExtractor(function (response) { return response.public_task_forms; })\n .setException('could not fetch public task form')\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.setPublicTaskForm = function (color, forms) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .post(Routes.SET_PUBLIC_TASK_FORM)\n .withExtractor(function (response) { return response.public_task_forms; })\n .setException('could not set public task form')\n .withPayload({\n configuration: {\n color: color,\n forms: forms\n }\n })\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.getMobileTaskForm = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .get(Routes.GET_MOBILE_TASK_FORM)\n .withExtractor(function (response) { return response.mobile_task_form; })\n .setException('could not fetch mobile task form')\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.setMobileTaskForm = function (form) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .post(Routes.SET_MOBILE_TASK_FORM)\n .withExtractor(function (response) { return response.mobile_task_form; })\n .setException('could not set mobile task form')\n .withPayload({ mobile_task_form: form })\n .invoke()];\n });\n });\n };\n return MerchantConfigurationEntity;\n}(Entity_1.default));\nexports.default = MerchantConfigurationEntity;\n//# sourceMappingURL=MerchantConfigurationEntity.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/MerchantConfiguration/Entity/MerchantConfigurationEntity.js?");
1256
+ eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\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 (_) 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 Entity_1 = __webpack_require__(/*! ../../Core/Entity */ \"./dist/Core/Entity.js\");\nvar BaseRoute = '/merchant/merchant_configuration';\nvar Routes = {\n RESET_DELIVERY_PIN: BaseRoute + \"/delivery_pin_reset\",\n RESET_DESTINATION_PIN: BaseRoute + \"/destination_pin_reset\",\n GET_CSV_FIELDS: BaseRoute + \"/csv_upload_fields\",\n SET_CSV_FIELDS: BaseRoute + \"/csv_upload_fields\",\n GET_USER_CSV_FIELDS: BaseRoute + \"/user_csv_upload_fields\",\n SET_USER_CSV_FIELDS: BaseRoute + \"/user_csv_upload_fields\",\n DELIVERY_PIN_CHANGE: BaseRoute + \"/delivery_pin_change\",\n RESET_EMAIL_LOGO: BaseRoute + \"/email_logo_reset\",\n UPLOAD_LOGO: BaseRoute + \"/logo\",\n RESET_CLIENT_APP_LOGO: BaseRoute + \"/client_app_logo_reset\",\n GET_RATING_REASON_CONFIGURATION: BaseRoute + \"/rating_reasons\",\n SET_RATING_REASON_CONFIGURATION: BaseRoute + \"/rating_reasons\",\n REQUEST_BETA_PROGRAM: BaseRoute + \"/request_beta_program\",\n GET_TIP_DRIVER_CONFIGURATION: BaseRoute + \"/tip_driver\",\n SET_TIP_DRIVER_CONFIGURATION: BaseRoute + \"/tip_driver\",\n NOTIFY_CUSTOMERS: BaseRoute + \"/notify_customers\",\n GET_PUBLIC_TASK_FORM: BaseRoute + \"/public_task_form\",\n SET_PUBLIC_TASK_FORM: BaseRoute + \"/public_task_form\",\n RESET_PUBLIC_TASK_FORM_LOGO: BaseRoute + \"/reset_public_task_form_logo\",\n GET_MOBILE_TASK_FORM: BaseRoute + \"/mobile_task_form\",\n SET_MOBILE_TASK_FORM: BaseRoute + \"/mobile_task_form\",\n UPDATE_DASHBOARD_UI_CONFIGURATION_ON_USER_LEVEL: '/dashboard_ui_configuration',\n UPDATE_DASHBOARD_UI_CONFIGURATION_ON_MERCHANT_LEVEL: '/dashboard_ui_configuration/merchant_level'\n};\nvar MerchantConfigurationEntity = /** @class */ (function (_super) {\n __extends(MerchantConfigurationEntity, _super);\n function MerchantConfigurationEntity(session) {\n return _super.call(this, {\n session: session,\n entityName: 'merchant',\n routeSuffix: 'merchant_configuration',\n routes: []\n }) || this;\n }\n MerchantConfigurationEntity.prototype.updateMerchantConfigurationField = function (field, value) {\n var _a;\n this.service.session.update('merchantConfiguration', (_a = {}, _a[field] = value, _a));\n };\n MerchantConfigurationEntity.prototype.updateMerchantConfiguration = function (merchantConfiguration) {\n this.service.session.update('merchantConfiguration', merchantConfiguration);\n };\n MerchantConfigurationEntity.prototype.urlRequest = function (_a) {\n var route = _a.route, errorMessage = _a.errorMessage, fieldToUpdate = _a.fieldToUpdate, payload = _a.payload;\n return __awaiter(this, void 0, void 0, function () {\n var request, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n request = this.service.routeGenerator\n .post(route)\n .withExtractor(function (response) { return response.url; })\n .setException(errorMessage);\n if (payload) {\n request.withPayload(payload);\n }\n return [4 /*yield*/, request.invoke()];\n case 1:\n response = _b.sent();\n if (fieldToUpdate) {\n this.updateMerchantConfigurationField(fieldToUpdate, response);\n }\n return [2 /*return*/, response];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.resetDeliveryPin = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.urlRequest({\n route: Routes.RESET_DELIVERY_PIN,\n fieldToUpdate: 'delivery_pin',\n errorMessage: 'could not reset delivery pin'\n })];\n });\n });\n };\n MerchantConfigurationEntity.prototype.resetDestinationPin = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.urlRequest({\n route: Routes.RESET_DESTINATION_PIN,\n fieldToUpdate: 'destination_pin',\n errorMessage: 'could not reset destination pin'\n })];\n });\n });\n };\n MerchantConfigurationEntity.prototype.resetEmailLogo = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.urlRequest({\n route: Routes.RESET_EMAIL_LOGO,\n fieldToUpdate: 'email_logo',\n errorMessage: 'could not reset email logo'\n })];\n });\n });\n };\n MerchantConfigurationEntity.prototype.resetClientAppLogo = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.urlRequest({\n route: Routes.RESET_CLIENT_APP_LOGO,\n fieldToUpdate: 'logo',\n errorMessage: 'could not reset client app logo'\n })];\n });\n });\n };\n MerchantConfigurationEntity.prototype.uploadLogo = function (imageFile) {\n return __awaiter(this, void 0, void 0, function () {\n var formData;\n return __generator(this, function (_a) {\n formData = new FormData();\n formData.append('file', imageFile);\n return [2 /*return*/, this.service.routeGenerator\n .post(Routes.UPLOAD_LOGO)\n .withHeaders({ 'Content-Type': 'multipart/form-data' })\n .withPayload(formData)\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.get = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (this.service.session.merchantConfiguration) {\n return [2 /*return*/, this.service.session.merchantConfiguration];\n }\n return [4 /*yield*/, this.fetchConfiguration()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.fetchConfiguration = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this.service.session;\n return [4 /*yield*/, this.service.routeGenerator\n .get(BaseRoute + \"/\")\n .withExtractor(function (response) { return response; })\n .setException('could not fetch merchant_configuration')\n .invoke()];\n case 1:\n _a.merchantConfiguration = _b.sent();\n return [2 /*return*/, this.service.session.merchantConfiguration];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.update = function (diff) {\n return __awaiter(this, void 0, void 0, function () {\n var response;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .put(BaseRoute + \"/\")\n .withExtractor(function (response) { return response.merchant_configuration; })\n .setException('failed updating merchant_configuration')\n .withPayload(diff)\n .invoke()];\n case 1:\n response = _a.sent();\n this.updateMerchantConfiguration(response);\n return [2 /*return*/, response];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.getCsvFields = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .get(Routes.GET_CSV_FIELDS)\n .withExtractor(function (response) { return response.csv_upload_fields; })\n .setException('could not fetch csv fields configuration')\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.setCsvFields = function (csvFields) {\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(Routes.SET_CSV_FIELDS)\n .setException('could not set csv fields configuration')\n .withPayload({ csv_fields: csvFields })\n .invoke()];\n case 1:\n _a.sent();\n return [4 /*yield*/, this.getCsvFields()];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.getUserCsvFields = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .get(Routes.GET_USER_CSV_FIELDS)\n .withExtractor(function (response) { return response.csv_upload_fields; })\n .setException('could not fetch user csv fields configuration')\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.setUserCsvFields = function (csvFields) {\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(Routes.SET_USER_CSV_FIELDS)\n .setException('could not set user csv fields configuration')\n .withPayload({ csv_fields: csvFields })\n .invoke()];\n case 1:\n _a.sent();\n return [4 /*yield*/, this.getUserCsvFields()];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.deliveryPinChange = function (alternativePin) {\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.urlRequest({\n route: Routes.DELIVERY_PIN_CHANGE,\n fieldToUpdate: 'delivery_pin',\n errorMessage: \"failed updating delivery pin: \" + alternativePin,\n payload: { alternate_delivery_pin: alternativePin }\n })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.dashboardTableConfigurationUpdate = function (table_configuration) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .put(Routes.UPDATE_DASHBOARD_UI_CONFIGURATION_ON_USER_LEVEL)\n .withPayload({ dashboard_ui_configuration: { table_configuration: table_configuration } })\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.setDashboardUiConfigurationOnMerchantLevel = function (dashboardUiConfiguration) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .put(Routes.UPDATE_DASHBOARD_UI_CONFIGURATION_ON_MERCHANT_LEVEL)\n .withPayload({ dashboard_ui_configuration: dashboardUiConfiguration })\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.resetPublicTaskFormLogo = function () {\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.urlRequest({\n route: Routes.RESET_PUBLIC_TASK_FORM_LOGO,\n errorMessage: 'could not reset public task logo'\n })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.getRatingReasonConfiguration = function () {\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(Routes.GET_RATING_REASON_CONFIGURATION)\n .withExtractor(function (response) { return response.rating_reason_config; })\n .setException('could not fetch rating reason configuration')\n .invoke()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.setRatingReasonConfiguration = function (ratingReasonConfig) {\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(Routes.SET_RATING_REASON_CONFIGURATION)\n .setException('could not set merchant_configuration rating reason')\n .withPayload({ rating_reason_config: ratingReasonConfig })\n .invoke()];\n case 1:\n _a.sent();\n return [4 /*yield*/, this.getRatingReasonConfiguration()];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.requestBetaProgram = function (featureName) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .post(Routes.REQUEST_BETA_PROGRAM)\n .setException('could not set beta program')\n .withPayload({ feature_name: featureName })\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.getTipDriverConfiguration = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .get(Routes.GET_TIP_DRIVER_CONFIGURATION)\n .withExtractor(function (response) { return response.configuration; })\n .setException('could not get driver tip configuration')\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.setTipDriverConfiguration = function (configuration) {\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(Routes.SET_TIP_DRIVER_CONFIGURATION)\n .withExtractor(function (response) { return response.message; })\n .setException('could not set driver tip configuration')\n .withPayload({ tip_driver_configuration: configuration })\n .invoke()];\n case 1:\n _a.sent();\n return [4 /*yield*/, this.getTipDriverConfiguration()];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n MerchantConfigurationEntity.prototype.notifyCustomers = function (text, url, sendAll, customerIds) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .post(Routes.NOTIFY_CUSTOMERS)\n .setException(\"could not notify customers: \" + customerIds)\n .withPayload({\n notification_text: text,\n notification_url: url,\n send_all: sendAll,\n customer_ids: customerIds\n })\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.getPublicTaskForm = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .get(Routes.GET_PUBLIC_TASK_FORM)\n .withExtractor(function (response) { return response.public_task_forms; })\n .setException('could not fetch public task form')\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.setPublicTaskForm = function (color, forms) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .post(Routes.SET_PUBLIC_TASK_FORM)\n .withExtractor(function (response) { return response.public_task_forms; })\n .setException('could not set public task form')\n .withPayload({\n configuration: {\n color: color,\n forms: forms\n }\n })\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.getMobileTaskForm = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .get(Routes.GET_MOBILE_TASK_FORM)\n .withExtractor(function (response) { return response.mobile_task_form; })\n .setException('could not fetch mobile task form')\n .invoke()];\n });\n });\n };\n MerchantConfigurationEntity.prototype.setMobileTaskForm = function (form) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.service.routeGenerator\n .post(Routes.SET_MOBILE_TASK_FORM)\n .withExtractor(function (response) { return response.mobile_task_form; })\n .setException('could not set mobile task form')\n .withPayload({ mobile_task_form: form })\n .invoke()];\n });\n });\n };\n return MerchantConfigurationEntity;\n}(Entity_1.default));\nexports.default = MerchantConfigurationEntity;\n//# sourceMappingURL=MerchantConfigurationEntity.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/MerchantConfiguration/Entity/MerchantConfigurationEntity.js?");
1257
1257
 
1258
1258
  /***/ }),
1259
1259
 
@@ -1279,7 +1279,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport
1279
1279
  /***/ (function(module, exports, __webpack_require__) {
1280
1280
 
1281
1281
  "use strict";
1282
- 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 (_) 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.MerchantConfigurationApi = void 0;\nvar MerchantConfigurationEntity_1 = __webpack_require__(/*! ./Entity/MerchantConfigurationEntity */ \"./dist/MerchantConfiguration/Entity/MerchantConfigurationEntity.js\");\nvar lodash_1 = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\nvar MerchantConfiguration_consts_1 = __webpack_require__(/*! ./MerchantConfiguration.consts */ \"./dist/MerchantConfiguration/MerchantConfiguration.consts.js\");\nvar MerchantConfigurationApi = /** @class */ (function () {\n function MerchantConfigurationApi(session) {\n this.entity = new MerchantConfigurationEntity_1.default(session);\n }\n MerchantConfigurationApi.prototype.get = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.get()];\n });\n });\n };\n MerchantConfigurationApi.prototype.fetchConfiguration = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.fetchConfiguration()];\n });\n });\n };\n MerchantConfigurationApi.prototype.update = function (diff) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.update(lodash_1.pick(diff, MerchantConfiguration_consts_1.MerchantConfigurationKeys))];\n });\n });\n };\n MerchantConfigurationApi.prototype.uploadLogo = function (imageFile) {\n return this.entity.uploadLogo(imageFile);\n };\n MerchantConfigurationApi.prototype.resetDeliveryPin = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.resetDeliveryPin()];\n });\n });\n };\n MerchantConfigurationApi.prototype.resetDestinationPin = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.resetDestinationPin()];\n });\n });\n };\n MerchantConfigurationApi.prototype.getCsvFields = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.getCsvFields()];\n });\n });\n };\n MerchantConfigurationApi.prototype.setCsvFields = function (csvFields) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setCsvFields(csvFields)];\n });\n });\n };\n MerchantConfigurationApi.prototype.getUserCsvFields = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.getUserCsvFields()];\n });\n });\n };\n MerchantConfigurationApi.prototype.dashboardTableConfigurationUpdate = function (table_configuration) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.dashboardTableConfigurationUpdate(table_configuration)];\n });\n });\n };\n MerchantConfigurationApi.prototype.setUserCsvFields = function (csvFields) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setUserCsvFields(csvFields)];\n });\n });\n };\n MerchantConfigurationApi.prototype.deliveryPinChange = function (alternativePin) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.deliveryPinChange(alternativePin)];\n });\n });\n };\n MerchantConfigurationApi.prototype.resetEmailLogo = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.resetEmailLogo()];\n });\n });\n };\n MerchantConfigurationApi.prototype.resetClientAppLogo = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.resetClientAppLogo()];\n });\n });\n };\n MerchantConfigurationApi.prototype.resetPublicTaskFormLogo = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.resetPublicTaskFormLogo()];\n });\n });\n };\n MerchantConfigurationApi.prototype.getRatingReasonConfiguration = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.getRatingReasonConfiguration()];\n });\n });\n };\n MerchantConfigurationApi.prototype.setRatingReasonConfiguration = function (ratingReasonConfig) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setRatingReasonConfiguration(ratingReasonConfig)];\n });\n });\n };\n MerchantConfigurationApi.prototype.requestBetaProgram = function (featureName) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.requestBetaProgram(featureName)];\n });\n });\n };\n MerchantConfigurationApi.prototype.getTipDriverConfiguration = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.getTipDriverConfiguration()];\n });\n });\n };\n MerchantConfigurationApi.prototype.setTipDriverConfiguration = function (configuration) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setTipDriverConfiguration(configuration)];\n });\n });\n };\n MerchantConfigurationApi.prototype.notifyCustomers = function (text, url, sendAll, customerIds) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.notifyCustomers(text, url, sendAll, customerIds)];\n });\n });\n };\n MerchantConfigurationApi.prototype.getPublicTaskForm = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.getPublicTaskForm()];\n });\n });\n };\n MerchantConfigurationApi.prototype.setPublicTaskForm = function (color, forms) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setPublicTaskForm(color, forms)];\n });\n });\n };\n MerchantConfigurationApi.prototype.getMobileTaskForm = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.getMobileTaskForm()];\n });\n });\n };\n MerchantConfigurationApi.prototype.setMobileTaskForm = function (form) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setMobileTaskForm(form)];\n });\n });\n };\n return MerchantConfigurationApi;\n}());\nexports.MerchantConfigurationApi = MerchantConfigurationApi;\n//# sourceMappingURL=MerchantConfigurationApi.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/MerchantConfiguration/MerchantConfigurationApi.js?");
1282
+ 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 (_) 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.MerchantConfigurationApi = void 0;\nvar MerchantConfigurationEntity_1 = __webpack_require__(/*! ./Entity/MerchantConfigurationEntity */ \"./dist/MerchantConfiguration/Entity/MerchantConfigurationEntity.js\");\nvar lodash_1 = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\nvar MerchantConfiguration_consts_1 = __webpack_require__(/*! ./MerchantConfiguration.consts */ \"./dist/MerchantConfiguration/MerchantConfiguration.consts.js\");\nvar MerchantConfigurationApi = /** @class */ (function () {\n function MerchantConfigurationApi(session) {\n this.entity = new MerchantConfigurationEntity_1.default(session);\n }\n MerchantConfigurationApi.prototype.get = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.get()];\n });\n });\n };\n MerchantConfigurationApi.prototype.fetchConfiguration = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.fetchConfiguration()];\n });\n });\n };\n MerchantConfigurationApi.prototype.update = function (diff) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.update(lodash_1.pick(diff, MerchantConfiguration_consts_1.MerchantConfigurationKeys))];\n });\n });\n };\n MerchantConfigurationApi.prototype.uploadLogo = function (imageFile) {\n return this.entity.uploadLogo(imageFile);\n };\n MerchantConfigurationApi.prototype.resetDeliveryPin = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.resetDeliveryPin()];\n });\n });\n };\n MerchantConfigurationApi.prototype.resetDestinationPin = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.resetDestinationPin()];\n });\n });\n };\n MerchantConfigurationApi.prototype.getCsvFields = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.getCsvFields()];\n });\n });\n };\n MerchantConfigurationApi.prototype.setCsvFields = function (csvFields) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setCsvFields(csvFields)];\n });\n });\n };\n MerchantConfigurationApi.prototype.getUserCsvFields = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.getUserCsvFields()];\n });\n });\n };\n MerchantConfigurationApi.prototype.dashboardTableConfigurationUpdate = function (table_configuration) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.dashboardTableConfigurationUpdate(table_configuration)];\n });\n });\n };\n MerchantConfigurationApi.prototype.setDashboardUiConfigurationOnMerchantLevel = function (dashboardUiConfiguration) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setDashboardUiConfigurationOnMerchantLevel(dashboardUiConfiguration)];\n });\n });\n };\n MerchantConfigurationApi.prototype.setUserCsvFields = function (csvFields) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setUserCsvFields(csvFields)];\n });\n });\n };\n MerchantConfigurationApi.prototype.deliveryPinChange = function (alternativePin) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.deliveryPinChange(alternativePin)];\n });\n });\n };\n MerchantConfigurationApi.prototype.resetEmailLogo = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.resetEmailLogo()];\n });\n });\n };\n MerchantConfigurationApi.prototype.resetClientAppLogo = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.resetClientAppLogo()];\n });\n });\n };\n MerchantConfigurationApi.prototype.resetPublicTaskFormLogo = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.resetPublicTaskFormLogo()];\n });\n });\n };\n MerchantConfigurationApi.prototype.getRatingReasonConfiguration = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.getRatingReasonConfiguration()];\n });\n });\n };\n MerchantConfigurationApi.prototype.setRatingReasonConfiguration = function (ratingReasonConfig) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setRatingReasonConfiguration(ratingReasonConfig)];\n });\n });\n };\n MerchantConfigurationApi.prototype.requestBetaProgram = function (featureName) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.requestBetaProgram(featureName)];\n });\n });\n };\n MerchantConfigurationApi.prototype.getTipDriverConfiguration = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.getTipDriverConfiguration()];\n });\n });\n };\n MerchantConfigurationApi.prototype.setTipDriverConfiguration = function (configuration) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setTipDriverConfiguration(configuration)];\n });\n });\n };\n MerchantConfigurationApi.prototype.notifyCustomers = function (text, url, sendAll, customerIds) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.notifyCustomers(text, url, sendAll, customerIds)];\n });\n });\n };\n MerchantConfigurationApi.prototype.getPublicTaskForm = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.getPublicTaskForm()];\n });\n });\n };\n MerchantConfigurationApi.prototype.setPublicTaskForm = function (color, forms) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setPublicTaskForm(color, forms)];\n });\n });\n };\n MerchantConfigurationApi.prototype.getMobileTaskForm = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.getMobileTaskForm()];\n });\n });\n };\n MerchantConfigurationApi.prototype.setMobileTaskForm = function (form) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.entity.setMobileTaskForm(form)];\n });\n });\n };\n return MerchantConfigurationApi;\n}());\nexports.MerchantConfigurationApi = MerchantConfigurationApi;\n//# sourceMappingURL=MerchantConfigurationApi.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/MerchantConfiguration/MerchantConfigurationApi.js?");
1283
1283
 
1284
1284
  /***/ }),
1285
1285
 
@@ -2241,7 +2241,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexport
2241
2241
  /***/ (function(module, exports, __webpack_require__) {
2242
2242
 
2243
2243
  "use strict";
2244
- 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 (_) 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 version = '0.10.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) {\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=\" + authenticationToken;\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, _e = _b.queryString, queryString = _e === void 0 ? undefined : _e, _f = _b.authenticationToken, authenticationToken = _f === void 0 ? undefined : _f, _g = _b.headers, headers = _g === void 0 ? undefined : _g;\n return new RequestOptions(clientId, timeout, queryString, authenticationToken, headers);\n };\n return RequestOptions;\n}());\nexports.RequestOptions = RequestOptions;\nvar ResponseHandler = /** @class */ (function () {\n function ResponseHandler(response) {\n this.axiosPromise = response;\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 (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 (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) {\n return new ResponseHandler(axiosInstance.get(\"\" + host + uri, { params: queryString }));\n}\nfunction post(axiosInstance, host, uri, queryString, payload) {\n return new ResponseHandler(axiosInstance.post(\"\" + host + uri, payload, { params: queryString }));\n}\nfunction put(axiosInstance, host, uri, queryString, payload) {\n return new ResponseHandler(axiosInstance.put(\"\" + host + uri, payload, { params: queryString }));\n}\nfunction patch(axiosInstance, host, uri, queryString, payload) {\n return new ResponseHandler(axiosInstance.patch(\"\" + host + uri, payload, { params: queryString }));\n}\nfunction remove(axiosInstance, host, uri, queryString, payload) {\n return new ResponseHandler(axiosInstance.delete(\"\" + host + uri, { params: queryString, data: payload }));\n}\nfunction routify(axiosInstance, endpoint, route, routeParams, queryString, payload) {\n switch (route.httpMethod) {\n case 0 /* GET */:\n return get(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString);\n case 1 /* POST */:\n return post(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload);\n case 2 /* PUT */:\n return put(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload);\n case 3 /* PATCH */:\n return patch(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload);\n case 4 /* DELETE */:\n return remove(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload);\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) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, authenticationToken: authenticationToken, headers: headers })));\n}\nfunction anonymousAxiosInstance(clientId, headers) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, headers: headers })));\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) {\n return routify(axiosInstance(this.clientId, this.authToken, headers), endpoint, route, routeParams, queryString, payload);\n };\n return AuthorizedServiceRequest;\n}());\nexports.AuthorizedServiceRequest = AuthorizedServiceRequest;\nvar AnonymousServiceRequest = /** @class */ (function () {\n function AnonymousServiceRequest(clientId) {\n this.clientId = clientId;\n }\n AnonymousServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload) {\n return routify(anonymousAxiosInstance(this.clientId), 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?");
2244
+ 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 (_) 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 version = '0.10.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 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) {\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=\" + authenticationToken;\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, _e = _b.queryString, queryString = _e === void 0 ? undefined : _e, _f = _b.authenticationToken, authenticationToken = _f === void 0 ? undefined : _f, _g = _b.headers, headers = _g === void 0 ? undefined : _g;\n return new RequestOptions(clientId, timeout, queryString, authenticationToken, headers);\n };\n return RequestOptions;\n}());\nexports.RequestOptions = RequestOptions;\nvar ResponseHandler = /** @class */ (function () {\n function ResponseHandler(response) {\n this.axiosPromise = response;\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 (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 (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) {\n return new ResponseHandler(axiosInstance.get(\"\" + host + uri, { params: queryString }));\n}\nfunction post(axiosInstance, host, uri, queryString, payload) {\n return new ResponseHandler(axiosInstance.post(\"\" + host + uri, payload, { params: queryString }));\n}\nfunction put(axiosInstance, host, uri, queryString, payload) {\n return new ResponseHandler(axiosInstance.put(\"\" + host + uri, payload, { params: queryString }));\n}\nfunction patch(axiosInstance, host, uri, queryString, payload) {\n return new ResponseHandler(axiosInstance.patch(\"\" + host + uri, payload, { params: queryString }));\n}\nfunction remove(axiosInstance, host, uri, queryString, payload) {\n return new ResponseHandler(axiosInstance.delete(\"\" + host + uri, { params: queryString, data: payload }));\n}\nfunction routify(axiosInstance, endpoint, route, routeParams, queryString, payload) {\n switch (route.httpMethod) {\n case 0 /* GET */:\n return get(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString);\n case 1 /* POST */:\n return post(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload);\n case 2 /* PUT */:\n return put(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload);\n case 3 /* PATCH */:\n return patch(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload);\n case 4 /* DELETE */:\n return remove(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload);\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) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, authenticationToken: authenticationToken, headers: headers })));\n}\nfunction anonymousAxiosInstance(clientId, headers) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, headers: headers })));\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) {\n return routify(axiosInstance(this.clientId, this.authToken, headers), endpoint, route, routeParams, queryString, payload);\n };\n return AuthorizedServiceRequest;\n}());\nexports.AuthorizedServiceRequest = AuthorizedServiceRequest;\nvar AnonymousServiceRequest = /** @class */ (function () {\n function AnonymousServiceRequest(clientId) {\n this.clientId = clientId;\n }\n AnonymousServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload) {\n return routify(anonymousAxiosInstance(this.clientId), 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?");
2245
2245
 
2246
2246
  /***/ }),
2247
2247
 
@@ -2982,7 +2982,7 @@ eval("\nvar __read = (this && this.__read) || function (o, n) {\n var m = typ
2982
2982
  /***/ (function(module, exports, __webpack_require__) {
2983
2983
 
2984
2984
  "use strict";
2985
- 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};\nexports.__esModule = 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/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/alerts_configuration */ \"./node_modules/@bringg/types/types/alerts_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/application */ \"./node_modules/@bringg/types/types/application.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/auth */ \"./node_modules/@bringg/types/types/auth.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/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_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/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/deprecated_alert_types */ \"./node_modules/@bringg/types/types/deprecated_alert_types.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/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/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_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/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/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 */ \"./node_modules/@bringg/types/types/report/index.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/rule_types */ \"./node_modules/@bringg/types/types/rule_types.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_setting */ \"./node_modules/@bringg/types/types/sms_setting.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_service */ \"./node_modules/@bringg/types/types/task_service.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/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_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/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//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/index.js?");
2985
+ 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};\nexports.__esModule = 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/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/alerts_configuration */ \"./node_modules/@bringg/types/types/alerts_configuration.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/application */ \"./node_modules/@bringg/types/types/application.js\"), exports);\n__exportStar(__webpack_require__(/*! ./types/auth */ \"./node_modules/@bringg/types/types/auth.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/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_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/deprecated_alert_types */ \"./node_modules/@bringg/types/types/deprecated_alert_types.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/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/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_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/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/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 */ \"./node_modules/@bringg/types/types/report/index.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/rule_types */ \"./node_modules/@bringg/types/types/rule_types.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_setting */ \"./node_modules/@bringg/types/types/sms_setting.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_service */ \"./node_modules/@bringg/types/types/task_service.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/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_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/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//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/index.js?");
2986
2986
 
2987
2987
  /***/ }),
2988
2988
 
@@ -3233,6 +3233,19 @@ eval("\nexports.__esModule = true;\nexports.CustomerExperienceCancelEventTypes =
3233
3233
 
3234
3234
  /***/ }),
3235
3235
 
3236
+ /***/ "./node_modules/@bringg/types/types/dashboard_ui_configuration.js":
3237
+ /*!************************************************************************!*\
3238
+ !*** ./node_modules/@bringg/types/types/dashboard_ui_configuration.js ***!
3239
+ \************************************************************************/
3240
+ /*! no static exports found */
3241
+ /*! all exports used */
3242
+ /***/ (function(module, exports, __webpack_require__) {
3243
+
3244
+ "use strict";
3245
+ eval("\nexports.__esModule = true;\nexports.OrderPageTabs = void 0;\nvar OrderPageTabs;\n(function (OrderPageTabs) {\n OrderPageTabs[OrderPageTabs[\"default\"] = 0] = \"default\";\n OrderPageTabs[OrderPageTabs[\"notes\"] = 1] = \"notes\";\n OrderPageTabs[OrderPageTabs[\"attachments\"] = 2] = \"attachments\";\n OrderPageTabs[OrderPageTabs[\"inventories\"] = 3] = \"inventories\";\n OrderPageTabs[OrderPageTabs[\"tracking\"] = 4] = \"tracking\";\n})(OrderPageTabs = exports.OrderPageTabs || (exports.OrderPageTabs = {}));\n//# sourceMappingURL=dashboard_ui_configuration.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/dashboard_ui_configuration.js?");
3246
+
3247
+ /***/ }),
3248
+
3236
3249
  /***/ "./node_modules/@bringg/types/types/delivery_block.js":
3237
3250
  /*!************************************************************!*\
3238
3251
  !*** ./node_modules/@bringg/types/types/delivery_block.js ***!
@@ -3385,7 +3398,7 @@ eval("\nexports.__esModule = true;\nexports.EmulatedDeliveryEvents = void 0;\nva
3385
3398
  /***/ (function(module, exports, __webpack_require__) {
3386
3399
 
3387
3400
  "use strict";
3388
- eval("\nexports.__esModule = true;\nexports.EventType = exports.AssociationsChangedType = void 0;\nvar AssociationsChangedType;\n(function (AssociationsChangedType) {\n AssociationsChangedType[\"way_point\"] = \"way_point\";\n AssociationsChangedType[\"task_inventory\"] = \"task_inventory\";\n AssociationsChangedType[\"form\"] = \"form\";\n AssociationsChangedType[\"task_note\"] = \"task_note\";\n AssociationsChangedType[\"task_photo\"] = \"task_photo\";\n AssociationsChangedType[\"signature\"] = \"signature\";\n})(AssociationsChangedType = exports.AssociationsChangedType || (exports.AssociationsChangedType = {}));\nvar EventType;\n(function (EventType) {\n EventType[\"ApplicationActionRun\"] = \"application:action:run\";\n EventType[\"UserPreLeftHome\"] = \"user:pre_left_home\";\n EventType[\"UserPreGotHome\"] = \"user:pre_got_home\";\n EventType[\"UserTypeChanged\"] = \"user_type_changed\";\n EventType[\"TaskCashoutCreated\"] = \"task:cashout:created\";\n EventType[\"EmployeeUpdateLocation\"] = \"employee:update_location\";\n EventType[\"EmployeeUpdate\"] = \"employee:update\";\n EventType[\"TaskNew\"] = \"task:new\";\n EventType[\"TaskAcknowledged\"] = \"task:acknowledged\";\n EventType[\"TaskPaymentHistoryCreated\"] = \"task_payment_history:created\";\n EventType[\"UserRated\"] = \"user:rated\";\n EventType[\"CustomerTipped\"] = \"customer:tipped\";\n EventType[\"CustomerCreated\"] = \"customer:created\";\n EventType[\"CustomerOptedIn\"] = \"customer:opted_in\";\n EventType[\"CustomerOptedOut\"] = \"customer:opted_out\";\n EventType[\"CustomerAvailabilityHoursCreated\"] = \"customer:availability_hours:created\";\n EventType[\"EmployeeTurnsOffline\"] = \"employee_turns_offline\";\n EventType[\"EmployeeTurnsOnline\"] = \"employee_turns_online\";\n EventType[\"ShiftStarted\"] = \"shift:started\";\n EventType[\"ShiftEnded\"] = \"shift:ended\";\n EventType[\"TaskWayPointAdded\"] = \"task:way_point:added\";\n EventType[\"TaskChangePreparation\"] = \"task:change_preparation\";\n EventType[\"TaskPreparationChanged\"] = \"task:preparation_changed\";\n EventType[\"TaskStatusChanged\"] = \"task:status_changed\";\n EventType[\"TaskDeleted\"] = \"task:deleted\";\n EventType[\"TaskUpdate\"] = \"task:update\";\n EventType[\"TaskPackagesChanged\"] = \"task:packages_changed\";\n EventType[\"TeamUserAdded\"] = \"team:user_added\";\n EventType[\"UserNew\"] = \"user:new\";\n EventType[\"TeamUserRemoved\"] = \"team:user_removed\";\n EventType[\"TeamTaskAdded\"] = \"team:task_added\";\n EventType[\"TeamTaskRemoved\"] = \"team:task_removed\";\n EventType[\"TaskCreated\"] = \"task:created\";\n EventType[\"TaskCreatedFinal\"] = \"task:created:final\";\n EventType[\"TaskCreatedFinalProcessingDone\"] = \"task:created:final:processing:done\";\n EventType[\"TaskRemoved\"] = \"task:removed\";\n EventType[\"TaskRejected\"] = \"task:rejected\";\n EventType[\"UserGotHome\"] = \"user:got_home\";\n EventType[\"UserLeftHome\"] = \"user:left_home\";\n EventType[\"TaskLate\"] = \"task:late\";\n EventType[\"AppAdded\"] = \"app:added\";\n EventType[\"AppRemoved\"] = \"app:removed\";\n EventType[\"RequestPush\"] = \"request_push\";\n EventType[\"UsersReadyToExecute\"] = \"users:ready_to_execute\";\n EventType[\"UserReadyToExecute\"] = \"user:ready_to_execute\";\n EventType[\"RequestOptimizeRoute\"] = \"request_optimize_route\";\n EventType[\"RequestOptimizeDriverRoute\"] = \"request_optimize_driver_route\";\n EventType[\"RequestRescheduleCancelledTask\"] = \"request_reschedule_cancelled_task\";\n EventType[\"SharedLocationCreated\"] = \"shared_location:created\";\n EventType[\"MerchantCreated\"] = \"merchant_created\";\n EventType[\"UserActivityChange\"] = \"user_activity_change\";\n EventType[\"FormCreated\"] = \"form_created\";\n EventType[\"NoteCreated\"] = \"note_created\";\n EventType[\"FloatingInventoryUpdated\"] = \"floating_inventory:updated\";\n EventType[\"WayPointUpdated\"] = \"way_point:updated\";\n EventType[\"WayPointStarted\"] = \"way_point:started\";\n EventType[\"WayPointArrived\"] = \"way_point:checkin\";\n EventType[\"WayPointLeft\"] = \"way_point:checkout\";\n EventType[\"MassWayPointLeft\"] = \"mass:way_point:checkout\";\n EventType[\"WayPointOnTheWayProcessingDone\"] = \"way_point:on_the_way:processing:done\";\n EventType[\"TaskWayPointsDoneProcessingDone\"] = \"task:way_points:done:processing:done\";\n EventType[\"TaskProcessingDone\"] = \"task:processing:done\";\n EventType[\"WayPointRecalculateDistance\"] = \"way_point:recalculate_distance\";\n EventType[\"RecalculateDistance\"] = \"recalculate_distance\";\n EventType[\"TaskReadyToExecute\"] = \"task:ready_to_execute\";\n EventType[\"TeamUpdate\"] = \"team:update\";\n EventType[\"MerchantConfigurationUpdated\"] = \"merchant:configuration_updated\";\n EventType[\"RouteOptimized\"] = \"route:optimized\";\n EventType[\"RouteOptimizationProgress\"] = \"route:optimization:progress\";\n EventType[\"RouteOptimizationCanceled\"] = \"route:optimization:canceled\";\n EventType[\"RouteOptimizationPolling\"] = \"route:optimization:polling\";\n EventType[\"RouteOptimizationDone\"] = \"route:optimization:done\";\n EventType[\"PlanningDone\"] = \"planning:done\";\n EventType[\"InventoryScheduledArrivalCreated\"] = \"inventory:scheduled_arrival:created\";\n EventType[\"Scanned\"] = \"scanned\";\n EventType[\"InventoryScanned\"] = \"inventory_scanned\";\n EventType[\"AlertCreated\"] = \"alert_created\";\n EventType[\"RunStarted\"] = \"run:started\";\n EventType[\"RunEnded\"] = \"run:ended\";\n EventType[\"RunTaskAdded\"] = \"run:task:added\";\n EventType[\"RunTaskRemoved\"] = \"run:task:removed\";\n EventType[\"RunUpdated\"] = \"run:updated\";\n EventType[\"RunCalculateAggregations\"] = \"run:calculate_aggregations\";\n EventType[\"InvoiceCreated\"] = \"invoice:created\";\n EventType[\"RunDebriefed\"] = \"run:debriefed\";\n EventType[\"TasksMassRemove\"] = \"tasks:mass_remove\";\n EventType[\"ManifestDone\"] = \"manifest:done\";\n EventType[\"LocationHistoryReceived\"] = \"location_history_received\";\n EventType[\"QuoteReceived\"] = \"quote_received\";\n EventType[\"DeliveryBlockAssigned\"] = \"delivery_block:assigned\";\n EventType[\"DeliveryBlockUnassigned\"] = \"delivery_block:unassigned\";\n EventType[\"DriverShiftScheduleUpdated\"] = \"driver_shift_schedule:updated\";\n EventType[\"SchedulerEvent\"] = \"scheduler_event\";\n EventType[\"MobileAnalyticsEvent\"] = \"mobile_analytics_event\";\n EventType[\"MenuUpdated\"] = \"menu:updated\";\n EventType[\"TaskInventoryUpdate\"] = \"task_inventory:update\";\n EventType[\"MobileActionEvent\"] = \"mobile_action_event\";\n EventType[\"WayPointAnswersCreated\"] = \"way_point:answers:created\";\n EventType[\"WayPointScheduledArrivalUpdated\"] = \"way_point:scheduled_arrival:updated\";\n EventType[\"MaskedPhoneCallFinished\"] = \"masked_phone:call_finished\";\n EventType[\"RapidSosRequested\"] = \"rapid_sos_requested\";\n EventType[\"RatingSubmitted\"] = \"rating:submitted\";\n EventType[\"UserActualBreakUpdated\"] = \"user:actual_break:updated\";\n EventType[\"TimeBasedEvent\"] = \"time_based_event\";\n EventType[\"OpenFleetIntegrationEvent\"] = \"open_fleet:integration_event\";\n EventType[\"WorkflowTimeBasedEvent\"] = \"workflow:time_based_event\";\n EventType[\"SendSmsFailed\"] = \"send_sms_failed\";\n})(EventType = exports.EventType || (exports.EventType = {}));\n//# sourceMappingURL=event.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/event.js?");
3401
+ eval("\nexports.__esModule = true;\nexports.EventType = exports.AssociationsChangedType = void 0;\nvar AssociationsChangedType;\n(function (AssociationsChangedType) {\n AssociationsChangedType[\"way_point\"] = \"way_point\";\n AssociationsChangedType[\"task_inventory\"] = \"task_inventory\";\n AssociationsChangedType[\"form\"] = \"form\";\n AssociationsChangedType[\"task_note\"] = \"task_note\";\n AssociationsChangedType[\"task_photo\"] = \"task_photo\";\n AssociationsChangedType[\"signature\"] = \"signature\";\n})(AssociationsChangedType = exports.AssociationsChangedType || (exports.AssociationsChangedType = {}));\nvar EventType;\n(function (EventType) {\n EventType[\"ApplicationActionRun\"] = \"application:action:run\";\n EventType[\"UserPreLeftHome\"] = \"user:pre_left_home\";\n EventType[\"UserPreGotHome\"] = \"user:pre_got_home\";\n EventType[\"UserTypeChanged\"] = \"user_type_changed\";\n EventType[\"TaskCashoutCreated\"] = \"task:cashout:created\";\n EventType[\"EmployeeUpdateLocation\"] = \"employee:update_location\";\n EventType[\"EmployeeUpdate\"] = \"employee:update\";\n EventType[\"TaskNew\"] = \"task:new\";\n EventType[\"TaskAcknowledged\"] = \"task:acknowledged\";\n EventType[\"TaskPaymentHistoryCreated\"] = \"task_payment_history:created\";\n EventType[\"UserRated\"] = \"user:rated\";\n EventType[\"CustomerTipped\"] = \"customer:tipped\";\n EventType[\"CustomerCreated\"] = \"customer:created\";\n EventType[\"CustomerOptedIn\"] = \"customer:opted_in\";\n EventType[\"CustomerOptedOut\"] = \"customer:opted_out\";\n EventType[\"CustomerAvailabilityHoursCreated\"] = \"customer:availability_hours:created\";\n EventType[\"EmployeeTurnsOffline\"] = \"employee_turns_offline\";\n EventType[\"EmployeeTurnsOnline\"] = \"employee_turns_online\";\n EventType[\"ShiftStarted\"] = \"shift:started\";\n EventType[\"ShiftEnded\"] = \"shift:ended\";\n EventType[\"TaskWayPointAdded\"] = \"task:way_point:added\";\n EventType[\"TaskChangePreparation\"] = \"task:change_preparation\";\n EventType[\"TaskPreparationChanged\"] = \"task:preparation_changed\";\n EventType[\"TaskStatusChanged\"] = \"task:status_changed\";\n EventType[\"TaskDeleted\"] = \"task:deleted\";\n EventType[\"TaskUpdate\"] = \"task:update\";\n EventType[\"TaskPackagesChanged\"] = \"task:packages_changed\";\n EventType[\"TeamUserAdded\"] = \"team:user_added\";\n EventType[\"UserNew\"] = \"user:new\";\n EventType[\"TeamUserRemoved\"] = \"team:user_removed\";\n EventType[\"TeamTaskAdded\"] = \"team:task_added\";\n EventType[\"TeamTaskRemoved\"] = \"team:task_removed\";\n EventType[\"TaskCreated\"] = \"task:created\";\n EventType[\"TaskCreatedFinal\"] = \"task:created:final\";\n EventType[\"TaskCreatedFinalProcessingDone\"] = \"task:created:final:processing:done\";\n EventType[\"TaskRemoved\"] = \"task:removed\";\n EventType[\"TaskRejected\"] = \"task:rejected\";\n EventType[\"UserGotHome\"] = \"user:got_home\";\n EventType[\"UserLeftHome\"] = \"user:left_home\";\n EventType[\"TaskLate\"] = \"task:late\";\n EventType[\"AppAdded\"] = \"app:added\";\n EventType[\"AppRemoved\"] = \"app:removed\";\n EventType[\"RequestPush\"] = \"request_push\";\n EventType[\"UsersReadyToExecute\"] = \"users:ready_to_execute\";\n EventType[\"UserReadyToExecute\"] = \"user:ready_to_execute\";\n EventType[\"RequestOptimizeRoute\"] = \"request_optimize_route\";\n EventType[\"RequestOptimizeDriverRoute\"] = \"request_optimize_driver_route\";\n EventType[\"RequestRescheduleCancelledTask\"] = \"request_reschedule_cancelled_task\";\n EventType[\"SharedLocationCreated\"] = \"shared_location:created\";\n EventType[\"MerchantCreated\"] = \"merchant_created\";\n EventType[\"UserActivityChange\"] = \"user_activity_change\";\n EventType[\"FormCreated\"] = \"form_created\";\n EventType[\"NoteCreated\"] = \"note_created\";\n EventType[\"FloatingInventoryUpdated\"] = \"floating_inventory:updated\";\n EventType[\"WayPointUpdated\"] = \"way_point:updated\";\n EventType[\"WayPointStarted\"] = \"way_point:started\";\n EventType[\"WayPointArrived\"] = \"way_point:checkin\";\n EventType[\"WayPointLeft\"] = \"way_point:checkout\";\n EventType[\"MassWayPointLeft\"] = \"mass:way_point:checkout\";\n EventType[\"WayPointOnTheWayProcessingDone\"] = \"way_point:on_the_way:processing:done\";\n EventType[\"TaskWayPointsDoneProcessingDone\"] = \"task:way_points:done:processing:done\";\n EventType[\"TaskProcessingDone\"] = \"task:processing:done\";\n EventType[\"WayPointRecalculateDistance\"] = \"way_point:recalculate_distance\";\n EventType[\"RecalculateDistance\"] = \"recalculate_distance\";\n EventType[\"TaskReadyToExecute\"] = \"task:ready_to_execute\";\n EventType[\"TeamUpdate\"] = \"team:update\";\n EventType[\"MerchantConfigurationUpdated\"] = \"merchant:configuration_updated\";\n EventType[\"RouteOptimized\"] = \"route:optimized\";\n EventType[\"RouteOptimizationProgress\"] = \"route:optimization:progress\";\n EventType[\"RouteOptimizationCanceled\"] = \"route:optimization:canceled\";\n EventType[\"RouteOptimizationPolling\"] = \"route:optimization:polling\";\n EventType[\"RouteOptimizationDone\"] = \"route:optimization:done\";\n EventType[\"PlanningDone\"] = \"planning:done\";\n EventType[\"InventoryScheduledArrivalCreated\"] = \"inventory:scheduled_arrival:created\";\n EventType[\"Scanned\"] = \"scanned\";\n EventType[\"InventoryScanned\"] = \"inventory_scanned\";\n EventType[\"AlertCreated\"] = \"alert_created\";\n EventType[\"RunStarted\"] = \"run:started\";\n EventType[\"RunEnded\"] = \"run:ended\";\n EventType[\"RunTaskAdded\"] = \"run:task:added\";\n EventType[\"RunTaskRemoved\"] = \"run:task:removed\";\n EventType[\"RunUpdated\"] = \"run:updated\";\n EventType[\"RunCalculateAggregations\"] = \"run:calculate_aggregations\";\n EventType[\"InvoiceCreated\"] = \"invoice:created\";\n EventType[\"RunDebriefed\"] = \"run:debriefed\";\n EventType[\"TasksMassRemove\"] = \"tasks:mass_remove\";\n EventType[\"ManifestDone\"] = \"manifest:done\";\n EventType[\"LocationHistoryReceived\"] = \"location_history_received\";\n EventType[\"QuoteReceived\"] = \"quote_received\";\n EventType[\"DeliveryBlockAssigned\"] = \"delivery_block:assigned\";\n EventType[\"DeliveryBlockUnassigned\"] = \"delivery_block:unassigned\";\n EventType[\"DriverShiftScheduleUpdated\"] = \"driver_shift_schedule:updated\";\n EventType[\"SchedulerEvent\"] = \"scheduler_event\";\n EventType[\"MobileAnalyticsEvent\"] = \"mobile_analytics_event\";\n EventType[\"MenuUpdated\"] = \"menu:updated\";\n EventType[\"TaskInventoryUpdate\"] = \"task_inventory:update\";\n EventType[\"MobileActionEvent\"] = \"mobile_action_event\";\n EventType[\"WayPointAnswersCreated\"] = \"way_point:answers:created\";\n EventType[\"WayPointScheduledArrivalUpdated\"] = \"way_point:scheduled_arrival:updated\";\n EventType[\"MaskedPhoneCallFinished\"] = \"masked_phone:call_finished\";\n EventType[\"RapidSosRequested\"] = \"rapid_sos_requested\";\n EventType[\"RatingSubmitted\"] = \"rating:submitted\";\n EventType[\"UserActualBreakUpdated\"] = \"user:actual_break:updated\";\n EventType[\"TimeBasedEvent\"] = \"time_based_event\";\n EventType[\"OpenFleetIntegrationEvent\"] = \"open_fleet:integration_event\";\n EventType[\"WorkflowTimeBasedEvent\"] = \"workflow:time_based_event\";\n EventType[\"WorkflowManualTriggerEvent\"] = \"workflow:manual_trigger\";\n EventType[\"SendSmsFailed\"] = \"send_sms_failed\";\n})(EventType = exports.EventType || (exports.EventType = {}));\n//# sourceMappingURL=event.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/event.js?");
3389
3402
 
3390
3403
  /***/ }),
3391
3404