import gql from 'graphql-tag'

export const listTransactionLinksAdmin = gql`
  query ($currentPage: Int = 1, $pageSize: Int = 5, $userId: Int!) {
    listTransactionLinksAdmin(
      currentPage: $currentPage
      pageSize: $pageSize
      userId: $userId
      filters: { withRedeemed: true, withExpired: true, withDeleted: true }
    ) {
      linkCount
      linkList {
        id
        amount
        holdAvailableAmount
        memo
        code
        createdAt
        validUntil
        redeemedAt
        deletedAt
      }
    }
  }
`
