import type { Contact } from '../contacts/types' import type { Pipeline } from '../pipeline/types' import type { User } from '../users/types' export type Card = { id: string title: string description: string | null order: number | null isArchived: boolean archivedAt: string | null success: boolean | null finishedAt: string | null organization: string | null organizationSegment: string | null originChannel: string | null originCampaign: string | null accountId: string contactId: string | null pipelineId: string pipelineStageId: string | null statusId: string | null reasonId: string | null ownerId: string | null createdAt: string updatedAt: string // relationships contact?: Contact | null owner?: User | null pipeline?: Pipeline } export type CardRelationships = 'contact' | 'owner' | 'pipeline' export type CreateCardPayload = { title: string pipelineId: string contactId?: string pipelineStageId?: string description?: string organization?: string organizationSegment?: string originChannel?: string originCampaign?: string ownerId?: string } export type UpdateCardPayload = { title?: string description?: string | null contactId?: string | null pipelineStageId?: string | null statusId?: string | null reasonId?: string | null ownerId?: string | null organization?: string | null organizationSegment?: string | null originChannel?: string | null originCampaign?: string | null isArchived?: boolean success?: boolean | null finishedAt?: string | null }