Skip to main content

service/cache_snapshot

Api Code Documentation / Exports / service/cache_snapshot

Table of contents

Functions

Functions

getLatestSnapshot

getLatestSnapshot(ctx, conn, streamName, key, eventType): Promise<Type<Project>>

Parameters

NameType
ctxCtx
connConnToken
streamNamestring
keystring
eventType"project_snapshot_published"

Returns

Promise<Type<Project>>

Defined in

src/service/cache_snapshot.ts:80

getLatestSnapshot(ctx, conn, streamName, key, eventType): Promise<Type<Subproject>>

Parameters

NameType
ctxCtx
connConnToken
streamNamestring
keystring
eventType"subproject_snapshot_published"

Returns

Promise<Type<Subproject>>

Defined in

src/service/cache_snapshot.ts:88

getLatestSnapshot(ctx, conn, streamName, key, eventType): Promise<Type<Workflowitem>>

Parameters

NameType
ctxCtx
connConnToken
streamNamestring
keystring
eventType"workflowitem_snapshot_published"

Returns

Promise<Type<Workflowitem>>

Defined in

src/service/cache_snapshot.ts:96


parseBusinessEvents

parseBusinessEvents(items, streamName): Type<BusinessEvent>[]

Parameters

NameType
itemsItem[]
streamNamestring

Returns

Type<BusinessEvent>[]

Defined in

src/service/cache_snapshot.ts:338


publishSnapshot

publishSnapshot(ctx, conn, streamName, key, eventType, creatingUser, createEvent, ordering?): Promise<{ canPublish: boolean ; eventData: Type<BusinessEvent> }>

Parameters

NameType
ctxCtx
connConnToken
streamNamestring
keystring
eventTypestring
creatingUserServiceUser
createEventFunction
ordering?WorkflowitemOrdering

Returns

Promise<{ canPublish: boolean ; eventData: Type<BusinessEvent> }>

Defined in

src/service/cache_snapshot.ts:190