import * as z from "zod/v3";
import { OpenEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { ApplicationAttachment } from "./applicationattachment.js";
import { AtsDocumentApiModel } from "./atsdocumentapimodel.js";
import { CandidateEmail } from "./candidateemail.js";
import { CustomFields } from "./customfields.js";
import { PhoneNumber } from "./phonenumber.js";
import { Questionnaire } from "./questionnaire.js";
import { RejectedReason } from "./rejectedreason.js";
import { ResultLink } from "./resultlink.js";
import { SocialLink } from "./sociallink.js";
export type ApplicationApplicationStage = {
    /**
     * Application Stage created date
     */
    createdAt?: Date | null | undefined;
    /**
     * Unique identifier
     */
    id?: string | null | undefined;
    /**
     * Application Stage name
     */
    name?: string | null | undefined;
    /**
     * Application Stage order
     */
    order?: number | null | undefined;
    /**
     * Provider's unique identifier
     */
    remoteId?: string | null | undefined;
    /**
     * Custom Unified Fields configured in your StackOne project
     */
    unifiedCustomFields?: {
        [k: string]: any;
    } | null | undefined;
    /**
     * Application Stage updated date
     */
    updatedAt?: Date | null | undefined;
};
export type Application4 = {};
/**
 * The source value of the application status.
 */
export type ApplicationSourceValue = string | number | boolean | Application4 | Array<any>;
/**
 * The status of the application.
 */
export declare enum ApplicationValue {
    Active = "active",
    Assessment = "assessment",
    BackgroundCheck = "background_check",
    Converted = "converted",
    DeclinedByCandidate = "declined_by_candidate",
    Hired = "hired",
    Interview = "interview",
    Lead = "lead",
    Offer = "offer",
    ReferenceCheck = "reference_check",
    Rejected = "rejected",
    Review = "review",
    Screen = "screen",
    New = "new",
    Onboarding = "onboarding",
    Created = "created",
    Accepted = "accepted",
    ShortList = "short_list",
    Approved = "approved",
    UnmappedValue = "unmapped_value"
}
/**
 * The status of the application.
 */
export type ApplicationValueOpen = OpenEnum<typeof ApplicationValue>;
export type ApplicationStatus = {
    /**
     * The source value of the application status.
     */
    sourceValue?: string | number | boolean | Application4 | Array<any> | null | undefined;
    /**
     * The status of the application.
     */
    value?: ApplicationValueOpen | null | undefined;
};
export type ApplicationCandidate = {
    /**
     * Candidate company
     */
    company?: string | null | undefined;
    /**
     * Email of the candidate
     */
    email?: string | null | undefined;
    /**
     * List of candidate emails
     */
    emails?: Array<CandidateEmail> | null | undefined;
    /**
     * First name of the candidate
     */
    firstName?: string | null | undefined;
    /**
     * Last name of the candidate
     */
    lastName?: string | null | undefined;
    /**
     * Candidate name
     */
    name?: string | null | undefined;
    /**
     * List of candidate phone numbers including the type of the number when available
     */
    phoneNumbers?: Array<PhoneNumber> | null | undefined;
    /**
     * List of candidate social links
     */
    socialLinks?: Array<SocialLink> | null | undefined;
    /**
     * Candidate title
     */
    title?: string | null | undefined;
};
/**
 * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
 */
export type ApplicationInterviewStage = {
    /**
     * Interview Stage created date
     */
    createdAt?: Date | null | undefined;
    /**
     * Unique identifier
     */
    id?: string | null | undefined;
    name?: string | null | undefined;
    order?: number | null | undefined;
    /**
     * Provider's unique identifier
     */
    remoteId?: string | null | undefined;
    /**
     * Custom Unified Fields configured in your StackOne project
     */
    unifiedCustomFields?: {
        [k: string]: any;
    } | null | undefined;
    /**
     * Interview Stage updated date
     */
    updatedAt?: Date | null | undefined;
};
export type Source = {
    /**
     * Unique identifier
     */
    id?: string | null | undefined;
    /**
     * The source of the application
     */
    name?: string | null | undefined;
    /**
     * Provider's unique identifier
     */
    remoteId?: string | null | undefined;
};
export type Application = {
    applicationStage?: ApplicationApplicationStage | null | undefined;
    /**
     * Unique identifier of the application stage
     */
    applicationStageId?: string | null | undefined;
    applicationStatus?: ApplicationStatus | null | undefined;
    /**
     * Use `documents` expand instead
     *
     * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
     */
    attachments?: Array<ApplicationAttachment> | null | undefined;
    candidate?: ApplicationCandidate | null | undefined;
    /**
     * Unique identifier of the candidate
     */
    candidateId?: string | null | undefined;
    /**
     * Date of creation
     */
    createdAt?: Date | null | undefined;
    /**
     * The application custom fields
     */
    customFields?: Array<CustomFields> | null | undefined;
    /**
     * The documents attached to this application (eg. resume, cover letter etc.)
     */
    documents?: Array<AtsDocumentApiModel> | null | undefined;
    /**
     * Unique identifier
     */
    id?: string | null | undefined;
    /**
     * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
     */
    interviewStage?: ApplicationInterviewStage | null | undefined;
    /**
     * Unique identifier of the interview stage
     *
     * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
     */
    interviewStageId?: string | null | undefined;
    /**
     * Unique identifier of the job
     */
    jobId?: string | null | undefined;
    /**
     * Unique identifier of the location
     *
     * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
     */
    locationId?: string | null | undefined;
    /**
     * Unique identifiers of the locations
     */
    locationIds?: Array<string> | null | undefined;
    /**
     * Questionnaires associated with the application
     */
    questionnaires?: Array<Questionnaire> | null | undefined;
    /**
     * Date of rejection
     */
    rejectedAt?: Date | null | undefined;
    /**
     * Unique identifiers of the rejection reasons
     */
    rejectedReasonIds?: Array<string> | null | undefined;
    rejectedReasons?: Array<RejectedReason> | null | undefined;
    /**
     * Unique identifier of the application stage
     */
    remoteApplicationStageId?: string | null | undefined;
    /**
     * Provider's unique identifier of the candidate
     */
    remoteCandidateId?: string | null | undefined;
    /**
     * Provider's unique identifier
     */
    remoteId?: string | null | undefined;
    /**
     * Provider's unique identifier of the interview stage
     *
     * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
     */
    remoteInterviewStageId?: string | null | undefined;
    /**
     * Provider's unique identifier of the job
     */
    remoteJobId?: string | null | undefined;
    /**
     * Provider's unique identifier of the location
     *
     * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
     */
    remoteLocationId?: string | null | undefined;
    /**
     * Remote's unique identifiers of the locations
     */
    remoteLocationIds?: Array<string> | null | undefined;
    /**
     * Provider's unique identifiers of the rejection reasons
     */
    remoteRejectedReasonIds?: Array<string> | null | undefined;
    resultLinks?: Array<ResultLink> | null | undefined;
    source?: Source | null | undefined;
    /**
     * Custom Unified Fields configured in your StackOne project
     */
    unifiedCustomFields?: {
        [k: string]: any;
    } | null | undefined;
    /**
     * Date of last update
     */
    updatedAt?: Date | null | undefined;
};
/** @internal */
export declare const ApplicationApplicationStage$inboundSchema: z.ZodType<ApplicationApplicationStage, z.ZodTypeDef, unknown>;
export declare function applicationApplicationStageFromJSON(jsonString: string): SafeParseResult<ApplicationApplicationStage, SDKValidationError>;
/** @internal */
export declare const Application4$inboundSchema: z.ZodType<Application4, z.ZodTypeDef, unknown>;
export declare function application4FromJSON(jsonString: string): SafeParseResult<Application4, SDKValidationError>;
/** @internal */
export declare const ApplicationSourceValue$inboundSchema: z.ZodType<ApplicationSourceValue, z.ZodTypeDef, unknown>;
export declare function applicationSourceValueFromJSON(jsonString: string): SafeParseResult<ApplicationSourceValue, SDKValidationError>;
/** @internal */
export declare const ApplicationValue$inboundSchema: z.ZodType<ApplicationValueOpen, z.ZodTypeDef, unknown>;
/** @internal */
export declare const ApplicationStatus$inboundSchema: z.ZodType<ApplicationStatus, z.ZodTypeDef, unknown>;
export declare function applicationStatusFromJSON(jsonString: string): SafeParseResult<ApplicationStatus, SDKValidationError>;
/** @internal */
export declare const ApplicationCandidate$inboundSchema: z.ZodType<ApplicationCandidate, z.ZodTypeDef, unknown>;
export declare function applicationCandidateFromJSON(jsonString: string): SafeParseResult<ApplicationCandidate, SDKValidationError>;
/** @internal */
export declare const ApplicationInterviewStage$inboundSchema: z.ZodType<ApplicationInterviewStage, z.ZodTypeDef, unknown>;
export declare function applicationInterviewStageFromJSON(jsonString: string): SafeParseResult<ApplicationInterviewStage, SDKValidationError>;
/** @internal */
export declare const Source$inboundSchema: z.ZodType<Source, z.ZodTypeDef, unknown>;
export declare function sourceFromJSON(jsonString: string): SafeParseResult<Source, SDKValidationError>;
/** @internal */
export declare const Application$inboundSchema: z.ZodType<Application, z.ZodTypeDef, unknown>;
export declare function applicationFromJSON(jsonString: string): SafeParseResult<Application, SDKValidationError>;
//# sourceMappingURL=application.d.ts.map