Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

2.5 KB
Raw Blame
import {
  ButtondownSubscriberType,
  ButtondownSubscriberSource,
  ButtondownEmailStatus,
  ButtondownEmailType,
} from './types';

export const subscriberTypeOptions: { label: string; value: ButtondownSubscriberType }[] = [
  { label: 'Regular', value: 'regular' },
  { label: 'Premium', value: 'premium' },
  { label: 'Unactivated', value: 'unactivated' },
  { label: 'Paused', value: 'paused' },
  { label: 'Trialed', value: 'trialed' },
  { label: 'Upcoming', value: 'upcoming' },
  { label: 'Churning', value: 'churning' },
  { label: 'Churned', value: 'churned' },
  { label: 'Unsubscribed', value: 'unsubscribed' },
  { label: 'Undeliverable', value: 'undeliverable' },
  { label: 'Blocked', value: 'blocked' },
  { label: 'Complained', value: 'complained' },
  { label: 'Gifted', value: 'gifted' },
  { label: 'Past Due', value: 'past_due' },
  { label: 'Removed', value: 'removed' },
  { label: 'Unpaid', value: 'unpaid' },
];

export const subscriberSourceOptions: { label: string; value: ButtondownSubscriberSource }[] = [
  { label: 'Admin', value: 'admin' },
  { label: 'API', value: 'api' },
  { label: 'Carrd', value: 'carrd' },
  { label: 'Comment', value: 'comment' },
  { label: 'Embedded form', value: 'embedded_form' },
  { label: 'Hosted form', value: 'form' },
  { label: 'Import', value: 'import' },
  { label: 'Memberful', value: 'memberful' },
  { label: 'Organic', value: 'organic' },
  { label: 'Patreon', value: 'patreon' },
  { label: 'Stripe', value: 'stripe' },
  { label: 'User portal', value: 'user' },
  { label: 'Zapier', value: 'zapier' },
];

export const subscriberOrderingOptions = [
  { label: 'Newest first', value: '-creation_date' },
  { label: 'Oldest first', value: 'creation_date' },
  { label: 'Email address (A-Z)', value: 'email_address' },
  { label: 'Email address (Z-A)', value: '-email_address' },
  { label: 'Last opened (recent first)', value: '-last_open_date' },
  { label: 'Last opened (oldest first)', value: 'last_open_date' },
];

export const emailStatusOptions: { label: string; value: ButtondownEmailStatus }[] = [
  { label: 'Send immediately (about_to_send)', value: 'about_to_send' },
  { label: 'Draft', value: 'draft' },
  { label: 'Scheduled', value: 'scheduled' },
];

export const emailTypeOptions: { label: string; value: ButtondownEmailType }[] = [
  { label: 'Public', value: 'public' },
  { label: 'Private', value: 'private' },
  { label: 'Premium', value: 'premium' },
  { label: 'Free', value: 'free' },
  { label: 'Churned', value: 'churned' },
  { label: 'Archival', value: 'archival' },
];