-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql -- https://github.com/dillonkearns/elm-graphql module Github.Object.RepositoryInvitationRepository exposing (ShortDescriptionHTMLOptionalArguments, createdAt, description, descriptionHTML, forkCount, hasIssuesEnabled, hasWikiEnabled, homepageUrl, isArchived, isFork, isLocked, isMirror, isPrivate, license, licenseInfo, lockReason, mirrorUrl, name, nameWithOwner, owner, pushedAt, resourcePath, shortDescriptionHTML, updatedAt, url) import Github.Enum.RepositoryLockReason import Github.InputObject import Github.Interface import Github.Object import Github.Scalar import Github.ScalarCodecs import Github.Union 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.Operation exposing (RootMutation, RootQuery, RootSubscription) import Graphql.OptionalArgument exposing (OptionalArgument(..)) import Graphql.SelectionSet exposing (SelectionSet) import Json.Decode as Decode {-| Identifies the date and time when the object was created. -} createdAt : SelectionSet Github.ScalarCodecs.DateTime Github.Object.RepositoryInvitationRepository createdAt = Object.selectionForField "ScalarCodecs.DateTime" "createdAt" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecDateTime |> .decoder) {-| The description of the repository. -} description : SelectionSet (Maybe String) Github.Object.RepositoryInvitationRepository description = Object.selectionForField "(Maybe String)" "description" [] (Decode.string |> Decode.nullable) {-| The description of the repository rendered to HTML. -} descriptionHTML : SelectionSet Github.ScalarCodecs.Html Github.Object.RepositoryInvitationRepository descriptionHTML = Object.selectionForField "ScalarCodecs.Html" "descriptionHTML" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecHtml |> .decoder) {-| Returns how many forks there are of this repository in the whole network. -} forkCount : SelectionSet Int Github.Object.RepositoryInvitationRepository forkCount = Object.selectionForField "Int" "forkCount" [] Decode.int {-| Indicates if the repository has issues feature enabled. -} hasIssuesEnabled : SelectionSet Bool Github.Object.RepositoryInvitationRepository hasIssuesEnabled = Object.selectionForField "Bool" "hasIssuesEnabled" [] Decode.bool {-| Indicates if the repository has wiki feature enabled. -} hasWikiEnabled : SelectionSet Bool Github.Object.RepositoryInvitationRepository hasWikiEnabled = Object.selectionForField "Bool" "hasWikiEnabled" [] Decode.bool {-| The repository's URL. -} homepageUrl : SelectionSet (Maybe Github.ScalarCodecs.Uri) Github.Object.RepositoryInvitationRepository homepageUrl = Object.selectionForField "(Maybe ScalarCodecs.Uri)" "homepageUrl" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder |> Decode.nullable) {-| Indicates if the repository is unmaintained. -} isArchived : SelectionSet Bool Github.Object.RepositoryInvitationRepository isArchived = Object.selectionForField "Bool" "isArchived" [] Decode.bool {-| Identifies if the repository is a fork. -} isFork : SelectionSet Bool Github.Object.RepositoryInvitationRepository isFork = Object.selectionForField "Bool" "isFork" [] Decode.bool {-| Indicates if the repository has been locked or not. -} isLocked : SelectionSet Bool Github.Object.RepositoryInvitationRepository isLocked = Object.selectionForField "Bool" "isLocked" [] Decode.bool {-| Identifies if the repository is a mirror. -} isMirror : SelectionSet Bool Github.Object.RepositoryInvitationRepository isMirror = Object.selectionForField "Bool" "isMirror" [] Decode.bool {-| Identifies if the repository is private. -} isPrivate : SelectionSet Bool Github.Object.RepositoryInvitationRepository isPrivate = Object.selectionForField "Bool" "isPrivate" [] Decode.bool {-| The license associated with the repository -} license : SelectionSet (Maybe String) Github.Object.RepositoryInvitationRepository license = Object.selectionForField "(Maybe String)" "license" [] (Decode.string |> Decode.nullable) {-| The license associated with the repository -} licenseInfo : SelectionSet decodesTo Github.Object.License -> SelectionSet (Maybe decodesTo) Github.Object.RepositoryInvitationRepository licenseInfo object_ = Object.selectionForCompositeField "licenseInfo" [] object_ (identity >> Decode.nullable) {-| The reason the repository has been locked. -} lockReason : SelectionSet (Maybe Github.Enum.RepositoryLockReason.RepositoryLockReason) Github.Object.RepositoryInvitationRepository lockReason = Object.selectionForField "(Maybe Enum.RepositoryLockReason.RepositoryLockReason)" "lockReason" [] (Github.Enum.RepositoryLockReason.decoder |> Decode.nullable) {-| The repository's original mirror URL. -} mirrorUrl : SelectionSet (Maybe Github.ScalarCodecs.Uri) Github.Object.RepositoryInvitationRepository mirrorUrl = Object.selectionForField "(Maybe ScalarCodecs.Uri)" "mirrorUrl" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder |> Decode.nullable) {-| The name of the repository. -} name : SelectionSet String Github.Object.RepositoryInvitationRepository name = Object.selectionForField "String" "name" [] Decode.string {-| The repository's name with owner. -} nameWithOwner : SelectionSet String Github.Object.RepositoryInvitationRepository nameWithOwner = Object.selectionForField "String" "nameWithOwner" [] Decode.string {-| The owner of the repository associated with this invitation repository. -} owner : SelectionSet decodesTo Github.Interface.RepositoryOwner -> SelectionSet decodesTo Github.Object.RepositoryInvitationRepository owner object_ = Object.selectionForCompositeField "owner" [] object_ identity {-| Identifies when the repository was last pushed to. -} pushedAt : SelectionSet (Maybe Github.ScalarCodecs.DateTime) Github.Object.RepositoryInvitationRepository pushedAt = Object.selectionForField "(Maybe ScalarCodecs.DateTime)" "pushedAt" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecDateTime |> .decoder |> Decode.nullable) {-| The HTTP path for this repository -} resourcePath : SelectionSet Github.ScalarCodecs.Uri Github.Object.RepositoryInvitationRepository resourcePath = Object.selectionForField "ScalarCodecs.Uri" "resourcePath" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder) type alias ShortDescriptionHTMLOptionalArguments = { limit : OptionalArgument Int } {-| A description of the repository, rendered to HTML without any links in it. - limit - How many characters to return. -} shortDescriptionHTML : (ShortDescriptionHTMLOptionalArguments -> ShortDescriptionHTMLOptionalArguments) -> SelectionSet Github.ScalarCodecs.Html Github.Object.RepositoryInvitationRepository shortDescriptionHTML fillInOptionals = let filledInOptionals = fillInOptionals { limit = Absent } optionalArgs = [ Argument.optional "limit" filledInOptionals.limit Encode.int ] |> List.filterMap identity in Object.selectionForField "ScalarCodecs.Html" "shortDescriptionHTML" optionalArgs (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecHtml |> .decoder) {-| Identifies the date and time when the object was last updated. -} updatedAt : SelectionSet Github.ScalarCodecs.DateTime Github.Object.RepositoryInvitationRepository updatedAt = Object.selectionForField "ScalarCodecs.DateTime" "updatedAt" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecDateTime |> .decoder) {-| The HTTP URL for this repository -} url : SelectionSet Github.ScalarCodecs.Uri Github.Object.RepositoryInvitationRepository url = Object.selectionForField "ScalarCodecs.Uri" "url" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder)