@bringg/dashboard-sdk 9.6.1 → 9.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Chat/Chat.d.ts +2 -0
- package/dist/Chat/Chat.js +3 -0
- package/dist/Chat/Chat.js.map +1 -1
- package/dist/Chat/Service/Chat.service.d.ts +2 -1
- package/dist/Chat/Service/Chat.service.js +8 -0
- package/dist/Chat/Service/Chat.service.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +29 -5
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +7 -7
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -237,7 +237,7 @@ eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _argument
|
|
|
237
237
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
238
238
|
|
|
239
239
|
"use strict";
|
|
240
|
-
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 }));\nvar Chat_service_1 = __importDefault(__webpack_require__(/*! ./Service/Chat.service */ \"./dist/Chat/Service/Chat.service.js\"));\nvar Chat = /** @class */ (function () {\n function Chat(session) {\n this.chatService = new Chat_service_1.default(session);\n }\n Chat.prototype.getChatMerchantApp = function () {\n return this.chatService.getChatMerchantApp();\n };\n Chat.prototype.getOrCreateChatMerchantApp = function () {\n return this.chatService.getOrCreateChatMerchantApp();\n };\n Chat.prototype.getChatMerchantAppExists = function () {\n return this.chatService.getChatMerchantAppExists();\n };\n Chat.prototype.getOrCreateChatUser = function () {\n return this.chatService.getOrCreateChatUser();\n };\n Chat.prototype.getOrCreateChatMembers = function (bringgUsersIds) {\n return this.chatService.getOrCreateChatMembers(bringgUsersIds);\n };\n Chat.prototype.getUsersAvailableToChat = function (_a) {\n var _b = _a === void 0 ? {} : _a, bringUserIds = _b.bringUserIds;\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_c) {\n return [2 /*return*/, this.chatService.getUsersAvailableToChat({ bringUserIds: bringUserIds })];\n });\n });\n };\n return Chat;\n}());\nexports[\"default\"] = Chat;\n//# sourceMappingURL=Chat.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Chat/Chat.js?");
|
|
240
|
+
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 }));\nvar Chat_service_1 = __importDefault(__webpack_require__(/*! ./Service/Chat.service */ \"./dist/Chat/Service/Chat.service.js\"));\nvar Chat = /** @class */ (function () {\n function Chat(session) {\n this.chatService = new Chat_service_1.default(session);\n }\n Chat.prototype.getChatMerchantApp = function () {\n return this.chatService.getChatMerchantApp();\n };\n Chat.prototype.getOrCreateChatMerchantApp = function () {\n return this.chatService.getOrCreateChatMerchantApp();\n };\n Chat.prototype.getChatMerchantAppExists = function () {\n return this.chatService.getChatMerchantAppExists();\n };\n Chat.prototype.getOrCreateChatUser = function () {\n return this.chatService.getOrCreateChatUser();\n };\n Chat.prototype.getUnreadMessageCount = function () {\n return this.chatService.getUnreadMessageCount();\n };\n Chat.prototype.getOrCreateChatMembers = function (bringgUsersIds) {\n return this.chatService.getOrCreateChatMembers(bringgUsersIds);\n };\n Chat.prototype.getUsersAvailableToChat = function (_a) {\n var _b = _a === void 0 ? {} : _a, bringUserIds = _b.bringUserIds;\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_c) {\n return [2 /*return*/, this.chatService.getUsersAvailableToChat({ bringUserIds: bringUserIds })];\n });\n });\n };\n return Chat;\n}());\nexports[\"default\"] = Chat;\n//# sourceMappingURL=Chat.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Chat/Chat.js?");
|
|
241
241
|
|
|
242
242
|
/***/ }),
|
|
243
243
|
|
|
@@ -248,7 +248,7 @@ eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _argument
|
|
|
248
248
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
249
249
|
|
|
250
250
|
"use strict";
|
|
251
|
-
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 __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 }));\nvar RouteGenerator_1 = __importDefault(__webpack_require__(/*! ../../Core/RouteGenerator */ \"./dist/Core/RouteGenerator.js\"));\nvar SessionBasedService_1 = __webpack_require__(/*! ../../Services/SessionBasedService */ \"./dist/Services/SessionBasedService.js\");\nvar SERVICE_PREFIX = '/chat-service/v2';\nvar Routes = {\n CHAT_MERCHANT_APP: \"\".concat(SERVICE_PREFIX, \"/merchant-apps\"),\n CHAT_MERCHANT_APP_EXISTS: \"\".concat(SERVICE_PREFIX, \"/merchant-apps/exists\"),\n GET_OR_CREATE_CHAT_MERCHANT_APP: \"\".concat(SERVICE_PREFIX, \"/merchant-apps/get-or-create\"),\n GET_OR_CREATE_CHAT_USER: \"\".concat(SERVICE_PREFIX, \"/chat-users/get-or-create\"),\n GET_OR_CREATE_CHAT_MEMBERS: \"\".concat(SERVICE_PREFIX, \"/chat-members/get-or-bulk-create\"),\n GET_USERS_AVAILABLE_TO_CHAT: \"\".concat(SERVICE_PREFIX, \"/bringg-users/available-to-chat\")\n};\nvar ChatService = /** @class */ (function (_super) {\n __extends(ChatService, _super);\n function ChatService(session) {\n var _this = _super.call(this, session.config.getApiEndpoint(), session) || this;\n _this.entityName = 'chat';\n _this.routeGenerator = new RouteGenerator_1.default(_this);\n return _this;\n }\n ChatService.prototype.getChatMerchantApp = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.routeGenerator.get(Routes.CHAT_MERCHANT_APP).invoke()];\n });\n });\n };\n ChatService.prototype.getOrCreateChatMerchantApp = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.routeGenerator.post(Routes.GET_OR_CREATE_CHAT_MERCHANT_APP).invoke()];\n });\n });\n };\n ChatService.prototype.getChatMerchantAppExists = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.routeGenerator.get(Routes.CHAT_MERCHANT_APP_EXISTS).invoke()];\n });\n });\n };\n ChatService.prototype.getOrCreateChatUser = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.routeGenerator.post(Routes.GET_OR_CREATE_CHAT_USER).invoke()];\n });\n });\n };\n ChatService.prototype.getOrCreateChatMembers = function (bringgUsersIds) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.routeGenerator.post(Routes.GET_OR_CREATE_CHAT_MEMBERS).withPayload({ bringgUsersIds: bringgUsersIds }).invoke()];\n });\n });\n };\n ChatService.prototype.getUsersAvailableToChat = function (_a) {\n var _b = _a === void 0 ? {} : _a, bringUserIds = _b.bringUserIds;\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_c) {\n return [2 /*return*/, this.routeGenerator\n .post(Routes.GET_USERS_AVAILABLE_TO_CHAT)\n .withPayload(__assign({}, (bringUserIds ? { bringUserIds: bringUserIds } : null)))\n .invoke()];\n });\n });\n };\n return ChatService;\n}(SessionBasedService_1.SessionBasedService));\nexports[\"default\"] = ChatService;\n//# sourceMappingURL=Chat.service.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Chat/Service/Chat.service.js?");
|
|
251
|
+
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 __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 }));\nvar RouteGenerator_1 = __importDefault(__webpack_require__(/*! ../../Core/RouteGenerator */ \"./dist/Core/RouteGenerator.js\"));\nvar SessionBasedService_1 = __webpack_require__(/*! ../../Services/SessionBasedService */ \"./dist/Services/SessionBasedService.js\");\nvar SERVICE_PREFIX = '/chat-service/v2';\nvar Routes = {\n CHAT_MERCHANT_APP: \"\".concat(SERVICE_PREFIX, \"/merchant-apps\"),\n CHAT_MERCHANT_APP_EXISTS: \"\".concat(SERVICE_PREFIX, \"/merchant-apps/exists\"),\n GET_OR_CREATE_CHAT_MERCHANT_APP: \"\".concat(SERVICE_PREFIX, \"/merchant-apps/get-or-create\"),\n GET_OR_CREATE_CHAT_USER: \"\".concat(SERVICE_PREFIX, \"/chat-users/get-or-create\"),\n GET_UNREAD_MESSAGE_COUNT: \"\".concat(SERVICE_PREFIX, \"/chat-users/unread-message-count\"),\n GET_OR_CREATE_CHAT_MEMBERS: \"\".concat(SERVICE_PREFIX, \"/chat-members/get-or-bulk-create\"),\n GET_USERS_AVAILABLE_TO_CHAT: \"\".concat(SERVICE_PREFIX, \"/bringg-users/available-to-chat\")\n};\nvar ChatService = /** @class */ (function (_super) {\n __extends(ChatService, _super);\n function ChatService(session) {\n var _this = _super.call(this, session.config.getApiEndpoint(), session) || this;\n _this.entityName = 'chat';\n _this.routeGenerator = new RouteGenerator_1.default(_this);\n return _this;\n }\n ChatService.prototype.getChatMerchantApp = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.routeGenerator.get(Routes.CHAT_MERCHANT_APP).invoke()];\n });\n });\n };\n ChatService.prototype.getOrCreateChatMerchantApp = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.routeGenerator.post(Routes.GET_OR_CREATE_CHAT_MERCHANT_APP).invoke()];\n });\n });\n };\n ChatService.prototype.getChatMerchantAppExists = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.routeGenerator.get(Routes.CHAT_MERCHANT_APP_EXISTS).invoke()];\n });\n });\n };\n ChatService.prototype.getOrCreateChatUser = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.routeGenerator.post(Routes.GET_OR_CREATE_CHAT_USER).invoke()];\n });\n });\n };\n ChatService.prototype.getUnreadMessageCount = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.routeGenerator.get(Routes.GET_UNREAD_MESSAGE_COUNT).invoke()];\n });\n });\n };\n ChatService.prototype.getOrCreateChatMembers = function (bringgUsersIds) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.routeGenerator.post(Routes.GET_OR_CREATE_CHAT_MEMBERS).withPayload({ bringgUsersIds: bringgUsersIds }).invoke()];\n });\n });\n };\n ChatService.prototype.getUsersAvailableToChat = function (_a) {\n var _b = _a === void 0 ? {} : _a, bringUserIds = _b.bringUserIds;\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_c) {\n return [2 /*return*/, this.routeGenerator\n .post(Routes.GET_USERS_AVAILABLE_TO_CHAT)\n .withPayload(__assign({}, (bringUserIds ? { bringUserIds: bringUserIds } : null)))\n .invoke()];\n });\n });\n };\n return ChatService;\n}(SessionBasedService_1.SessionBasedService));\nexports[\"default\"] = ChatService;\n//# sourceMappingURL=Chat.service.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Chat/Service/Chat.service.js?");
|
|
252
252
|
|
|
253
253
|
/***/ }),
|
|
254
254
|
|
|
@@ -2371,7 +2371,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
|
2371
2371
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2372
2372
|
|
|
2373
2373
|
"use strict";
|
|
2374
|
-
eval("\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.AnonymousServiceRequest = exports.AuthorizedServiceRequest = exports.ResponseHandler = exports.RequestOptions = exports.logErrorResponse = void 0;\nvar axios_1 = __importDefault(__webpack_require__(/*! axios */ \"./node_modules/axios/index.js\"));\nvar lodash_1 = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\nvar BringgException_1 = __webpack_require__(/*! ../Core/BringgException */ \"./dist/Core/BringgException.js\");\nvar Logger_1 = __importDefault(__webpack_require__(/*! ../Core/Logger */ \"./dist/Core/Logger.js\"));\nvar abort_1 = __webpack_require__(/*! ../utils/abort */ \"./dist/utils/abort.js\");\nvar version = '9.6.1';\nfunction logErrorResponse(response) {\n var data = response.data, status = response.status;\n try {\n Logger_1.default.error(response.config.method.toUpperCase(), response.config.url, status);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.info(response.config.method.toUpperCase(), response.config.url, status, data);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.debug(response);\n }\n catch (e) {\n //\n }\n}\nexports.logErrorResponse = logErrorResponse;\nvar DEFAULT_TIMEOUT = 120000;\nvar RequestOptions = /** @class */ (function () {\n function RequestOptions(clientId, timeout, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, authenticationToken, \n // eslint-disable-next-line @typescript-eslint/ban-types\n headers, responseType, signal) {\n // NiceToHave: move headers to HttpHeaders class\n this.headers = __assign(__assign({ 'Content-Type': 'application/json' }, headers), { 'sdk-version': version, Client: clientId });\n this.timeout = timeout;\n this.validateStatus = lodash_1.stubTrue;\n if (queryString) {\n this.params = queryString;\n }\n if (authenticationToken) {\n this.headers['Authorization'] = \"Token token=\".concat(authenticationToken);\n }\n if (responseType) {\n this.responseType = responseType;\n }\n if (signal) {\n this.signal = signal;\n }\n }\n RequestOptions.new = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.clientId, clientId = _c === void 0 ? 'Bringg Dashboard' : _c, _d = _b.timeout, timeout = _d === void 0 ? DEFAULT_TIMEOUT : _d, queryString = _b.queryString, authenticationToken = _b.authenticationToken, headers = _b.headers, responseType = _b.responseType, signal = _b.signal;\n return new RequestOptions(clientId, timeout || DEFAULT_TIMEOUT, queryString, authenticationToken, headers, responseType, signal);\n };\n return RequestOptions;\n}());\nexports.RequestOptions = RequestOptions;\nvar ResponseHandler = /** @class */ (function () {\n function ResponseHandler(response, signal) {\n this.axiosPromise = response;\n this.signal = signal;\n }\n ResponseHandler.prototype.handle = function (consumer) {\n return __awaiter(this, void 0, void 0, function () {\n var axiosResponse, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if ((0, lodash_1.isUndefined)(consumer)) {\n throw new Error('consumer must be defined');\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, this.axiosPromise];\n case 2:\n axiosResponse = _a.sent();\n return [2 /*return*/, consumer(axiosResponse)];\n case 3:\n e_1 = _a.sent();\n if (axios_1.default.isCancel(e_1)) {\n (0, abort_1.throwAbortError)(this.signal, 'Request Aborted');\n }\n if (e_1 instanceof BringgException_1.BringgException) {\n throw e_1;\n }\n return [2 /*return*/, consumer(e_1)];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return ResponseHandler;\n}());\nexports.ResponseHandler = ResponseHandler;\nfunction get(axiosInstance, host, uri, queryString, signal) {\n return new ResponseHandler(axiosInstance.get(\"\".concat(host).concat(uri), { params: queryString, signal: signal }), signal);\n}\nfunction post(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.post(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction put(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.put(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction patch(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.patch(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction remove(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.delete(\"\".concat(host).concat(uri), { params: queryString, data: payload, signal: signal }), signal);\n}\nfunction routify(axiosInstance, endpoint, route, \n// eslint-disable-next-line @typescript-eslint/ban-types\nrouteParams, queryString, payload, signal) {\n switch (route.httpMethod) {\n case 0 /* HttpMethod.GET */:\n return get(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, signal);\n case 1 /* HttpMethod.POST */:\n return post(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 2 /* HttpMethod.PUT */:\n return put(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 3 /* HttpMethod.PATCH */:\n return patch(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 4 /* HttpMethod.DELETE */:\n return remove(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n }\n}\nfunction wrapWithInterceptors(axios) {\n axios.interceptors.request.use(function (req) {\n var method = req.method, url = req.url, params = req.params, headers = req.headers, data = req.data;\n try {\n Logger_1.default.debug('REQUEST:', method.toUpperCase(), url);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('REQUEST-query-string:', params);\n Logger_1.default.trace('REQUEST-headers:', headers);\n Logger_1.default.trace('REQUEST-data:', data);\n }\n catch (e) {\n //\n }\n return req;\n });\n axios.interceptors.response.use(function (res) {\n var statusText = res.statusText, status = res.status, headers = res.headers, data = res.data;\n try {\n Logger_1.default.debug('RESPONSE:', res.config.url, status, statusText);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('RESPONSE-headers:', headers);\n Logger_1.default.trace('RESPONSE-data:', data);\n }\n catch (e) {\n //\n }\n return res;\n });\n return axios;\n}\nfunction axiosInstance(clientId, authenticationToken, \n// eslint-disable-next-line @typescript-eslint/ban-types\nheaders, responseType, timeout, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, authenticationToken: authenticationToken, headers: headers, responseType: responseType, timeout: timeout, signal: signal })));\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction anonymousAxiosInstance(clientId, headers, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, headers: headers, signal: signal })));\n}\nvar AuthorizedServiceRequest = /** @class */ (function () {\n function AuthorizedServiceRequest(clientId, authToken) {\n this.authToken = authToken;\n this.clientId = clientId;\n }\n AuthorizedServiceRequest.prototype.invoke = function (endpoint, route, \n // eslint-disable-next-line @typescript-eslint/ban-types\n routeParams, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, payload, \n // eslint-disable-next-line @typescript-eslint/ban-types\n headers, responseType, timeout, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(axiosInstance(this.clientId, this.authToken, headers, responseType, timeout), endpoint, route, routeParams, queryString, payload, signal);\n };\n return AuthorizedServiceRequest;\n}());\nexports.AuthorizedServiceRequest = AuthorizedServiceRequest;\nvar AnonymousServiceRequest = /** @class */ (function () {\n function AnonymousServiceRequest(clientId, headers) {\n this.clientId = clientId;\n this.headers = headers;\n }\n AnonymousServiceRequest.prototype.invoke = function (endpoint, route, \n // eslint-disable-next-line @typescript-eslint/ban-types\n routeParams, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, payload, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(anonymousAxiosInstance(this.clientId, this.headers, signal), endpoint, route, routeParams, queryString, payload);\n };\n return AnonymousServiceRequest;\n}());\nexports.AnonymousServiceRequest = AnonymousServiceRequest;\n//# sourceMappingURL=ServiceRequest.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Services/ServiceRequest.js?");
|
|
2374
|
+
eval("\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.AnonymousServiceRequest = exports.AuthorizedServiceRequest = exports.ResponseHandler = exports.RequestOptions = exports.logErrorResponse = void 0;\nvar axios_1 = __importDefault(__webpack_require__(/*! axios */ \"./node_modules/axios/index.js\"));\nvar lodash_1 = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\nvar BringgException_1 = __webpack_require__(/*! ../Core/BringgException */ \"./dist/Core/BringgException.js\");\nvar Logger_1 = __importDefault(__webpack_require__(/*! ../Core/Logger */ \"./dist/Core/Logger.js\"));\nvar abort_1 = __webpack_require__(/*! ../utils/abort */ \"./dist/utils/abort.js\");\nvar version = '9.7.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, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, authenticationToken, \n // eslint-disable-next-line @typescript-eslint/ban-types\n headers, responseType, signal) {\n // NiceToHave: move headers to HttpHeaders class\n this.headers = __assign(__assign({ 'Content-Type': 'application/json' }, headers), { 'sdk-version': version, Client: clientId });\n this.timeout = timeout;\n this.validateStatus = lodash_1.stubTrue;\n if (queryString) {\n this.params = queryString;\n }\n if (authenticationToken) {\n this.headers['Authorization'] = \"Token token=\".concat(authenticationToken);\n }\n if (responseType) {\n this.responseType = responseType;\n }\n if (signal) {\n this.signal = signal;\n }\n }\n RequestOptions.new = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.clientId, clientId = _c === void 0 ? 'Bringg Dashboard' : _c, _d = _b.timeout, timeout = _d === void 0 ? DEFAULT_TIMEOUT : _d, queryString = _b.queryString, authenticationToken = _b.authenticationToken, headers = _b.headers, responseType = _b.responseType, signal = _b.signal;\n return new RequestOptions(clientId, timeout || DEFAULT_TIMEOUT, queryString, authenticationToken, headers, responseType, signal);\n };\n return RequestOptions;\n}());\nexports.RequestOptions = RequestOptions;\nvar ResponseHandler = /** @class */ (function () {\n function ResponseHandler(response, signal) {\n this.axiosPromise = response;\n this.signal = signal;\n }\n ResponseHandler.prototype.handle = function (consumer) {\n return __awaiter(this, void 0, void 0, function () {\n var axiosResponse, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if ((0, lodash_1.isUndefined)(consumer)) {\n throw new Error('consumer must be defined');\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, this.axiosPromise];\n case 2:\n axiosResponse = _a.sent();\n return [2 /*return*/, consumer(axiosResponse)];\n case 3:\n e_1 = _a.sent();\n if (axios_1.default.isCancel(e_1)) {\n (0, abort_1.throwAbortError)(this.signal, 'Request Aborted');\n }\n if (e_1 instanceof BringgException_1.BringgException) {\n throw e_1;\n }\n return [2 /*return*/, consumer(e_1)];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return ResponseHandler;\n}());\nexports.ResponseHandler = ResponseHandler;\nfunction get(axiosInstance, host, uri, queryString, signal) {\n return new ResponseHandler(axiosInstance.get(\"\".concat(host).concat(uri), { params: queryString, signal: signal }), signal);\n}\nfunction post(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.post(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction put(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.put(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction patch(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.patch(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction remove(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.delete(\"\".concat(host).concat(uri), { params: queryString, data: payload, signal: signal }), signal);\n}\nfunction routify(axiosInstance, endpoint, route, \n// eslint-disable-next-line @typescript-eslint/ban-types\nrouteParams, queryString, payload, signal) {\n switch (route.httpMethod) {\n case 0 /* HttpMethod.GET */:\n return get(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, signal);\n case 1 /* HttpMethod.POST */:\n return post(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 2 /* HttpMethod.PUT */:\n return put(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 3 /* HttpMethod.PATCH */:\n return patch(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 4 /* HttpMethod.DELETE */:\n return remove(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n }\n}\nfunction wrapWithInterceptors(axios) {\n axios.interceptors.request.use(function (req) {\n var method = req.method, url = req.url, params = req.params, headers = req.headers, data = req.data;\n try {\n Logger_1.default.debug('REQUEST:', method.toUpperCase(), url);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('REQUEST-query-string:', params);\n Logger_1.default.trace('REQUEST-headers:', headers);\n Logger_1.default.trace('REQUEST-data:', data);\n }\n catch (e) {\n //\n }\n return req;\n });\n axios.interceptors.response.use(function (res) {\n var statusText = res.statusText, status = res.status, headers = res.headers, data = res.data;\n try {\n Logger_1.default.debug('RESPONSE:', res.config.url, status, statusText);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('RESPONSE-headers:', headers);\n Logger_1.default.trace('RESPONSE-data:', data);\n }\n catch (e) {\n //\n }\n return res;\n });\n return axios;\n}\nfunction axiosInstance(clientId, authenticationToken, \n// eslint-disable-next-line @typescript-eslint/ban-types\nheaders, responseType, timeout, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, authenticationToken: authenticationToken, headers: headers, responseType: responseType, timeout: timeout, signal: signal })));\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction anonymousAxiosInstance(clientId, headers, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, headers: headers, signal: signal })));\n}\nvar AuthorizedServiceRequest = /** @class */ (function () {\n function AuthorizedServiceRequest(clientId, authToken) {\n this.authToken = authToken;\n this.clientId = clientId;\n }\n AuthorizedServiceRequest.prototype.invoke = function (endpoint, route, \n // eslint-disable-next-line @typescript-eslint/ban-types\n routeParams, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, payload, \n // eslint-disable-next-line @typescript-eslint/ban-types\n headers, responseType, timeout, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(axiosInstance(this.clientId, this.authToken, headers, responseType, timeout), endpoint, route, routeParams, queryString, payload, signal);\n };\n return AuthorizedServiceRequest;\n}());\nexports.AuthorizedServiceRequest = AuthorizedServiceRequest;\nvar AnonymousServiceRequest = /** @class */ (function () {\n function AnonymousServiceRequest(clientId, headers) {\n this.clientId = clientId;\n this.headers = headers;\n }\n AnonymousServiceRequest.prototype.invoke = function (endpoint, route, \n // eslint-disable-next-line @typescript-eslint/ban-types\n routeParams, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, payload, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(anonymousAxiosInstance(this.clientId, this.headers, signal), endpoint, route, routeParams, queryString, payload);\n };\n return AnonymousServiceRequest;\n}());\nexports.AnonymousServiceRequest = AnonymousServiceRequest;\n//# sourceMappingURL=ServiceRequest.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Services/ServiceRequest.js?");
|
|
2375
2375
|
|
|
2376
2376
|
/***/ }),
|
|
2377
2377
|
|
|
@@ -3790,7 +3790,7 @@ eval("\nvar __createBinding = (this && this.__createBinding) || (Object.create ?
|
|
|
3790
3790
|
/***/ ((__unused_webpack_module, exports) => {
|
|
3791
3791
|
|
|
3792
3792
|
"use strict";
|
|
3793
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.ActionKey = exports.ActionType = void 0;\nvar ActionType;\n(function (ActionType) {\n ActionType[ActionType[\"ALERT\"] = 0] = \"ALERT\";\n ActionType[ActionType[\"INTERNAL_SMS\"] = 1] = \"INTERNAL_SMS\";\n ActionType[ActionType[\"
|
|
3793
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.ActionKey = exports.ActionType = exports.CommunicationDataRecipient = void 0;\nvar CommunicationDataRecipient;\n(function (CommunicationDataRecipient) {\n CommunicationDataRecipient[CommunicationDataRecipient[\"FirstWaypointContacts\"] = 3] = \"FirstWaypointContacts\";\n CommunicationDataRecipient[CommunicationDataRecipient[\"LastWaypointContacts\"] = 4] = \"LastWaypointContacts\";\n})(CommunicationDataRecipient || (exports.CommunicationDataRecipient = CommunicationDataRecipient = {}));\nvar ActionType;\n(function (ActionType) {\n ActionType[ActionType[\"ALERT\"] = 0] = \"ALERT\";\n ActionType[ActionType[\"INTERNAL_SMS\"] = 1] = \"INTERNAL_SMS\";\n ActionType[ActionType[\"EMAIL\"] = 2] = \"EMAIL\";\n ActionType[ActionType[\"WEBHOOK\"] = 3] = \"WEBHOOK\";\n ActionType[ActionType[\"ENTITY_UPDATE\"] = 4] = \"ENTITY_UPDATE\";\n ActionType[ActionType[\"RELEASE\"] = 5] = \"RELEASE\";\n ActionType[ActionType[\"MARK_NOT_READY\"] = 6] = \"MARK_NOT_READY\";\n ActionType[ActionType[\"FINISH_TASK\"] = 7] = \"FINISH_TASK\";\n ActionType[ActionType[\"SHARE_WITH_CUSTOMER\"] = 8] = \"SHARE_WITH_CUSTOMER\";\n ActionType[ActionType[\"AUTO_UNASSIGN\"] = 9] = \"AUTO_UNASSIGN\";\n ActionType[ActionType[\"RESCHEDULE_TASKS\"] = 10] = \"RESCHEDULE_TASKS\";\n ActionType[ActionType[\"SHARED_LOCATION\"] = 11] = \"SHARED_LOCATION\";\n ActionType[ActionType[\"CONVERT_LINKED_TO_MM\"] = 12] = \"CONVERT_LINKED_TO_MM\";\n ActionType[ActionType[\"CONVERT_MM_TO_LINKED\"] = 13] = \"CONVERT_MM_TO_LINKED\";\n ActionType[ActionType[\"OPTIMIZATION\"] = 14] = \"OPTIMIZATION\";\n ActionType[ActionType[\"CANCEL_TASK\"] = 15] = \"CANCEL_TASK\";\n ActionType[ActionType[\"TOTAL_WEIGHT_NULLIFY\"] = 16] = \"TOTAL_WEIGHT_NULLIFY\";\n ActionType[ActionType[\"TOTAL_HANDLING_UNITS_NULLIFY_ALL\"] = 17] = \"TOTAL_HANDLING_UNITS_NULLIFY_ALL\";\n ActionType[ActionType[\"LEAN_COPY\"] = 18] = \"LEAN_COPY\";\n ActionType[ActionType[\"CALCULATE_AVAILABILITY_STATE\"] = 19] = \"CALCULATE_AVAILABILITY_STATE\";\n ActionType[ActionType[\"CALCULATE_AVAILABILITY_STATE_GENERIC\"] = 20] = \"CALCULATE_AVAILABILITY_STATE_GENERIC\";\n ActionType[ActionType[\"ASSIGN_TEAM_BY_PDW\"] = 21] = \"ASSIGN_TEAM_BY_PDW\";\n ActionType[ActionType[\"NARROW_ACTIONABLE_WP_TIME_WINDOW\"] = 22] = \"NARROW_ACTIONABLE_WP_TIME_WINDOW\";\n ActionType[ActionType[\"EMAIL_SHARED_LOCATION\"] = 23] = \"EMAIL_SHARED_LOCATION\";\n ActionType[ActionType[\"TASK_WEBHOOK\"] = 24] = \"TASK_WEBHOOK\";\n ActionType[ActionType[\"TASKS_WEBHOOK\"] = 25] = \"TASKS_WEBHOOK\";\n ActionType[ActionType[\"DUPLICATE_TASK\"] = 26] = \"DUPLICATE_TASK\";\n ActionType[ActionType[\"USER_WEBHOOK\"] = 27] = \"USER_WEBHOOK\";\n})(ActionType || (exports.ActionType = ActionType = {}));\nvar ActionKey;\n(function (ActionKey) {\n ActionKey[\"UPDATE\"] = \"updateEntity\";\n ActionKey[\"GENERIC_ACTION\"] = \"genericAction\";\n ActionKey[\"ALERT\"] = \"alert\";\n ActionKey[\"SHARED_LOCATION\"] = \"sharedLocation\";\n ActionKey[\"OPTIMIZATION\"] = \"optimization\";\n ActionKey[\"CANCEL_TASK\"] = \"cancelTask\";\n ActionKey[\"CALCULATE_AVAILABILITY_STATE\"] = \"calculateAvailabilityState\";\n ActionKey[\"NARROW_ACTIONABLE_WP_TIME_WINDOW\"] = \"narrowActionableWpTimeWindow\";\n ActionKey[\"EMAIL_SHARED_LOCATION\"] = \"emailSharedLocation\";\n ActionKey[\"TASK_WEBHOOK\"] = \"taskWebhook\";\n ActionKey[\"TASKS_WEBHOOK\"] = \"tasksWebhook\";\n ActionKey[\"USER_WEBHOOK\"] = \"userWebhook\";\n})(ActionKey || (exports.ActionKey = ActionKey = {}));\n//# sourceMappingURL=action.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/action.js?");
|
|
3794
3794
|
|
|
3795
3795
|
/***/ }),
|
|
3796
3796
|
|
|
@@ -4285,7 +4285,7 @@ eval("\nvar _a;\nObject.defineProperty(exports, \"__esModule\", ({ value: true }
|
|
|
4285
4285
|
/***/ ((__unused_webpack_module, exports) => {
|
|
4286
4286
|
|
|
4287
4287
|
"use strict";
|
|
4288
|
-
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 || (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 || (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]+(\\[\\d+\\])*?$/;\n//# sourceMappingURL=custom_attribute.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/custom_attribute.js?");
|
|
4288
|
+
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 || (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]+(\\[\\d+\\])*?$/;\n//# sourceMappingURL=custom_attribute.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/custom_attribute.js?");
|
|
4289
4289
|
|
|
4290
4290
|
/***/ }),
|
|
4291
4291
|
|
|
@@ -4351,7 +4351,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
|
4351
4351
|
/***/ ((__unused_webpack_module, exports) => {
|
|
4352
4352
|
|
|
4353
4353
|
"use strict";
|
|
4354
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.DeliveryBlockResourceLocationType = exports.BreakType = void 0;\nvar BreakType;\n(function (BreakType) {\n BreakType[BreakType[\"Fixed\"] = 0] = \"Fixed\";\n BreakType[BreakType[\"Flex\"] = 1] = \"Flex\";\n BreakType[BreakType[\"Relative\"] = 2] = \"Relative\";\n})(BreakType || (exports.BreakType = BreakType = {}));\nvar DeliveryBlockResourceLocationType;\n(function (DeliveryBlockResourceLocationType) {\n DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType[\"DRIVER_ADDRESS\"] = 1] = \"DRIVER_ADDRESS\";\n DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType[\"TEAM_ADDRESS\"] = 2] = \"TEAM_ADDRESS\";\n DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType[\"PARKING_SPOT\"] = 3] = \"PARKING_SPOT\";\n DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType[\"VEHICLE_DEFAULT_PARKING\"] = 4] = \"VEHICLE_DEFAULT_PARKING\";\n DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType[\"LAST_DRIVER_LOCATION\"] = 5] = \"LAST_DRIVER_LOCATION\";\n})(DeliveryBlockResourceLocationType || (exports.DeliveryBlockResourceLocationType = DeliveryBlockResourceLocationType = {}));\n//# sourceMappingURL=delivery_block.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/delivery_block.js?");
|
|
4354
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.ResourceLocationId = exports.DeliveryBlockResourceLocationType = exports.BreakType = void 0;\nvar BreakType;\n(function (BreakType) {\n BreakType[BreakType[\"Fixed\"] = 0] = \"Fixed\";\n BreakType[BreakType[\"Flex\"] = 1] = \"Flex\";\n BreakType[BreakType[\"Relative\"] = 2] = \"Relative\";\n})(BreakType || (exports.BreakType = BreakType = {}));\nvar DeliveryBlockResourceLocationType;\n(function (DeliveryBlockResourceLocationType) {\n DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType[\"DRIVER_ADDRESS\"] = 1] = \"DRIVER_ADDRESS\";\n DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType[\"TEAM_ADDRESS\"] = 2] = \"TEAM_ADDRESS\";\n DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType[\"PARKING_SPOT\"] = 3] = \"PARKING_SPOT\";\n DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType[\"VEHICLE_DEFAULT_PARKING\"] = 4] = \"VEHICLE_DEFAULT_PARKING\";\n DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType[\"LAST_DRIVER_LOCATION\"] = 5] = \"LAST_DRIVER_LOCATION\";\n})(DeliveryBlockResourceLocationType || (exports.DeliveryBlockResourceLocationType = DeliveryBlockResourceLocationType = {}));\nvar ResourceLocationId;\n(function (ResourceLocationId) {\n ResourceLocationId[\"DEPOT\"] = \"depot\";\n ResourceLocationId[\"HOME\"] = \"home\";\n ResourceLocationId[\"TASK\"] = \"task\";\n ResourceLocationId[\"DRIVER_LOCATION\"] = \"driver_location\";\n})(ResourceLocationId || (exports.ResourceLocationId = ResourceLocationId = {}));\n//# sourceMappingURL=delivery_block.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/delivery_block.js?");
|
|
4355
4355
|
|
|
4356
4356
|
/***/ }),
|
|
4357
4357
|
|
|
@@ -5825,7 +5825,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar
|
|
|
5825
5825
|
/***/ ((__unused_webpack_module, exports) => {
|
|
5826
5826
|
|
|
5827
5827
|
"use strict";
|
|
5828
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.DisplayFact = exports.RuleRequestType = exports.FactType = exports.Entity = exports.RuleCategory = exports.ArrayType = exports.RuleCompareOperator = exports.AttributeDatatype = void 0;\nvar AttributeDatatype;\n(function (AttributeDatatype) {\n AttributeDatatype[\"String\"] = \"string\";\n AttributeDatatype[\"Number\"] = \"number\";\n AttributeDatatype[\"Boolean\"] = \"boolean\";\n AttributeDatatype[\"Datetime\"] = \"datetime\";\n AttributeDatatype[\"Array\"] = \"array\";\n AttributeDatatype[\"StringArray\"] = \"string-array\";\n AttributeDatatype[\"NumberArray\"] = \"number-array\";\n AttributeDatatype[\"BooleanArray\"] = \"boolean-array\";\n AttributeDatatype[\"DatetimeArray\"] = \"datetime-array\";\n})(AttributeDatatype || (exports.AttributeDatatype = AttributeDatatype = {}));\nvar RuleCompareOperator;\n(function (RuleCompareOperator) {\n RuleCompareOperator[\"EQUALS\"] = \"EQUALS\";\n RuleCompareOperator[\"ARRAY_ELEMENT_EQUALS\"] = \"ARRAY_ELEMENT_EQUALS\";\n RuleCompareOperator[\"NOT_EQUALS\"] = \"NOT_EQUALS\";\n RuleCompareOperator[\"ARRAY_ELEMENT_NOT_EQUALS\"] = \"ARRAY_ELEMENT_NOT_EQUALS\";\n RuleCompareOperator[\"INCLUDE\"] = \"INCLUDE\";\n RuleCompareOperator[\"ARRAY_ELEMENT_INCLUDE\"] = \"ARRAY_ELEMENT_INCLUDE\";\n RuleCompareOperator[\"ARRAY_ELEMENT_INCLUDE_ONE_OF_THE_ITEMS_FROM_SUBSTRING_ARRAY\"] = \"ARRAY_ELEMENT_INCLUDE_ONE_OF_THE_ITEMS_FROM_SUBSTRING_ARRAY\";\n RuleCompareOperator[\"ARRAY_ELEMENT_EXCLUDE_ALL_ITEMS_FROM_SUBSTRING_ARRAY\"] = \"ARRAY_ELEMENT_EXCLUDE_ALL_ITEMS_FROM_SUBSTRING_ARRAY\";\n RuleCompareOperator[\"EXCLUDE\"] = \"EXCLUDE\";\n RuleCompareOperator[\"ARRAY_ELEMENT_EXCLUDE\"] = \"ARRAY_ELEMENT_EXCLUDE\";\n RuleCompareOperator[\"LESS_THAN\"] = \"LESS_THAN\";\n RuleCompareOperator[\"ARRAY_ELEMENT_LESS_THAN\"] = \"ARRAY_ELEMENT_LESS_THAN\";\n RuleCompareOperator[\"LESS_THAN_OR_EQUALS\"] = \"LESS_THAN_OR_EQUALS\";\n RuleCompareOperator[\"ARRAY_ELEMENT_LESS_THAN_OR_EQUALS\"] = \"ARRAY_ELEMENT_LESS_THAN_OR_EQUALS\";\n RuleCompareOperator[\"GREATER_THAN\"] = \"GREATER_THAN\";\n RuleCompareOperator[\"ARRAY_ELEMENT_GREATER_THAN\"] = \"ARRAY_ELEMENT_GREATER_THAN\";\n RuleCompareOperator[\"GREATER_THAN_OR_EQUALS\"] = \"GREATER_THAN_OR_EQUALS\";\n RuleCompareOperator[\"ARRAY_ELEMENT_GREATER_THAN_OR_EQUALS\"] = \"ARRAY_ELEMENT_GREATER_THAN_OR_EQUALS\";\n RuleCompareOperator[\"IN\"] = \"IN\";\n RuleCompareOperator[\"ARRAY_ELEMENT_IN\"] = \"ARRAY_ELEMENT_IN\";\n RuleCompareOperator[\"NOT_IN\"] = \"NOT_IN\";\n RuleCompareOperator[\"ARRAY_ELEMENT_NOT_IN\"] = \"ARRAY_ELEMENT_NOT_IN\";\n RuleCompareOperator[\"IN_RANGE\"] = \"IN_RANGE\";\n RuleCompareOperator[\"ARRAY_ELEMENT_IN_RANGE\"] = \"ARRAY_ELEMENT_IN_RANGE\";\n RuleCompareOperator[\"ARRAY_INTERSECTION_HAS_ONE\"] = \"ARRAY_INTERSECTION_HAS_ONE\";\n RuleCompareOperator[\"ARRAY_ELEMENT_ARRAY_INTERSECTION_HAS_ONE\"] = \"ARRAY_ELEMENT_ARRAY_INTERSECTION_HAS_ONE\";\n RuleCompareOperator[\"ARRAY_INTERSECTION_HAS_ALL\"] = \"ARRAY_INTERSECTION_HAS_ALL\";\n RuleCompareOperator[\"ARRAY_ELEMENT_ARRAY_INTERSECTION_HAS_ALL\"] = \"ARRAY_ELEMENT_ARRAY_INTERSECTION_HAS_ALL\";\n RuleCompareOperator[\"EMPTY\"] = \"EMPTY\";\n RuleCompareOperator[\"ARRAY_ELEMENT_EMPTY\"] = \"ARRAY_ELEMENT_EMPTY\";\n RuleCompareOperator[\"NOT_EMPTY\"] = \"NOT_EMPTY\";\n RuleCompareOperator[\"ARRAY_ELEMENT_NOT_EMPTY\"] = \"ARRAY_ELEMENT_NOT_EMPTY\";\n RuleCompareOperator[\"STARTS_WITH\"] = \"STARTS_WITH\";\n RuleCompareOperator[\"ARRAY_ELEMENT_STARTS_WITH\"] = \"ARRAY_ELEMENT_STARTS_WITH\";\n RuleCompareOperator[\"NOT_STARTS_WITH\"] = \"NOT_STARTS_WITH\";\n RuleCompareOperator[\"ARRAY_ELEMENT_NOT_STARTS_WITH\"] = \"ARRAY_ELEMENT_NOT_STARTS_WITH\";\n RuleCompareOperator[\"ENDS_WITH\"] = \"ENDS_WITH\";\n RuleCompareOperator[\"ARRAY_ELEMENT_ENDS_WITH\"] = \"ARRAY_ELEMENT_ENDS_WITH\";\n RuleCompareOperator[\"NOT_ENDS_WITH\"] = \"NOT_ENDS_WITH\";\n RuleCompareOperator[\"ARRAY_ELEMENT_NOT_ENDS_WITH\"] = \"ARRAY_ELEMENT_NOT_ENDS_WITH\";\n})(RuleCompareOperator || (exports.RuleCompareOperator = RuleCompareOperator = {}));\nvar ArrayType;\n(function (ArrayType) {\n ArrayType[\"ANY\"] = \"any\";\n ArrayType[\"ALL\"] = \"all\";\n})(ArrayType || (exports.ArrayType = ArrayType = {}));\nvar RuleCategory;\n(function (RuleCategory) {\n RuleCategory[RuleCategory[\"FleetRouterDeliveryTerm\"] = 0] = \"FleetRouterDeliveryTerm\";\n RuleCategory[RuleCategory[\"Alert\"] = 1] = \"Alert\";\n RuleCategory[RuleCategory[\"Rate\"] = 2] = \"Rate\";\n RuleCategory[RuleCategory[\"Workflow\"] = 3] = \"Workflow\";\n RuleCategory[RuleCategory[\"FleetRouterRulePolicy\"] = 4] = \"FleetRouterRulePolicy\";\n})(RuleCategory || (exports.RuleCategory = RuleCategory = {}));\nvar Entity;\n(function (Entity) {\n Entity[\"Fleet\"] = \"fleet\";\n Entity[\"DeliveryProvider\"] = \"delivery_provider\";\n Entity[\"Action\"] = \"action\";\n Entity[\"FleetRouterRulePolicy\"] = \"
|
|
5828
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.DisplayFact = exports.RuleRequestType = exports.FactType = exports.Entity = exports.RuleCategory = exports.ArrayType = exports.RuleCompareOperator = exports.AttributeDatatype = void 0;\nvar AttributeDatatype;\n(function (AttributeDatatype) {\n AttributeDatatype[\"String\"] = \"string\";\n AttributeDatatype[\"Number\"] = \"number\";\n AttributeDatatype[\"Boolean\"] = \"boolean\";\n AttributeDatatype[\"Datetime\"] = \"datetime\";\n AttributeDatatype[\"Array\"] = \"array\";\n AttributeDatatype[\"StringArray\"] = \"string-array\";\n AttributeDatatype[\"NumberArray\"] = \"number-array\";\n AttributeDatatype[\"BooleanArray\"] = \"boolean-array\";\n AttributeDatatype[\"DatetimeArray\"] = \"datetime-array\";\n})(AttributeDatatype || (exports.AttributeDatatype = AttributeDatatype = {}));\nvar RuleCompareOperator;\n(function (RuleCompareOperator) {\n RuleCompareOperator[\"EQUALS\"] = \"EQUALS\";\n RuleCompareOperator[\"ARRAY_ELEMENT_EQUALS\"] = \"ARRAY_ELEMENT_EQUALS\";\n RuleCompareOperator[\"NOT_EQUALS\"] = \"NOT_EQUALS\";\n RuleCompareOperator[\"ARRAY_ELEMENT_NOT_EQUALS\"] = \"ARRAY_ELEMENT_NOT_EQUALS\";\n RuleCompareOperator[\"INCLUDE\"] = \"INCLUDE\";\n RuleCompareOperator[\"ARRAY_ELEMENT_INCLUDE\"] = \"ARRAY_ELEMENT_INCLUDE\";\n RuleCompareOperator[\"ARRAY_ELEMENT_INCLUDE_ONE_OF_THE_ITEMS_FROM_SUBSTRING_ARRAY\"] = \"ARRAY_ELEMENT_INCLUDE_ONE_OF_THE_ITEMS_FROM_SUBSTRING_ARRAY\";\n RuleCompareOperator[\"ARRAY_ELEMENT_EXCLUDE_ALL_ITEMS_FROM_SUBSTRING_ARRAY\"] = \"ARRAY_ELEMENT_EXCLUDE_ALL_ITEMS_FROM_SUBSTRING_ARRAY\";\n RuleCompareOperator[\"EXCLUDE\"] = \"EXCLUDE\";\n RuleCompareOperator[\"ARRAY_ELEMENT_EXCLUDE\"] = \"ARRAY_ELEMENT_EXCLUDE\";\n RuleCompareOperator[\"LESS_THAN\"] = \"LESS_THAN\";\n RuleCompareOperator[\"ARRAY_ELEMENT_LESS_THAN\"] = \"ARRAY_ELEMENT_LESS_THAN\";\n RuleCompareOperator[\"LESS_THAN_OR_EQUALS\"] = \"LESS_THAN_OR_EQUALS\";\n RuleCompareOperator[\"ARRAY_ELEMENT_LESS_THAN_OR_EQUALS\"] = \"ARRAY_ELEMENT_LESS_THAN_OR_EQUALS\";\n RuleCompareOperator[\"GREATER_THAN\"] = \"GREATER_THAN\";\n RuleCompareOperator[\"ARRAY_ELEMENT_GREATER_THAN\"] = \"ARRAY_ELEMENT_GREATER_THAN\";\n RuleCompareOperator[\"GREATER_THAN_OR_EQUALS\"] = \"GREATER_THAN_OR_EQUALS\";\n RuleCompareOperator[\"ARRAY_ELEMENT_GREATER_THAN_OR_EQUALS\"] = \"ARRAY_ELEMENT_GREATER_THAN_OR_EQUALS\";\n RuleCompareOperator[\"IN\"] = \"IN\";\n RuleCompareOperator[\"ARRAY_ELEMENT_IN\"] = \"ARRAY_ELEMENT_IN\";\n RuleCompareOperator[\"NOT_IN\"] = \"NOT_IN\";\n RuleCompareOperator[\"ARRAY_ELEMENT_NOT_IN\"] = \"ARRAY_ELEMENT_NOT_IN\";\n RuleCompareOperator[\"IN_RANGE\"] = \"IN_RANGE\";\n RuleCompareOperator[\"ARRAY_ELEMENT_IN_RANGE\"] = \"ARRAY_ELEMENT_IN_RANGE\";\n RuleCompareOperator[\"ARRAY_INTERSECTION_HAS_ONE\"] = \"ARRAY_INTERSECTION_HAS_ONE\";\n RuleCompareOperator[\"ARRAY_ELEMENT_ARRAY_INTERSECTION_HAS_ONE\"] = \"ARRAY_ELEMENT_ARRAY_INTERSECTION_HAS_ONE\";\n RuleCompareOperator[\"ARRAY_INTERSECTION_HAS_ALL\"] = \"ARRAY_INTERSECTION_HAS_ALL\";\n RuleCompareOperator[\"ARRAY_ELEMENT_ARRAY_INTERSECTION_HAS_ALL\"] = \"ARRAY_ELEMENT_ARRAY_INTERSECTION_HAS_ALL\";\n RuleCompareOperator[\"EMPTY\"] = \"EMPTY\";\n RuleCompareOperator[\"ARRAY_ELEMENT_EMPTY\"] = \"ARRAY_ELEMENT_EMPTY\";\n RuleCompareOperator[\"NOT_EMPTY\"] = \"NOT_EMPTY\";\n RuleCompareOperator[\"ARRAY_ELEMENT_NOT_EMPTY\"] = \"ARRAY_ELEMENT_NOT_EMPTY\";\n RuleCompareOperator[\"STARTS_WITH\"] = \"STARTS_WITH\";\n RuleCompareOperator[\"ARRAY_ELEMENT_STARTS_WITH\"] = \"ARRAY_ELEMENT_STARTS_WITH\";\n RuleCompareOperator[\"NOT_STARTS_WITH\"] = \"NOT_STARTS_WITH\";\n RuleCompareOperator[\"ARRAY_ELEMENT_NOT_STARTS_WITH\"] = \"ARRAY_ELEMENT_NOT_STARTS_WITH\";\n RuleCompareOperator[\"ENDS_WITH\"] = \"ENDS_WITH\";\n RuleCompareOperator[\"ARRAY_ELEMENT_ENDS_WITH\"] = \"ARRAY_ELEMENT_ENDS_WITH\";\n RuleCompareOperator[\"NOT_ENDS_WITH\"] = \"NOT_ENDS_WITH\";\n RuleCompareOperator[\"ARRAY_ELEMENT_NOT_ENDS_WITH\"] = \"ARRAY_ELEMENT_NOT_ENDS_WITH\";\n})(RuleCompareOperator || (exports.RuleCompareOperator = RuleCompareOperator = {}));\nvar ArrayType;\n(function (ArrayType) {\n ArrayType[\"ANY\"] = \"any\";\n ArrayType[\"ALL\"] = \"all\";\n})(ArrayType || (exports.ArrayType = ArrayType = {}));\nvar RuleCategory;\n(function (RuleCategory) {\n RuleCategory[RuleCategory[\"FleetRouterDeliveryTerm\"] = 0] = \"FleetRouterDeliveryTerm\";\n RuleCategory[RuleCategory[\"Alert\"] = 1] = \"Alert\";\n RuleCategory[RuleCategory[\"Rate\"] = 2] = \"Rate\";\n RuleCategory[RuleCategory[\"Workflow\"] = 3] = \"Workflow\";\n RuleCategory[RuleCategory[\"FleetRouterRulePolicy\"] = 4] = \"FleetRouterRulePolicy\";\n})(RuleCategory || (exports.RuleCategory = RuleCategory = {}));\nvar Entity;\n(function (Entity) {\n Entity[\"Fleet\"] = \"fleet\";\n Entity[\"DeliveryProvider\"] = \"delivery_provider\";\n Entity[\"Action\"] = \"action\";\n Entity[\"FleetRouterRulePolicy\"] = \"fleet_router_rules_groups\";\n})(Entity || (exports.Entity = Entity = {}));\nvar FactType;\n(function (FactType) {\n FactType[\"Task\"] = \"task\";\n FactType[\"Waypoint\"] = \"waypoint\";\n FactType[\"Inventory\"] = \"inventory\";\n FactType[\"Run\"] = \"run\";\n FactType[\"Rate\"] = \"rate\";\n FactType[\"User\"] = \"user\";\n FactType[\"DeliveryBlock\"] = \"delivery_block\";\n})(FactType || (exports.FactType = FactType = {}));\nvar RuleRequestType;\n(function (RuleRequestType) {\n RuleRequestType[\"Evaluate\"] = \"rule:evaluate\";\n})(RuleRequestType || (exports.RuleRequestType = RuleRequestType = {}));\nvar DisplayFact;\n(function (DisplayFact) {\n DisplayFact[\"Task\"] = \"task\";\n DisplayFact[\"QueryTask\"] = \"query_task\";\n DisplayFact[\"User\"] = \"user\";\n DisplayFact[\"DeliveryBlock\"] = \"delivery_block\";\n})(DisplayFact || (exports.DisplayFact = DisplayFact = {}));\n//# sourceMappingURL=rule_types.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/workflow/rule_types.js?");
|
|
5829
5829
|
|
|
5830
5830
|
/***/ }),
|
|
5831
5831
|
|