namespace e_suite.API.Common.repository;

public interface IWorkflowConverter
{
    Workflow.Core.WorkflowVersion DeserialiseFromDatabase(e_suite.Database.Core.Tables.Workflow.WorkflowVersion dbVersion);

    Task<e_suite.Database.Core.Tables.Workflow.WorkflowVersion> SerialiseToDatabase(
        Workflow.Core.WorkflowVersion runtime,
        e_suite.Database.Core.Tables.Workflow.WorkflowVersion? dbObject = null,
        CancellationToken cancellationToken = default
    );
}