@alba-cars/common-modules 2.3.1 → 2.3.2
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.
|
@@ -66,6 +66,15 @@ type ExchangeCarRequestEndpoints = {
|
|
|
66
66
|
updateOne: EndpointFunction;
|
|
67
67
|
deleteOne: EndpointFunction;
|
|
68
68
|
};
|
|
69
|
+
type DubiCarsEndpoints = {
|
|
70
|
+
getAdByDubiCarsId: EndpointFunction;
|
|
71
|
+
checkVehicleAdStatus: EndpointFunction;
|
|
72
|
+
getAvailableModelsForMake: (make: string) => string;
|
|
73
|
+
postAd: string;
|
|
74
|
+
doAction: (action: "pause" | "activate" | "refresh" | "sold" | "premium" | "remove-premium") => string;
|
|
75
|
+
deleteAd: EndpointFunction;
|
|
76
|
+
deleteAdByVehicleId: EndpointFunction;
|
|
77
|
+
};
|
|
69
78
|
type APIEndpointType = {
|
|
70
79
|
vehicle: VehicleEndpoints;
|
|
71
80
|
blogs: BlogEndpoints;
|
|
@@ -98,6 +107,7 @@ type APIEndpointType = {
|
|
|
98
107
|
dealDrive: DealDriveEndpoints;
|
|
99
108
|
bankValuationRequest: BankValuationRequestEndpoints;
|
|
100
109
|
exchangeCarRequest: ExchangeCarRequestEndpoints;
|
|
110
|
+
dubiCars: DubiCarsEndpoints;
|
|
101
111
|
};
|
|
102
112
|
export declare const API_ENDPOINTS: APIEndpointType;
|
|
103
113
|
export declare const UTIL_ENDPOINTS: {
|
|
@@ -59,6 +59,7 @@ export declare class Vehicle extends BaseModel {
|
|
|
59
59
|
favoritedBy?: User[];
|
|
60
60
|
deposits?: Deposit[];
|
|
61
61
|
inspection?: VehicleInspectionDTO;
|
|
62
|
+
dubiCarsAdId?: string;
|
|
62
63
|
static fromPlain(plain: Record<string, unknown>): Vehicle;
|
|
63
64
|
toPlain(): Record<string, unknown>;
|
|
64
65
|
}
|