Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- runClearMetadata :: forall m r. (QErrM m, MonadIO m, CacheRWM m, MetadataM m, MonadMetadataStorageQueryAPI m, MonadBaseControl IO m, MonadReader r m, Has (Logger Hasura) r) => ClearMetadata -> m EncJSON
- runReplaceMetadata :: (CacheRWM m, MetadataM m, MonadIO m, MonadMetadataStorageQueryAPI m, MonadReader r m, Has (Logger Hasura) r) => ReplaceMetadata -> m EncJSON
- runReplaceMetadataV1 :: (QErrM m, CacheRWM m, MetadataM m, MonadIO m, MonadMetadataStorageQueryAPI m, MonadReader r m, Has (Logger Hasura) r) => ReplaceMetadataV1 -> m EncJSON
- runReplaceMetadataV2 :: forall m r. (QErrM m, CacheRWM m, MetadataM m, MonadIO m, MonadMetadataStorageQueryAPI m, MonadReader r m, Has (Logger Hasura) r) => ReplaceMetadataV2 -> m EncJSON
- processCronTriggersMetadata :: Metadata -> Metadata
- runExportMetadata :: forall m. (QErrM m, MetadataM m) => ExportMetadata -> m EncJSON
- runExportMetadataV2 :: forall m. (QErrM m, MetadataM m) => MetadataResourceVersion -> ExportMetadata -> m EncJSON
- runReloadMetadata :: (QErrM m, CacheRWM m, MetadataM m) => ReloadMetadata -> m EncJSON
- runDumpInternalState :: (QErrM m, CacheRM m) => DumpInternalState -> m EncJSON
- runGetInconsistentMetadata :: (QErrM m, CacheRM m) => GetInconsistentMetadata -> m EncJSON
- formatInconsistentObjs :: [InconsistentMetadata] -> Value
- runDropInconsistentMetadata :: (QErrM m, CacheRWM m, MetadataM m) => DropInconsistentMetadata -> m EncJSON
- purgeMetadataObj :: MetadataObjId -> MetadataModifier
- runGetCatalogState :: MonadMetadataStorageQueryAPI m => GetCatalogState -> m EncJSON
- runSetCatalogState :: MonadMetadataStorageQueryAPI m => SetCatalogState -> m EncJSON
- runSetMetricsConfig :: (MonadIO m, CacheRWM m, MetadataM m, MonadError QErr m) => MetricsConfig -> m EncJSON
- runRemoveMetricsConfig :: (MonadIO m, CacheRWM m, MetadataM m, MonadError QErr m) => m EncJSON
- data TestTransformError
- = RequestInitializationError HttpException
- | RequestTransformationError Request TransformErrorBundle
- runTestWebhookTransform :: QErrM m => TestWebhookTransform -> m EncJSON
- interpolateFromEnv :: MonadError QErr m => Environment -> Text -> m Text
- decodeBody :: Maybe ByteString -> Value
- jsonToValue :: ByteString -> Maybe Value
- formUrlEncodedToValue :: ByteString -> Maybe Value
- parseEnvTemplate :: Parser [Either Text Text]
- indistinct :: Either a a -> a
- packTransformResult :: Either TransformErrorBundle Request -> EncJSON
Documentation
runClearMetadata :: forall m r. (QErrM m, MonadIO m, CacheRWM m, MetadataM m, MonadMetadataStorageQueryAPI m, MonadBaseControl IO m, MonadReader r m, Has (Logger Hasura) r) => ClearMetadata -> m EncJSON Source #
runReplaceMetadata :: (CacheRWM m, MetadataM m, MonadIO m, MonadMetadataStorageQueryAPI m, MonadReader r m, Has (Logger Hasura) r) => ReplaceMetadata -> m EncJSON Source #
Replace the 'current metadata' with the 'new metadata' The 'new metadata' might come via the 'Import Metadata' in console
runReplaceMetadataV1 :: (QErrM m, CacheRWM m, MetadataM m, MonadIO m, MonadMetadataStorageQueryAPI m, MonadReader r m, Has (Logger Hasura) r) => ReplaceMetadataV1 -> m EncJSON Source #
runReplaceMetadataV2 :: forall m r. (QErrM m, CacheRWM m, MetadataM m, MonadIO m, MonadMetadataStorageQueryAPI m, MonadReader r m, Has (Logger Hasura) r) => ReplaceMetadataV2 -> m EncJSON Source #
processCronTriggersMetadata :: Metadata -> Metadata Source #
Only includes the cron triggers with included_in_metadata
set to True
runExportMetadata :: forall m. (QErrM m, MetadataM m) => ExportMetadata -> m EncJSON Source #
runExportMetadataV2 :: forall m. (QErrM m, MetadataM m) => MetadataResourceVersion -> ExportMetadata -> m EncJSON Source #
runReloadMetadata :: (QErrM m, CacheRWM m, MetadataM m) => ReloadMetadata -> m EncJSON Source #
runDumpInternalState :: (QErrM m, CacheRM m) => DumpInternalState -> m EncJSON Source #
runGetInconsistentMetadata :: (QErrM m, CacheRM m) => GetInconsistentMetadata -> m EncJSON Source #
formatInconsistentObjs :: [InconsistentMetadata] -> Value Source #
runDropInconsistentMetadata :: (QErrM m, CacheRWM m, MetadataM m) => DropInconsistentMetadata -> m EncJSON Source #
runSetMetricsConfig :: (MonadIO m, CacheRWM m, MetadataM m, MonadError QErr m) => MetricsConfig -> m EncJSON Source #
runRemoveMetricsConfig :: (MonadIO m, CacheRWM m, MetadataM m, MonadError QErr m) => m EncJSON Source #
data TestTransformError Source #
runTestWebhookTransform :: QErrM m => TestWebhookTransform -> m EncJSON Source #
interpolateFromEnv :: MonadError QErr m => Environment -> Text -> m Text Source #
decodeBody :: Maybe ByteString -> Value Source #
Deserialize a JSON or X-WWW-URL-FORMENCODED body from an
Request
as Value
.
jsonToValue :: ByteString -> Maybe Value Source #
Attempt to encode a ByteString
as an Aeson Value
formUrlEncodedToValue :: ByteString -> Maybe Value Source #
Quote a ByteString
then attempt to encode it as a JSON
String. This is necessary for 'x-www-url-formencoded' bodies. They
are a list of key/value pairs encoded as a raw ByteString
with no
quoting whereas JSON Strings must be quoted.
parseEnvTemplate :: Parser [Either Text Text] Source #
indistinct :: Either a a -> a Source #