import { WorkflowStepAction, WorkflowResultType, ApplicantProgressStatus, RiskLevel, KycStatus, ReviewStatus } from './enums'; /** * Information about a specific workflow step */ export interface FlowStep { order: number; action: WorkflowStepAction; name: string; /** * For an Additional Data step with a definition, the definition's raw title (plain text or a * `$t:key` marker). Otherwise `null`, or absent from older backends. */ title?: string | null; description: string; } /** * Detailed information about a workflow step */ export interface StepInfo { action: WorkflowStepAction; order: number; name: string; displayName: string; subtitle: string; description: string; visibility?: boolean; } /** * Complete applicant progress result * Contains all information about the current state of an applicant's workflow */ export interface ProgressApplicantResult { applicantId: number; workFlowKey: string; workflowResult: WorkflowResultType | null; riskLevel: RiskLevel | null; kycStatus: KycStatus | null; reviewStatus: ReviewStatus; nextWorkflowKey: string; nextWorkflowName: string; status: ApplicantProgressStatus; customMessage: string; customMessageDE: string; currentStep: FlowStep | null; flowSteps: FlowStep[]; stepInfoList: StepInfo[]; } /** * Simplified applicant progress status result */ export interface ProgressApplicantStatusResult { applicantId: number; workFlowKey: string; workflowResult: WorkflowResultType | null; riskLevel: RiskLevel | null; kycStatus: KycStatus | null; reviewStatus: ReviewStatus; nextWorkflowKey: string; nextWorkflowName: string; status: ApplicantProgressStatus; } /** * Workflow history entry */ export interface ApplicantProgressHistory { id: number; applicantProgressId: number; workflowStepId: number | null; title: string; result: string; additionalData: string; creationTime: string; } //# sourceMappingURL=workflow.d.ts.map