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

sbt-graphql.AddBulkFileMetadata.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 AddBulkFileMetadata {
  object addBulkFileMetadata extends GraphQLQuery {
    val document: sangria.ast.Document = graphql"""mutation addBulkFileMetadata($$updateBulkFileMetadataInput: UpdateBulkFileMetadataInput!) {
  updateBulkFileMetadata(updateBulkFileMetadataInput: $$updateBulkFileMetadataInput) {
    fileIds
    metadataProperties {
      value
      filePropertyName
    }
  }
}"""
    case class Variables(updateBulkFileMetadataInput: UpdateBulkFileMetadataInput)
    object Variables { implicit val jsonEncoder: Encoder[Variables] = deriveEncoder[Variables] }
    case class Data(updateBulkFileMetadata: UpdateBulkFileMetadata)
    object Data { implicit val jsonDecoder: Decoder[Data] = deriveDecoder[Data] }
    case class UpdateBulkFileMetadata(fileIds: List[UUID], metadataProperties: List[UpdateBulkFileMetadata.MetadataProperties])
    object UpdateBulkFileMetadata {
      implicit val jsonDecoder: Decoder[UpdateBulkFileMetadata] = deriveDecoder[UpdateBulkFileMetadata]
      implicit val jsonEncoder: Encoder[UpdateBulkFileMetadata] = deriveEncoder[UpdateBulkFileMetadata]
      case class MetadataProperties(value: String, filePropertyName: String)
      object MetadataProperties {
        implicit val jsonDecoder: Decoder[MetadataProperties] = deriveDecoder[MetadataProperties]
        implicit val jsonEncoder: Encoder[MetadataProperties] = deriveEncoder[MetadataProperties]
      }
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy