import { IDataObject } from 'n8n-workflow';

export interface ICustomField extends IDataObject {
  id?: string;
  name: string;
  dataType: 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'SELECT';
  model: 'contact' | 'opportunity';
  options?: string[];
  placeholder?: string;
  defaultValue?: any;
}

export type CustomFieldOperation =
  | 'create'
  | 'update'
  | 'delete'
  | 'get'
  | 'getAll';
