Something went wrong. Try again.
Dagger 1.0.0 beta SDK experiments
dagger purescript gleam clojure
Something went wrong. Try again.
1.5 kB · 43 lines
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344-- Generated by scripts/generate.mjs. Do not edit.module Dagger.FunctionCall ( id , inputArgs , name , parent , parentName , returnError , returnValue ) where
import Data.Maybe (Maybe)import Effect.Aff (Aff)import Dagger.Internal.Runtime as Rimport Dagger.Types as T
-- | A unique identifier for this FunctionCall.id :: T.FunctionCall -> Aff T.IDid = R.scalar "id" []
-- | The argument values the function is being invoked with.inputArgs :: T.FunctionCall -> Aff (Array T.FunctionCallArgValue)inputArgs = R.objectList "FunctionCallArgValue" "inputArgs" []
-- | The name of the function being called.name :: T.FunctionCall -> Aff Stringname = R.scalar "name" []
-- | The value of the parent object of the function being called. If the function is top-level to the module, this is always an empty object.parent :: T.FunctionCall -> Aff T.JSONparent = R.scalar "parent" []
-- | The name of the parent object of the function being called. If the function is top-level to the module, this is the name of the module.parentName :: T.FunctionCall -> Aff StringparentName = R.scalar "parentName" []
-- | Return an error from the function.returnError :: T.Error -> T.FunctionCall -> Aff (Maybe T.Void)returnError argError = R.scalar "returnError" [R.objectArgument "error" "ID!" argError]
-- | Set the return value of the function call to the provided value.returnValue :: T.JSON -> T.FunctionCall -> Aff (Maybe T.Void)returnValue argValue = R.scalar "returnValue" [R.argument "value" "JSON!" argValue]