graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.RQL.Types.Permission

Synopsis

Documentation

data PermType Source #

Instances

Instances details
FromJSON PermType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

ToJSON PermType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Generic PermType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Associated Types

type Rep PermType :: Type -> Type #

Methods

from :: PermType -> Rep PermType x #

to :: Rep PermType x -> PermType #

Show PermType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

NFData PermType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

rnf :: PermType -> () #

Eq PermType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Ord PermType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Hashable PermType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

FromCol PermType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep PermType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep PermType = D1 ('MetaData "PermType" "Hasura.RQL.Types.Permission" "graphql-engine-1.0.0-inplace" 'False) ((C1 ('MetaCons "PTInsert" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PTSelect" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PTUpdate" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PTDelete" 'PrefixI 'False) (U1 :: Type -> Type)))

data PermColSpec b Source #

Constructors

PCStar 
PCCols [Column b] 

Instances

Instances details
Backend b => FromJSON (PermColSpec b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => ToJSON (PermColSpec b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => HasCodec (PermColSpec b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Generic (PermColSpec b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Associated Types

type Rep (PermColSpec b) :: Type -> Type #

Methods

from :: PermColSpec b -> Rep (PermColSpec b) x #

to :: Rep (PermColSpec b) x -> PermColSpec b #

Backend b => Show (PermColSpec b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => Eq (PermColSpec b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep (PermColSpec b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep (PermColSpec b) = D1 ('MetaData "PermColSpec" "Hasura.RQL.Types.Permission" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "PCStar" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PCCols" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Column b])))

data PermDef (b :: BackendType) (perm :: BackendType -> Type) Source #

Instances

Instances details
Backend b => FromJSON (PermDef b DelPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => FromJSON (PermDef b InsPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => FromJSON (PermDef b SelPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => FromJSON (PermDef b UpdPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

(Backend b, ToJSON (perm b)) => ToJSON (PermDef b perm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

(Backend b, HasCodec (perm b), IsPerm perm) => HasCodec (PermDef b perm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Generic (PermDef b perm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Associated Types

type Rep (PermDef b perm) :: Type -> Type #

Methods

from :: PermDef b perm -> Rep (PermDef b perm) x #

to :: Rep (PermDef b perm) x -> PermDef b perm #

Backend b => Show (PermDef b perm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

showsPrec :: Int -> PermDef b perm -> ShowS #

show :: PermDef b perm -> String #

showList :: [PermDef b perm] -> ShowS #

Backend b => Eq (PermDef b perm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

(==) :: PermDef b perm -> PermDef b perm -> Bool #

(/=) :: PermDef b perm -> PermDef b perm -> Bool #

Backend b => ToAesonPairs (PermDef b perm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

toAesonPairs :: KeyValue v => PermDef b perm -> [v] Source #

type Rep (PermDef b perm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep (PermDef b perm) = D1 ('MetaData "PermDef" "Hasura.RQL.Types.Permission" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "PermDef" 'PrefixI 'True) (S1 ('MetaSel ('Just "_pdRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName) :*: (S1 ('MetaSel ('Just "_pdPermission") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PermDefPermission b perm)) :*: S1 ('MetaSel ('Just "_pdComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

data PermDefPermission (b :: BackendType) (perm :: BackendType -> Type) where Source #

The permission data as it appears in a PermDef. Since this type is a GADT it facilitates that values which are polymorphic may re-discover its specific type of permission by case analysis.

The fact that permission types are tracked in types are more accidental than intentional and something we want to move away from, see https://github.com/hasura/graphql-engine-mono/issues/4076.

Instances

Instances details
Backend b => FromJSON (PermDefPermission b DelPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => FromJSON (PermDefPermission b InsPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => FromJSON (PermDefPermission b SelPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => FromJSON (PermDefPermission b UpdPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => ToJSON (PermDefPermission b perm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

(Backend b, HasCodec (perm b), IsPerm perm) => HasCodec (PermDefPermission b perm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => Show (PermDefPermission b perm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => Eq (PermDefPermission b perm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

(==) :: PermDefPermission b perm -> PermDefPermission b perm -> Bool #

(/=) :: PermDefPermission b perm -> PermDefPermission b perm -> Bool #

data QueryRootFieldType Source #

Instances

Instances details
FromJSON QueryRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

ToJSON QueryRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

HasCodec QueryRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Bounded QueryRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Enum QueryRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Generic QueryRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Associated Types

type Rep QueryRootFieldType :: Type -> Type #

Show QueryRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

NFData QueryRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

rnf :: QueryRootFieldType -> () #

Eq QueryRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Hashable QueryRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep QueryRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep QueryRootFieldType = D1 ('MetaData "QueryRootFieldType" "Hasura.RQL.Types.Permission" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "QRFTSelect" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "QRFTSelectByPk" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "QRFTSelectAggregate" 'PrefixI 'False) (U1 :: Type -> Type)))

data SubscriptionRootFieldType Source #

Instances

Instances details
FromJSON SubscriptionRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

ToJSON SubscriptionRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

HasCodec SubscriptionRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Bounded SubscriptionRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Enum SubscriptionRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Generic SubscriptionRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Associated Types

type Rep SubscriptionRootFieldType :: Type -> Type #

Show SubscriptionRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

NFData SubscriptionRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Eq SubscriptionRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Hashable SubscriptionRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep SubscriptionRootFieldType Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep SubscriptionRootFieldType = D1 ('MetaData "SubscriptionRootFieldType" "Hasura.RQL.Types.Permission" "graphql-engine-1.0.0-inplace" 'False) ((C1 ('MetaCons "SRFTSelect" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SRFTSelectByPk" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SRFTSelectAggregate" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SRFTSelectStream" 'PrefixI 'False) (U1 :: Type -> Type)))

data InsPerm (b :: BackendType) Source #

Instances

Instances details
Backend b => FromJSON (InsPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => ToJSON (InsPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => HasCodec (InsPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Generic (InsPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Associated Types

type Rep (InsPerm b) :: Type -> Type #

Methods

from :: InsPerm b -> Rep (InsPerm b) x #

to :: Rep (InsPerm b) x -> InsPerm b #

Backend b => Show (InsPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

showsPrec :: Int -> InsPerm b -> ShowS #

show :: InsPerm b -> String #

showList :: [InsPerm b] -> ShowS #

Backend b => Eq (InsPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

(==) :: InsPerm b -> InsPerm b -> Bool #

(/=) :: InsPerm b -> InsPerm b -> Bool #

Backend b => FromJSON (PermDef b InsPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => FromJSON (PermDefPermission b InsPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep (InsPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

data AllowedRootFields rootFieldType Source #

Instances

Instances details
ToJSON rootFieldType => ToJSON (AllowedRootFields rootFieldType) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

(Hashable rootFieldType, HasCodec rootFieldType) => HasCodec (AllowedRootFields rootFieldType) Source #

Serializes set of allowed fields as a nullable array, where null maps to ARFAllowAllRootFields, and any array value maps to ARFAllowConfiguredRootFields.

Instance details

Defined in Hasura.RQL.Types.Permission

Semigroup (HashSet rootFieldType) => Semigroup (AllowedRootFields rootFieldType) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

(<>) :: AllowedRootFields rootFieldType -> AllowedRootFields rootFieldType -> AllowedRootFields rootFieldType #

sconcat :: NonEmpty (AllowedRootFields rootFieldType) -> AllowedRootFields rootFieldType #

stimes :: Integral b => b -> AllowedRootFields rootFieldType -> AllowedRootFields rootFieldType #

Generic (AllowedRootFields rootFieldType) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Associated Types

type Rep (AllowedRootFields rootFieldType) :: Type -> Type #

Methods

from :: AllowedRootFields rootFieldType -> Rep (AllowedRootFields rootFieldType) x #

to :: Rep (AllowedRootFields rootFieldType) x -> AllowedRootFields rootFieldType #

Show rootFieldType => Show (AllowedRootFields rootFieldType) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

showsPrec :: Int -> AllowedRootFields rootFieldType -> ShowS #

show :: AllowedRootFields rootFieldType -> String #

showList :: [AllowedRootFields rootFieldType] -> ShowS #

NFData rootFieldType => NFData (AllowedRootFields rootFieldType) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

rnf :: AllowedRootFields rootFieldType -> () #

Eq rootFieldType => Eq (AllowedRootFields rootFieldType) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

(==) :: AllowedRootFields rootFieldType -> AllowedRootFields rootFieldType -> Bool #

(/=) :: AllowedRootFields rootFieldType -> AllowedRootFields rootFieldType -> Bool #

type Rep (AllowedRootFields rootFieldType) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep (AllowedRootFields rootFieldType) = D1 ('MetaData "AllowedRootFields" "Hasura.RQL.Types.Permission" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ARFAllowAllRootFields" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ARFAllowConfiguredRootFields" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashSet rootFieldType))))

isRootFieldAllowed :: Eq rootField => rootField -> AllowedRootFields rootField -> Bool Source #

data ValidateInputHttpDefinition webhook Source #

Instances

Instances details
Foldable ValidateInputHttpDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Traversable ValidateInputHttpDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Functor ValidateInputHttpDefinition Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

FromJSON webhook => FromJSON (ValidateInputHttpDefinition webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

ToJSON webhook => ToJSON (ValidateInputHttpDefinition webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

HasCodec webhook => HasCodec (ValidateInputHttpDefinition webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Generic (ValidateInputHttpDefinition webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Associated Types

type Rep (ValidateInputHttpDefinition webhook) :: Type -> Type #

Show webhook => Show (ValidateInputHttpDefinition webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

NFData webhook => NFData (ValidateInputHttpDefinition webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

rnf :: ValidateInputHttpDefinition webhook -> () #

Eq webhook => Eq (ValidateInputHttpDefinition webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep (ValidateInputHttpDefinition webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep (ValidateInputHttpDefinition webhook) = D1 ('MetaData "ValidateInputHttpDefinition" "Hasura.RQL.Types.Permission" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ValidateInputHttpDefinition" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_vihdUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 webhook) :*: S1 ('MetaSel ('Just "_vihdHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [HeaderConf])) :*: (S1 ('MetaSel ('Just "_vihdTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Timeout) :*: S1 ('MetaSel ('Just "_vihdForwardClientHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))

data ValidateInput webhook Source #

Constructors

VIHttp (ValidateInputHttpDefinition webhook) 

Instances

Instances details
Foldable ValidateInput Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

fold :: Monoid m => ValidateInput m -> m #

foldMap :: Monoid m => (a -> m) -> ValidateInput a -> m #

foldMap' :: Monoid m => (a -> m) -> ValidateInput a -> m #

foldr :: (a -> b -> b) -> b -> ValidateInput a -> b #

foldr' :: (a -> b -> b) -> b -> ValidateInput a -> b #

foldl :: (b -> a -> b) -> b -> ValidateInput a -> b #

foldl' :: (b -> a -> b) -> b -> ValidateInput a -> b #

foldr1 :: (a -> a -> a) -> ValidateInput a -> a #

foldl1 :: (a -> a -> a) -> ValidateInput a -> a #

toList :: ValidateInput a -> [a] #

null :: ValidateInput a -> Bool #

length :: ValidateInput a -> Int #

elem :: Eq a => a -> ValidateInput a -> Bool #

maximum :: Ord a => ValidateInput a -> a #

minimum :: Ord a => ValidateInput a -> a #

sum :: Num a => ValidateInput a -> a #

product :: Num a => ValidateInput a -> a #

Traversable ValidateInput Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

traverse :: Applicative f => (a -> f b) -> ValidateInput a -> f (ValidateInput b) #

sequenceA :: Applicative f => ValidateInput (f a) -> f (ValidateInput a) #

mapM :: Monad m => (a -> m b) -> ValidateInput a -> m (ValidateInput b) #

sequence :: Monad m => ValidateInput (m a) -> m (ValidateInput a) #

Functor ValidateInput Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

fmap :: (a -> b) -> ValidateInput a -> ValidateInput b #

(<$) :: a -> ValidateInput b -> ValidateInput a #

FromJSON webhook => FromJSON (ValidateInput webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

ToJSON webhook => ToJSON (ValidateInput webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

(HasCodec webhook, Typeable webhook) => HasCodec (ValidateInput webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Generic (ValidateInput webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Associated Types

type Rep (ValidateInput webhook) :: Type -> Type #

Methods

from :: ValidateInput webhook -> Rep (ValidateInput webhook) x #

to :: Rep (ValidateInput webhook) x -> ValidateInput webhook #

Show webhook => Show (ValidateInput webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

showsPrec :: Int -> ValidateInput webhook -> ShowS #

show :: ValidateInput webhook -> String #

showList :: [ValidateInput webhook] -> ShowS #

NFData webhook => NFData (ValidateInput webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

rnf :: ValidateInput webhook -> () #

Eq webhook => Eq (ValidateInput webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

(==) :: ValidateInput webhook -> ValidateInput webhook -> Bool #

(/=) :: ValidateInput webhook -> ValidateInput webhook -> Bool #

type Rep (ValidateInput webhook) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep (ValidateInput webhook) = D1 ('MetaData "ValidateInput" "Hasura.RQL.Types.Permission" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "VIHttp" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (ValidateInputHttpDefinition webhook))))

data SelPerm (b :: BackendType) Source #

Constructors

SelPerm 

Fields

Instances

Instances details
Backend b => FromJSON (SelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => ToJSON (SelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => HasCodec (SelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Generic (SelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Associated Types

type Rep (SelPerm b) :: Type -> Type #

Methods

from :: SelPerm b -> Rep (SelPerm b) x #

to :: Rep (SelPerm b) x -> SelPerm b #

Backend b => Show (SelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

showsPrec :: Int -> SelPerm b -> ShowS #

show :: SelPerm b -> String #

showList :: [SelPerm b] -> ShowS #

Backend b => Eq (SelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

(==) :: SelPerm b -> SelPerm b -> Bool #

(/=) :: SelPerm b -> SelPerm b -> Bool #

Backend b => FromJSON (PermDef b SelPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => FromJSON (PermDefPermission b SelPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep (SelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

data DelPerm (b :: BackendType) Source #

Instances

Instances details
Backend b => FromJSON (DelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => ToJSON (DelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => HasCodec (DelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Generic (DelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Associated Types

type Rep (DelPerm b) :: Type -> Type #

Methods

from :: DelPerm b -> Rep (DelPerm b) x #

to :: Rep (DelPerm b) x -> DelPerm b #

Backend b => Show (DelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

showsPrec :: Int -> DelPerm b -> ShowS #

show :: DelPerm b -> String #

showList :: [DelPerm b] -> ShowS #

Backend b => Eq (DelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

(==) :: DelPerm b -> DelPerm b -> Bool #

(/=) :: DelPerm b -> DelPerm b -> Bool #

Backend b => FromJSON (PermDef b DelPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => FromJSON (PermDefPermission b DelPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep (DelPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep (DelPerm b) = D1 ('MetaData "DelPerm" "Hasura.RQL.Types.Permission" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "DelPerm" 'PrefixI 'True) (S1 ('MetaSel ('Just "dcFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (BoolExp b)) :*: (S1 ('MetaSel ('Just "dcBackendOnly") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "dcValidateInput") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (ValidateInput InputWebhook))))))

data UpdPerm (b :: BackendType) Source #

Constructors

UpdPerm 

Fields

Instances

Instances details
Backend b => FromJSON (UpdPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => ToJSON (UpdPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => HasCodec (UpdPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Generic (UpdPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Associated Types

type Rep (UpdPerm b) :: Type -> Type #

Methods

from :: UpdPerm b -> Rep (UpdPerm b) x #

to :: Rep (UpdPerm b) x -> UpdPerm b #

Backend b => Show (UpdPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

showsPrec :: Int -> UpdPerm b -> ShowS #

show :: UpdPerm b -> String #

showList :: [UpdPerm b] -> ShowS #

Backend b => Eq (UpdPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

(==) :: UpdPerm b -> UpdPerm b -> Bool #

(/=) :: UpdPerm b -> UpdPerm b -> Bool #

Backend b => FromJSON (PermDef b UpdPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Backend b => FromJSON (PermDefPermission b UpdPerm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

type Rep (UpdPerm b) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

pdRole :: forall b perm. Lens' (PermDef b perm) RoleName Source #

pdPermission :: forall b perm b perm. Lens (PermDef b perm) (PermDef b perm) (PermDefPermission b perm) (PermDefPermission b perm) Source #

pdComment :: forall b perm. Lens' (PermDef b perm) (Maybe Text) Source #