Module

Perspectives.ApiTypes

#CorrelationIdentifier

type CorrelationIdentifier = Int

Identifies Requests with Responses.

#ID

type ID = String

#Value

type Value = String

#ContextID

#ApiEffect

type ApiEffect = ResponseRecord -> Effect Unit

The type of functions that are passed on as callbacks through the API.

#Request

newtype Request

A request as can be sent to the core.

Constructors

Instances

#RequestRecord

type RequestRecord = { contextDescription :: Foreign, corrId :: CorrelationIdentifier, object :: String, predicate :: String, reactStateSetter :: Maybe Foreign, request :: RequestType, rolDescription :: Maybe RolSerialization, subject :: String }

#showRequestRecord

#requestOptions

#Object

type Object = String

The Perspectives Core responds with query results, where a query is the request for the 'objects' in the basic fact <subject, predicate, object>.

#ResponseRecord

#convertResponse

#ContextSerializationRecord

type ContextSerializationRecord = { ctype :: ContextID, externeProperties :: PropertySerialization, id :: String, interneProperties :: PropertySerialization, prototype :: Maybe ContextID, rollen :: Object (Array RolSerialization) }

Modules