@bisondesk/core-sdk 1.0.414 → 1.0.416
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/apis/leasing.d.ts +1 -0
- package/lib/apis/leasing.d.ts.map +1 -1
- package/lib/apis/leasing.js +11 -1
- package/lib/apis/leasing.js.map +1 -1
- package/lib/apis/vehicle-sales.d.ts +12 -4
- package/lib/apis/vehicle-sales.d.ts.map +1 -1
- package/lib/apis/vehicle-sales.js +18 -14
- package/lib/apis/vehicle-sales.js.map +1 -1
- package/lib/constants.d.ts +2 -0
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +2 -0
- package/lib/constants.js.map +1 -1
- package/lib/types/opportunities.d.ts +1 -0
- package/lib/types/opportunities.d.ts.map +1 -1
- package/lib/types/opportunities.js.map +1 -1
- package/lib/types/vehicles.d.ts +38 -2
- package/lib/types/vehicles.d.ts.map +1 -1
- package/lib/types/vehicles.js +31 -0
- package/lib/types/vehicles.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/leasing.ts +15 -1
- package/src/apis/vehicle-sales.ts +22 -14
- package/src/constants.ts +2 -0
- package/src/types/opportunities.ts +1 -0
- package/src/types/vehicles.ts +37 -1
- package/tsconfig.tsbuildinfo +1 -1
package/src/types/vehicles.ts
CHANGED
|
@@ -17,6 +17,37 @@ export enum VehicleRoles {
|
|
|
17
17
|
RENTAL = 'RENTAL',
|
|
18
18
|
BUILD = 'BUILD',
|
|
19
19
|
UNKNOWN = 'UNKNOWN',
|
|
20
|
+
MARKETING = 'MARKETING',
|
|
21
|
+
PURCHASE_EVALUATION = 'PURCHASE_EVALUATION',
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export enum VehicleFuelType {
|
|
25
|
+
Petrol = 'PETROL',
|
|
26
|
+
Diesel = 'DIESEL',
|
|
27
|
+
LPG = 'LPG',
|
|
28
|
+
LPG_G3 = 'LPG_G3',
|
|
29
|
+
Electric = 'ELECTRIC',
|
|
30
|
+
CNG = 'CNG',
|
|
31
|
+
Hydrogen = 'HYDROGEN',
|
|
32
|
+
BioEthanol = 'BIO_ETHANOL',
|
|
33
|
+
BioDiesel = 'BIO_DIESEL',
|
|
34
|
+
E85 = 'E85',
|
|
35
|
+
HCNG = 'HCNG',
|
|
36
|
+
LPG_Petrol = 'LPG_PETROL',
|
|
37
|
+
LPG_Diesel = 'LPG_DIESEL',
|
|
38
|
+
LPG_G3_Petrol = 'LPG_G3_PETROL',
|
|
39
|
+
LPG_G3_Diesel = 'LPG_G3_DIESEL',
|
|
40
|
+
Electric_Diesel = 'ELECTRIC_DIESEL',
|
|
41
|
+
Electric_Petrol = 'ELECTRIC_PETROL',
|
|
42
|
+
Hybrid = 'HYBRID',
|
|
43
|
+
Other = 'OTHER',
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export enum VehicleTachoTypes {
|
|
47
|
+
Analog = 'ANALOG',
|
|
48
|
+
Digital = 'DIGITAL',
|
|
49
|
+
SmartTacho1 = 'SMART_TACHO_1',
|
|
50
|
+
SmartTacho2 = 'SMART_TACHO_2',
|
|
20
51
|
}
|
|
21
52
|
|
|
22
53
|
type BaseVehicleEvent = {
|
|
@@ -110,6 +141,7 @@ export type NewVehicleRequest = {
|
|
|
110
141
|
contactId: string;
|
|
111
142
|
orgId: string;
|
|
112
143
|
purchasedBy: string;
|
|
144
|
+
readyToDeliver: boolean;
|
|
113
145
|
dealStatus:
|
|
114
146
|
| VehiclePurchaseDealStatus.PurchaseEvaluation
|
|
115
147
|
| VehiclePurchaseDealStatus.PurchaseAgreed
|
|
@@ -207,6 +239,7 @@ export type SearchVehicle = {
|
|
|
207
239
|
sold: boolean;
|
|
208
240
|
isReserved: boolean;
|
|
209
241
|
hasPayments: boolean;
|
|
242
|
+
isTrending: boolean;
|
|
210
243
|
};
|
|
211
244
|
customSortableFields: {
|
|
212
245
|
priceChangedAt?: string;
|
|
@@ -214,6 +247,7 @@ export type SearchVehicle = {
|
|
|
214
247
|
};
|
|
215
248
|
purchase?: {
|
|
216
249
|
supplierStockNumber?: string;
|
|
250
|
+
readyToDeliver: boolean;
|
|
217
251
|
};
|
|
218
252
|
reservation?: Pick<OpportunityReservation, 'expiresAt' | 'opportunityId' | 'createdBy'>;
|
|
219
253
|
vehicle: Vehicle;
|
|
@@ -378,6 +412,7 @@ export type VehicleExternalInfo = {
|
|
|
378
412
|
modelName?: string;
|
|
379
413
|
type?: string;
|
|
380
414
|
typeName?: string;
|
|
415
|
+
tacho?: VehicleTachoTypes;
|
|
381
416
|
};
|
|
382
417
|
history?: {
|
|
383
418
|
advertisingYear?: number;
|
|
@@ -403,7 +438,7 @@ export type VehicleExternalInfo = {
|
|
|
403
438
|
};
|
|
404
439
|
engine?: {
|
|
405
440
|
cylinderCount?: number;
|
|
406
|
-
energy?:
|
|
441
|
+
energy?: { type: VehicleFuelType };
|
|
407
442
|
power?: {
|
|
408
443
|
hp?: number;
|
|
409
444
|
};
|
|
@@ -639,6 +674,7 @@ export type VehiclePurchase = {
|
|
|
639
674
|
|
|
640
675
|
deal: {
|
|
641
676
|
status: VehiclePurchaseDealStatus;
|
|
677
|
+
readyToDeliver: boolean;
|
|
642
678
|
|
|
643
679
|
askingPrice?: string;
|
|
644
680
|
purchaseVatRate?: string;
|