import { Department as CwDepartment } from "../../generated/prisma/client";
import { InternalDepartment as ApiInternalDepartment } from "../../../api/generated/prisma/client";
import { Translation } from "./types";

export const internalDepartmentTranslation: Translation<
  CwDepartment,
  ApiInternalDepartment
> = {
  values: [
    { from: "departmentRecId", to: "id" },
    {
      from: "departmentName",
      to: "name",
      process: (value) => (value ? value : "Unknown Department"),
    },
    { from: "dateEnteredUtc", to: "createdAt" },
    { from: "updatedBy", to: "updatedById" },
    { from: "lastUpdateUtc", to: "updatedAt" },
  ],
};
