all the haul
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { SrUrgency as CwServiceTicketPriority } from "../../generated/prisma/client";
|
||||
import { ServiceTicketPriority as ApiServiceTicketPriority } from "../../../api/generated/prisma/client";
|
||||
import { Translation } from "./types";
|
||||
|
||||
export const serviceTicketPriorityTranslation: Translation<
|
||||
CwServiceTicketPriority,
|
||||
ApiServiceTicketPriority
|
||||
> = {
|
||||
values: [
|
||||
{ from: "srUrgencyRecId", to: "id" },
|
||||
{
|
||||
from: "description",
|
||||
to: "name",
|
||||
process: (value) => (value ? value : "Unknown Priority"),
|
||||
},
|
||||
{ from: "description", to: "description" },
|
||||
{ from: "color", to: "color" },
|
||||
{
|
||||
from: "defaultFlag",
|
||||
to: "defaultFlag",
|
||||
process: (value) => Boolean(value),
|
||||
},
|
||||
{ from: "createdBy", to: "createdById" },
|
||||
{ from: "updatedBy", to: "updatedById" },
|
||||
{ from: "dateCreatedUtc", to: "createdAt" },
|
||||
{ from: "lastUpdatedUtc", to: "updatedAt" },
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user