import gql from 'graphql-tag'

export const RouteLabelReleaseGood = gql`
  type RouteLabelReleaseGood {
    id: String!
    name: String!
    refNo: String
    refNo2: String
    refNo3: String
    routeId: String
    storeId: String
    storeName: String
    stopId: String
    createdAt: String
    lastSeq: Int
    lastPrintedBy: String
  }
`

export const RouteLabelSequenceStatus = gql`
  type RouteLabelSequenceStatus {
    releaseGoodId: String!
    field: String!
    lastSeq: Int!
    history: [String!]
    lastPrintedBy: String
  }
`

export const RouteLabelSequenceReservation = gql`
  type RouteLabelSequenceReservation {
    releaseGoodId: String!
    field: String!
    from: Int!
    to: Int!
  }
`

export const RouteLabelSequenceLogEntry = gql`
  type RouteLabelSequenceLogEntry {
    id: String!
    releaseGoodId: String!
    field: String!
    from: Int!
    to: Int!
    qty: Int!
    createdAt: String!
    creatorName: String
  }
`
