import {
  RouteLabelReleaseGood,
  RouteLabelSequenceLogEntry,
  RouteLabelSequenceReservation,
  RouteLabelSequenceStatus
} from './route-label-sequence'

export const Query = `
  routeLabelReleaseGoodsInExecutingWorksheet(partnerId: String!, refNo: String, worksheetType: String!, seqField: String): [RouteLabelReleaseGood] @transaction
  routeLabelSequenceStatuses(releaseGoodIds: [String!]!, field: String!): [RouteLabelSequenceStatus] @transaction
  routeLabelSequenceLogs(releaseGoodId: String!, field: String!): [RouteLabelSequenceLogEntry] @transaction
`

export const Mutation = `
  reserveRouteLabelSequence(releaseGoodId: String!, field: String!, qty: Int!): RouteLabelSequenceReservation @transaction
`

export const Types = [RouteLabelReleaseGood, RouteLabelSequenceStatus, RouteLabelSequenceReservation, RouteLabelSequenceLogEntry]
