// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../core/resource'; import { PageCursorURL, PagePromise } from '../core/pagination'; import { RequestOptions } from '../internal/request-options'; /** * Someone who applies to a job requisition opened by the company */ export class Candidates extends APIResource { /** * A list of candidates. * * - Requires: `API Tier 2` * - Sortable fields: `id`, `created_at`, `updated_at` */ list( query: CandidateListParams | null | undefined = {}, options?: RequestOptions, ): PagePromise { return this._client.getAPIList('/candidates/', PageCursorURL, { query, ...options, }); } } export type CandidateListResponsesPageCursorURL = PageCursorURL; export interface CandidateListResponse { /** * Identifier field */ id: string; /** * Record creation date */ created_at: string; /** * Record update date */ updated_at: string; /** * Candidate email */ email?: string; /** * Candidate first name */ first_name?: string; /** * Candidate last name */ last_name?: string; /** * Candidate phone number */ phone_number?: string; /** * Candidate timezone */ timezone?: string; } export interface CandidateListParams { cursor?: string; order_by?: string; } export declare namespace Candidates { export { type CandidateListResponse as CandidateListResponse, type CandidateListResponsesPageCursorURL as CandidateListResponsesPageCursorURL, type CandidateListParams as CandidateListParams, }; }