import gql from 'graphql-tag'

export * from './tracking-camera'
export * from './tracking-camera-list'

export const TrackingCameraResolver = gql`
  extend type Query {
    trackingCameras(filters: [Filter], pagination: Pagination, sortings: [Sorting]): TrackingCameraList
    trackingCamera(name: String!): TrackingCamera
  }
  extend type Mutation {
    detectTrackingCameraROIs(name: String!): [ROI]
    calibrateHandeyeMatrix(name: String!): Matrix
    calibrateCameraParameter(name: String!): CameraParameter
    captureCalibrateResult(name: String!): Boolean
    getCalibrateResult(name: String!): Boolean
    finishCameraCalibrate(name: String!): Boolean
    finishHandeyeCalibrate(name: String!): Boolean
    startHandeyeCalibrate(name: String!): Boolean
    getHandeyeResult(name: String!): Boolean
  }
`
