@eveble/eveble
Hierarchy
- CommitStore
Implemented by
Index
Methods
Methods
createCommit
▸ createCommit(eventSourceable
: EventSourceable): Promise‹Commit›
Parameters:
Name | Type |
---|---|
eventSourceable | EventSourceable |
Returns: Promise‹Commit›
▸ createCommit(eventSourceable
: EventSourceable): Promise‹Commit›
Parameters:
Name | Type |
---|---|
eventSourceable | EventSourceable |
Returns: Promise‹Commit›
findById
▸ findById(commitId
: string): Promise‹Commit | undefined›
Parameters:
Name | Type |
---|---|
commitId | string |
Returns: Promise‹Commit | undefined›
▸ findById(commitId
: string): Promise‹Commit | undefined›
Parameters:
Name | Type |
---|---|
commitId | string |
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:
Name | Type |
---|---|
eventSourceableId | string | Stringifiable |
versionOffset? | number |
Returns: Promise‹Event[] | undefined›
▸ getEvents(eventSourceableId
: string | Stringifiable, versionOffset?
: number): Promise‹Event[] | undefined›
Parameters:
Name | Type |
---|---|
eventSourceableId | string | Stringifiable |
versionOffset? | number |
Returns: Promise‹Event[] | undefined›
hasBySourceId
▸ hasBySourceId(eventSourceableId
: string | Stringifiable): Promise‹boolean›
Parameters:
Name | Type |
---|---|
eventSourceableId | string | Stringifiable |
Returns: Promise‹boolean›
▸ hasBySourceId(eventSourceableId
: string | Stringifiable): Promise‹boolean›
Parameters:
Name | Type |
---|---|
eventSourceableId | string | Stringifiable |
Returns: Promise‹boolean›
save
▸ save(commit
: Commit): Promise‹string›
Parameters:
Name | Type |
---|---|
commit | Commit |
Returns: Promise‹string›
▸ save(commit
: Commit): Promise‹string›
Parameters:
Name | Type |
---|---|
commit | Commit |
Returns: Promise‹string›