Class: Event

January 17, 2020 · View on GitHub

@daostack/clientGlobalsEvent

Class: Event

Hierarchy

  • Event

Implements

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

+ new Event(idOrOpts: string | IEventStaticState, context: Arc): Event

Defined in event.ts:90

Parameters:

NameType
idOrOptsstring | IEventStaticState
contextArc

Returns: Event

Properties

context

context: Arc

Defined in event.ts:92


id

id: string

Defined in event.ts:89


idOrOpts

idOrOpts: string | IEventStaticState

Defined in event.ts:92


staticState

staticState: IEventStaticState | undefined

Defined in event.ts:90

Methods

fetchStaticState

fetchStaticState(): Promise‹IEventStaticState

Defined in event.ts:135

Returns: Promise‹IEventStaticState


setStaticState

setStaticState(opts: IEventStaticState): void

Defined in event.ts:131

Parameters:

NameType
optsIEventStaticState

Returns: void


state

state(apolloQueryOptions: IApolloQueryOptions): Observable‹IEventState

Defined in event.ts:102

Parameters:

NameTypeDefault
apolloQueryOptionsIApolloQueryOptions{}

Returns: Observable‹IEventState


search(context: Arc, options: IEventQueryOptions, apolloQueryOptions: IApolloQueryOptions): Observable‹Event[]›

Defined in event.ts:56

Event.search(context, options) searches for reward entities

Parameters:

NameTypeDefaultDescription
contextArc-an Arc instance that provides connection information
optionsIEventQueryOptions{}the query options, cf. IEventQueryOptions
apolloQueryOptionsIApolloQueryOptions{}-

Returns: Observable‹Event[]›

an observable of Event objects

Object literals

Static fragments

fragments: object

Defined in event.ts:34

EventFields

EventFields: any = gqlfragment EventFields on Event { id dao { id } type data user proposal { id } timestamp }

Defined in event.ts:35