@bringg/dashboard-sdk 9.43.0 → 9.44.0-pre

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.
@@ -2745,7 +2745,6 @@ var RolloutsApi_1 = __importDefault(__webpack_require__(91310));
2745
2745
  var RouteOptimizationApi_1 = __importDefault(__webpack_require__(98511));
2746
2746
  var RouteOptimizationService_1 = __importDefault(__webpack_require__(94121));
2747
2747
  var RuleApi_1 = __importDefault(__webpack_require__(80298));
2748
- var runs_1 = __importDefault(__webpack_require__(17640));
2749
2748
  var runs_api_1 = __importDefault(__webpack_require__(83582));
2750
2749
  var ServiceApi_1 = __importDefault(__webpack_require__(65199));
2751
2750
  var ServiceAreaApi_1 = __importDefault(__webpack_require__(9463));
@@ -2823,7 +2822,6 @@ var BringgDashboardSDK = /** @class */ (function () {
2823
2822
  this.reasonToCancelTasks = null;
2824
2823
  this.reportPreferences = null;
2825
2824
  this.reports = null;
2826
- this.runs = null;
2827
2825
  this.rollouts = null;
2828
2826
  this.skills = null;
2829
2827
  this.speedFactor = null;
@@ -3134,7 +3132,6 @@ function init(session) {
3134
3132
  bringg.reasonToCancelTasks = new ReasonToCancelTasksApi_1.default(session);
3135
3133
  bringg.reportPreferences = new ReportPreference_1.default(session);
3136
3134
  bringg.reports = new reports_1.default(session);
3137
- bringg.runs = new runs_1.default(session);
3138
3135
  bringg.rollouts = new RolloutsApi_1.default(session);
3139
3136
  bringg.service = new ServiceApi_1.default(session);
3140
3137
  bringg.signatures = new Signature_1.default(session);
@@ -19485,183 +19482,6 @@ exports.RunsService = RunsService;
19485
19482
 
19486
19483
  /***/ }),
19487
19484
 
19488
- /***/ 79043:
19489
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
19490
-
19491
- "use strict";
19492
-
19493
- var __extends = (this && this.__extends) || (function () {
19494
- var extendStatics = function (d, b) {
19495
- extendStatics = Object.setPrototypeOf ||
19496
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19497
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19498
- return extendStatics(d, b);
19499
- };
19500
- return function (d, b) {
19501
- if (typeof b !== "function" && b !== null)
19502
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
19503
- extendStatics(d, b);
19504
- function __() { this.constructor = d; }
19505
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19506
- };
19507
- })();
19508
- var __values = (this && this.__values) || function(o) {
19509
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
19510
- if (m) return m.call(o);
19511
- if (o && typeof o.length === "number") return {
19512
- next: function () {
19513
- if (o && i >= o.length) o = void 0;
19514
- return { value: o && o[i++], done: !o };
19515
- }
19516
- };
19517
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
19518
- };
19519
- var __importDefault = (this && this.__importDefault) || function (mod) {
19520
- return (mod && mod.__esModule) ? mod : { "default": mod };
19521
- };
19522
- Object.defineProperty(exports, "__esModule", ({ value: true }));
19523
- var StoreEntity_1 = __importDefault(__webpack_require__(95574));
19524
- var Tasks_consts_1 = __webpack_require__(24976);
19525
- var runs_consts_1 = __webpack_require__(4669);
19526
- var RunStore = /** @class */ (function (_super) {
19527
- __extends(RunStore, _super);
19528
- function RunStore(session) {
19529
- var _this = _super.call(this, { session: session, entityName: 'runs' }) || this;
19530
- _this.createRun = function (payload) {
19531
- return _this.createOrUpdateRun(payload, _this.onCreate.bind(_this));
19532
- };
19533
- _this.updateRun = function (payload) {
19534
- return _this.createOrUpdateRun(payload, _this.onUpdate.bind(_this));
19535
- };
19536
- _this.createOrUpdateRun = function (payload, callback) {
19537
- var existingRunModel = _this.store.getItem(payload.run.id);
19538
- var updatedRunModel = { id: payload.run.id, run: payload.run, taskIds: undefined };
19539
- if (existingRunModel) {
19540
- updatedRunModel.taskIds = existingRunModel.taskIds;
19541
- }
19542
- else {
19543
- updatedRunModel.taskIds = _this.taskIdsWaitingForRun.get(payload.run.id) || new Set();
19544
- _this.taskIdsWaitingForRun.delete(payload.run.id);
19545
- }
19546
- _this.storeItem(updatedRunModel);
19547
- callback(_this.store.getItem(payload.run.id));
19548
- };
19549
- _this.deleteRun = function (payload) {
19550
- var runModel = _this.store.getItem(payload.id);
19551
- _this.store.removeFromStore(payload.id);
19552
- _this.onDelete(runModel);
19553
- };
19554
- _this.updateTaskIdsOnDelete = function (task) {
19555
- var existingRunModel = _this.store.getItem(task.run_id);
19556
- if (!existingRunModel) {
19557
- return;
19558
- }
19559
- existingRunModel.taskIds.delete(task.id);
19560
- _this.updateRun(existingRunModel);
19561
- };
19562
- _this.updateTaskIds = function (task) {
19563
- var runId = task.run_id || _this.taskIdToRunId.get(task.id);
19564
- var existingRunModel = _this.store.getItem(runId);
19565
- if (!existingRunModel) {
19566
- _this.backupTasksUntilRunIsCreated(task);
19567
- }
19568
- else if (_this.taskAddedToRun(task, existingRunModel)) {
19569
- existingRunModel.taskIds.add(task.id);
19570
- _this.updateRun(existingRunModel);
19571
- }
19572
- else if (_this.taskRemovedFromRun(task, existingRunModel)) {
19573
- existingRunModel.taskIds.delete(task.id);
19574
- _this.updateRun(existingRunModel);
19575
- }
19576
- _this.updatePreviousRun(task);
19577
- _this.taskIdToRunId.set(task.id, task.run_id);
19578
- };
19579
- _this.taskIdsWaitingForRun = new Map();
19580
- _this.taskIdToRunId = new Map();
19581
- return _this;
19582
- }
19583
- RunStore.prototype.attachSubscriptions = function () {
19584
- if (this.subscribedToRealtime) {
19585
- return;
19586
- }
19587
- this.subscribedToRealtime = true;
19588
- this.realTime.on(runs_consts_1.RunEvents.CREATED, this.createRun);
19589
- this.realTime.on(runs_consts_1.RunEvents.UPDATED, this.updateRun);
19590
- this.realTime.on(runs_consts_1.RunEvents.DELETED, this.deleteRun);
19591
- this.realTime.on(Tasks_consts_1.TaskRealTimeEvents.TASK_DELETED, this.updateTaskIdsOnDelete);
19592
- this.realTime.on(Tasks_consts_1.TaskRealTimeEvents.TASK_UPDATE, this.updateTaskIds);
19593
- this.realTime.on(Tasks_consts_1.TaskRealTimeEvents.NEW_TASK, this.updateTaskIds);
19594
- };
19595
- RunStore.prototype.set = function (run) {
19596
- return this.setAll([run])[0];
19597
- };
19598
- RunStore.prototype.setAll = function (runs) {
19599
- var e_1, _a;
19600
- var _this = this;
19601
- var runModels = runs.map(function (run) {
19602
- var _a;
19603
- return ({
19604
- id: run.id,
19605
- run: run,
19606
- taskIds: new Set(run.task_ids || ((_a = run.tasks) === null || _a === void 0 ? void 0 : _a.map(function (task) { return task.id; })))
19607
- });
19608
- });
19609
- var _loop_1 = function (runModel) {
19610
- runModel.taskIds.forEach(function (taskId) {
19611
- _this.taskIdToRunId.set(taskId, runModel.id);
19612
- });
19613
- };
19614
- try {
19615
- for (var runModels_1 = __values(runModels), runModels_1_1 = runModels_1.next(); !runModels_1_1.done; runModels_1_1 = runModels_1.next()) {
19616
- var runModel = runModels_1_1.value;
19617
- _loop_1(runModel);
19618
- }
19619
- }
19620
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
19621
- finally {
19622
- try {
19623
- if (runModels_1_1 && !runModels_1_1.done && (_a = runModels_1.return)) _a.call(runModels_1);
19624
- }
19625
- finally { if (e_1) throw e_1.error; }
19626
- }
19627
- this.storeAllItems(runModels);
19628
- return runModels;
19629
- };
19630
- RunStore.prototype.updatePreviousRun = function (task) {
19631
- var previousRunId = this.taskIdToRunId.get(task.id);
19632
- if (previousRunId && previousRunId != task.run_id) {
19633
- if (this.taskIdsWaitingForRun.has(previousRunId)) {
19634
- this.taskIdsWaitingForRun.get(previousRunId).delete(task.id);
19635
- }
19636
- var previousRunModel = this.store.getItem(previousRunId);
19637
- if (previousRunModel) {
19638
- previousRunModel.taskIds.delete(task.id);
19639
- this.updateRun(previousRunModel);
19640
- }
19641
- }
19642
- };
19643
- RunStore.prototype.taskRemovedFromRun = function (task, existingRunModel) {
19644
- return !task.run_id && existingRunModel.taskIds.has(task.id);
19645
- };
19646
- RunStore.prototype.taskAddedToRun = function (task, existingRunModel) {
19647
- return task.run_id && !existingRunModel.taskIds.has(task.id);
19648
- };
19649
- RunStore.prototype.backupTasksUntilRunIsCreated = function (task) {
19650
- if (!task.run_id) {
19651
- return;
19652
- }
19653
- if (!this.taskIdsWaitingForRun.has(task.run_id)) {
19654
- this.taskIdsWaitingForRun.set(task.run_id, new Set());
19655
- }
19656
- this.taskIdsWaitingForRun.get(task.run_id).add(task.id);
19657
- };
19658
- return RunStore;
19659
- }(StoreEntity_1.default));
19660
- exports["default"] = RunStore;
19661
- //# sourceMappingURL=RunStore.js.map
19662
-
19663
- /***/ }),
19664
-
19665
19485
  /***/ 4669:
19666
19486
  /***/ ((__unused_webpack_module, exports) => {
19667
19487
 
@@ -19700,299 +19520,6 @@ exports.GetAllChunkSize = 450;
19700
19520
 
19701
19521
  /***/ }),
19702
19522
 
19703
- /***/ 17640:
19704
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
19705
-
19706
- "use strict";
19707
-
19708
- var __assign = (this && this.__assign) || function () {
19709
- __assign = Object.assign || function(t) {
19710
- for (var s, i = 1, n = arguments.length; i < n; i++) {
19711
- s = arguments[i];
19712
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
19713
- t[p] = s[p];
19714
- }
19715
- return t;
19716
- };
19717
- return __assign.apply(this, arguments);
19718
- };
19719
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
19720
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19721
- return new (P || (P = Promise))(function (resolve, reject) {
19722
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19723
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19724
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19725
- step((generator = generator.apply(thisArg, _arguments || [])).next());
19726
- });
19727
- };
19728
- var __generator = (this && this.__generator) || function (thisArg, body) {
19729
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
19730
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
19731
- function verb(n) { return function (v) { return step([n, v]); }; }
19732
- function step(op) {
19733
- if (f) throw new TypeError("Generator is already executing.");
19734
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
19735
- 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;
19736
- if (y = 0, t) op = [op[0] & 2, t.value];
19737
- switch (op[0]) {
19738
- case 0: case 1: t = op; break;
19739
- case 4: _.label++; return { value: op[1], done: false };
19740
- case 5: _.label++; y = op[1]; op = [0]; continue;
19741
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
19742
- default:
19743
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
19744
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
19745
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
19746
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
19747
- if (t[2]) _.ops.pop();
19748
- _.trys.pop(); continue;
19749
- }
19750
- op = body.call(thisArg, _);
19751
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
19752
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
19753
- }
19754
- };
19755
- var __importDefault = (this && this.__importDefault) || function (mod) {
19756
- return (mod && mod.__esModule) ? mod : { "default": mod };
19757
- };
19758
- Object.defineProperty(exports, "__esModule", ({ value: true }));
19759
- var runs_service_1 = __webpack_require__(34075);
19760
- var RunStore_1 = __importDefault(__webpack_require__(79043));
19761
- var Runs = /** @class */ (function () {
19762
- function Runs(session) {
19763
- var _this = this;
19764
- this.unsubscribe = function () {
19765
- _this.runStore.store.unsubscribe();
19766
- };
19767
- this.onUpdate = function (callback) {
19768
- return _this.runStore.registerOnUpdate(callback);
19769
- };
19770
- this.onDelete = function (callback) {
19771
- return _this.runStore.registerOnDelete(callback);
19772
- };
19773
- this.onCreate = function (callback) {
19774
- return _this.runStore.registerOnCreate(callback);
19775
- };
19776
- this.runsService = new runs_service_1.RunsService(session);
19777
- this.runStore = new RunStore_1.default(session);
19778
- }
19779
- Runs.prototype.attachSubscriptions = function () {
19780
- this.runStore.attachSubscriptions();
19781
- };
19782
- Runs.prototype.loadAll = function (options, commonOptions) {
19783
- if (commonOptions === void 0) { commonOptions = {}; }
19784
- return __awaiter(this, void 0, void 0, function () {
19785
- var idsInCache, idsNotInCache, runs, runModels;
19786
- var _this = this;
19787
- return __generator(this, function (_a) {
19788
- switch (_a.label) {
19789
- case 0:
19790
- idsInCache = [];
19791
- idsNotInCache = [];
19792
- if (options.ids) {
19793
- options.ids.forEach(function (id) {
19794
- var item = _this.runStore.store.getItem(id);
19795
- if (item) {
19796
- idsInCache.push(id);
19797
- }
19798
- else {
19799
- idsNotInCache.push(id);
19800
- }
19801
- });
19802
- if (idsInCache.length === options.ids.length) {
19803
- return [2 /*return*/, this.runStore.store.getItemsByIds(options.ids)];
19804
- }
19805
- }
19806
- return [4 /*yield*/, this.runsService.loadAll(__assign(__assign({ page: 1 }, options), { ids: idsNotInCache.length > 0 ? idsNotInCache : undefined }), commonOptions)];
19807
- case 1:
19808
- runs = _a.sent();
19809
- runModels = this.runStore.setAll(runs);
19810
- return [2 /*return*/, runModels.concat(this.runStore.store.getItemsByIds(idsInCache))];
19811
- }
19812
- });
19813
- });
19814
- };
19815
- Runs.prototype.load = function (id, commonOptions) {
19816
- if (commonOptions === void 0) { commonOptions = {}; }
19817
- return __awaiter(this, void 0, void 0, function () {
19818
- var runModel;
19819
- return __generator(this, function (_a) {
19820
- switch (_a.label) {
19821
- case 0:
19822
- runModel = this.runStore.store.getItem(id);
19823
- if (runModel) {
19824
- return [2 /*return*/, runModel];
19825
- }
19826
- return [4 /*yield*/, this.forceLoad(id, commonOptions)];
19827
- case 1: return [2 /*return*/, _a.sent()];
19828
- }
19829
- });
19830
- });
19831
- };
19832
- Runs.prototype.forceLoad = function (id, commonOptions) {
19833
- if (commonOptions === void 0) { commonOptions = {}; }
19834
- return __awaiter(this, void 0, void 0, function () {
19835
- var run;
19836
- return __generator(this, function (_a) {
19837
- switch (_a.label) {
19838
- case 0: return [4 /*yield*/, this.runsService.load(id, commonOptions)];
19839
- case 1:
19840
- run = _a.sent();
19841
- return [2 /*return*/, this.runStore.set(run)];
19842
- }
19843
- });
19844
- });
19845
- };
19846
- Runs.prototype.get = function (id, commonOptions) {
19847
- if (commonOptions === void 0) { commonOptions = {}; }
19848
- return __awaiter(this, void 0, void 0, function () {
19849
- return __generator(this, function (_a) {
19850
- switch (_a.label) {
19851
- case 0: return [4 /*yield*/, this.runsService.load(id, commonOptions)];
19852
- case 1: return [2 /*return*/, _a.sent()];
19853
- }
19854
- });
19855
- });
19856
- };
19857
- Runs.prototype.getAll = function (options, commonOptions) {
19858
- if (commonOptions === void 0) { commonOptions = {}; }
19859
- return __awaiter(this, void 0, void 0, function () {
19860
- return __generator(this, function (_a) {
19861
- switch (_a.label) {
19862
- case 0: return [4 /*yield*/, this.runsService.getAll(options, commonOptions)];
19863
- case 1: return [2 /*return*/, _a.sent()];
19864
- }
19865
- });
19866
- });
19867
- };
19868
- Runs.prototype.update = function (id, options, commonOptions) {
19869
- if (commonOptions === void 0) { commonOptions = {}; }
19870
- return __awaiter(this, void 0, void 0, function () {
19871
- return __generator(this, function (_a) {
19872
- switch (_a.label) {
19873
- case 0: return [4 /*yield*/, this.runsService.update(id, options, commonOptions)];
19874
- case 1: return [2 /*return*/, _a.sent()];
19875
- }
19876
- });
19877
- });
19878
- };
19879
- Runs.prototype.getHistory = function (id, commonOptions) {
19880
- if (commonOptions === void 0) { commonOptions = {}; }
19881
- return __awaiter(this, void 0, void 0, function () {
19882
- return __generator(this, function (_a) {
19883
- switch (_a.label) {
19884
- case 0: return [4 /*yield*/, this.runsService.getHistory(id, commonOptions)];
19885
- case 1: return [2 /*return*/, _a.sent()];
19886
- }
19887
- });
19888
- });
19889
- };
19890
- Runs.prototype.getLocations = function (id, commonOptions) {
19891
- if (commonOptions === void 0) { commonOptions = {}; }
19892
- return __awaiter(this, void 0, void 0, function () {
19893
- return __generator(this, function (_a) {
19894
- switch (_a.label) {
19895
- case 0: return [4 /*yield*/, this.runsService.getLocations(id, commonOptions)];
19896
- case 1: return [2 /*return*/, _a.sent()];
19897
- }
19898
- });
19899
- });
19900
- };
19901
- Runs.prototype.getCashout = function (id, commonOptions) {
19902
- if (commonOptions === void 0) { commonOptions = {}; }
19903
- return __awaiter(this, void 0, void 0, function () {
19904
- return __generator(this, function (_a) {
19905
- switch (_a.label) {
19906
- case 0: return [4 /*yield*/, this.runsService.getCashout(id, commonOptions)];
19907
- case 1: return [2 /*return*/, _a.sent()];
19908
- }
19909
- });
19910
- });
19911
- };
19912
- Runs.prototype.assignDriver = function (id, userId, targetRun, commonOptions) {
19913
- if (commonOptions === void 0) { commonOptions = {}; }
19914
- return __awaiter(this, void 0, void 0, function () {
19915
- return __generator(this, function (_a) {
19916
- switch (_a.label) {
19917
- case 0: return [4 /*yield*/, this.runsService.assignDriver(id, userId, targetRun, commonOptions)];
19918
- case 1: return [2 /*return*/, _a.sent()];
19919
- }
19920
- });
19921
- });
19922
- };
19923
- Runs.prototype.unassignDriver = function (id, userId, commonOptions) {
19924
- if (commonOptions === void 0) { commonOptions = {}; }
19925
- return __awaiter(this, void 0, void 0, function () {
19926
- return __generator(this, function (_a) {
19927
- switch (_a.label) {
19928
- case 0: return [4 /*yield*/, this.runsService.unassignDriver(id, userId, commonOptions)];
19929
- case 1: return [2 /*return*/, _a.sent()];
19930
- }
19931
- });
19932
- });
19933
- };
19934
- Runs.prototype.assignVehicles = function (id, vehicleId, tasks, commonOptions) {
19935
- if (commonOptions === void 0) { commonOptions = {}; }
19936
- return __awaiter(this, void 0, void 0, function () {
19937
- return __generator(this, function (_a) {
19938
- switch (_a.label) {
19939
- case 0: return [4 /*yield*/, this.runsService.assignVehicles(id, vehicleId, tasks, commonOptions)];
19940
- case 1: return [2 /*return*/, _a.sent()];
19941
- }
19942
- });
19943
- });
19944
- };
19945
- Runs.prototype.unassignVehicles = function (id, commonOptions) {
19946
- if (commonOptions === void 0) { commonOptions = {}; }
19947
- return __awaiter(this, void 0, void 0, function () {
19948
- return __generator(this, function (_a) {
19949
- switch (_a.label) {
19950
- case 0: return [4 /*yield*/, this.runsService.unassignVehicles(id, commonOptions)];
19951
- case 1: return [2 /*return*/, _a.sent()];
19952
- }
19953
- });
19954
- });
19955
- };
19956
- Runs.prototype.bulkClose = function (runIds, commonOptions) {
19957
- if (commonOptions === void 0) { commonOptions = {}; }
19958
- return __awaiter(this, void 0, void 0, function () {
19959
- return __generator(this, function (_a) {
19960
- switch (_a.label) {
19961
- case 0: return [4 /*yield*/, this.runsService.bulkClose(runIds, commonOptions)];
19962
- case 1: return [2 /*return*/, _a.sent()];
19963
- }
19964
- });
19965
- });
19966
- };
19967
- Runs.prototype.markDonePlanning = function (runIds, commonOptions) {
19968
- if (commonOptions === void 0) { commonOptions = {}; }
19969
- return __awaiter(this, void 0, void 0, function () {
19970
- return __generator(this, function (_a) {
19971
- switch (_a.label) {
19972
- case 0: return [4 /*yield*/, this.runsService.markDonePlanning(runIds, commonOptions)];
19973
- case 1: return [2 /*return*/, _a.sent()];
19974
- }
19975
- });
19976
- });
19977
- };
19978
- Runs.prototype.getActualBreaks = function (runIds, commonOptions) {
19979
- if (commonOptions === void 0) { commonOptions = {}; }
19980
- return __awaiter(this, void 0, void 0, function () {
19981
- return __generator(this, function (_a) {
19982
- switch (_a.label) {
19983
- case 0: return [4 /*yield*/, this.runsService.getActualBreaks(runIds, commonOptions)];
19984
- case 1: return [2 /*return*/, _a.sent()];
19985
- }
19986
- });
19987
- });
19988
- };
19989
- return Runs;
19990
- }());
19991
- exports["default"] = Runs;
19992
- //# sourceMappingURL=runs.js.map
19993
-
19994
- /***/ }),
19995
-
19996
19523
  /***/ 30196:
19997
19524
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
19998
19525
 
@@ -22770,7 +22297,7 @@ var lodash_1 = __webpack_require__(96486);
22770
22297
  var BringgException_1 = __webpack_require__(43605);
22771
22298
  var Logger_1 = __importDefault(__webpack_require__(55860));
22772
22299
  var abort_1 = __webpack_require__(34179);
22773
- var version = '9.43.0';
22300
+ var version = '9.44.0-pre';
22774
22301
  function logErrorResponse(response) {
22775
22302
  var data = response.data, status = response.status;
22776
22303
  try {
@@ -25294,10 +24821,17 @@ exports["default"] = Tasks;
25294
24821
  "use strict";
25295
24822
 
25296
24823
  Object.defineProperty(exports, "__esModule", ({ value: true }));
25297
- exports.TaskHelpers = void 0;
24824
+ exports.TaskHelpers = exports.DONE_TASK_STATUES = exports.OPEN_TASK_STATUES = void 0;
25298
24825
  var types_1 = __webpack_require__(63127);
25299
24826
  var lodash_1 = __webpack_require__(96486);
25300
- var Tasks_consts_1 = __webpack_require__(24976);
24827
+ exports.OPEN_TASK_STATUES = [
24828
+ types_1.TaskStatus.Created,
24829
+ types_1.TaskStatus.Assigned,
24830
+ types_1.TaskStatus.OnTheWay,
24831
+ types_1.TaskStatus.CheckedIn,
24832
+ types_1.TaskStatus.Accepted
24833
+ ];
24834
+ exports.DONE_TASK_STATUES = [types_1.TaskStatus.Cancelled, types_1.TaskStatus.Done, types_1.TaskStatus.Rejected];
25301
24835
  var TaskHelpers = /** @class */ (function () {
25302
24836
  function TaskHelpers() {
25303
24837
  }
@@ -25305,10 +24839,10 @@ var TaskHelpers = /** @class */ (function () {
25305
24839
  return task.ready_to_execute;
25306
24840
  };
25307
24841
  TaskHelpers.isTaskInOpenState = function (task) {
25308
- return (0, lodash_1.includes)(Tasks_consts_1.OPEN_TASK_STATUES, task.status);
24842
+ return (0, lodash_1.includes)(exports.OPEN_TASK_STATUES, task.status);
25309
24843
  };
25310
24844
  TaskHelpers.isDone = function (task) {
25311
- return (0, lodash_1.includes)(Tasks_consts_1.DONE_TASK_STATUES, task.status);
24845
+ return (0, lodash_1.includes)(exports.DONE_TASK_STATUES, task.status);
25312
24846
  };
25313
24847
  TaskHelpers.isGroupFollower = function (task) {
25314
24848
  return Boolean(task.group_leader_id);
@@ -25355,17 +24889,9 @@ var __values = (this && this.__values) || function(o) {
25355
24889
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
25356
24890
  };
25357
24891
  Object.defineProperty(exports, "__esModule", ({ value: true }));
25358
- exports.taskDefaultFields = exports.Routes = exports.baseRoute = exports.TaskRealTimeEvents = exports.answersExtractor = exports.quotesExtractor = exports.formExtractor = exports.taskIdsExtractor = exports.scanCodeExtractor = exports.locationExtractor = exports.childTasksExtractor = exports.tasksExtractor = exports.successExtractor = exports.taskExtractor = exports.defaultExtractor = exports.noteTypes = exports.taskToGroupMapper = exports.groupFilter = exports.TaskGroupTypes = exports.GROUP_VALUES = exports.DONE_TASK_STATUES = exports.OPEN_TASK_STATUES = void 0;
25359
- var types_1 = __webpack_require__(63127);
24892
+ exports.taskDefaultFields = exports.Routes = exports.baseRoute = exports.TaskRealTimeEvents = exports.answersExtractor = exports.quotesExtractor = exports.formExtractor = exports.taskIdsExtractor = exports.scanCodeExtractor = exports.locationExtractor = exports.childTasksExtractor = exports.tasksExtractor = exports.successExtractor = exports.taskExtractor = exports.defaultExtractor = exports.noteTypes = exports.taskToGroupMapper = exports.groupFilter = exports.TaskGroupTypes = exports.GROUP_VALUES = void 0;
25360
24893
  var TaskHelpers_1 = __webpack_require__(73119);
25361
- exports.OPEN_TASK_STATUES = [
25362
- types_1.TaskStatus.Created,
25363
- types_1.TaskStatus.Assigned,
25364
- types_1.TaskStatus.OnTheWay,
25365
- types_1.TaskStatus.CheckedIn,
25366
- types_1.TaskStatus.Accepted
25367
- ];
25368
- exports.DONE_TASK_STATUES = [types_1.TaskStatus.Cancelled, types_1.TaskStatus.Done, types_1.TaskStatus.Rejected];
24894
+ console.log('Loading Tasks constants...');
25369
24895
  var GROUP_VALUES;
25370
24896
  (function (GROUP_VALUES) {
25371
24897
  GROUP_VALUES[GROUP_VALUES["General"] = 0] = "General";