UNPKG

@letanure/resend-cli

Version:

A command-line interface for Resend email API

136 lines 3.9 kB
export const fields = [ { name: 'broadcast-id', label: 'Broadcast ID', placeholder: '49a3999c-0ce1-4ea6-ab68-afcd6dc2e794', helpText: 'The ID of the broadcast you want to update', cliFlag: '--broadcast-id', cliShortFlag: '-b', }, { name: 'audience-id', label: 'Audience ID', placeholder: '78261eea-8f8b-4381-83c6-79fa7120f1cf', helpText: 'The ID of the audience you want to send to', cliFlag: '--audience-id', cliShortFlag: '-a', }, { name: 'from', label: 'From', placeholder: 'Your Name <sender@domain.com>', helpText: 'Sender email address with optional name', cliFlag: '--from', cliShortFlag: '-f', }, { name: 'subject', label: 'Subject', placeholder: 'Enter broadcast subject', helpText: 'Email subject line', cliFlag: '--subject', cliShortFlag: '-s', }, { name: 'reply-to', label: 'Reply To', placeholder: 'reply@domain.com', helpText: 'Reply-to address(es) - comma separated', cliFlag: '--reply-to', cliShortFlag: '-r', }, { name: 'html', label: 'HTML Content', placeholder: '<p>Your HTML content here</p>', helpText: 'HTML version of the message', cliFlag: '--html', cliShortFlag: '-h', }, { name: 'text', label: 'Text Content', placeholder: 'Your plain text message here...', helpText: 'Plain text version', cliFlag: '--text', cliShortFlag: '-t', }, { name: 'name', label: 'Broadcast Name', placeholder: 'My Broadcast Campaign', helpText: 'Friendly name for internal reference (optional)', cliFlag: '--name', cliShortFlag: '-n', }, ]; export const updateBroadcastFields = [ { name: 'broadcastId', label: 'Broadcast ID', type: 'input-with-selector', placeholder: '49a3999c-0ce1-4ea6-ab68-afcd6dc2e794', helpText: 'Enter the broadcast ID to update', }, { name: 'audienceId', label: 'Audience ID', type: 'input-with-selector', placeholder: '78261eea-8f8b-4381-83c6-79fa7120f1cf', helpText: 'The ID of the audience you want to send to (optional)', }, { name: 'from', label: 'From', type: 'text', placeholder: 'Your Name <sender@domain.com>', helpText: 'Sender email address with optional friendly name (optional)', }, { name: 'subject', label: 'Subject', type: 'text', placeholder: 'Enter broadcast subject', helpText: 'Email subject line (optional)', }, { name: 'replyTo', label: 'Reply To', type: 'text', placeholder: 'reply@domain.com', helpText: 'Reply-to address(es) - comma separated for multiple (optional)', }, { name: 'html', label: 'HTML Content', type: 'textarea', placeholder: '<p>Your HTML content here</p>', helpText: 'HTML version of the message (optional)', }, { name: 'text', label: 'Text Content', type: 'textarea', placeholder: 'Your plain text message here...', helpText: 'Plain text version of the message (optional)', }, { name: 'name', label: 'Broadcast Name', type: 'text', placeholder: 'My Broadcast Campaign', helpText: 'Friendly name for internal reference (optional)', }, ]; // Display fields for the update result export const displayFields = [ { name: 'id', label: 'ID', placeholder: '', helpText: '', cliFlag: '--id', cliShortFlag: '-i', }, ]; //# sourceMappingURL=fields.js.map