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

sbt-graphql.DeleteFileMetadata.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 DeleteFileMetadata {
  object deleteFileMetadata extends GraphQLQuery {
    val document: sangria.ast.Document = graphql"""mutation deleteFileMetadata($$deleteFileMetadataInput: DeleteFileMetadataInput!) {
  deleteFileMetadata(deleteFileMetadataInput: $$deleteFileMetadataInput) {
    fileIds
    filePropertyNames
  }
}"""
    case class Variables(deleteFileMetadataInput: DeleteFileMetadataInput)
    object Variables { implicit val jsonEncoder: Encoder[Variables] = deriveEncoder[Variables] }
    case class Data(deleteFileMetadata: DeleteFileMetadata)
    object Data { implicit val jsonDecoder: Decoder[Data] = deriveDecoder[Data] }
    case class DeleteFileMetadata(fileIds: List[UUID], filePropertyNames: List[String])
    object DeleteFileMetadata {
      implicit val jsonDecoder: Decoder[DeleteFileMetadata] = deriveDecoder[DeleteFileMetadata]
      implicit val jsonEncoder: Encoder[DeleteFileMetadata] = deriveEncoder[DeleteFileMetadata]
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy