-- Generated by scripts/generate.mjs. Do not edit. module Dagger.ObjectTypeDef ( constructor , deprecated , description , fields , functions , id , name , sourceMap , sourceModuleName ) where import Data.Maybe (Maybe) import Effect.Aff (Aff) import Dagger.Internal.Runtime as R import Dagger.Types as T -- | The function used to construct new instances of this object, if any. constructor :: T.ObjectTypeDef -> Aff (Maybe T.Function) constructor = R.nullableObject "Function" "constructor" [] -- | The reason this enum member is deprecated, if any. deprecated :: T.ObjectTypeDef -> Aff (Maybe String) deprecated = R.scalar "deprecated" [] -- | The doc string for the object, if any. description :: T.ObjectTypeDef -> Aff String description = R.scalar "description" [] -- | Static fields defined on this object, if any. fields :: T.ObjectTypeDef -> Aff (Array T.FieldTypeDef) fields = R.objectList "FieldTypeDef" "fields" [] -- | Functions defined on this object, if any. functions :: T.ObjectTypeDef -> Aff (Array T.Function) functions = R.objectList "Function" "functions" [] -- | A unique identifier for this ObjectTypeDef. id :: T.ObjectTypeDef -> Aff T.ID id = R.scalar "id" [] -- | The name of the object. name :: T.ObjectTypeDef -> Aff String name = R.scalar "name" [] -- | The location of this object declaration. sourceMap :: T.ObjectTypeDef -> Aff (Maybe T.SourceMap) sourceMap = R.nullableObject "SourceMap" "sourceMap" [] -- | If this ObjectTypeDef is associated with a Module, the name of the module. Unset otherwise. sourceModuleName :: T.ObjectTypeDef -> Aff String sourceModuleName = R.scalar "sourceModuleName" []