namespace StellaOps.Feedser.Storage.Mongo.Documents;

public interface IDocumentStore
{
    Task<DocumentRecord> UpsertAsync(DocumentRecord record, CancellationToken cancellationToken);

    Task<DocumentRecord?> FindBySourceAndUriAsync(string sourceName, string uri, CancellationToken cancellationToken);

    Task<DocumentRecord?> FindAsync(Guid id, CancellationToken cancellationToken);

    Task<bool> UpdateStatusAsync(Guid id, string status, CancellationToken cancellationToken);
}
