/**
 * Audit & Export Types
 *
 * Types for report generation and data export:
 * - Report types (VVT, RoPA, vendor audit, etc.)
 * - Export formats (PDF, DOCX, XLSX, JSON)
 * - Audit report snapshots
 */

// ==========================================
// ENUMS - EXPORT
// ==========================================

export type ReportType =
  | 'VVT_EXPORT'
  | 'VENDOR_AUDIT'
  | 'ROPA'
  | 'MANAGEMENT_SUMMARY'
  | 'DPIA_INPUT'

export type ExportFormat = 'PDF' | 'DOCX' | 'XLSX' | 'JSON'

// ==========================================
// INTERFACES - AUDIT REPORTS
// ==========================================

export interface ReportScope {
  vendorIds?: string[]
  processingActivityIds?: string[]
  dateRange?: { from: Date; to: Date }
}

export interface AuditReport {
  id: string
  tenantId: string

  type: ReportType

  // Scope
  scope: ReportScope

  // Generierung
  format: ExportFormat
  storagePath: string
  generatedAt: Date
  generatedBy: string

  // Snapshot-Daten (fuer Revisionssicherheit)
  snapshotHash: string // SHA-256 des Inhalts
}
