// Типы на основе API схемы
export interface Standard {
  id: string
  name: string
  protocol_name: string // было shortName
  registry_number: string
  range: string
  accuracy: string
  valid_until: string // date format
  created_at: string // datetime
  updated_at: string // datetime
  deleted_at: string | null // datetime or null
}

export interface CreateStandardInput {
  name: string
  protocol_name: string
  registry_number: string
  range: string
  accuracy: string
  valid_until: string // date format
}

export interface CreateStandardOutput {
  id: string
}

export interface PatchStandardInput {
  name?: string | null
  protocol_name?: string | null
  registry_number?: string | null
  range?: string | null
  accuracy?: string | null
  valid_until?: string | null
}

export interface PatchStandardOutput {
  id: string
}

export interface GetStandardOutput {
  standard: Standard | null
}

export interface GetStandardsOutput {
  standards: Standard[]
}
