@bringg/dashboard-sdk 4.0.11-pre.2 → 4.1.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.
- package/dist/BringgDashboardSDK.d.ts +2 -2
- package/dist/BringgDashboardSDK.js +3 -3
- package/dist/BringgDashboardSDK.js.map +1 -1
- package/dist/FloatingInventory/{v2/floating-inventories.consts.d.ts → Entity/FloatingInventory.consts.d.ts} +0 -3
- package/dist/FloatingInventory/Entity/FloatingInventory.consts.js +6 -0
- package/dist/FloatingInventory/Entity/FloatingInventory.consts.js.map +1 -0
- package/dist/FloatingInventory/Entity/FloatingInventoryEntity.js +2 -2
- package/dist/FloatingInventory/Entity/FloatingInventoryEntity.js.map +1 -1
- package/dist/MerchantConfiguration/MerchantConfiguration.consts.js +0 -1
- package/dist/MerchantConfiguration/MerchantConfiguration.consts.js.map +1 -1
- package/dist/OptimizationConfiguration/OptimizationConfiguration.d.ts +1 -0
- package/dist/OptimizationConfiguration/OptimizationConfiguration.js +3 -0
- package/dist/OptimizationConfiguration/OptimizationConfiguration.js.map +1 -1
- package/dist/OptimizationConfiguration/Service/OptimizationConfigurations.service.d.ts +1 -0
- package/dist/OptimizationConfiguration/Service/OptimizationConfigurations.service.js +8 -0
- package/dist/OptimizationConfiguration/Service/OptimizationConfigurations.service.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/TeamServiceArea/Entity/TeamServiceAreaEntity.d.ts +7 -0
- package/dist/TeamServiceArea/Entity/TeamServiceAreaEntity.js +34 -0
- package/dist/TeamServiceArea/Entity/TeamServiceAreaEntity.js.map +1 -0
- package/dist/TeamServiceArea/TeamServiceArea.consts.d.ts +18 -0
- package/dist/TeamServiceArea/TeamServiceArea.consts.js +3 -0
- package/dist/TeamServiceArea/TeamServiceArea.consts.js.map +1 -0
- package/dist/TeamServiceArea/TeamServiceAreaApi.d.ts +8 -0
- package/dist/TeamServiceArea/TeamServiceAreaApi.js +17 -0
- package/dist/TeamServiceArea/TeamServiceAreaApi.js.map +1 -0
- package/dist/bringg-dashboard-sdk-cjs2.js +1721 -1801
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +46 -46
- package/dist/bringg-dashboard-sdk.min.js +6 -6
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +2 -2
- package/dist/FloatingInventory/v2/floating-inventories-api.d.ts +0 -9
- package/dist/FloatingInventory/v2/floating-inventories-api.js +0 -67
- package/dist/FloatingInventory/v2/floating-inventories-api.js.map +0 -1
- package/dist/FloatingInventory/v2/floating-inventories-service.d.ts +0 -9
- package/dist/FloatingInventory/v2/floating-inventories-service.js +0 -75
- package/dist/FloatingInventory/v2/floating-inventories-service.js.map +0 -1
- package/dist/FloatingInventory/v2/floating-inventories.consts.js +0 -10
- package/dist/FloatingInventory/v2/floating-inventories.consts.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bringg/dashboard-sdk",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Bringg dashboard SDK",
|
|
5
5
|
"main": "dist/bringg-dashboard-sdk.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@bringg/prettier-config": "^1.1.0",
|
|
59
|
-
"@bringg/types": "^4.
|
|
59
|
+
"@bringg/types": "^4.38.0",
|
|
60
60
|
"@bringg/user-analytics": "3.3.0",
|
|
61
61
|
"@faker-js/faker": "^6.0.0-beta.0",
|
|
62
62
|
"@types/jest": "^24.0.13",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FloatingInventoriesResponse } from '@bringg/types';
|
|
2
|
-
import Session from '../../Services/Identity/Session';
|
|
3
|
-
import { CommonOptions } from '../../Core/RouteGenerator';
|
|
4
|
-
export default class FloatingInventoriesApi {
|
|
5
|
-
private readonly floatingInventoriesService;
|
|
6
|
-
constructor(session: Session);
|
|
7
|
-
loadAll(queryString?: any, commonOptions?: CommonOptions): Promise<FloatingInventoriesResponse>;
|
|
8
|
-
getUsersWithAvailableFloatingInventory(taskId: number): Promise<number[]>;
|
|
9
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
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;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var floating_inventories_service_1 = require("./floating-inventories-service");
|
|
40
|
-
var FloatingInventoriesApi = /** @class */ (function () {
|
|
41
|
-
function FloatingInventoriesApi(session) {
|
|
42
|
-
this.floatingInventoriesService = new floating_inventories_service_1.default(session);
|
|
43
|
-
}
|
|
44
|
-
FloatingInventoriesApi.prototype.loadAll = function (queryString, commonOptions) {
|
|
45
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
-
return __generator(this, function (_a) {
|
|
47
|
-
switch (_a.label) {
|
|
48
|
-
case 0: return [4 /*yield*/, this.floatingInventoriesService.loadAll(queryString, commonOptions)];
|
|
49
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
FloatingInventoriesApi.prototype.getUsersWithAvailableFloatingInventory = function (taskId) {
|
|
55
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
56
|
-
return __generator(this, function (_a) {
|
|
57
|
-
switch (_a.label) {
|
|
58
|
-
case 0: return [4 /*yield*/, this.floatingInventoriesService.getUsersWithAvailableFloatingInventory(taskId)];
|
|
59
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
return FloatingInventoriesApi;
|
|
65
|
-
}());
|
|
66
|
-
exports.default = FloatingInventoriesApi;
|
|
67
|
-
//# sourceMappingURL=floating-inventories-api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"floating-inventories-api.js","sourceRoot":"","sources":["../../../src/FloatingInventory/v2/floating-inventories-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,+EAAwE;AAGxE;IAGC,gCAAY,OAAgB;QAC3B,IAAI,CAAC,0BAA0B,GAAG,IAAI,sCAA0B,CAAC,OAAO,CAAC,CAAC;IAC3E,CAAC;IAEY,wCAAO,GAApB,UAAqB,WAAY,EAAE,aAA6B;;;;4BACxD,qBAAM,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,WAAW,EAAE,aAAa,CAAC,EAAA;4BAAhF,sBAAO,SAAyE,EAAC;;;;KACjF;IAEY,uEAAsC,GAAnD,UAAoD,MAAc;;;;4BAC1D,qBAAM,IAAI,CAAC,0BAA0B,CAAC,sCAAsC,CAAC,MAAM,CAAC,EAAA;4BAA3F,sBAAO,SAAoF,EAAC;;;;KAC5F;IACF,6BAAC;AAAD,CAAC,AAdD,IAcC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FloatingInventoriesResponse } from '@bringg/types';
|
|
2
|
-
import { CommonOptions } from '../../Core/RouteGenerator';
|
|
3
|
-
import Session from '../../Services/Identity/Session';
|
|
4
|
-
export default class FloatingInventoriesService {
|
|
5
|
-
private readonly service;
|
|
6
|
-
constructor(session: Session);
|
|
7
|
-
loadAll(queryString?: any, commonOptions?: CommonOptions): Promise<FloatingInventoriesResponse>;
|
|
8
|
-
getUsersWithAvailableFloatingInventory(taskId: number): Promise<number[]>;
|
|
9
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
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;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var CrudService_1 = require("../../Core/CrudService");
|
|
40
|
-
var floating_inventories_consts_1 = require("./floating-inventories.consts");
|
|
41
|
-
var BASE_ROUTE = 'floating_inventories';
|
|
42
|
-
var USERS_WITH_AVAILABLE_FLOATING_INVENTORY = "/".concat(BASE_ROUTE, "/users_with_available_floating_inventory");
|
|
43
|
-
var FloatingInventoriesService = /** @class */ (function () {
|
|
44
|
-
function FloatingInventoriesService(session) {
|
|
45
|
-
this.service = new CrudService_1.default(session, BASE_ROUTE);
|
|
46
|
-
}
|
|
47
|
-
FloatingInventoriesService.prototype.loadAll = function (queryString, commonOptions) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
49
|
-
return __generator(this, function (_a) {
|
|
50
|
-
switch (_a.label) {
|
|
51
|
-
case 0: return [4 /*yield*/, this.service.getAll(queryString, commonOptions)];
|
|
52
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
FloatingInventoriesService.prototype.getUsersWithAvailableFloatingInventory = function (taskId) {
|
|
58
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
59
|
-
return __generator(this, function (_a) {
|
|
60
|
-
switch (_a.label) {
|
|
61
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
62
|
-
.get(USERS_WITH_AVAILABLE_FLOATING_INVENTORY)
|
|
63
|
-
.withExtractor(floating_inventories_consts_1.userIdsExtractor)
|
|
64
|
-
.setException("failed to get available users for dispatch for task [".concat(taskId, "]"))
|
|
65
|
-
.withQueryString({ task_id: taskId })
|
|
66
|
-
.invoke()];
|
|
67
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
return FloatingInventoriesService;
|
|
73
|
-
}());
|
|
74
|
-
exports.default = FloatingInventoriesService;
|
|
75
|
-
//# sourceMappingURL=floating-inventories-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"floating-inventories-service.js","sourceRoot":"","sources":["../../../src/FloatingInventory/v2/floating-inventories-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAiD;AAGjD,6EAAkF;AAElF,IAAM,UAAU,GAAG,sBAAsB,CAAC;AAC1C,IAAM,uCAAuC,GAAG,WAAI,UAAU,6CAA0C,CAAC;AAEzG;IAGC,oCAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACrD,CAAC;IAEY,4CAAO,GAApB,UAAqB,WAAY,EAAE,aAA6B;;;;4BACxD,qBAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,EAAA;4BAA5D,sBAAO,SAAqD,EAAC;;;;KAC7D;IAEY,2EAAsC,GAAnD,UAAoD,MAAc;;;;4BAC1D,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,GAAG,CAAC,uCAAuC,CAAC;6BAC5C,aAAa,CAAC,8CAAgB,CAAC;6BAC/B,YAAY,CAAC,+DAAwD,MAAM,MAAG,CAAC;6BAC/E,eAAe,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;6BACpC,MAAM,EAA6B,EAAA;4BALrC,sBAAO,SAK8B,EAAC;;;;KACtC;IACF,iCAAC;AAAD,CAAC,AAnBD,IAmBC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GROUP_VALUES = exports.userIdsExtractor = void 0;
|
|
4
|
-
var userIdsExtractor = function (response) { return response.user_ids; };
|
|
5
|
-
exports.userIdsExtractor = userIdsExtractor;
|
|
6
|
-
var GROUP_VALUES;
|
|
7
|
-
(function (GROUP_VALUES) {
|
|
8
|
-
GROUP_VALUES[GROUP_VALUES["General"] = 0] = "General";
|
|
9
|
-
})(GROUP_VALUES = exports.GROUP_VALUES || (exports.GROUP_VALUES = {}));
|
|
10
|
-
//# sourceMappingURL=floating-inventories.consts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"floating-inventories.consts.js","sourceRoot":"","sources":["../../../src/FloatingInventory/v2/floating-inventories.consts.ts"],"names":[],"mappings":";;;AAAO,IAAM,gBAAgB,GAAG,UAAC,QAAyB,IAAK,OAAA,QAAQ,CAAC,QAAQ,EAAjB,CAAiB,CAAC;AAApE,QAAA,gBAAgB,oBAAoD;AAOjF,IAAY,YAEX;AAFD,WAAY,YAAY;IACvB,qDAAO,CAAA;AACR,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB"}
|