|
|
@ -1,7 +1,21 @@
|
|
|
|
|
|
|
|
export interface ValidationFailure {
|
|
|
|
|
|
|
|
propertyName: string;
|
|
|
|
|
|
|
|
errorMessage: string;
|
|
|
|
|
|
|
|
severity: 'error' | 'warning';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface ValidationError extends ValidationFailure {
|
|
|
|
|
|
|
|
isWarning: false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface ValidationWarning extends ValidationFailure {
|
|
|
|
|
|
|
|
isWarning: true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export interface Pending<T> {
|
|
|
|
export interface Pending<T> {
|
|
|
|
value: T;
|
|
|
|
value: T;
|
|
|
|
errors: any[];
|
|
|
|
errors: ValidationError[];
|
|
|
|
warnings: any[];
|
|
|
|
warnings: ValidationWarning[];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export type PendingSection<T> = {
|
|
|
|
export type PendingSection<T> = {
|
|
|
|