@bringg/dashboard-sdk 8.13.3-pre → 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.
- package/dist/CustomerAvailabilityHour/CustomerAvailabilityHourApi.d.ts +3 -1
- package/dist/CustomerAvailabilityHour/CustomerAvailabilityHourApi.js +0 -3
- package/dist/CustomerAvailabilityHour/CustomerAvailabilityHourApi.js.map +1 -1
- package/dist/CustomerAvailabilityHour/Entity/CustomerAvailabilityHourEntity.d.ts +5 -4
- package/dist/CustomerAvailabilityHour/Entity/CustomerAvailabilityHourEntity.js +4 -17
- package/dist/CustomerAvailabilityHour/Entity/CustomerAvailabilityHourEntity.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +5 -21
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +3 -3
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,9 @@ declare class CustomerAvailabilityHourApi {
|
|
|
6
6
|
constructor(session: Session);
|
|
7
7
|
getTaskCustomerAvailabilityHours(params: TaskCustomerAvailabilityHoursGetRequest): Promise<CustomerAvailabilityHour[]>;
|
|
8
8
|
getBatchTaskCustomerAvailabilityHours(params: {
|
|
9
|
-
|
|
9
|
+
customers: {
|
|
10
|
+
[customerId: string]: number[];
|
|
11
|
+
};
|
|
10
12
|
}): Promise<CustomerAvailabilityHour[]>;
|
|
11
13
|
}
|
|
12
14
|
export default CustomerAvailabilityHourApi;
|
|
@@ -50,10 +50,7 @@ var CustomerAvailabilityHourApi = /** @class */ (function () {
|
|
|
50
50
|
};
|
|
51
51
|
CustomerAvailabilityHourApi.prototype.getBatchTaskCustomerAvailabilityHours = function (params) {
|
|
52
52
|
return __awaiter(this, void 0, void 0, function () {
|
|
53
|
-
var a;
|
|
54
53
|
return __generator(this, function (_a) {
|
|
55
|
-
a = this.customerAvailabilityHourEntity.getBatchTaskCustomerAvailabilityHours(params);
|
|
56
|
-
console.log('a', a);
|
|
57
54
|
return [2 /*return*/, this.customerAvailabilityHourEntity.getBatchTaskCustomerAvailabilityHours(params)];
|
|
58
55
|
});
|
|
59
56
|
});
|
|
@@ -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;IAEY,2EAAqC,GAAlD,UAAmD,
|
|
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"}
|
|
@@ -10,10 +10,11 @@ export default class CustomerAvailabilityHourEntity extends StoreEntity<Customer
|
|
|
10
10
|
private taskCustomerAvailabilityHours;
|
|
11
11
|
constructor(session: Session);
|
|
12
12
|
getTaskCustomerAvailabilityHours(params: TaskCustomerAvailabilityHoursGetRequest): Promise<CustomerAvailabilityHour[]>;
|
|
13
|
-
getBatchTaskCustomerAvailabilityHours(params: {
|
|
14
|
-
[customerId: string]: number[];
|
|
15
|
-
}): Promise<CustomerAvailabilityHour[]>;
|
|
16
13
|
private _getTaskCustomerAvailabilityHours;
|
|
17
14
|
private _getKey;
|
|
18
|
-
|
|
15
|
+
getBatchTaskCustomerAvailabilityHours(params: {
|
|
16
|
+
customers: {
|
|
17
|
+
[customerId: string]: number[];
|
|
18
|
+
};
|
|
19
|
+
}): Promise<CustomerAvailabilityHour[]>;
|
|
19
20
|
}
|
|
@@ -55,7 +55,7 @@ exports.Routes = void 0;
|
|
|
55
55
|
var StoreEntity_1 = require("../../Core/StoreEntity");
|
|
56
56
|
exports.Routes = {
|
|
57
57
|
GET_AVAILABILITY_HOURS: '/customer_availability_hours',
|
|
58
|
-
BATCH_GET_AVAILABILITY_HOURS: '/
|
|
58
|
+
BATCH_GET_AVAILABILITY_HOURS: '/customer_availability_hours/batch_get'
|
|
59
59
|
};
|
|
60
60
|
var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
61
61
|
__extends(CustomerAvailabilityHourEntity, _super);
|
|
@@ -86,19 +86,6 @@ var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
|
-
CustomerAvailabilityHourEntity.prototype.getBatchTaskCustomerAvailabilityHours = function (params) {
|
|
90
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
91
|
-
var response;
|
|
92
|
-
return __generator(this, function (_a) {
|
|
93
|
-
switch (_a.label) {
|
|
94
|
-
case 0: return [4 /*yield*/, this._getBatchTaskCustomerAvailabilityHours(params)];
|
|
95
|
-
case 1:
|
|
96
|
-
response = _a.sent();
|
|
97
|
-
return [2 /*return*/, response];
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
89
|
CustomerAvailabilityHourEntity.prototype._getTaskCustomerAvailabilityHours = function (params) {
|
|
103
90
|
return __awaiter(this, void 0, void 0, function () {
|
|
104
91
|
return __generator(this, function (_a) {
|
|
@@ -113,12 +100,12 @@ var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
|
113
100
|
CustomerAvailabilityHourEntity.prototype._getKey = function (customerId, taskId) {
|
|
114
101
|
return "customer_id:".concat(customerId, ":task_id:").concat(taskId);
|
|
115
102
|
};
|
|
116
|
-
CustomerAvailabilityHourEntity.prototype.
|
|
103
|
+
CustomerAvailabilityHourEntity.prototype.getBatchTaskCustomerAvailabilityHours = function (params) {
|
|
117
104
|
return __awaiter(this, void 0, void 0, function () {
|
|
118
105
|
return __generator(this, function (_a) {
|
|
119
106
|
return [2 /*return*/, this.service.routeGenerator
|
|
120
|
-
.
|
|
121
|
-
.
|
|
107
|
+
.post(exports.Routes.BATCH_GET_AVAILABILITY_HOURS)
|
|
108
|
+
.withPayload(params)
|
|
122
109
|
.withExtractor(function (response) { return response.availability_hours; })
|
|
123
110
|
.invoke()];
|
|
124
111
|
});
|
|
@@ -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;IACtD,4BAA4B,EAAE,
|
|
1
|
+
{"version":3,"file":"CustomerAvailabilityHourEntity.js","sourceRoot":"","sources":["../../../src/CustomerAvailabilityH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C,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.3
|
|
56
|
+
var version = '8.13.3';
|
|
57
57
|
function logErrorResponse(response) {
|
|
58
58
|
var data = response.data, status = response.status;
|
|
59
59
|
try {
|
|
@@ -6567,10 +6567,7 @@ var CustomerAvailabilityHourApi = /** @class */ (function () {
|
|
|
6567
6567
|
};
|
|
6568
6568
|
CustomerAvailabilityHourApi.prototype.getBatchTaskCustomerAvailabilityHours = function (params) {
|
|
6569
6569
|
return __awaiter(this, void 0, void 0, function () {
|
|
6570
|
-
var a;
|
|
6571
6570
|
return __generator(this, function (_a) {
|
|
6572
|
-
a = this.customerAvailabilityHourEntity.getBatchTaskCustomerAvailabilityHours(params);
|
|
6573
|
-
console.log('a', a);
|
|
6574
6571
|
return [2 /*return*/, this.customerAvailabilityHourEntity.getBatchTaskCustomerAvailabilityHours(params)];
|
|
6575
6572
|
});
|
|
6576
6573
|
});
|
|
@@ -6643,7 +6640,7 @@ exports.Routes = void 0;
|
|
|
6643
6640
|
var StoreEntity_1 = __webpack_require__(95574);
|
|
6644
6641
|
exports.Routes = {
|
|
6645
6642
|
GET_AVAILABILITY_HOURS: '/customer_availability_hours',
|
|
6646
|
-
BATCH_GET_AVAILABILITY_HOURS: '/
|
|
6643
|
+
BATCH_GET_AVAILABILITY_HOURS: '/customer_availability_hours/batch_get'
|
|
6647
6644
|
};
|
|
6648
6645
|
var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
6649
6646
|
__extends(CustomerAvailabilityHourEntity, _super);
|
|
@@ -6674,19 +6671,6 @@ var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
|
6674
6671
|
});
|
|
6675
6672
|
});
|
|
6676
6673
|
};
|
|
6677
|
-
CustomerAvailabilityHourEntity.prototype.getBatchTaskCustomerAvailabilityHours = function (params) {
|
|
6678
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
6679
|
-
var response;
|
|
6680
|
-
return __generator(this, function (_a) {
|
|
6681
|
-
switch (_a.label) {
|
|
6682
|
-
case 0: return [4 /*yield*/, this._getBatchTaskCustomerAvailabilityHours(params)];
|
|
6683
|
-
case 1:
|
|
6684
|
-
response = _a.sent();
|
|
6685
|
-
return [2 /*return*/, response];
|
|
6686
|
-
}
|
|
6687
|
-
});
|
|
6688
|
-
});
|
|
6689
|
-
};
|
|
6690
6674
|
CustomerAvailabilityHourEntity.prototype._getTaskCustomerAvailabilityHours = function (params) {
|
|
6691
6675
|
return __awaiter(this, void 0, void 0, function () {
|
|
6692
6676
|
return __generator(this, function (_a) {
|
|
@@ -6701,12 +6685,12 @@ var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
|
6701
6685
|
CustomerAvailabilityHourEntity.prototype._getKey = function (customerId, taskId) {
|
|
6702
6686
|
return "customer_id:".concat(customerId, ":task_id:").concat(taskId);
|
|
6703
6687
|
};
|
|
6704
|
-
CustomerAvailabilityHourEntity.prototype.
|
|
6688
|
+
CustomerAvailabilityHourEntity.prototype.getBatchTaskCustomerAvailabilityHours = function (params) {
|
|
6705
6689
|
return __awaiter(this, void 0, void 0, function () {
|
|
6706
6690
|
return __generator(this, function (_a) {
|
|
6707
6691
|
return [2 /*return*/, this.service.routeGenerator
|
|
6708
|
-
.
|
|
6709
|
-
.
|
|
6692
|
+
.post(exports.Routes.BATCH_GET_AVAILABILITY_HOURS)
|
|
6693
|
+
.withPayload(params)
|
|
6710
6694
|
.withExtractor(function (response) { return response.availability_hours; })
|
|
6711
6695
|
.invoke()];
|
|
6712
6696
|
});
|
|
@@ -20204,7 +20188,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
20204
20188
|
var BringgException_1 = __webpack_require__(43605);
|
|
20205
20189
|
var Logger_1 = __webpack_require__(55860);
|
|
20206
20190
|
var abort_1 = __webpack_require__(34179);
|
|
20207
|
-
var version = '8.13.3
|
|
20191
|
+
var version = '8.13.3';
|
|
20208
20192
|
function logErrorResponse(response) {
|
|
20209
20193
|
var data = response.data, status = response.status;
|
|
20210
20194
|
try {
|