Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Template = Template {
- unTemplate :: Text
- newtype UnescapedTemplate = UnescapedTemplate {}
- data TemplatingEngine = Kriti
- data family TransformFn a :: Type
- data family TransformCtx a :: Type
- newtype TransformErrorBundle = TransformErrorBundle {
- tebMessages :: [Value]
Documentation
Textual transformation template.
Instances
newtype UnescapedTemplate Source #
Validated textual transformation template /for string interpolation only/.
This is necessary due to Kriti not distinguishing between string literals and string templates.
Instances
data TemplatingEngine Source #
Available templating engines.
Instances
data family TransformFn a :: Type Source #
The associated type 'TransformFn a' is the defunctionalized version of some transformation that should be applied to a given request field.
In most cases it is some variation on a piece of template text describing the transformation.
Instances
data family TransformCtx a :: Type Source #
Instances
ToJSON RequestContext Source # | |
Defined in Hasura.RQL.Types.Webhook.Transform toJSON :: RequestContext -> Value Source # toEncoding :: RequestContext -> Encoding Source # toJSONList :: [RequestContext] -> Value Source # toEncodingList :: [RequestContext] -> Encoding Source # | |
newtype TransformCtx Body Source # | |
Defined in Hasura.RQL.Types.Webhook.Transform.Body | |
newtype TransformCtx Headers Source # | |
Defined in Hasura.RQL.Types.Webhook.Transform.Headers | |
newtype TransformCtx Method Source # | |
Defined in Hasura.RQL.Types.Webhook.Transform.Method | |
newtype TransformCtx QueryParams Source # | |
newtype TransformCtx Url Source # | |
Defined in Hasura.RQL.Types.Webhook.Transform.Url |
newtype TransformErrorBundle Source #
We use collect all transformation failures as a '[J.Value]'.