@alba-cars/common-modules
Version:
A package containing DTOs, validation classes and common modules and interfaces for Alba Cars
148 lines (147 loc) • 5.51 kB
TypeScript
export declare enum InspectionStatus {
PERFECT = "Perfect",
IMPERFECTIONS = "Imperfections",
NOT_APPLICABLE = "Not Applicable"
}
export declare class InspectionPointDTO {
status: InspectionStatus;
imperfections?: string;
constructor(status?: InspectionStatus);
}
export declare abstract class BaseInspectionDTO {
validate(): string[];
static fromPlain<T>(this: new () => T, plain: Record<string, unknown>): T;
toPlain(): Record<string, unknown>;
}
export declare class ExteriorInspectionDTO extends BaseInspectionDTO {
frontLeftDoor: InspectionPointDTO;
frontRightDoor: InspectionPointDTO;
rearLeftDoor: InspectionPointDTO;
rearRightDoor: InspectionPointDTO;
leftFender: InspectionPointDTO;
rightFender: InspectionPointDTO;
frontBumper: InspectionPointDTO;
rearBumper: InspectionPointDTO;
hood: InspectionPointDTO;
trunk: InspectionPointDTO;
roof: InspectionPointDTO;
leftQuarterPanel: InspectionPointDTO;
rightQuarterPanel: InspectionPointDTO;
leftAPillar: InspectionPointDTO;
rightAPillar: InspectionPointDTO;
leftAtoBPillarBeading: InspectionPointDTO;
rightAtoBPillarBeading: InspectionPointDTO;
leftBPillarTrim: InspectionPointDTO;
rightBtoCPillarBeading: InspectionPointDTO;
leftRunningBoard: InspectionPointDTO;
rightRunningBoard: InspectionPointDTO;
frontWindshield: InspectionPointDTO;
rearWindshield: InspectionPointDTO;
chassisCondition: InspectionPointDTO;
apron: InspectionPointDTO;
bootFloor: InspectionPointDTO;
firewallCondition: InspectionPointDTO;
leftFrontAlloyRim: InspectionPointDTO;
leftRearAlloyRim: InspectionPointDTO;
rightFrontAlloyRim: InspectionPointDTO;
rightRearAlloyRim: InspectionPointDTO;
spareAlloyRimCondition: InspectionPointDTO;
wheelCover: InspectionPointDTO;
grillCondition: InspectionPointDTO;
windowGlass: InspectionPointDTO;
wiper: InspectionPointDTO;
panelCondition: InspectionPointDTO;
constructor();
}
export declare class TyresInspectionDTO extends BaseInspectionDTO {
leftFrontTyre: InspectionPointDTO;
leftFrontTyreLife: number;
rightFrontTyre: InspectionPointDTO;
rightFrontTyreLife: number;
leftRearTyre: InspectionPointDTO;
leftRearTyreLife: number;
rightRearTyre: InspectionPointDTO;
rightRearTyreLife: number;
spareTyre: InspectionPointDTO;
spareTyreLife: number;
constructor();
}
export declare class SteeringAndSuspensionInspectionDTO extends BaseInspectionDTO {
steeringWheel: InspectionPointDTO;
parkingBrake: InspectionPointDTO;
brakeMasterCylinder: InspectionPointDTO;
brakeDiscAndPad: InspectionPointDTO;
brakeFluid: InspectionPointDTO;
shockAbsorbers: InspectionPointDTO;
constructor();
}
export declare class InteriorInspectionDTO extends BaseInspectionDTO {
dashboard: InspectionPointDTO;
centralConsole: InspectionPointDTO;
gloveBox: InspectionPointDTO;
sunvisor: InspectionPointDTO;
seatUpholstery: InspectionPointDTO;
carpets: InspectionPointDTO;
headliner: InspectionPointDTO;
manualSeatMovement: InspectionPointDTO;
seatBelts: InspectionPointDTO;
headRest: InspectionPointDTO;
doorControls: InspectionPointDTO;
grabHandle: InspectionPointDTO;
rearViewMirror: InspectionPointDTO;
toolKit: InspectionPointDTO;
constructor();
}
export declare class EngineInspectionDTO extends BaseInspectionDTO {
engineBody: InspectionPointDTO;
enginePerformance: InspectionPointDTO;
engineOil: InspectionPointDTO;
exhaustSystem: InspectionPointDTO;
radiator: InspectionPointDTO;
coolant: InspectionPointDTO;
fuelTank: InspectionPointDTO;
gearShifting: InspectionPointDTO;
driveAxle: InspectionPointDTO;
transmissionFluid: InspectionPointDTO;
constructor();
}
export declare class ElectricalsInspectionDTO extends BaseInspectionDTO {
masterKey: InspectionPointDTO;
spareKey: InspectionPointDTO;
childSafetyLocking: InspectionPointDTO;
instrumentPanel: InspectionPointDTO;
airbags: InspectionPointDTO;
controls: InspectionPointDTO;
cruiseControl: InspectionPointDTO;
infotainmentDisplay: InspectionPointDTO;
obdConnector: InspectionPointDTO;
musicSystem: InspectionPointDTO;
headlight: InspectionPointDTO;
interiorLights: InspectionPointDTO;
tailLightCluster: InspectionPointDTO;
licensePlateLight: InspectionPointDTO;
acCooling: InspectionPointDTO;
acSwitch: InspectionPointDTO;
acLeaks: InspectionPointDTO;
centerAcVent: InspectionPointDTO;
frontRightAcVent: InspectionPointDTO;
heater: InspectionPointDTO;
parkingSensors: InspectionPointDTO;
rearDefogger: InspectionPointDTO;
usbChargingPort: InspectionPointDTO;
powerManualWindows: InspectionPointDTO;
constructor();
}
export declare class VehicleInspectionDTO {
vehicle: string;
inspectorId?: string;
exterior: ExteriorInspectionDTO;
steeringAndSuspension: SteeringAndSuspensionInspectionDTO;
interior: InteriorInspectionDTO;
engine: EngineInspectionDTO;
electricals: ElectricalsInspectionDTO;
tyres: TyresInspectionDTO;
validate(): string[];
static fromPlain(plain: Record<string, unknown>): VehicleInspectionDTO;
toPlain(): Record<string, unknown>;
}