-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql -- https://github.com/dillonkearns/elm-graphql module Github.Object.License exposing (body, conditions, description, featured, hidden, id, implementation, key, limitations, name, nickname, permissions, selection, spdxId, url) import Github.InputObject import Github.Interface import Github.Object import Github.Scalar import Github.Union import Graphql.Field as Field exposing (Field) import Graphql.Internal.Builder.Argument as Argument exposing (Argument) import Graphql.Internal.Builder.Object as Object import Graphql.Internal.Encode as Encode exposing (Value) import Graphql.OptionalArgument exposing (OptionalArgument(..)) import Graphql.SelectionSet exposing (SelectionSet) import Json.Decode as Decode {-| Select fields to build up a SelectionSet for this object. -} selection : (a -> constructor) -> SelectionSet (a -> constructor) Github.Object.License selection constructor = Object.selection constructor {-| The full text of the license -} body : Field String Github.Object.License body = Object.fieldDecoder "body" [] Decode.string {-| The conditions set by the license -} conditions : SelectionSet decodesTo Github.Object.LicenseRule -> Field (List (Maybe decodesTo)) Github.Object.License conditions object_ = Object.selectionField "conditions" [] object_ (identity >> Decode.nullable >> Decode.list) {-| A human-readable description of the license -} description : Field (Maybe String) Github.Object.License description = Object.fieldDecoder "description" [] (Decode.string |> Decode.nullable) {-| Whether the license should be featured -} featured : Field Bool Github.Object.License featured = Object.fieldDecoder "featured" [] Decode.bool {-| Whether the license should be displayed in license pickers -} hidden : Field Bool Github.Object.License hidden = Object.fieldDecoder "hidden" [] Decode.bool id : Field Github.Scalar.Id Github.Object.License id = Object.fieldDecoder "id" [] (Decode.oneOf [ Decode.string, Decode.float |> Decode.map Debug.toString, Decode.int |> Decode.map Debug.toString, Decode.bool |> Decode.map Debug.toString ] |> Decode.map Github.Scalar.Id) {-| Instructions on how to implement the license -} implementation : Field (Maybe String) Github.Object.License implementation = Object.fieldDecoder "implementation" [] (Decode.string |> Decode.nullable) {-| The lowercased SPDX ID of the license -} key : Field String Github.Object.License key = Object.fieldDecoder "key" [] Decode.string {-| The limitations set by the license -} limitations : SelectionSet decodesTo Github.Object.LicenseRule -> Field (List (Maybe decodesTo)) Github.Object.License limitations object_ = Object.selectionField "limitations" [] object_ (identity >> Decode.nullable >> Decode.list) {-| The license full name specified by -} name : Field String Github.Object.License name = Object.fieldDecoder "name" [] Decode.string {-| Customary short name if applicable (e.g, GPLv3) -} nickname : Field (Maybe String) Github.Object.License nickname = Object.fieldDecoder "nickname" [] (Decode.string |> Decode.nullable) {-| The permissions set by the license -} permissions : SelectionSet decodesTo Github.Object.LicenseRule -> Field (List (Maybe decodesTo)) Github.Object.License permissions object_ = Object.selectionField "permissions" [] object_ (identity >> Decode.nullable >> Decode.list) {-| Short identifier specified by -} spdxId : Field (Maybe String) Github.Object.License spdxId = Object.fieldDecoder "spdxId" [] (Decode.string |> Decode.nullable) {-| URL to the license on -} url : Field (Maybe Github.Scalar.Uri) Github.Object.License url = Object.fieldDecoder "url" [] (Decode.oneOf [ Decode.string, Decode.float |> Decode.map Debug.toString, Decode.int |> Decode.map Debug.toString, Decode.bool |> Decode.map Debug.toString ] |> Decode.map Github.Scalar.Uri |> Decode.nullable)