/** * @example * { * authorId: "11", * safetyStatus: "safe", * type: "mechanic" * } */ export interface CreateDvirRequest { /** Samsara user ID of the mechanic creating the DVIR. */ authorId: string; /** The license plate of this vehicle. */ licensePlate?: string; /** Optional string if your jurisdiction requires a location of the DVIR. */ location?: string; /** The mechanics notes on the DVIR. */ mechanicNotes?: string; /** The odometer reading in meters. */ odometerMeters?: number; /** Array of ids for defects being resolved with this DVIR. */ resolvedDefectIds?: string[]; /** Whether or not this vehicle or trailer is safe to drive. */ safetyStatus: CreateDvirRequest.SafetyStatus; /** Id of trailer being inspected. Either vehicleId or trailerId must be provided. */ trailerId?: string; /** Only type 'mechanic' is currently accepted. */ type: CreateDvirRequest.Type; /** Id of vehicle being inspected. Either vehicleId or trailerId must be provided. */ vehicleId?: string; } export declare namespace CreateDvirRequest { /** Whether or not this vehicle or trailer is safe to drive. */ const SafetyStatus: { readonly Safe: "safe"; readonly Unsafe: "unsafe"; }; type SafetyStatus = (typeof SafetyStatus)[keyof typeof SafetyStatus]; /** Only type 'mechanic' is currently accepted. */ const Type: { readonly Mechanic: "mechanic"; }; type Type = (typeof Type)[keyof typeof Type]; }