@bringg/dashboard-sdk 4.3.3-pre.0 → 4.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.
- package/dist/BringgDashboardSDK.d.ts +0 -2
- package/dist/BringgDashboardSDK.js +1 -3
- package/dist/BringgDashboardSDK.js.map +1 -1
- package/dist/FloatingInventory/{v2/floating-inventories.consts.js → Entity/FloatingInventory.consts.js} +1 -1
- 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/Services/ServiceRequest.js +1 -1
- package/dist/VehicleCategory/Entity/VehicleCategoryEntity.d.ts +1 -1
- package/dist/VehicleCategory/Entity/VehicleCategoryEntity.js +1 -1
- package/dist/VehicleCategory/Entity/VehicleCategoryEntity.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +1668 -1860
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +18 -44
- 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 -12
- package/dist/FloatingInventory/v2/floating-inventories-api.js +0 -78
- package/dist/FloatingInventory/v2/floating-inventories-api.js.map +0 -1
- package/dist/FloatingInventory/v2/floating-inventories-service.d.ts +0 -12
- package/dist/FloatingInventory/v2/floating-inventories-service.js +0 -91
- package/dist/FloatingInventory/v2/floating-inventories-service.js.map +0 -1
- package/dist/FloatingInventory/v2/floating-inventories.consts.js.map +0 -1
- /package/dist/FloatingInventory/{v2/floating-inventories.consts.d.ts → Entity/FloatingInventory.consts.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bringg/dashboard-sdk",
|
|
3
|
-
"version": "4.3.3
|
|
3
|
+
"version": "4.3.3",
|
|
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.40.
|
|
59
|
+
"@bringg/types": "^4.40.2",
|
|
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,12 +0,0 @@
|
|
|
1
|
-
import { FloatingInventoriesResponse, FloatingInventoriesRequest, FloatingInventoryHistoryResponse } from '@bringg/types';
|
|
2
|
-
import Session from '../../Services/Identity/Session';
|
|
3
|
-
import { CommonOptions } from '../../Core/RouteGenerator';
|
|
4
|
-
export declare class FloatingInventoriesApi {
|
|
5
|
-
private readonly floatingInventoriesService;
|
|
6
|
-
constructor(session: Session);
|
|
7
|
-
loadAll(queryString: FloatingInventoriesRequest, commonOptions?: CommonOptions): Promise<FloatingInventoriesResponse>;
|
|
8
|
-
loadUsersWithAvailableFloatingInventory(taskId: number): Promise<number[]>;
|
|
9
|
-
loadHistory(queryString: {
|
|
10
|
-
id: number;
|
|
11
|
-
}, commonOptions?: CommonOptions): Promise<FloatingInventoryHistoryResponse>;
|
|
12
|
-
}
|
|
@@ -1,78 +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
|
-
exports.FloatingInventoriesApi = void 0;
|
|
40
|
-
var floating_inventories_service_1 = require("./floating-inventories-service");
|
|
41
|
-
var FloatingInventoriesApi = /** @class */ (function () {
|
|
42
|
-
function FloatingInventoriesApi(session) {
|
|
43
|
-
this.floatingInventoriesService = new floating_inventories_service_1.default(session);
|
|
44
|
-
}
|
|
45
|
-
FloatingInventoriesApi.prototype.loadAll = function (queryString, commonOptions) {
|
|
46
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
47
|
-
return __generator(this, function (_a) {
|
|
48
|
-
switch (_a.label) {
|
|
49
|
-
case 0: return [4 /*yield*/, this.floatingInventoriesService.loadAll(queryString, commonOptions)];
|
|
50
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
FloatingInventoriesApi.prototype.loadUsersWithAvailableFloatingInventory = function (taskId) {
|
|
56
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
57
|
-
return __generator(this, function (_a) {
|
|
58
|
-
switch (_a.label) {
|
|
59
|
-
case 0: return [4 /*yield*/, this.floatingInventoriesService.loadUsersWithAvailableFloatingInventory(taskId)];
|
|
60
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
FloatingInventoriesApi.prototype.loadHistory = function (queryString, commonOptions) {
|
|
66
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67
|
-
return __generator(this, function (_a) {
|
|
68
|
-
switch (_a.label) {
|
|
69
|
-
case 0: return [4 /*yield*/, this.floatingInventoriesService.loadHistory(queryString, commonOptions)];
|
|
70
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
return FloatingInventoriesApi;
|
|
76
|
-
}());
|
|
77
|
-
exports.FloatingInventoriesApi = FloatingInventoriesApi;
|
|
78
|
-
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,+EAAwE;AAGxE;IAGC,gCAAY,OAAgB;QAC3B,IAAI,CAAC,0BAA0B,GAAG,IAAI,sCAA0B,CAAC,OAAO,CAAC,CAAC;IAC3E,CAAC;IAEY,wCAAO,GAApB,UACC,WAAuC,EACvC,aAA6B;;;;4BAEtB,qBAAM,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,WAAW,EAAE,aAAa,CAAC,EAAA;4BAAhF,sBAAO,SAAyE,EAAC;;;;KACjF;IAEY,wEAAuC,GAApD,UAAqD,MAAc;;;;4BAC3D,qBAAM,IAAI,CAAC,0BAA0B,CAAC,uCAAuC,CAAC,MAAM,CAAC,EAAA;4BAA5F,sBAAO,SAAqF,EAAC;;;;KAC7F;IAEY,4CAAW,GAAxB,UACC,WAA2B,EAC3B,aAA6B;;;;4BAEtB,qBAAM,IAAI,CAAC,0BAA0B,CAAC,WAAW,CAAC,WAAW,EAAE,aAAa,CAAC,EAAA;4BAApF,sBAAO,SAA6E,EAAC;;;;KACrF;IACF,6BAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,wDAAsB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FloatingInventoriesResponse, FloatingInventoriesRequest, FloatingInventoryHistoryResponse } 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: FloatingInventoriesRequest, commonOptions?: CommonOptions): Promise<FloatingInventoriesResponse>;
|
|
8
|
-
loadUsersWithAvailableFloatingInventory(taskId: number): Promise<number[]>;
|
|
9
|
-
loadHistory(queryString: {
|
|
10
|
-
id: number;
|
|
11
|
-
}, commonOptions?: CommonOptions): Promise<FloatingInventoryHistoryResponse>;
|
|
12
|
-
}
|
|
@@ -1,91 +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 HISTORY = "/".concat(BASE_ROUTE, "/history");
|
|
44
|
-
var FloatingInventoriesService = /** @class */ (function () {
|
|
45
|
-
function FloatingInventoriesService(session) {
|
|
46
|
-
this.service = new CrudService_1.default(session, BASE_ROUTE);
|
|
47
|
-
}
|
|
48
|
-
FloatingInventoriesService.prototype.loadAll = function (queryString, commonOptions) {
|
|
49
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
50
|
-
return __generator(this, function (_a) {
|
|
51
|
-
switch (_a.label) {
|
|
52
|
-
case 0: return [4 /*yield*/, this.service.getAll(queryString, commonOptions)];
|
|
53
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
FloatingInventoriesService.prototype.loadUsersWithAvailableFloatingInventory = function (taskId) {
|
|
59
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
60
|
-
return __generator(this, function (_a) {
|
|
61
|
-
switch (_a.label) {
|
|
62
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
63
|
-
.get(USERS_WITH_AVAILABLE_FLOATING_INVENTORY)
|
|
64
|
-
.withExtractor(floating_inventories_consts_1.userIdsExtractor)
|
|
65
|
-
.setException("failed to get available users for dispatch for task [".concat(taskId, "]"))
|
|
66
|
-
.withQueryString({ task_id: taskId })
|
|
67
|
-
.invoke()];
|
|
68
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
FloatingInventoriesService.prototype.loadHistory = function (queryString, commonOptions) {
|
|
74
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
75
|
-
return __generator(this, function (_a) {
|
|
76
|
-
switch (_a.label) {
|
|
77
|
-
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
78
|
-
.get(HISTORY)
|
|
79
|
-
.setException("failed to floating inventory history [".concat(queryString.id, "]"))
|
|
80
|
-
.withCommonOptions(commonOptions)
|
|
81
|
-
.withQueryString({ id: queryString.id })
|
|
82
|
-
.invoke()];
|
|
83
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
return FloatingInventoriesService;
|
|
89
|
-
}());
|
|
90
|
-
exports.default = FloatingInventoriesService;
|
|
91
|
-
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,sDAAiD;AAGjD,6EAAkF;AAElF,IAAM,UAAU,GAAG,sBAAsB,CAAC;AAC1C,IAAM,uCAAuC,GAAG,WAAI,UAAU,6CAA0C,CAAC;AACzG,IAAM,OAAO,GAAG,WAAI,UAAU,aAAU,CAAC;AAEzC;IAGC,oCAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACrD,CAAC;IAEY,4CAAO,GAApB,UACC,WAAuC,EACvC,aAA6B;;;;4BAEtB,qBAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,EAAA;4BAA5D,sBAAO,SAAqD,EAAC;;;;KAC7D;IAEY,4EAAuC,GAApD,UAAqD,MAAc;;;;4BAC3D,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;IAEY,gDAAW,GAAxB,UACC,WAA2B,EAC3B,aAA6B;;;;4BAEtB,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,GAAG,CAAC,OAAO,CAAC;6BACZ,YAAY,CAAC,gDAAyC,WAAW,CAAC,EAAE,MAAG,CAAC;6BACxE,iBAAiB,CAAC,aAAa,CAAC;6BAChC,eAAe,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC;6BACvC,MAAM,EAAsE,EAAA;4BAL9E,sBAAO,SAKuE,EAAC;;;;KAC/E;IACF,iCAAC;AAAD,CAAC,AAlCD,IAkCC"}
|
|
@@ -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"}
|
|
File without changes
|