import { IDataObject } from 'n8n-workflow';

export interface IContact extends IDataObject {
  id?: string;
  email?: string;
  firstName?: string;
  lastName?: string;
  phone?: string;
  tags?: string[];
  customFields?: ICustomField[];
}

interface ICustomField {
  id: string;
  field_value: string;
}

export type ContactOperation =
  | 'create'
  | 'update'
  | 'delete'
  | 'get'
  | 'getAll'
  | 'addTag'
  | 'removeTag'
  | 'addToSequence'
  | 'removeFromSequence';
