sbt-graphql.GetConsignmentFolderDetails.scala Maven / Gradle / Ivy
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 GetConsignmentFolderDetails {
object getConsignmentFolderDetails extends GraphQLQuery {
val document: sangria.ast.Document = graphql"""query getConsignmentFolderDetails($$consignmentId: UUID!) {
getConsignment(consignmentid: $$consignmentId) {
totalFiles
parentFolder
}
}"""
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(totalFiles: Int, parentFolder: Option[String])
object GetConsignment {
implicit val jsonDecoder: Decoder[GetConsignment] = deriveDecoder[GetConsignment]
implicit val jsonEncoder: Encoder[GetConsignment] = deriveEncoder[GetConsignment]
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy