Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains types which are common to event triggers and scheduled triggers.
Synopsis
- newtype EventId = EventId {
- unEventId :: Text
- 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
Eq EventId Source # | |
Ord EventId Source # | |
Show EventId Source # | |
Generic EventId Source # | |
NFData EventId Source # | |
Defined in Hasura.RQL.Types.Eventing | |
Hashable EventId Source # | |
Defined in Hasura.RQL.Types.Eventing | |
FromJSON EventId Source # | |
Defined in Hasura.RQL.Types.Eventing parseJSON :: Value -> Parser EventId parseJSONList :: Value -> Parser [EventId] | |
ToJSONKey EventId Source # | |
Defined in Hasura.RQL.Types.Eventing toJSONKey :: ToJSONKeyFunction EventId toJSONKeyList :: ToJSONKeyFunction [EventId] | |
ToJSON EventId Source # | |
Defined in Hasura.RQL.Types.Eventing toEncoding :: EventId -> Encoding toJSONList :: [EventId] -> Value toEncodingList :: [EventId] -> Encoding | |
ToTxt EventId Source # | |
Defined in Hasura.RQL.Types.Eventing | |
FromCol EventId Source # | |
Defined in Hasura.RQL.Types.Eventing fromCol :: Maybe ByteString -> Either Text EventId | |
ToPrepArg EventId Source # | |
Defined in Hasura.RQL.Types.Eventing | |
Cacheable 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
ToJSON WebhookRequest Source # | |
Defined in Hasura.RQL.Types.Eventing toJSON :: WebhookRequest -> Value toEncoding :: WebhookRequest -> Encoding toJSONList :: [WebhookRequest] -> Value toEncodingList :: [WebhookRequest] -> Encoding |
data WebhookResponse Source #
Instances
ToJSON WebhookResponse Source # | |
Defined in Hasura.RQL.Types.Eventing toJSON :: WebhookResponse -> Value toEncoding :: WebhookResponse -> Encoding toJSONList :: [WebhookResponse] -> Value toEncodingList :: [WebhookResponse] -> Encoding |
newtype ClientError Source #
Instances
ToJSON ClientError Source # | |
Defined in Hasura.RQL.Types.Eventing toJSON :: ClientError -> Value toEncoding :: ClientError -> Encoding toJSONList :: [ClientError] -> Value toEncodingList :: [ClientError] -> Encoding |
data Response (a :: TriggerTypes) Source #
Instances
ToJSON (Response 'EventType) Source # | |
Defined in Hasura.RQL.Types.Eventing toJSON :: Response 'EventType -> Value toEncoding :: Response 'EventType -> Encoding toJSONList :: [Response 'EventType] -> Value toEncodingList :: [Response 'EventType] -> Encoding | |
ToJSON (Response 'ScheduledType) Source # | |
Defined in Hasura.RQL.Types.Eventing toJSON :: Response 'ScheduledType -> Value toEncoding :: Response 'ScheduledType -> Encoding toJSONList :: [Response 'ScheduledType] -> Value toEncodingList :: [Response 'ScheduledType] -> Encoding |
type InvocationVersion = Text Source #
data Invocation (a :: TriggerTypes) Source #
newtype PGTextArray Source #
PGTextArray is only used for PG array encoding
PGTextArray | |
|
Instances
Eq PGTextArray Source # | |
Defined in Hasura.RQL.Types.Eventing (==) :: PGTextArray -> PGTextArray -> Bool # (/=) :: PGTextArray -> PGTextArray -> Bool # | |
Show PGTextArray Source # | |
Defined in Hasura.RQL.Types.Eventing showsPrec :: Int -> PGTextArray -> ShowS # show :: PGTextArray -> String # showList :: [PGTextArray] -> ShowS # | |
ToPrepArg PGTextArray Source # | |
Defined in Hasura.RQL.Types.Eventing toPrepVal :: PGTextArray -> PrepArg |
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.