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

sbt-graphql.AddTransferAgreementPrivateBeta.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 AddTransferAgreementPrivateBeta {
  object addTransferAgreementPrivateBeta extends GraphQLQuery {
    val document: sangria.ast.Document = graphql"""mutation addTransferAgreementPrivateBeta($$input: AddTransferAgreementPrivateBetaInput!) {
  addTransferAgreementPrivateBeta(addTransferAgreementPrivateBetaInput: $$input) {
    consignmentId
    allPublicRecords
    allCrownCopyright
    allEnglish
  }
}"""
    case class Variables(input: AddTransferAgreementPrivateBetaInput)
    object Variables { implicit val jsonEncoder: Encoder[Variables] = deriveEncoder[Variables] }
    case class Data(addTransferAgreementPrivateBeta: AddTransferAgreementPrivateBeta)
    object Data { implicit val jsonDecoder: Decoder[Data] = deriveDecoder[Data] }
    case class AddTransferAgreementPrivateBeta(consignmentId: UUID, allPublicRecords: Boolean, allCrownCopyright: Boolean, allEnglish: Option[Boolean])
    object AddTransferAgreementPrivateBeta {
      implicit val jsonDecoder: Decoder[AddTransferAgreementPrivateBeta] = deriveDecoder[AddTransferAgreementPrivateBeta]
      implicit val jsonEncoder: Encoder[AddTransferAgreementPrivateBeta] = deriveEncoder[AddTransferAgreementPrivateBeta]
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy