Variable CreateOpportunitySchemaConst
CreateOpportunitySchema: ZodObject<
{
name: ZodString;
description: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
userId: ZodString;
stage: ZodEnum<
[
"IDENTIFY_COMPANY",
"IDENTIFY_CONTACT",
"ESTABLISH_COMMUNICATION",
"PRESENT_AND_VALIDATE",
"MEETING_DONE",
"CONSULTATION",
"WON",
"LOST",
],
>;
status: ZodEnum<["OPEN", "WON", "LOST", "ABANDONED"]>;
notes: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
nextActionDate: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
origin: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
partnerCompany: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
partnerFirstName: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
partnerLastName: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
partnerAddress: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
partnerPhone: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
partnerEmail: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
partnerOpportunityId: ZodOptional<ZodString>;
contacts: ZodOptional<
ZodArray<
ZodObject<
{
id: ZodOptional<ZodString>;
firstName: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
lastName: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
email: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
phone: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
position: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
department: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
notes: ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>;
},
"strip",
ZodTypeAny,
{
id?: string;
firstName?: string;
lastName?: string;
email?: string;
phone?: string;
position?: string;
department?: string;
notes?: string;
},
{
id?: string;
firstName?: string;
lastName?: string;
email?: string;
phone?: string;
position?: string;
department?: string;
notes?: string;
},
>,
"many",
>,
>;
},
"strip",
ZodTypeAny,
{
name: string;
description?: string;
userId: string;
stage: | "LOST"
| "WON"
| "IDENTIFY_COMPANY"
| "IDENTIFY_CONTACT"
| "ESTABLISH_COMMUNICATION"
| "PRESENT_AND_VALIDATE"
| "MEETING_DONE"
| "CONSULTATION";
status: "LOST"
| "WON"
| "OPEN"
| "ABANDONED";
notes?: string;
nextActionDate?: string;
origin?: string;
partnerCompany?: string;
partnerFirstName?: string;
partnerLastName?: string;
partnerAddress?: string;
partnerPhone?: string;
partnerEmail?: string;
partnerOpportunityId?: string;
contacts?: {
id?: string;
firstName?: string;
lastName?: string;
email?: string;
phone?: string;
position?: string;
department?: string;
notes?: string;
}[];
},
{
name: string;
description?: string;
userId: string;
stage: | "LOST"
| "WON"
| "IDENTIFY_COMPANY"
| "IDENTIFY_CONTACT"
| "ESTABLISH_COMMUNICATION"
| "PRESENT_AND_VALIDATE"
| "MEETING_DONE"
| "CONSULTATION";
status: "LOST"
| "WON"
| "OPEN"
| "ABANDONED";
notes?: string;
nextActionDate?: string;
origin?: string;
partnerCompany?: string;
partnerFirstName?: string;
partnerLastName?: string;
partnerAddress?: string;
partnerPhone?: string;
partnerEmail?: string;
partnerOpportunityId?: string;
contacts?: {
id?: string;
firstName?: string;
lastName?: string;
email?: string;
phone?: string;
position?: string;
department?: string;
notes?: string;
}[];
},
> = ...