import { APIResource } from "../core/resource.js"; import { APIPromise } from "../core/api-promise.js"; import { RequestOptions } from "../internal/request-options.js"; export declare class CustomFields extends APIResource { /** * Create a custom field */ create(body: CustomFieldCreateParams, options?: RequestOptions): APIPromise; /** * Get a custom field by its ID */ retrieve(id: string, options?: RequestOptions): APIPromise; /** * Update a custom field */ update(id: string, body: CustomFieldUpdateParams, options?: RequestOptions): APIPromise; /** * Get all custom fields */ retrieveAll(query?: CustomFieldRetrieveAllParams | null | undefined, options?: RequestOptions): APIPromise; } export interface CustomFieldCreateParams { /** * The label of the custom field */ label: string; /** * The object type of the custom field */ object_type: 'account' | 'issue' | 'contact'; /** * The slug of the custom field */ slug: string; /** * The type of the custom field */ type: 'text' | 'number' | 'decimal' | 'boolean' | 'date' | 'datetime' | 'user' | 'url' | 'select' | 'multiselect'; /** * The default value for single-valued custom fields */ default_value?: string; /** * The default values for multi-valued custom fields */ default_values?: Array; /** * The description of the custom field */ description?: string; } export interface CustomFieldUpdateParams { /** * The default value for single-valued custom fields */ default_value?: string; /** * The default values for multi-valued custom fields */ default_values?: Array; /** * The description of the custom field */ description?: string; /** * The label of the custom field */ label?: string; /** * The slug of the custom field */ slug?: string; } export interface CustomFieldRetrieveAllParams { /** * The object type of the custom fields */ object_type?: 'account' | 'issue' | 'contact'; } export declare namespace CustomFields { export { type CustomFieldCreateParams as CustomFieldCreateParams, type CustomFieldUpdateParams as CustomFieldUpdateParams, type CustomFieldRetrieveAllParams as CustomFieldRetrieveAllParams, }; } //# sourceMappingURL=custom-fields.d.ts.map