ETASCOM CRM V3 - Documentation API
    Preparing search index...
    UpdateOpportunitySchema: ZodObject<
        {
            name: ZodOptional<ZodString>;
            description: ZodOptional<
                ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>,
            >;
            userId: ZodOptional<ZodString>;
            stage: ZodOptional<
                ZodEnum<
                    [
                        "IDENTIFY_COMPANY",
                        "IDENTIFY_CONTACT",
                        "ESTABLISH_COMMUNICATION",
                        "PRESENT_AND_VALIDATE",
                        "MEETING_DONE",
                        "CONSULTATION",
                        "WON",
                        "LOST",
                    ],
                >,
            >;
            status: ZodOptional<ZodEnum<["OPEN", "WON", "LOST", "ABANDONED"]>>;
            notes: ZodOptional<ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>>;
            nextActionDate: ZodOptional<
                ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>,
            >;
            origin: ZodOptional<ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>>;
            partnerCompany: ZodOptional<
                ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>,
            >;
            partnerFirstName: ZodOptional<
                ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>,
            >;
            partnerLastName: ZodOptional<
                ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>,
            >;
            partnerAddress: ZodOptional<
                ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>,
            >;
            partnerPhone: ZodOptional<
                ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>,
            >;
            partnerEmail: ZodOptional<
                ZodUnion<[ZodOptional<ZodString>, ZodLiteral<"">]>,
            >;
            partnerOpportunityId: ZodOptional<ZodOptional<ZodString>>;
            contacts: ZodOptional<
                ZodOptional<
                    ZodArray<
                        ZodObject<
                            {
                                id: ZodOptional<ZodString>;
                                firstName: ZodUnion<[ZodOptional<(...)>, ZodLiteral<(...)>]>;
                                lastName: ZodUnion<[ZodOptional<(...)>, ZodLiteral<(...)>]>;
                                email: ZodUnion<[ZodOptional<(...)>, ZodLiteral<(...)>]>;
                                phone: ZodUnion<[ZodOptional<(...)>, ZodLiteral<(...)>]>;
                                position: ZodUnion<[ZodOptional<(...)>, ZodLiteral<(...)>]>;
                                department: ZodUnion<[ZodOptional<(...)>, ZodLiteral<(...)>]>;
                                notes: ZodUnion<[ZodOptional<(...)>, 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",
                    >,
                >,
            >;
        } & { id: ZodString; number: ZodOptional<ZodString> },
        "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;
            }[];
            id: string;
            number?: 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;
            }[];
            id: string;
            number?: string;
        },
    > = ...