@bringg/dashboard-sdk 8.13.1 → 8.13.3-pre
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 -0
- package/dist/CustomerAvailabilityHour/CustomerAvailabilityHourApi.js +10 -0
- package/dist/CustomerAvailabilityHour/CustomerAvailabilityHourApi.js.map +1 -1
- package/dist/CustomerAvailabilityHour/Entity/CustomerAvailabilityHourEntity.d.ts +5 -0
- package/dist/CustomerAvailabilityHour/Entity/CustomerAvailabilityHourEntity.js +26 -1
- package/dist/CustomerAvailabilityHour/Entity/CustomerAvailabilityHourEntity.js.map +1 -1
- package/dist/PlannedDeliveryWindows/planned-delivery-windows.consts.d.ts +2 -0
- package/dist/PlannedDeliveryWindows/planned-delivery-windows.consts.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +37 -2
- 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
|
@@ -5,5 +5,8 @@ declare class CustomerAvailabilityHourApi {
|
|
|
5
5
|
private customerAvailabilityHourEntity;
|
|
6
6
|
constructor(session: Session);
|
|
7
7
|
getTaskCustomerAvailabilityHours(params: TaskCustomerAvailabilityHoursGetRequest): Promise<CustomerAvailabilityHour[]>;
|
|
8
|
+
getBatchTaskCustomerAvailabilityHours(params: {
|
|
9
|
+
[customerId: string]: number[];
|
|
10
|
+
}): Promise<CustomerAvailabilityHour[]>;
|
|
8
11
|
}
|
|
9
12
|
export default CustomerAvailabilityHourApi;
|
|
@@ -48,6 +48,16 @@ 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
|
+
var a;
|
|
54
|
+
return __generator(this, function (_a) {
|
|
55
|
+
a = this.customerAvailabilityHourEntity.getBatchTaskCustomerAvailabilityHours(params);
|
|
56
|
+
console.log('a', a);
|
|
57
|
+
return [2 /*return*/, this.customerAvailabilityHourEntity.getBatchTaskCustomerAvailabilityHours(params)];
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
};
|
|
51
61
|
return CustomerAvailabilityHourApi;
|
|
52
62
|
}());
|
|
53
63
|
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,
|
|
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,MAA0C;;;;gBACtF,CAAC,GAAG,IAAI,CAAC,8BAA8B,CAAC,qCAAqC,CAAC,MAAM,CAAC,CAAC;gBAE5F,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;gBAEpB,sBAAO,IAAI,CAAC,8BAA8B,CAAC,qCAAqC,CAAC,MAAM,CAAC,EAAC;;;KACzF;IACF,kCAAC;AAAD,CAAC,AApBD,IAoBC;AAED,kBAAe,2BAA2B,CAAC"}
|
|
@@ -4,11 +4,16 @@ 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;
|
|
10
11
|
constructor(session: Session);
|
|
11
12
|
getTaskCustomerAvailabilityHours(params: TaskCustomerAvailabilityHoursGetRequest): Promise<CustomerAvailabilityHour[]>;
|
|
13
|
+
getBatchTaskCustomerAvailabilityHours(params: {
|
|
14
|
+
[customerId: string]: number[];
|
|
15
|
+
}): Promise<CustomerAvailabilityHour[]>;
|
|
12
16
|
private _getTaskCustomerAvailabilityHours;
|
|
13
17
|
private _getKey;
|
|
18
|
+
private _getBatchTaskCustomerAvailabilityHours;
|
|
14
19
|
}
|
|
@@ -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: '/batch_customer_availability_hours/batch_get'
|
|
58
59
|
};
|
|
59
60
|
var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
60
61
|
__extends(CustomerAvailabilityHourEntity, _super);
|
|
@@ -85,6 +86,19 @@ var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
|
85
86
|
});
|
|
86
87
|
});
|
|
87
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
|
+
};
|
|
88
102
|
CustomerAvailabilityHourEntity.prototype._getTaskCustomerAvailabilityHours = function (params) {
|
|
89
103
|
return __awaiter(this, void 0, void 0, function () {
|
|
90
104
|
return __generator(this, function (_a) {
|
|
@@ -99,6 +113,17 @@ var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
|
99
113
|
CustomerAvailabilityHourEntity.prototype._getKey = function (customerId, taskId) {
|
|
100
114
|
return "customer_id:".concat(customerId, ":task_id:").concat(taskId);
|
|
101
115
|
};
|
|
116
|
+
CustomerAvailabilityHourEntity.prototype._getBatchTaskCustomerAvailabilityHours = function (params) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
+
return __generator(this, function (_a) {
|
|
119
|
+
return [2 /*return*/, this.service.routeGenerator
|
|
120
|
+
.get(exports.Routes.BATCH_GET_AVAILABILITY_HOURS)
|
|
121
|
+
.withQueryString(params)
|
|
122
|
+
.withExtractor(function (response) { return response.availability_hours; })
|
|
123
|
+
.invoke()];
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
};
|
|
102
127
|
return CustomerAvailabilityHourEntity;
|
|
103
128
|
}(StoreEntity_1.default));
|
|
104
129
|
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;
|
|
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,8CAA8C;CAC5E,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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EAAsC,GAApD,UAAqD,MAA0C;;;gBAC9F,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,GAAG,CAAC,cAAM,CAAC,4BAA4B,CAAC;yBACxC,eAAe,CAAC,MAAM,CAAC;yBACvB,aAAa,CAAC,UAAA,QAAQ,IAAI,OAAA,QAAQ,CAAC,kBAAkB,EAA3B,CAA2B,CAAC;yBACtD,MAAM,EAAwE,EAAC;;;KACjF;IACF,qCAAC;AAAD,CAAC,AAtDD,CAA4D,qBAAW,GAsDtE"}
|
|
@@ -12,6 +12,8 @@ export type PlannedDeliveryWindow = {
|
|
|
12
12
|
service_plan_ids?: number[];
|
|
13
13
|
effective_start_date?: string | null;
|
|
14
14
|
effective_end_date?: string | null;
|
|
15
|
+
series_effective_start_date?: string | null;
|
|
16
|
+
series_effective_end_date?: string | null;
|
|
15
17
|
single_day?: boolean;
|
|
16
18
|
};
|
|
17
19
|
export type PlannedDeliveryWindowsResponse = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planned-delivery-windows.consts.js","sourceRoot":"","sources":["../../src/PlannedDeliveryWindows/planned-delivery-windows.consts.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"planned-delivery-windows.consts.js","sourceRoot":"","sources":["../../src/PlannedDeliveryWindows/planned-delivery-windows.consts.ts"],"names":[],"mappings":";;;AA6BA,IAAY,kCAEX;AAFD,WAAY,kCAAkC;IAC7C,sDAAgB,CAAA;AACjB,CAAC,EAFW,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAE7C;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,qCAAmB,CAAA;IACnB,iEAA+C,CAAA;IAC/C,6BAAW,CAAA;AACZ,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
|
|
@@ -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.
|
|
56
|
+
var version = '8.13.3-pre';
|
|
57
57
|
function logErrorResponse(response) {
|
|
58
58
|
var data = response.data, status = response.status;
|
|
59
59
|
try {
|
|
@@ -6565,6 +6565,16 @@ 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
|
+
var a;
|
|
6571
|
+
return __generator(this, function (_a) {
|
|
6572
|
+
a = this.customerAvailabilityHourEntity.getBatchTaskCustomerAvailabilityHours(params);
|
|
6573
|
+
console.log('a', a);
|
|
6574
|
+
return [2 /*return*/, this.customerAvailabilityHourEntity.getBatchTaskCustomerAvailabilityHours(params)];
|
|
6575
|
+
});
|
|
6576
|
+
});
|
|
6577
|
+
};
|
|
6568
6578
|
return CustomerAvailabilityHourApi;
|
|
6569
6579
|
}());
|
|
6570
6580
|
exports["default"] = CustomerAvailabilityHourApi;
|
|
@@ -6632,7 +6642,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
6632
6642
|
exports.Routes = void 0;
|
|
6633
6643
|
var StoreEntity_1 = __webpack_require__(95574);
|
|
6634
6644
|
exports.Routes = {
|
|
6635
|
-
GET_AVAILABILITY_HOURS: '/customer_availability_hours'
|
|
6645
|
+
GET_AVAILABILITY_HOURS: '/customer_availability_hours',
|
|
6646
|
+
BATCH_GET_AVAILABILITY_HOURS: '/batch_customer_availability_hours/batch_get'
|
|
6636
6647
|
};
|
|
6637
6648
|
var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
6638
6649
|
__extends(CustomerAvailabilityHourEntity, _super);
|
|
@@ -6663,6 +6674,19 @@ var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
|
6663
6674
|
});
|
|
6664
6675
|
});
|
|
6665
6676
|
};
|
|
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
|
+
};
|
|
6666
6690
|
CustomerAvailabilityHourEntity.prototype._getTaskCustomerAvailabilityHours = function (params) {
|
|
6667
6691
|
return __awaiter(this, void 0, void 0, function () {
|
|
6668
6692
|
return __generator(this, function (_a) {
|
|
@@ -6677,6 +6701,17 @@ var CustomerAvailabilityHourEntity = /** @class */ (function (_super) {
|
|
|
6677
6701
|
CustomerAvailabilityHourEntity.prototype._getKey = function (customerId, taskId) {
|
|
6678
6702
|
return "customer_id:".concat(customerId, ":task_id:").concat(taskId);
|
|
6679
6703
|
};
|
|
6704
|
+
CustomerAvailabilityHourEntity.prototype._getBatchTaskCustomerAvailabilityHours = function (params) {
|
|
6705
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6706
|
+
return __generator(this, function (_a) {
|
|
6707
|
+
return [2 /*return*/, this.service.routeGenerator
|
|
6708
|
+
.get(exports.Routes.BATCH_GET_AVAILABILITY_HOURS)
|
|
6709
|
+
.withQueryString(params)
|
|
6710
|
+
.withExtractor(function (response) { return response.availability_hours; })
|
|
6711
|
+
.invoke()];
|
|
6712
|
+
});
|
|
6713
|
+
});
|
|
6714
|
+
};
|
|
6680
6715
|
return CustomerAvailabilityHourEntity;
|
|
6681
6716
|
}(StoreEntity_1.default));
|
|
6682
6717
|
exports["default"] = CustomerAvailabilityHourEntity;
|
|
@@ -20169,7 +20204,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
20169
20204
|
var BringgException_1 = __webpack_require__(43605);
|
|
20170
20205
|
var Logger_1 = __webpack_require__(55860);
|
|
20171
20206
|
var abort_1 = __webpack_require__(34179);
|
|
20172
|
-
var version = '8.13.
|
|
20207
|
+
var version = '8.13.3-pre';
|
|
20173
20208
|
function logErrorResponse(response) {
|
|
20174
20209
|
var data = response.data, status = response.status;
|
|
20175
20210
|
try {
|