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 { Currency } from "./currency.js"; import { CustomField, CustomField$Outbound } from "./customfield.js"; import { CustomMappings, CustomMappings$Outbound } from "./custommappings.js"; import { Department, Department$Outbound } from "./department.js"; import { JobStatus } from "./jobstatus.js"; /** * The visibility of the job */ export declare const Visibility: { readonly Draft: "draft"; readonly Public: "public"; readonly Internal: "internal"; }; /** * The visibility of the job */ export type Visibility = ClosedEnum; export declare const EmploymentTerms: { readonly FullTime: "full-time"; readonly PartTime: "part-time"; readonly Internship: "internship"; readonly Contractor: "contractor"; readonly Employee: "employee"; readonly Freelance: "freelance"; readonly Temp: "temp"; readonly Seasonal: "seasonal"; readonly Volunteer: "volunteer"; readonly Other: "other"; }; export type EmploymentTerms = ClosedEnum; /** * Details of the branch for which the job is created. */ export type Branch = { /** * A unique identifier for an object. */ id?: string | undefined; /** * Name of the branch. */ name?: string | undefined; }; export type Blocks = { title?: string | undefined; content?: string | undefined; }; export type Salary = { /** * Minimum salary payable for the job role. */ min?: number | undefined; /** * Maximum salary payable for the job role. */ max?: number | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ currency?: Currency | null | undefined; interval?: string | null | undefined; }; export declare const JobType: { readonly JobPortal: "job_portal"; readonly JobDescription: "job_description"; }; export type JobType = ClosedEnum; export type JobLinks = { type?: JobType | undefined; url?: string | undefined; }; export type Job = { /** * A unique identifier for an object. */ id?: string | undefined; slug?: string | null | undefined; /** * The job title of the person. */ title?: string | null | undefined; /** * Sequence in relation to other jobs. */ sequence?: number | undefined; /** * The visibility of the job */ visibility?: Visibility | undefined; /** * The status of the job. */ status?: JobStatus | undefined; /** * The code of the job. */ code?: string | undefined; /** * language code according to ISO 639-1. For the United States - EN */ language?: string | null | undefined; employmentTerms?: EmploymentTerms | null | undefined; /** * Level of experience required for the job role. */ experience?: string | undefined; /** * Specifies the location for the job posting. */ location?: string | null | undefined; /** * Specifies whether the posting is for a remote job. */ remote?: boolean | null | undefined; /** * A job's Requisition ID (Req ID) allows your organization to identify and track a job based on alphanumeric naming conventions unique to your company's internal processes. */ requisitionId?: string | undefined; department?: Department | undefined; /** * Details of the branch for which the job is created. */ branch?: Branch | undefined; /** * The recruiter is generally someone who is tasked to help the hiring manager find and screen qualified applicant */ recruiters?: Array | null | undefined; hiringManagers?: Array | undefined; followers?: Array | null | undefined; /** * A description of the object. */ description?: string | null | undefined; /** * The job description in HTML format */ descriptionHtml?: string | null | undefined; blocks?: Array | undefined; closing?: string | null | undefined; /** * The closing section of the job description in HTML format */ closingHtml?: string | null | undefined; closingDate?: RFCDate | null | undefined; salary?: Salary | undefined; /** * URL of the job description * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ url?: string | null | undefined; /** * URL of the job portal * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ jobPortalUrl?: string | null | undefined; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ recordUrl?: string | null | undefined; links?: Array | undefined; confidential?: boolean | undefined; /** * Specifies whether an employee of the organization can apply for the job. */ availableToEmployees?: boolean | undefined; tags?: Array | null | undefined; addresses?: Array
| undefined; customFields?: Array | undefined; /** * Flag to indicate if the object is deleted. */ deleted?: boolean | null | undefined; ownerId?: string | null | undefined; publishedAt?: Date | null | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: CustomMappings | 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; }; /** @internal */ export declare const Visibility$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Visibility$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 Visibility$ { /** @deprecated use `Visibility$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Draft: "draft"; readonly Public: "public"; readonly Internal: "internal"; }>; /** @deprecated use `Visibility$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Draft: "draft"; readonly Public: "public"; readonly Internal: "internal"; }>; } /** @internal */ export declare const EmploymentTerms$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const EmploymentTerms$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 EmploymentTerms$ { /** @deprecated use `EmploymentTerms$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly FullTime: "full-time"; readonly PartTime: "part-time"; readonly Internship: "internship"; readonly Contractor: "contractor"; readonly Employee: "employee"; readonly Freelance: "freelance"; readonly Temp: "temp"; readonly Seasonal: "seasonal"; readonly Volunteer: "volunteer"; readonly Other: "other"; }>; /** @deprecated use `EmploymentTerms$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly FullTime: "full-time"; readonly PartTime: "part-time"; readonly Internship: "internship"; readonly Contractor: "contractor"; readonly Employee: "employee"; readonly Freelance: "freelance"; readonly Temp: "temp"; readonly Seasonal: "seasonal"; readonly Volunteer: "volunteer"; readonly Other: "other"; }>; } /** @internal */ export declare const Branch$inboundSchema: z.ZodType; /** @internal */ export type Branch$Outbound = { id?: string | undefined; name?: string | undefined; }; /** @internal */ export declare const Branch$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 Branch$ { /** @deprecated use `Branch$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Branch$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Branch$Outbound` instead. */ type Outbound = Branch$Outbound; } export declare function branchToJSON(branch: Branch): string; export declare function branchFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Blocks$inboundSchema: z.ZodType; /** @internal */ export type Blocks$Outbound = { title?: string | undefined; content?: string | undefined; }; /** @internal */ export declare const Blocks$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 Blocks$ { /** @deprecated use `Blocks$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Blocks$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Blocks$Outbound` instead. */ type Outbound = Blocks$Outbound; } export declare function blocksToJSON(blocks: Blocks): string; export declare function blocksFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Salary$inboundSchema: z.ZodType; /** @internal */ export type Salary$Outbound = { min?: number | undefined; max?: number | undefined; currency?: string | null | undefined; interval?: string | null | undefined; }; /** @internal */ export declare const Salary$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 Salary$ { /** @deprecated use `Salary$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Salary$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Salary$Outbound` instead. */ type Outbound = Salary$Outbound; } export declare function salaryToJSON(salary: Salary): string; export declare function salaryFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const JobType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const JobType$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 JobType$ { /** @deprecated use `JobType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly JobPortal: "job_portal"; readonly JobDescription: "job_description"; }>; /** @deprecated use `JobType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly JobPortal: "job_portal"; readonly JobDescription: "job_description"; }>; } /** @internal */ export declare const JobLinks$inboundSchema: z.ZodType; /** @internal */ export type JobLinks$Outbound = { type?: string | undefined; url?: string | undefined; }; /** @internal */ export declare const JobLinks$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 JobLinks$ { /** @deprecated use `JobLinks$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `JobLinks$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `JobLinks$Outbound` instead. */ type Outbound = JobLinks$Outbound; } export declare function jobLinksToJSON(jobLinks: JobLinks): string; export declare function jobLinksFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Job$inboundSchema: z.ZodType; /** @internal */ export type Job$Outbound = { id?: string | undefined; slug?: string | null | undefined; title?: string | null | undefined; sequence?: number | undefined; visibility?: string | undefined; status?: string | undefined; code?: string | undefined; language?: string | null | undefined; employment_terms?: string | null | undefined; experience?: string | undefined; location?: string | null | undefined; remote?: boolean | null | undefined; requisition_id?: string | undefined; department?: Department$Outbound | undefined; branch?: Branch$Outbound | undefined; recruiters?: Array | null | undefined; hiring_managers?: Array | undefined; followers?: Array | null | undefined; description?: string | null | undefined; description_html?: string | null | undefined; blocks?: Array | undefined; closing?: string | null | undefined; closing_html?: string | null | undefined; closing_date?: string | null | undefined; salary?: Salary$Outbound | undefined; url?: string | null | undefined; job_portal_url?: string | null | undefined; record_url?: string | null | undefined; links?: Array | undefined; confidential?: boolean | undefined; available_to_employees?: boolean | undefined; tags?: Array | null | undefined; addresses?: Array | undefined; custom_fields?: Array | undefined; deleted?: boolean | null | undefined; owner_id?: string | null | undefined; published_at?: string | null | undefined; custom_mappings?: CustomMappings$Outbound | null | undefined; updated_by?: string | null | undefined; created_by?: string | null | undefined; updated_at?: string | null | undefined; created_at?: string | null | undefined; }; /** @internal */ export declare const Job$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 Job$ { /** @deprecated use `Job$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Job$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Job$Outbound` instead. */ type Outbound = Job$Outbound; } export declare function jobToJSON(job: Job): string; export declare function jobFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=job.d.ts.map