-- 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 R import Dagger.Types as T -- | A unique identifier for this FunctionCall. id :: T.FunctionCall -> Aff T.ID id = 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 String name = 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.JSON parent = 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 String parentName = 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]