Adds a new merge field to the Mailchimp list.
Ensures the Mailchimp schema is up to date, adding required fields and removing any extra ones.
Fetches the current merge fields from the Mailchimp list schema.
Fetches data from Mailchimp in chunks.
Initializes and returns configuration settings (database URL).
Initializes the PostgreSQL connection pool from the provided database URL.
Initializes environment variables, logging, and tracing setup.
The main function that initializes environment variables, config, and sync process.
Removes a merge field from the Mailchimp list by with a field ID.
Sends a batch of users to Mailchimp for synchronization.
Synchronizes the user contacts with Mailchimp.
Added a boolean flag to determine whether to process unsubscribes.
Fetch tags from mailchimp and sync the changes to the database
Updates the email addresses of multiple users in a Mailchimp mailing list.