/** * Mailchimp Node - Version 1 * Discriminator: resource=campaign, operation=getAll */ interface Credentials { mailchimpApi: CredentialReference; mailchimpOAuth2Api: CredentialReference; } /** Get many members on a list */ export type MailchimpV1CampaignGetAllParams = { resource: 'campaign'; operation: 'getAll'; authentication?: 'apiKey' | 'oAuth2' | Expression; /** * Whether to return all results or only up to a given limit * @default false */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 10 */ limit?: number | Expression; /** * Options * @default {} */ options?: { /** Restrict the response to campaigns created before the set time */ beforeCreateTime?: string | Expression; /** Restrict the response to campaigns sent before the set time */ beforeSendTime?: string | Expression; /** A comma-separated list of fields to exclude. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ excludeFields?: string[]; /** A comma-separated list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default ["campaigns.id","campaigns.status","campaigns.tracking","campaigns.settings.from_name","campaigns.settings.reply_to","campaigns.settings.title"] */ fields?: string[]; /** List of lists. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ listId?: string | Expression; /** Restrict the response to campaigns created after the set time */ sinceCreateTime?: string | Expression; /** Restrict the response to campaigns sent after the set time */ sinceSendTime?: string | Expression; /** Determines the order direction for sorted results */ sortDirection?: 'ASC' | 'DESC' | Expression; /** Returns files sorted by the specified field */ sortField?: 'create_time' | 'send_time' | Expression; /** The status of the campaign */ status?: 'save' | 'sending' | 'sent' | 'schedule' | Expression; }; }; export type MailchimpV1CampaignGetAllOutput = { _links?: Array<{ href?: string; method?: string; rel?: string; schema?: string; targetSchema?: string; }>; archive_url?: string; content_type?: string; create_time?: string; delivery_status?: { can_cancel?: boolean; emails_canceled?: number; emails_sent?: number; enabled?: boolean; status?: string; }; emails_sent?: number; id?: string; long_archive_url?: string; needs_block_refresh?: boolean; recipients?: { list_id?: string; list_is_active?: boolean; list_name?: string; recipient_count?: number; segment_opts?: { conditions?: Array<{ condition_type?: string; field?: string; op?: string; }>; match?: string; }; segment_text?: string; }; report_summary?: { clicks?: number; ecommerce?: { total_orders?: number; }; opens?: number; subscriber_clicks?: number; unique_opens?: number; }; resendable?: boolean; send_time?: string; settings?: { authenticate?: boolean; auto_footer?: boolean; auto_tweet?: boolean; drag_and_drop?: boolean; fb_comments?: boolean; folder_id?: string; from_name?: string; inline_css?: boolean; reply_to?: string; subject_line?: string; template_id?: number; timewarp?: boolean; title?: string; to_name?: string; use_conversation?: boolean; }; status?: string; tracking?: { clicktale?: string; ecomm360?: boolean; goal_tracking?: boolean; google_analytics?: string; html_clicks?: boolean; opens?: boolean; text_clicks?: boolean; }; type?: string; web_id?: number; }; export type MailchimpV1CampaignGetAllNode = { type: 'n8n-nodes-base.mailchimp'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };