import { gql } from '@apollo/client'

// Мутация для приемки поставки расходников фулфилмента V2
export const FULFILLMENT_RECEIVE_CONSUMABLE_SUPPLY = gql`
  mutation FulfillmentReceiveConsumableSupply(
    $id: ID!
    $items: [ReceiveFulfillmentConsumableSupplyItemInput!]!
    $notes: String
  ) {
    fulfillmentReceiveConsumableSupply(
      id: $id
      items: $items
      notes: $notes
    ) {
      success
      message
      order {
        id
        status
        receivedAt
        receiptNotes
        items {
          id
          receivedQuantity
          defectQuantity
        }
      }
    }
  }
`