all the haul
This commit is contained in:
@@ -2,6 +2,22 @@ import { Company as CwCompany } from "../../generated/prisma/client";
|
||||
import { Company as ApiCompany } from "../../../api/generated/prisma/client";
|
||||
import { Translation } from "./types";
|
||||
|
||||
const companyTranslation: Translation<CwCompany, ApiCompany> = {
|
||||
values: [{ from: "" }],
|
||||
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" },
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user