import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.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"; /** * The type of website */ export declare const ApplicantType: { readonly Primary: "primary"; readonly Secondary: "secondary"; readonly Work: "work"; readonly Personal: "personal"; readonly Other: "other"; }; /** * The type of website */ export type ApplicantType = ClosedEnum; export type Websites = { /** * Unique identifier for the website */ id?: string | null | undefined; /** * The website URL */ url: string; /** * The type of website */ type?: ApplicantType | null | undefined; }; export type SocialLinks = { /** * Unique identifier of the social link */ id?: string | null | undefined; /** * URL of the social link, e.g. https://www.twitter.com/apideck */ url: string; /** * Type of the social link, e.g. twitter */ type?: string | null | undefined; }; export type Applicant = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The name of an applicant. */ name?: string | undefined; /** * The first name of the person. */ firstName?: string | null | undefined; /** * The last name of the person. */ lastName?: string | null | undefined; /** * Middle name of the person. */ middleName?: string | null | undefined; /** * The initials of the person, usually derived from their first, middle, and last names. */ initials?: string | null | undefined; /** * The date of birth of the person. */ birthday?: RFCDate | null | undefined; coverLetter?: string | undefined; jobUrl?: string | null | undefined; /** * The URL of the photo of a person. */ photoUrl?: string | null | undefined; /** * Typically a list of previous companies where the contact has worked or schools that the contact has attended */ headline?: string | undefined; /** * The job title of the person. */ title?: string | null | undefined; emails?: Array | undefined; customFields?: Array | undefined; phoneNumbers?: Array | undefined; addresses?: Array
| undefined; websites?: Array | undefined; socialLinks?: Array | undefined; stageId?: string | undefined; recruiterId?: string | undefined; coordinatorId?: string | undefined; applicationIds?: Array | null | undefined; applications?: Array | null | undefined; followers?: Array | null | undefined; sources?: Array | null | undefined; sourceId?: string | undefined; confidential?: boolean | undefined; anonymized?: boolean | undefined; tags?: Array | null | undefined; archived?: boolean | null | undefined; lastInteractionAt?: Date | null | undefined; ownerId?: string | null | undefined; sourcedBy?: string | null | undefined; cvUrl?: string | undefined; recordUrl?: string | null | undefined; rejectedAt?: Date | null | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: CustomMappings | null | undefined; /** * Flag to indicate if the object is deleted. */ deleted?: boolean | null | undefined; /** * The user who deleted the object. */ deletedBy?: string | null | undefined; /** * The time at which the object was deleted. */ deletedAt?: Date | null | undefined; /** * The user who last updated the object. */ updatedBy?: string | null | undefined; /** * The user who created the object. */ createdBy?: string | null | undefined; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | null | 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 ApplicantInput = { /** * The name of an applicant. */ name?: string | undefined; /** * The first name of the person. */ firstName?: string | null | undefined; /** * The last name of the person. */ lastName?: string | null | undefined; /** * Middle name of the person. */ middleName?: string | null | undefined; /** * The initials of the person, usually derived from their first, middle, and last names. */ initials?: string | null | undefined; /** * The date of birth of the person. */ birthday?: RFCDate | null | undefined; coverLetter?: string | undefined; /** * The URL of the photo of a person. */ photoUrl?: string | null | undefined; /** * Typically a list of previous companies where the contact has worked or schools that the contact has attended */ headline?: string | undefined; /** * The job title of the person. */ title?: string | null | undefined; emails?: Array | undefined; customFields?: Array | undefined; phoneNumbers?: Array | undefined; addresses?: Array
| undefined; websites?: Array | undefined; socialLinks?: Array | undefined; stageId?: string | undefined; recruiterId?: string | undefined; coordinatorId?: string | undefined; applicationIds?: Array | null | undefined; applications?: Array | null | undefined; followers?: Array | null | undefined; sources?: Array | null | undefined; confidential?: boolean | undefined; anonymized?: boolean | undefined; tags?: Array | null | undefined; archived?: boolean | null | undefined; ownerId?: string | null | undefined; recordUrl?: string | null | undefined; /** * Flag to indicate if the object is deleted. */ deleted?: boolean | null | 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 ApplicantType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ApplicantType$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 ApplicantType$ { /** @deprecated use `ApplicantType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Primary: "primary"; readonly Secondary: "secondary"; readonly Work: "work"; readonly Personal: "personal"; readonly Other: "other"; }>; /** @deprecated use `ApplicantType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Primary: "primary"; readonly Secondary: "secondary"; readonly Work: "work"; readonly Personal: "personal"; readonly Other: "other"; }>; } /** @internal */ export declare const Websites$inboundSchema: z.ZodType; /** @internal */ export type Websites$Outbound = { id?: string | null | undefined; url: string; type?: string | null | undefined; }; /** @internal */ export declare const Websites$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 Websites$ { /** @deprecated use `Websites$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Websites$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Websites$Outbound` instead. */ type Outbound = Websites$Outbound; } export declare function websitesToJSON(websites: Websites): string; export declare function websitesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SocialLinks$inboundSchema: z.ZodType; /** @internal */ export type SocialLinks$Outbound = { id?: string | null | undefined; url: string; type?: string | null | undefined; }; /** @internal */ export declare const SocialLinks$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 SocialLinks$ { /** @deprecated use `SocialLinks$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SocialLinks$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SocialLinks$Outbound` instead. */ type Outbound = SocialLinks$Outbound; } export declare function socialLinksToJSON(socialLinks: SocialLinks): string; export declare function socialLinksFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Applicant$inboundSchema: z.ZodType; /** @internal */ export type Applicant$Outbound = { id?: string | undefined; name?: string | undefined; first_name?: string | null | undefined; last_name?: string | null | undefined; middle_name?: string | null | undefined; initials?: string | null | undefined; birthday?: string | null | undefined; cover_letter?: string | undefined; job_url?: string | null | undefined; photo_url?: string | null | undefined; headline?: string | undefined; title?: string | null | undefined; emails?: Array | undefined; custom_fields?: Array | undefined; phone_numbers?: Array | undefined; addresses?: Array | undefined; websites?: Array | undefined; social_links?: Array | undefined; stage_id?: string | undefined; recruiter_id?: string | undefined; coordinator_id?: string | undefined; application_ids?: Array | null | undefined; applications?: Array | null | undefined; followers?: Array | null | undefined; sources?: Array | null | undefined; source_id?: string | undefined; confidential?: boolean | undefined; anonymized?: boolean | undefined; tags?: Array | null | undefined; archived?: boolean | null | undefined; last_interaction_at?: string | null | undefined; owner_id?: string | null | undefined; sourced_by?: string | null | undefined; cv_url?: string | undefined; record_url?: string | null | undefined; rejected_at?: string | null | undefined; custom_mappings?: CustomMappings$Outbound | null | undefined; deleted?: boolean | null | undefined; deleted_by?: string | null | undefined; deleted_at?: string | null | undefined; updated_by?: string | null | undefined; created_by?: string | null | undefined; updated_at?: string | null | undefined; created_at?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const Applicant$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 Applicant$ { /** @deprecated use `Applicant$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Applicant$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Applicant$Outbound` instead. */ type Outbound = Applicant$Outbound; } export declare function applicantToJSON(applicant: Applicant): string; export declare function applicantFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ApplicantInput$inboundSchema: z.ZodType; /** @internal */ export type ApplicantInput$Outbound = { name?: string | undefined; first_name?: string | null | undefined; last_name?: string | null | undefined; middle_name?: string | null | undefined; initials?: string | null | undefined; birthday?: string | null | undefined; cover_letter?: string | undefined; photo_url?: string | null | undefined; headline?: string | undefined; title?: string | null | undefined; emails?: Array | undefined; custom_fields?: Array | undefined; phone_numbers?: Array | undefined; addresses?: Array | undefined; websites?: Array | undefined; social_links?: Array | undefined; stage_id?: string | undefined; recruiter_id?: string | undefined; coordinator_id?: string | undefined; application_ids?: Array | null | undefined; applications?: Array | null | undefined; followers?: Array | null | undefined; sources?: Array | null | undefined; confidential?: boolean | undefined; anonymized?: boolean | undefined; tags?: Array | null | undefined; archived?: boolean | null | undefined; owner_id?: string | null | undefined; record_url?: string | null | undefined; deleted?: boolean | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const ApplicantInput$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 ApplicantInput$ { /** @deprecated use `ApplicantInput$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ApplicantInput$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ApplicantInput$Outbound` instead. */ type Outbound = ApplicantInput$Outbound; } export declare function applicantInputToJSON(applicantInput: ApplicantInput): string; export declare function applicantInputFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=applicant.d.ts.map