Skip to content

Commit

Permalink
Make more eventstore adapter methods optional (#2168)
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave authored Dec 4, 2021
1 parent ed2c807 commit b1aeaf2
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,19 +345,22 @@ export interface CommonAdapterFunctions<ConfiguredProps extends {}> {
}

export interface AdapterFunctions<ConfiguredProps extends {}> {
beginIncrementalImport: PoolMethod<
beginIncrementalImport?: PoolMethod<
ConfiguredProps,
Adapter['beginIncrementalImport']
>
commitIncrementalImport: PoolMethod<
commitIncrementalImport?: PoolMethod<
ConfiguredProps,
Adapter['commitIncrementalImport']
>
dispose: PoolMethod<ConfiguredProps, Adapter['dispose']>
dropSnapshot: PoolMethod<ConfiguredProps, Adapter['dropSnapshot']>
dropSnapshot?: PoolMethod<ConfiguredProps, Adapter['dropSnapshot']>
freeze: PoolMethod<ConfiguredProps, Adapter['freeze']>
getLatestEvent: PoolMethod<ConfiguredProps, Adapter['getLatestEvent']>
injectEvent: PoolMethod<ConfiguredProps, AdapterPoolBoundProps['injectEvent']>
getLatestEvent?: PoolMethod<ConfiguredProps, Adapter['getLatestEvent']>
injectEvent?: PoolMethod<
ConfiguredProps,
AdapterPoolBoundProps['injectEvent']
>
injectEvents: PoolMethod<
ConfiguredProps,
AdapterPoolBoundProps['injectEvents']
Expand All @@ -370,17 +373,17 @@ export interface AdapterFunctions<ConfiguredProps extends {}> {
ConfiguredProps,
AdapterPoolBoundProps['loadEventsByTimestamp']
>
loadSnapshot: PoolMethod<ConfiguredProps, Adapter['loadSnapshot']>
pushIncrementalImport: PoolMethod<
loadSnapshot?: PoolMethod<ConfiguredProps, Adapter['loadSnapshot']>
pushIncrementalImport?: PoolMethod<
ConfiguredProps,
Adapter['pushIncrementalImport']
>
rollbackIncrementalImport: PoolMethod<
rollbackIncrementalImport?: PoolMethod<
ConfiguredProps,
Adapter['rollbackIncrementalImport']
>
saveEvent: PoolMethod<ConfiguredProps, Adapter['saveEvent']>
saveSnapshot: PoolMethod<ConfiguredProps, Adapter['saveSnapshot']>
saveSnapshot?: PoolMethod<ConfiguredProps, Adapter['saveSnapshot']>
shapeEvent: ShapeEvent
unfreeze: PoolMethod<ConfiguredProps, Adapter['unfreeze']>
getSecret: PoolMethod<ConfiguredProps, GetSecret>
Expand Down

0 comments on commit b1aeaf2

Please sign in to comment.