Files
optima/dalpuri/src/translations/company.ts
T
2026-04-07 23:56:31 +00:00

24 lines
836 B
TypeScript

import { Company as CwCompany } from "../../generated/prisma/client";
import { Company as ApiCompany } from "../../../api/generated/prisma/client";
import { Translation } from "./types";
export const companyTranslation: Translation<CwCompany, ApiCompany> = {
values: [
{ from: "companyRecId", to: "id" },
{
from: "companyName",
to: "name",
process: (value) => (value ? value : "Unnamed Company"),
},
{ from: "phoneNbr", to: "phone" },
{ from: "websiteUrl", to: "website" },
{ from: "deleteFlag", to: "deleteFlag" },
{ from: "dateDeleted", to: "dateDeleted" },
{ from: "taxId", to: "taxId" },
{ from: "deletedBy", to: "deletedById" },
{ from: "enteredBy", to: "enteredById" },
{ from: "dateEntered", to: "createdAt" },
{ from: "lastUpdate", to: "updatedAt" },
],
};