ConversationStore
@forge/monorepo / backend/src / ConversationStore
Interface: ConversationStore
Defined in: backend/src/persistence/index.ts:60
The exemplar store. Every store follows this shape (docs/02 mandatory method behavior):
an explicit { tenantId } on every call (bare findById(id) is a type error), cursor
pagination on lists, expectedVersion optimistic concurrency on updates, and soft-delete
semantics. Adapters are verified by the shared conformance harness.
Methods
create()
create(
input):Promise<Conversation>
Defined in: backend/src/persistence/index.ts:61
Parameters
input
TenantScope & object
Returns
Promise<Conversation>
findById()
findById(
input):Promise<Conversation|null>
Defined in: backend/src/persistence/index.ts:62
Parameters
input
TenantScope & object
Returns
Promise<Conversation | null>
list()
list(
input):Promise<Page<Conversation>>
Defined in: backend/src/persistence/index.ts:63
Parameters
input
Returns
Promise<Page<Conversation>>
softDelete()
softDelete(
input):Promise<void>
Defined in: backend/src/persistence/index.ts:67
Parameters
input
TenantScope & object
Returns
Promise<void>
update()
update(
input):Promise<Conversation>
Defined in: backend/src/persistence/index.ts:64
Parameters
input
TenantScope & object
Returns
Promise<Conversation>