@bringg/dashboard-sdk 9.69.0 → 9.69.2

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.
@@ -1051,7 +1051,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
1051
1051
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1052
1052
 
1053
1053
  "use strict";
1054
- eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar StoreEntity_1 = __webpack_require__(/*! ../Core/StoreEntity */ \"./dist/Core/StoreEntity.js\");\nvar Geocoding_1 = __importDefault(__webpack_require__(/*! ./Entity/Geocoding */ \"./dist/Geocoding/Entity/Geocoding.js\"));\nvar Geocoding_consts_1 = __webpack_require__(/*! ./Geocoding.consts */ \"./dist/Geocoding/Geocoding.consts.js\");\nvar GeocodingApi = /** @class */ (function () {\n function GeocodingApi(session) {\n this.geocodingEntity = new Geocoding_1.default(session);\n this.realTime = new StoreEntity_1.RealTimeHandler(session.persistentConnection);\n }\n GeocodingApi.prototype.autoComplete = function (address) {\n return this.geocodingEntity.autoComplete(address);\n };\n GeocodingApi.prototype.getPlaceDetails = function (placeId) {\n return this.geocodingEntity.getPlaceDetails(placeId);\n };\n GeocodingApi.prototype.reverseGeocode = function (lat, lng) {\n return this.geocodingEntity.reverseGeocode(lat, lng);\n };\n GeocodingApi.prototype.subscribeToEvent = function (eventHandle) {\n return this.realTime.on(Geocoding_consts_1.RealTimeGeocodingEvents.GEOCODING_CHANGED, eventHandle);\n };\n GeocodingApi.prototype.unsubscribeToEvent = function (eventHandle) {\n this.realTime.off(Geocoding_consts_1.RealTimeGeocodingEvents.GEOCODING_CHANGED, eventHandle);\n };\n return GeocodingApi;\n}());\nexports[\"default\"] = GeocodingApi;\n//# sourceMappingURL=GeocodingApi.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Geocoding/GeocodingApi.js?");
1054
+ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar StoreEntity_1 = __webpack_require__(/*! ../Core/StoreEntity */ \"./dist/Core/StoreEntity.js\");\nvar Geocoding_1 = __importDefault(__webpack_require__(/*! ./Entity/Geocoding */ \"./dist/Geocoding/Entity/Geocoding.js\"));\nvar Geocoding_consts_1 = __webpack_require__(/*! ./Geocoding.consts */ \"./dist/Geocoding/Geocoding.consts.js\");\nvar GeocodingApi = /** @class */ (function () {\n function GeocodingApi(session) {\n this.geocodingEntity = new Geocoding_1.default(session);\n this.realTime = new StoreEntity_1.RealTimeHandler(session.persistentConnection);\n }\n GeocodingApi.prototype.autoComplete = function (address) {\n return this.geocodingEntity.autoComplete(address);\n };\n GeocodingApi.prototype.getPlaceDetails = function (placeId) {\n return this.geocodingEntity.getPlaceDetails(placeId);\n };\n GeocodingApi.prototype.reverseGeocode = function (lat, lng) {\n return this.geocodingEntity.reverseGeocode(lat, lng);\n };\n GeocodingApi.prototype.subscribeToEvent = function (eventHandle) {\n this.realTime.on(Geocoding_consts_1.RealTimeGeocodingEvents.GEOCODING_CHANGED, eventHandle);\n };\n GeocodingApi.prototype.unsubscribeToEvent = function (eventHandle) {\n this.realTime.off(Geocoding_consts_1.RealTimeGeocodingEvents.GEOCODING_CHANGED, eventHandle);\n };\n return GeocodingApi;\n}());\nexports[\"default\"] = GeocodingApi;\n//# sourceMappingURL=GeocodingApi.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Geocoding/GeocodingApi.js?");
1055
1055
 
1056
1056
  /***/ }),
1057
1057
 
@@ -2415,7 +2415,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar
2415
2415
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2416
2416
 
2417
2417
  "use strict";
2418
- eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.UserWireMessage = exports.REALTIME_CONNECTION_RETRY_TIME = void 0;\nvar Logger_1 = __importDefault(__webpack_require__(/*! ../Core/Logger */ \"./dist/Core/Logger.js\"));\nvar Polly_1 = __importDefault(__webpack_require__(/*! ../Core/Polly */ \"./dist/Core/Polly.js\"));\nvar PubSubEvents_1 = __webpack_require__(/*! ./PubSubEvents */ \"./dist/Services/PubSubEvents.js\");\nvar RealtimeConnection_1 = __webpack_require__(/*! ./RealtimeConnection */ \"./dist/Services/RealtimeConnection.js\");\nexports.REALTIME_CONNECTION_RETRY_TIME = 5000;\nvar UserWireMessage = /** @class */ (function () {\n function UserWireMessage(user) {\n this.id = user.id;\n this.auth_token = user.authentication_token;\n this.bringg_user_id = user.uuid;\n }\n return UserWireMessage;\n}());\nexports.UserWireMessage = UserWireMessage;\nvar PersistentConnection = /** @class */ (function () {\n function PersistentConnection(session) {\n this.session = session;\n }\n PersistentConnection.wrapEventHandler = function (eventName, initialHandler, additionalHandler) {\n return function (message) {\n if (additionalHandler) {\n additionalHandler(eventName, message);\n }\n return initialHandler(message);\n };\n };\n PersistentConnection.init = function (session) {\n return __awaiter(this, void 0, void 0, function () {\n var _this, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _this = new PersistentConnection(session);\n _a = _this;\n return [4 /*yield*/, RealtimeConnection_1.RealtimeConnection.connect(session.config.getMonitoringEndpoint(), _this)];\n case 1:\n _a.connection = _b.sent();\n return [2 /*return*/, _this];\n }\n });\n });\n };\n PersistentConnection.prototype.handshake = function (conn) {\n return __awaiter(this, void 0, void 0, function () {\n var _this_1 = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, new Promise(function (resolve, reject) {\n _this_1.publishInternal(conn, PubSubEvents_1.USER_CONNECT_EVENT, new UserWireMessage(_this_1.session.user), function () {\n _this_1.publishInternal(conn, PubSubEvents_1.SUBSCRIBE_AS_ADMIN_EVENT, new UserWireMessage(_this_1.session.user), function () {\n _this_1.session.sendDataEvent('subscribed as admin', null);\n resolve();\n });\n });\n })];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n PersistentConnection.prototype.onConnect = function (connection) {\n return __awaiter(this, void 0, void 0, function () {\n var _this_1 = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, new Polly_1.default()\n .handle(function (er) {\n Logger_1.default.error(\"Failed establishing persistent connection to realtime, retry again in \".concat(exports.REALTIME_CONNECTION_RETRY_TIME / 1000, \" seconds, \").concat(er));\n return er.message !== 'timeout';\n })\n .waitAndRetry([exports.REALTIME_CONNECTION_RETRY_TIME])\n .forever()\n .executeForPromise(function () { return _this_1.handshake(connection); })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n PersistentConnection.prototype.onDisconnect = function (connection) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/];\n });\n });\n };\n PersistentConnection.prototype.onReconnect = function (connection) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/];\n });\n });\n };\n PersistentConnection.prototype.publishInternal = function (connection, ev, mess, ackCallback) {\n connection.socket.emit(ev.name, mess, ackCallback);\n };\n PersistentConnection.prototype.subscribeInternal = function (connection, eventType, handler) {\n connection.socket.on(eventType.name, PersistentConnection.wrapEventHandler(eventType.name, handler, this.session.sendDataEvent));\n };\n PersistentConnection.prototype.unsubscribe = function (eventType, handler) {\n this.connection.socket.off(eventType.name, handler);\n };\n PersistentConnection.prototype.publish = function (ev, mess, ackCallback) {\n this.publishInternal(this.connection, ev, mess, ackCallback);\n };\n PersistentConnection.prototype.subscribe = function (eventType, handler) {\n this.subscribeInternal(this.connection, eventType, handler);\n };\n PersistentConnection.prototype.dispose = 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.connection.disconnect()];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n return PersistentConnection;\n}());\nexports[\"default\"] = PersistentConnection;\n//# sourceMappingURL=PersistentConnection.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Services/PersistentConnection.js?");
2418
+ eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.UserWireMessage = exports.ENABLE_REALTIME_UNSUBSCRIBE_FIX_FEATURE_FLAG = exports.REALTIME_CONNECTION_RETRY_TIME = void 0;\nvar Logger_1 = __importDefault(__webpack_require__(/*! ../Core/Logger */ \"./dist/Core/Logger.js\"));\nvar Polly_1 = __importDefault(__webpack_require__(/*! ../Core/Polly */ \"./dist/Core/Polly.js\"));\nvar PubSubEvents_1 = __webpack_require__(/*! ./PubSubEvents */ \"./dist/Services/PubSubEvents.js\");\nvar RealtimeConnection_1 = __webpack_require__(/*! ./RealtimeConnection */ \"./dist/Services/RealtimeConnection.js\");\nexports.REALTIME_CONNECTION_RETRY_TIME = 5000;\nexports.ENABLE_REALTIME_UNSUBSCRIBE_FIX_FEATURE_FLAG = 'enable_realtime_unsubscribe_fix';\nvar UserWireMessage = /** @class */ (function () {\n function UserWireMessage(user) {\n this.id = user.id;\n this.auth_token = user.authentication_token;\n this.bringg_user_id = user.uuid;\n }\n return UserWireMessage;\n}());\nexports.UserWireMessage = UserWireMessage;\nvar PersistentConnection = /** @class */ (function () {\n function PersistentConnection(session) {\n this.wrappedHandlersByEvent = new Map();\n this.session = session;\n }\n PersistentConnection.wrapEventHandler = function (eventName, initialHandler, additionalHandler) {\n return function (message) {\n if (additionalHandler) {\n additionalHandler(eventName, message);\n }\n return initialHandler(message);\n };\n };\n PersistentConnection.init = function (session) {\n return __awaiter(this, void 0, void 0, function () {\n var _this, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _this = new PersistentConnection(session);\n _a = _this;\n return [4 /*yield*/, RealtimeConnection_1.RealtimeConnection.connect(session.config.getMonitoringEndpoint(), _this)];\n case 1:\n _a.connection = _b.sent();\n return [2 /*return*/, _this];\n }\n });\n });\n };\n PersistentConnection.prototype.handshake = function (conn) {\n return __awaiter(this, void 0, void 0, function () {\n var _this_1 = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, new Promise(function (resolve, reject) {\n _this_1.publishInternal(conn, PubSubEvents_1.USER_CONNECT_EVENT, new UserWireMessage(_this_1.session.user), function () {\n _this_1.publishInternal(conn, PubSubEvents_1.SUBSCRIBE_AS_ADMIN_EVENT, new UserWireMessage(_this_1.session.user), function () {\n _this_1.session.sendDataEvent('subscribed as admin', null);\n resolve();\n });\n });\n })];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n PersistentConnection.prototype.onConnect = function (connection) {\n return __awaiter(this, void 0, void 0, function () {\n var _this_1 = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, new Polly_1.default()\n .handle(function (er) {\n Logger_1.default.error(\"Failed establishing persistent connection to realtime, retry again in \".concat(exports.REALTIME_CONNECTION_RETRY_TIME / 1000, \" seconds, \").concat(er));\n return er.message !== 'timeout';\n })\n .waitAndRetry([exports.REALTIME_CONNECTION_RETRY_TIME])\n .forever()\n .executeForPromise(function () { return _this_1.handshake(connection); })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n PersistentConnection.prototype.onDisconnect = function (connection) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/];\n });\n });\n };\n PersistentConnection.prototype.onReconnect = function (connection) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/];\n });\n });\n };\n PersistentConnection.prototype.publishInternal = function (connection, ev, mess, ackCallback) {\n connection.socket.emit(ev.name, mess, ackCallback);\n };\n PersistentConnection.prototype.subscribeInternal = function (connection, eventType, handler) {\n if (!this.isUnsubscribeFixEnabled()) {\n connection.socket.on(eventType.name, this.createWrappedHandler(eventType.name, handler));\n return;\n }\n this.subscribeWithWrappedHandler(connection, eventType.name, handler);\n };\n PersistentConnection.prototype.unsubscribe = function (eventType, handler) {\n if (!this.isUnsubscribeFixEnabled()) {\n this.connection.socket.off(eventType.name, handler);\n return;\n }\n this.unsubscribeWrappedHandler(eventType.name, handler);\n };\n PersistentConnection.prototype.publish = function (ev, mess, ackCallback) {\n this.publishInternal(this.connection, ev, mess, ackCallback);\n };\n PersistentConnection.prototype.subscribe = function (eventType, handler) {\n this.subscribeInternal(this.connection, eventType, handler);\n };\n PersistentConnection.prototype.dispose = 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.connection.disconnect()];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n PersistentConnection.prototype.createWrappedHandler = function (eventName, handler) {\n return PersistentConnection.wrapEventHandler(eventName, handler, this.session.sendDataEvent);\n };\n PersistentConnection.prototype.isUnsubscribeFixEnabled = function () {\n var _a;\n var merchantFeatureFlags = (((_a = this.session.merchant) === null || _a === void 0 ? void 0 : _a.feature_flags) || {});\n return !!merchantFeatureFlags[exports.ENABLE_REALTIME_UNSUBSCRIBE_FIX_FEATURE_FLAG];\n };\n PersistentConnection.prototype.getEventHandlers = function (eventName) {\n return this.wrappedHandlersByEvent.get(eventName);\n };\n PersistentConnection.prototype.createEventHandlers = function (eventName) {\n var handlers = new Map();\n this.wrappedHandlersByEvent.set(eventName, handlers);\n return handlers;\n };\n PersistentConnection.prototype.getOrCreateEventHandlers = function (eventName) {\n var _a;\n return (_a = this.getEventHandlers(eventName)) !== null && _a !== void 0 ? _a : this.createEventHandlers(eventName);\n };\n PersistentConnection.prototype.subscribeWithWrappedHandler = function (connection, eventName, handler) {\n var eventHandlers = this.getOrCreateEventHandlers(eventName);\n var originalHandler = handler;\n if (eventHandlers.has(originalHandler)) {\n return;\n }\n var wrappedHandler = this.createWrappedHandler(eventName, handler);\n eventHandlers.set(originalHandler, wrappedHandler);\n connection.socket.on(eventName, wrappedHandler);\n };\n PersistentConnection.prototype.unsubscribeWrappedHandler = function (eventName, handler) {\n if (!handler) {\n this.connection.socket.off(eventName);\n this.wrappedHandlersByEvent.delete(eventName);\n return;\n }\n var eventHandlers = this.getEventHandlers(eventName);\n var originalHandler = handler;\n var wrappedHandler = eventHandlers === null || eventHandlers === void 0 ? void 0 : eventHandlers.get(originalHandler);\n if (!wrappedHandler) {\n this.connection.socket.off(eventName, handler);\n return;\n }\n this.connection.socket.off(eventName, wrappedHandler);\n eventHandlers.delete(originalHandler);\n if (eventHandlers.size === 0) {\n this.wrappedHandlersByEvent.delete(eventName);\n }\n };\n return PersistentConnection;\n}());\nexports[\"default\"] = PersistentConnection;\n//# sourceMappingURL=PersistentConnection.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Services/PersistentConnection.js?");
2419
2419
 
2420
2420
  /***/ }),
2421
2421
 
@@ -2470,7 +2470,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
2470
2470
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2471
2471
 
2472
2472
  "use strict";
2473
- eval("\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.AnonymousServiceRequest = exports.AuthorizedServiceRequest = exports.ResponseHandler = exports.RequestOptions = exports.logErrorResponse = void 0;\nvar axios_1 = __importDefault(__webpack_require__(/*! axios */ \"./node_modules/axios/index.js\"));\nvar lodash_1 = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\nvar BringgException_1 = __webpack_require__(/*! ../Core/BringgException */ \"./dist/Core/BringgException.js\");\nvar Logger_1 = __importDefault(__webpack_require__(/*! ../Core/Logger */ \"./dist/Core/Logger.js\"));\nvar abort_1 = __webpack_require__(/*! ../utils/abort */ \"./dist/utils/abort.js\");\nvar version = '9.69.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 //\n }\n try {\n Logger_1.default.info(response.config.method.toUpperCase(), response.config.url, status, data);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.debug(response);\n }\n catch (e) {\n //\n }\n}\nexports.logErrorResponse = logErrorResponse;\nvar DEFAULT_TIMEOUT = 120000;\nvar RequestOptions = /** @class */ (function () {\n function RequestOptions(clientId, timeout, queryString, authenticationToken, headers, responseType, signal) {\n // NiceToHave: move headers to HttpHeaders class\n this.headers = __assign(__assign({ 'Content-Type': 'application/json' }, headers), { 'sdk-version': version, Client: clientId });\n this.timeout = timeout;\n this.validateStatus = lodash_1.stubTrue;\n if (queryString) {\n this.params = queryString;\n }\n if (authenticationToken) {\n this.headers['Authorization'] = \"Token token=\".concat(authenticationToken);\n }\n if (responseType) {\n this.responseType = responseType;\n }\n if (signal) {\n this.signal = signal;\n }\n }\n RequestOptions.new = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.clientId, clientId = _c === void 0 ? 'Bringg Dashboard' : _c, _d = _b.timeout, timeout = _d === void 0 ? DEFAULT_TIMEOUT : _d, queryString = _b.queryString, authenticationToken = _b.authenticationToken, headers = _b.headers, responseType = _b.responseType, signal = _b.signal;\n return new RequestOptions(clientId, timeout || DEFAULT_TIMEOUT, queryString, authenticationToken, headers, responseType, signal);\n };\n return RequestOptions;\n}());\nexports.RequestOptions = RequestOptions;\nvar ResponseHandler = /** @class */ (function () {\n function ResponseHandler(response, signal) {\n this.axiosPromise = response;\n this.signal = signal;\n }\n ResponseHandler.prototype.handle = function (consumer) {\n return __awaiter(this, void 0, void 0, function () {\n var axiosResponse, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if ((0, lodash_1.isUndefined)(consumer)) {\n throw new Error('consumer must be defined');\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, this.axiosPromise];\n case 2:\n axiosResponse = _a.sent();\n return [2 /*return*/, consumer(axiosResponse)];\n case 3:\n e_1 = _a.sent();\n if (axios_1.default.isCancel(e_1)) {\n (0, abort_1.throwAbortError)(this.signal, 'Request Aborted');\n }\n if (e_1 instanceof BringgException_1.BringgException) {\n throw e_1;\n }\n return [2 /*return*/, consumer(e_1)];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return ResponseHandler;\n}());\nexports.ResponseHandler = ResponseHandler;\nfunction get(axiosInstance, host, uri, queryString, signal) {\n return new ResponseHandler(axiosInstance.get(\"\".concat(host).concat(uri), { params: queryString, signal: signal }), signal);\n}\nfunction post(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.post(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction put(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.put(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction patch(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.patch(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction remove(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.delete(\"\".concat(host).concat(uri), { params: queryString, data: payload, signal: signal }), signal);\n}\nfunction routify(axiosInstance, endpoint, route, routeParams, queryString, payload, signal) {\n switch (route.httpMethod) {\n case 0 /* HttpMethod.GET */:\n return get(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, signal);\n case 1 /* HttpMethod.POST */:\n return post(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 2 /* HttpMethod.PUT */:\n return put(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 3 /* HttpMethod.PATCH */:\n return patch(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 4 /* HttpMethod.DELETE */:\n return remove(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n }\n}\nfunction wrapWithInterceptors(axios) {\n axios.interceptors.request.use(function (req) {\n var method = req.method, url = req.url, params = req.params, headers = req.headers, data = req.data;\n try {\n Logger_1.default.debug('REQUEST:', method.toUpperCase(), url);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('REQUEST-query-string:', params);\n Logger_1.default.trace('REQUEST-headers:', headers);\n Logger_1.default.trace('REQUEST-data:', data);\n }\n catch (e) {\n //\n }\n return req;\n });\n axios.interceptors.response.use(function (res) {\n var statusText = res.statusText, status = res.status, headers = res.headers, data = res.data;\n try {\n Logger_1.default.debug('RESPONSE:', res.config.url, status, statusText);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('RESPONSE-headers:', headers);\n Logger_1.default.trace('RESPONSE-data:', data);\n }\n catch (e) {\n //\n }\n return res;\n });\n return axios;\n}\nfunction axiosInstance(clientId, authenticationToken, headers, responseType, timeout, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, authenticationToken: authenticationToken, headers: headers, responseType: responseType, timeout: timeout, signal: signal })));\n}\nfunction anonymousAxiosInstance(clientId, headers, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, headers: headers, signal: signal })));\n}\nvar AuthorizedServiceRequest = /** @class */ (function () {\n function AuthorizedServiceRequest(clientId, authToken) {\n this.authToken = authToken;\n this.clientId = clientId;\n }\n AuthorizedServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload, headers, responseType, timeout, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(axiosInstance(this.clientId, this.authToken, headers, responseType, timeout), endpoint, route, routeParams, queryString, payload, signal);\n };\n return AuthorizedServiceRequest;\n}());\nexports.AuthorizedServiceRequest = AuthorizedServiceRequest;\nvar AnonymousServiceRequest = /** @class */ (function () {\n function AnonymousServiceRequest(clientId, headers) {\n this.clientId = clientId;\n this.headers = headers;\n }\n AnonymousServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(anonymousAxiosInstance(this.clientId, this.headers, signal), endpoint, route, routeParams, queryString, payload);\n };\n return AnonymousServiceRequest;\n}());\nexports.AnonymousServiceRequest = AnonymousServiceRequest;\n//# sourceMappingURL=ServiceRequest.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Services/ServiceRequest.js?");
2473
+ eval("\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.AnonymousServiceRequest = exports.AuthorizedServiceRequest = exports.ResponseHandler = exports.RequestOptions = exports.logErrorResponse = void 0;\nvar axios_1 = __importDefault(__webpack_require__(/*! axios */ \"./node_modules/axios/index.js\"));\nvar lodash_1 = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\nvar BringgException_1 = __webpack_require__(/*! ../Core/BringgException */ \"./dist/Core/BringgException.js\");\nvar Logger_1 = __importDefault(__webpack_require__(/*! ../Core/Logger */ \"./dist/Core/Logger.js\"));\nvar abort_1 = __webpack_require__(/*! ../utils/abort */ \"./dist/utils/abort.js\");\nvar version = '9.69.2';\nfunction logErrorResponse(response) {\n var data = response.data, status = response.status;\n try {\n Logger_1.default.error(response.config.method.toUpperCase(), response.config.url, status);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.info(response.config.method.toUpperCase(), response.config.url, status, data);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.debug(response);\n }\n catch (e) {\n //\n }\n}\nexports.logErrorResponse = logErrorResponse;\nvar DEFAULT_TIMEOUT = 120000;\nvar RequestOptions = /** @class */ (function () {\n function RequestOptions(clientId, timeout, queryString, authenticationToken, headers, responseType, signal) {\n // NiceToHave: move headers to HttpHeaders class\n this.headers = __assign(__assign({ 'Content-Type': 'application/json' }, headers), { 'sdk-version': version, Client: clientId });\n this.timeout = timeout;\n this.validateStatus = lodash_1.stubTrue;\n if (queryString) {\n this.params = queryString;\n }\n if (authenticationToken) {\n this.headers['Authorization'] = \"Token token=\".concat(authenticationToken);\n }\n if (responseType) {\n this.responseType = responseType;\n }\n if (signal) {\n this.signal = signal;\n }\n }\n RequestOptions.new = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.clientId, clientId = _c === void 0 ? 'Bringg Dashboard' : _c, _d = _b.timeout, timeout = _d === void 0 ? DEFAULT_TIMEOUT : _d, queryString = _b.queryString, authenticationToken = _b.authenticationToken, headers = _b.headers, responseType = _b.responseType, signal = _b.signal;\n return new RequestOptions(clientId, timeout || DEFAULT_TIMEOUT, queryString, authenticationToken, headers, responseType, signal);\n };\n return RequestOptions;\n}());\nexports.RequestOptions = RequestOptions;\nvar ResponseHandler = /** @class */ (function () {\n function ResponseHandler(response, signal) {\n this.axiosPromise = response;\n this.signal = signal;\n }\n ResponseHandler.prototype.handle = function (consumer) {\n return __awaiter(this, void 0, void 0, function () {\n var axiosResponse, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if ((0, lodash_1.isUndefined)(consumer)) {\n throw new Error('consumer must be defined');\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, this.axiosPromise];\n case 2:\n axiosResponse = _a.sent();\n return [2 /*return*/, consumer(axiosResponse)];\n case 3:\n e_1 = _a.sent();\n if (axios_1.default.isCancel(e_1)) {\n (0, abort_1.throwAbortError)(this.signal, 'Request Aborted');\n }\n if (e_1 instanceof BringgException_1.BringgException) {\n throw e_1;\n }\n return [2 /*return*/, consumer(e_1)];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return ResponseHandler;\n}());\nexports.ResponseHandler = ResponseHandler;\nfunction get(axiosInstance, host, uri, queryString, signal) {\n return new ResponseHandler(axiosInstance.get(\"\".concat(host).concat(uri), { params: queryString, signal: signal }), signal);\n}\nfunction post(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.post(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction put(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.put(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction patch(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.patch(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction remove(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.delete(\"\".concat(host).concat(uri), { params: queryString, data: payload, signal: signal }), signal);\n}\nfunction routify(axiosInstance, endpoint, route, routeParams, queryString, payload, signal) {\n switch (route.httpMethod) {\n case 0 /* HttpMethod.GET */:\n return get(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, signal);\n case 1 /* HttpMethod.POST */:\n return post(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 2 /* HttpMethod.PUT */:\n return put(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 3 /* HttpMethod.PATCH */:\n return patch(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 4 /* HttpMethod.DELETE */:\n return remove(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n }\n}\nfunction wrapWithInterceptors(axios) {\n axios.interceptors.request.use(function (req) {\n var method = req.method, url = req.url, params = req.params, headers = req.headers, data = req.data;\n try {\n Logger_1.default.debug('REQUEST:', method.toUpperCase(), url);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('REQUEST-query-string:', params);\n Logger_1.default.trace('REQUEST-headers:', headers);\n Logger_1.default.trace('REQUEST-data:', data);\n }\n catch (e) {\n //\n }\n return req;\n });\n axios.interceptors.response.use(function (res) {\n var statusText = res.statusText, status = res.status, headers = res.headers, data = res.data;\n try {\n Logger_1.default.debug('RESPONSE:', res.config.url, status, statusText);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('RESPONSE-headers:', headers);\n Logger_1.default.trace('RESPONSE-data:', data);\n }\n catch (e) {\n //\n }\n return res;\n });\n return axios;\n}\nfunction axiosInstance(clientId, authenticationToken, headers, responseType, timeout, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, authenticationToken: authenticationToken, headers: headers, responseType: responseType, timeout: timeout, signal: signal })));\n}\nfunction anonymousAxiosInstance(clientId, headers, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, headers: headers, signal: signal })));\n}\nvar AuthorizedServiceRequest = /** @class */ (function () {\n function AuthorizedServiceRequest(clientId, authToken) {\n this.authToken = authToken;\n this.clientId = clientId;\n }\n AuthorizedServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload, headers, responseType, timeout, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(axiosInstance(this.clientId, this.authToken, headers, responseType, timeout), endpoint, route, routeParams, queryString, payload, signal);\n };\n return AuthorizedServiceRequest;\n}());\nexports.AuthorizedServiceRequest = AuthorizedServiceRequest;\nvar AnonymousServiceRequest = /** @class */ (function () {\n function AnonymousServiceRequest(clientId, headers) {\n this.clientId = clientId;\n this.headers = headers;\n }\n AnonymousServiceRequest.prototype.invoke = function (endpoint, route, routeParams, queryString, payload, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(anonymousAxiosInstance(this.clientId, this.headers, signal), endpoint, route, routeParams, queryString, payload);\n };\n return AnonymousServiceRequest;\n}());\nexports.AnonymousServiceRequest = AnonymousServiceRequest;\n//# sourceMappingURL=ServiceRequest.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Services/ServiceRequest.js?");
2474
2474
 
2475
2475
  /***/ }),
2476
2476
 
@@ -4065,7 +4065,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n//#
4065
4065
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4066
4066
 
4067
4067
  "use strict";
4068
- eval("\nvar _a;\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.exportFormatToFileContentTypeMap = exports.FileContentType = exports.API_KEY_HEADER_NAME = exports.AnalyticsParentAppToTargetSystemMap = exports.AnalyticsTargetSystem = exports.AnalyticsParentApp = exports.AnalyticsDataSource = void 0;\nvar reports_scheduled_job_1 = __webpack_require__(/*! ../reports/report_scheduled_job/reports_scheduled_job */ \"./node_modules/@bringg/types/types/analytics/reports/report_scheduled_job/reports_scheduled_job.js\");\nvar AnalyticsDataSource;\n(function (AnalyticsDataSource) {\n AnalyticsDataSource[AnalyticsDataSource[\"Presto\"] = 0] = \"Presto\";\n AnalyticsDataSource[AnalyticsDataSource[\"Druid\"] = 1] = \"Druid\";\n})(AnalyticsDataSource || (exports.AnalyticsDataSource = AnalyticsDataSource = {}));\nvar AnalyticsParentApp;\n(function (AnalyticsParentApp) {\n AnalyticsParentApp[\"OwnFleet\"] = \"own-fleet\";\n AnalyticsParentApp[\"DeliveryHub\"] = \"delivery-hub\";\n})(AnalyticsParentApp || (exports.AnalyticsParentApp = AnalyticsParentApp = {}));\nvar AnalyticsTargetSystem;\n(function (AnalyticsTargetSystem) {\n AnalyticsTargetSystem[AnalyticsTargetSystem[\"OwnFleet\"] = 0] = \"OwnFleet\";\n AnalyticsTargetSystem[AnalyticsTargetSystem[\"DeliveryHub\"] = 1] = \"DeliveryHub\";\n})(AnalyticsTargetSystem || (exports.AnalyticsTargetSystem = AnalyticsTargetSystem = {}));\nexports.AnalyticsParentAppToTargetSystemMap = new Map([\n [AnalyticsParentApp.OwnFleet, AnalyticsTargetSystem.OwnFleet],\n [AnalyticsParentApp.DeliveryHub, AnalyticsTargetSystem.DeliveryHub]\n]);\nexports.API_KEY_HEADER_NAME = 'x-api-key';\nvar FileContentType;\n(function (FileContentType) {\n FileContentType[\"CSV\"] = \"text/csv\";\n FileContentType[\"JSON\"] = \"text/json\";\n})(FileContentType || (exports.FileContentType = FileContentType = {}));\nexports.exportFormatToFileContentTypeMap = (_a = {},\n _a[reports_scheduled_job_1.ReportExportFormat.CSV] = FileContentType.CSV,\n _a[reports_scheduled_job_1.ReportExportFormat.JSON] = FileContentType.JSON,\n _a);\n//# sourceMappingURL=common.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/analytics/common/common.js?");
4068
+ eval("\nvar _a;\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.exportFormatToFileContentTypeMap = exports.FileContentType = exports.API_KEY_HEADER_NAME = exports.AnalyticsParentAppToTargetSystemMap = exports.AnalyticsTargetSystem = exports.AnalyticsParentApp = exports.AnalyticsDataSource = void 0;\nvar reports_scheduled_job_1 = __webpack_require__(/*! ../reports/report_scheduled_job/reports_scheduled_job */ \"./node_modules/@bringg/types/types/analytics/reports/report_scheduled_job/reports_scheduled_job.js\");\nvar AnalyticsDataSource;\n(function (AnalyticsDataSource) {\n AnalyticsDataSource[AnalyticsDataSource[\"Presto\"] = 0] = \"Presto\";\n AnalyticsDataSource[AnalyticsDataSource[\"Druid\"] = 1] = \"Druid\";\n AnalyticsDataSource[AnalyticsDataSource[\"BigQuery\"] = 2] = \"BigQuery\";\n})(AnalyticsDataSource || (exports.AnalyticsDataSource = AnalyticsDataSource = {}));\nvar AnalyticsParentApp;\n(function (AnalyticsParentApp) {\n AnalyticsParentApp[\"OwnFleet\"] = \"own-fleet\";\n AnalyticsParentApp[\"DeliveryHub\"] = \"delivery-hub\";\n})(AnalyticsParentApp || (exports.AnalyticsParentApp = AnalyticsParentApp = {}));\nvar AnalyticsTargetSystem;\n(function (AnalyticsTargetSystem) {\n AnalyticsTargetSystem[AnalyticsTargetSystem[\"OwnFleet\"] = 0] = \"OwnFleet\";\n AnalyticsTargetSystem[AnalyticsTargetSystem[\"DeliveryHub\"] = 1] = \"DeliveryHub\";\n})(AnalyticsTargetSystem || (exports.AnalyticsTargetSystem = AnalyticsTargetSystem = {}));\nexports.AnalyticsParentAppToTargetSystemMap = new Map([\n [AnalyticsParentApp.OwnFleet, AnalyticsTargetSystem.OwnFleet],\n [AnalyticsParentApp.DeliveryHub, AnalyticsTargetSystem.DeliveryHub]\n]);\nexports.API_KEY_HEADER_NAME = 'x-api-key';\nvar FileContentType;\n(function (FileContentType) {\n FileContentType[\"CSV\"] = \"text/csv\";\n FileContentType[\"JSON\"] = \"text/json\";\n})(FileContentType || (exports.FileContentType = FileContentType = {}));\nexports.exportFormatToFileContentTypeMap = (_a = {},\n _a[reports_scheduled_job_1.ReportExportFormat.CSV] = FileContentType.CSV,\n _a[reports_scheduled_job_1.ReportExportFormat.JSON] = FileContentType.JSON,\n _a);\n//# sourceMappingURL=common.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/analytics/common/common.js?");
4069
4069
 
4070
4070
  /***/ }),
4071
4071
 
@@ -4087,7 +4087,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
4087
4087
  /***/ ((__unused_webpack_module, exports) => {
4088
4088
 
4089
4089
  "use strict";
4090
- eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.DeliveryHubDruidCube = exports.OwnFleetDruidCube = exports.CubeApplication = exports.CubeDataSource = exports.ANALYTICS_CONTINUE_WAIT_ERROR = exports.DateRangeExpression = exports.TimeDimensionGranularityEnum = void 0;\nvar TimeDimensionGranularityEnum;\n(function (TimeDimensionGranularityEnum) {\n TimeDimensionGranularityEnum[\"hour\"] = \"hour\";\n TimeDimensionGranularityEnum[\"day\"] = \"day\";\n TimeDimensionGranularityEnum[\"week\"] = \"week\";\n TimeDimensionGranularityEnum[\"month\"] = \"month\";\n TimeDimensionGranularityEnum[\"year\"] = \"year\";\n})(TimeDimensionGranularityEnum || (exports.TimeDimensionGranularityEnum = TimeDimensionGranularityEnum = {}));\nvar DateRangeExpression;\n(function (DateRangeExpression) {\n DateRangeExpression[\"Today\"] = \"today\";\n DateRangeExpression[\"Yesterday\"] = \"yesterday\";\n DateRangeExpression[\"Tomorrow\"] = \"tomorrow\";\n DateRangeExpression[\"ThisWeek\"] = \"this week\";\n DateRangeExpression[\"ThisMonth\"] = \"this month\";\n DateRangeExpression[\"Last7Days\"] = \"from 6 days ago to now\";\n DateRangeExpression[\"Last30Days\"] = \"from 29 days ago to now\";\n DateRangeExpression[\"LastWeek\"] = \"last week\";\n DateRangeExpression[\"LastMonth\"] = \"last month\";\n DateRangeExpression[\"Next7Days\"] = \"next 7 days\";\n DateRangeExpression[\"Next30Days\"] = \"next 30 days\";\n DateRangeExpression[\"NextMonth\"] = \"next month\";\n DateRangeExpression[\"Next60Days\"] = \"next 60 days\";\n})(DateRangeExpression || (exports.DateRangeExpression = DateRangeExpression = {}));\nexports.ANALYTICS_CONTINUE_WAIT_ERROR = 'Continue wait';\nvar CubeDataSource;\n(function (CubeDataSource) {\n CubeDataSource[\"Presto\"] = \"prestodb\";\n CubeDataSource[\"Druid\"] = \"druid\";\n})(CubeDataSource || (exports.CubeDataSource = CubeDataSource = {}));\nvar CubeApplication;\n(function (CubeApplication) {\n CubeApplication[\"OwnFleetReports\"] = \"OwnFleetReports\";\n CubeApplication[\"DeliveryHubReports\"] = \"DeliveryHubReports\";\n CubeApplication[\"OwnFleetBiDashboards\"] = \"OwnFleetBiDashboards\";\n CubeApplication[\"DeliveryHubBiDashboards\"] = \"DeliveryHubBiDashboards\";\n CubeApplication[\"OwnFleetBiDashboardsPresto\"] = \"OwnFleetBiDashboardsPresto\";\n})(CubeApplication || (exports.CubeApplication = CubeApplication = {}));\nvar OwnFleetDruidCube;\n(function (OwnFleetDruidCube) {\n OwnFleetDruidCube[\"Tasks\"] = \"TasksDruid\";\n OwnFleetDruidCube[\"CustomerEngagement\"] = \"CustomerEngagement\";\n OwnFleetDruidCube[\"FleetEvents\"] = \"FleetEvents\";\n OwnFleetDruidCube[\"Runs\"] = \"Runs\";\n OwnFleetDruidCube[\"TosModelEvaluation\"] = \"TosModelEvaluation\";\n OwnFleetDruidCube[\"RouteAdherence\"] = \"RouteAdherence\";\n})(OwnFleetDruidCube || (exports.OwnFleetDruidCube = OwnFleetDruidCube = {}));\nvar DeliveryHubDruidCube;\n(function (DeliveryHubDruidCube) {\n DeliveryHubDruidCube[\"Shipments\"] = \"ShipmentsDruid\";\n})(DeliveryHubDruidCube || (exports.DeliveryHubDruidCube = DeliveryHubDruidCube = {}));\n//# sourceMappingURL=cubejs.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/analytics/cubejs.js?");
4090
+ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.DeliveryHubDruidCube = exports.OwnFleetDruidCube = exports.CubeApplication = exports.CubeDataSource = exports.ANALYTICS_CONTINUE_WAIT_ERROR = exports.DateRangeExpression = exports.TimeDimensionGranularityEnum = void 0;\nvar TimeDimensionGranularityEnum;\n(function (TimeDimensionGranularityEnum) {\n TimeDimensionGranularityEnum[\"hour\"] = \"hour\";\n TimeDimensionGranularityEnum[\"day\"] = \"day\";\n TimeDimensionGranularityEnum[\"week\"] = \"week\";\n TimeDimensionGranularityEnum[\"month\"] = \"month\";\n TimeDimensionGranularityEnum[\"year\"] = \"year\";\n})(TimeDimensionGranularityEnum || (exports.TimeDimensionGranularityEnum = TimeDimensionGranularityEnum = {}));\nvar DateRangeExpression;\n(function (DateRangeExpression) {\n DateRangeExpression[\"Today\"] = \"today\";\n DateRangeExpression[\"Yesterday\"] = \"yesterday\";\n DateRangeExpression[\"Tomorrow\"] = \"tomorrow\";\n DateRangeExpression[\"ThisWeek\"] = \"this week\";\n DateRangeExpression[\"ThisMonth\"] = \"this month\";\n DateRangeExpression[\"Last7Days\"] = \"from 6 days ago to now\";\n DateRangeExpression[\"Last30Days\"] = \"from 29 days ago to now\";\n DateRangeExpression[\"LastWeek\"] = \"last week\";\n DateRangeExpression[\"LastMonth\"] = \"last month\";\n DateRangeExpression[\"Next7Days\"] = \"next 7 days\";\n DateRangeExpression[\"Next30Days\"] = \"next 30 days\";\n DateRangeExpression[\"NextMonth\"] = \"next month\";\n DateRangeExpression[\"Next60Days\"] = \"next 60 days\";\n})(DateRangeExpression || (exports.DateRangeExpression = DateRangeExpression = {}));\nexports.ANALYTICS_CONTINUE_WAIT_ERROR = 'Continue wait';\nvar CubeDataSource;\n(function (CubeDataSource) {\n CubeDataSource[\"Presto\"] = \"prestodb\";\n CubeDataSource[\"Druid\"] = \"druid\";\n CubeDataSource[\"BigQuery\"] = \"bigquery\";\n})(CubeDataSource || (exports.CubeDataSource = CubeDataSource = {}));\nvar CubeApplication;\n(function (CubeApplication) {\n CubeApplication[\"OwnFleetReports\"] = \"OwnFleetReports\";\n CubeApplication[\"DeliveryHubReports\"] = \"DeliveryHubReports\";\n CubeApplication[\"OwnFleetBiDashboards\"] = \"OwnFleetBiDashboards\";\n CubeApplication[\"DeliveryHubBiDashboards\"] = \"DeliveryHubBiDashboards\";\n CubeApplication[\"OwnFleetBigQuery\"] = \"OwnFleetBigQuery\";\n CubeApplication[\"OwnFleetBiDashboardsPresto\"] = \"OwnFleetBiDashboardsPresto\";\n})(CubeApplication || (exports.CubeApplication = CubeApplication = {}));\nvar OwnFleetDruidCube;\n(function (OwnFleetDruidCube) {\n OwnFleetDruidCube[\"Tasks\"] = \"TasksDruid\";\n OwnFleetDruidCube[\"CustomerEngagement\"] = \"CustomerEngagement\";\n OwnFleetDruidCube[\"FleetEvents\"] = \"FleetEvents\";\n OwnFleetDruidCube[\"Runs\"] = \"Runs\";\n OwnFleetDruidCube[\"TosModelEvaluation\"] = \"TosModelEvaluation\";\n OwnFleetDruidCube[\"RouteAdherence\"] = \"RouteAdherence\";\n})(OwnFleetDruidCube || (exports.OwnFleetDruidCube = OwnFleetDruidCube = {}));\nvar DeliveryHubDruidCube;\n(function (DeliveryHubDruidCube) {\n DeliveryHubDruidCube[\"Shipments\"] = \"ShipmentsDruid\";\n})(DeliveryHubDruidCube || (exports.DeliveryHubDruidCube = DeliveryHubDruidCube = {}));\n//# sourceMappingURL=cubejs.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/analytics/cubejs.js?");
4091
4091
 
4092
4092
  /***/ }),
4093
4093
 
@@ -4912,7 +4912,7 @@ eval("\nvar _a;\nObject.defineProperty(exports, \"__esModule\", ({ value: true }
4912
4912
  /***/ ((__unused_webpack_module, exports) => {
4913
4913
 
4914
4914
  "use strict";
4915
- eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.pathValidationRegExp = exports.CustomAttributesMandatoryRpcActions = exports.CustomAttributeConsumerEntity = exports.CustomAttributesRpcActions = exports.CustomAttributeResolverType = exports.CustomAttributeDataType = exports.CustomAttributeEntityType = void 0;\nvar CustomAttributeEntityType;\n(function (CustomAttributeEntityType) {\n CustomAttributeEntityType[CustomAttributeEntityType[\"Task\"] = 0] = \"Task\";\n CustomAttributeEntityType[CustomAttributeEntityType[\"Waypoint\"] = 1] = \"Waypoint\";\n CustomAttributeEntityType[CustomAttributeEntityType[\"Customer\"] = 2] = \"Customer\";\n CustomAttributeEntityType[CustomAttributeEntityType[\"Team\"] = 3] = \"Team\";\n CustomAttributeEntityType[CustomAttributeEntityType[\"User\"] = 4] = \"User\";\n})(CustomAttributeEntityType || (exports.CustomAttributeEntityType = CustomAttributeEntityType = {}));\nvar CustomAttributeDataType;\n(function (CustomAttributeDataType) {\n CustomAttributeDataType[CustomAttributeDataType[\"Number\"] = 0] = \"Number\";\n CustomAttributeDataType[CustomAttributeDataType[\"String\"] = 1] = \"String\";\n CustomAttributeDataType[CustomAttributeDataType[\"Boolean\"] = 2] = \"Boolean\";\n CustomAttributeDataType[CustomAttributeDataType[\"Enum\"] = 3] = \"Enum\";\n})(CustomAttributeDataType || (exports.CustomAttributeDataType = CustomAttributeDataType = {}));\nvar CustomAttributeResolverType;\n(function (CustomAttributeResolverType) {\n CustomAttributeResolverType[\"JSONata\"] = \"JSONata\";\n})(CustomAttributeResolverType || (exports.CustomAttributeResolverType = CustomAttributeResolverType = {}));\nvar CustomAttributesRpcActions;\n(function (CustomAttributesRpcActions) {\n CustomAttributesRpcActions[\"GetAll\"] = \"get_all\";\n CustomAttributesRpcActions[\"GetAllByIds\"] = \"get_all_by_ids\";\n CustomAttributesRpcActions[\"GetAllInternal\"] = \"get_all_internal\";\n CustomAttributesRpcActions[\"UpsertSuggestion\"] = \"upsert_suggestion\";\n CustomAttributesRpcActions[\"CheckUsage\"] = \"custom_attributes:check_record_usage\";\n CustomAttributesRpcActions[\"UpdateValuesForEntities\"] = \"update_values_for_entities\";\n})(CustomAttributesRpcActions || (exports.CustomAttributesRpcActions = CustomAttributesRpcActions = {}));\nvar CustomAttributeConsumerEntity;\n(function (CustomAttributeConsumerEntity) {\n CustomAttributeConsumerEntity[\"AnalyticsReport\"] = \"analytics_report\";\n CustomAttributeConsumerEntity[\"Rule\"] = \"rule\";\n CustomAttributeConsumerEntity[\"WorkflowRule\"] = \"workflow_rule\";\n CustomAttributeConsumerEntity[\"WorkflowTrigger\"] = \"workflow_trigger\";\n CustomAttributeConsumerEntity[\"WorkflowAction\"] = \"workflow_action\";\n})(CustomAttributeConsumerEntity || (exports.CustomAttributeConsumerEntity = CustomAttributeConsumerEntity = {}));\nvar CustomAttributesMandatoryRpcActions;\n(function (CustomAttributesMandatoryRpcActions) {\n CustomAttributesMandatoryRpcActions[\"CheckUsage\"] = \"custom-attributes:check-record-usage\";\n})(CustomAttributesMandatoryRpcActions || (exports.CustomAttributesMandatoryRpcActions = CustomAttributesMandatoryRpcActions = {}));\nexports.pathValidationRegExp = /^[a-zA-Z_$\\d\\s-]+(\\[\\d+\\])*?$/;\n//# sourceMappingURL=custom_attribute.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/custom_attribute.js?");
4915
+ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.pathValidationRegExp = exports.CustomAttributesMandatoryRpcActions = exports.CustomAttributeConsumerEntity = exports.CustomAttributesRpcActions = exports.CustomAttributeResolverType = exports.CustomAttributeDataType = exports.CustomAttributeEntityType = void 0;\nvar CustomAttributeEntityType;\n(function (CustomAttributeEntityType) {\n CustomAttributeEntityType[CustomAttributeEntityType[\"Task\"] = 0] = \"Task\";\n CustomAttributeEntityType[CustomAttributeEntityType[\"Waypoint\"] = 1] = \"Waypoint\";\n CustomAttributeEntityType[CustomAttributeEntityType[\"Customer\"] = 2] = \"Customer\";\n CustomAttributeEntityType[CustomAttributeEntityType[\"Team\"] = 3] = \"Team\";\n CustomAttributeEntityType[CustomAttributeEntityType[\"User\"] = 4] = \"User\";\n})(CustomAttributeEntityType || (exports.CustomAttributeEntityType = CustomAttributeEntityType = {}));\nvar CustomAttributeDataType;\n(function (CustomAttributeDataType) {\n CustomAttributeDataType[CustomAttributeDataType[\"Number\"] = 0] = \"Number\";\n CustomAttributeDataType[CustomAttributeDataType[\"String\"] = 1] = \"String\";\n CustomAttributeDataType[CustomAttributeDataType[\"Boolean\"] = 2] = \"Boolean\";\n CustomAttributeDataType[CustomAttributeDataType[\"Enum\"] = 3] = \"Enum\";\n})(CustomAttributeDataType || (exports.CustomAttributeDataType = CustomAttributeDataType = {}));\nvar CustomAttributeResolverType;\n(function (CustomAttributeResolverType) {\n CustomAttributeResolverType[\"JSONata\"] = \"JSONata\";\n})(CustomAttributeResolverType || (exports.CustomAttributeResolverType = CustomAttributeResolverType = {}));\nvar CustomAttributesRpcActions;\n(function (CustomAttributesRpcActions) {\n CustomAttributesRpcActions[\"GetAll\"] = \"get_all\";\n CustomAttributesRpcActions[\"GetAllByIds\"] = \"get_all_by_ids\";\n CustomAttributesRpcActions[\"GetAllInternal\"] = \"get_all_internal\";\n CustomAttributesRpcActions[\"UpsertSuggestion\"] = \"upsert_suggestion\";\n CustomAttributesRpcActions[\"CheckUsage\"] = \"custom_attributes:check_record_usage\";\n CustomAttributesRpcActions[\"UpdateValuesForEntities\"] = \"update_values_for_entities\";\n})(CustomAttributesRpcActions || (exports.CustomAttributesRpcActions = CustomAttributesRpcActions = {}));\nvar CustomAttributeConsumerEntity;\n(function (CustomAttributeConsumerEntity) {\n CustomAttributeConsumerEntity[\"AnalyticsReport\"] = \"analytics_report\";\n CustomAttributeConsumerEntity[\"Rule\"] = \"rule\";\n CustomAttributeConsumerEntity[\"WorkflowRule\"] = \"workflow_rule\";\n CustomAttributeConsumerEntity[\"WorkflowTrigger\"] = \"workflow_trigger\";\n CustomAttributeConsumerEntity[\"WorkflowAction\"] = \"workflow_action\";\n})(CustomAttributeConsumerEntity || (exports.CustomAttributeConsumerEntity = CustomAttributeConsumerEntity = {}));\nvar CustomAttributesMandatoryRpcActions;\n(function (CustomAttributesMandatoryRpcActions) {\n CustomAttributesMandatoryRpcActions[\"CheckUsage\"] = \"custom-attributes:check-record-usage\";\n})(CustomAttributesMandatoryRpcActions || (exports.CustomAttributesMandatoryRpcActions = CustomAttributesMandatoryRpcActions = {}));\nexports.pathValidationRegExp = /^[a-zA-Z_$\\d\\s-]+(\\[(\\d+|\"[^\"]*\")\\])*$/;\n//# sourceMappingURL=custom_attribute.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/custom_attribute.js?");
4916
4916
 
4917
4917
  /***/ }),
4918
4918