27 lines
931 B
TypeScript
27 lines
931 B
TypeScript
import { SoOppStatus as CwOpportunityStatus } from "../../generated/prisma/client";
|
|
import { OpportunityStatus as ApiOpportunityStatus } from "../../../api/generated/prisma/client";
|
|
import { Translation } from "./types";
|
|
|
|
export const opportunityStatusTranslation: Translation<
|
|
CwOpportunityStatus,
|
|
ApiOpportunityStatus
|
|
> = {
|
|
values: [
|
|
{ from: "soOppStatusRecId", to: "id" },
|
|
{
|
|
from: "description",
|
|
to: "name",
|
|
process: (value) => (value ? value : "Unknown Status"),
|
|
},
|
|
{ from: "description", to: "description" },
|
|
{ from: "inactiveFlag", to: "inactiveFlag" },
|
|
{ from: "defaultFlag", to: "defaultFlag" },
|
|
{ from: "wonFlag", to: "wonFlag" },
|
|
{ from: "lostFlag", to: "lostFlag" },
|
|
{ from: "closedFlag", to: "closeFlag" },
|
|
{ from: "dateEnteredUtc", to: "createdAt" },
|
|
{ from: "updatedBy", to: "updatedById" },
|
|
{ from: "lastUpdatedUtc", to: "updatedAt" },
|
|
],
|
|
};
|