@bringg/dashboard-sdk 9.95.1 → 9.96.0-pre.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.
Files changed (31) hide show
  1. package/dist/BringgDashboardSDK.d.ts +11 -1
  2. package/dist/BringgDashboardSDK.js +9 -1
  3. package/dist/BringgDashboardSDK.js.map +1 -1
  4. package/dist/CheckinDistanceReason/v2/checkin-distance-reasons-api.d.ts +19 -0
  5. package/dist/CheckinDistanceReason/v2/checkin-distance-reasons-api.js +99 -0
  6. package/dist/CheckinDistanceReason/v2/checkin-distance-reasons-api.js.map +1 -0
  7. package/dist/CheckinDistanceReason/v2/checkin-distance-reasons-service.d.ts +13 -0
  8. package/dist/CheckinDistanceReason/v2/checkin-distance-reasons-service.js +115 -0
  9. package/dist/CheckinDistanceReason/v2/checkin-distance-reasons-service.js.map +1 -0
  10. package/dist/ConfigurationProfiles/ConfigurationProfiles.d.ts +0 -7
  11. package/dist/ConfigurationProfiles/ConfigurationProfiles.js +0 -9
  12. package/dist/ConfigurationProfiles/ConfigurationProfiles.js.map +1 -1
  13. package/dist/ConfigurationProfiles/Service/ConfigurationProfilesService.d.ts +0 -2
  14. package/dist/ConfigurationProfiles/Service/ConfigurationProfilesService.js +0 -8
  15. package/dist/ConfigurationProfiles/Service/ConfigurationProfilesService.js.map +1 -1
  16. package/dist/TaskConfiguration/Entity/TaskConfigurationEntity.d.ts +2 -1
  17. package/dist/TaskConfiguration/Entity/TaskConfigurationEntity.js +3 -0
  18. package/dist/TaskConfiguration/Entity/TaskConfigurationEntity.js.map +1 -1
  19. package/dist/TaskConfiguration/TaskConfiguration.consts.d.ts +4 -0
  20. package/dist/TaskConfiguration/TaskConfiguration.d.ts +6 -4
  21. package/dist/TaskConfiguration/TaskConfiguration.js +51 -0
  22. package/dist/TaskConfiguration/TaskConfiguration.js.map +1 -1
  23. package/dist/bringg-dashboard-sdk-cjs2.js +380 -20
  24. package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
  25. package/dist/bringg-dashboard-sdk.js +76 -10
  26. package/dist/bringg-dashboard-sdk.min.js +1 -1
  27. package/dist/bringg-dashboard-sdk.min.js.map +1 -1
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.js +3 -1
  30. package/dist/index.js.map +1 -1
  31. package/package.json +2 -2
@@ -1,4 +1,40 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ 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;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
2
38
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
39
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
40
  };
@@ -8,6 +44,21 @@ var TaskConfiguration = /** @class */ (function () {
8
44
  function TaskConfiguration(session) {
9
45
  this.TaskConfigurationEntity = new TaskConfigurationEntity_1.default(session);
10
46
  }
47
+ /** Every task configuration of the merchant, with or without actions (id, title, checkin_distance_enforcement). */
48
+ TaskConfiguration.prototype.getAll = function () {
49
+ return __awaiter(this, void 0, void 0, function () {
50
+ var response;
51
+ return __generator(this, function (_a) {
52
+ switch (_a.label) {
53
+ case 0: return [4 /*yield*/, this.TaskConfigurationEntity.getAll()];
54
+ case 1:
55
+ response = _a.sent();
56
+ return [2 /*return*/, response.task_configurations];
57
+ }
58
+ });
59
+ });
60
+ };
61
+ /** Only the task configurations that have actions. */
11
62
  TaskConfiguration.prototype.getAllActionData = function () {
12
63
  return this.TaskConfigurationEntity.getAllActionData();
13
64
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TaskConfiguration.js","sourceRoot":"","sources":["../../src/TaskConfiguration/TaskConfiguration.ts"],"names":[],"mappings":";;;;;AACA,6FAAuE;AAGvE;IAGC,2BAAY,OAAgB;QAC3B,IAAI,CAAC,uBAAuB,GAAG,IAAI,iCAAuB,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;IAEM,4CAAgB,GAAvB;QACC,OAAO,IAAI,CAAC,uBAAuB,CAAC,gBAAgB,EAAE,CAAC;IACxD,CAAC;IAEM,kCAAM,GAAb,UAAc,iBAAmD;QAChE,OAAO,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACvE,CAAC;IAEM,kCAAM,GAAb,UACC,EAAU,EACV,iBAAmD;QAEnD,OAAO,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC3E,CAAC;IACF,wBAAC;AAAD,CAAC,AArBD,IAqBC"}
1
+ {"version":3,"file":"TaskConfiguration.js","sourceRoot":"","sources":["../../src/TaskConfiguration/TaskConfiguration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,6FAAuE;AAOvE;IAGC,2BAAY,OAAgB;QAC3B,IAAI,CAAC,uBAAuB,GAAG,IAAI,iCAAuB,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;IAED,mHAAmH;IACtG,kCAAM,GAAnB;;;;;4BACkB,qBAAM,IAAI,CAAC,uBAAuB,CAAC,MAAM,EAAE,EAAA;;wBAAtD,QAAQ,GAAG,SAA2C;wBAE5D,sBAAO,QAAQ,CAAC,mBAAmB,EAAC;;;;KACpC;IAED,sDAAsD;IAC/C,4CAAgB,GAAvB;QACC,OAAO,IAAI,CAAC,uBAAuB,CAAC,gBAAgB,EAAE,CAAC;IACxD,CAAC;IAEM,kCAAM,GAAb,UAAc,iBAAoD;QACjE,OAAO,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACvE,CAAC;IAEM,kCAAM,GAAb,UACC,EAAU,EACV,iBAAoD;QAEpD,OAAO,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC3E,CAAC;IACF,wBAAC;AAAD,CAAC,AA7BD,IA6BC"}
@@ -3139,6 +3139,7 @@ var CarrierCancellationReasonMappingsApi_1 = __importDefault(__webpack_require__
3139
3139
  var CarrierCancellationReasonsApi_1 = __importDefault(__webpack_require__(73116));
3140
3140
  var Chat_1 = __importDefault(__webpack_require__(17629));
3141
3141
  var ChatConversationApi_1 = __importDefault(__webpack_require__(74617));
3142
+ var checkin_distance_reasons_api_1 = __importDefault(__webpack_require__(16754));
3142
3143
  var Company_1 = __importDefault(__webpack_require__(97275));
3143
3144
  var ConfigurationProfiles_1 = __importDefault(__webpack_require__(65624));
3144
3145
  var ConfigurationProvider_1 = __webpack_require__(44858);
@@ -3536,7 +3537,7 @@ var BringgDashboardSDK = /** @class */ (function () {
3536
3537
  exports.BringgDashboardSDK = BringgDashboardSDK;
3537
3538
  function init(session) {
3538
3539
  return __awaiter(this, void 0, void 0, function () {
3539
- var bringg, customersApi, workflows, taskRejectReasons;
3540
+ var bringg, customersApi, workflows, taskRejectReasons, checkinDistanceReasons;
3540
3541
  return __generator(this, function (_a) {
3541
3542
  switch (_a.label) {
3542
3543
  case 0:
@@ -3568,6 +3569,13 @@ function init(session) {
3568
3569
  taskRejectReasons: function () {
3569
3570
  return taskRejectReasons;
3570
3571
  },
3572
+ createCheckinDistanceReasons: function (mapper) {
3573
+ checkinDistanceReasons = new checkin_distance_reasons_api_1.default(session, mapper);
3574
+ return checkinDistanceReasons;
3575
+ },
3576
+ checkinDistanceReasons: function () {
3577
+ return checkinDistanceReasons;
3578
+ },
3571
3579
  runs: new runs_api_1.default(session, function () { return bringg; }),
3572
3580
  uploads: new upload_api_1.default(session),
3573
3581
  floatingInventories: new floating_inventories_api_1.FloatingInventoriesApi(session),
@@ -5181,6 +5189,234 @@ exports["default"] = ChatMessage;
5181
5189
 
5182
5190
  /***/ }),
5183
5191
 
5192
+ /***/ 16754:
5193
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
5194
+
5195
+ "use strict";
5196
+
5197
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5198
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5199
+ return new (P || (P = Promise))(function (resolve, reject) {
5200
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5201
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
5202
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
5203
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
5204
+ });
5205
+ };
5206
+ var __generator = (this && this.__generator) || function (thisArg, body) {
5207
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
5208
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
5209
+ function verb(n) { return function (v) { return step([n, v]); }; }
5210
+ function step(op) {
5211
+ if (f) throw new TypeError("Generator is already executing.");
5212
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
5213
+ 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;
5214
+ if (y = 0, t) op = [op[0] & 2, t.value];
5215
+ switch (op[0]) {
5216
+ case 0: case 1: t = op; break;
5217
+ case 4: _.label++; return { value: op[1], done: false };
5218
+ case 5: _.label++; y = op[1]; op = [0]; continue;
5219
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
5220
+ default:
5221
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
5222
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
5223
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
5224
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
5225
+ if (t[2]) _.ops.pop();
5226
+ _.trys.pop(); continue;
5227
+ }
5228
+ op = body.call(thisArg, _);
5229
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
5230
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
5231
+ }
5232
+ };
5233
+ var __importDefault = (this && this.__importDefault) || function (mod) {
5234
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5235
+ };
5236
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
5237
+ var data_store_1 = __importDefault(__webpack_require__(73135));
5238
+ var storable_data_service_1 = __importDefault(__webpack_require__(45297));
5239
+ var checkin_distance_reasons_service_1 = __importDefault(__webpack_require__(85743));
5240
+ var CheckinDistanceReasonsApi = /** @class */ (function () {
5241
+ function CheckinDistanceReasonsApi(session, mapper) {
5242
+ this.checkinDistanceReasonsStore = new data_store_1.default();
5243
+ this.checkinDistanceReasonsService = new checkin_distance_reasons_service_1.default(session);
5244
+ this.storableDataService = new storable_data_service_1.default(this.checkinDistanceReasonsStore, mapper);
5245
+ }
5246
+ CheckinDistanceReasonsApi.prototype.loadAll = function (options) {
5247
+ var _this = this;
5248
+ return this.storableDataService.loadAll('loadAll', function () { return _this.checkinDistanceReasonsService.loadAll(options); }, options);
5249
+ };
5250
+ CheckinDistanceReasonsApi.prototype.delete = function (id, commonOption) {
5251
+ return __awaiter(this, void 0, void 0, function () {
5252
+ var _this = this;
5253
+ return __generator(this, function (_a) {
5254
+ switch (_a.label) {
5255
+ case 0: return [4 /*yield*/, this.storableDataService.delete('delete', function () { return _this.checkinDistanceReasonsService.delete(id, commonOption); }, id)];
5256
+ case 1:
5257
+ _a.sent();
5258
+ return [2 /*return*/];
5259
+ }
5260
+ });
5261
+ });
5262
+ };
5263
+ CheckinDistanceReasonsApi.prototype.update = function (id, checkinDistanceReason, commonOption) {
5264
+ var _this = this;
5265
+ return this.storableDataService.modify('update', function () {
5266
+ return _this.checkinDistanceReasonsService.update(id, checkinDistanceReason, commonOption);
5267
+ });
5268
+ };
5269
+ CheckinDistanceReasonsApi.prototype.patch = function (id, checkinDistanceReason, commonOption) {
5270
+ var _this = this;
5271
+ return this.storableDataService.modify('patch', function () {
5272
+ return _this.checkinDistanceReasonsService.patch(id, checkinDistanceReason, commonOption);
5273
+ });
5274
+ };
5275
+ CheckinDistanceReasonsApi.prototype.create = function (checkinDistanceReason, commonOption) {
5276
+ var _this = this;
5277
+ return this.storableDataService.modify('create', function () {
5278
+ return _this.checkinDistanceReasonsService.create(checkinDistanceReason, commonOption);
5279
+ });
5280
+ };
5281
+ CheckinDistanceReasonsApi.prototype.get = function (id) {
5282
+ return this.checkinDistanceReasonsStore.get(id);
5283
+ };
5284
+ /** Returns the loaded reasons in creation (id) order, the same order the server and the driver app use. */
5285
+ CheckinDistanceReasonsApi.prototype.getAll = function () {
5286
+ return this.checkinDistanceReasonsStore.getAll();
5287
+ };
5288
+ CheckinDistanceReasonsApi.prototype.removeAll = function () {
5289
+ this.checkinDistanceReasonsStore.removeAll();
5290
+ };
5291
+ return CheckinDistanceReasonsApi;
5292
+ }());
5293
+ exports["default"] = CheckinDistanceReasonsApi;
5294
+ //# sourceMappingURL=checkin-distance-reasons-api.js.map
5295
+
5296
+ /***/ }),
5297
+
5298
+ /***/ 85743:
5299
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
5300
+
5301
+ "use strict";
5302
+
5303
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5304
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5305
+ return new (P || (P = Promise))(function (resolve, reject) {
5306
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5307
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
5308
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
5309
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
5310
+ });
5311
+ };
5312
+ var __generator = (this && this.__generator) || function (thisArg, body) {
5313
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
5314
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
5315
+ function verb(n) { return function (v) { return step([n, v]); }; }
5316
+ function step(op) {
5317
+ if (f) throw new TypeError("Generator is already executing.");
5318
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
5319
+ 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;
5320
+ if (y = 0, t) op = [op[0] & 2, t.value];
5321
+ switch (op[0]) {
5322
+ case 0: case 1: t = op; break;
5323
+ case 4: _.label++; return { value: op[1], done: false };
5324
+ case 5: _.label++; y = op[1]; op = [0]; continue;
5325
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
5326
+ default:
5327
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
5328
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
5329
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
5330
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
5331
+ if (t[2]) _.ops.pop();
5332
+ _.trys.pop(); continue;
5333
+ }
5334
+ op = body.call(thisArg, _);
5335
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
5336
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
5337
+ }
5338
+ };
5339
+ var __importDefault = (this && this.__importDefault) || function (mod) {
5340
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5341
+ };
5342
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
5343
+ var CrudService_1 = __importDefault(__webpack_require__(14809));
5344
+ var entityName = 'checkin_distance_reasons';
5345
+ var CheckinDistanceReasonsService = /** @class */ (function () {
5346
+ function CheckinDistanceReasonsService(session) {
5347
+ this.service = new CrudService_1.default(session, entityName);
5348
+ }
5349
+ CheckinDistanceReasonsService.prototype.loadAll = function (commonOptions) {
5350
+ if (commonOptions === void 0) { commonOptions = {}; }
5351
+ return __awaiter(this, void 0, void 0, function () {
5352
+ var response;
5353
+ return __generator(this, function (_a) {
5354
+ switch (_a.label) {
5355
+ case 0: return [4 /*yield*/, this.service.getAll(undefined, commonOptions)];
5356
+ case 1:
5357
+ response = _a.sent();
5358
+ return [2 /*return*/, response.checkin_distance_reasons];
5359
+ }
5360
+ });
5361
+ });
5362
+ };
5363
+ CheckinDistanceReasonsService.prototype.delete = function (id, commonOptions) {
5364
+ if (commonOptions === void 0) { commonOptions = {}; }
5365
+ return __awaiter(this, void 0, void 0, function () {
5366
+ return __generator(this, function (_a) {
5367
+ return [2 /*return*/, this.service.delete(id, undefined, commonOptions)];
5368
+ });
5369
+ });
5370
+ };
5371
+ CheckinDistanceReasonsService.prototype.update = function (id, checkinDistanceReason, commonOptions) {
5372
+ if (commonOptions === void 0) { commonOptions = {}; }
5373
+ return __awaiter(this, void 0, void 0, function () {
5374
+ var response;
5375
+ return __generator(this, function (_a) {
5376
+ switch (_a.label) {
5377
+ case 0: return [4 /*yield*/, this.service.update(id, checkinDistanceReason, commonOptions)];
5378
+ case 1:
5379
+ response = _a.sent();
5380
+ return [2 /*return*/, response.checkin_distance_reason];
5381
+ }
5382
+ });
5383
+ });
5384
+ };
5385
+ CheckinDistanceReasonsService.prototype.patch = function (id, checkinDistanceReason, commonOptions) {
5386
+ if (commonOptions === void 0) { commonOptions = {}; }
5387
+ return __awaiter(this, void 0, void 0, function () {
5388
+ var response;
5389
+ return __generator(this, function (_a) {
5390
+ switch (_a.label) {
5391
+ case 0: return [4 /*yield*/, this.service.patch(id, checkinDistanceReason, commonOptions)];
5392
+ case 1:
5393
+ response = _a.sent();
5394
+ return [2 /*return*/, response.checkin_distance_reason];
5395
+ }
5396
+ });
5397
+ });
5398
+ };
5399
+ CheckinDistanceReasonsService.prototype.create = function (checkinDistanceReason, commonOptions) {
5400
+ if (commonOptions === void 0) { commonOptions = {}; }
5401
+ return __awaiter(this, void 0, void 0, function () {
5402
+ var response;
5403
+ return __generator(this, function (_a) {
5404
+ switch (_a.label) {
5405
+ case 0: return [4 /*yield*/, this.service.create(checkinDistanceReason, commonOptions)];
5406
+ case 1:
5407
+ response = _a.sent();
5408
+ return [2 /*return*/, response.checkin_distance_reason];
5409
+ }
5410
+ });
5411
+ });
5412
+ };
5413
+ return CheckinDistanceReasonsService;
5414
+ }());
5415
+ exports["default"] = CheckinDistanceReasonsService;
5416
+ //# sourceMappingURL=checkin-distance-reasons-service.js.map
5417
+
5418
+ /***/ }),
5419
+
5184
5420
  /***/ 97275:
5185
5421
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
5186
5422
 
@@ -5301,15 +5537,6 @@ var ConfigurationProfiles = /** @class */ (function () {
5301
5537
  ConfigurationProfiles.prototype.getAll = function (applicationUuid) {
5302
5538
  return this.configurationProfilesService.list(applicationUuid);
5303
5539
  };
5304
- /**
5305
- * Fetches the schema defaults of the application's configuration, in the shape of a profile's `configuration`
5306
- * (e.g. `{ configs: { max_shift_hours: 13 } }`). Keys without a default are left out; no defaults gives `{}`.
5307
- * @param applicationUuid - Application whose configuration schema is read
5308
- * @returns The default configuration values
5309
- */
5310
- ConfigurationProfiles.prototype.getDefaults = function (applicationUuid) {
5311
- return this.configurationProfilesService.getDefaults(applicationUuid);
5312
- };
5313
5540
  ConfigurationProfiles.prototype.create = function (applicationUuid, payload) {
5314
5541
  return this.configurationProfilesService.create(applicationUuid, payload);
5315
5542
  };
@@ -5394,7 +5621,6 @@ var BaseService_1 = __importDefault(__webpack_require__(41992));
5394
5621
  var SERVICE_NAME = 'settings-service';
5395
5622
  exports.Routes = {
5396
5623
  LIST: "/".concat(SERVICE_NAME, "/applications/{:application_uuid}/configuration-profiles"),
5397
- DEFAULTS: "/".concat(SERVICE_NAME, "/applications/{:application_uuid}/configuration-profiles/defaults"),
5398
5624
  CREATE: "/".concat(SERVICE_NAME, "/applications/{:application_uuid}/configuration-profiles"),
5399
5625
  UPDATE: "/".concat(SERVICE_NAME, "/applications/{:application_uuid}/configuration-profiles/{:id}"),
5400
5626
  SET_DEFAULT: "/".concat(SERVICE_NAME, "/applications/{:application_uuid}/configuration-profiles/{:id}/make-default"),
@@ -5412,13 +5638,6 @@ var ConfigurationProfilesService = /** @class */ (function (_super) {
5412
5638
  });
5413
5639
  });
5414
5640
  };
5415
- ConfigurationProfilesService.prototype.getDefaults = function (applicationUuid) {
5416
- return __awaiter(this, void 0, void 0, function () {
5417
- return __generator(this, function (_a) {
5418
- return [2 /*return*/, this.routeGenerator.get(exports.Routes.DEFAULTS).withRouteParams({ application_uuid: applicationUuid }).invoke()];
5419
- });
5420
- });
5421
- };
5422
5641
  ConfigurationProfilesService.prototype.create = function (applicationUuid, payload) {
5423
5642
  return __awaiter(this, void 0, void 0, function () {
5424
5643
  return __generator(this, function (_a) {
@@ -25060,7 +25279,7 @@ var BringgException_1 = __webpack_require__(43605);
25060
25279
  var client_page_1 = __webpack_require__(16573);
25061
25280
  var Logger_1 = __importDefault(__webpack_require__(55860));
25062
25281
  var abort_1 = __webpack_require__(34179);
25063
- var version = '9.95.1';
25282
+ var version = '9.96.0-pre.1';
25064
25283
  function logErrorResponse(response) {
25065
25284
  var data = response.data, status = response.status;
25066
25285
  try {
@@ -28879,6 +29098,9 @@ var TaskConfigurationEntity = /** @class */ (function (_super) {
28879
29098
  routes: [Entity_1.BaseRoutes.Create, Entity_1.BaseRoutes.Update]
28880
29099
  }) || this;
28881
29100
  }
29101
+ TaskConfigurationEntity.prototype.getAll = function () {
29102
+ return this.service.routeGenerator.get('/merchant/task_configurations').invoke();
29103
+ };
28882
29104
  TaskConfigurationEntity.prototype.getAllActionData = function () {
28883
29105
  return this.service.routeGenerator.get('/merchant/task_configurations/get_all_action_data').invoke();
28884
29106
  };
@@ -28894,6 +29116,42 @@ exports["default"] = TaskConfigurationEntity;
28894
29116
 
28895
29117
  "use strict";
28896
29118
 
29119
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29120
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29121
+ return new (P || (P = Promise))(function (resolve, reject) {
29122
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29123
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
29124
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
29125
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
29126
+ });
29127
+ };
29128
+ var __generator = (this && this.__generator) || function (thisArg, body) {
29129
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
29130
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29131
+ function verb(n) { return function (v) { return step([n, v]); }; }
29132
+ function step(op) {
29133
+ if (f) throw new TypeError("Generator is already executing.");
29134
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29135
+ 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;
29136
+ if (y = 0, t) op = [op[0] & 2, t.value];
29137
+ switch (op[0]) {
29138
+ case 0: case 1: t = op; break;
29139
+ case 4: _.label++; return { value: op[1], done: false };
29140
+ case 5: _.label++; y = op[1]; op = [0]; continue;
29141
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
29142
+ default:
29143
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
29144
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
29145
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29146
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29147
+ if (t[2]) _.ops.pop();
29148
+ _.trys.pop(); continue;
29149
+ }
29150
+ op = body.call(thisArg, _);
29151
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
29152
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
29153
+ }
29154
+ };
28897
29155
  var __importDefault = (this && this.__importDefault) || function (mod) {
28898
29156
  return (mod && mod.__esModule) ? mod : { "default": mod };
28899
29157
  };
@@ -28903,6 +29161,21 @@ var TaskConfiguration = /** @class */ (function () {
28903
29161
  function TaskConfiguration(session) {
28904
29162
  this.TaskConfigurationEntity = new TaskConfigurationEntity_1.default(session);
28905
29163
  }
29164
+ /** Every task configuration of the merchant, with or without actions (id, title, checkin_distance_enforcement). */
29165
+ TaskConfiguration.prototype.getAll = function () {
29166
+ return __awaiter(this, void 0, void 0, function () {
29167
+ var response;
29168
+ return __generator(this, function (_a) {
29169
+ switch (_a.label) {
29170
+ case 0: return [4 /*yield*/, this.TaskConfigurationEntity.getAll()];
29171
+ case 1:
29172
+ response = _a.sent();
29173
+ return [2 /*return*/, response.task_configurations];
29174
+ }
29175
+ });
29176
+ });
29177
+ };
29178
+ /** Only the task configurations that have actions. */
28906
29179
  TaskConfiguration.prototype.getAllActionData = function () {
28907
29180
  return this.TaskConfigurationEntity.getAllActionData();
28908
29181
  };
@@ -37081,12 +37354,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
37081
37354
  return (mod && mod.__esModule) ? mod : { "default": mod };
37082
37355
  };
37083
37356
  Object.defineProperty(exports, "__esModule", ({ value: true }));
37084
- exports.WorkflowsApi = exports.VehicleTypeConsts = exports.VehicleCategoryConsts = exports.VehicleGroup = exports.VehiclesApi = exports.AbortUtils = exports.UsersApi = exports.UserGroupValues = exports.UserGroupTypes = exports.UploadApi = exports.UploadConsts = exports.TasksExplorerApi = exports.TaskRejectReasonsApi = exports.TaskInventoryConsts = exports.TasksApi = exports.TaskGroupValues = exports.TaskGroupTypes = exports.TagConsts = exports.ServiceAreaApi = exports.ServiceAreaFilterGroups = exports.ServicesSetupConsts = exports.RunsApi = exports.RunStatus = exports.RunConsts = exports.ResourceUploadType = exports.ReasonToChangeInventory = exports.PrivilegesConsts = exports.PlannedRoutesConsts = exports.PlannedDeliveryWindowsApi = exports.RecurrenceType = exports.PlannedDeliveryWindowsFilterGroups = exports.OptimizationResultApi = exports.NotificationTypesConsts = exports.NotificationTemplateConsts = exports.LookupConsts = exports.LanguageConsts = exports.ExclusionWindowApiV2 = exports.ExclusionWindowsFilterGroups = exports.DeliveryWindowsApi = exports.DeliveryBlockConsts = exports.CrewConsts = exports.Responses = exports.clientPageFromLocation = exports.CLIENT_PAGE_HEADER = exports.ChatMessageConsts = exports.ChatConversationConsts = void 0;
37357
+ exports.WorkflowsApi = exports.VehicleTypeConsts = exports.VehicleCategoryConsts = exports.VehicleGroup = exports.VehiclesApi = exports.AbortUtils = exports.UsersApi = exports.UserGroupValues = exports.UserGroupTypes = exports.UploadApi = exports.UploadConsts = exports.TasksExplorerApi = exports.TaskRejectReasonsApi = exports.TaskInventoryConsts = exports.TasksApi = exports.TaskGroupValues = exports.TaskGroupTypes = exports.TagConsts = exports.ServiceAreaApi = exports.ServiceAreaFilterGroups = exports.ServicesSetupConsts = exports.RunsApi = exports.RunStatus = exports.RunConsts = exports.ResourceUploadType = exports.ReasonToChangeInventory = exports.PrivilegesConsts = exports.PlannedRoutesConsts = exports.PlannedDeliveryWindowsApi = exports.RecurrenceType = exports.PlannedDeliveryWindowsFilterGroups = exports.OptimizationResultApi = exports.NotificationTypesConsts = exports.NotificationTemplateConsts = exports.LookupConsts = exports.LanguageConsts = exports.ExclusionWindowApiV2 = exports.ExclusionWindowsFilterGroups = exports.DeliveryWindowsApi = exports.DeliveryBlockConsts = exports.CrewConsts = exports.Responses = exports.clientPageFromLocation = exports.CLIENT_PAGE_HEADER = exports.CheckinDistanceReasonsApi = exports.ChatMessageConsts = exports.ChatConversationConsts = void 0;
37085
37358
  __exportStar(__webpack_require__(82661), exports);
37086
37359
  __exportStar(__webpack_require__(37360), exports);
37087
37360
  __exportStar(__webpack_require__(5655), exports);
37088
37361
  exports.ChatConversationConsts = __importStar(__webpack_require__(44448));
37089
37362
  exports.ChatMessageConsts = __importStar(__webpack_require__(39634));
37363
+ var checkin_distance_reasons_api_1 = __webpack_require__(16754);
37364
+ Object.defineProperty(exports, "CheckinDistanceReasonsApi", ({ enumerable: true, get: function () { return __importDefault(checkin_distance_reasons_api_1).default; } }));
37090
37365
  var client_page_1 = __webpack_require__(16573);
37091
37366
  Object.defineProperty(exports, "CLIENT_PAGE_HEADER", ({ enumerable: true, get: function () { return client_page_1.CLIENT_PAGE_HEADER; } }));
37092
37367
  Object.defineProperty(exports, "clientPageFromLocation", ({ enumerable: true, get: function () { return client_page_1.clientPageFromLocation; } }));
@@ -40110,6 +40385,8 @@ __exportStar(__webpack_require__(1555), exports);
40110
40385
  __exportStar(__webpack_require__(68734), exports);
40111
40386
  __exportStar(__webpack_require__(37443), exports);
40112
40387
  __exportStar(__webpack_require__(51837), exports);
40388
+ __exportStar(__webpack_require__(34268), exports);
40389
+ __exportStar(__webpack_require__(4593), exports);
40113
40390
  __exportStar(__webpack_require__(55936), exports);
40114
40391
  __exportStar(__webpack_require__(58466), exports);
40115
40392
  __exportStar(__webpack_require__(14570), exports);
@@ -42055,6 +42332,77 @@ var ChatMessageOrigin;
42055
42332
 
42056
42333
  /***/ }),
42057
42334
 
42335
+ /***/ 13345:
42336
+ /***/ ((__unused_webpack_module, exports) => {
42337
+
42338
+ "use strict";
42339
+
42340
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
42341
+ //# sourceMappingURL=checkin_distance_reason.js.map
42342
+
42343
+ /***/ }),
42344
+
42345
+ /***/ 11908:
42346
+ /***/ ((__unused_webpack_module, exports) => {
42347
+
42348
+ "use strict";
42349
+
42350
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
42351
+ //# sourceMappingURL=checkin_distance_reasons_api_types.js.map
42352
+
42353
+ /***/ }),
42354
+
42355
+ /***/ 4593:
42356
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
42357
+
42358
+ "use strict";
42359
+
42360
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
42361
+ if (k2 === undefined) k2 = k;
42362
+ var desc = Object.getOwnPropertyDescriptor(m, k);
42363
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
42364
+ desc = { enumerable: true, get: function() { return m[k]; } };
42365
+ }
42366
+ Object.defineProperty(o, k2, desc);
42367
+ }) : (function(o, m, k, k2) {
42368
+ if (k2 === undefined) k2 = k;
42369
+ o[k2] = m[k];
42370
+ }));
42371
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
42372
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
42373
+ };
42374
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
42375
+ __exportStar(__webpack_require__(13345), exports);
42376
+ __exportStar(__webpack_require__(11908), exports);
42377
+ //# sourceMappingURL=index.js.map
42378
+
42379
+ /***/ }),
42380
+
42381
+ /***/ 34268:
42382
+ /***/ ((__unused_webpack_module, exports) => {
42383
+
42384
+ "use strict";
42385
+
42386
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
42387
+ exports.CheckinDistanceEnforcementWayPointType = exports.CheckinDistanceEnforcementMode = void 0;
42388
+ var CheckinDistanceEnforcementMode;
42389
+ (function (CheckinDistanceEnforcementMode) {
42390
+ CheckinDistanceEnforcementMode["Warn"] = "warn";
42391
+ CheckinDistanceEnforcementMode["WarnReason"] = "warn_reason";
42392
+ CheckinDistanceEnforcementMode["Block"] = "block";
42393
+ })(CheckinDistanceEnforcementMode || (exports.CheckinDistanceEnforcementMode = CheckinDistanceEnforcementMode = {}));
42394
+ var CheckinDistanceEnforcementWayPointType;
42395
+ (function (CheckinDistanceEnforcementWayPointType) {
42396
+ CheckinDistanceEnforcementWayPointType[CheckinDistanceEnforcementWayPointType["All"] = 1] = "All";
42397
+ CheckinDistanceEnforcementWayPointType[CheckinDistanceEnforcementWayPointType["First"] = 2] = "First";
42398
+ CheckinDistanceEnforcementWayPointType[CheckinDistanceEnforcementWayPointType["Last"] = 3] = "Last";
42399
+ CheckinDistanceEnforcementWayPointType[CheckinDistanceEnforcementWayPointType["Customer"] = 4] = "Customer";
42400
+ CheckinDistanceEnforcementWayPointType[CheckinDistanceEnforcementWayPointType["Warehouse"] = 5] = "Warehouse";
42401
+ })(CheckinDistanceEnforcementWayPointType || (exports.CheckinDistanceEnforcementWayPointType = CheckinDistanceEnforcementWayPointType = {}));
42402
+ //# sourceMappingURL=checkin_distance_enforcement.js.map
42403
+
42404
+ /***/ }),
42405
+
42058
42406
  /***/ 55936:
42059
42407
  /***/ ((__unused_webpack_module, exports) => {
42060
42408
 
@@ -44160,6 +44508,7 @@ var PresetViewSupportedView;
44160
44508
  PresetViewSupportedView[PresetViewSupportedView["DispatchRoutesMonitoring"] = 6] = "DispatchRoutesMonitoring";
44161
44509
  PresetViewSupportedView[PresetViewSupportedView["PlanningOrderExplorer"] = 7] = "PlanningOrderExplorer";
44162
44510
  PresetViewSupportedView[PresetViewSupportedView["PlanningRoutesMonitoring"] = 8] = "PlanningRoutesMonitoring";
44511
+ PresetViewSupportedView[PresetViewSupportedView["Vehicles"] = 9] = "Vehicles";
44163
44512
  })(PresetViewSupportedView || (exports.PresetViewSupportedView = PresetViewSupportedView = {}));
44164
44513
  var PresetViewScope;
44165
44514
  (function (PresetViewScope) {
@@ -46536,6 +46885,17 @@ var FactType;
46536
46885
  var RuleRequestType;
46537
46886
  (function (RuleRequestType) {
46538
46887
  RuleRequestType["Evaluate"] = "rule:evaluate";
46888
+ RuleRequestType["EvaluateByIds"] = "rule:evaluateByIds";
46889
+ RuleRequestType["EvaluateByKeys"] = "rule:evaluateByKeys";
46890
+ RuleRequestType["GetMany"] = "rule:getMany";
46891
+ RuleRequestType["UnifiedCrud"] = "rule:unifiedCrud";
46892
+ RuleRequestType["CreateMany"] = "rule:createMany";
46893
+ RuleRequestType["UpdateMany"] = "rule:updateMany";
46894
+ RuleRequestType["DeleteMany"] = "rule:deleteMany";
46895
+ RuleRequestType["GetAttributeUsage"] = "rule:getAttributeUsage";
46896
+ RuleRequestType["GetAttributesUsageMany"] = "rule:getAttributesUsageMany";
46897
+ RuleRequestType["CustomAttributeCheckRecordUsage"] = "custom-attributes:check-record-usage";
46898
+ RuleRequestType["SharedLocationTemplateCheckRecordUsage"] = "shared-location-template:check-record-usage";
46539
46899
  })(RuleRequestType || (exports.RuleRequestType = RuleRequestType = {}));
46540
46900
  var DisplayFact;
46541
46901
  (function (DisplayFact) {