import { WorkflowState, WorkflowStateRepository } from 'steveo'; import { ITXClientDenyList } from '@prisma/client/runtime/library'; import { PrismaClient } from '@prisma/client'; export interface WorkflowInitProps { workflowId: string; serviceId: string; current: string; initial: unknown; } /** * */ export declare class WorkflowStateRepositoryPostgres implements WorkflowStateRepository { private prisma; constructor(prisma: Omit); /** * Create a brand new workflow state given the identifier. * The ID must be unique. * @param workflowId Unique ID to be used for the new workflow execution * @param serviceId The identifier for the service the workflow is running on. This does not identify the execution pod, only the service name common across pods */ workflowInit(props: WorkflowInitProps): Promise; /** * */ loadWorkflow(workflowId: string): Promise; /** * */ updateWorkflowCompleted(workflowId: string): Promise; /** * */ deleteWorkflow(workflowId: string): Promise; /** * */ updateCurrentStep(workflowId: string, stepName: string): Promise; /** * */ storeExecuteError(workflowId: string, identifier: string, error: unknown): Promise; /** * */ storeStepResult(workflowId: string, nextStep: string, result: unknown): Promise; /** * */ rollbackStepExecute(workflowId: string, nextStep: string): Promise; }