@bringg/dashboard-sdk 9.12.4 → 9.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Rates/Entity/RatesEntity.d.ts +4 -1
- package/dist/Rates/Entity/RatesEntity.js +45 -2
- package/dist/Rates/Entity/RatesEntity.js.map +1 -1
- package/dist/Rates/Rates.consts.d.ts +4 -1
- package/dist/Rates/Rates.consts.js +5 -2
- package/dist/Rates/Rates.consts.js.map +1 -1
- package/dist/Rates/RatesApi.d.ts +4 -1
- package/dist/Rates/RatesApi.js +14 -0
- package/dist/Rates/RatesApi.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/TaskInventory/Service/TaskInventory.service.d.ts +2 -0
- package/dist/TaskInventory/Service/TaskInventory.service.js +17 -1
- package/dist/TaskInventory/Service/TaskInventory.service.js.map +1 -1
- package/dist/TaskInventory/TaskInventory.consts.d.ts +15 -0
- package/dist/TaskInventory/TaskInventory.consts.js +5 -1
- package/dist/TaskInventory/TaskInventory.consts.js.map +1 -1
- package/dist/TaskInventory/TaskInventory.d.ts +1 -0
- package/dist/TaskInventory/TaskInventory.js +4 -0
- package/dist/TaskInventory/TaskInventory.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +96 -7
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +9 -9
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -1810,7 +1810,7 @@ eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _argument
|
|
|
1810
1810
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1811
1811
|
|
|
1812
1812
|
"use strict";
|
|
1813
|
-
eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (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 Entity_1 = __importDefault(__webpack_require__(/*! ../../Core/Entity */ \"./dist/Core/Entity.js\"));\nvar Rates_consts_1 = __webpack_require__(/*! ../Rates.consts */ \"./dist/Rates/Rates.consts.js\");\n// Yet no internal rates related store and socket events\n// enough to extend Entity instead of StoreEntity\nvar RatesEntity = /** @class */ (function (_super) {\n __extends(RatesEntity, _super);\n function RatesEntity(session) {\n return _super.call(this, {\n session: session,\n entityName: 'rates'\n // API doesn't comply to route rules, check CrudService\n // routes: undefined,\n }) || this;\n }\n RatesEntity.prototype.getRates = function (params) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .get(Rates_consts_1.Routes.
|
|
1813
|
+
eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (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 Entity_1 = __importDefault(__webpack_require__(/*! ../../Core/Entity */ \"./dist/Core/Entity.js\"));\nvar Rates_consts_1 = __webpack_require__(/*! ../Rates.consts */ \"./dist/Rates/Rates.consts.js\");\n// Yet no internal rates related store and socket events\n// enough to extend Entity instead of StoreEntity\nvar RatesEntity = /** @class */ (function (_super) {\n __extends(RatesEntity, _super);\n function RatesEntity(session) {\n return _super.call(this, {\n session: session,\n entityName: 'rates'\n // API doesn't comply to route rules, check CrudService\n // routes: undefined,\n }) || this;\n }\n RatesEntity.prototype.getRates = function (params) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .get(Rates_consts_1.Routes.RATES_CRUD)\n .withQueryString(params)\n .invoke()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RatesEntity.prototype.postRates = function (payload) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .post(Rates_consts_1.Routes.RATES_CRUD)\n .withPayload(payload)\n .invoke()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RatesEntity.prototype.importRateCardTerms = function (payload) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .post(Rates_consts_1.Routes.IMPORT_CSV)\n .withHeaders({ 'Content-Type': 'multipart/form-data' })\n .withPayload(payload)\n .setException('Failed to import rate card csv')\n .invoke()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RatesEntity.prototype.exportRateCardTerms = function (payload) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .post(Rates_consts_1.Routes.EXPORT_CSV)\n .withPayload(payload)\n .setException('Failed to export rate card csv')\n .invoke()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RatesEntity.prototype.exportMasterRateCardTerms = function (payload) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.service.routeGenerator\n .post(Rates_consts_1.Routes.EXPORT_MASTER_CSV)\n .withPayload(payload)\n .setException('Failed to export master csv')\n .invoke()];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n return RatesEntity;\n}(Entity_1.default));\nexports[\"default\"] = RatesEntity;\n//# sourceMappingURL=RatesEntity.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Rates/Entity/RatesEntity.js?");
|
|
1814
1814
|
|
|
1815
1815
|
/***/ }),
|
|
1816
1816
|
|
|
@@ -1821,7 +1821,7 @@ eval("\nvar __extends = (this && this.__extends) || (function () {\n var exte
|
|
|
1821
1821
|
/***/ ((__unused_webpack_module, exports) => {
|
|
1822
1822
|
|
|
1823
1823
|
"use strict";
|
|
1824
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Routes = void 0;\nvar baseRoute = '/rate-service';\nexports.Routes = {\n
|
|
1824
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Routes = void 0;\nvar baseRoute = '/rate-service/v1';\nexports.Routes = {\n RATES_CRUD: \"\".concat(baseRoute, \"/rates\"),\n IMPORT_CSV: \"\".concat(baseRoute, \"/csv/import\"),\n EXPORT_CSV: \"\".concat(baseRoute, \"/csv/export\"),\n EXPORT_MASTER_CSV: \"\".concat(baseRoute, \"/csv/master\")\n};\n//# sourceMappingURL=Rates.consts.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Rates/Rates.consts.js?");
|
|
1825
1825
|
|
|
1826
1826
|
/***/ }),
|
|
1827
1827
|
|
|
@@ -1832,7 +1832,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
|
1832
1832
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1833
1833
|
|
|
1834
1834
|
"use strict";
|
|
1835
|
-
eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar RatesEntity_1 = __importDefault(__webpack_require__(/*! ./Entity/RatesEntity */ \"./dist/Rates/Entity/RatesEntity.js\"));\nvar RatesApi = /** @class */ (function () {\n function RatesApi(session) {\n this.ratesEntity = new RatesEntity_1.default(session);\n }\n RatesApi.prototype.getRates = function (params) {\n return this.ratesEntity.getRates(params);\n };\n RatesApi.prototype.postRates = function (payload) {\n return this.ratesEntity.postRates(payload);\n };\n return RatesApi;\n}());\nexports[\"default\"] = RatesApi;\n//# sourceMappingURL=RatesApi.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Rates/RatesApi.js?");
|
|
1835
|
+
eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar RatesEntity_1 = __importDefault(__webpack_require__(/*! ./Entity/RatesEntity */ \"./dist/Rates/Entity/RatesEntity.js\"));\nvar RatesApi = /** @class */ (function () {\n function RatesApi(session) {\n this.ratesEntity = new RatesEntity_1.default(session);\n }\n RatesApi.prototype.getRates = function (params) {\n return this.ratesEntity.getRates(params);\n };\n RatesApi.prototype.postRates = function (payload) {\n return this.ratesEntity.postRates(payload);\n };\n RatesApi.prototype.importRateCardTerms = function (payload) {\n var formData = new FormData();\n formData.append('file', payload.file);\n formData.append('entity_id', payload.entity_id.toString());\n formData.append('term_type', payload.term_type);\n formData.append('options', JSON.stringify(payload.options));\n return this.ratesEntity.importRateCardTerms(formData);\n };\n RatesApi.prototype.exportRateCardTerms = function (payload) {\n return this.ratesEntity.exportRateCardTerms(payload);\n };\n RatesApi.prototype.exportMasterRateCardTerms = function (payload) {\n return this.ratesEntity.exportMasterRateCardTerms(payload);\n };\n return RatesApi;\n}());\nexports[\"default\"] = RatesApi;\n//# sourceMappingURL=RatesApi.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Rates/RatesApi.js?");
|
|
1836
1836
|
|
|
1837
1837
|
/***/ }),
|
|
1838
1838
|
|
|
@@ -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.12.4';\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.13.1';\nfunction logErrorResponse(response) {\n var data = response.data, status = response.status;\n try {\n Logger_1.default.error(response.config.method.toUpperCase(), response.config.url, status);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.info(response.config.method.toUpperCase(), response.config.url, status, data);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.debug(response);\n }\n catch (e) {\n //\n }\n}\nexports.logErrorResponse = logErrorResponse;\nvar DEFAULT_TIMEOUT = 120000;\nvar RequestOptions = /** @class */ (function () {\n function RequestOptions(clientId, timeout, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, authenticationToken, \n // eslint-disable-next-line @typescript-eslint/ban-types\n headers, responseType, signal) {\n // NiceToHave: move headers to HttpHeaders class\n this.headers = __assign(__assign({ 'Content-Type': 'application/json' }, headers), { 'sdk-version': version, Client: clientId });\n this.timeout = timeout;\n this.validateStatus = lodash_1.stubTrue;\n if (queryString) {\n this.params = queryString;\n }\n if (authenticationToken) {\n this.headers['Authorization'] = \"Token token=\".concat(authenticationToken);\n }\n if (responseType) {\n this.responseType = responseType;\n }\n if (signal) {\n this.signal = signal;\n }\n }\n RequestOptions.new = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.clientId, clientId = _c === void 0 ? 'Bringg Dashboard' : _c, _d = _b.timeout, timeout = _d === void 0 ? DEFAULT_TIMEOUT : _d, queryString = _b.queryString, authenticationToken = _b.authenticationToken, headers = _b.headers, responseType = _b.responseType, signal = _b.signal;\n return new RequestOptions(clientId, timeout || DEFAULT_TIMEOUT, queryString, authenticationToken, headers, responseType, signal);\n };\n return RequestOptions;\n}());\nexports.RequestOptions = RequestOptions;\nvar ResponseHandler = /** @class */ (function () {\n function ResponseHandler(response, signal) {\n this.axiosPromise = response;\n this.signal = signal;\n }\n ResponseHandler.prototype.handle = function (consumer) {\n return __awaiter(this, void 0, void 0, function () {\n var axiosResponse, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if ((0, lodash_1.isUndefined)(consumer)) {\n throw new Error('consumer must be defined');\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, this.axiosPromise];\n case 2:\n axiosResponse = _a.sent();\n return [2 /*return*/, consumer(axiosResponse)];\n case 3:\n e_1 = _a.sent();\n if (axios_1.default.isCancel(e_1)) {\n (0, abort_1.throwAbortError)(this.signal, 'Request Aborted');\n }\n if (e_1 instanceof BringgException_1.BringgException) {\n throw e_1;\n }\n return [2 /*return*/, consumer(e_1)];\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n return ResponseHandler;\n}());\nexports.ResponseHandler = ResponseHandler;\nfunction get(axiosInstance, host, uri, queryString, signal) {\n return new ResponseHandler(axiosInstance.get(\"\".concat(host).concat(uri), { params: queryString, signal: signal }), signal);\n}\nfunction post(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.post(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction put(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.put(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction patch(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.patch(\"\".concat(host).concat(uri), payload, { params: queryString, signal: signal }), signal);\n}\nfunction remove(axiosInstance, host, uri, queryString, payload, signal) {\n return new ResponseHandler(axiosInstance.delete(\"\".concat(host).concat(uri), { params: queryString, data: payload, signal: signal }), signal);\n}\nfunction routify(axiosInstance, endpoint, route, \n// eslint-disable-next-line @typescript-eslint/ban-types\nrouteParams, queryString, payload, signal) {\n switch (route.httpMethod) {\n case 0 /* HttpMethod.GET */:\n return get(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, signal);\n case 1 /* HttpMethod.POST */:\n return post(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 2 /* HttpMethod.PUT */:\n return put(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 3 /* HttpMethod.PATCH */:\n return patch(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n case 4 /* HttpMethod.DELETE */:\n return remove(axiosInstance, endpoint.encode(), route.applyParams(routeParams), queryString, payload, signal);\n }\n}\nfunction wrapWithInterceptors(axios) {\n axios.interceptors.request.use(function (req) {\n var method = req.method, url = req.url, params = req.params, headers = req.headers, data = req.data;\n try {\n Logger_1.default.debug('REQUEST:', method.toUpperCase(), url);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('REQUEST-query-string:', params);\n Logger_1.default.trace('REQUEST-headers:', headers);\n Logger_1.default.trace('REQUEST-data:', data);\n }\n catch (e) {\n //\n }\n return req;\n });\n axios.interceptors.response.use(function (res) {\n var statusText = res.statusText, status = res.status, headers = res.headers, data = res.data;\n try {\n Logger_1.default.debug('RESPONSE:', res.config.url, status, statusText);\n }\n catch (e) {\n //\n }\n try {\n Logger_1.default.trace('RESPONSE-headers:', headers);\n Logger_1.default.trace('RESPONSE-data:', data);\n }\n catch (e) {\n //\n }\n return res;\n });\n return axios;\n}\nfunction axiosInstance(clientId, authenticationToken, \n// eslint-disable-next-line @typescript-eslint/ban-types\nheaders, responseType, timeout, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, authenticationToken: authenticationToken, headers: headers, responseType: responseType, timeout: timeout, signal: signal })));\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction anonymousAxiosInstance(clientId, headers, signal) {\n return wrapWithInterceptors(axios_1.default.create(RequestOptions.new({ clientId: clientId, headers: headers, signal: signal })));\n}\nvar AuthorizedServiceRequest = /** @class */ (function () {\n function AuthorizedServiceRequest(clientId, authToken) {\n this.authToken = authToken;\n this.clientId = clientId;\n }\n AuthorizedServiceRequest.prototype.invoke = function (endpoint, route, \n // eslint-disable-next-line @typescript-eslint/ban-types\n routeParams, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, payload, \n // eslint-disable-next-line @typescript-eslint/ban-types\n headers, responseType, timeout, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(axiosInstance(this.clientId, this.authToken, headers, responseType, timeout), endpoint, route, routeParams, queryString, payload, signal);\n };\n return AuthorizedServiceRequest;\n}());\nexports.AuthorizedServiceRequest = AuthorizedServiceRequest;\nvar AnonymousServiceRequest = /** @class */ (function () {\n function AnonymousServiceRequest(clientId, headers) {\n this.clientId = clientId;\n this.headers = headers;\n }\n AnonymousServiceRequest.prototype.invoke = function (endpoint, route, \n // eslint-disable-next-line @typescript-eslint/ban-types\n routeParams, \n // eslint-disable-next-line @typescript-eslint/ban-types\n queryString, payload, signal) {\n if (signal === null || signal === void 0 ? void 0 : signal.aborted) {\n (0, abort_1.throwAbortError)(signal, 'Request aborted (before even started the request)');\n }\n return routify(anonymousAxiosInstance(this.clientId, this.headers, signal), endpoint, route, routeParams, queryString, payload);\n };\n return AnonymousServiceRequest;\n}());\nexports.AnonymousServiceRequest = AnonymousServiceRequest;\n//# sourceMappingURL=ServiceRequest.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/Services/ServiceRequest.js?");
|
|
2375
2375
|
|
|
2376
2376
|
/***/ }),
|
|
2377
2377
|
|
|
@@ -2701,7 +2701,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
2701
2701
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2702
2702
|
|
|
2703
2703
|
"use strict";
|
|
2704
|
-
eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.TaskInventoryService = exports.Routes = exports.baseRoute = void 0;\nvar BringgException_1 = __webpack_require__(/*! ../../Core/BringgException */ \"./dist/Core/BringgException.js\");\nvar Route_1 = __webpack_require__(/*! ../../Services/Route */ \"./dist/Services/Route.js\");\nvar SessionBasedService_1 = __webpack_require__(/*! ../../Services/SessionBasedService */ \"./dist/Services/SessionBasedService.js\");\nvar TaskInventory_consts_1 = __webpack_require__(/*! ../TaskInventory.consts */ \"./dist/TaskInventory/TaskInventory.consts.js\");\nexports.baseRoute = \"/task_inventories\";\nexports.Routes = {\n GET: new Route_1.Route(\"\".concat(exports.baseRoute, \"/mass_quantity_update\"), 1 /* HttpMethod.POST */),\n UPDATE: new Route_1.Route(\"\".concat(exports.baseRoute, \"/{:id}\"), 2 /* HttpMethod.PUT */),\n GET_REJECT_DETAILS: new Route_1.Route(\"\".concat(exports.baseRoute, \"/reject_details\"), 0 /* HttpMethod.GET */)\n};\nvar TaskInventoryService = /** @class */ (function (_super) {\n __extends(TaskInventoryService, _super);\n function TaskInventoryService(session) {\n return _super.call(this, session.config.getApiEndpoint(), session) || this;\n }\n TaskInventoryService.prototype.update = function (id, taskInventory) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.handleAuthorizedRequest({\n route: exports.Routes.UPDATE,\n extractor: TaskInventory_consts_1.taskInventoryExtractor,\n exceptionProducer: BringgException_1.BringgException.serviceException('Failed to update task inventory'),\n payload: taskInventory,\n routeParams: { id: id }\n })];\n });\n });\n };\n TaskInventoryService.prototype.getTaskInventoriesRejectDetails = function (taskInventoriesIds) {\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.handleAuthorizedRequest({\n route: exports.Routes.GET_REJECT_DETAILS,\n extractor: TaskInventory_consts_1.taskInventoriesRejectDetailsExtractor,\n exceptionProducer: BringgException_1.BringgException.serviceException('Failed to get task inventories reject details'),\n payload: {},\n routeParams: {},\n queryString: { task_inventories_ids: taskInventoriesIds }\n })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n TaskInventoryService.prototype.massQuantityUpdate = function (taskInventories, reasonToChangeInventoryId, reasonToChangeInventoryText) {\n return __awaiter(this, void 0, void 0, function () {\n var taskInventoriesResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.handleAuthorizedRequest({\n route: exports.Routes.GET,\n extractor: TaskInventory_consts_1.taskInventoryMassQuantityExtractor,\n exceptionProducer: BringgException_1.BringgException.serviceException('Failed to update task inventories'),\n payload: {\n reason_to_change_inventory_id: reasonToChangeInventoryId,\n reason_to_change_inventory_text: reasonToChangeInventoryText,\n task_inventories: taskInventories\n }\n })];\n case 1:\n taskInventoriesResponse = _a.sent();\n return [2 /*return*/, taskInventoriesResponse];\n }\n });\n });\n };\n return TaskInventoryService;\n}(SessionBasedService_1.SessionBasedService));\nexports.TaskInventoryService = TaskInventoryService;\n//# sourceMappingURL=TaskInventory.service.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/TaskInventory/Service/TaskInventory.service.js?");
|
|
2704
|
+
eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.TaskInventoryService = exports.Routes = exports.baseRoute = void 0;\nvar BringgException_1 = __webpack_require__(/*! ../../Core/BringgException */ \"./dist/Core/BringgException.js\");\nvar Route_1 = __webpack_require__(/*! ../../Services/Route */ \"./dist/Services/Route.js\");\nvar SessionBasedService_1 = __webpack_require__(/*! ../../Services/SessionBasedService */ \"./dist/Services/SessionBasedService.js\");\nvar TaskInventory_consts_1 = __webpack_require__(/*! ../TaskInventory.consts */ \"./dist/TaskInventory/TaskInventory.consts.js\");\nexports.baseRoute = \"/task_inventories\";\nexports.Routes = {\n GET: new Route_1.Route(\"\".concat(exports.baseRoute, \"/mass_quantity_update\"), 1 /* HttpMethod.POST */),\n UPDATE: new Route_1.Route(\"\".concat(exports.baseRoute, \"/{:id}\"), 2 /* HttpMethod.PUT */),\n GET_REJECT_DETAILS: new Route_1.Route(\"\".concat(exports.baseRoute, \"/reject_details\"), 0 /* HttpMethod.GET */),\n GET_TASKS_WEIGHT: new Route_1.Route(\"/task-service/task-inventories/calculate-loads\", 1 /* HttpMethod.POST */)\n};\nvar TaskInventoryService = /** @class */ (function (_super) {\n __extends(TaskInventoryService, _super);\n function TaskInventoryService(session) {\n return _super.call(this, session.config.getApiEndpoint(), session) || this;\n }\n TaskInventoryService.prototype.update = function (id, taskInventory) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.handleAuthorizedRequest({\n route: exports.Routes.UPDATE,\n extractor: TaskInventory_consts_1.taskInventoryExtractor,\n exceptionProducer: BringgException_1.BringgException.serviceException('Failed to update task inventory'),\n payload: taskInventory,\n routeParams: { id: id }\n })];\n });\n });\n };\n TaskInventoryService.prototype.getTaskInventoriesRejectDetails = function (taskInventoriesIds) {\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.handleAuthorizedRequest({\n route: exports.Routes.GET_REJECT_DETAILS,\n extractor: TaskInventory_consts_1.taskInventoriesRejectDetailsExtractor,\n exceptionProducer: BringgException_1.BringgException.serviceException('Failed to get task inventories reject details'),\n payload: {},\n routeParams: {},\n queryString: { task_inventories_ids: taskInventoriesIds }\n })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n TaskInventoryService.prototype.massQuantityUpdate = function (taskInventories, reasonToChangeInventoryId, reasonToChangeInventoryText) {\n return __awaiter(this, void 0, void 0, function () {\n var taskInventoriesResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this.handleAuthorizedRequest({\n route: exports.Routes.GET,\n extractor: TaskInventory_consts_1.taskInventoryMassQuantityExtractor,\n exceptionProducer: BringgException_1.BringgException.serviceException('Failed to update task inventories'),\n payload: {\n reason_to_change_inventory_id: reasonToChangeInventoryId,\n reason_to_change_inventory_text: reasonToChangeInventoryText,\n task_inventories: taskInventories\n }\n })];\n case 1:\n taskInventoriesResponse = _a.sent();\n return [2 /*return*/, taskInventoriesResponse];\n }\n });\n });\n };\n TaskInventoryService.prototype.getTaskInventoryWeight = function (taskIds) {\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.handleAuthorizedRequest({\n route: exports.Routes.GET_TASKS_WEIGHT,\n extractor: TaskInventory_consts_1.taskInventoriesWeightExtractor,\n exceptionProducer: BringgException_1.BringgException.serviceException('Failed to get task inventories load weight'),\n payload: { task_ids: taskIds }\n })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n return TaskInventoryService;\n}(SessionBasedService_1.SessionBasedService));\nexports.TaskInventoryService = TaskInventoryService;\n//# sourceMappingURL=TaskInventory.service.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/TaskInventory/Service/TaskInventory.service.js?");
|
|
2705
2705
|
|
|
2706
2706
|
/***/ }),
|
|
2707
2707
|
|
|
@@ -2712,7 +2712,7 @@ eval("\nvar __extends = (this && this.__extends) || (function () {\n var exte
|
|
|
2712
2712
|
/***/ ((__unused_webpack_module, exports) => {
|
|
2713
2713
|
|
|
2714
2714
|
"use strict";
|
|
2715
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.taskInventoriesRejectDetailsExtractor = exports.taskInventoryExtractor = exports.taskInventoryMassQuantityExtractor = void 0;\nvar taskInventoryMassQuantityExtractor = function (response) {\n return response.task_inventories;\n};\nexports.taskInventoryMassQuantityExtractor = taskInventoryMassQuantityExtractor;\nvar taskInventoryExtractor = function (response) { return response.task_inventory; };\nexports.taskInventoryExtractor = taskInventoryExtractor;\nvar taskInventoriesRejectDetailsExtractor = function (response) {\n return response.task_inventories_reject_details;\n};\nexports.taskInventoriesRejectDetailsExtractor = taskInventoriesRejectDetailsExtractor;\n//# sourceMappingURL=TaskInventory.consts.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/TaskInventory/TaskInventory.consts.js?");
|
|
2715
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.taskInventoriesWeightExtractor = exports.taskInventoriesRejectDetailsExtractor = exports.taskInventoryExtractor = exports.taskInventoryMassQuantityExtractor = void 0;\nvar taskInventoryMassQuantityExtractor = function (response) {\n return response.task_inventories;\n};\nexports.taskInventoryMassQuantityExtractor = taskInventoryMassQuantityExtractor;\nvar taskInventoryExtractor = function (response) { return response.task_inventory; };\nexports.taskInventoryExtractor = taskInventoryExtractor;\nvar taskInventoriesRejectDetailsExtractor = function (response) {\n return response.task_inventories_reject_details;\n};\nexports.taskInventoriesRejectDetailsExtractor = taskInventoriesRejectDetailsExtractor;\nvar taskInventoriesWeightExtractor = function (response) {\n return response.loads.weight;\n};\nexports.taskInventoriesWeightExtractor = taskInventoriesWeightExtractor;\n//# sourceMappingURL=TaskInventory.consts.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/TaskInventory/TaskInventory.consts.js?");
|
|
2716
2716
|
|
|
2717
2717
|
/***/ }),
|
|
2718
2718
|
|
|
@@ -2723,7 +2723,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
|
2723
2723
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2724
2724
|
|
|
2725
2725
|
"use strict";
|
|
2726
|
-
eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar TaskInventory_service_1 = __webpack_require__(/*! ./Service/TaskInventory.service */ \"./dist/TaskInventory/Service/TaskInventory.service.js\");\nvar TaskInventory = /** @class */ (function () {\n function TaskInventory(session) {\n this.taskInventoryService = new TaskInventory_service_1.TaskInventoryService(session);\n }\n TaskInventory.prototype.update = function (id, taskInventory) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.taskInventoryService.update(id, taskInventory)];\n });\n });\n };\n TaskInventory.prototype.massQuantityUpdate = function (taskInventories, reasonToChangeInventoryId, reasonToChangeInventoryText) {\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.taskInventoryService.massQuantityUpdate(taskInventories, reasonToChangeInventoryId, reasonToChangeInventoryText)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n TaskInventory.prototype.getTaskInventoriesRejectDetails = function (taskInventoriesIds) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.taskInventoryService.getTaskInventoriesRejectDetails(taskInventoriesIds)];\n });\n });\n };\n return TaskInventory;\n}());\nexports[\"default\"] = TaskInventory;\n//# sourceMappingURL=TaskInventory.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/TaskInventory/TaskInventory.js?");
|
|
2726
|
+
eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar TaskInventory_service_1 = __webpack_require__(/*! ./Service/TaskInventory.service */ \"./dist/TaskInventory/Service/TaskInventory.service.js\");\nvar TaskInventory = /** @class */ (function () {\n function TaskInventory(session) {\n var _this = this;\n this.getTasksInventoryWeight = function (tasksIds) {\n return _this.taskInventoryService.getTaskInventoryWeight(tasksIds);\n };\n this.taskInventoryService = new TaskInventory_service_1.TaskInventoryService(session);\n }\n TaskInventory.prototype.update = function (id, taskInventory) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.taskInventoryService.update(id, taskInventory)];\n });\n });\n };\n TaskInventory.prototype.massQuantityUpdate = function (taskInventories, reasonToChangeInventoryId, reasonToChangeInventoryText) {\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.taskInventoryService.massQuantityUpdate(taskInventories, reasonToChangeInventoryId, reasonToChangeInventoryText)];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n TaskInventory.prototype.getTaskInventoriesRejectDetails = function (taskInventoriesIds) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.taskInventoryService.getTaskInventoriesRejectDetails(taskInventoriesIds)];\n });\n });\n };\n return TaskInventory;\n}());\nexports[\"default\"] = TaskInventory;\n//# sourceMappingURL=TaskInventory.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./dist/TaskInventory/TaskInventory.js?");
|
|
2727
2727
|
|
|
2728
2728
|
/***/ }),
|
|
2729
2729
|
|
|
@@ -4604,7 +4604,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
|
4604
4604
|
/***/ ((__unused_webpack_module, exports) => {
|
|
4605
4605
|
|
|
4606
4606
|
"use strict";
|
|
4607
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.AvailabilityCalculationOrigin = exports.EventType = exports.AssociationsChangedType = void 0;\nvar AssociationsChangedType;\n(function (AssociationsChangedType) {\n AssociationsChangedType[\"way_point\"] = \"way_point\";\n AssociationsChangedType[\"task_inventory\"] = \"task_inventory\";\n AssociationsChangedType[\"form\"] = \"form\";\n AssociationsChangedType[\"task_note\"] = \"task_note\";\n AssociationsChangedType[\"task_photo\"] = \"task_photo\";\n AssociationsChangedType[\"signature\"] = \"signature\";\n})(AssociationsChangedType || (exports.AssociationsChangedType = AssociationsChangedType = {}));\nvar EventType;\n(function (EventType) {\n EventType[\"ApplicationActionRun\"] = \"application:action:run\";\n EventType[\"UserPreLeftHome\"] = \"user:pre_left_home\";\n EventType[\"UserPreGotHome\"] = \"user:pre_got_home\";\n EventType[\"UserTypeChanged\"] = \"user_type_changed\";\n EventType[\"TaskCashoutCreated\"] = \"task:cashout:created\";\n EventType[\"EmployeeUpdateLocation\"] = \"employee:update_location\";\n EventType[\"EmployeeUpdate\"] = \"employee:update\";\n EventType[\"TaskNew\"] = \"task:new\";\n EventType[\"TaskAcknowledged\"] = \"task:acknowledged\";\n EventType[\"TaskPaymentHistoryCreated\"] = \"task_payment_history:created\";\n EventType[\"UserRated\"] = \"user:rated\";\n EventType[\"CustomerTipped\"] = \"customer:tipped\";\n EventType[\"CustomerCreated\"] = \"customer:created\";\n EventType[\"CustomerOptedIn\"] = \"customer:opted_in\";\n EventType[\"CustomerOptedOut\"] = \"customer:opted_out\";\n EventType[\"CustomerAvailabilityHoursCreated\"] = \"customer:availability_hours:created\";\n EventType[\"EmployeeTurnsOffline\"] = \"employee_turns_offline\";\n EventType[\"EmployeeTurnsOnline\"] = \"employee_turns_online\";\n EventType[\"ShiftStarted\"] = \"shift:started\";\n EventType[\"ShiftEnded\"] = \"shift:ended\";\n EventType[\"TaskWayPointAdded\"] = \"task:way_point:added\";\n EventType[\"TaskChangePreparation\"] = \"task:change_preparation\";\n EventType[\"TaskPreparationChanged\"] = \"task:preparation_changed\";\n EventType[\"TaskStatusChanged\"] = \"task:status_changed\";\n EventType[\"TaskDeleted\"] = \"task:deleted\";\n EventType[\"TaskUpdate\"] = \"task:update\";\n EventType[\"TaskPackagesChanged\"] = \"task:packages_changed\";\n EventType[\"TeamUserAdded\"] = \"team:user_added\";\n EventType[\"UserNew\"] = \"user:new\";\n EventType[\"TeamUserRemoved\"] = \"team:user_removed\";\n EventType[\"TeamTaskAdded\"] = \"team:task_added\";\n EventType[\"TeamTaskRemoved\"] = \"team:task_removed\";\n EventType[\"TaskCreated\"] = \"task:created\";\n EventType[\"TaskCreatedFinal\"] = \"task:created:final\";\n EventType[\"TaskCreatedFinalProcessingDone\"] = \"task:created:final:processing:done\";\n EventType[\"TaskRemoved\"] = \"task:removed\";\n EventType[\"TaskRejected\"] = \"task:rejected\";\n EventType[\"UserGotHome\"] = \"user:got_home\";\n EventType[\"UserLeftHome\"] = \"user:left_home\";\n EventType[\"TaskLate\"] = \"task:late\";\n EventType[\"AppAdded\"] = \"app:added\";\n EventType[\"AppRemoved\"] = \"app:removed\";\n EventType[\"RequestPush\"] = \"request_push\";\n EventType[\"UsersReadyToExecute\"] = \"users:ready_to_execute\";\n EventType[\"UserReadyToExecute\"] = \"user:ready_to_execute\";\n EventType[\"RequestOptimizeRoute\"] = \"request_optimize_route\";\n EventType[\"RequestRecalculateEta\"] = \"request_recalculate_eta\";\n EventType[\"RequestOptimizeDriverRoute\"] = \"request_optimize_driver_route\";\n EventType[\"RequestRescheduleCancelledTask\"] = \"request_reschedule_cancelled_task\";\n EventType[\"SharedLocationCreated\"] = \"shared_location:created\";\n EventType[\"MerchantCreated\"] = \"merchant_created\";\n EventType[\"UserActivityChange\"] = \"user_activity_change\";\n EventType[\"FormCreated\"] = \"form_created\";\n EventType[\"NoteCreated\"] = \"note_created\";\n EventType[\"FloatingInventoryUpdated\"] = \"floating_inventory:updated\";\n EventType[\"WayPointUpdated\"] = \"way_point:updated\";\n EventType[\"WayPointStarted\"] = \"way_point:started\";\n EventType[\"WayPointArrived\"] = \"way_point:checkin\";\n EventType[\"WayPointLeft\"] = \"way_point:checkout\";\n EventType[\"MassWayPointLeft\"] = \"mass:way_point:checkout\";\n EventType[\"WayPointOnTheWayProcessingDone\"] = \"way_point:on_the_way:processing:done\";\n EventType[\"TaskWayPointsDoneProcessingDone\"] = \"task:way_points:done:processing:done\";\n EventType[\"TaskProcessingDone\"] = \"task:processing:done\";\n EventType[\"WayPointRecalculateDistance\"] = \"way_point:recalculate_distance\";\n EventType[\"RecalculateDistance\"] = \"recalculate_distance\";\n EventType[\"TaskReadyToExecute\"] = \"task:ready_to_execute\";\n EventType[\"TeamUpdate\"] = \"team:update\";\n EventType[\"MerchantConfigurationUpdated\"] = \"merchant:configuration_updated\";\n EventType[\"RouteOptimized\"] = \"route:optimized\";\n EventType[\"RouteOptimizationProgress\"] = \"route:optimization:progress\";\n EventType[\"RouteOptimizationCanceled\"] = \"route:optimization:canceled\";\n EventType[\"RouteOptimizationPolling\"] = \"route:optimization:polling\";\n EventType[\"RouteOptimizationDone\"] = \"route:optimization:done\";\n EventType[\"RouteOptimizationApplied\"] = \"route:optimization:applied\";\n EventType[\"PlanningDone\"] = \"planning:done\";\n EventType[\"InventoryScheduledArrivalCreated\"] = \"inventory:scheduled_arrival:created\";\n EventType[\"Scanned\"] = \"scanned\";\n EventType[\"InventoryScanned\"] = \"inventory_scanned\";\n EventType[\"AlertCreated\"] = \"alert_created\";\n EventType[\"RunStarted\"] = \"run:started\";\n EventType[\"RunEnded\"] = \"run:ended\";\n EventType[\"RunDeleted\"] = \"run:deleted\";\n EventType[\"RunTaskAdded\"] = \"run:task:added\";\n EventType[\"RunTaskRemoved\"] = \"run:task:removed\";\n EventType[\"RunUpdated\"] = \"run:updated\";\n EventType[\"RunCreated\"] = \"run:created\";\n EventType[\"RunSendUpdateWebhook\"] = \"run:send_update_webhook\";\n EventType[\"RunCalculateAggregations\"] = \"run:calculate_aggregations\";\n EventType[\"InvoiceCreated\"] = \"invoice:created\";\n EventType[\"RunDebriefed\"] = \"run:debriefed\";\n EventType[\"TasksMassRemove\"] = \"tasks:mass_remove\";\n EventType[\"ManifestDone\"] = \"manifest:done\";\n EventType[\"LocationHistoryReceived\"] = \"location_history_received\";\n EventType[\"QuoteReceived\"] = \"quote_received\";\n EventType[\"DeliveryBlockAssigned\"] = \"delivery_block:assigned\";\n EventType[\"DeliveryBlockUnassigned\"] = \"delivery_block:unassigned\";\n EventType[\"DeliveryBlockCreated\"] = \"delivery_block:created\";\n EventType[\"DeliveryBlockUpdated\"] = \"delivery_block:updated\";\n EventType[\"DeliveryBlockDeleted\"] = \"delivery_block:deleted\";\n EventType[\"DriverShiftScheduleUpdated\"] = \"driver_shift_schedule:updated\";\n EventType[\"SchedulerEvent\"] = \"scheduler_event\";\n EventType[\"MobileAnalyticsEvent\"] = \"mobile_analytics_event\";\n EventType[\"MenuUpdated\"] = \"menu:updated\";\n EventType[\"TaskInventoryUpdate\"] = \"task_inventory:update\";\n EventType[\"MobileActionEvent\"] = \"mobile_action_event\";\n EventType[\"WayPointAnswersCreated\"] = \"way_point:answers:created\";\n EventType[\"WayPointScheduledArrivalUpdated\"] = \"way_point:scheduled_arrival:updated\";\n EventType[\"MaskedPhoneCallFinished\"] = \"masked_phone:call_finished\";\n EventType[\"RapidSosRequested\"] = \"rapid_sos_requested\";\n EventType[\"RatingSubmitted\"] = \"rating:submitted\";\n EventType[\"UserActualBreakUpdated\"] = \"user:actual_break:updated\";\n EventType[\"TimeBasedEvent\"] = \"time_based_event\";\n EventType[\"OpenFleetIntegrationEvent\"] = \"open_fleet:integration_event\";\n EventType[\"WorkflowTimeBasedEvent\"] = \"workflow:time_based_event\";\n EventType[\"WorkflowManual\"] = \"workflow:manual\";\n EventType[\"WorkflowProcessNextChunk\"] = \"workflow:process_next_chunk\";\n EventType[\"VrpAutoDispatchFailed\"] = \"vrp_auto_dispatch_failed\";\n EventType[\"PackageCreated\"] = \"package:created\";\n EventType[\"PackageUpdated\"] = \"package:updated\";\n EventType[\"PackageDeleted\"] = \"package:deleted\";\n EventType[\"FleetDeliveryActionCreateFailed\"] = \"fleet_delivery_action:create:failed\";\n EventType[\"FleetAssigned\"] = \"fleet:assigned\";\n EventType[\"NoFleetFound\"] = \"fleet_router:no_fleet_found\";\n EventType[\"SmsSendFailed\"] = \"sms:send:failed\";\n EventType[\"TaskAcceptedByExternalFleet\"] = \"task:accepted_by_external_fleet\";\n EventType[\"GroupTaskCalculateAggregations\"] = \"group_task:calculate_aggregations\";\n EventType[\"DriverUnavailabilityChange\"] = \"user:unavailability_change\";\n EventType[\"TaskReassignReasonCreated\"] = \"task_reassign_reason:created\";\n EventType[\"WayPointCalculateServiceAreas\"] = \"way_point:calculate_service_areas\";\n EventType[\"DeliveryWindowCreated\"] = \"delivery_window:created\";\n EventType[\"DeliveryWindowUpdated\"] = \"delivery_window:updated\";\n EventType[\"DeliveryWindowDeleted\"] = \"delivery_window:deleted\";\n EventType[\"PlannedDeliveryWindowUpdated\"] = \"planned_delivery_window:updated\";\n EventType[\"ExclusionWindowCreated\"] = \"exclusion_window:created\";\n EventType[\"ExclusionWindowUpdated\"] = \"exclusion_window:updated\";\n EventType[\"UnassignedAvailabilityTasks\"] = \"unassigned_availability_tasks\";\n EventType[\"DeliveryProviderOfferingCreated\"] = \"delivery_provider_offering:created\";\n EventType[\"DeliveryProviderOfferingUpdated\"] = \"delivery_provider_offering:updated\";\n EventType[\"RecurringTemplateTimesReassigned\"] = \"recurring_template:times_reassigned\";\n EventType[\"CustomWorkflowWebhookTaskEvent\"] = \"custom_workflow:webhook:task\";\n EventType[\"CustomWorkflowWebhookTasksEvent\"] = \"custom_workflow:webhook:tasks\";\n EventType[\"FeetStatusUpdate\"] = \"fleet:status:update\";\n EventType[\"CustomWorkflowWebhookUserEvent\"] = \"custom_workflow:webhook:user\";\n EventType[\"DeliveryWindowFillRatioChanged\"] = \"delivery_window_fill_ratio_changed\";\n EventType[\"CustomWorkflowWebhookDeliveryWindowEvent\"] = \"custom_workflow:webhook:delivery_window\";\n})(EventType || (exports.EventType = EventType = {}));\nvar AvailabilityCalculationOrigin;\n(function (AvailabilityCalculationOrigin) {\n AvailabilityCalculationOrigin[\"QUOTE_ORDERS\"] = \"QUOTE_ORDERS\";\n AvailabilityCalculationOrigin[\"AUTOMATION_PLATFORM\"] = \"AUTOMATION_PLATFORM\";\n})(AvailabilityCalculationOrigin || (exports.AvailabilityCalculationOrigin = AvailabilityCalculationOrigin = {}));\n//# sourceMappingURL=event.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/event.js?");
|
|
4607
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.AvailabilityCalculationOrigin = exports.EventType = exports.AssociationsChangedType = void 0;\nvar AssociationsChangedType;\n(function (AssociationsChangedType) {\n AssociationsChangedType[\"way_point\"] = \"way_point\";\n AssociationsChangedType[\"task_inventory\"] = \"task_inventory\";\n AssociationsChangedType[\"form\"] = \"form\";\n AssociationsChangedType[\"task_note\"] = \"task_note\";\n AssociationsChangedType[\"task_photo\"] = \"task_photo\";\n AssociationsChangedType[\"signature\"] = \"signature\";\n})(AssociationsChangedType || (exports.AssociationsChangedType = AssociationsChangedType = {}));\nvar EventType;\n(function (EventType) {\n EventType[\"ApplicationActionRun\"] = \"application:action:run\";\n EventType[\"UserPreLeftHome\"] = \"user:pre_left_home\";\n EventType[\"UserPreGotHome\"] = \"user:pre_got_home\";\n EventType[\"UserTypeChanged\"] = \"user_type_changed\";\n EventType[\"TaskCashoutCreated\"] = \"task:cashout:created\";\n EventType[\"EmployeeUpdateLocation\"] = \"employee:update_location\";\n EventType[\"EmployeeUpdate\"] = \"employee:update\";\n EventType[\"TaskNew\"] = \"task:new\";\n EventType[\"TaskAcknowledged\"] = \"task:acknowledged\";\n EventType[\"TaskPaymentHistoryCreated\"] = \"task_payment_history:created\";\n EventType[\"UserRated\"] = \"user:rated\";\n EventType[\"CustomerTipped\"] = \"customer:tipped\";\n EventType[\"CustomerCreated\"] = \"customer:created\";\n EventType[\"CustomerOptedIn\"] = \"customer:opted_in\";\n EventType[\"CustomerOptedOut\"] = \"customer:opted_out\";\n EventType[\"CustomerAvailabilityHoursCreated\"] = \"customer:availability_hours:created\";\n EventType[\"EmployeeTurnsOffline\"] = \"employee_turns_offline\";\n EventType[\"EmployeeTurnsOnline\"] = \"employee_turns_online\";\n EventType[\"ShiftStarted\"] = \"shift:started\";\n EventType[\"ShiftEnded\"] = \"shift:ended\";\n EventType[\"TaskWayPointAdded\"] = \"task:way_point:added\";\n EventType[\"TaskChangePreparation\"] = \"task:change_preparation\";\n EventType[\"TaskPreparationChanged\"] = \"task:preparation_changed\";\n EventType[\"TaskStatusChanged\"] = \"task:status_changed\";\n EventType[\"TaskDeleted\"] = \"task:deleted\";\n EventType[\"TaskUpdate\"] = \"task:update\";\n EventType[\"TaskPackagesChanged\"] = \"task:packages_changed\";\n EventType[\"TeamUserAdded\"] = \"team:user_added\";\n EventType[\"UserNew\"] = \"user:new\";\n EventType[\"TeamUserRemoved\"] = \"team:user_removed\";\n EventType[\"TeamTaskAdded\"] = \"team:task_added\";\n EventType[\"TeamTaskRemoved\"] = \"team:task_removed\";\n EventType[\"TaskCreated\"] = \"task:created\";\n EventType[\"TaskCreatedFinal\"] = \"task:created:final\";\n EventType[\"TaskCreatedFinalProcessingDone\"] = \"task:created:final:processing:done\";\n EventType[\"TaskRemoved\"] = \"task:removed\";\n EventType[\"TaskRejected\"] = \"task:rejected\";\n EventType[\"UserGotHome\"] = \"user:got_home\";\n EventType[\"UserLeftHome\"] = \"user:left_home\";\n EventType[\"TaskLate\"] = \"task:late\";\n EventType[\"AppAdded\"] = \"app:added\";\n EventType[\"AppRemoved\"] = \"app:removed\";\n EventType[\"RequestPush\"] = \"request_push\";\n EventType[\"UsersReadyToExecute\"] = \"users:ready_to_execute\";\n EventType[\"UserReadyToExecute\"] = \"user:ready_to_execute\";\n EventType[\"RequestOptimizeRoute\"] = \"request_optimize_route\";\n EventType[\"RequestRecalculateEta\"] = \"request_recalculate_eta\";\n EventType[\"RequestOptimizeDriverRoute\"] = \"request_optimize_driver_route\";\n EventType[\"RequestRescheduleCancelledTask\"] = \"request_reschedule_cancelled_task\";\n EventType[\"SharedLocationCreated\"] = \"shared_location:created\";\n EventType[\"MerchantCreated\"] = \"merchant_created\";\n EventType[\"UserActivityChange\"] = \"user_activity_change\";\n EventType[\"FormCreated\"] = \"form_created\";\n EventType[\"NoteCreated\"] = \"note_created\";\n EventType[\"FloatingInventoryUpdated\"] = \"floating_inventory:updated\";\n EventType[\"WayPointUpdated\"] = \"way_point:updated\";\n EventType[\"WayPointStarted\"] = \"way_point:started\";\n EventType[\"WayPointArrived\"] = \"way_point:checkin\";\n EventType[\"WayPointLeft\"] = \"way_point:checkout\";\n EventType[\"MassWayPointLeft\"] = \"mass:way_point:checkout\";\n EventType[\"WayPointOnTheWayProcessingDone\"] = \"way_point:on_the_way:processing:done\";\n EventType[\"TaskWayPointsDoneProcessingDone\"] = \"task:way_points:done:processing:done\";\n EventType[\"TaskProcessingDone\"] = \"task:processing:done\";\n EventType[\"WayPointRecalculateDistance\"] = \"way_point:recalculate_distance\";\n EventType[\"RecalculateDistance\"] = \"recalculate_distance\";\n EventType[\"TaskReadyToExecute\"] = \"task:ready_to_execute\";\n EventType[\"TeamUpdate\"] = \"team:update\";\n EventType[\"MerchantConfigurationUpdated\"] = \"merchant:configuration_updated\";\n EventType[\"RouteOptimized\"] = \"route:optimized\";\n EventType[\"RouteOptimizationProgress\"] = \"route:optimization:progress\";\n EventType[\"RouteOptimizationCanceled\"] = \"route:optimization:canceled\";\n EventType[\"RouteOptimizationPolling\"] = \"route:optimization:polling\";\n EventType[\"RouteOptimizationDone\"] = \"route:optimization:done\";\n EventType[\"RouteOptimizationApplied\"] = \"route:optimization:applied\";\n EventType[\"PlanningDone\"] = \"planning:done\";\n EventType[\"InventoryScheduledArrivalCreated\"] = \"inventory:scheduled_arrival:created\";\n EventType[\"Scanned\"] = \"scanned\";\n EventType[\"InventoryScanned\"] = \"inventory_scanned\";\n EventType[\"AlertCreated\"] = \"alert_created\";\n EventType[\"RunStarted\"] = \"run:started\";\n EventType[\"RunEnded\"] = \"run:ended\";\n EventType[\"RunDeleted\"] = \"run:deleted\";\n EventType[\"RunTaskAdded\"] = \"run:task:added\";\n EventType[\"RunTaskRemoved\"] = \"run:task:removed\";\n EventType[\"RunUpdated\"] = \"run:updated\";\n EventType[\"RunCreated\"] = \"run:created\";\n EventType[\"RunSendUpdateWebhook\"] = \"run:send_update_webhook\";\n EventType[\"RunCalculateAggregations\"] = \"run:calculate_aggregations\";\n EventType[\"InvoiceCreated\"] = \"invoice:created\";\n EventType[\"RunDebriefed\"] = \"run:debriefed\";\n EventType[\"TasksMassRemove\"] = \"tasks:mass_remove\";\n EventType[\"ManifestDone\"] = \"manifest:done\";\n EventType[\"LocationHistoryReceived\"] = \"location_history_received\";\n EventType[\"QuoteReceived\"] = \"quote_received\";\n EventType[\"DeliveryBlockAssigned\"] = \"delivery_block:assigned\";\n EventType[\"DeliveryBlockUnassigned\"] = \"delivery_block:unassigned\";\n EventType[\"DeliveryBlockCreated\"] = \"delivery_block:created\";\n EventType[\"DeliveryBlockUpdated\"] = \"delivery_block:updated\";\n EventType[\"DeliveryBlockDeleted\"] = \"delivery_block:deleted\";\n EventType[\"DriverShiftScheduleUpdated\"] = \"driver_shift_schedule:updated\";\n EventType[\"SchedulerEvent\"] = \"scheduler_event\";\n EventType[\"MobileAnalyticsEvent\"] = \"mobile_analytics_event\";\n EventType[\"MenuUpdated\"] = \"menu:updated\";\n EventType[\"TaskInventoryUpdate\"] = \"task_inventory:update\";\n EventType[\"MobileActionEvent\"] = \"mobile_action_event\";\n EventType[\"WayPointAnswersCreated\"] = \"way_point:answers:created\";\n EventType[\"WayPointScheduledArrivalUpdated\"] = \"way_point:scheduled_arrival:updated\";\n EventType[\"MaskedPhoneCallFinished\"] = \"masked_phone:call_finished\";\n EventType[\"RapidSosRequested\"] = \"rapid_sos_requested\";\n EventType[\"RatingSubmitted\"] = \"rating:submitted\";\n EventType[\"UserActualBreakUpdated\"] = \"user:actual_break:updated\";\n EventType[\"TimeBasedEvent\"] = \"time_based_event\";\n EventType[\"OpenFleetIntegrationEvent\"] = \"open_fleet:integration_event\";\n EventType[\"WorkflowTimeBasedEvent\"] = \"workflow:time_based_event\";\n EventType[\"WorkflowManual\"] = \"workflow:manual\";\n EventType[\"WorkflowProcessNextChunk\"] = \"workflow:process_next_chunk\";\n EventType[\"VrpAutoDispatchFailed\"] = \"vrp_auto_dispatch_failed\";\n EventType[\"PackageCreated\"] = \"package:created\";\n EventType[\"PackageUpdated\"] = \"package:updated\";\n EventType[\"PackageDeleted\"] = \"package:deleted\";\n EventType[\"FleetDeliveryActionCreateFailed\"] = \"fleet_delivery_action:create:failed\";\n EventType[\"FleetAssigned\"] = \"fleet:assigned\";\n EventType[\"NoFleetFound\"] = \"fleet_router:no_fleet_found\";\n EventType[\"SmsSendFailed\"] = \"sms:send:failed\";\n EventType[\"TaskAcceptedByExternalFleet\"] = \"task:accepted_by_external_fleet\";\n EventType[\"GroupTaskCalculateAggregations\"] = \"group_task:calculate_aggregations\";\n EventType[\"DriverUnavailabilityChange\"] = \"user:unavailability_change\";\n EventType[\"TaskReassignReasonCreated\"] = \"task_reassign_reason:created\";\n EventType[\"WayPointCalculateServiceAreas\"] = \"way_point:calculate_service_areas\";\n EventType[\"DeliveryWindowCreated\"] = \"delivery_window:created\";\n EventType[\"DeliveryWindowUpdated\"] = \"delivery_window:updated\";\n EventType[\"DeliveryWindowDeleted\"] = \"delivery_window:deleted\";\n EventType[\"PlannedDeliveryWindowUpdated\"] = \"planned_delivery_window:updated\";\n EventType[\"ExclusionWindowCreated\"] = \"exclusion_window:created\";\n EventType[\"ExclusionWindowUpdated\"] = \"exclusion_window:updated\";\n EventType[\"UnassignedAvailabilityTasks\"] = \"unassigned_availability_tasks\";\n EventType[\"DeliveryProviderOfferingCreated\"] = \"delivery_provider_offering:created\";\n EventType[\"DeliveryProviderOfferingUpdated\"] = \"delivery_provider_offering:updated\";\n EventType[\"RecurringTemplateTimesReassigned\"] = \"recurring_template:times_reassigned\";\n EventType[\"CustomWorkflowWebhookTaskEvent\"] = \"custom_workflow:webhook:task\";\n EventType[\"CustomWorkflowWebhookTasksEvent\"] = \"custom_workflow:webhook:tasks\";\n EventType[\"FeetStatusUpdate\"] = \"fleet:status:update\";\n EventType[\"CustomWorkflowWebhookUserEvent\"] = \"custom_workflow:webhook:user\";\n EventType[\"DeliveryWindowFillRatioChanged\"] = \"delivery_window_fill_ratio_changed\";\n EventType[\"CustomWorkflowWebhookDeliveryWindowEvent\"] = \"custom_workflow:webhook:delivery_window\";\n EventType[\"ServiceAreaUpdated\"] = \"service_area:updated\";\n})(EventType || (exports.EventType = EventType = {}));\nvar AvailabilityCalculationOrigin;\n(function (AvailabilityCalculationOrigin) {\n AvailabilityCalculationOrigin[\"QUOTE_ORDERS\"] = \"QUOTE_ORDERS\";\n AvailabilityCalculationOrigin[\"AUTOMATION_PLATFORM\"] = \"AUTOMATION_PLATFORM\";\n})(AvailabilityCalculationOrigin || (exports.AvailabilityCalculationOrigin = AvailabilityCalculationOrigin = {}));\n//# sourceMappingURL=event.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/event.js?");
|
|
4608
4608
|
|
|
4609
4609
|
/***/ }),
|
|
4610
4610
|
|
|
@@ -5022,7 +5022,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n//#
|
|
|
5022
5022
|
/***/ ((__unused_webpack_module, exports) => {
|
|
5023
5023
|
|
|
5024
5024
|
"use strict";
|
|
5025
|
-
eval("\nvar _a;\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.PRIVILEGES_DEFAULTS = exports.PrivilegeTypes = void 0;\nvar PrivilegeTypes;\n(function (PrivilegeTypes) {\n PrivilegeTypes[\"DISPATCH_SCREEN\"] = \"dispatch\";\n PrivilegeTypes[\"CREATE_ORDERS\"] = \"create_order\";\n PrivilegeTypes[\"VIEW_TASK\"] = \"view_task\";\n PrivilegeTypes[\"ACKNOWLEDGE_FLOW\"] = \"acknowledge\";\n PrivilegeTypes[\"HISTORY\"] = \"history\";\n PrivilegeTypes[\"DRIVERS\"] = \"drivers\";\n PrivilegeTypes[\"DRIVER_PRORFILE\"] = \"driver_profile\";\n PrivilegeTypes[\"ADD_DRIVER\"] = \"add_driver\";\n PrivilegeTypes[\"CHANGE_DRIVER_ROLE\"] = \"change_driver_type\";\n PrivilegeTypes[\"ASSIGN_DRIVER_TO_TASK\"] = \"assign_driver_to_task\";\n PrivilegeTypes[\"TEAMS\"] = \"teams\";\n PrivilegeTypes[\"USER_TYPES\"] = \"user_types\";\n PrivilegeTypes[\"CUSTOMERS\"] = \"customers_menu\";\n PrivilegeTypes[\"REPORTS\"] = \"reports\";\n PrivilegeTypes[\"REPORTS_NEW\"] = \"reports_new\";\n PrivilegeTypes[\"DASHBOARD\"] = \"dashboard\";\n PrivilegeTypes[\"CASHOUT_EDIT_DISTANCE\"] = \"cashout_edit_distance\";\n PrivilegeTypes[\"ACCESS_SETTINGS_SCREEN\"] = \"access_settings_screen\";\n PrivilegeTypes[\"ENABLE_SETTING_PAGE\"] = \"enable_setting_page\";\n PrivilegeTypes[\"CUSTOMER_CARE\"] = \"customer_care\";\n PrivilegeTypes[\"MAINTAIN_DRIVER_SHIFT_TIMES\"] = \"maintain_driver_shift_times\";\n PrivilegeTypes[\"COMPLETE_TASK\"] = \"complete_task\";\n PrivilegeTypes[\"EDIT_DELIVERY_BLOCK\"] = \"edit_delivery_block\";\n PrivilegeTypes[\"SEE_SEND_TO_PREPARATION\"] = \"send_to_preparation\";\n PrivilegeTypes[\"ACCESS_TASKS\"] = \"access_task\";\n PrivilegeTypes[\"ACCESS_TO_ALL_TASKS\"] = \"access_to_all_tasks\";\n PrivilegeTypes[\"ACCESS_COMPANY_TASKS_ONLY\"] = \"access_company_tasks_only\";\n PrivilegeTypes[\"EDIT_COMPANY\"] = \"edit_company\";\n PrivilegeTypes[\"ENABLE_BI_DASHBOARD\"] = \"enable_bi_dashboard\";\n PrivilegeTypes[\"EDIT_EXCLUSION_WINDOWS\"] = \"edit_exclusion_windows\";\n PrivilegeTypes[\"EDIT_TASK_DETAILS\"] = \"edit_task_details\";\n PrivilegeTypes[\"TASKS_CSV_IMPORTER_EDIT_HEADERS\"] = \"tasks_csv_importer_edit_headers\";\n PrivilegeTypes[\"EDIT_SERVICE_AREAS\"] = \"edit_service_areas\";\n PrivilegeTypes[\"ACCESS_USERS\"] = \"access_user\";\n PrivilegeTypes[\"ACCESS_COMPANY_USERS_ONLY\"] = \"access_company_users_only\";\n PrivilegeTypes[\"ACCESS_TO_NONE_ORDERS\"] = \"access_to_none_orders\";\n PrivilegeTypes[\"CANCEL_TASK\"] = \"cancel_task\";\n PrivilegeTypes[\"LOCK_UNLOCK_TASK\"] = \"lock_unlock_task\";\n PrivilegeTypes[\"RESCHEDULE_CANCELLED_ORDER\"] = \"reschedule_cancelled_order\";\n PrivilegeTypes[\"BILLING_PORTAL\"] = \"billing_portal\";\n PrivilegeTypes[\"CUSTOMIZE_LIST_LAYOUT\"] = \"customize_list_layout\";\n PrivilegeTypes[\"ENABLE_ALERT_DISPLAY_NEW_FILTERS\"] = \"enable_alert_display_new_filters\";\n PrivilegeTypes[\"VIEW_CONSUMER_VERIFICATION_CODE\"] = \"view_consumer_verification_code\";\n PrivilegeTypes[\"EDIT_ANALYTICS_MASTER_DASHBOARD\"] = \"edit_analytics_master_dashboard\";\n PrivilegeTypes[\"IS_ANALYTICS_ADMIN\"] = \"is_analytics_admin\";\n PrivilegeTypes[\"SHARE_ANALYTICS_REPORTS\"] = \"share_analytics_reports\";\n PrivilegeTypes[\"SHARE_ANALYTICS_BI_DASHBOARDS\"] = \"share_analytics_dashboards\";\n PrivilegeTypes[\"CREATE_ANALYTICS_BI_DASHBOARDS\"] = \"create_analytics_bi_dashboards\";\n PrivilegeTypes[\"ALLOW_DISPATCHER_CREATE_VEHICLE\"] = \"allow_dispatcher_create_vehicle\";\n PrivilegeTypes[\"ALLOW_DISPATCHER_EDIT_SERVICE_AREA\"] = \"allow_dispatcher_edit_service_area\";\n PrivilegeTypes[\"SEND_TO_DRIVERS\"] = \"send_to_drivers\";\n PrivilegeTypes[\"OPTIMIZE_ORDERS\"] = \"optimize_orders\";\n PrivilegeTypes[\"ASSIGN_USER_TO_COMPANY\"] = \"assign_user_to_company\";\n PrivilegeTypes[\"ENABLE_WEBHOOKS\"] = \"enable_webhooks\";\n PrivilegeTypes[\"ENABLE_MERCHANT_LOGS\"] = \"enable_merchant_logs\";\n PrivilegeTypes[\"ENABLE_SELF_ASSIGNMENT_TO_TEAMS\"] = \"enable_self_assignment_to_teams\";\n PrivilegeTypes[\"ENABLE_CHAT\"] = \"enable_chat\";\n PrivilegeTypes[\"ALLOW_ASSIGN_VEHICLE_TO_RUN\"] = \"allow_assign_vehicle_to_run\";\n PrivilegeTypes[\"REASSIGN_FLEET\"] = \"reassign_fleet\";\n PrivilegeTypes[\"SHARE_ANALYTICS_DASHBOARDS\"] = \"share_analytics_dashboards\";\n PrivilegeTypes[\"MODIFY_PLANNED_ROUTE_IDENTIFIER\"] = \"modify_planned_route_identifier\";\n PrivilegeTypes[\"FLOATING_INVENTORY_TAKE_OWNERSHIP_FROM_DRIVER\"] = \"floating_inventory_take_ownership_from_driver\";\n PrivilegeTypes[\"FLOATING_INVENTORY_TRANSFER_OWNERSHIP_TO_TEAM\"] = \"floating_inventory_transfer_ownership_to_team\";\n PrivilegeTypes[\"IS_CHAT_ADMIN\"] = \"is_chat_admin\";\n PrivilegeTypes[\"MANUAL_ORDER_FULFILLMENT\"] = \"manual_order_fulfillment\";\n})(PrivilegeTypes || (exports.PrivilegeTypes = PrivilegeTypes = {}));\nexports.PRIVILEGES_DEFAULTS = (_a = {},\n _a[PrivilegeTypes.CANCEL_TASK] = true,\n _a[PrivilegeTypes.LOCK_UNLOCK_TASK] = true,\n _a[PrivilegeTypes.RESCHEDULE_CANCELLED_ORDER] = true,\n _a[PrivilegeTypes.SEND_TO_DRIVERS] = true,\n _a[PrivilegeTypes.OPTIMIZE_ORDERS] = true,\n _a[PrivilegeTypes.EDIT_TASK_DETAILS] = true,\n _a[PrivilegeTypes.ENABLE_CHAT] = true,\n _a[PrivilegeTypes.SHARE_ANALYTICS_REPORTS] = true,\n _a[PrivilegeTypes.CREATE_ANALYTICS_BI_DASHBOARDS] = true,\n _a[PrivilegeTypes.MODIFY_PLANNED_ROUTE_IDENTIFIER] = true,\n _a[PrivilegeTypes.FLOATING_INVENTORY_TRANSFER_OWNERSHIP_TO_TEAM] = true,\n _a);\n//# sourceMappingURL=privilege.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/privilege.js?");
|
|
5025
|
+
eval("\nvar _a;\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.PRIVILEGES_DEFAULTS = exports.PrivilegeTypes = void 0;\nvar PrivilegeTypes;\n(function (PrivilegeTypes) {\n PrivilegeTypes[\"DISPATCH_SCREEN\"] = \"dispatch\";\n PrivilegeTypes[\"CREATE_ORDERS\"] = \"create_order\";\n PrivilegeTypes[\"VIEW_TASK\"] = \"view_task\";\n PrivilegeTypes[\"ACKNOWLEDGE_FLOW\"] = \"acknowledge\";\n PrivilegeTypes[\"HISTORY\"] = \"history\";\n PrivilegeTypes[\"DRIVERS\"] = \"drivers\";\n PrivilegeTypes[\"DRIVER_PRORFILE\"] = \"driver_profile\";\n PrivilegeTypes[\"ADD_DRIVER\"] = \"add_driver\";\n PrivilegeTypes[\"CHANGE_DRIVER_ROLE\"] = \"change_driver_type\";\n PrivilegeTypes[\"ASSIGN_DRIVER_TO_TASK\"] = \"assign_driver_to_task\";\n PrivilegeTypes[\"TEAMS\"] = \"teams\";\n PrivilegeTypes[\"USER_TYPES\"] = \"user_types\";\n PrivilegeTypes[\"CUSTOMERS\"] = \"customers_menu\";\n PrivilegeTypes[\"REPORTS\"] = \"reports\";\n PrivilegeTypes[\"REPORTS_NEW\"] = \"reports_new\";\n PrivilegeTypes[\"DASHBOARD\"] = \"dashboard\";\n PrivilegeTypes[\"CASHOUT_EDIT_DISTANCE\"] = \"cashout_edit_distance\";\n PrivilegeTypes[\"ACCESS_SETTINGS_SCREEN\"] = \"access_settings_screen\";\n PrivilegeTypes[\"ENABLE_SETTING_PAGE\"] = \"enable_setting_page\";\n PrivilegeTypes[\"CUSTOMER_CARE\"] = \"customer_care\";\n PrivilegeTypes[\"MAINTAIN_DRIVER_SHIFT_TIMES\"] = \"maintain_driver_shift_times\";\n PrivilegeTypes[\"COMPLETE_TASK\"] = \"complete_task\";\n PrivilegeTypes[\"EDIT_DELIVERY_BLOCK\"] = \"edit_delivery_block\";\n PrivilegeTypes[\"SEE_SEND_TO_PREPARATION\"] = \"send_to_preparation\";\n PrivilegeTypes[\"ACCESS_TASKS\"] = \"access_task\";\n PrivilegeTypes[\"ACCESS_TO_ALL_TASKS\"] = \"access_to_all_tasks\";\n PrivilegeTypes[\"ACCESS_COMPANY_TASKS_ONLY\"] = \"access_company_tasks_only\";\n PrivilegeTypes[\"EDIT_COMPANY\"] = \"edit_company\";\n PrivilegeTypes[\"ENABLE_BI_DASHBOARD\"] = \"enable_bi_dashboard\";\n PrivilegeTypes[\"EDIT_EXCLUSION_WINDOWS\"] = \"edit_exclusion_windows\";\n PrivilegeTypes[\"EDIT_TASK_DETAILS\"] = \"edit_task_details\";\n PrivilegeTypes[\"TASKS_CSV_IMPORTER_EDIT_HEADERS\"] = \"tasks_csv_importer_edit_headers\";\n PrivilegeTypes[\"EDIT_SERVICE_AREAS\"] = \"edit_service_areas\";\n PrivilegeTypes[\"ACCESS_USERS\"] = \"access_user\";\n PrivilegeTypes[\"ACCESS_COMPANY_USERS_ONLY\"] = \"access_company_users_only\";\n PrivilegeTypes[\"ACCESS_TO_NONE_ORDERS\"] = \"access_to_none_orders\";\n PrivilegeTypes[\"CANCEL_TASK\"] = \"cancel_task\";\n PrivilegeTypes[\"LOCK_UNLOCK_TASK\"] = \"lock_unlock_task\";\n PrivilegeTypes[\"RESCHEDULE_CANCELLED_ORDER\"] = \"reschedule_cancelled_order\";\n PrivilegeTypes[\"BILLING_PORTAL\"] = \"billing_portal\";\n PrivilegeTypes[\"CUSTOMIZE_LIST_LAYOUT\"] = \"customize_list_layout\";\n PrivilegeTypes[\"ENABLE_ALERT_DISPLAY_NEW_FILTERS\"] = \"enable_alert_display_new_filters\";\n PrivilegeTypes[\"VIEW_CONSUMER_VERIFICATION_CODE\"] = \"view_consumer_verification_code\";\n PrivilegeTypes[\"EDIT_ANALYTICS_MASTER_DASHBOARD\"] = \"edit_analytics_master_dashboard\";\n PrivilegeTypes[\"IS_ANALYTICS_ADMIN\"] = \"is_analytics_admin\";\n PrivilegeTypes[\"SHARE_ANALYTICS_REPORTS\"] = \"share_analytics_reports\";\n PrivilegeTypes[\"SHARE_ANALYTICS_BI_DASHBOARDS\"] = \"share_analytics_dashboards\";\n PrivilegeTypes[\"CREATE_ANALYTICS_BI_DASHBOARDS\"] = \"create_analytics_bi_dashboards\";\n PrivilegeTypes[\"ALLOW_DISPATCHER_CREATE_VEHICLE\"] = \"allow_dispatcher_create_vehicle\";\n PrivilegeTypes[\"ALLOW_DISPATCHER_EDIT_SERVICE_AREA\"] = \"allow_dispatcher_edit_service_area\";\n PrivilegeTypes[\"SEND_TO_DRIVERS\"] = \"send_to_drivers\";\n PrivilegeTypes[\"OPTIMIZE_ORDERS\"] = \"optimize_orders\";\n PrivilegeTypes[\"ASSIGN_USER_TO_COMPANY\"] = \"assign_user_to_company\";\n PrivilegeTypes[\"ENABLE_WEBHOOKS\"] = \"enable_webhooks\";\n PrivilegeTypes[\"ENABLE_MERCHANT_LOGS\"] = \"enable_merchant_logs\";\n PrivilegeTypes[\"ENABLE_SELF_ASSIGNMENT_TO_TEAMS\"] = \"enable_self_assignment_to_teams\";\n PrivilegeTypes[\"ENABLE_CHAT\"] = \"enable_chat\";\n PrivilegeTypes[\"ALLOW_ASSIGN_VEHICLE_TO_RUN\"] = \"allow_assign_vehicle_to_run\";\n PrivilegeTypes[\"REASSIGN_FLEET\"] = \"reassign_fleet\";\n PrivilegeTypes[\"SHARE_ANALYTICS_DASHBOARDS\"] = \"share_analytics_dashboards\";\n PrivilegeTypes[\"MODIFY_PLANNED_ROUTE_IDENTIFIER\"] = \"modify_planned_route_identifier\";\n PrivilegeTypes[\"FLOATING_INVENTORY_TAKE_OWNERSHIP_FROM_DRIVER\"] = \"floating_inventory_take_ownership_from_driver\";\n PrivilegeTypes[\"FLOATING_INVENTORY_TRANSFER_OWNERSHIP_TO_TEAM\"] = \"floating_inventory_transfer_ownership_to_team\";\n PrivilegeTypes[\"IS_CHAT_ADMIN\"] = \"is_chat_admin\";\n PrivilegeTypes[\"MANUAL_ORDER_FULFILLMENT\"] = \"manual_order_fulfillment\";\n PrivilegeTypes[\"ALLOW_USING_ROUTE_PLANNER_IN_DISPATCH\"] = \"allow_using_route_planner_in_dispatch\";\n PrivilegeTypes[\"ALLOW_USING_ROUTE_PLANNER_IN_PLANNING\"] = \"allow_using_route_planner_in_planning\";\n})(PrivilegeTypes || (exports.PrivilegeTypes = PrivilegeTypes = {}));\nexports.PRIVILEGES_DEFAULTS = (_a = {},\n _a[PrivilegeTypes.CANCEL_TASK] = true,\n _a[PrivilegeTypes.LOCK_UNLOCK_TASK] = true,\n _a[PrivilegeTypes.RESCHEDULE_CANCELLED_ORDER] = true,\n _a[PrivilegeTypes.SEND_TO_DRIVERS] = true,\n _a[PrivilegeTypes.OPTIMIZE_ORDERS] = true,\n _a[PrivilegeTypes.EDIT_TASK_DETAILS] = true,\n _a[PrivilegeTypes.ENABLE_CHAT] = true,\n _a[PrivilegeTypes.SHARE_ANALYTICS_REPORTS] = true,\n _a[PrivilegeTypes.CREATE_ANALYTICS_BI_DASHBOARDS] = true,\n _a[PrivilegeTypes.MODIFY_PLANNED_ROUTE_IDENTIFIER] = true,\n _a[PrivilegeTypes.FLOATING_INVENTORY_TRANSFER_OWNERSHIP_TO_TEAM] = true,\n _a[PrivilegeTypes.ALLOW_USING_ROUTE_PLANNER_IN_DISPATCH] = true,\n _a[PrivilegeTypes.ALLOW_USING_ROUTE_PLANNER_IN_PLANNING] = true,\n _a);\n//# sourceMappingURL=privilege.js.map\n\n//# sourceURL=webpack://BringgDashboardSDK/./node_modules/@bringg/types/types/privilege.js?");
|
|
5026
5026
|
|
|
5027
5027
|
/***/ }),
|
|
5028
5028
|
|