Component evidence

types/campaign.ts

aylin · apps/backend/src/types/campaign.ts · typescript · MIT
crmdatabase

TypeScript interfaces for campaign entities and requests.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/mesut/aylin | License: MIT | Copyright 2026 Aylin Contributors
// Provided via justclaw.it.com; keep this notice with the code.
export interface Campaign {
  id: string;
  userId: string;
  name: string;
  phoneNumberId?: string;
  assistantId: string;
  scheduleType: 'send-now' | 'scheduled';
  scheduledDate?: string;
  status: 'draft' | 'scheduled' | 'running' | 'paused' | 'completed' | 'failed';
  retryCount: number;
  retryIntervalMinutes: number;
  createdAt: string;
  updatedAt: string;
}

export interface CampaignContact {
  id: string;
  campaignId: string;
  phoneNumber: string;
  variables?: Record<string, any>;
  conversationId?: string;
  attemptCount: number;
  lastAttemptAt: string | null;
  createdAt: string;
  updatedAt: string;
}

export inter

... (truncated -- full source via MCP)