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"; /** * Workers who work or have worked at the company */ export declare class CompanyLegalEntityWorkers extends APIResource { /** * A list of company-legal-entity-workers. * * - Requires: `API Tier 2` * - Filterable fields: `status`, `company_entity_id` * - Sortable fields: `id`, `created_at`, `updated_at` */ list(query?: CompanyLegalEntityWorkerListParams | null | undefined, options?: RequestOptions): PagePromise; /** * Retrieve a specific company-legal-entity-worker */ retrieve(id: string, options?: RequestOptions): APIPromise; } export type CompanyLegalEntityWorkerListResponsesPageCursorURL = PageCursorURL; export interface CompanyLegalEntityWorkerListResponse { /** * Identifier field */ id: string; /** * Record creation date */ created_at: string; /** * Record update date */ updated_at: string; /** * The worker's associated company legal entity (CER ID). */ company_entity_id?: string; /** * The worker's status within the organization. */ status?: 'INIT' | 'HIRED' | 'ACCEPTED' | 'ACTIVE' | 'TERMINATED'; } /** * Meta information for the response. */ export interface CompanyLegalEntityWorkerRetrieveResponse extends BusinessPartnersAPI.Meta { /** * Identifier field */ id: string; /** * Record creation date */ created_at: string; /** * Record update date */ updated_at: string; /** * The worker's associated company legal entity (CER ID). */ company_entity_id?: string; /** * The worker's status within the organization. */ status?: 'INIT' | 'HIRED' | 'ACCEPTED' | 'ACTIVE' | 'TERMINATED'; } export interface CompanyLegalEntityWorkerListParams { cursor?: string; filter?: string; order_by?: string; } export declare namespace CompanyLegalEntityWorkers { export { type CompanyLegalEntityWorkerListResponse as CompanyLegalEntityWorkerListResponse, type CompanyLegalEntityWorkerRetrieveResponse as CompanyLegalEntityWorkerRetrieveResponse, type CompanyLegalEntityWorkerListResponsesPageCursorURL as CompanyLegalEntityWorkerListResponsesPageCursorURL, type CompanyLegalEntityWorkerListParams as CompanyLegalEntityWorkerListParams, }; } //# sourceMappingURL=company-legal-entity-workers.d.ts.map