217 lines
6.6 KiB
TypeScript
217 lines
6.6 KiB
TypeScript
export declare function listVehicles(companyId: string, query: {
|
|
status?: string;
|
|
category?: string;
|
|
published?: string;
|
|
page?: number;
|
|
pageSize?: number;
|
|
}): Promise<{
|
|
total: number;
|
|
page: number;
|
|
pageSize: number;
|
|
totalPages: number;
|
|
data: any[];
|
|
}>;
|
|
export declare function getVehicle(id: string, companyId: string): Promise<any>;
|
|
export declare function createVehicle(data: any, companyId: string): Promise<any>;
|
|
export declare function updateVehicle(id: string, companyId: string, data: any): Promise<any>;
|
|
export declare function setStatus(id: string, companyId: string, status: string): Promise<any>;
|
|
export declare function deleteVehicle(id: string, companyId: string): Promise<any>;
|
|
export declare function uploadPhotos(id: string, companyId: string, files: Express.Multer.File[]): Promise<any>;
|
|
export declare function deletePhoto(id: string, companyId: string, idx: number): Promise<any>;
|
|
export declare function setPublished(id: string, companyId: string, isPublished: boolean): Promise<void>;
|
|
export declare function checkAvailability(id: string, companyId: string, startDate: string, endDate: string): Promise<{
|
|
available: boolean;
|
|
conflicts: any;
|
|
blocks: any;
|
|
}>;
|
|
export declare function getCalendar(id: string, companyId: string, year: number, month: number): Promise<any[]>;
|
|
export declare function createCalendarBlock(id: string, companyId: string, data: {
|
|
startDate: string;
|
|
endDate: string;
|
|
reason?: string;
|
|
type?: 'MANUAL' | 'MAINTENANCE';
|
|
}): Promise<any>;
|
|
export declare function deleteCalendarBlock(vehicleId: string, companyId: string, blockId: string): Promise<void>;
|
|
export declare function getMaintenanceLogs(id: string, companyId: string): Promise<any>;
|
|
export declare function createMaintenanceLog(id: string, companyId: string, data: any): Promise<any>;
|
|
export declare function getVehiclePricing(id: string, companyId: string): Promise<{
|
|
configuration: {
|
|
id: any;
|
|
vehicleId: any;
|
|
pricingMode: any;
|
|
baseDailyRate: any;
|
|
weeklyRate: any;
|
|
weekendRate: any;
|
|
holidayRate: any;
|
|
monthlyRate: any;
|
|
longTermDailyRate: any;
|
|
minimumDailyRate: any;
|
|
maximumDailyRate: any;
|
|
maxDailyPriceMovementPct: any;
|
|
automaticPricingEnabled: any;
|
|
approvalRequired: any;
|
|
createdAt: any;
|
|
updatedAt: any;
|
|
};
|
|
rules: any;
|
|
history: any;
|
|
preview: {
|
|
today: {
|
|
date: string;
|
|
dailyRate: any;
|
|
pricingType: string;
|
|
matchedRuleName: any;
|
|
} | undefined;
|
|
next14Days: {
|
|
date: string;
|
|
dailyRate: any;
|
|
pricingType: string;
|
|
matchedRuleName: any;
|
|
}[];
|
|
};
|
|
}>;
|
|
export declare function updateVehiclePricing(id: string, companyId: string, employeeId: string, data: any): Promise<{
|
|
configuration: {
|
|
id: any;
|
|
vehicleId: any;
|
|
pricingMode: any;
|
|
baseDailyRate: any;
|
|
weeklyRate: any;
|
|
weekendRate: any;
|
|
holidayRate: any;
|
|
monthlyRate: any;
|
|
longTermDailyRate: any;
|
|
minimumDailyRate: any;
|
|
maximumDailyRate: any;
|
|
maxDailyPriceMovementPct: any;
|
|
automaticPricingEnabled: any;
|
|
approvalRequired: any;
|
|
createdAt: any;
|
|
updatedAt: any;
|
|
};
|
|
rules: any;
|
|
history: any;
|
|
preview: {
|
|
today: {
|
|
date: string;
|
|
dailyRate: any;
|
|
pricingType: string;
|
|
matchedRuleName: any;
|
|
} | undefined;
|
|
next14Days: {
|
|
date: string;
|
|
dailyRate: any;
|
|
pricingType: string;
|
|
matchedRuleName: any;
|
|
}[];
|
|
};
|
|
}>;
|
|
export declare function createVehiclePricingRule(id: string, companyId: string, employeeId: string, data: any): Promise<{
|
|
configuration: {
|
|
id: any;
|
|
vehicleId: any;
|
|
pricingMode: any;
|
|
baseDailyRate: any;
|
|
weeklyRate: any;
|
|
weekendRate: any;
|
|
holidayRate: any;
|
|
monthlyRate: any;
|
|
longTermDailyRate: any;
|
|
minimumDailyRate: any;
|
|
maximumDailyRate: any;
|
|
maxDailyPriceMovementPct: any;
|
|
automaticPricingEnabled: any;
|
|
approvalRequired: any;
|
|
createdAt: any;
|
|
updatedAt: any;
|
|
};
|
|
rules: any;
|
|
history: any;
|
|
preview: {
|
|
today: {
|
|
date: string;
|
|
dailyRate: any;
|
|
pricingType: string;
|
|
matchedRuleName: any;
|
|
} | undefined;
|
|
next14Days: {
|
|
date: string;
|
|
dailyRate: any;
|
|
pricingType: string;
|
|
matchedRuleName: any;
|
|
}[];
|
|
};
|
|
}>;
|
|
export declare function updateVehiclePricingRule(id: string, companyId: string, ruleId: string, employeeId: string, data: any): Promise<{
|
|
configuration: {
|
|
id: any;
|
|
vehicleId: any;
|
|
pricingMode: any;
|
|
baseDailyRate: any;
|
|
weeklyRate: any;
|
|
weekendRate: any;
|
|
holidayRate: any;
|
|
monthlyRate: any;
|
|
longTermDailyRate: any;
|
|
minimumDailyRate: any;
|
|
maximumDailyRate: any;
|
|
maxDailyPriceMovementPct: any;
|
|
automaticPricingEnabled: any;
|
|
approvalRequired: any;
|
|
createdAt: any;
|
|
updatedAt: any;
|
|
};
|
|
rules: any;
|
|
history: any;
|
|
preview: {
|
|
today: {
|
|
date: string;
|
|
dailyRate: any;
|
|
pricingType: string;
|
|
matchedRuleName: any;
|
|
} | undefined;
|
|
next14Days: {
|
|
date: string;
|
|
dailyRate: any;
|
|
pricingType: string;
|
|
matchedRuleName: any;
|
|
}[];
|
|
};
|
|
}>;
|
|
export declare function deleteVehiclePricingRule(id: string, companyId: string, ruleId: string, employeeId: string): Promise<{
|
|
configuration: {
|
|
id: any;
|
|
vehicleId: any;
|
|
pricingMode: any;
|
|
baseDailyRate: any;
|
|
weeklyRate: any;
|
|
weekendRate: any;
|
|
holidayRate: any;
|
|
monthlyRate: any;
|
|
longTermDailyRate: any;
|
|
minimumDailyRate: any;
|
|
maximumDailyRate: any;
|
|
maxDailyPriceMovementPct: any;
|
|
automaticPricingEnabled: any;
|
|
approvalRequired: any;
|
|
createdAt: any;
|
|
updatedAt: any;
|
|
};
|
|
rules: any;
|
|
history: any;
|
|
preview: {
|
|
today: {
|
|
date: string;
|
|
dailyRate: any;
|
|
pricingType: string;
|
|
matchedRuleName: any;
|
|
} | undefined;
|
|
next14Days: {
|
|
date: string;
|
|
dailyRate: any;
|
|
pricingType: string;
|
|
matchedRuleName: any;
|
|
}[];
|
|
};
|
|
}>;
|
|
//# sourceMappingURL=vehicle.service.d.ts.map
|