import type { api_List } from '../models/api_List'; import type { customfields_ClientCustomField } from '../models/customfields_ClientCustomField'; import type { customfields_ClientCustomFieldOption } from '../models/customfields_ClientCustomFieldOption'; import type { customfields_createCustomFieldsRequest } from '../models/customfields_createCustomFieldsRequest'; import type { customfields_createCustomFieldsResponse } from '../models/customfields_createCustomFieldsResponse'; import type { CancelablePromise } from '../core/CancelablePromise'; export declare class CustomFieldsService { /** * List custom fields * * Lists the custom fields configured for the portal. Supports filtering by * name and by the entity the field belongs to (client or company). * * @param name Filter custom fields by name (case-insensitive exact match) * @param entityType Filter custom fields by the entity they belong to * * @example * await assembly.listCustomFields(); */ static listCustomFields({ name, entityType, }: { /** * Filter custom fields by name (case-insensitive exact match) */ name?: string; /** * Filter custom fields by the entity they belong to */ entityType?: 'client' | 'company'; }): CancelablePromise<(api_List & { data?: Array; })>; /** * Create custom fields * * Creates one or more custom fields for the portal. Each field requires a * name, a type, and the entity it belongs to. Options may only be supplied * for multi-select fields. * * @example * await assembly.createCustomField({ requestBody: ... }); */ static createCustomField({ requestBody, }: { /** * Custom fields to create */ requestBody: customfields_createCustomFieldsRequest; }): CancelablePromise; /** * List custom field options * * Lists the selectable options for a multi-select custom field. Supports * filtering the returned options by label. * * @param id Custom field ID * @param label Filter options by label (case-insensitive exact match) * * @example * await assembly.listCustomFieldOptions({ id: ... }); */ static listCustomFieldOptions({ id, label, }: { /** * Custom field ID */ id: string; /** * Filter options by label (case-insensitive exact match) */ label?: string; }): CancelablePromise<(api_List & { data?: Array; })>; }