-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql -- https://github.com/dillonkearns/elm-graphql module Github.Object.OrganizationInvitation exposing (createdAt, email, id, invitationType, invitee, inviter, organization, role) import Github.Enum.OrganizationInvitationRole import Github.Enum.OrganizationInvitationType 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.OrganizationInvitation createdAt = Object.selectionForField "ScalarCodecs.DateTime" "createdAt" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecDateTime |> .decoder) {-| The email address of the user invited to the organization. -} email : SelectionSet (Maybe String) Github.Object.OrganizationInvitation email = Object.selectionForField "(Maybe String)" "email" [] (Decode.string |> Decode.nullable) id : SelectionSet Github.ScalarCodecs.Id Github.Object.OrganizationInvitation id = Object.selectionForField "ScalarCodecs.Id" "id" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecId |> .decoder) {-| The type of invitation that was sent (e.g. email, user). -} invitationType : SelectionSet Github.Enum.OrganizationInvitationType.OrganizationInvitationType Github.Object.OrganizationInvitation invitationType = Object.selectionForField "Enum.OrganizationInvitationType.OrganizationInvitationType" "invitationType" [] Github.Enum.OrganizationInvitationType.decoder {-| The user who was invited to the organization. -} invitee : SelectionSet decodesTo Github.Object.User -> SelectionSet (Maybe decodesTo) Github.Object.OrganizationInvitation invitee object_ = Object.selectionForCompositeField "invitee" [] object_ (identity >> Decode.nullable) {-| The user who created the invitation. -} inviter : SelectionSet decodesTo Github.Object.User -> SelectionSet decodesTo Github.Object.OrganizationInvitation inviter object_ = Object.selectionForCompositeField "inviter" [] object_ identity {-| The organization the invite is for -} organization : SelectionSet decodesTo Github.Object.Organization -> SelectionSet decodesTo Github.Object.OrganizationInvitation organization object_ = Object.selectionForCompositeField "organization" [] object_ identity {-| The user's pending role in the organization (e.g. member, owner). -} role : SelectionSet Github.Enum.OrganizationInvitationRole.OrganizationInvitationRole Github.Object.OrganizationInvitation role = Object.selectionForField "Enum.OrganizationInvitationRole.OrganizationInvitationRole" "role" [] Github.Enum.OrganizationInvitationRole.decoder