import type { WorkOrderTableRow } from "@/domain/work-orders/types/work-order-table-row"; export type VendorAssignmentFields = { vendorId: string; company: string; tech: string; techPhone: string; }; export type VendorTablePatch = Pick< WorkOrderTableRow, "vendorId" | "company" | "tech" | "techPhone" | "primaryDispatchStatus" >; export function toVendorTablePatch(fields: VendorAssignmentFields): VendorTablePatch { return { vendorId: fields.vendorId, company: fields.company, tech: fields.tech, techPhone: fields.techPhone, primaryDispatchStatus: "", }; }