import { APIResource } from "../core/resource.js"; import * as BusinessPartnersAPI from "./business-partners.js"; import { APIPromise } from "../core/api-promise.js"; import { PageCursorURL, PagePromise } from "../core/pagination.js"; import { RequestOptions } from "../internal/request-options.js"; /** * Job titles used by the company */ export declare class Titles extends APIResource { /** * A list of titles. * * - Requires: `API Tier 1` * - Sortable fields: `id`, `created_at`, `updated_at` */ list(query?: TitleListParams | null | undefined, options?: RequestOptions): PagePromise; /** * Create a new title */ create(body: TitleCreateParams, options?: RequestOptions): APIPromise; /** * Retrieve a specific title */ retrieve(id: string, options?: RequestOptions): APIPromise; /** * Update a specific title. */ update(id: string, body: TitleUpdateParams, options?: RequestOptions): APIPromise; /** * Delete a title */ delete(id: string, options?: RequestOptions): APIPromise; } export type TitleListResponsesPageCursorURL = PageCursorURL; export interface TitleListResponse { /** * Identifier field */ id: string; /** * Record creation date */ created_at: string; /** * The name of the title. */ name: string; /** * Record update date */ updated_at: string; } export interface TitleCreateResponse { /** * Identifier field */ id: string; /** * Record creation date */ created_at: string; /** * The name of the title. */ name: string; /** * Record update date */ updated_at: string; } /** * Meta information for the response. */ export interface TitleRetrieveResponse extends BusinessPartnersAPI.Meta { /** * Identifier field */ id: string; /** * Record creation date */ created_at: string; /** * The name of the title. */ name: string; /** * Record update date */ updated_at: string; } export interface TitleUpdateResponse { /** * Identifier field */ id: string; /** * Record creation date */ created_at: string; /** * The name of the title. */ name: string; /** * Record update date */ updated_at: string; } export interface TitleListParams { cursor?: string; order_by?: string; } export interface TitleCreateParams { /** * The name of the title. */ name: string; } export interface TitleUpdateParams { /** * The name of the title. */ name: string; } export declare namespace Titles { export { type TitleListResponse as TitleListResponse, type TitleCreateResponse as TitleCreateResponse, type TitleRetrieveResponse as TitleRetrieveResponse, type TitleUpdateResponse as TitleUpdateResponse, type TitleListResponsesPageCursorURL as TitleListResponsesPageCursorURL, type TitleListParams as TitleListParams, type TitleCreateParams as TitleCreateParams, type TitleUpdateParams as TitleUpdateParams, }; } //# sourceMappingURL=titles.d.ts.map