All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sbt-graphql.GetConsignment.scala Maven / Gradle / Ivy

The newest version!
package graphql.codegen
import java.util.UUID
import java.time.ZonedDateTime
import java.time.LocalDateTime
import io.circe.{ Decoder, Encoder }
import io.circe.generic.semiauto.{ deriveDecoder, deriveEncoder }
import sangria.macros._
import types._
object GetConsignment {
  object getConsignment extends GraphQLQuery {
    val document: sangria.ast.Document = graphql"""query getConsignment($$consignmentId: UUID!) {
  getConsignment(consignmentid: $$consignmentId) {
    userid
    seriesid
    parentFolder
    consignmentReference
    parentFolderId
    consignmentStatuses {
      statusType
      value
    }
  }
}"""
    case class Variables(consignmentId: UUID)
    object Variables { implicit val jsonEncoder: Encoder[Variables] = deriveEncoder[Variables] }
    case class Data(getConsignment: Option[GetConsignment])
    object Data { implicit val jsonDecoder: Decoder[Data] = deriveDecoder[Data] }
    case class GetConsignment(userid: UUID, seriesid: Option[UUID], parentFolder: Option[String], consignmentReference: String, parentFolderId: Option[UUID], consignmentStatuses: List[GetConsignment.ConsignmentStatuses])
    object GetConsignment {
      implicit val jsonDecoder: Decoder[GetConsignment] = deriveDecoder[GetConsignment]
      implicit val jsonEncoder: Encoder[GetConsignment] = deriveEncoder[GetConsignment]
      case class ConsignmentStatuses(statusType: String, value: String)
      object ConsignmentStatuses {
        implicit val jsonDecoder: Decoder[ConsignmentStatuses] = deriveDecoder[ConsignmentStatuses]
        implicit val jsonEncoder: Encoder[ConsignmentStatuses] = deriveEncoder[ConsignmentStatuses]
      }
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy