sbt-graphql.AddMultipleFileStatuses.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 AddMultipleFileStatuses {
object addMultipleFileStatuses extends GraphQLQuery {
val document: sangria.ast.Document = graphql"""mutation addMultipleFileStatuses($$addMultipleFileStatusesInput: AddMultipleFileStatusesInput!) {
addMultipleFileStatuses(addMultipleFileStatusesInput: $$addMultipleFileStatusesInput) {
fileId
statusType
statusValue
}
}"""
case class Variables(addMultipleFileStatusesInput: AddMultipleFileStatusesInput)
object Variables { implicit val jsonEncoder: Encoder[Variables] = deriveEncoder[Variables] }
case class Data(addMultipleFileStatuses: List[AddMultipleFileStatuses])
object Data { implicit val jsonDecoder: Decoder[Data] = deriveDecoder[Data] }
case class AddMultipleFileStatuses(fileId: UUID, statusType: String, statusValue: String)
object AddMultipleFileStatuses {
implicit val jsonDecoder: Decoder[AddMultipleFileStatuses] = deriveDecoder[AddMultipleFileStatuses]
implicit val jsonEncoder: Encoder[AddMultipleFileStatuses] = deriveEncoder[AddMultipleFileStatuses]
}
}
}