# Vendor Report Generator Configuration

# SharePoint Integration
sharepoint:
  enabled: false  # Set to true to enable SharePoint downloads
  site_url: "https://yourcompany.sharepoint.com/sites/YourSite"
  folder_path: "/Shared Documents/Reports"  # Path to folder containing Excel files
  # file_path: "/Shared Documents/Reports/file.xlsx"  # Alternative: single file path
  local_dir: "reports"  # Local directory to save downloaded files
  username: null  # Username for user authentication (leave null if using app auth)
  password: null  # Password for user authentication (leave null if using app auth)
  client_id: null  # Azure AD app client ID (for app authentication)
  client_secret: null  # Azure AD app client secret (for app authentication)
  use_app_authentication: false  # Set to true to use app authentication (recommended)
  file_pattern: "*.xlsx"  # Pattern to filter files
  overwrite: true  # Whether to overwrite existing files

# Scheduler Configuration
scheduler:
  enabled: false  # Set to true to enable scheduled report generation
  schedule_type: "interval"  # Options: "interval", "cron", or "once"
  interval_hours: 24  # For interval type: generate report every N hours
  cron_expression: "0 8 * * *"  # For cron type: generate at 8 AM daily (cron format)
  timezone: "America/New_York"  # Timezone for scheduling

# API Configuration (for on-demand report generation)
api:
  enabled: false  # Set to true to enable web API
  host: "0.0.0.0"  # Host to bind API server
  port: 8080  # Port for API server
  api_key: null  # Optional API key for authentication (set to enable auth)

# Report Settings
report:
  output_dir: "output"  # Directory for generated reports
  reports_dir: "reports"  # Directory containing Excel files

