export interface WildberriesCard {
  nmID: number
  imtID?: number
  nmUUID?: string
  subjectID?: number
  subjectName?: string
  vendorCode: string
  brand: string
  title: string
  description: string
  needKiz?: boolean
  photos?: Array<{
    big: string
    c246x328: string
    c516x688: string
    square: string
    tm: string
  }>
  video?: string
  dimensions?: {
    length: number
    width: number
    height: number
    weightBrutto: number
    isValid: boolean
  }
  characteristics?: Array<{
    id: number
    name: string
    value: string[]
  }>
  sizes: Array<{
    chrtID: number
    techSize: string
    skus?: string[]
    // Legacy fields for backward compatibility
    wbSize: string
    price: number
    discountedPrice: number
    quantity: number
  }>
  tags?: Array<{
    id: number
    name: string
    color: string
  }>
  createdAt?: string
  updatedAt?: string
  // Legacy fields for backward compatibility
  mediaFiles: string[]
  object?: string
  parent?: string
  countryProduction?: string
  supplierVendorCode?: string
}

export interface SelectedCard {
  card: WildberriesCard
  selectedQuantity: number
  customPrice: number // Пользовательская цена за все количество
  selectedFulfillmentOrg: string // ID выбранной FF организации
  selectedFulfillmentServices: string[] // ID выбранных услуг FF (множественный выбор)
  selectedConsumableOrg: string // ID выбранной организации расходников
  selectedConsumableServices: string[] // ID выбранных расходников (множественный выбор)
  deliveryDate: string
  selectedMarket: string
  selectedPlace: string
  sellerName: string
  sellerPhone: string
  selectedServices: string[]
}

export interface FulfillmentService {
  id: string
  name: string
  description?: string
  price: number
  organizationName: string
  organizationId: string
}

export interface ConsumableService {
  id: string
  name: string
  description?: string
  price: number
  unit: string
  organizationName: string
  organizationId: string
}
