@bringg/dashboard-sdk 9.75.1-pre.0 → 9.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/dist/BringgDashboardSDK.d.ts +4 -0
  2. package/dist/BringgDashboardSDK.js +6 -0
  3. package/dist/BringgDashboardSDK.js.map +1 -1
  4. package/dist/CarrierCancellationReasonMappings/CarrierCancellationReasonMappingsApi.d.ts +10 -0
  5. package/dist/CarrierCancellationReasonMappings/CarrierCancellationReasonMappingsApi.js +72 -0
  6. package/dist/CarrierCancellationReasonMappings/CarrierCancellationReasonMappingsApi.js.map +1 -0
  7. package/dist/CarrierCancellationReasonMappings/Entity/CarrierCancellationReasonMappingsEntity.d.ts +9 -0
  8. package/dist/CarrierCancellationReasonMappings/Entity/CarrierCancellationReasonMappingsEntity.js +55 -0
  9. package/dist/CarrierCancellationReasonMappings/Entity/CarrierCancellationReasonMappingsEntity.js.map +1 -0
  10. package/dist/CarrierCancellationReasons/CarrierCancellationReasonsApi.d.ts +8 -0
  11. package/dist/CarrierCancellationReasons/CarrierCancellationReasonsApi.js +61 -0
  12. package/dist/CarrierCancellationReasons/CarrierCancellationReasonsApi.js.map +1 -0
  13. package/dist/CarrierCancellationReasons/Entity/CarrierCancellationReasonsEntity.d.ts +8 -0
  14. package/dist/CarrierCancellationReasons/Entity/CarrierCancellationReasonsEntity.js +45 -0
  15. package/dist/CarrierCancellationReasons/Entity/CarrierCancellationReasonsEntity.js.map +1 -0
  16. package/dist/DeliveryWindows/v2/delivery-windows.consts.d.ts +1 -3
  17. package/dist/bringg-dashboard-sdk-cjs2.js +279 -2
  18. package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
  19. package/dist/bringg-dashboard-sdk.js +59 -4
  20. package/dist/bringg-dashboard-sdk.min.js +1 -1
  21. package/dist/bringg-dashboard-sdk.min.js.map +1 -1
  22. package/package.json +2 -2
@@ -2687,6 +2687,8 @@ var ApplicationTeamConfigurationApi_1 = __importDefault(__webpack_require__(5930
2687
2687
  var AsyncOperationStatus_1 = __webpack_require__(37360);
2688
2688
  var BillingApi_1 = __importDefault(__webpack_require__(25475));
2689
2689
  var CapacityInsightsApi_1 = __importDefault(__webpack_require__(75494));
2690
+ var CarrierCancellationReasonMappingsApi_1 = __importDefault(__webpack_require__(98350));
2691
+ var CarrierCancellationReasonsApi_1 = __importDefault(__webpack_require__(73116));
2690
2692
  var Chat_1 = __importDefault(__webpack_require__(17629));
2691
2693
  var ChatConversationApi_1 = __importDefault(__webpack_require__(74617));
2692
2694
  var Company_1 = __importDefault(__webpack_require__(97275));
@@ -2826,6 +2828,8 @@ var BringgDashboardSDK = /** @class */ (function () {
2826
2828
  this.reasonToChangeInventory = null;
2827
2829
  this.reasonToReassignTasks = null;
2828
2830
  this.reasonToCancelTasks = null;
2831
+ this.carrierCancellationReasons = null;
2832
+ this.carrierCancellationReasonMappings = null;
2829
2833
  this.reportPreferences = null;
2830
2834
  this.reports = null;
2831
2835
  this.rollouts = null;
@@ -3136,6 +3140,8 @@ function init(session) {
3136
3140
  bringg.reasonToChangeInventory = new ReasonToChangeInventory_1.default(session);
3137
3141
  bringg.reasonToReassignTasks = new ReasonToReassignTasksApi_1.default(session);
3138
3142
  bringg.reasonToCancelTasks = new ReasonToCancelTasksApi_1.default(session);
3143
+ bringg.carrierCancellationReasons = new CarrierCancellationReasonsApi_1.default(session);
3144
+ bringg.carrierCancellationReasonMappings = new CarrierCancellationReasonMappingsApi_1.default(session);
3139
3145
  bringg.reportPreferences = new ReportPreference_1.default(session);
3140
3146
  bringg.reports = new reports_1.default(session);
3141
3147
  bringg.scans = new ScanApi_1.default(session);
@@ -3738,6 +3744,267 @@ exports["default"] = CapacityInsightsEntity;
3738
3744
 
3739
3745
  /***/ }),
3740
3746
 
3747
+ /***/ 98350:
3748
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3749
+
3750
+ "use strict";
3751
+
3752
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3753
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3754
+ return new (P || (P = Promise))(function (resolve, reject) {
3755
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3756
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3757
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3758
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
3759
+ });
3760
+ };
3761
+ var __generator = (this && this.__generator) || function (thisArg, body) {
3762
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3763
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3764
+ function verb(n) { return function (v) { return step([n, v]); }; }
3765
+ function step(op) {
3766
+ if (f) throw new TypeError("Generator is already executing.");
3767
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
3768
+ 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;
3769
+ if (y = 0, t) op = [op[0] & 2, t.value];
3770
+ switch (op[0]) {
3771
+ case 0: case 1: t = op; break;
3772
+ case 4: _.label++; return { value: op[1], done: false };
3773
+ case 5: _.label++; y = op[1]; op = [0]; continue;
3774
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
3775
+ default:
3776
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
3777
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
3778
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
3779
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
3780
+ if (t[2]) _.ops.pop();
3781
+ _.trys.pop(); continue;
3782
+ }
3783
+ op = body.call(thisArg, _);
3784
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
3785
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
3786
+ }
3787
+ };
3788
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3789
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3790
+ };
3791
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
3792
+ var CarrierCancellationReasonMappingsEntity_1 = __importDefault(__webpack_require__(77800));
3793
+ var CarrierCancellationReasonMappings = /** @class */ (function () {
3794
+ function CarrierCancellationReasonMappings(session) {
3795
+ this.carrierCancellationReasonMappingsEntity = new CarrierCancellationReasonMappingsEntity_1.default(session);
3796
+ }
3797
+ /** Returns all carrier-to-FDM reason mappings for the given fleet type. */
3798
+ CarrierCancellationReasonMappings.prototype.getAll = function (fleetType) {
3799
+ return __awaiter(this, void 0, void 0, function () {
3800
+ return __generator(this, function (_a) {
3801
+ switch (_a.label) {
3802
+ case 0: return [4 /*yield*/, this.carrierCancellationReasonMappingsEntity.getAll(fleetType)];
3803
+ case 1: return [2 /*return*/, _a.sent()];
3804
+ }
3805
+ });
3806
+ });
3807
+ };
3808
+ /** Bulk upserts carrier-to-FDM reason mappings for the given fleet type. Returns the full updated mapping set. */
3809
+ CarrierCancellationReasonMappings.prototype.batchUpdate = function (fleetType, mappings) {
3810
+ return __awaiter(this, void 0, void 0, function () {
3811
+ return __generator(this, function (_a) {
3812
+ switch (_a.label) {
3813
+ case 0: return [4 /*yield*/, this.carrierCancellationReasonMappingsEntity.batchUpdate(fleetType, mappings)];
3814
+ case 1: return [2 /*return*/, _a.sent()];
3815
+ }
3816
+ });
3817
+ });
3818
+ };
3819
+ return CarrierCancellationReasonMappings;
3820
+ }());
3821
+ exports["default"] = CarrierCancellationReasonMappings;
3822
+ //# sourceMappingURL=CarrierCancellationReasonMappingsApi.js.map
3823
+
3824
+ /***/ }),
3825
+
3826
+ /***/ 77800:
3827
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3828
+
3829
+ "use strict";
3830
+
3831
+ var __extends = (this && this.__extends) || (function () {
3832
+ var extendStatics = function (d, b) {
3833
+ extendStatics = Object.setPrototypeOf ||
3834
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3835
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3836
+ return extendStatics(d, b);
3837
+ };
3838
+ return function (d, b) {
3839
+ if (typeof b !== "function" && b !== null)
3840
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3841
+ extendStatics(d, b);
3842
+ function __() { this.constructor = d; }
3843
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3844
+ };
3845
+ })();
3846
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3847
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3848
+ };
3849
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
3850
+ var Entity_1 = __webpack_require__(7483);
3851
+ var StoreEntity_1 = __importDefault(__webpack_require__(95574));
3852
+ var extractor = function (response) {
3853
+ return response.carrier_cancellation_reason_mappings;
3854
+ };
3855
+ var BASE_ROUTE = 'carrier_cancellation_reason_mappings';
3856
+ var CarrierCancellationReasonMappingsEntity = /** @class */ (function (_super) {
3857
+ __extends(CarrierCancellationReasonMappingsEntity, _super);
3858
+ function CarrierCancellationReasonMappingsEntity(session) {
3859
+ return _super.call(this, {
3860
+ session: session,
3861
+ entityName: BASE_ROUTE,
3862
+ routes: [Entity_1.BaseRoutes.GetAll]
3863
+ }) || this;
3864
+ }
3865
+ CarrierCancellationReasonMappingsEntity.prototype.getAll = function (fleetType) {
3866
+ return this.service.routeGenerator
3867
+ .get("/".concat(BASE_ROUTE))
3868
+ .withExtractor(extractor)
3869
+ .withQueryString({ fleet_type: fleetType })
3870
+ .setException("Could not fetch carrier cancellation reason mappings for fleet type #".concat(fleetType))
3871
+ .invoke();
3872
+ };
3873
+ CarrierCancellationReasonMappingsEntity.prototype.batchUpdate = function (fleetType, mappings) {
3874
+ return this.service.routeGenerator
3875
+ .patch("/".concat(BASE_ROUTE, "/batch_update"))
3876
+ .withExtractor(extractor)
3877
+ .withPayload({ fleet_type: fleetType, mappings: mappings })
3878
+ .setException("Could not update carrier cancellation reason mappings for fleet type #".concat(fleetType))
3879
+ .invoke();
3880
+ };
3881
+ return CarrierCancellationReasonMappingsEntity;
3882
+ }(StoreEntity_1.default));
3883
+ exports["default"] = CarrierCancellationReasonMappingsEntity;
3884
+ //# sourceMappingURL=CarrierCancellationReasonMappingsEntity.js.map
3885
+
3886
+ /***/ }),
3887
+
3888
+ /***/ 73116:
3889
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3890
+
3891
+ "use strict";
3892
+
3893
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3894
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3895
+ return new (P || (P = Promise))(function (resolve, reject) {
3896
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3897
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3898
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3899
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
3900
+ });
3901
+ };
3902
+ var __generator = (this && this.__generator) || function (thisArg, body) {
3903
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3904
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3905
+ function verb(n) { return function (v) { return step([n, v]); }; }
3906
+ function step(op) {
3907
+ if (f) throw new TypeError("Generator is already executing.");
3908
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
3909
+ 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;
3910
+ if (y = 0, t) op = [op[0] & 2, t.value];
3911
+ switch (op[0]) {
3912
+ case 0: case 1: t = op; break;
3913
+ case 4: _.label++; return { value: op[1], done: false };
3914
+ case 5: _.label++; y = op[1]; op = [0]; continue;
3915
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
3916
+ default:
3917
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
3918
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
3919
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
3920
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
3921
+ if (t[2]) _.ops.pop();
3922
+ _.trys.pop(); continue;
3923
+ }
3924
+ op = body.call(thisArg, _);
3925
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
3926
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
3927
+ }
3928
+ };
3929
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3930
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3931
+ };
3932
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
3933
+ var CarrierCancellationReasonsEntity_1 = __importDefault(__webpack_require__(25526));
3934
+ var CarrierCancellationReasons = /** @class */ (function () {
3935
+ function CarrierCancellationReasons(session) {
3936
+ this.carrierCancellationReasonsEntity = new CarrierCancellationReasonsEntity_1.default(session);
3937
+ }
3938
+ /** Returns all carrier cancellation reasons for the given fleet type. */
3939
+ CarrierCancellationReasons.prototype.getAll = function (fleetType) {
3940
+ return __awaiter(this, void 0, void 0, function () {
3941
+ return __generator(this, function (_a) {
3942
+ switch (_a.label) {
3943
+ case 0: return [4 /*yield*/, this.carrierCancellationReasonsEntity.getAll(fleetType)];
3944
+ case 1: return [2 /*return*/, _a.sent()];
3945
+ }
3946
+ });
3947
+ });
3948
+ };
3949
+ return CarrierCancellationReasons;
3950
+ }());
3951
+ exports["default"] = CarrierCancellationReasons;
3952
+ //# sourceMappingURL=CarrierCancellationReasonsApi.js.map
3953
+
3954
+ /***/ }),
3955
+
3956
+ /***/ 25526:
3957
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3958
+
3959
+ "use strict";
3960
+
3961
+ var __extends = (this && this.__extends) || (function () {
3962
+ var extendStatics = function (d, b) {
3963
+ extendStatics = Object.setPrototypeOf ||
3964
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3965
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3966
+ return extendStatics(d, b);
3967
+ };
3968
+ return function (d, b) {
3969
+ if (typeof b !== "function" && b !== null)
3970
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3971
+ extendStatics(d, b);
3972
+ function __() { this.constructor = d; }
3973
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3974
+ };
3975
+ })();
3976
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3977
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3978
+ };
3979
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
3980
+ var Entity_1 = __webpack_require__(7483);
3981
+ var StoreEntity_1 = __importDefault(__webpack_require__(95574));
3982
+ var extractor = function (response) { return response.carrier_cancellation_reasons; };
3983
+ var BASE_ROUTE = 'carrier_cancellation_reasons';
3984
+ var CarrierCancellationReasonsEntity = /** @class */ (function (_super) {
3985
+ __extends(CarrierCancellationReasonsEntity, _super);
3986
+ function CarrierCancellationReasonsEntity(session) {
3987
+ return _super.call(this, {
3988
+ session: session,
3989
+ entityName: BASE_ROUTE,
3990
+ routes: [Entity_1.BaseRoutes.GetAll]
3991
+ }) || this;
3992
+ }
3993
+ CarrierCancellationReasonsEntity.prototype.getAll = function (fleetType) {
3994
+ return this.service.routeGenerator
3995
+ .get("/".concat(BASE_ROUTE))
3996
+ .withExtractor(extractor)
3997
+ .withQueryString({ fleet_type: fleetType })
3998
+ .setException("Could not fetch carrier cancellation reasons for fleet type #".concat(fleetType))
3999
+ .invoke();
4000
+ };
4001
+ return CarrierCancellationReasonsEntity;
4002
+ }(StoreEntity_1.default));
4003
+ exports["default"] = CarrierCancellationReasonsEntity;
4004
+ //# sourceMappingURL=CarrierCancellationReasonsEntity.js.map
4005
+
4006
+ /***/ }),
4007
+
3741
4008
  /***/ 17629:
3742
4009
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3743
4010
 
@@ -23469,7 +23736,7 @@ var lodash_1 = __webpack_require__(96486);
23469
23736
  var BringgException_1 = __webpack_require__(43605);
23470
23737
  var Logger_1 = __importDefault(__webpack_require__(55860));
23471
23738
  var abort_1 = __webpack_require__(34179);
23472
- var version = '9.75.1-pre.0';
23739
+ var version = '9.76.0';
23473
23740
  function logErrorResponse(response) {
23474
23741
  var data = response.data, status = response.status;
23475
23742
  try {
@@ -37057,6 +37324,7 @@ __exportStar(__webpack_require__(91758), exports);
37057
37324
  __exportStar(__webpack_require__(72285), exports);
37058
37325
  __exportStar(__webpack_require__(81882), exports);
37059
37326
  __exportStar(__webpack_require__(6533), exports);
37327
+ __exportStar(__webpack_require__(1555), exports);
37060
37328
  __exportStar(__webpack_require__(68734), exports);
37061
37329
  __exportStar(__webpack_require__(37443), exports);
37062
37330
  __exportStar(__webpack_require__(51837), exports);
@@ -37603,7 +37871,6 @@ var CubeApplication;
37603
37871
  CubeApplication["OwnFleetBiDashboardsPresto"] = "OwnFleetBiDashboardsPresto";
37604
37872
  CubeApplication["OwnFleetBigQueryDirect"] = "OwnFleetBigQueryDirect";
37605
37873
  CubeApplication["OwnFleetBigQueryViaTrino"] = "OwnFleetBigQueryViaTrino";
37606
- CubeApplication["OwnFleetBigQueryViaTrinoDirect"] = "OwnFleetBigQueryViaTrinoDirect";
37607
37874
  })(CubeApplication || (exports.CubeApplication = CubeApplication = {}));
37608
37875
  var OwnFleetDruidCube;
37609
37876
  (function (OwnFleetDruidCube) {
@@ -38728,6 +38995,16 @@ __exportStar(__webpack_require__(10870), exports);
38728
38995
 
38729
38996
  /***/ }),
38730
38997
 
38998
+ /***/ 1555:
38999
+ /***/ ((__unused_webpack_module, exports) => {
39000
+
39001
+ "use strict";
39002
+
39003
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
39004
+ //# sourceMappingURL=carrier_cancellation_reason.js.map
39005
+
39006
+ /***/ }),
39007
+
38731
39008
  /***/ 53888:
38732
39009
  /***/ ((__unused_webpack_module, exports) => {
38733
39010