all the haul
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { Manufacturer as CwManufacturer } from "../../generated/prisma/client";
|
||||
import { CatalogManufacturer as ApiCatalogManufacturer } from "../../../api/generated/prisma/client";
|
||||
import { Translation } from "./types";
|
||||
|
||||
export const catalogManufacturerTranslation: Translation<
|
||||
CwManufacturer,
|
||||
ApiCatalogManufacturer
|
||||
> = {
|
||||
values: [
|
||||
{ from: "manufacturerRecId", to: "id" },
|
||||
{ from: "manufacturerName", to: "name" },
|
||||
{ from: "manufacturerName", to: "description" },
|
||||
{
|
||||
from: "inactiveFlag",
|
||||
to: "inactiveFlag",
|
||||
process: (value) => Boolean(value),
|
||||
},
|
||||
{ from: "updatedBy", to: "updatedById" },
|
||||
{ from: "enteredBy", to: "createdById" },
|
||||
{ from: "lastUpdatedUtc", to: "updatedAt" },
|
||||
{ from: "dateEnteredUtc", to: "createdAt" },
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user