-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql -- https://github.com/dillonkearns/elm-graphql module Github.Object.ExternalIdentity exposing (guid, id, organizationInvitation, samlIdentity, scimIdentity, selection, user) 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.ExternalIdentity selection constructor = Object.selection constructor {-| The GUID for this identity -} guid : Field String Github.Object.ExternalIdentity guid = Object.fieldDecoder "guid" [] Decode.string id : Field Github.Scalar.Id Github.Object.ExternalIdentity 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) {-| Organization invitation for this SCIM-provisioned external identity -} organizationInvitation : SelectionSet decodesTo Github.Object.OrganizationInvitation -> Field (Maybe decodesTo) Github.Object.ExternalIdentity organizationInvitation object_ = Object.selectionField "organizationInvitation" [] object_ (identity >> Decode.nullable) {-| SAML Identity attributes -} samlIdentity : SelectionSet decodesTo Github.Object.ExternalIdentitySamlAttributes -> Field (Maybe decodesTo) Github.Object.ExternalIdentity samlIdentity object_ = Object.selectionField "samlIdentity" [] object_ (identity >> Decode.nullable) {-| SCIM Identity attributes -} scimIdentity : SelectionSet decodesTo Github.Object.ExternalIdentityScimAttributes -> Field (Maybe decodesTo) Github.Object.ExternalIdentity scimIdentity object_ = Object.selectionField "scimIdentity" [] object_ (identity >> Decode.nullable) {-| User linked to this external identity -} user : SelectionSet decodesTo Github.Object.User -> Field (Maybe decodesTo) Github.Object.ExternalIdentity user object_ = Object.selectionField "user" [] object_ (identity >> Decode.nullable)