@bisondesk/core-sdk 1.0.44 → 1.0.46
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/lib/types/leads.d.ts +32 -2
- package/lib/types/leads.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/types/leads.ts +31 -1
- package/tsconfig.tsbuildinfo +16 -14
package/lib/types/leads.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PublicSearchDefinition } from './definitions';
|
|
2
2
|
import { PhoneNumberRawValue, PhoneNumberValue } from './fields';
|
|
3
|
+
import { SearchVehicle } from './vehicles';
|
|
3
4
|
export declare type SearchLead = Lead;
|
|
4
5
|
export declare type RankedSearchLead = SearchLead & {
|
|
5
6
|
score: number;
|
|
@@ -19,6 +20,34 @@ export declare type LeadContact = {
|
|
|
19
20
|
contactId?: string;
|
|
20
21
|
orgNumber?: number;
|
|
21
22
|
};
|
|
23
|
+
export declare type LeadScore = {
|
|
24
|
+
leadId: string;
|
|
25
|
+
score: number;
|
|
26
|
+
scores: {
|
|
27
|
+
name: string;
|
|
28
|
+
value: number;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
export declare type VehicleScore = {
|
|
32
|
+
vehicleId: string;
|
|
33
|
+
score: number;
|
|
34
|
+
};
|
|
35
|
+
export declare type LeadVehicles = {
|
|
36
|
+
vehicles: VehicleScore[];
|
|
37
|
+
};
|
|
38
|
+
export declare type VehicleLeads = {
|
|
39
|
+
leads: LeadScore[];
|
|
40
|
+
};
|
|
41
|
+
export declare type VehicleLeadsResponse = VehicleLeads & {
|
|
42
|
+
leadsById: {
|
|
43
|
+
[leadId: string]: Lead;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare type LeadVehiclesResponse = LeadVehicles & {
|
|
47
|
+
vehiclesById: {
|
|
48
|
+
[leadId: string]: SearchVehicle;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
22
51
|
export declare type LeadStats = {
|
|
23
52
|
lastClientConversation?: string;
|
|
24
53
|
lastClientTx?: string;
|
|
@@ -73,10 +102,11 @@ export declare type InterestSearchRequest = {
|
|
|
73
102
|
};
|
|
74
103
|
export declare type VehicleLeadsSearchRequest = {
|
|
75
104
|
vehicleId: string;
|
|
76
|
-
offset: number;
|
|
77
|
-
limit: number;
|
|
78
105
|
};
|
|
79
106
|
export declare type InterestAutocompleteRequest = {
|
|
80
107
|
vehicleId: string;
|
|
81
108
|
};
|
|
109
|
+
export declare type LeadVehiclesSearchRequest = {
|
|
110
|
+
leadId: string;
|
|
111
|
+
};
|
|
82
112
|
//# sourceMappingURL=leads.d.ts.map
|
package/lib/types/leads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leads.d.ts","sourceRoot":"","sources":["../../src/types/leads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"leads.d.ts","sourceRoot":"","sources":["../../src/types/leads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,oBAAY,UAAU,GAAG,IAAI,CAAC;AAE9B,oBAAY,gBAAgB,GAAG,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D,oBAAY,2BAA2B,GAAG;IACxC,UAAU,EAAE,sBAAsB,CAAC;CACpC,CAAC;AAEF,oBAAY,WAAW,GAAG;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EA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CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1F,oBAAY,yBAAyB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D,oBAAY,2BAA2B,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhE,oBAAY,yBAAyB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bisondesk/core-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.46",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rm -rf build dist lib *.tsbuildinfo",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Ivo Anastácio",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@bisondesk/commons-sdk": "^1.0.
|
|
14
|
+
"@bisondesk/commons-sdk": "^1.0.46",
|
|
15
15
|
"joi": "17.4.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
package/src/types/leads.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PublicSearchDefinition } from './definitions';
|
|
2
2
|
import { PhoneNumberRawValue, PhoneNumberValue } from './fields';
|
|
3
|
+
import { SearchVehicle } from './vehicles';
|
|
3
4
|
|
|
4
5
|
export type SearchLead = Lead;
|
|
5
6
|
|
|
@@ -24,6 +25,33 @@ export type LeadContact = {
|
|
|
24
25
|
orgNumber?: number;
|
|
25
26
|
};
|
|
26
27
|
|
|
28
|
+
export type LeadScore = {
|
|
29
|
+
leadId: string;
|
|
30
|
+
score: number;
|
|
31
|
+
scores: { name: string; value: number }[];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type VehicleScore = {
|
|
35
|
+
vehicleId: string;
|
|
36
|
+
score: number;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type LeadVehicles = {
|
|
40
|
+
vehicles: VehicleScore[];
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type VehicleLeads = {
|
|
44
|
+
leads: LeadScore[];
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type VehicleLeadsResponse = VehicleLeads & {
|
|
48
|
+
leadsById: { [leadId: string]: Lead };
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type LeadVehiclesResponse = LeadVehicles & {
|
|
52
|
+
vehiclesById: { [leadId: string]: SearchVehicle };
|
|
53
|
+
};
|
|
54
|
+
|
|
27
55
|
export type LeadStats = {
|
|
28
56
|
lastClientConversation?: string;
|
|
29
57
|
lastClientTx?: string;
|
|
@@ -81,6 +109,8 @@ export type Interest = {
|
|
|
81
109
|
|
|
82
110
|
export type InterestSearchRequest = { interest: Interest; offset: number; limit: number };
|
|
83
111
|
|
|
84
|
-
export type VehicleLeadsSearchRequest = { vehicleId: string
|
|
112
|
+
export type VehicleLeadsSearchRequest = { vehicleId: string };
|
|
85
113
|
|
|
86
114
|
export type InterestAutocompleteRequest = { vehicleId: string };
|
|
115
|
+
|
|
116
|
+
export type LeadVehiclesSearchRequest = { leadId: string };
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -251,9 +251,19 @@
|
|
|
251
251
|
"signature": "2d7588ceb13fd33b0ee88ce2d70f1cceb285e5bc30ebe854ce2fbec8f50a0049",
|
|
252
252
|
"affectsGlobalScope": false
|
|
253
253
|
},
|
|
254
|
+
"../commons-sdk/lib/hyperdms.d.ts": {
|
|
255
|
+
"version": "c595eb3153f5cf2168277d4bffad928a5da6c7ea4063a6c701da9298a2598785",
|
|
256
|
+
"signature": "c595eb3153f5cf2168277d4bffad928a5da6c7ea4063a6c701da9298a2598785",
|
|
257
|
+
"affectsGlobalScope": false
|
|
258
|
+
},
|
|
259
|
+
"./src/types/vehicles.ts": {
|
|
260
|
+
"version": "d80e1c32f2a7dc169c6ae32d3a4a3a6aa9af682da5f25c6d82792ed14d0a8a5d",
|
|
261
|
+
"signature": "c81f5fd5856243205ed059c435d03e6dfd461405a003980507fa9c1c5be80b39",
|
|
262
|
+
"affectsGlobalScope": false
|
|
263
|
+
},
|
|
254
264
|
"./src/types/leads.ts": {
|
|
255
|
-
"version": "
|
|
256
|
-
"signature": "
|
|
265
|
+
"version": "4d5f6742469230a12ff789e0a7629dd0cf287c4269c94cadf91e49cd373dbc9e",
|
|
266
|
+
"signature": "1d67c2bac30d2512a56f4f70135e8f945b05fb641a8d4ae35cb5fb318a96324d",
|
|
257
267
|
"affectsGlobalScope": false
|
|
258
268
|
},
|
|
259
269
|
"./src/types/picklists.ts": {
|
|
@@ -281,16 +291,6 @@
|
|
|
281
291
|
"signature": "6b21c8243a725708324d0ed2f1adaa86135598b7ab251e90bae93117e74de6b6",
|
|
282
292
|
"affectsGlobalScope": false
|
|
283
293
|
},
|
|
284
|
-
"../commons-sdk/lib/hyperdms.d.ts": {
|
|
285
|
-
"version": "c595eb3153f5cf2168277d4bffad928a5da6c7ea4063a6c701da9298a2598785",
|
|
286
|
-
"signature": "c595eb3153f5cf2168277d4bffad928a5da6c7ea4063a6c701da9298a2598785",
|
|
287
|
-
"affectsGlobalScope": false
|
|
288
|
-
},
|
|
289
|
-
"./src/types/vehicles.ts": {
|
|
290
|
-
"version": "d80e1c32f2a7dc169c6ae32d3a4a3a6aa9af682da5f25c6d82792ed14d0a8a5d",
|
|
291
|
-
"signature": "c81f5fd5856243205ed059c435d03e6dfd461405a003980507fa9c1c5be80b39",
|
|
292
|
-
"affectsGlobalScope": false
|
|
293
|
-
},
|
|
294
294
|
"../../node_modules/@types/node/globals.d.ts": {
|
|
295
295
|
"version": "25b4a0c4fab47c373ee49df4c239826ee3430019fc0c1b5e59edc3e398b7468d",
|
|
296
296
|
"signature": "25b4a0c4fab47c373ee49df4c239826ee3430019fc0c1b5e59edc3e398b7468d",
|
|
@@ -1956,7 +1956,8 @@
|
|
|
1956
1956
|
],
|
|
1957
1957
|
"./src/types/leads.ts": [
|
|
1958
1958
|
"./src/types/definitions.ts",
|
|
1959
|
-
"./src/types/fields.ts"
|
|
1959
|
+
"./src/types/fields.ts",
|
|
1960
|
+
"./src/types/vehicles.ts"
|
|
1960
1961
|
],
|
|
1961
1962
|
"./src/types/picklists.ts": [
|
|
1962
1963
|
"../commons-sdk/lib/types.d.ts"
|
|
@@ -2771,7 +2772,8 @@
|
|
|
2771
2772
|
],
|
|
2772
2773
|
"./src/types/leads.ts": [
|
|
2773
2774
|
"./src/types/definitions.ts",
|
|
2774
|
-
"./src/types/fields.ts"
|
|
2775
|
+
"./src/types/fields.ts",
|
|
2776
|
+
"./src/types/vehicles.ts"
|
|
2775
2777
|
],
|
|
2776
2778
|
"./src/types/picklists.ts": [
|
|
2777
2779
|
"../commons-sdk/lib/types.d.ts"
|