{
  "config_version": 1,
  "name": "lead_campaign_incremental_sync",
  "description": "Thirty-minute Salesforce incremental sync for the Lead object set required by issue #1994.",
  "source_profile": "lead_campaign_incremental_sync",
  "load_plan": "configs/lead_campaign_incremental_load_plan.json",
  "default_watermark_field": "SystemModstamp",
  "fallback_watermark_field": "LastModifiedDate",
  "bootstrap_lookback_hours": 720,
  "bootstrap_catchup_lookback_minutes": 360,
  "steady_state_lookback_minutes": 15,
  "require_state_for_implicit_window": true,
  "max_implicit_window_hours": 6,
  "catchup_window_minutes": 30,
  "max_catchup_windows_per_run": 4,
  "replay_success_retention_entries": 48,
  "state_file": "/data/sf-export-hourly/state/lead_campaign_incremental_sync_state.json",
  "target_write_mode": "replace",
  "lead_assignment_replay": {
    "enabled": true,
    "source_object": "Lead",
    "target_table": "lead",
    "new_lead_created_at_field": "CreatedDate",
    "target_description_field": "Description",
    "initial_owner_id": "0055g000001i4R9AAI",
    "override_initial_owner_before_load": false
  },
  "person_identity_resolution": {
    "enabled": true,
    "identity_field": "Salesforce_Identity_Key__c",
    "batch_size": 200,
    "objects": {
      "Lead": {
        "target_table": "lead",
        "reference_sources": [
          {
            "object": "LeadHistory",
            "field": "LeadId"
          },
          {
            "object": "LeadShare",
            "field": "LeadId"
          }
        ],
        "require_existing_target_for_references": true,
        "defer_unmatched_references_to_cross_provider": true
      }
    }
  },
  "lead_cross_provider_dedupe": {
    "enabled": true,
    "source_object": "Lead",
    "target_table": "lead",
    "hubspot_id_field": "HubSpot_Id__c",
    "email_field": "Email",
    "reference_hydration_fields": [
      "Email"
    ],
    "reference_full_row_field_chunk_size": 40,
    "identity_field": "Salesforce_Identity_Key__c",
    "is_deleted_field": "IsDeleted",
    "require_existing_target_match": false,
    "batch_size": 200
  },
  "lead_org_link_reconcile": {
    "enabled": false,
    "source_object": "Lead",
    "lead_target_table": "lead",
    "org_target_table": "org__c",
    "lead_portal_id_field": "Portal_ID__c",
    "org_lookup_field": "ID__c",
    "org_lead_field": "Lead__c",
    "batch_size": 200
  },
  "consistency_check": {
    "mode": "window_count"
  }
}
