@eveble/eveble

Hierarchy

  • CommitStorage

Implemented by

Index

Methods

Methods

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›


findLastVersionById

findLastVersionById(eventSourceableId: string | Stringifiable): Promise‹number | undefined›

Parameters:

NameType
eventSourceableIdstring | Stringifiable

Returns: Promise‹number | undefined›

findLastVersionById(eventSourceableId: string | Stringifiable): Promise‹number | undefined›

Parameters:

NameType
eventSourceableIdstring | Stringifiable

Returns: Promise‹number | undefined›


flagAndResolveCommitAsTimeouted

flagAndResolveCommitAsTimeouted(commitId: string, appId: string, workerId: string, failedAt: Date): Promise‹Commit | undefined›

Parameters:

NameType
commitIdstring
appIdstring
workerIdstring
failedAtDate

Returns: Promise‹Commit | undefined›

flagAndResolveCommitAsTimeouted(commitId: string, appId: string, workerId: string, failedAt: Date): Promise‹Commit | undefined›

Parameters:

NameType
commitIdstring
appIdstring
workerIdstring
failedAtDate

Returns: Promise‹Commit | undefined›


flagCommitAsFailed

flagCommitAsFailed(commitId: string, appId: string, workerId: string, failedAt: Date): Promise‹boolean›

Parameters:

NameType
commitIdstring
appIdstring
workerIdstring
failedAtDate

Returns: Promise‹boolean›

flagCommitAsFailed(commitId: string, appId: string, workerId: string, failedAt: Date): Promise‹boolean›

Parameters:

NameType
commitIdstring
appIdstring
workerIdstring
failedAtDate

Returns: Promise‹boolean›


flagCommitAsPublished

flagCommitAsPublished(commitId: string, appId: string, workerId: string, publishedAt: Date): Promise‹boolean›

Parameters:

NameType
commitIdstring
appIdstring
workerIdstring
publishedAtDate

Returns: Promise‹boolean›

flagCommitAsPublished(commitId: string, appId: string, workerId: string, publishedAt: Date): Promise‹boolean›

Parameters:

NameType
commitIdstring
appIdstring
workerIdstring
publishedAtDate

Returns: Promise‹boolean›


generateId

generateId(): Promise‹string›

Returns: Promise‹string›

generateId(): Promise‹string›

Returns: Promise‹string›


getAllCommits

getAllCommits(): Promise‹Commit[]›

Returns: Promise‹Commit[]›

getAllCommits(): Promise‹Commit[]›

Returns: Promise‹Commit[]›


getCommits

getCommits(eventSourceableId: string | Stringifiable, versionOffset: number): Promise‹Commit[]›

Parameters:

NameType
eventSourceableIdstring | Stringifiable
versionOffsetnumber

Returns: Promise‹Commit[]›

getCommits(eventSourceableId: string | Stringifiable, versionOffset: number): Promise‹Commit[]›

Parameters:

NameType
eventSourceableIdstring | Stringifiable
versionOffsetnumber

Returns: Promise‹Commit[]›


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›


lockCommit

lockCommit(commitId: string, appId: string, workerId: string, registeredAndNotReceivedYetFilter: Record‹string, any›): Promise‹Commit | undefined›

Parameters:

NameType
commitIdstring
appIdstring
workerIdstring
registeredAndNotReceivedYetFilterRecord‹string, any›

Returns: Promise‹Commit | undefined›

lockCommit(commitId: string, appId: string, workerId: string, registeredAndNotReceivedYetFilter: Record‹string, any›): Promise‹Commit | undefined›

Parameters:

NameType
commitIdstring
appIdstring
workerIdstring
registeredAndNotReceivedYetFilterRecord‹string, any›

Returns: Promise‹Commit | undefined›


save

save(commit: Commit): Promise‹string›

Parameters:

NameType
commitCommit

Returns: Promise‹string›

save(commit: Commit): Promise‹string›

Parameters:

NameType
commitCommit

Returns: Promise‹string›