variable "destinations" {
  description = "A map of destinations to create"
  default = {
    MARKETING_INTEGRATIONS = {
      snowflake_database = "MARKETING_INTEGRATIONS"
      snowflake_host     = "orchard.snowflakecomputing.com"
      snowflake_user     = "MARKETING_INTEGRATIONS_FIVETRAN"
    }
    QA_MARKETING_INTEGRATIONS = {
      snowflake_database = "QA_MARKETING_INTEGRATIONS"
      snowflake_host     = "delphi.us-east-1.snowflakecomputing.com"
      snowflake_user     = "QA_MARKETING_INTEGRATIONS_FIVETRAN"
    }
    PROD_MARKETING_INTEGRATIONS = {
      snowflake_database = "PROD_MARKETING_INTEGRATIONS"
      snowflake_host     = "delphi.us-east-1.snowflakecomputing.com"
      snowflake_user     = "PROD_MARKETING_INTEGRATIONS_FIVETRAN"
    }
  }
}

variable "snowflake_destination_schema" {
  type        = string
  description = "The name of the destination schema for the connector."
  default     = "facebook_ads"
}

variable "connector_sync_frequency" {
  type        = number
  description = "The sync frequency for the connector in seconds."
  default     = 1440
}

variable "facebook_account_ids" {
  type        = list(string)
  description = "List of Facebook account IDs to sync data for."
  default = [
    "act_413403703185003",
  ]
}

variable "facebook_data_table_name" {
  type        = string
  description = "The name of the table to sync facebook ad data to."
  default     = "basic_ad"
}

variable "facebook_prebuilt_report_name" {
  type        = string
  description = "The name of the prebuilt report to use for syncing facebook ad data."
  default     = "BASIC_AD"
}

variable "facebook_data_aggregation_duration" {
  type        = string
  description = "The aggregation duration for Facebook data."
  default     = "Day"
}

variable "facebook_data_initial_sync_months" {
  type        = string
  description = "The number of months of reporting data to include in the initial sync."
  default     = "SIX"
}
