@bringg/dashboard-sdk 8.13.2 → 8.13.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.
@@ -5,5 +5,10 @@ declare class CustomerAvailabilityHourApi {
5
5
  private customerAvailabilityHourEntity;
6
6
  constructor(session: Session);
7
7
  getTaskCustomerAvailabilityHours(params: TaskCustomerAvailabilityHoursGetRequest): Promise<CustomerAvailabilityHour[]>;
8
+ getBatchTaskCustomerAvailabilityHours(params: {
9
+ customers: {
10
+ [customerId: string]: number[];
11
+ };
12
+ }): Promise<CustomerAvailabilityHour[]>;
8
13
  }
9
14
  export default CustomerAvailabilityHourApi;
@@ -48,6 +48,13 @@ var CustomerAvailabilityHourApi = /** @class */ (function () {
48
48
  });
49
49
  });
50
50
  };
51
+ CustomerAvailabilityHourApi.prototype.getBatchTaskCustomerAvailabilityHours = function (params) {
52
+ return __awaiter(this, void 0, void 0, function () {
53
+ return __generator(this, function (_a) {
54
+ return [2 /*return*/, this.customerAvailabilityHourEntity.getBatchTaskCustomerAvailabilityHours(params)];
55
+ });
56
+ });
57
+ };
51
58
  return CustomerAvailabilityHourApi;
52
59
  }());
53
60
  exports.default = CustomerAvailabilityHourApi;
@@ -1 +1 @@
1
- {"version":3,"file":"CustomerAvailabilityHourApi.js","sourceRoot":"","sources":["../../src/CustomerAvailabilityHour/CustomerAvailabilityHourApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,0FAAqF;AAErF;IAGC,qCAAY,OAAgB;QAC3B,IAAI,CAAC,8BAA8B,GAAG,IAAI,wCAA8B,CAAC,OAAO,CAAC,CAAC;IACnF,CAAC;IAEY,sEAAgC,GAA7C,UACC,MAA+C;;;gBAE/C,sBAAO,IAAI,CAAC,8BAA8B,CAAC,gCAAgC,CAAC,MAAM,CAAC,EAAC;;;KACpF;IACF,kCAAC;AAAD,CAAC,AAZD,IAYC;AAED,kBAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"CustomerAvailabilityHourApi.js","sourceRoot":"","sources":["../../src/CustomerAvailabilityHour/CustomerAvailabilityHourApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,0FAAqF;AAErF;IAGC,qCAAY,OAAgB;QAC3B,IAAI,CAAC,8BAA8B,GAAG,IAAI,wCAA8B,CAAC,OAAO,CAAC,CAAC;IACnF,CAAC;IAEY,sEAAgC,GAA7C,UACC,MAA+C;;;gBAE/C,sBAAO,IAAI,CAAC,8BAA8B,CAAC,gCAAgC,CAAC,MAAM,CAAC,EAAC;;;KACpF;IAEY,2EAAqC,GAAlD,UAAmD,MAAyD;;;gBAC3G,sBAAO,IAAI,CAAC,8BAA8B,CAAC,qCAAqC,CAAC,MAAM,CAAC,EAAC;;;KACzF;IACF,kCAAC;AAAD,CAAC,AAhBD,IAgBC;AAED,kBAAe,2BAA2B,CAAC"}
@@ -4,6 +4,7 @@ import Session from '../../Services/Identity/Session';
4
4
  import { TaskCustomerAvailabilityHoursGetRequest } from '../CustomerAvailabilityHour.consts';
5
5
  export declare const Routes: {
6
6
  GET_AVAILABILITY_HOURS: string;
7
+ BATCH_GET_AVAILABILITY_HOURS: string;
7
8
  };
8
9
  export default class CustomerAvailabilityHourEntity extends StoreEntity<CustomerAvailabilityHour> {
9
10
  private taskCustomerAvailabilityHours;
@@ -11,4 +12,9 @@ export default class CustomerAvailabilityHourEntity extends StoreEntity<Customer
11
12
  getTaskCustomerAvailabilityHours(params: TaskCustomerAvailabilityHoursGetRequest): Promise<CustomerAvailabilityHour[]>;
12
13
  private _getTaskCustomerAvailabilityHours;
13
14
  private _getKey;
15
+ getBatchTaskCustomerAvailabilityHours(params: {
16
+ customers: {
17
+ [customerId: string]: number[];
18
+ };
19
+ }): Promise<CustomerAvailabilityHour[]>;
14
20
  }
@@ -54,7 +54,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
54
54
  exports.Routes = void 0;
55
55
  var StoreEntity_1 = require("../../Core/StoreEntity");
56
56
  exports.Routes = {
57
- GET_AVAILABILITY_HOURS: '/customer_availability_hours'
57
+ GET_AVAILABILITY_HOURS: '/customer_availability_hours',
58
+ BATCH_GET_AVAILABILITY_HOURS: '/customer_availability_hours/batch_get'
58
59
  };
59
60
  var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
60
61
  __extends(CustomerAvailabilityHourEntity, _super);
@@ -99,6 +100,17 @@ var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
99
100
  CustomerAvailabilityHourEntity.prototype._getKey = function (customerId, taskId) {
100
101
  return "customer_id:".concat(customerId, ":task_id:").concat(taskId);
101
102
  };
103
+ CustomerAvailabilityHourEntity.prototype.getBatchTaskCustomerAvailabilityHours = function (params) {
104
+ return __awaiter(this, void 0, void 0, function () {
105
+ return __generator(this, function (_a) {
106
+ return [2 /*return*/, this.service.routeGenerator
107
+ .post(exports.Routes.BATCH_GET_AVAILABILITY_HOURS)
108
+ .withPayload(params)
109
+ .withExtractor(function (response) { return response.availability_hours; })
110
+ .invoke()];
111
+ });
112
+ });
113
+ };
102
114
  return CustomerAvailabilityHourEntity;
103
115
  }(StoreEntity_1.default));
104
116
  exports.default = CustomerAvailabilityHourEntity;
@@ -1 +1 @@
1
- {"version":3,"file":"CustomerAvailabilityHourEntity.js","sourceRoot":"","sources":["../../../src/CustomerAvailabilityHour/Entity/CustomerAvailabilityHourEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAiD;AAOpC,QAAA,MAAM,GAAG;IACrB,sBAAsB,EAAE,8BAA8B;CACtD,CAAC;AAEF;IAA4D,kDAAqC;IAGhG,wCAAY,OAAgB;QAA5B,YACC,kBAAM,EAAE,OAAO,SAAA,EAAE,UAAU,EAAE,6BAA6B,EAAE,CAAC,SAC7D;QAJO,mCAA6B,GAA0B,IAAI,GAAG,EAAoB,CAAC;;IA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O,GAAf,UAAgB,UAAkB,EAAE,MAAc;QACjD,OAAO,sBAAe,UAAU,sBAAY,MAAM,CAAE,CAAC;IACtD,CAAC;IACF,qCAAC;AAAD,CAAC,AAxCD,CAA4D,qBAAW,GAwCtE"}
1
+ {"version":3,"file":"CustomerAvailabilityHourEntity.js","sourceRoot":"","sources":["../../../src/CustomerAvailabilityHour/Entity/CustomerAvailabilityHourEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAiD;AAOpC,QAAA,MAAM,GAAG;IACrB,sBAAsB,EAAE,8BAA8B;IACtD,4BAA4B,EAAE,wCAAwC;CACtE,CAAC;AAEF;IAA4D,kDAAqC;IAGhG,wCAAY,OAAgB;QAA5B,YACC,kBAAM,EAAE,OAAO,SAAA,EAAE,UAAU,EAAE,6BAA6B,EAAE,CAAC,SAC7D;QAJO,mCAA6B,GAA0B,IAAI,GAAG,EAAoB,CAAC;;IAI3F,CAAC;IAEY,yEAAgC,GAA7C,UACC,MAA+C;;;;;;;wBAEzC,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;wBAE7D,IAAI,IAAI,CAAC,6BAA6B,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;4BAChD,sBAAO,IAAI,CAAC,6BAA6B,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,UAAA,EAAE,IAAI,OAAA,KAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,EAAtB,CAAsB,CAAC,EAAC;yBACrF;wBAEgB,qBAAM,IAAI,CAAC,iCAAiC,CAAC,MAAM,CAAC,EAAA;;wBAA/D,QAAQ,GAAG,SAAoD;wBAErE,QAAQ,CAAC,OAAO,CAAC,UAAA,gBAAgB,IAAI,OAAA,KAAI,CAAC,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAvC,CAAuC,CAAC,CAAC;wBAExE,iBAAiB,GAAG,QAAQ,CAAC,GAAG,CAAC,UAAA,gBAAgB,IAAI,OAAA,gBAAgB,CAAC,EAAE,EAAnB,CAAmB,CAAC,CAAC;wBAEhF,IAAI,CAAC,6BAA6B,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC,CAAC;wBAE5G,sBAAO,QAAQ,EAAC;;;;KAChB;IAEa,0EAAiC,GAA/C,UACC,MAA+C;;;gBAE/C,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,GAAG,CAAC,cAAM,CAAC,sBAAsB,CAAC;yBAClC,eAAe,CAAC,MAAM,CAAC;yBACvB,aAAa,CAAC,UAAA,QAAQ,IAAI,OAAA,QAAQ,CAAC,kBAAkB,EAA3B,CAA2B,CAAC;yBACtD,MAAM,EAAwE,EAAC;;;KACjF;IAEO,gDAAO,GAAf,UAAgB,UAAkB,EAAE,MAAc;QACjD,OAAO,sBAAe,UAAU,sBAAY,MAAM,CAAE,CAAC;IACtD,CAAC;IAEY,8EAAqC,GAAlD,UAAmD,MAAyD;;;gBAC3G,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,IAAI,CAAC,cAAM,CAAC,4BAA4B,CAAC;yBACzC,WAAW,CAAC,MAAM,CAAC;yBACnB,aAAa,CAAC,UAAA,QAAQ,IAAI,OAAA,QAAQ,CAAC,kBAAkB,EAA3B,CAA2B,CAAC;yBACtD,MAAM,EAAwE,EAAC;;;KACjF;IACF,qCAAC;AAAD,CAAC,AAhDD,CAA4D,qBAAW,GAgDtE"}
@@ -53,7 +53,7 @@ var lodash_1 = require("lodash");
53
53
  var BringgException_1 = require("../Core/BringgException");
54
54
  var Logger_1 = require("../Core/Logger");
55
55
  var abort_1 = require("../utils/abort");
56
- var version = '8.13.2';
56
+ var version = '8.13.3';
57
57
  function logErrorResponse(response) {
58
58
  var data = response.data, status = response.status;
59
59
  try {
@@ -6565,6 +6565,13 @@ var CustomerAvailabilityHourApi = /** @class */ (function () {
6565
6565
  });
6566
6566
  });
6567
6567
  };
6568
+ CustomerAvailabilityHourApi.prototype.getBatchTaskCustomerAvailabilityHours = function (params) {
6569
+ return __awaiter(this, void 0, void 0, function () {
6570
+ return __generator(this, function (_a) {
6571
+ return [2 /*return*/, this.customerAvailabilityHourEntity.getBatchTaskCustomerAvailabilityHours(params)];
6572
+ });
6573
+ });
6574
+ };
6568
6575
  return CustomerAvailabilityHourApi;
6569
6576
  }());
6570
6577
  exports["default"] = CustomerAvailabilityHourApi;
@@ -6632,7 +6639,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
6632
6639
  exports.Routes = void 0;
6633
6640
  var StoreEntity_1 = __webpack_require__(95574);
6634
6641
  exports.Routes = {
6635
- GET_AVAILABILITY_HOURS: '/customer_availability_hours'
6642
+ GET_AVAILABILITY_HOURS: '/customer_availability_hours',
6643
+ BATCH_GET_AVAILABILITY_HOURS: '/customer_availability_hours/batch_get'
6636
6644
  };
6637
6645
  var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
6638
6646
  __extends(CustomerAvailabilityHourEntity, _super);
@@ -6677,6 +6685,17 @@ var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
6677
6685
  CustomerAvailabilityHourEntity.prototype._getKey = function (customerId, taskId) {
6678
6686
  return "customer_id:".concat(customerId, ":task_id:").concat(taskId);
6679
6687
  };
6688
+ CustomerAvailabilityHourEntity.prototype.getBatchTaskCustomerAvailabilityHours = function (params) {
6689
+ return __awaiter(this, void 0, void 0, function () {
6690
+ return __generator(this, function (_a) {
6691
+ return [2 /*return*/, this.service.routeGenerator
6692
+ .post(exports.Routes.BATCH_GET_AVAILABILITY_HOURS)
6693
+ .withPayload(params)
6694
+ .withExtractor(function (response) { return response.availability_hours; })
6695
+ .invoke()];
6696
+ });
6697
+ });
6698
+ };
6680
6699
  return CustomerAvailabilityHourEntity;
6681
6700
  }(StoreEntity_1.default));
6682
6701
  exports["default"] = CustomerAvailabilityHourEntity;
@@ -20169,7 +20188,7 @@ var lodash_1 = __webpack_require__(96486);
20169
20188
  var BringgException_1 = __webpack_require__(43605);
20170
20189
  var Logger_1 = __webpack_require__(55860);
20171
20190
  var abort_1 = __webpack_require__(34179);
20172
- var version = '8.13.2';
20191
+ var version = '8.13.3';
20173
20192
  function logErrorResponse(response) {
20174
20193
  var data = response.data, status = response.status;
20175
20194
  try {