// Shape returned by /api/partners — matches Partner schema on platform-api,
// plus the `customers` count aggregated at the controller layer.

export type PartnerStatus = 'active' | 'in-negotiation' | 'paused' | 'terminated'

export interface Partner {
  _id: string
  slug: string
  name: string
  domain: string
  status: PartnerStatus
  marginPct: number
  partnershipStartedAt?: string
  contactInfo: {
    primaryName?: string
    primaryEmail?: string
    billingEmail?: string
  }
  billingInfo: {
    companyName?: string
    vatId?: string
    country?: string
    contactEmail?: string
  }
  customers: number // computed at query time
  createdAt: string
  updatedAt: string
}
