UNPKG

morpheus4j

Version:

Morpheus is a migration tool for Neo4j. It aims to be a simple and intuitive way to migrate your database.

27 lines (26 loc) 858 B
import { FileService } from './file.service'; import { Repository } from './neo4j.repository'; export interface ValidationOptions { failFast?: boolean; summaryOnly?: boolean; } export interface ValidationResult { failures: ValidationFailure[]; isValid: boolean; } export interface ValidationFailure { message: string; severity: 'ERROR' | 'WARNING'; type: 'CHECKSUM_MISMATCH' | 'MISSING_DB' | 'MISSING_FILE' | 'ORDER_MISMATCH' | 'OTHER'; version?: string; } export declare class ValidateService { private readonly repository; private readonly fileService; private static readonly MESSAGES; constructor(repository: Repository, fileService: FileService); validate(options?: ValidationOptions): Promise<ValidationResult>; private printValidationFailures; private reportResult; private wrapError; }