/**
 * Types for Developer Documentation Page
 */

export interface ServiceNode {
  id: string
  name: string
  type: 'frontend' | 'backend' | 'database' | 'cache' | 'search' | 'storage' | 'security' | 'communication' | 'ai' | 'erp'
  port?: string
  technology: string
  description: string
  connections?: string[]
}

export interface ServiceEndpoint {
  method: string
  path: string
  description: string
}

export interface ServiceDefinition {
  id: string
  name: string
  type: string
  port: number
  container: string
  description: string
  purpose: string
  tech: string[]
  healthEndpoint: string | null
  endpoints: ServiceEndpoint[]
  envVars: string[]
}

export interface ArchitectureLayer {
  id: string
  name: string
  description: string
  types: string[]
}

export type TabType = 'overview' | 'services' | 'api' | 'docker' | 'testing'
