namespace StellaOps.Feedser.Storage.Mongo.Dtos;

public interface IDtoStore
{
    Task<DtoRecord> UpsertAsync(DtoRecord record, CancellationToken cancellationToken);

    Task<DtoRecord?> FindByDocumentIdAsync(Guid documentId, CancellationToken cancellationToken);

    Task<IReadOnlyList<DtoRecord>> GetBySourceAsync(string sourceName, int limit, CancellationToken cancellationToken);
}
