Module

Database.ElasticSearch.Common

Package
purescript-elasticsearch
Repository
ConnorDillon/purescript-elasticsearch

#Optional Source

#Response Source

type Response a = { body :: Record a, headers :: Object Json, meta :: Object Json, statusCode :: Int, warnings :: Optional (Array String) }

#RequestParams Source

type RequestParams = { ignore :: Optional (Array Number), maxRetries :: Optional Number }

#CommonParams Source

type CommonParams a = { error_trace :: Optional Boolean, filter_path :: Optional (Array Json), human :: Optional Boolean, pretty :: Optional Boolean, source :: Optional String | a }

#Api Source

type Api a b = forall c d. Castable (Record c) (CommonParams a) => Castable (Record d) RequestParams => Client -> Record c -> Record d -> Aff (Response b)

#DataType Source

type DataType = (StringLit "boolean") |+| (StringLit "date") |+| (StringLit "double") |+| (StringLit "geo_point") |+| (StringLit "ip") |+| (StringLit "keyword") |+| (StringLit "long")

#Cast Source

type Cast a = forall b. Castable b a => b -> a

#api Source

api :: forall a b c d. (a -> b -> c -> Effect (Promise d)) -> a -> b -> c -> Aff d

#toObject Source

toObject :: forall a. EncodeJson (Record a) => Record a -> Object Json