schemashift-cli 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -39,6 +39,14 @@ declare class GitIntegration {
39
39
  generateBranchName(prefix: string, from: string, to: string): string;
40
40
  }
41
41
 
42
+ interface FileRiskAssessment {
43
+ filePath: string;
44
+ riskScore: number;
45
+ riskLevel: 'low' | 'medium' | 'high' | 'critical';
46
+ warningCount: number;
47
+ errorCount: number;
48
+ actionItems: string[];
49
+ }
42
50
  interface MigrationReport {
43
51
  summary: {
44
52
  totalFiles: number;
@@ -49,12 +57,16 @@ interface MigrationReport {
49
57
  to: string;
50
58
  timestamp: string;
51
59
  duration: number;
60
+ overallRiskScore?: number;
61
+ overallRiskLevel?: 'low' | 'medium' | 'high' | 'critical';
62
+ compatibilityPercent?: number;
52
63
  };
53
64
  files: Array<{
54
65
  path: string;
55
66
  success: boolean;
56
67
  errors: string[];
57
68
  warnings: string[];
69
+ risk?: FileRiskAssessment;
58
70
  diff?: {
59
71
  before: string;
60
72
  after: string;
@@ -63,9 +75,12 @@ interface MigrationReport {
63
75
  customRulesApplied: string[];
64
76
  }
65
77
  declare class ReportGenerator {
66
- generateReport(results: TransformResult[], from: string, to: string, startTime: number, customRules?: string[]): MigrationReport;
78
+ generateReport(results: TransformResult[], from: string, to: string, startTime: number, customRules?: string[], includeRisk?: boolean): MigrationReport;
79
+ assessFileRisk(result: TransformResult): FileRiskAssessment;
80
+ private scoreToLevel;
67
81
  writeJson(report: MigrationReport, outputPath: string): void;
68
82
  writeHtml(report: MigrationReport, outputPath: string): void;
83
+ writeCsv(report: MigrationReport, outputPath: string): void;
69
84
  private generateHtml;
70
85
  private escapeHtml;
71
86
  }
package/dist/index.d.ts CHANGED
@@ -39,6 +39,14 @@ declare class GitIntegration {
39
39
  generateBranchName(prefix: string, from: string, to: string): string;
40
40
  }
41
41
 
42
+ interface FileRiskAssessment {
43
+ filePath: string;
44
+ riskScore: number;
45
+ riskLevel: 'low' | 'medium' | 'high' | 'critical';
46
+ warningCount: number;
47
+ errorCount: number;
48
+ actionItems: string[];
49
+ }
42
50
  interface MigrationReport {
43
51
  summary: {
44
52
  totalFiles: number;
@@ -49,12 +57,16 @@ interface MigrationReport {
49
57
  to: string;
50
58
  timestamp: string;
51
59
  duration: number;
60
+ overallRiskScore?: number;
61
+ overallRiskLevel?: 'low' | 'medium' | 'high' | 'critical';
62
+ compatibilityPercent?: number;
52
63
  };
53
64
  files: Array<{
54
65
  path: string;
55
66
  success: boolean;
56
67
  errors: string[];
57
68
  warnings: string[];
69
+ risk?: FileRiskAssessment;
58
70
  diff?: {
59
71
  before: string;
60
72
  after: string;
@@ -63,9 +75,12 @@ interface MigrationReport {
63
75
  customRulesApplied: string[];
64
76
  }
65
77
  declare class ReportGenerator {
66
- generateReport(results: TransformResult[], from: string, to: string, startTime: number, customRules?: string[]): MigrationReport;
78
+ generateReport(results: TransformResult[], from: string, to: string, startTime: number, customRules?: string[], includeRisk?: boolean): MigrationReport;
79
+ assessFileRisk(result: TransformResult): FileRiskAssessment;
80
+ private scoreToLevel;
67
81
  writeJson(report: MigrationReport, outputPath: string): void;
68
82
  writeHtml(report: MigrationReport, outputPath: string): void;
83
+ writeCsv(report: MigrationReport, outputPath: string): void;
69
84
  private generateHtml;
70
85
  private escapeHtml;
71
86
  }