Skip to main content

Interface: IStorageEngine

models.IStorageEngine

Implemented by

Methods

createConversation

createConversation(conversation): Promise<IConversation>

Parameters

NameType
conversationPartial<IConversation>

Returns

Promise<IConversation>

Defined in

packages/convostack-models/dist/index.d.ts:60


createMessage

createMessage(message): Promise<IMessage>

Parameters

NameType
messagePartial<IMessage>

Returns

Promise<IMessage>

Defined in

packages/convostack-models/dist/index.d.ts:65


createUser

createUser(user): Promise<IUser>

Parameters

NameType
userPartial<IUser>

Returns

Promise<IUser>

Defined in

packages/convostack-models/dist/index.d.ts:56


deleteConversation

deleteConversation(id): Promise<void>

Parameters

NameType
idstring

Returns

Promise<void>

Defined in

packages/convostack-models/dist/index.d.ts:64


deleteMessage

deleteMessage(id): Promise<void>

Parameters

NameType
idstring

Returns

Promise<void>

Defined in

packages/convostack-models/dist/index.d.ts:69


deleteUser

deleteUser(id): Promise<void>

Parameters

NameType
idstring

Returns

Promise<void>

Defined in

packages/convostack-models/dist/index.d.ts:59


findConversation

findConversation(filter): Promise<IConversation>

Parameters

NameType
filterIConversationFilter

Returns

Promise<IConversation>

Defined in

packages/convostack-models/dist/index.d.ts:62


findConversations

findConversations(filter?, orderBy?, skip?, take?): Promise<IConversation[]>

Parameters

NameType
filter?IConversationFilter
orderBy?Partial<Record<keyof IConversation, "asc" | "desc">>
skip?number
take?number

Returns

Promise<IConversation[]>

Defined in

packages/convostack-models/dist/index.d.ts:63


findMessage

findMessage(filter): Promise<IMessage>

Parameters

NameType
filterIMessageFilter

Returns

Promise<IMessage>

Defined in

packages/convostack-models/dist/index.d.ts:67


findMessages

findMessages(filter?, orderBy?, skip?, take?): Promise<IMessage[]>

Parameters

NameType
filter?IMessageFilter
orderBy?Partial<Record<keyof IMessage, "asc" | "desc">>
skip?number
take?number

Returns

Promise<IMessage[]>

Defined in

packages/convostack-models/dist/index.d.ts:68


findUser

findUser(filter): Promise<IUser>

Parameters

NameType
filterIUserFilter

Returns

Promise<IUser>

Defined in

packages/convostack-models/dist/index.d.ts:58


updateConversation

updateConversation(id, data): Promise<IConversation>

Parameters

NameType
idstring
dataPartial<IConversation>

Returns

Promise<IConversation>

Defined in

packages/convostack-models/dist/index.d.ts:61


updateMessage

updateMessage(id, data): Promise<IMessage>

Parameters

NameType
idstring
dataPartial<IMessage>

Returns

Promise<IMessage>

Defined in

packages/convostack-models/dist/index.d.ts:66


updateUser

updateUser(id, data): Promise<IUser>

Parameters

NameType
idstring
dataPartial<IUser>

Returns

Promise<IUser>

Defined in

packages/convostack-models/dist/index.d.ts:57