@bisondesk/website-commons-sdk 1.0.35 → 1.0.37
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/fields.d.ts +3 -1
- package/lib/types/fields.d.ts.map +1 -1
- package/lib/types/fields.js +1 -0
- package/lib/types/fields.js.map +1 -1
- package/lib/types/search.d.ts +1 -0
- package/lib/types/search.d.ts.map +1 -1
- package/lib/types/search.js.map +1 -1
- package/lib/types/user-searches.d.ts +6 -49
- package/lib/types/user-searches.d.ts.map +1 -1
- package/lib/types/user-searches.js +1 -1
- package/lib/types/user-searches.js.map +1 -1
- package/lib/types/user.d.ts +10 -159
- package/lib/types/user.d.ts.map +1 -1
- package/lib/types/user.js +0 -23
- package/lib/types/user.js.map +1 -1
- package/lib/types/vehicle.d.ts +21 -0
- package/lib/types/vehicle.d.ts.map +1 -1
- package/lib/types/vehicle.js.map +1 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/vehicle.d.ts.map +1 -1
- package/package.json +3 -6
- package/src/types/fields.ts +2 -0
- package/src/types/search.ts +1 -0
- package/src/types/user-searches.ts +1 -1
- package/src/types/user.ts +17 -27
- package/src/types/vehicle.ts +21 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/types/mailing-list.d.ts +0 -65
- package/lib/types/mailing-list.d.ts.map +0 -1
- package/lib/types/mailing-list.js +0 -27
- package/lib/types/mailing-list.js.map +0 -1
- package/src/types/mailing-list.ts +0 -44
package/src/types/fields.ts
CHANGED
|
@@ -4,6 +4,7 @@ export enum FieldTypes {
|
|
|
4
4
|
chip = 'chip',
|
|
5
5
|
boolean = 'boolean',
|
|
6
6
|
country = 'country',
|
|
7
|
+
color = 'color',
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
//
|
|
@@ -64,6 +65,7 @@ type BaseNumberMeta = {
|
|
|
64
65
|
| {
|
|
65
66
|
style: 'unit';
|
|
66
67
|
unit: NumberUnit;
|
|
68
|
+
unitDisplay?: 'long' | 'short' | 'narrow';
|
|
67
69
|
}
|
|
68
70
|
| {
|
|
69
71
|
style?: 'currency' | 'decimal' | 'percent';
|
package/src/types/search.ts
CHANGED
package/src/types/user.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { MarketingChannel } from './index.js';
|
|
3
2
|
|
|
4
3
|
export type AuthRequest = {
|
|
@@ -11,29 +10,20 @@ export enum FleetSize {
|
|
|
11
10
|
Large = '6+',
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
export
|
|
15
|
-
firstName
|
|
16
|
-
lastName
|
|
17
|
-
phone
|
|
18
|
-
preferredLanguage
|
|
19
|
-
fleetSize
|
|
20
|
-
trader
|
|
21
|
-
email
|
|
22
|
-
company:
|
|
23
|
-
country
|
|
24
|
-
city
|
|
25
|
-
name
|
|
26
|
-
vat
|
|
27
|
-
postalCode
|
|
28
|
-
}
|
|
29
|
-
marketingChannels:
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export type UserDetails = z.infer<typeof UserDetails>;
|
|
33
|
-
|
|
34
|
-
export const UserDetailsRequest = z.object({
|
|
35
|
-
subsribeToNewsletter: z.boolean().optional(),
|
|
36
|
-
data: UserDetails,
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
export type UserDetailsRequest = z.infer<typeof UserDetailsRequest>;
|
|
13
|
+
export type UserDetails = {
|
|
14
|
+
firstName?: string;
|
|
15
|
+
lastName?: string;
|
|
16
|
+
phone?: string;
|
|
17
|
+
preferredLanguage?: string;
|
|
18
|
+
fleetSize?: FleetSize;
|
|
19
|
+
trader?: boolean;
|
|
20
|
+
email?: string;
|
|
21
|
+
company: {
|
|
22
|
+
country?: string;
|
|
23
|
+
city?: string | undefined;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
vat?: string | undefined;
|
|
26
|
+
postalCode?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
marketingChannels: MarketingChannel[];
|
|
29
|
+
};
|
package/src/types/vehicle.ts
CHANGED
|
@@ -40,10 +40,20 @@ export type VehicleExternalInfo = {
|
|
|
40
40
|
width?: number;
|
|
41
41
|
};
|
|
42
42
|
doorCount?: number;
|
|
43
|
+
fifthWheelHeight?: number;
|
|
44
|
+
internalDimensions?: {
|
|
45
|
+
height?: number;
|
|
46
|
+
length?: number;
|
|
47
|
+
width?: number;
|
|
48
|
+
};
|
|
43
49
|
interior?: {
|
|
44
50
|
bedCount?: number;
|
|
45
51
|
seatCount?: number;
|
|
46
52
|
};
|
|
53
|
+
kingpin?: {
|
|
54
|
+
size?: number;
|
|
55
|
+
capacity?: number;
|
|
56
|
+
};
|
|
47
57
|
};
|
|
48
58
|
mainPicture?: AttachmentValue;
|
|
49
59
|
pictures?: AttachmentValue[];
|
|
@@ -58,6 +68,9 @@ export type VehicleExternalInfo = {
|
|
|
58
68
|
general: {
|
|
59
69
|
bodystyle?: string;
|
|
60
70
|
category: string;
|
|
71
|
+
color?: {
|
|
72
|
+
mainColorHex?: string;
|
|
73
|
+
};
|
|
61
74
|
make?: string;
|
|
62
75
|
model?: string;
|
|
63
76
|
modelName?: string;
|
|
@@ -116,6 +129,12 @@ export type VehicleExternalInfo = {
|
|
|
116
129
|
};
|
|
117
130
|
};
|
|
118
131
|
superstructure?: VehicleSuperstructure;
|
|
132
|
+
trailers?: {
|
|
133
|
+
cooler?: {
|
|
134
|
+
hasCooler?: boolean;
|
|
135
|
+
make?: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
119
138
|
weights?: {
|
|
120
139
|
gvw?: number;
|
|
121
140
|
massEmpty?: number;
|
|
@@ -181,6 +200,7 @@ export type VehicleAxlesInfo = {
|
|
|
181
200
|
details?: VehicleAxle[];
|
|
182
201
|
configuration?: string;
|
|
183
202
|
count?: number;
|
|
203
|
+
loadCapacity?: number;
|
|
184
204
|
poweredAxlesCount?: number;
|
|
185
205
|
wheelbase?: number;
|
|
186
206
|
suspension?: 'Air' | 'Air/Steel' | 'Steel';
|
|
@@ -198,6 +218,7 @@ export type VehicleAxle = {
|
|
|
198
218
|
powered?: boolean;
|
|
199
219
|
reduction?: string;
|
|
200
220
|
steering?: boolean;
|
|
221
|
+
steeringType?: 'fixed' | 'self_steering' | 'hydraulic';
|
|
201
222
|
suspension?: 'Steel' | 'Air' | 'Hydraulic';
|
|
202
223
|
twinWheels?: boolean;
|
|
203
224
|
tyreSize?: string;
|