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

28 lines
863 B
TypeScript

import { SrImpact as CwServiceTicketImpact } from "../../generated/prisma/client";
import { ServiceTicketImpact as ApiServiceTicketImpact } from "../../../api/generated/prisma/client";
import { Translation } from "./types";
export const serviceTicketImpactTranslation: Translation<
CwServiceTicketImpact,
ApiServiceTicketImpact
> = {
values: [
{ from: "srImpactRecId", to: "id" },
{
from: "impactName",
to: "name",
process: (value) => (value ? value : "Unknown Impact"),
},
{ from: "impactDesc", to: "description" },
{
from: "defaultFlag",
to: "defaultFlag",
process: (value) => Boolean(value),
},
{ from: "enteredBy", to: "createdById" },
{ from: "updatedBy", to: "updatedById" },
{ from: "dateEnteredUtc", to: "createdAt" },
{ from: "lastUpdatedUtc", to: "updatedAt" },
],
};