@bisondesk/core-sdk 1.0.15 → 1.0.17
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/constants.d.ts +9 -0
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +13 -1
- package/lib/constants.js.map +1 -1
- package/lib/types/crm.d.ts +18 -8
- package/lib/types/crm.d.ts.map +1 -1
- package/lib/types/interests.d.ts +34 -0
- package/lib/types/interests.d.ts.map +1 -0
- package/lib/types/interests.js +3 -0
- package/lib/types/interests.js.map +1 -0
- package/lib/types/picklists.d.ts +4 -4
- package/lib/types/picklists.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/constants.ts +13 -0
- package/src/types/crm.ts +21 -2
- package/src/types/interests.ts +18 -0
- package/src/types/picklists.ts +4 -4
- package/tsconfig.tsbuildinfo +23 -9
package/lib/constants.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
export declare const APP_LANGUAGES_PICKLIST_ID = "appLanguages";
|
|
2
2
|
export declare const TIMEZONES_PICKLIST_ID = "timezones";
|
|
3
3
|
export declare const COUNTRIES_PICKLIST_ID = "countries";
|
|
4
|
+
export declare const BODYWORKS_PICKLIST_ID = "bodywork";
|
|
5
|
+
export declare const CABINS_PICKLIST_ID = "cabin";
|
|
6
|
+
export declare const CATEGORIES_PICKLIST_ID = "category";
|
|
7
|
+
export declare const CONFIGURATIONS_PICKLIST_ID = "configuration";
|
|
8
|
+
export declare const EURONORMS_PICKLIST_ID = "euronorm";
|
|
9
|
+
export declare const TRANSMISSIONS_PICKLIST_ID = "gearbox";
|
|
10
|
+
export declare const MAKES_PICKLIST_ID = "make";
|
|
11
|
+
export declare const MAKE_MODELS_PICKLIST_ID = "make_model";
|
|
12
|
+
export declare const SUSPENSIONS_PICKLIST_ID = "suspension";
|
|
4
13
|
export declare const MAX_SORT_PRIORITY = 10000;
|
|
5
14
|
export declare const MIN_SORT_PRIORITY = 1;
|
|
6
15
|
export declare const FILTER_RANGE_SEPARATOR = "__";
|
package/lib/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AACxD,eAAO,MAAM,qBAAqB,cAAc,CAAC;AACjD,eAAO,MAAM,qBAAqB,cAAc,CAAC;AAKjD,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AACvC,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAKnC,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,yBAAyB,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AACxD,eAAO,MAAM,qBAAqB,cAAc,CAAC;AACjD,eAAO,MAAM,qBAAqB,cAAc,CAAC;AAKjD,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAChD,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAC1C,eAAO,MAAM,sBAAsB,aAAa,CAAC;AACjD,eAAO,MAAM,0BAA0B,kBAAkB,CAAC;AAC1D,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAChD,eAAO,MAAM,yBAAyB,YAAY,CAAC;AACnD,eAAO,MAAM,iBAAiB,SAAS,CAAC;AACxC,eAAO,MAAM,uBAAuB,eAAe,CAAC;AACpD,eAAO,MAAM,uBAAuB,eAAe,CAAC;AAKpD,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AACvC,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAKnC,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,yBAAyB,OAAO,CAAC"}
|
package/lib/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FILTER_MULTIPLE_SEPARATOR = exports.FILTER_RANGE_SEPARATOR = exports.MIN_SORT_PRIORITY = exports.MAX_SORT_PRIORITY = exports.COUNTRIES_PICKLIST_ID = exports.TIMEZONES_PICKLIST_ID = exports.APP_LANGUAGES_PICKLIST_ID = void 0;
|
|
3
|
+
exports.FILTER_MULTIPLE_SEPARATOR = exports.FILTER_RANGE_SEPARATOR = exports.MIN_SORT_PRIORITY = exports.MAX_SORT_PRIORITY = exports.SUSPENSIONS_PICKLIST_ID = exports.MAKE_MODELS_PICKLIST_ID = exports.MAKES_PICKLIST_ID = exports.TRANSMISSIONS_PICKLIST_ID = exports.EURONORMS_PICKLIST_ID = exports.CONFIGURATIONS_PICKLIST_ID = exports.CATEGORIES_PICKLIST_ID = exports.CABINS_PICKLIST_ID = exports.BODYWORKS_PICKLIST_ID = exports.COUNTRIES_PICKLIST_ID = exports.TIMEZONES_PICKLIST_ID = exports.APP_LANGUAGES_PICKLIST_ID = void 0;
|
|
4
4
|
//
|
|
5
5
|
// STATIC PICKLIST IDS
|
|
6
6
|
//
|
|
@@ -8,6 +8,18 @@ exports.APP_LANGUAGES_PICKLIST_ID = 'appLanguages';
|
|
|
8
8
|
exports.TIMEZONES_PICKLIST_ID = 'timezones';
|
|
9
9
|
exports.COUNTRIES_PICKLIST_ID = 'countries';
|
|
10
10
|
//
|
|
11
|
+
// STATIC PICKLIST IDS FROM HyperDMS
|
|
12
|
+
//
|
|
13
|
+
exports.BODYWORKS_PICKLIST_ID = 'bodywork';
|
|
14
|
+
exports.CABINS_PICKLIST_ID = 'cabin';
|
|
15
|
+
exports.CATEGORIES_PICKLIST_ID = 'category';
|
|
16
|
+
exports.CONFIGURATIONS_PICKLIST_ID = 'configuration';
|
|
17
|
+
exports.EURONORMS_PICKLIST_ID = 'euronorm';
|
|
18
|
+
exports.TRANSMISSIONS_PICKLIST_ID = 'gearbox';
|
|
19
|
+
exports.MAKES_PICKLIST_ID = 'make';
|
|
20
|
+
exports.MAKE_MODELS_PICKLIST_ID = 'make_model';
|
|
21
|
+
exports.SUSPENSIONS_PICKLIST_ID = 'suspension';
|
|
22
|
+
//
|
|
11
23
|
// PICKLIST CONSTANTS
|
|
12
24
|
//
|
|
13
25
|
exports.MAX_SORT_PRIORITY = 10000;
|
package/lib/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAA,EAAE;AACF,sBAAsB;AACtB,EAAE;AACW,QAAA,yBAAyB,GAAG,cAAc,CAAC;AAC3C,QAAA,qBAAqB,GAAG,WAAW,CAAC;AACpC,QAAA,qBAAqB,GAAG,WAAW,CAAC;AAEjD,EAAE;AACF,qBAAqB;AACrB,EAAE;AACW,QAAA,iBAAiB,GAAG,KAAK,CAAC;AAC1B,QAAA,iBAAiB,GAAG,CAAC,CAAC;AAEnC,EAAE;AACF,SAAS;AACT,EAAE;AACW,QAAA,sBAAsB,GAAG,IAAI,CAAC;AAC9B,QAAA,yBAAyB,GAAG,IAAI,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAA,EAAE;AACF,sBAAsB;AACtB,EAAE;AACW,QAAA,yBAAyB,GAAG,cAAc,CAAC;AAC3C,QAAA,qBAAqB,GAAG,WAAW,CAAC;AACpC,QAAA,qBAAqB,GAAG,WAAW,CAAC;AAEjD,EAAE;AACF,oCAAoC;AACpC,EAAE;AACW,QAAA,qBAAqB,GAAG,UAAU,CAAC;AACnC,QAAA,kBAAkB,GAAG,OAAO,CAAC;AAC7B,QAAA,sBAAsB,GAAG,UAAU,CAAC;AACpC,QAAA,0BAA0B,GAAG,eAAe,CAAC;AAC7C,QAAA,qBAAqB,GAAG,UAAU,CAAC;AACnC,QAAA,yBAAyB,GAAG,SAAS,CAAC;AACtC,QAAA,iBAAiB,GAAG,MAAM,CAAC;AAC3B,QAAA,uBAAuB,GAAG,YAAY,CAAC;AACvC,QAAA,uBAAuB,GAAG,YAAY,CAAC;AAEpD,EAAE;AACF,qBAAqB;AACrB,EAAE;AACW,QAAA,iBAAiB,GAAG,KAAK,CAAC;AAC1B,QAAA,iBAAiB,GAAG,CAAC,CAAC;AAEnC,EAAE;AACF,SAAS;AACT,EAAE;AACW,QAAA,sBAAsB,GAAG,IAAI,CAAC;AAC9B,QAAA,yBAAyB,GAAG,IAAI,CAAC"}
|
package/lib/types/crm.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PhoneNumberValue } from './fields';
|
|
2
|
+
import { VehicleInterest } from './interests';
|
|
1
3
|
export declare type Organization = {
|
|
2
4
|
countryCode: string;
|
|
3
5
|
createdAt: string;
|
|
@@ -25,14 +27,22 @@ export declare type Contact = {
|
|
|
25
27
|
lastName: string;
|
|
26
28
|
createdAt: string;
|
|
27
29
|
createdBy: string;
|
|
28
|
-
phones:
|
|
29
|
-
|
|
30
|
-
value: string;
|
|
31
|
-
}[];
|
|
32
|
-
emails: {
|
|
33
|
-
label: string;
|
|
34
|
-
value: string;
|
|
35
|
-
}[];
|
|
30
|
+
phones: PhoneNumberValue[];
|
|
31
|
+
emails: string[];
|
|
36
32
|
job?: string;
|
|
37
33
|
};
|
|
34
|
+
export declare type LeadContact = {
|
|
35
|
+
accountManager: string;
|
|
36
|
+
companyName?: string;
|
|
37
|
+
country: string;
|
|
38
|
+
email?: string;
|
|
39
|
+
language?: string;
|
|
40
|
+
name: string;
|
|
41
|
+
phone?: PhoneNumberValue;
|
|
42
|
+
remarks?: string;
|
|
43
|
+
};
|
|
44
|
+
export declare type Lead = {
|
|
45
|
+
contact: LeadContact;
|
|
46
|
+
interests: VehicleInterest[];
|
|
47
|
+
};
|
|
38
48
|
//# sourceMappingURL=crm.d.ts.map
|
package/lib/types/crm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crm.d.ts","sourceRoot":"","sources":["../../src/types/crm.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,kBAAkB,GAAG;IAC/B,GAAG,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAC5B,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,GAAG,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;CAC3B,CAAC;AAEF,oBAAY,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"crm.d.ts","sourceRoot":"","sources":["../../src/types/crm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,oBAAY,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,M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AAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare type VehicleInterest = {
|
|
2
|
+
adr?: boolean;
|
|
3
|
+
ageRange?: {
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
};
|
|
7
|
+
axleConfigurations?: string[];
|
|
8
|
+
bodywork?: string;
|
|
9
|
+
category: string;
|
|
10
|
+
crane?: boolean;
|
|
11
|
+
damaged?: boolean;
|
|
12
|
+
emissionsRange?: {
|
|
13
|
+
min: number;
|
|
14
|
+
max: number;
|
|
15
|
+
};
|
|
16
|
+
horsepowerRange?: {
|
|
17
|
+
min: number;
|
|
18
|
+
max: number;
|
|
19
|
+
};
|
|
20
|
+
kilometersRange?: {
|
|
21
|
+
min: number;
|
|
22
|
+
max: number;
|
|
23
|
+
};
|
|
24
|
+
makes?: string[];
|
|
25
|
+
models?: string[];
|
|
26
|
+
priceRange?: {
|
|
27
|
+
min: number;
|
|
28
|
+
max: number;
|
|
29
|
+
};
|
|
30
|
+
retarderIntarder?: boolean;
|
|
31
|
+
suspensions?: string[];
|
|
32
|
+
tailgate?: boolean;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=interests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interests.d.ts","sourceRoot":"","sources":["../../src/types/interests.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe,GAAG;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,eAAe,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/C,eAAe,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interests.js","sourceRoot":"","sources":["../../src/types/interests.ts"],"names":[],"mappings":""}
|
package/lib/types/picklists.d.ts
CHANGED
|
@@ -5,9 +5,12 @@ export declare type PicklistValueUpdateRequest = {
|
|
|
5
5
|
};
|
|
6
6
|
export declare type NewPicklistValue = {
|
|
7
7
|
color?: string;
|
|
8
|
-
customId?: string;
|
|
9
8
|
sortPriority?: number;
|
|
10
9
|
titles: MultiLangValue;
|
|
10
|
+
dependency?: {
|
|
11
|
+
fieldId: string;
|
|
12
|
+
values: string[];
|
|
13
|
+
};
|
|
11
14
|
};
|
|
12
15
|
export declare type PicklistValue = NewPicklistValue & {
|
|
13
16
|
id: string;
|
|
@@ -40,7 +43,6 @@ export declare type PicklistOptionsRequest = {
|
|
|
40
43
|
lang: string;
|
|
41
44
|
};
|
|
42
45
|
export declare type QuickAddPicklistValue = {
|
|
43
|
-
customId?: string;
|
|
44
46
|
sortPriority?: number;
|
|
45
47
|
titles: MultiLangValue;
|
|
46
48
|
};
|
|
@@ -48,14 +50,12 @@ export declare type NewPicklist = {
|
|
|
48
50
|
titles: MultiLangValue;
|
|
49
51
|
values: QuickAddPicklistValue[];
|
|
50
52
|
customSort?: boolean;
|
|
51
|
-
customId?: string;
|
|
52
53
|
};
|
|
53
54
|
export declare type BasePicklist = {
|
|
54
55
|
customSort?: boolean;
|
|
55
56
|
id: string;
|
|
56
57
|
system?: boolean;
|
|
57
58
|
titles: MultiLangValue;
|
|
58
|
-
customId?: string;
|
|
59
59
|
};
|
|
60
60
|
export declare type PicklistInfo = BasePicklist & {
|
|
61
61
|
count: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picklists.d.ts","sourceRoot":"","sources":["../../src/types/picklists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAKlE,oBAAY,0BAA0B,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,GAAG,gBAAgB,CAAC;CACzC,CAAC;AACF,oBAAY,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"picklists.d.ts","sourceRoot":"","sources":["../../src/types/picklists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAKlE,oBAAY,0BAA0B,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,GAAG,gBAAgB,CAAC;CACzC,CAAC;AACF,oBAAY,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,CAAC,EAAE;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACH,CAAC;AACF,oBAAY,aAAa,GAAG,gBAAgB,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,MAAM,CAAC;CACpB,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.17",
|
|
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.17",
|
|
15
15
|
"joi": "17.4.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
package/src/constants.ts
CHANGED
|
@@ -5,6 +5,19 @@ export const APP_LANGUAGES_PICKLIST_ID = 'appLanguages';
|
|
|
5
5
|
export const TIMEZONES_PICKLIST_ID = 'timezones';
|
|
6
6
|
export const COUNTRIES_PICKLIST_ID = 'countries';
|
|
7
7
|
|
|
8
|
+
//
|
|
9
|
+
// STATIC PICKLIST IDS FROM HyperDMS
|
|
10
|
+
//
|
|
11
|
+
export const BODYWORKS_PICKLIST_ID = 'bodywork';
|
|
12
|
+
export const CABINS_PICKLIST_ID = 'cabin';
|
|
13
|
+
export const CATEGORIES_PICKLIST_ID = 'category';
|
|
14
|
+
export const CONFIGURATIONS_PICKLIST_ID = 'configuration';
|
|
15
|
+
export const EURONORMS_PICKLIST_ID = 'euronorm';
|
|
16
|
+
export const TRANSMISSIONS_PICKLIST_ID = 'gearbox';
|
|
17
|
+
export const MAKES_PICKLIST_ID = 'make';
|
|
18
|
+
export const MAKE_MODELS_PICKLIST_ID = 'make_model';
|
|
19
|
+
export const SUSPENSIONS_PICKLIST_ID = 'suspension';
|
|
20
|
+
|
|
8
21
|
//
|
|
9
22
|
// PICKLIST CONSTANTS
|
|
10
23
|
//
|
package/src/types/crm.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { PhoneNumberValue } from './fields';
|
|
2
|
+
import { VehicleInterest } from './interests';
|
|
3
|
+
|
|
1
4
|
export type Organization = {
|
|
2
5
|
countryCode: string;
|
|
3
6
|
createdAt: string;
|
|
@@ -28,7 +31,23 @@ export type Contact = {
|
|
|
28
31
|
lastName: string;
|
|
29
32
|
createdAt: string;
|
|
30
33
|
createdBy: string;
|
|
31
|
-
phones:
|
|
32
|
-
emails:
|
|
34
|
+
phones: PhoneNumberValue[];
|
|
35
|
+
emails: string[];
|
|
33
36
|
job?: string;
|
|
34
37
|
};
|
|
38
|
+
|
|
39
|
+
export type LeadContact = {
|
|
40
|
+
accountManager: string;
|
|
41
|
+
companyName?: string;
|
|
42
|
+
country: string;
|
|
43
|
+
email?: string;
|
|
44
|
+
language?: string;
|
|
45
|
+
name: string;
|
|
46
|
+
phone?: PhoneNumberValue;
|
|
47
|
+
remarks?: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export type Lead = {
|
|
51
|
+
contact: LeadContact;
|
|
52
|
+
interests: VehicleInterest[];
|
|
53
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type VehicleInterest = {
|
|
2
|
+
adr?: boolean;
|
|
3
|
+
ageRange?: { min: number; max: number };
|
|
4
|
+
axleConfigurations?: string[];
|
|
5
|
+
bodywork?: string;
|
|
6
|
+
category: string;
|
|
7
|
+
crane?: boolean;
|
|
8
|
+
damaged?: boolean;
|
|
9
|
+
emissionsRange?: { min: number; max: number };
|
|
10
|
+
horsepowerRange?: { min: number; max: number };
|
|
11
|
+
kilometersRange?: { min: number; max: number };
|
|
12
|
+
makes?: string[];
|
|
13
|
+
models?: string[];
|
|
14
|
+
priceRange?: { min: number; max: number };
|
|
15
|
+
retarderIntarder?: boolean;
|
|
16
|
+
suspensions?: string[];
|
|
17
|
+
tailgate?: boolean;
|
|
18
|
+
};
|
package/src/types/picklists.ts
CHANGED
|
@@ -9,9 +9,12 @@ export type PicklistValueUpdateRequest = {
|
|
|
9
9
|
};
|
|
10
10
|
export type NewPicklistValue = {
|
|
11
11
|
color?: string;
|
|
12
|
-
customId?: string;
|
|
13
12
|
sortPriority?: number;
|
|
14
13
|
titles: MultiLangValue;
|
|
14
|
+
dependency?: {
|
|
15
|
+
fieldId: string;
|
|
16
|
+
values: string[];
|
|
17
|
+
};
|
|
15
18
|
};
|
|
16
19
|
export type PicklistValue = NewPicklistValue & {
|
|
17
20
|
id: string;
|
|
@@ -44,7 +47,6 @@ export type PicklistOptionsRequest = {
|
|
|
44
47
|
lang: string;
|
|
45
48
|
};
|
|
46
49
|
export type QuickAddPicklistValue = {
|
|
47
|
-
customId?: string;
|
|
48
50
|
sortPriority?: number;
|
|
49
51
|
titles: MultiLangValue;
|
|
50
52
|
};
|
|
@@ -52,14 +54,12 @@ export type NewPicklist = {
|
|
|
52
54
|
titles: MultiLangValue;
|
|
53
55
|
values: QuickAddPicklistValue[];
|
|
54
56
|
customSort?: boolean;
|
|
55
|
-
customId?: string;
|
|
56
57
|
};
|
|
57
58
|
export type BasePicklist = {
|
|
58
59
|
customSort?: boolean;
|
|
59
60
|
id: string;
|
|
60
61
|
system?: boolean;
|
|
61
62
|
titles: MultiLangValue;
|
|
62
|
-
customId?: string;
|
|
63
63
|
};
|
|
64
64
|
export type PicklistInfo = BasePicklist & {
|
|
65
65
|
count: number;
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -217,13 +217,8 @@
|
|
|
217
217
|
"affectsGlobalScope": true
|
|
218
218
|
},
|
|
219
219
|
"./src/constants.ts": {
|
|
220
|
-
"version": "
|
|
221
|
-
"signature": "
|
|
222
|
-
"affectsGlobalScope": false
|
|
223
|
-
},
|
|
224
|
-
"./src/types/crm.ts": {
|
|
225
|
-
"version": "ca434b60fb8a49a9f37e056e31d870c053e965359d645c6be8ac997716f49d21",
|
|
226
|
-
"signature": "49f268113541b33e300c94ed6123bb2ab43d383b3eec2d2755d8fbbfaf125793",
|
|
220
|
+
"version": "fc1dd37bd30e8e88b6a124c274a2e7bbdc5edb3fa43434dd186e2cffa6b49df4",
|
|
221
|
+
"signature": "7f7fa2fc5104dac5f2b8dea08f82d27c0cd93d7c5ecd1b68de6c5fb976dee0ad",
|
|
227
222
|
"affectsGlobalScope": false
|
|
228
223
|
},
|
|
229
224
|
"../commons-sdk/lib/types.d.ts": {
|
|
@@ -236,6 +231,16 @@
|
|
|
236
231
|
"signature": "45e95dbe99decdf0c4b706a2fd94492b92b05f96ab7cc59d43448202a4a3b226",
|
|
237
232
|
"affectsGlobalScope": false
|
|
238
233
|
},
|
|
234
|
+
"./src/types/interests.ts": {
|
|
235
|
+
"version": "ec434a06a40b1a7d5b1e4ed301be2f5d8e52f36bddcb397bad7cac2b713207e3",
|
|
236
|
+
"signature": "6af980f9590cc1ff3178ca2ffc50ce96b8ca210065a254d3c2001047571030e7",
|
|
237
|
+
"affectsGlobalScope": false
|
|
238
|
+
},
|
|
239
|
+
"./src/types/crm.ts": {
|
|
240
|
+
"version": "145a028ceb01e2511a6ce0689034be797f5dfafd4bc4eb2e0832094d91574d4f",
|
|
241
|
+
"signature": "d9d3c17e634e3a00ec0e36f5ac42542dbe795c6bc442c07c11eb272d808efd07",
|
|
242
|
+
"affectsGlobalScope": false
|
|
243
|
+
},
|
|
239
244
|
"./src/types/search.ts": {
|
|
240
245
|
"version": "31fee677dbd8330ebebb362a03aedbce58e1081d0edb4647da96a880e64a5844",
|
|
241
246
|
"signature": "b0211290f21c79f0d7cc0b273488129e89a337883c56a1246a5399542e5e7253",
|
|
@@ -252,8 +257,8 @@
|
|
|
252
257
|
"affectsGlobalScope": false
|
|
253
258
|
},
|
|
254
259
|
"./src/types/picklists.ts": {
|
|
255
|
-
"version": "
|
|
256
|
-
"signature": "
|
|
260
|
+
"version": "5aab0876d4935d2921a30ffa8c340aa96e8eda7480b916983a2790d5ce2eed2e",
|
|
261
|
+
"signature": "4e28a4947f24afddd497af283df2b55c8456c1ecf8109abf90f229358f9901ee",
|
|
257
262
|
"affectsGlobalScope": false
|
|
258
263
|
},
|
|
259
264
|
"./src/types/storage.ts": {
|
|
@@ -1928,6 +1933,10 @@
|
|
|
1928
1933
|
"../../node_modules/pretty-format/build/index.d.ts": [
|
|
1929
1934
|
"../../node_modules/pretty-format/build/types.d.ts"
|
|
1930
1935
|
],
|
|
1936
|
+
"./src/types/crm.ts": [
|
|
1937
|
+
"./src/types/fields.ts",
|
|
1938
|
+
"./src/types/interests.ts"
|
|
1939
|
+
],
|
|
1931
1940
|
"./src/types/definitions.ts": [
|
|
1932
1941
|
"./src/types/fields.ts",
|
|
1933
1942
|
"./src/types/search.ts"
|
|
@@ -2730,6 +2739,10 @@
|
|
|
2730
2739
|
"../../node_modules/pretty-format/build/index.d.ts": [
|
|
2731
2740
|
"../../node_modules/pretty-format/build/types.d.ts"
|
|
2732
2741
|
],
|
|
2742
|
+
"./src/types/crm.ts": [
|
|
2743
|
+
"./src/types/fields.ts",
|
|
2744
|
+
"./src/types/interests.ts"
|
|
2745
|
+
],
|
|
2733
2746
|
"./src/types/definitions.ts": [
|
|
2734
2747
|
"./src/types/fields.ts",
|
|
2735
2748
|
"./src/types/search.ts"
|
|
@@ -2968,6 +2981,7 @@
|
|
|
2968
2981
|
"./src/types/definitions.ts",
|
|
2969
2982
|
"./src/types/events.ts",
|
|
2970
2983
|
"./src/types/fields.ts",
|
|
2984
|
+
"./src/types/interests.ts",
|
|
2971
2985
|
"./src/types/picklists.ts",
|
|
2972
2986
|
"./src/types/search.ts",
|
|
2973
2987
|
"./src/types/storage.ts",
|