sbt-graphql.AddBulkFFIDMetadata.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 AddBulkFFIDMetadata {
object addBulkFFIDMetadata extends GraphQLQuery {
val document: sangria.ast.Document = graphql"""mutation addBulkFFIDMetadata($$addBulkFFIDMetadataInput: FFIDMetadataInput!) {
addBulkFFIDMetadata(addBulkFFIDMetadataInput: $$addBulkFFIDMetadataInput) {
fileId
}
}"""
case class Variables(addBulkFFIDMetadataInput: FFIDMetadataInput)
object Variables { implicit val jsonEncoder: Encoder[Variables] = deriveEncoder[Variables] }
case class Data(addBulkFFIDMetadata: List[AddBulkFFIDMetadata])
object Data { implicit val jsonDecoder: Decoder[Data] = deriveDecoder[Data] }
case class AddBulkFFIDMetadata(fileId: UUID)
object AddBulkFFIDMetadata {
implicit val jsonDecoder: Decoder[AddBulkFFIDMetadata] = deriveDecoder[AddBulkFFIDMetadata]
implicit val jsonEncoder: Encoder[AddBulkFFIDMetadata] = deriveEncoder[AddBulkFFIDMetadata]
}
}
}