@bernierllc/temporal-workflow-ui
Version:
Thin domain-specific wrapper around @bernierllc/generic-workflow-ui for Temporal workflows
31 lines (30 loc) • 809 B
TypeScript
/**
* Validation Error Severity
*/
export type ValidationSeverity = 'error' | 'warning';
/**
* Validation Error
* Details about a single validation issue
*/
export interface ValidationError {
/** Stage ID where error occurred (if applicable) */
stageId?: string;
/** Transition ID where error occurred (if applicable) */
transitionId?: string;
/** Field that has the error (if applicable) */
field?: string;
/** Human-readable error message */
message: string;
/** Severity level */
severity: ValidationSeverity;
}
/**
* Validation Result
* Result of validating a Temporal workflow
*/
export interface ValidationResult {
/** Whether the workflow is valid */
valid: boolean;
/** List of validation errors/warnings */
errors: ValidationError[];
}