import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, Address$Outbound } from "./address.js"; import { CustomField, CustomField$Outbound } from "./customfield.js"; import { CustomMappings, CustomMappings$Outbound } from "./custommappings.js"; import { Email, Email$Outbound } from "./email.js"; import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js"; import { PhoneNumber, PhoneNumber$Outbound } from "./phonenumber.js"; import { SocialLink, SocialLink$Outbound } from "./sociallink.js"; import { Website, Website$Outbound } from "./website.js"; /** * The type of the contact. */ export declare const ContactType: { readonly Customer: "customer"; readonly Supplier: "supplier"; readonly Employee: "employee"; readonly Personal: "personal"; }; /** * The type of the contact. */ export type ContactType = ClosedEnum; /** * The gender of the contact. */ export declare const ContactGender: { readonly Male: "male"; readonly Female: "female"; readonly Unisex: "unisex"; }; /** * The gender of the contact. */ export type ContactGender = ClosedEnum; export type Contact = { /** * Unique identifier for the contact. */ id?: string | undefined; /** * Full name of the contact. */ name: string | null; /** * The owner of the contact. */ ownerId?: string | null | undefined; /** * The type of the contact. */ type?: ContactType | null | undefined; /** * The company the contact is associated with. */ companyId?: string | null | undefined; /** * The name of the company the contact is associated with. */ companyName?: string | null | undefined; /** * The lead the contact is associated with. */ leadId?: string | null | undefined; /** * The first name of the contact. */ firstName?: string | null | undefined; /** * The middle name of the contact. */ middleName?: string | null | undefined; /** * The last name of the contact. */ lastName?: string | null | undefined; /** * The prefix of the contact. */ prefix?: string | null | undefined; /** * The suffix of the contact. */ suffix?: string | null | undefined; /** * The job title of the contact. */ title?: string | null | undefined; /** * The department of the contact. */ department?: string | null | undefined; /** * language code according to ISO 639-1. For the United States - EN */ language?: string | null | undefined; /** * The gender of the contact. */ gender?: ContactGender | null | undefined; /** * The birthday of the contact. */ birthday?: string | null | undefined; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ image?: string | null | undefined; /** * The URL of the photo of a person. */ photoUrl?: string | null | undefined; /** * The lead source of the contact. */ leadSource?: string | null | undefined; /** * The fax number of the contact. */ fax?: string | null | undefined; /** * The description of the contact. */ description?: string | null | undefined; /** * The current balance of the contact. */ currentBalance?: number | null | undefined; /** * The status of the contact. */ status?: string | null | undefined; /** * The active status of the contact. */ active?: boolean | null | undefined; websites?: Array | undefined; addresses?: Array
| undefined; socialLinks?: Array | undefined; phoneNumbers?: Array | undefined; emails?: Array | undefined; emailDomain?: string | null | undefined; customFields?: Array | undefined; tags?: Array | null | undefined; /** * The first call date of the contact. */ firstCallAt?: Date | null | undefined; /** * The first email date of the contact. */ firstEmailAt?: Date | null | undefined; /** * The last activity date of the contact. */ lastActivityAt?: Date | null | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: CustomMappings | null | undefined; /** * The last update date of the contact. */ updatedAt?: Date | null | undefined; /** * The creation date of the contact. */ createdAt?: Date | null | undefined; /** * The opportunity ids of the contact. */ opportunityIds?: Array | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; export type ContactInput = { /** * Full name of the contact. */ name: string | null; /** * The owner of the contact. */ ownerId?: string | null | undefined; /** * The type of the contact. */ type?: ContactType | null | undefined; /** * The company the contact is associated with. */ companyId?: string | null | undefined; /** * The name of the company the contact is associated with. */ companyName?: string | null | undefined; /** * The lead the contact is associated with. */ leadId?: string | null | undefined; /** * The first name of the contact. */ firstName?: string | null | undefined; /** * The middle name of the contact. */ middleName?: string | null | undefined; /** * The last name of the contact. */ lastName?: string | null | undefined; /** * The prefix of the contact. */ prefix?: string | null | undefined; /** * The suffix of the contact. */ suffix?: string | null | undefined; /** * The job title of the contact. */ title?: string | null | undefined; /** * The department of the contact. */ department?: string | null | undefined; /** * language code according to ISO 639-1. For the United States - EN */ language?: string | null | undefined; /** * The gender of the contact. */ gender?: ContactGender | null | undefined; /** * The birthday of the contact. */ birthday?: string | null | undefined; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ image?: string | null | undefined; /** * The URL of the photo of a person. */ photoUrl?: string | null | undefined; /** * The lead source of the contact. */ leadSource?: string | null | undefined; /** * The fax number of the contact. */ fax?: string | null | undefined; /** * The description of the contact. */ description?: string | null | undefined; /** * The current balance of the contact. */ currentBalance?: number | null | undefined; /** * The status of the contact. */ status?: string | null | undefined; /** * The active status of the contact. */ active?: boolean | null | undefined; websites?: Array | undefined; addresses?: Array
| undefined; socialLinks?: Array | undefined; phoneNumbers?: Array | undefined; emails?: Array | undefined; emailDomain?: string | null | undefined; customFields?: Array | undefined; tags?: Array | null | undefined; /** * The opportunity ids of the contact. */ opportunityIds?: Array | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; /** @internal */ export declare const ContactType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ContactType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ContactType$ { /** @deprecated use `ContactType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Customer: "customer"; readonly Supplier: "supplier"; readonly Employee: "employee"; readonly Personal: "personal"; }>; /** @deprecated use `ContactType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Customer: "customer"; readonly Supplier: "supplier"; readonly Employee: "employee"; readonly Personal: "personal"; }>; } /** @internal */ export declare const ContactGender$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ContactGender$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ContactGender$ { /** @deprecated use `ContactGender$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Male: "male"; readonly Female: "female"; readonly Unisex: "unisex"; }>; /** @deprecated use `ContactGender$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Male: "male"; readonly Female: "female"; readonly Unisex: "unisex"; }>; } /** @internal */ export declare const Contact$inboundSchema: z.ZodType; /** @internal */ export type Contact$Outbound = { id?: string | undefined; name: string | null; owner_id?: string | null | undefined; type?: string | null | undefined; company_id?: string | null | undefined; company_name?: string | null | undefined; lead_id?: string | null | undefined; first_name?: string | null | undefined; middle_name?: string | null | undefined; last_name?: string | null | undefined; prefix?: string | null | undefined; suffix?: string | null | undefined; title?: string | null | undefined; department?: string | null | undefined; language?: string | null | undefined; gender?: string | null | undefined; birthday?: string | null | undefined; image?: string | null | undefined; photo_url?: string | null | undefined; lead_source?: string | null | undefined; fax?: string | null | undefined; description?: string | null | undefined; current_balance?: number | null | undefined; status?: string | null | undefined; active?: boolean | null | undefined; websites?: Array | undefined; addresses?: Array | undefined; social_links?: Array | undefined; phone_numbers?: Array | undefined; emails?: Array | undefined; email_domain?: string | null | undefined; custom_fields?: Array | undefined; tags?: Array | null | undefined; first_call_at?: string | null | undefined; first_email_at?: string | null | undefined; last_activity_at?: string | null | undefined; custom_mappings?: CustomMappings$Outbound | null | undefined; updated_at?: string | null | undefined; created_at?: string | null | undefined; opportunity_ids?: Array | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const Contact$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Contact$ { /** @deprecated use `Contact$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Contact$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Contact$Outbound` instead. */ type Outbound = Contact$Outbound; } export declare function contactToJSON(contact: Contact): string; export declare function contactFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ContactInput$inboundSchema: z.ZodType; /** @internal */ export type ContactInput$Outbound = { name: string | null; owner_id?: string | null | undefined; type?: string | null | undefined; company_id?: string | null | undefined; company_name?: string | null | undefined; lead_id?: string | null | undefined; first_name?: string | null | undefined; middle_name?: string | null | undefined; last_name?: string | null | undefined; prefix?: string | null | undefined; suffix?: string | null | undefined; title?: string | null | undefined; department?: string | null | undefined; language?: string | null | undefined; gender?: string | null | undefined; birthday?: string | null | undefined; image?: string | null | undefined; photo_url?: string | null | undefined; lead_source?: string | null | undefined; fax?: string | null | undefined; description?: string | null | undefined; current_balance?: number | null | undefined; status?: string | null | undefined; active?: boolean | null | undefined; websites?: Array | undefined; addresses?: Array | undefined; social_links?: Array | undefined; phone_numbers?: Array | undefined; emails?: Array | undefined; email_domain?: string | null | undefined; custom_fields?: Array | undefined; tags?: Array | null | undefined; opportunity_ids?: Array | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const ContactInput$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ContactInput$ { /** @deprecated use `ContactInput$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ContactInput$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ContactInput$Outbound` instead. */ type Outbound = ContactInput$Outbound; } export declare function contactInputToJSON(contactInput: ContactInput): string; export declare function contactInputFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=contact.d.ts.map