import type { CompletedAtMsV3 } from '../schemas/CompletedAtMsV3'; import type { StartedAtMsV3 } from '../schemas/StartedAtMsV3'; /** * Per-entity backfill progress and ES document count for an account. */ export interface BackfillEntityStateV3 { completedAt: CompletedAtMsV3; /** * Number of documents currently present in Elasticsearch for this entity type. * @format int64 */ documentsInES: number; /** * Checkpoint cursor of the last successfully indexed row. */ lastProcessedID: string; startedAt: StartedAtMsV3; /** * Current backfill status for this entity type. */ status: string; /** * Total rows processed for this entity type so far. * @format int64 */ totalProcessed: number; }