@bringg/dashboard-sdk 1.3.2 → 1.3.3

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.
@@ -1,5 +1,5 @@
1
1
  import Session from '../Services/Identity/Session';
2
- import { GetDeliveryCatalogPayload, GetDeliveryCatalogResponse, GetFilterDetailsResponse, GetFavouritesPayload, SendNotificationPayload, SendNotificationResponse, FleetInterface, DeliveryProviderResponse, MerchantConnectionsListResponse, MerchantConnectionsCreateControllerRequest, MerchantConnectionsCreateControllerResponse, MerchantConnectionsUpdateControllerRequest, MerchantConnectionsUpdateControllerResponse, MerchantConnectionsVerifyRequest, MerchantConnectionsVerifyResponse, MerchantsConnectionsPauseControllerRequest, MerchantsConnectionsPauseControllerResponse } from './DeliveryCatalog.consts';
2
+ import { GetDeliveryCatalogPayload, GetDeliveryCatalogResponse, GetFilterDetailsResponse, GetFavouritesPayload, SendNotificationPayload, SendNotificationResponse, FleetInterface, DeliveryProviderResponse, MerchantConnectionsListResponse, MerchantConnectionsCreateControllerRequest, MerchantConnectionsCreateControllerResponse, MerchantConnectionsUpdateControllerRequest, MerchantConnectionsUpdateControllerResponse, MerchantConnectionsVerifyRequest, MerchantConnectionsVerifyResponse, MerchantsConnectionsPauseControllerRequest, MerchantsConnectionsPauseControllerResponse, FleetType } from './DeliveryCatalog.consts';
3
3
  export default class DeliveryCatalogApi {
4
4
  private deliveryCatalogEntity;
5
5
  constructor(session: Session);
@@ -13,6 +13,12 @@ export default class DeliveryCatalogApi {
13
13
  getFleetById(payload: {
14
14
  id: number;
15
15
  }): Promise<FleetInterface>;
16
+ getFleetValidationRules(queryString: {
17
+ fleetType: FleetType;
18
+ }): Promise<unknown>;
19
+ getFleetMappingRules(queryString: {
20
+ fleetType: FleetType;
21
+ }): Promise<unknown>;
16
22
  getDeliveryById(payload: {
17
23
  id: number;
18
24
  }): Promise<DeliveryProviderResponse>;
@@ -101,6 +101,26 @@ var DeliveryCatalogApi = /** @class */ (function () {
101
101
  });
102
102
  });
103
103
  };
104
+ DeliveryCatalogApi.prototype.getFleetValidationRules = function (queryString) {
105
+ return __awaiter(this, void 0, void 0, function () {
106
+ return __generator(this, function (_a) {
107
+ switch (_a.label) {
108
+ case 0: return [4 /*yield*/, this.deliveryCatalogEntity.getFleetValidationRules(queryString)];
109
+ case 1: return [2 /*return*/, _a.sent()];
110
+ }
111
+ });
112
+ });
113
+ };
114
+ DeliveryCatalogApi.prototype.getFleetMappingRules = function (queryString) {
115
+ return __awaiter(this, void 0, void 0, function () {
116
+ return __generator(this, function (_a) {
117
+ switch (_a.label) {
118
+ case 0: return [4 /*yield*/, this.deliveryCatalogEntity.getFleetMappingRules(queryString)];
119
+ case 1: return [2 /*return*/, _a.sent()];
120
+ }
121
+ });
122
+ });
123
+ };
104
124
  DeliveryCatalogApi.prototype.getDeliveryById = function (payload) {
105
125
  return __awaiter(this, void 0, void 0, function () {
106
126
  return __generator(this, function (_a) {
@@ -1 +1 @@
1
- {"version":3,"file":"DeliveryCatalogApi.js","sourceRoot":"","sources":["../../src/DeliveryCatalog/DeliveryCatalogApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,wEAAmE;AAqBnE;IAGC,4BAAY,OAAgB;QAC3B,IAAI,CAAC,qBAAqB,GAAG,IAAI,+BAAqB,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAEK,yCAAY,GAAlB,UAAmB,OAAkC;;;;4BAC7C,qBAAM,IAAI,CAAC,qBAAqB,CAAC,YAAY,CAAC,OAAO,CAAC,EAAA;4BAA7D,sBAAO,SAAsD,EAAC;;;;KAC9D;IAEK,uCAAU,GAAhB;;;;4BACQ,qBAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,EAAE,EAAA;4BAApD,sBAAO,SAA6C,EAAC;;;;KACrD;IAEK,8CAAiB,GAAvB,UAAwB,OAAgC;;;;4BAChD,qBAAM,IAAI,CAAC,qBAAqB,CAAC,iB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OAAO,CAAC,EAAA;4BAAzE,sBAAO,SAAkE,EAAC;;;;KAC1E;IAEK,gEAAmC,GAAzC,UACC,OAAyC;;;;4BAElC,qBAAM,IAAI,CAAC,qBAAqB,CAAC,mCAAmC,CAAC,OAAO,CAAC,EAAA;4BAApF,sBAAO,SAA6E,EAAC;;;;KACrF;IAEK,oDAAuB,GAA7B,UACC,OAAmD;;;;4BAE5C,qBAAM,IAAI,CAAC,qBAAqB,CAAC,uBAAuB,CAAC,OAAO,CAAC,EAAA;4BAAxE,sBAAO,SAAiE,EAAC;;;;KACzE;IACF,yBAAC;AAAD,CAAC,AAxED,IAwEC"}
@@ -1,6 +1,6 @@
1
1
  import Entity from '../../Core/Entity';
2
2
  import Session from './../../Services/Identity/Session';
3
- import { GetDeliveryCatalogPayload, GetDeliveryCatalogResponse, GetFilterDetailsResponse, GetFavouritesPayload, SendNotificationPayload, SendNotificationResponse, FleetInterface, DeliveryProviderResponse, MerchantConnectionsListResponse, MerchantConnectionsCreateControllerRequest, MerchantConnectionsCreateControllerResponse, MerchantConnectionsUpdateControllerRequest, MerchantConnectionsUpdateControllerResponse, MerchantConnectionsVerifyRequest, MerchantConnectionsVerifyResponse, MerchantsConnectionsPauseControllerRequest, MerchantsConnectionsPauseControllerResponse } from '../DeliveryCatalog.consts';
3
+ import { GetDeliveryCatalogPayload, GetDeliveryCatalogResponse, GetFilterDetailsResponse, GetFavouritesPayload, SendNotificationPayload, SendNotificationResponse, FleetInterface, DeliveryProviderResponse, MerchantConnectionsListResponse, MerchantConnectionsCreateControllerRequest, MerchantConnectionsCreateControllerResponse, MerchantConnectionsUpdateControllerRequest, MerchantConnectionsUpdateControllerResponse, MerchantConnectionsVerifyRequest, MerchantConnectionsVerifyResponse, MerchantsConnectionsPauseControllerRequest, MerchantsConnectionsPauseControllerResponse, FleetType } from '../DeliveryCatalog.consts';
4
4
  export default class DeliveryCatalogEntity extends Entity<DeliveryCatalogEntity> {
5
5
  constructor(session: Session);
6
6
  getProviders(payload: GetDeliveryCatalogPayload): Promise<GetDeliveryCatalogResponse[]>;
@@ -13,6 +13,12 @@ export default class DeliveryCatalogEntity extends Entity<DeliveryCatalogEntity>
13
13
  getFleetById(payload: {
14
14
  id: number;
15
15
  }): Promise<FleetInterface>;
16
+ getFleetValidationRules(queryString: {
17
+ fleetType: FleetType;
18
+ }): Promise<unknown>;
19
+ getFleetMappingRules(queryString: {
20
+ fleetType: FleetType;
21
+ }): Promise<unknown>;
16
22
  getDeliveryById(payload: {
17
23
  id: number;
18
24
  }): Promise<DeliveryProviderResponse>;
@@ -65,6 +65,8 @@ var ROUTES = {
65
65
  FAVOURITES: "".concat(baseRouteProviders, "/favorites"),
66
66
  NOTIFICATION: "".concat(baseRouteMerchant, "/notify"),
67
67
  FLEETS: "".concat(baseRouteFleets, "/fleet"),
68
+ FLEET_VALIDATION_RULES: "".concat(baseRouteFleets, "/fleet/validationRules"),
69
+ FLEET_MAPPING_RULES: "".concat(baseRouteFleets, "/fleet/mappingRules"),
68
70
  GET_DELIVERY_PROVIDER: "".concat(baseRouteProviders, "/delivery-provider"),
69
71
  MERCHANT_CONNECTIONS: {
70
72
  LIST: "".concat(baseMerchantConnections, "/list"),
@@ -143,6 +145,29 @@ var DeliveryCatalogEntity = /** @class */ (function (_super) {
143
145
  });
144
146
  });
145
147
  };
148
+ DeliveryCatalogEntity.prototype.getFleetValidationRules = function (queryString) {
149
+ return __awaiter(this, void 0, void 0, function () {
150
+ return __generator(this, function (_a) {
151
+ switch (_a.label) {
152
+ case 0: return [4 /*yield*/, this.service.routeGenerator
153
+ .get(ROUTES.FLEET_VALIDATION_RULES)
154
+ .withQueryString(queryString)
155
+ .invoke()];
156
+ case 1: return [2 /*return*/, _a.sent()];
157
+ }
158
+ });
159
+ });
160
+ };
161
+ DeliveryCatalogEntity.prototype.getFleetMappingRules = function (queryString) {
162
+ return __awaiter(this, void 0, void 0, function () {
163
+ return __generator(this, function (_a) {
164
+ switch (_a.label) {
165
+ case 0: return [4 /*yield*/, this.service.routeGenerator.get(ROUTES.FLEET_MAPPING_RULES).withQueryString(queryString).invoke()];
166
+ case 1: return [2 /*return*/, _a.sent()];
167
+ }
168
+ });
169
+ });
170
+ };
146
171
  DeliveryCatalogEntity.prototype.getDeliveryById = function (payload) {
147
172
  return __awaiter(this, void 0, void 0, function () {
148
173
  return __generator(this, function (_a) {
@@ -1 +1 @@
1
- {"version":3,"file":"DeliveryCatalogEntity.js","sourceRoot":"","sources":["../../../src/DeliveryCatalog/Entity/DeliveryCatalogEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAuC;AAsBvC,IAAM,aAAa,GAAG,gBAAgB,CAAC;AACvC,IAAM,6BAA6B,GAAG,4BAA4B,CAAC;AACnE,IAAM,kBAAkB,GAAG,UAAG,6BAA6B,2BAAwB,CAAC;AACpF,IAAM,iBAAiB,GAAG,UAAG,6BAA6B,oCAAiC,CAAC;AAC5F,IAAM,uBAAuB,GAAG,UAAG,6BAA6B,6BAA0B,CAAC;AAC3F,IAAM,eAAe,GAAG,UAAG,aAAa,eAAY,CAAC;AACrD,IAAM,MAAM,GAAG;IACd,SAAS,EAAE,UAAG,kBAAkB,CAAE;IAClC,OAAO,EAAE,UAAG,kBAAkB,aAAU;IACxC,eAAe,EAAE,UAAG,kBAAkB,qBAAkB;IACxD,UAAU,EAAE,UAAG,kBAAkB,eAAY;IAC7C,YAAY,EAAE,UAAG,iBAAiB,YAAS;IAC3C,MAAM,EAAE,UAAG,eAAe,WAAQ;IAClC,qBAAqB,EAAE,UAAG,kBAAkB,uBAAoB;IAChE,oBAAoB,EAAE;QACrB,IAAI,EAAE,UAAG,uBAAuB,UAAO;QACvC,MAAM,EAAE,UAAG,uBAAuB,YAAS;QAC3C,MAAM,EAAE,UAAG,uBAAuB,YAAS;QAC3C,MAAM,EAAE,UAAG,uBAAuB,YAAS;QAC3C,MAAM,EAAE,UAAG,uBAAuB,Y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H;IAEK,uDAAuB,GAA7B,UACC,OAAmD;;;;4BAE5C,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAA;4BAA9G,sBAAO,SAAuG,EAAC;;;;KAC/G;IACF,4BAAC;AAAD,CAAC,AA9ED,CAAmD,gBAAM,GA8ExD"}
@@ -52,7 +52,7 @@ var axios_1 = require("axios");
52
52
  var Logger_1 = require("../Core/Logger");
53
53
  var lodash_1 = require("lodash");
54
54
  var BringgException_1 = require("../Core/BringgException");
55
- var version = '1.3.2';
55
+ var version = '1.3.3';
56
56
  function logErrorResponse(response) {
57
57
  var data = response.data, status = response.status;
58
58
  try {
@@ -28287,7 +28287,7 @@ var axios_1 = __webpack_require__(147);
28287
28287
  var Logger_1 = __webpack_require__(43);
28288
28288
  var lodash_1 = __webpack_require__(10);
28289
28289
  var BringgException_1 = __webpack_require__(14);
28290
- var version = '1.3.2';
28290
+ var version = '1.3.3';
28291
28291
  function logErrorResponse(response) {
28292
28292
  var data = response.data, status = response.status;
28293
28293
  try {
@@ -58243,6 +58243,26 @@ var DeliveryCatalogApi = /** @class */ (function () {
58243
58243
  });
58244
58244
  });
58245
58245
  };
58246
+ DeliveryCatalogApi.prototype.getFleetValidationRules = function (queryString) {
58247
+ return __awaiter(this, void 0, void 0, function () {
58248
+ return __generator(this, function (_a) {
58249
+ switch (_a.label) {
58250
+ case 0: return [4 /*yield*/, this.deliveryCatalogEntity.getFleetValidationRules(queryString)];
58251
+ case 1: return [2 /*return*/, _a.sent()];
58252
+ }
58253
+ });
58254
+ });
58255
+ };
58256
+ DeliveryCatalogApi.prototype.getFleetMappingRules = function (queryString) {
58257
+ return __awaiter(this, void 0, void 0, function () {
58258
+ return __generator(this, function (_a) {
58259
+ switch (_a.label) {
58260
+ case 0: return [4 /*yield*/, this.deliveryCatalogEntity.getFleetMappingRules(queryString)];
58261
+ case 1: return [2 /*return*/, _a.sent()];
58262
+ }
58263
+ });
58264
+ });
58265
+ };
58246
58266
  DeliveryCatalogApi.prototype.getDeliveryById = function (payload) {
58247
58267
  return __awaiter(this, void 0, void 0, function () {
58248
58268
  return __generator(this, function (_a) {
@@ -58390,6 +58410,8 @@ var ROUTES = {
58390
58410
  FAVOURITES: "".concat(baseRouteProviders, "/favorites"),
58391
58411
  NOTIFICATION: "".concat(baseRouteMerchant, "/notify"),
58392
58412
  FLEETS: "".concat(baseRouteFleets, "/fleet"),
58413
+ FLEET_VALIDATION_RULES: "".concat(baseRouteFleets, "/fleet/validationRules"),
58414
+ FLEET_MAPPING_RULES: "".concat(baseRouteFleets, "/fleet/mappingRules"),
58393
58415
  GET_DELIVERY_PROVIDER: "".concat(baseRouteProviders, "/delivery-provider"),
58394
58416
  MERCHANT_CONNECTIONS: {
58395
58417
  LIST: "".concat(baseMerchantConnections, "/list"),
@@ -58468,6 +58490,29 @@ var DeliveryCatalogEntity = /** @class */ (function (_super) {
58468
58490
  });
58469
58491
  });
58470
58492
  };
58493
+ DeliveryCatalogEntity.prototype.getFleetValidationRules = function (queryString) {
58494
+ return __awaiter(this, void 0, void 0, function () {
58495
+ return __generator(this, function (_a) {
58496
+ switch (_a.label) {
58497
+ case 0: return [4 /*yield*/, this.service.routeGenerator
58498
+ .get(ROUTES.FLEET_VALIDATION_RULES)
58499
+ .withQueryString(queryString)
58500
+ .invoke()];
58501
+ case 1: return [2 /*return*/, _a.sent()];
58502
+ }
58503
+ });
58504
+ });
58505
+ };
58506
+ DeliveryCatalogEntity.prototype.getFleetMappingRules = function (queryString) {
58507
+ return __awaiter(this, void 0, void 0, function () {
58508
+ return __generator(this, function (_a) {
58509
+ switch (_a.label) {
58510
+ case 0: return [4 /*yield*/, this.service.routeGenerator.get(ROUTES.FLEET_MAPPING_RULES).withQueryString(queryString).invoke()];
58511
+ case 1: return [2 /*return*/, _a.sent()];
58512
+ }
58513
+ });
58514
+ });
58515
+ };
58471
58516
  DeliveryCatalogEntity.prototype.getDeliveryById = function (payload) {
58472
58517
  return __awaiter(this, void 0, void 0, function () {
58473
58518
  return __generator(this, function (_a) {