import { ILead } from './Lead'; import { LeadOrigin, LeadPriority, LeadPropertyValue, LeadStage } from './Common'; export interface ILeadFilter { search?: string; stages?: LeadStage[]; statusIds?: string[]; priorities?: LeadPriority[]; origins?: LeadOrigin[]; contactIds?: string[]; assigneeIds?: string[]; campaignIds?: string[]; createdFrom?: Date; createdTo?: Date; expectedCloseFrom?: Date; expectedCloseTo?: Date; fields?: { fieldNameKey: string; operator: string; value?: LeadPropertyValue; }[]; } export interface ILeadQuery { cursor?: string; limit?: number; filter?: ILeadFilter; sort?: { fieldNameKey: string; direction: 'ASC' | 'DESC'; }[]; } export interface ILeadPage { items: ILead[]; nextCursor?: string; hasMore: boolean; } export interface ITransitionLeadDto { expectedVersion: number; toStatusId: string; comment?: string; }