Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data CreateEventTriggerQuery (b :: BackendType) Source #
Instances
Backend b => FromJSON (CreateEventTriggerQuery b) Source # | |
Defined in Hasura.RQL.DDL.EventTrigger parseJSON :: Value -> Parser (CreateEventTriggerQuery b) parseJSONList :: Value -> Parser [CreateEventTriggerQuery b] |
cetqWebhookFromEnv :: forall b. Lens' (CreateEventTriggerQuery b) (Maybe Text) Source #
cetqWebhook :: forall b. Lens' (CreateEventTriggerQuery b) (Maybe InputWebhook) Source #
cetqUpdate :: forall b. Lens' (CreateEventTriggerQuery b) (Maybe (SubscribeOpSpec b)) Source #
cetqTable :: forall b. Lens' (CreateEventTriggerQuery b) (TableName b) Source #
cetqSource :: forall b. Lens' (CreateEventTriggerQuery b) SourceName Source #
cetqRetryConf :: forall b. Lens' (CreateEventTriggerQuery b) (Maybe RetryConf) Source #
cetqResponseTrasnform :: forall b. Lens' (CreateEventTriggerQuery b) (Maybe MetadataResponseTransform) Source #
cetqRequestTransform :: forall b. Lens' (CreateEventTriggerQuery b) (Maybe RequestTransform) Source #
cetqReplace :: forall b. Lens' (CreateEventTriggerQuery b) Bool Source #
cetqName :: forall b. Lens' (CreateEventTriggerQuery b) TriggerName Source #
cetqInsert :: forall b. Lens' (CreateEventTriggerQuery b) (Maybe (SubscribeOpSpec b)) Source #
cetqHeaders :: forall b. Lens' (CreateEventTriggerQuery b) (Maybe [HeaderConf]) Source #
cetqEnableManual :: forall b. Lens' (CreateEventTriggerQuery b) (Maybe Bool) Source #
cetqDelete :: forall b. Lens' (CreateEventTriggerQuery b) (Maybe (SubscribeOpSpec b)) Source #
data DeleteEventTriggerQuery (b :: BackendType) Source #
Instances
FromJSON (DeleteEventTriggerQuery b) Source # | |
Defined in Hasura.RQL.DDL.EventTrigger parseJSON :: Value -> Parser (DeleteEventTriggerQuery b) parseJSONList :: Value -> Parser [DeleteEventTriggerQuery b] |
data RedeliverEventQuery (b :: BackendType) Source #
Instances
FromJSON (RedeliverEventQuery b) Source # | |
Defined in Hasura.RQL.DDL.EventTrigger parseJSON :: Value -> Parser (RedeliverEventQuery b) parseJSONList :: Value -> Parser [RedeliverEventQuery b] |
data InvokeEventTriggerQuery (b :: BackendType) Source #
InvokeEventTriggerQuery | |
|
Instances
Backend b => FromJSON (InvokeEventTriggerQuery b) Source # | |
Defined in Hasura.RQL.DDL.EventTrigger parseJSON :: Value -> Parser (InvokeEventTriggerQuery b) parseJSONList :: Value -> Parser [InvokeEventTriggerQuery b] |
resolveEventTriggerQuery :: forall b m. (Backend b, UserInfoM m, QErrM m, CacheRM m) => CreateEventTriggerQuery b -> m (Bool, EventTriggerConf b) Source #
droppedTriggerOps :: TriggerOpsDef b -> TriggerOpsDef b -> HashSet Ops Source #
createEventTriggerQueryMetadata :: forall b m. (BackendMetadata b, QErrM m, UserInfoM m, CacheRWM m, MetadataM m, BackendEventTrigger b, MonadIO m) => CreateEventTriggerQuery b -> m () Source #
runCreateEventTriggerQuery :: forall b m. (BackendMetadata b, BackendEventTrigger b, QErrM m, UserInfoM m, CacheRWM m, MetadataM m, MonadIO m) => CreateEventTriggerQuery b -> m EncJSON Source #
runDeleteEventTriggerQuery :: forall b m. (BackendEventTrigger b, MonadError QErr m, CacheRWM m, MonadIO m, MetadataM m) => DeleteEventTriggerQuery b -> m EncJSON Source #
runRedeliverEvent :: forall b m. (BackendEventTrigger b, MonadIO m, CacheRM m, QErrM m, MetadataM m) => RedeliverEventQuery b -> m EncJSON Source #
runInvokeEventTrigger :: forall b m. (MonadIO m, QErrM m, CacheRM m, MetadataM m, MonadTrace m, UserInfoM m, BackendEventTrigger b) => InvokeEventTriggerQuery b -> m EncJSON Source #
askTabInfoFromTrigger :: (Backend b, QErrM m, CacheRM m) => SourceName -> TriggerName -> m (TableInfo b) Source #
getTabInfoFromSchemaCache :: (Backend b, QErrM m) => SchemaCache -> SourceName -> TriggerName -> m (TableInfo b) Source #
askEventTriggerInfo :: forall b m. (QErrM m, CacheRM m, Backend b) => SourceName -> TriggerName -> m (EventTriggerInfo b) Source #
getHeaderInfosFromConf :: QErrM m => Environment -> [HeaderConf] -> m [EventHeaderInfo] Source #
getWebhookInfoFromConf :: QErrM m => Environment -> WebhookConf -> m WebhookConfInfo Source #
buildEventTriggerInfo :: forall b m. (Backend b, QErrM m) => Environment -> SourceName -> TableName b -> EventTriggerConf b -> m (EventTriggerInfo b, [SchemaDependency]) Source #
getTrigDefDeps :: forall b. Backend b => SourceName -> TableName b -> TriggerOpsDef b -> [SchemaDependency] Source #
getTriggersMap :: SourceMetadata b -> InsOrdHashMap TriggerName (EventTriggerConf b) Source #
getTriggerNames :: SourceMetadata b -> HashSet TriggerName Source #
getTableNameFromTrigger :: forall b m. (Backend b, QErrM m) => SchemaCache -> SourceName -> TriggerName -> m (TableName b) Source #