-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql -- https://github.com/dillonkearns/elm-graphql module Github.Interface.Deletable exposing (commonSelection, onCommitComment, onGistComment, onIssueComment, onPullRequestReview, onPullRequestReviewComment, selection, viewerCanDelete) 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 (FragmentSelectionSet(..), SelectionSet(..)) import Json.Decode as Decode {-| Select only common fields from the interface. -} commonSelection : (a -> constructor) -> SelectionSet (a -> constructor) Github.Interface.Deletable commonSelection constructor = Object.selection constructor {-| Select both common and type-specific fields from the interface. -} selection : (Maybe typeSpecific -> a -> constructor) -> List (FragmentSelectionSet typeSpecific Github.Interface.Deletable) -> SelectionSet (a -> constructor) Github.Interface.Deletable selection constructor typeSpecificDecoders = Object.interfaceSelection typeSpecificDecoders constructor onCommitComment : SelectionSet decodesTo Github.Object.CommitComment -> FragmentSelectionSet decodesTo Github.Interface.Deletable onCommitComment (SelectionSet fields decoder) = FragmentSelectionSet "CommitComment" fields decoder onGistComment : SelectionSet decodesTo Github.Object.GistComment -> FragmentSelectionSet decodesTo Github.Interface.Deletable onGistComment (SelectionSet fields decoder) = FragmentSelectionSet "GistComment" fields decoder onIssueComment : SelectionSet decodesTo Github.Object.IssueComment -> FragmentSelectionSet decodesTo Github.Interface.Deletable onIssueComment (SelectionSet fields decoder) = FragmentSelectionSet "IssueComment" fields decoder onPullRequestReview : SelectionSet decodesTo Github.Object.PullRequestReview -> FragmentSelectionSet decodesTo Github.Interface.Deletable onPullRequestReview (SelectionSet fields decoder) = FragmentSelectionSet "PullRequestReview" fields decoder onPullRequestReviewComment : SelectionSet decodesTo Github.Object.PullRequestReviewComment -> FragmentSelectionSet decodesTo Github.Interface.Deletable onPullRequestReviewComment (SelectionSet fields decoder) = FragmentSelectionSet "PullRequestReviewComment" fields decoder {-| Check if the current viewer can delete this object. -} viewerCanDelete : Field Bool Github.Interface.Deletable viewerCanDelete = Object.fieldDecoder "viewerCanDelete" [] Decode.bool