Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module contains types which are common to event triggers and scheduled triggers.
Synopsis
- newtype EventId = EventId {}
- data TriggerTypes
- data WebhookRequest = WebhookRequest {
- _rqPayload :: Value
- _rqHeaders :: [HeaderConf]
- _rqVersion :: Text
- data WebhookResponse = WebhookResponse {}
- newtype ClientError = ClientError {}
- data Response (a :: TriggerTypes)
- type InvocationVersion = Text
- invocationVersionET :: InvocationVersion
- invocationVersionST :: InvocationVersion
- data Invocation (a :: TriggerTypes) = Invocation {}
- newtype PGTextArray = PGTextArray {
- unPGTextArray :: [Text]
- data OpVar
Documentation
Instances
FromJSON EventId Source # | |
ToJSON EventId Source # | |
ToJSONKey EventId Source # | |
Defined in Hasura.RQL.Types.Eventing | |
Generic EventId Source # | |
Show EventId Source # | |
NFData EventId Source # | |
Defined in Hasura.RQL.Types.Eventing | |
Eq EventId Source # | |
Ord EventId Source # | |
Hashable EventId Source # | |
ToTxt EventId Source # | |
FromCol EventId Source # | |
Defined in Hasura.RQL.Types.Eventing | |
ToPrepArg EventId Source # | |
type Rep EventId Source # | |
Defined in Hasura.RQL.Types.Eventing |
data TriggerTypes Source #
There are two types of events: EventType (for event triggers) and ScheduledType (for scheduled triggers)
data WebhookRequest Source #
WebhookRequest | |
|
Instances
data WebhookResponse Source #
Instances
newtype ClientError Source #
Instances
ToJSON ClientError Source # | |
Defined in Hasura.RQL.Types.Eventing toJSON :: ClientError -> Value Source # toEncoding :: ClientError -> Encoding Source # toJSONList :: [ClientError] -> Value Source # toEncodingList :: [ClientError] -> Encoding Source # | |
Generic ClientError Source # | |
Defined in Hasura.RQL.Types.Eventing type Rep ClientError :: Type -> Type # from :: ClientError -> Rep ClientError x # to :: Rep ClientError x -> ClientError # | |
type Rep ClientError Source # | |
Defined in Hasura.RQL.Types.Eventing type Rep ClientError = D1 ('MetaData "ClientError" "Hasura.RQL.Types.Eventing" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "ClientError" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ceMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SerializableBlob))) |
data Response (a :: TriggerTypes) Source #
Instances
ToJSON (Response 'EventType) Source # | |
ToJSON (Response 'ScheduledType) Source # | |
Defined in Hasura.RQL.Types.Eventing toJSON :: Response 'ScheduledType -> Value Source # toEncoding :: Response 'ScheduledType -> Encoding Source # toJSONList :: [Response 'ScheduledType] -> Value Source # toEncodingList :: [Response 'ScheduledType] -> Encoding Source # |
type InvocationVersion = Text Source #
data Invocation (a :: TriggerTypes) Source #
newtype PGTextArray Source #
PGTextArray is only used for PG array encoding
PGTextArray | |
|
Instances
Show PGTextArray Source # | |
Defined in Hasura.RQL.Types.Eventing showsPrec :: Int -> PGTextArray -> ShowS # show :: PGTextArray -> String # showList :: [PGTextArray] -> ShowS # | |
Eq PGTextArray Source # | |
Defined in Hasura.RQL.Types.Eventing (==) :: PGTextArray -> PGTextArray -> Bool # (/=) :: PGTextArray -> PGTextArray -> Bool # | |
ToPrepArg PGTextArray Source # | |
Defined in Hasura.RQL.Types.Eventing toPrepVal :: PGTextArray -> PrepArg Source # |
Used to construct the payload of Event Trigger
OLD: Depicts the old database row value for UPDATE/DELETE trigger operations. This is used to construct the 'data.old' field of the event trigger payload. The value of 'data.old' is null in INSERT trigger operation.
NEW: Depicts the new database row value for INSERT/UPDATE trigger operations. This is used to construct the 'data.new' field of the event trigger payload. The value of 'data.new' is null in DELETE trigger operation.