@bringg/dashboard-sdk 9.73.2 → 9.73.4
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/SupportTicket/Entity/SupportTicket.d.ts +2 -2
- package/dist/TasksExplorer/Services/tasks-explorer-service.d.ts +1 -0
- package/dist/TasksExplorer/Services/tasks-explorer-service.js +18 -1
- package/dist/TasksExplorer/Services/tasks-explorer-service.js.map +1 -1
- package/dist/TasksExplorer/v2/tasks-explorer-api.d.ts +1 -0
- package/dist/TasksExplorer/v2/tasks-explorer-api.js +7 -0
- package/dist/TasksExplorer/v2/tasks-explorer-api.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +39 -2
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +16 -5
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SupportTicket, SupportTicketResponse } from '@bringg/types';
|
|
1
|
+
import type { SupportTask, SupportTicket, SupportTicketResponse } from '@bringg/types';
|
|
2
2
|
import Session from '../../Services/Identity/Session';
|
|
3
3
|
export interface SearchTasksParams {
|
|
4
4
|
query: string;
|
|
@@ -7,7 +7,7 @@ export interface SearchTasksParams {
|
|
|
7
7
|
cursor?: string;
|
|
8
8
|
}
|
|
9
9
|
export interface SearchTasksResponse {
|
|
10
|
-
tasks:
|
|
10
|
+
tasks: SupportTask[];
|
|
11
11
|
next_page_cursor?: string;
|
|
12
12
|
previous_page_cursor?: string;
|
|
13
13
|
}
|
|
@@ -6,4 +6,5 @@ export default class TasksExplorerService {
|
|
|
6
6
|
constructor(session: Session);
|
|
7
7
|
getAll(req: DispatcherV2Request, commonOptions?: CommonOptions): Promise<DispatcherV2Response>;
|
|
8
8
|
getAggregations(req: AggregationRequest, commonOptions?: CommonOptions): Promise<AggregationResponse>;
|
|
9
|
+
logSearchFieldHit(columnIds: string[]): Promise<void>;
|
|
9
10
|
}
|
|
@@ -44,7 +44,8 @@ var baseUrl = 'data-query-service';
|
|
|
44
44
|
var entityName = 'tasks-explorer';
|
|
45
45
|
var Routes = {
|
|
46
46
|
GET_ALL: "/".concat(baseUrl, "/").concat(entityName),
|
|
47
|
-
GET_AGGREGATIONS: "/".concat(baseUrl, "/aggregation")
|
|
47
|
+
GET_AGGREGATIONS: "/".concat(baseUrl, "/aggregation"),
|
|
48
|
+
LOG_SEARCH_FIELD_HIT: "/".concat(baseUrl, "/search-field-hit")
|
|
48
49
|
};
|
|
49
50
|
var TasksExplorerService = /** @class */ (function () {
|
|
50
51
|
function TasksExplorerService(session) {
|
|
@@ -74,6 +75,22 @@ var TasksExplorerService = /** @class */ (function () {
|
|
|
74
75
|
});
|
|
75
76
|
});
|
|
76
77
|
};
|
|
78
|
+
TasksExplorerService.prototype.logSearchFieldHit = function (columnIds) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
80
|
+
return __generator(this, function (_a) {
|
|
81
|
+
switch (_a.label) {
|
|
82
|
+
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
83
|
+
.post(Routes.LOG_SEARCH_FIELD_HIT)
|
|
84
|
+
.withPayload({ column_ids: columnIds })
|
|
85
|
+
.setException('failed to log search field hit')
|
|
86
|
+
.invoke()];
|
|
87
|
+
case 1:
|
|
88
|
+
_a.sent();
|
|
89
|
+
return [2 /*return*/];
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
};
|
|
77
94
|
return TasksExplorerService;
|
|
78
95
|
}());
|
|
79
96
|
exports.default = TasksExplorerService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks-explorer-service.js","sourceRoot":"","sources":["../../../src/TasksExplorer/Services/tasks-explorer-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uEAAiD;AAIjD,IAAM,OAAO,GAAG,oBAAoB,CAAC;AACrC,IAAM,UAAU,GAAG,gBAAgB,CAAC;AAEpC,IAAM,MAAM,GAAG;IACd,OAAO,EAAE,WAAI,OAAO,cAAI,UAAU,CAAE;IACpC,gBAAgB,EAAE,WAAI,OAAO,iBAAc;
|
|
1
|
+
{"version":3,"file":"tasks-explorer-service.js","sourceRoot":"","sources":["../../../src/TasksExplorer/Services/tasks-explorer-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uEAAiD;AAIjD,IAAM,OAAO,GAAG,oBAAoB,CAAC;AACrC,IAAM,UAAU,GAAG,gBAAgB,CAAC;AAEpC,IAAM,MAAM,GAAG;IACd,OAAO,EAAE,WAAI,OAAO,cAAI,UAAU,CAAE;IACpC,gBAAgB,EAAE,WAAI,OAAO,iBAAc;IAC3C,oBAAoB,EAAE,WAAI,OAAO,sBAAmB;CACpD,CAAC;AAEF;IAGC,8BAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACrD,CAAC;IAEY,qCAAM,GAAnB,UAAoB,GAAwB,EAAE,aAA6B;;;gBAC1E,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;yBACpB,WAAW,CAAC,GAAG,CAAC;yBAChB,YAAY,CAAC,uBAAuB,CAAC;yBACrC,iBAAiB,CAAC,aAAa,CAAC;yBAChC,MAAM,EAA8C,EAAC;;;KACvD;IAEY,8CAAe,GAA5B,UAA6B,GAAuB,EAAE,aAA6B;;;gBAClF,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;yBAC7B,WAAW,CAAC,GAAG,CAAC;yBAChB,YAAY,CAAC,8BAA8B,CAAC;yBAC5C,iBAAiB,CAAC,aAAa,CAAC;yBAChC,MAAM,EAA4C,EAAC;;;KACrD;IAEY,gDAAiB,GAA9B,UAA+B,SAAmB;;;;4BACjD,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BAC/B,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC;6BACjC,WAAW,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;6BACtC,YAAY,CAAC,gCAAgC,CAAC;6BAC9C,MAAM,EAAc,EAAA;;wBAJtB,SAIsB,CAAC;;;;;KACvB;IACF,2BAAC;AAAD,CAAC,AAhCD,IAgCC"}
|
|
@@ -6,4 +6,5 @@ export default class TasksExplorerApi {
|
|
|
6
6
|
constructor(session: Session);
|
|
7
7
|
getAll(req: DispatcherV2Request, commonOptions?: CommonOptions): Promise<DispatcherV2Response>;
|
|
8
8
|
getAggregations(req: AggregationRequest, commonOptions?: CommonOptions): Promise<AggregationResponse>;
|
|
9
|
+
logSearchFieldHit(columnIds: string[]): Promise<void>;
|
|
9
10
|
}
|
|
@@ -60,6 +60,13 @@ var TasksExplorerApi = /** @class */ (function () {
|
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
|
+
TasksExplorerApi.prototype.logSearchFieldHit = function (columnIds) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
65
|
+
return __generator(this, function (_a) {
|
|
66
|
+
return [2 /*return*/, this.tasksExplorerService.logSearchFieldHit(columnIds)];
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
};
|
|
63
70
|
return TasksExplorerApi;
|
|
64
71
|
}());
|
|
65
72
|
exports.default = TasksExplorerApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks-explorer-api.js","sourceRoot":"","sources":["../../../src/TasksExplorer/v2/tasks-explorer-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,8FAAsE;AAEtE;IAGC,0BAAY,OAAgB;QA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}
|
|
@@ -23416,7 +23416,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
23416
23416
|
var BringgException_1 = __webpack_require__(43605);
|
|
23417
23417
|
var Logger_1 = __importDefault(__webpack_require__(55860));
|
|
23418
23418
|
var abort_1 = __webpack_require__(34179);
|
|
23419
|
-
var version = '9.73.
|
|
23419
|
+
var version = '9.73.4';
|
|
23420
23420
|
function logErrorResponse(response) {
|
|
23421
23421
|
var data = response.data, status = response.status;
|
|
23422
23422
|
try {
|
|
@@ -28126,7 +28126,8 @@ var baseUrl = 'data-query-service';
|
|
|
28126
28126
|
var entityName = 'tasks-explorer';
|
|
28127
28127
|
var Routes = {
|
|
28128
28128
|
GET_ALL: "/".concat(baseUrl, "/").concat(entityName),
|
|
28129
|
-
GET_AGGREGATIONS: "/".concat(baseUrl, "/aggregation")
|
|
28129
|
+
GET_AGGREGATIONS: "/".concat(baseUrl, "/aggregation"),
|
|
28130
|
+
LOG_SEARCH_FIELD_HIT: "/".concat(baseUrl, "/search-field-hit")
|
|
28130
28131
|
};
|
|
28131
28132
|
var TasksExplorerService = /** @class */ (function () {
|
|
28132
28133
|
function TasksExplorerService(session) {
|
|
@@ -28156,6 +28157,22 @@ var TasksExplorerService = /** @class */ (function () {
|
|
|
28156
28157
|
});
|
|
28157
28158
|
});
|
|
28158
28159
|
};
|
|
28160
|
+
TasksExplorerService.prototype.logSearchFieldHit = function (columnIds) {
|
|
28161
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
28162
|
+
return __generator(this, function (_a) {
|
|
28163
|
+
switch (_a.label) {
|
|
28164
|
+
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
28165
|
+
.post(Routes.LOG_SEARCH_FIELD_HIT)
|
|
28166
|
+
.withPayload({ column_ids: columnIds })
|
|
28167
|
+
.setException('failed to log search field hit')
|
|
28168
|
+
.invoke()];
|
|
28169
|
+
case 1:
|
|
28170
|
+
_a.sent();
|
|
28171
|
+
return [2 /*return*/];
|
|
28172
|
+
}
|
|
28173
|
+
});
|
|
28174
|
+
});
|
|
28175
|
+
};
|
|
28159
28176
|
return TasksExplorerService;
|
|
28160
28177
|
}());
|
|
28161
28178
|
exports["default"] = TasksExplorerService;
|
|
@@ -28229,6 +28246,13 @@ var TasksExplorerApi = /** @class */ (function () {
|
|
|
28229
28246
|
});
|
|
28230
28247
|
});
|
|
28231
28248
|
};
|
|
28249
|
+
TasksExplorerApi.prototype.logSearchFieldHit = function (columnIds) {
|
|
28250
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
28251
|
+
return __generator(this, function (_a) {
|
|
28252
|
+
return [2 /*return*/, this.tasksExplorerService.logSearchFieldHit(columnIds)];
|
|
28253
|
+
});
|
|
28254
|
+
});
|
|
28255
|
+
};
|
|
28232
28256
|
return TasksExplorerApi;
|
|
28233
28257
|
}());
|
|
28234
28258
|
exports["default"] = TasksExplorerApi;
|
|
@@ -37076,6 +37100,7 @@ __exportStar(__webpack_require__(29323), exports);
|
|
|
37076
37100
|
__exportStar(__webpack_require__(98795), exports);
|
|
37077
37101
|
__exportStar(__webpack_require__(84217), exports);
|
|
37078
37102
|
__exportStar(__webpack_require__(92342), exports);
|
|
37103
|
+
__exportStar(__webpack_require__(49989), exports);
|
|
37079
37104
|
__exportStar(__webpack_require__(44329), exports);
|
|
37080
37105
|
__exportStar(__webpack_require__(30828), exports);
|
|
37081
37106
|
__exportStar(__webpack_require__(13789), exports);
|
|
@@ -40956,6 +40981,7 @@ var PrivilegeTypes;
|
|
|
40956
40981
|
PrivilegeTypes["CHANGE_SKILLS_ORDER_PAGE"] = "change_skills_order_page";
|
|
40957
40982
|
PrivilegeTypes["ALLOW_DISPATCHER_EDIT_ADDITIONAL_DRIVER_COST_FIELDS"] = "allow_dispatcher_edit_additional_driver_cost_fields";
|
|
40958
40983
|
PrivilegeTypes["EDIT_RESERVE_CAPACITY"] = "edit_reserve_capacity";
|
|
40984
|
+
PrivilegeTypes["VEHICLES"] = "vehicles";
|
|
40959
40985
|
})(PrivilegeTypes || (exports.PrivilegeTypes = PrivilegeTypes = {}));
|
|
40960
40986
|
exports.PRIVILEGES_DEFAULTS = (_a = {},
|
|
40961
40987
|
_a[PrivilegeTypes.CANCEL_TASK] = true,
|
|
@@ -40973,6 +40999,7 @@ exports.PRIVILEGES_DEFAULTS = (_a = {},
|
|
|
40973
40999
|
_a[PrivilegeTypes.ALLOW_USING_ROUTE_PLANNER_IN_PLANNING] = true,
|
|
40974
41000
|
_a[PrivilegeTypes.VIEW_PLANNED_DELIVERY_WINDOWS] = true,
|
|
40975
41001
|
_a[PrivilegeTypes.VIEW_EXCLUSION_WINDOWS] = true,
|
|
41002
|
+
_a[PrivilegeTypes.VEHICLES] = true,
|
|
40976
41003
|
_a);
|
|
40977
41004
|
//# sourceMappingURL=privilege.js.map
|
|
40978
41005
|
|
|
@@ -42004,6 +42031,16 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
42004
42031
|
|
|
42005
42032
|
/***/ }),
|
|
42006
42033
|
|
|
42034
|
+
/***/ 49989:
|
|
42035
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
42036
|
+
|
|
42037
|
+
"use strict";
|
|
42038
|
+
|
|
42039
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
42040
|
+
//# sourceMappingURL=support-search.js.map
|
|
42041
|
+
|
|
42042
|
+
/***/ }),
|
|
42043
|
+
|
|
42007
42044
|
/***/ 44329:
|
|
42008
42045
|
/***/ ((__unused_webpack_module, exports) => {
|
|
42009
42046
|
|