@eveble/eveble

Hierarchy

  • CommitStore

Implemented by

Index

Methods

Methods

createCommit

createCommit(eventSourceable: EventSourceable): Promise‹Commit

Parameters:

NameType
eventSourceableEventSourceable

Returns: Promise‹Commit

createCommit(eventSourceable: EventSourceable): Promise‹Commit›

Parameters:

NameType
eventSourceableEventSourceable

Returns: Promise‹Commit›


findById

findById(commitId: string): Promise‹Commit | undefined›

Parameters:

NameType
commitIdstring

Returns: Promise‹Commit | undefined›

findById(commitId: string): Promise‹Commit | undefined›

Parameters:

NameType
commitIdstring

Returns: Promise‹Commit | undefined›


generateId

generateId(): Promise‹string›

Returns: Promise‹string›

generateId(): Promise‹string›

Returns: Promise‹string›


getAllEvents

getAllEvents(): Promise‹Event[]›

Returns: Promise‹Event[]›

getAllEvents(): Promise‹Event[]›

Returns: Promise‹Event[]›


getEvents

getEvents(eventSourceableId: string | Stringifiable, versionOffset?: number): Promise‹Event[] | undefined›

Parameters:

NameType
eventSourceableIdstring | Stringifiable
versionOffset?number

Returns: Promise‹Event[] | undefined›

getEvents(eventSourceableId: string | Stringifiable, versionOffset?: number): Promise‹Event[] | undefined›

Parameters:

NameType
eventSourceableIdstring | Stringifiable
versionOffset?number

Returns: Promise‹Event[] | undefined›


hasBySourceId

hasBySourceId(eventSourceableId: string | Stringifiable): Promise‹boolean›

Parameters:

NameType
eventSourceableIdstring | Stringifiable

Returns: Promise‹boolean›

hasBySourceId(eventSourceableId: string | Stringifiable): Promise‹boolean›

Parameters:

NameType
eventSourceableIdstring | Stringifiable

Returns: Promise‹boolean›


save

save(commit: Commit): Promise‹string›

Parameters:

NameType
commitCommit

Returns: Promise‹string›

save(commit: Commit): Promise‹string›

Parameters:

NameType
commitCommit

Returns: Promise‹string›