@bringg/dashboard-sdk 9.21.0 → 9.23.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/LookUp/lookup-api.d.ts +5 -4
- package/dist/LookUp/lookup-api.js +16 -5
- package/dist/LookUp/lookup-api.js.map +1 -1
- package/dist/LookUp/lookup-service.d.ts +6 -4
- package/dist/LookUp/lookup-service.js +22 -9
- package/dist/LookUp/lookup-service.js.map +1 -1
- package/dist/LookUp/lookup.consts.d.ts +35 -10
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +39 -15
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonOptions } from '../Core/RouteGenerator';
|
|
2
2
|
import Session from '../Services/Identity/Session';
|
|
3
|
-
import { BaseSearchQuery, CustomerNameSearchResponse, CustomerOriginalPhoneSearchResponse,
|
|
3
|
+
import { BaseSearchQuery, CustomerNameSearchResponse, CustomerOriginalPhoneSearchResponse, PlannedRouteSearchResponse, RunsSearchResponse, TasksExternalIdSearchResponse, TasksTitleSearchQuery, TasksTitleSearchResponse, TeamsSearchResponse, UsersSearchQuery, UsersSearchResponse, WaypointAddressSearchResponse, WaypointCitySearchResponse, WaypointPhoneSearchResponse, WaypointPropertySearchQuery, WaypointZipcodeSearchResponse } from './lookup.consts';
|
|
4
4
|
export default class Lookup {
|
|
5
5
|
private lookUpEntity;
|
|
6
6
|
constructor(session: Session);
|
|
@@ -9,14 +9,15 @@ export default class Lookup {
|
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated Please use the getTasksByExternalIds method instead
|
|
11
11
|
*/
|
|
12
|
-
getTasks(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<
|
|
13
|
-
getTasksByExternalIds(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<
|
|
12
|
+
getTasks(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<TasksExternalIdSearchResponse>;
|
|
13
|
+
getTasksByExternalIds(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<TasksExternalIdSearchResponse>;
|
|
14
|
+
getTaskTitles(query: TasksTitleSearchQuery, commonOptions?: CommonOptions): Promise<TasksTitleSearchResponse>;
|
|
14
15
|
getPlannedRoutes(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<PlannedRouteSearchResponse>;
|
|
15
16
|
getTeams(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<TeamsSearchResponse>;
|
|
16
17
|
getWaypointZipcodes(query: WaypointPropertySearchQuery, commonOptions?: CommonOptions): Promise<WaypointZipcodeSearchResponse>;
|
|
17
18
|
getWaypointAddresses(query: WaypointPropertySearchQuery, commonOptions?: CommonOptions): Promise<WaypointAddressSearchResponse>;
|
|
18
19
|
getWaypointCities(query: WaypointPropertySearchQuery, commonOptions?: CommonOptions): Promise<WaypointCitySearchResponse>;
|
|
20
|
+
getWaypointPhones(query: WaypointPropertySearchQuery, commonOptions?: CommonOptions): Promise<WaypointPhoneSearchResponse>;
|
|
19
21
|
getCustomerNames(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<CustomerNameSearchResponse>;
|
|
20
|
-
getCustomerPhones(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<CustomerPhoneSearchResponse>;
|
|
21
22
|
getCustomerOriginalPhones(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<CustomerOriginalPhoneSearchResponse>;
|
|
22
23
|
}
|
|
@@ -91,6 +91,17 @@ var Lookup = /** @class */ (function () {
|
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
|
+
Lookup.prototype.getTaskTitles = function (query, commonOptions) {
|
|
95
|
+
if (commonOptions === void 0) { commonOptions = {}; }
|
|
96
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
97
|
+
return __generator(this, function (_a) {
|
|
98
|
+
switch (_a.label) {
|
|
99
|
+
case 0: return [4 /*yield*/, this.lookUpEntity.getTasksTitles(query, commonOptions)];
|
|
100
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
};
|
|
94
105
|
Lookup.prototype.getPlannedRoutes = function (query, commonOptions) {
|
|
95
106
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
96
107
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -147,24 +158,24 @@ var Lookup = /** @class */ (function () {
|
|
|
147
158
|
});
|
|
148
159
|
});
|
|
149
160
|
};
|
|
150
|
-
|
|
151
|
-
Lookup.prototype.getCustomerNames = function (query, commonOptions) {
|
|
161
|
+
Lookup.prototype.getWaypointPhones = function (query, commonOptions) {
|
|
152
162
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
153
163
|
return __awaiter(this, void 0, void 0, function () {
|
|
154
164
|
return __generator(this, function (_a) {
|
|
155
165
|
switch (_a.label) {
|
|
156
|
-
case 0: return [4 /*yield*/, this.lookUpEntity.
|
|
166
|
+
case 0: return [4 /*yield*/, this.lookUpEntity.getWaypointPhones(query, commonOptions)];
|
|
157
167
|
case 1: return [2 /*return*/, _a.sent()];
|
|
158
168
|
}
|
|
159
169
|
});
|
|
160
170
|
});
|
|
161
171
|
};
|
|
162
|
-
|
|
172
|
+
// ----- Customer
|
|
173
|
+
Lookup.prototype.getCustomerNames = function (query, commonOptions) {
|
|
163
174
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
164
175
|
return __awaiter(this, void 0, void 0, function () {
|
|
165
176
|
return __generator(this, function (_a) {
|
|
166
177
|
switch (_a.label) {
|
|
167
|
-
case 0: return [4 /*yield*/, this.lookUpEntity.
|
|
178
|
+
case 0: return [4 /*yield*/, this.lookUpEntity.getCustomerNames(query, commonOptions)];
|
|
168
179
|
case 1: return [2 /*return*/, _a.sent()];
|
|
169
180
|
}
|
|
170
181
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lookup-api.js","sourceRoot":"","sources":["../../src/LookUp/lookup-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"lookup-api.js","sourceRoot":"","sources":["../../src/LookUp/lookup-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,oEAA6C;AAE7C;IAGC,gBAAY,OAAgB;QAC3B,IAAI,CAAC,YAAY,GAAG,IAAI,wBAAa,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IAEY,yBAAQ,GAArB,UAAsB,KAAuB,EAAE,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BACxE,qBAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,EAAA;4BAA7D,sBAAO,SAAsD,EAAC;;;;KAC9D;IAEY,wBAAO,GAApB,UAAqB,KAAsB,EAAE,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BACtE,qBAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,aAAa,CAAC,EAAA;4BAA5D,sBAAO,SAAqD,EAAC;;;;KAC7D;IAED;;OAEG;IACU,yBAAQ,GAArB,UACC,KAAsB,EACtB,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BAE1B,qBAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,CAAC,KAAK,EAAE,aAAa,CAAC,EAAA;4BAAzE,sBAAO,SAAkE,EAAC;;;;KAC1E;IAEY,sCAAqB,GAAlC,UACC,KAAsB,EACtB,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BAE1B,qBAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,CAAC,KAAK,EAAE,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CAAC,EAAA;4BAAtE,sBAAO,SAA+D,EAAC;;;;KACvE;IAEY,kCAAiB,GAA9B,UACC,KAAkC,EAClC,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BAE1B,qBAAM,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,KAAK,EAAE,aAAa,CAAC,EAAA;4BAAtE,sBAAO,SAA+D,EAAC;;;;KACvE;IAED,iBAAiB;IACJ,iCAAgB,GAA7B,UACC,KAAsB,EACtB,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BAE1B,qBAAM,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,CAAC,EAAA;4BAArE,sBAAO,SAA8D,EAAC;;;;KACtE;IAEY,0CAAyB,GAAtC,UACC,KAAsB,EACtB,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BAE1B,qBAAM,IAAI,CAAC,YAAY,CAAC,yBAAyB,CAAC,KAAK,EAAE,aAAa,CAAC,EAAA;4BAA9E,sBAAO,SAAuE,EAAC;;;;KAC/E;IACF,aAAC;AAAD,CAAC,AA9FD,IA8FC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { CommonOptions } from '../Core/RouteGenerator';
|
|
2
2
|
import Session from '../Services/Identity/Session';
|
|
3
|
-
import { BaseSearchQuery, CustomerNameSearchResponse, CustomerOriginalPhoneSearchResponse,
|
|
3
|
+
import { BaseSearchQuery, CustomerNameSearchResponse, CustomerOriginalPhoneSearchResponse, PlannedRouteSearchResponse, RunsSearchResponse, TasksExternalIdSearchResponse, TasksTitleSearchResponse, TeamsSearchResponse, UsersSearchQuery, UsersSearchResponse, WaypointAddressSearchResponse, WaypointCitySearchResponse, WaypointPhoneSearchResponse, WaypointPropertySearchQuery, WaypointZipcodeSearchResponse } from './lookup.consts';
|
|
4
4
|
export declare const Routes: {
|
|
5
5
|
GET_USERS: string;
|
|
6
6
|
GET_RUNS: string;
|
|
7
7
|
GET_TASKS_BY_EXTERNAL_ID: string;
|
|
8
|
+
GET_TASKS_TITLES: string;
|
|
8
9
|
GET_PLANNED_ROUTES: string;
|
|
9
10
|
GET_TEAMS: string;
|
|
10
11
|
GET_WAYPOINT_ZIPCODE: string;
|
|
11
12
|
GET_WAYPOINT_ADDRESS: string;
|
|
13
|
+
GET_WAYPOINT_PHONE: string;
|
|
12
14
|
GET_WAYPOINT_CITY: string;
|
|
13
15
|
GET_CUSTOMER_NAMES: string;
|
|
14
|
-
GET_CUSTOMER_PHONES: string;
|
|
15
16
|
GET_CUSTOMER_ORIGINAL_PHONES: string;
|
|
16
17
|
};
|
|
17
18
|
export default class LookupService {
|
|
@@ -19,13 +20,14 @@ export default class LookupService {
|
|
|
19
20
|
constructor(session: Session);
|
|
20
21
|
getUsers(query: UsersSearchQuery, commonOptions?: CommonOptions): Promise<UsersSearchResponse>;
|
|
21
22
|
getRuns(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<RunsSearchResponse>;
|
|
22
|
-
getTasksByExternalId(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<
|
|
23
|
+
getTasksByExternalId(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<TasksExternalIdSearchResponse>;
|
|
24
|
+
getTasksTitles(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<TasksTitleSearchResponse>;
|
|
23
25
|
getPlannedRoutes(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<PlannedRouteSearchResponse>;
|
|
24
26
|
getTeams(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<TeamsSearchResponse>;
|
|
25
27
|
getWaypointZipcodes(query: WaypointPropertySearchQuery, commonOptions?: CommonOptions): Promise<WaypointZipcodeSearchResponse>;
|
|
26
28
|
getWaypointAddresses(query: WaypointPropertySearchQuery, commonOptions?: CommonOptions): Promise<WaypointAddressSearchResponse>;
|
|
27
29
|
getWaypointCities(query: WaypointPropertySearchQuery, commonOptions?: CommonOptions): Promise<WaypointCitySearchResponse>;
|
|
30
|
+
getWaypointPhones(query: WaypointPropertySearchQuery, commonOptions?: CommonOptions): Promise<WaypointPhoneSearchResponse>;
|
|
28
31
|
getCustomerNames(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<CustomerNameSearchResponse>;
|
|
29
|
-
getCustomerPhones(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<CustomerPhoneSearchResponse>;
|
|
30
32
|
getCustomerOriginalPhones(query: BaseSearchQuery, commonOptions?: CommonOptions): Promise<CustomerOriginalPhoneSearchResponse>;
|
|
31
33
|
}
|
|
@@ -46,13 +46,14 @@ exports.Routes = {
|
|
|
46
46
|
GET_USERS: "".concat(baseRoute, "/user"),
|
|
47
47
|
GET_RUNS: "".concat(baseRoute, "/run"),
|
|
48
48
|
GET_TASKS_BY_EXTERNAL_ID: "".concat(baseRoute, "/task/external-id"),
|
|
49
|
+
GET_TASKS_TITLES: "".concat(baseRoute, "/task/title"),
|
|
49
50
|
GET_PLANNED_ROUTES: "".concat(baseRoute, "/planned-route"),
|
|
50
51
|
GET_TEAMS: "".concat(baseRoute, "/team"),
|
|
51
52
|
GET_WAYPOINT_ZIPCODE: "".concat(baseRoute, "/waypoint/zipcode"),
|
|
52
53
|
GET_WAYPOINT_ADDRESS: "".concat(baseRoute, "/waypoint/address"),
|
|
54
|
+
GET_WAYPOINT_PHONE: "".concat(baseRoute, "/waypoint/phone"),
|
|
53
55
|
GET_WAYPOINT_CITY: "".concat(baseRoute, "/waypoint/city"),
|
|
54
56
|
GET_CUSTOMER_NAMES: "".concat(baseRoute, "/customer/name"),
|
|
55
|
-
GET_CUSTOMER_PHONES: "".concat(baseRoute, "/customer/phone"),
|
|
56
57
|
GET_CUSTOMER_ORIGINAL_PHONES: "".concat(baseRoute, "/customer/original-phone-number")
|
|
57
58
|
};
|
|
58
59
|
var LookupService = /** @class */ (function () {
|
|
@@ -89,7 +90,19 @@ var LookupService = /** @class */ (function () {
|
|
|
89
90
|
return [2 /*return*/, this.service.routeGenerator
|
|
90
91
|
.get(exports.Routes.GET_TASKS_BY_EXTERNAL_ID)
|
|
91
92
|
.withQueryString(query)
|
|
92
|
-
.setException('Failed to get tasks from lookup service')
|
|
93
|
+
.setException('Failed to get tasks by external id from lookup service')
|
|
94
|
+
.withCommonOptions(commonOptions)
|
|
95
|
+
.invoke()];
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
LookupService.prototype.getTasksTitles = function (query, commonOptions) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
101
|
+
return __generator(this, function (_a) {
|
|
102
|
+
return [2 /*return*/, this.service.routeGenerator
|
|
103
|
+
.get(exports.Routes.GET_TASKS_TITLES)
|
|
104
|
+
.withQueryString(query)
|
|
105
|
+
.setException('Failed to get tasks titles from lookup service')
|
|
93
106
|
.withCommonOptions(commonOptions)
|
|
94
107
|
.invoke()];
|
|
95
108
|
});
|
|
@@ -156,26 +169,26 @@ var LookupService = /** @class */ (function () {
|
|
|
156
169
|
});
|
|
157
170
|
});
|
|
158
171
|
};
|
|
159
|
-
|
|
160
|
-
LookupService.prototype.getCustomerNames = function (query, commonOptions) {
|
|
172
|
+
LookupService.prototype.getWaypointPhones = function (query, commonOptions) {
|
|
161
173
|
return __awaiter(this, void 0, void 0, function () {
|
|
162
174
|
return __generator(this, function (_a) {
|
|
163
175
|
return [2 /*return*/, this.service.routeGenerator
|
|
164
|
-
.get(exports.Routes.
|
|
176
|
+
.get(exports.Routes.GET_WAYPOINT_PHONE)
|
|
165
177
|
.withQueryString(query)
|
|
166
|
-
.setException('Failed to get
|
|
178
|
+
.setException('Failed to get waypoint phones from lookup service')
|
|
167
179
|
.withCommonOptions(commonOptions)
|
|
168
180
|
.invoke()];
|
|
169
181
|
});
|
|
170
182
|
});
|
|
171
183
|
};
|
|
172
|
-
|
|
184
|
+
// ---- Customer
|
|
185
|
+
LookupService.prototype.getCustomerNames = function (query, commonOptions) {
|
|
173
186
|
return __awaiter(this, void 0, void 0, function () {
|
|
174
187
|
return __generator(this, function (_a) {
|
|
175
188
|
return [2 /*return*/, this.service.routeGenerator
|
|
176
|
-
.get(exports.Routes.
|
|
189
|
+
.get(exports.Routes.GET_CUSTOMER_NAMES)
|
|
177
190
|
.withQueryString(query)
|
|
178
|
-
.setException('Failed to get customer
|
|
191
|
+
.setException('Failed to get customer names from lookup service')
|
|
179
192
|
.withCommonOptions(commonOptions)
|
|
180
193
|
.invoke()];
|
|
181
194
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lookup-service.js","sourceRoot":"","sources":["../../src/LookUp/lookup-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAA8C;
|
|
1
|
+
{"version":3,"file":"lookup-service.js","sourceRoot":"","sources":["../../src/LookUp/lookup-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAA8C;AAqB9C,IAAM,SAAS,GAAG,iBAAiB,CAAC;AAEvB,QAAA,MAAM,GAAG;IACrB,SAAS,EAAE,UAAG,SAAS,UAAO;IAC9B,QAAQ,EAAE,UAAG,SAAS,SAAM;IAC5B,wBAAwB,EAAE,UAAG,SAAS,sBAAmB;IACzD,gBAAgB,EAAE,UAAG,SAAS,gBAAa;IAC3C,kBAAkB,EAAE,UAAG,SAAS,mBAAgB;IAChD,SAAS,EAAE,UAAG,SAAS,UAAO;IAE9B,oBAAoB,EAAE,UAAG,SAAS,sBAAmB;IACrD,oBAAoB,EAAE,UAAG,SAAS,sBAAmB;IACrD,kBAAkB,EAAE,UAAG,SAAS,oBAAiB;IAEjD,iBAAiB,EAAE,UAAG,SAAS,mBAAgB;IAC/C,kBAAkB,EAAE,UAAG,SAAS,mBAAgB;IAChD,4BAA4B,EAAE,UAAG,SAAS,oCAAiC;CAC3E,CAAC;AAEF;IAGC,uBAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qB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,aAAa,CAAC;yBAChC,MAAM,EAAE,EAAC;;;KACX;IAEK,yCAAiB,GAAvB,UACC,KAAkC,EAClC,aAA6B;;;gBAE7B,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,GAAG,CAAC,cAAM,CAAC,kBAAkB,CAAC;yBAC9B,eAAe,CAAC,KAAK,CAAC;yBACtB,YAAY,CAAC,mDAAmD,CAAC;yBACjE,iBAAiB,CAAC,aAAa,CAAC;yBAChC,MAAM,EAAE,EAAC;;;KACX;IAED,gBAAgB;IAEV,wCAAgB,GAAtB,UAAuB,KAAsB,EAAE,aAA6B;;;gBAC3E,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,GAAG,CAAC,cAAM,CAAC,kBAAkB,CAAC;yBAC9B,eAAe,CAAC,KAAK,CAAC;yBACtB,YAAY,CAAC,kDAAkD,CAAC;yBAChE,iBAAiB,CAAC,aAAa,CAAC;yBAChC,MAAM,EAAE,EAAC;;;KACX;IAEK,iDAAyB,GAA/B,UACC,KAAsB,EACtB,aAA6B;;;gBAE7B,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,GAAG,CAAC,cAAM,CAAC,4BAA4B,CAAC;yBACxC,eAAe,CAAC,KAAK,CAAC;yBACtB,YAAY,CAAC,4DAA4D,CAAC;yBAC1E,iBAAiB,CAAC,aAAa,CAAC;yBAChC,MAAM,EAAE,EAAC;;;KACX;IACF,oBAAC;AAAD,CAAC,AAxID,IAwIC"}
|
|
@@ -18,14 +18,38 @@ export type RunsSearchResponseItem = {
|
|
|
18
18
|
matched_keys: MatchedKeys<RunsSearchResponseItem>;
|
|
19
19
|
route_id: string;
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated please use TasksExternalIdSearchResponse
|
|
23
|
+
*/
|
|
21
24
|
export type TasksSearchResponse = BaseSearchResponse & {
|
|
22
25
|
items: TasksSearchResponseItem[];
|
|
23
26
|
};
|
|
27
|
+
export type TasksExternalIdSearchResponse = BaseSearchResponse & {
|
|
28
|
+
items: TasksExternalIdSearchResponseItem[];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated please use TasksExternalIdSearchResponseItem
|
|
32
|
+
*/
|
|
24
33
|
export type TasksSearchResponseItem = {
|
|
25
34
|
id: number;
|
|
26
35
|
matched_keys: MatchedKeys<TasksSearchResponseItem>;
|
|
27
36
|
external_id: string;
|
|
28
37
|
};
|
|
38
|
+
export type TasksExternalIdSearchResponseItem = {
|
|
39
|
+
id: number;
|
|
40
|
+
matched_keys: MatchedKeys<TasksExternalIdSearchResponseItem>;
|
|
41
|
+
external_id: string;
|
|
42
|
+
};
|
|
43
|
+
export type TasksTitleSearchQuery = BasePagelessSearchQuery & {
|
|
44
|
+
query: string;
|
|
45
|
+
};
|
|
46
|
+
export type TasksTitleSearchResponse = {
|
|
47
|
+
items: TasksTitleSearchResponseItem[];
|
|
48
|
+
};
|
|
49
|
+
export type TasksTitleSearchResponseItem = {
|
|
50
|
+
matched_keys: MatchedKeys<TasksTitleSearchResponseItem>;
|
|
51
|
+
title: string;
|
|
52
|
+
};
|
|
29
53
|
export type PlannedRouteSearchResponse = BaseSearchResponse & {
|
|
30
54
|
items: PlannedRouteSearchResponseItem[];
|
|
31
55
|
};
|
|
@@ -34,8 +58,10 @@ export type PlannedRouteSearchResponseItem = {
|
|
|
34
58
|
matched_keys: MatchedKeys<PlannedRouteSearchResponseItem>;
|
|
35
59
|
title: string;
|
|
36
60
|
};
|
|
37
|
-
export type BaseSearchQuery = {
|
|
61
|
+
export type BaseSearchQuery = BasePagelessSearchQuery & {
|
|
38
62
|
from?: string;
|
|
63
|
+
};
|
|
64
|
+
export type BasePagelessSearchQuery = {
|
|
39
65
|
size?: number;
|
|
40
66
|
query: string | number;
|
|
41
67
|
};
|
|
@@ -52,8 +78,7 @@ export type TeamsSearchResponseItem = {
|
|
|
52
78
|
export type TeamsSearchResponse = BaseSearchResponse & {
|
|
53
79
|
items: TeamsSearchResponseItem[];
|
|
54
80
|
};
|
|
55
|
-
export type WaypointPropertySearchQuery = {
|
|
56
|
-
size?: number;
|
|
81
|
+
export type WaypointPropertySearchQuery = BasePagelessSearchQuery & {
|
|
57
82
|
query: string;
|
|
58
83
|
position: 1 | 2;
|
|
59
84
|
};
|
|
@@ -78,6 +103,13 @@ export type WaypointCitySearchResponseItem = {
|
|
|
78
103
|
matched_keys: ['city'];
|
|
79
104
|
city: string;
|
|
80
105
|
};
|
|
106
|
+
export type WaypointPhoneSearchResponse = {
|
|
107
|
+
items: WaypointPhoneSearchResponseItem[];
|
|
108
|
+
};
|
|
109
|
+
export type WaypointPhoneSearchResponseItem = {
|
|
110
|
+
matched_keys: ['phone'];
|
|
111
|
+
phone: string;
|
|
112
|
+
};
|
|
81
113
|
export type CustomerNameSearchResponseItem = {
|
|
82
114
|
matched_keys: MatchedKeys<CustomerNameSearchResponseItem>;
|
|
83
115
|
name: string;
|
|
@@ -85,13 +117,6 @@ export type CustomerNameSearchResponseItem = {
|
|
|
85
117
|
export type CustomerNameSearchResponse = BaseSearchResponse & {
|
|
86
118
|
items: CustomerNameSearchResponseItem[];
|
|
87
119
|
};
|
|
88
|
-
export type CustomerPhoneSearchResponseItem = {
|
|
89
|
-
matched_keys: MatchedKeys<CustomerPhoneSearchResponseItem>;
|
|
90
|
-
phone: string;
|
|
91
|
-
};
|
|
92
|
-
export type CustomerPhoneSearchResponse = BaseSearchResponse & {
|
|
93
|
-
items: CustomerPhoneSearchResponseItem[];
|
|
94
|
-
};
|
|
95
120
|
export type CustomerOriginalPhoneSearchResponseItem = {
|
|
96
121
|
matched_keys: MatchedKeys<CustomerOriginalPhoneSearchResponseItem>;
|
|
97
122
|
original_phone_number: string;
|
|
@@ -56,7 +56,7 @@ var lodash_1 = require("lodash");
|
|
|
56
56
|
var BringgException_1 = require("../Core/BringgException");
|
|
57
57
|
var Logger_1 = __importDefault(require("../Core/Logger"));
|
|
58
58
|
var abort_1 = require("../utils/abort");
|
|
59
|
-
var version = '9.
|
|
59
|
+
var version = '9.23.0';
|
|
60
60
|
function logErrorResponse(response) {
|
|
61
61
|
var data = response.data, status = response.status;
|
|
62
62
|
try {
|
|
@@ -11692,6 +11692,17 @@ var Lookup = /** @class */ (function () {
|
|
|
11692
11692
|
});
|
|
11693
11693
|
});
|
|
11694
11694
|
};
|
|
11695
|
+
Lookup.prototype.getTaskTitles = function (query, commonOptions) {
|
|
11696
|
+
if (commonOptions === void 0) { commonOptions = {}; }
|
|
11697
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11698
|
+
return __generator(this, function (_a) {
|
|
11699
|
+
switch (_a.label) {
|
|
11700
|
+
case 0: return [4 /*yield*/, this.lookUpEntity.getTasksTitles(query, commonOptions)];
|
|
11701
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
11702
|
+
}
|
|
11703
|
+
});
|
|
11704
|
+
});
|
|
11705
|
+
};
|
|
11695
11706
|
Lookup.prototype.getPlannedRoutes = function (query, commonOptions) {
|
|
11696
11707
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
11697
11708
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -11748,24 +11759,24 @@ var Lookup = /** @class */ (function () {
|
|
|
11748
11759
|
});
|
|
11749
11760
|
});
|
|
11750
11761
|
};
|
|
11751
|
-
|
|
11752
|
-
Lookup.prototype.getCustomerNames = function (query, commonOptions) {
|
|
11762
|
+
Lookup.prototype.getWaypointPhones = function (query, commonOptions) {
|
|
11753
11763
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
11754
11764
|
return __awaiter(this, void 0, void 0, function () {
|
|
11755
11765
|
return __generator(this, function (_a) {
|
|
11756
11766
|
switch (_a.label) {
|
|
11757
|
-
case 0: return [4 /*yield*/, this.lookUpEntity.
|
|
11767
|
+
case 0: return [4 /*yield*/, this.lookUpEntity.getWaypointPhones(query, commonOptions)];
|
|
11758
11768
|
case 1: return [2 /*return*/, _a.sent()];
|
|
11759
11769
|
}
|
|
11760
11770
|
});
|
|
11761
11771
|
});
|
|
11762
11772
|
};
|
|
11763
|
-
|
|
11773
|
+
// ----- Customer
|
|
11774
|
+
Lookup.prototype.getCustomerNames = function (query, commonOptions) {
|
|
11764
11775
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
11765
11776
|
return __awaiter(this, void 0, void 0, function () {
|
|
11766
11777
|
return __generator(this, function (_a) {
|
|
11767
11778
|
switch (_a.label) {
|
|
11768
|
-
case 0: return [4 /*yield*/, this.lookUpEntity.
|
|
11779
|
+
case 0: return [4 /*yield*/, this.lookUpEntity.getCustomerNames(query, commonOptions)];
|
|
11769
11780
|
case 1: return [2 /*return*/, _a.sent()];
|
|
11770
11781
|
}
|
|
11771
11782
|
});
|
|
@@ -11841,13 +11852,14 @@ exports.Routes = {
|
|
|
11841
11852
|
GET_USERS: "".concat(baseRoute, "/user"),
|
|
11842
11853
|
GET_RUNS: "".concat(baseRoute, "/run"),
|
|
11843
11854
|
GET_TASKS_BY_EXTERNAL_ID: "".concat(baseRoute, "/task/external-id"),
|
|
11855
|
+
GET_TASKS_TITLES: "".concat(baseRoute, "/task/title"),
|
|
11844
11856
|
GET_PLANNED_ROUTES: "".concat(baseRoute, "/planned-route"),
|
|
11845
11857
|
GET_TEAMS: "".concat(baseRoute, "/team"),
|
|
11846
11858
|
GET_WAYPOINT_ZIPCODE: "".concat(baseRoute, "/waypoint/zipcode"),
|
|
11847
11859
|
GET_WAYPOINT_ADDRESS: "".concat(baseRoute, "/waypoint/address"),
|
|
11860
|
+
GET_WAYPOINT_PHONE: "".concat(baseRoute, "/waypoint/phone"),
|
|
11848
11861
|
GET_WAYPOINT_CITY: "".concat(baseRoute, "/waypoint/city"),
|
|
11849
11862
|
GET_CUSTOMER_NAMES: "".concat(baseRoute, "/customer/name"),
|
|
11850
|
-
GET_CUSTOMER_PHONES: "".concat(baseRoute, "/customer/phone"),
|
|
11851
11863
|
GET_CUSTOMER_ORIGINAL_PHONES: "".concat(baseRoute, "/customer/original-phone-number")
|
|
11852
11864
|
};
|
|
11853
11865
|
var LookupService = /** @class */ (function () {
|
|
@@ -11884,7 +11896,19 @@ var LookupService = /** @class */ (function () {
|
|
|
11884
11896
|
return [2 /*return*/, this.service.routeGenerator
|
|
11885
11897
|
.get(exports.Routes.GET_TASKS_BY_EXTERNAL_ID)
|
|
11886
11898
|
.withQueryString(query)
|
|
11887
|
-
.setException('Failed to get tasks from lookup service')
|
|
11899
|
+
.setException('Failed to get tasks by external id from lookup service')
|
|
11900
|
+
.withCommonOptions(commonOptions)
|
|
11901
|
+
.invoke()];
|
|
11902
|
+
});
|
|
11903
|
+
});
|
|
11904
|
+
};
|
|
11905
|
+
LookupService.prototype.getTasksTitles = function (query, commonOptions) {
|
|
11906
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11907
|
+
return __generator(this, function (_a) {
|
|
11908
|
+
return [2 /*return*/, this.service.routeGenerator
|
|
11909
|
+
.get(exports.Routes.GET_TASKS_TITLES)
|
|
11910
|
+
.withQueryString(query)
|
|
11911
|
+
.setException('Failed to get tasks titles from lookup service')
|
|
11888
11912
|
.withCommonOptions(commonOptions)
|
|
11889
11913
|
.invoke()];
|
|
11890
11914
|
});
|
|
@@ -11951,26 +11975,26 @@ var LookupService = /** @class */ (function () {
|
|
|
11951
11975
|
});
|
|
11952
11976
|
});
|
|
11953
11977
|
};
|
|
11954
|
-
|
|
11955
|
-
LookupService.prototype.getCustomerNames = function (query, commonOptions) {
|
|
11978
|
+
LookupService.prototype.getWaypointPhones = function (query, commonOptions) {
|
|
11956
11979
|
return __awaiter(this, void 0, void 0, function () {
|
|
11957
11980
|
return __generator(this, function (_a) {
|
|
11958
11981
|
return [2 /*return*/, this.service.routeGenerator
|
|
11959
|
-
.get(exports.Routes.
|
|
11982
|
+
.get(exports.Routes.GET_WAYPOINT_PHONE)
|
|
11960
11983
|
.withQueryString(query)
|
|
11961
|
-
.setException('Failed to get
|
|
11984
|
+
.setException('Failed to get waypoint phones from lookup service')
|
|
11962
11985
|
.withCommonOptions(commonOptions)
|
|
11963
11986
|
.invoke()];
|
|
11964
11987
|
});
|
|
11965
11988
|
});
|
|
11966
11989
|
};
|
|
11967
|
-
|
|
11990
|
+
// ---- Customer
|
|
11991
|
+
LookupService.prototype.getCustomerNames = function (query, commonOptions) {
|
|
11968
11992
|
return __awaiter(this, void 0, void 0, function () {
|
|
11969
11993
|
return __generator(this, function (_a) {
|
|
11970
11994
|
return [2 /*return*/, this.service.routeGenerator
|
|
11971
|
-
.get(exports.Routes.
|
|
11995
|
+
.get(exports.Routes.GET_CUSTOMER_NAMES)
|
|
11972
11996
|
.withQueryString(query)
|
|
11973
|
-
.setException('Failed to get customer
|
|
11997
|
+
.setException('Failed to get customer names from lookup service')
|
|
11974
11998
|
.withCommonOptions(commonOptions)
|
|
11975
11999
|
.invoke()];
|
|
11976
12000
|
});
|
|
@@ -22606,7 +22630,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
22606
22630
|
var BringgException_1 = __webpack_require__(43605);
|
|
22607
22631
|
var Logger_1 = __importDefault(__webpack_require__(55860));
|
|
22608
22632
|
var abort_1 = __webpack_require__(34179);
|
|
22609
|
-
var version = '9.
|
|
22633
|
+
var version = '9.23.0';
|
|
22610
22634
|
function logErrorResponse(response) {
|
|
22611
22635
|
var data = response.data, status = response.status;
|
|
22612
22636
|
try {
|