Interface: IStorageEngine
models.IStorageEngine
Implemented by
Methods
createConversation
▸ createConversation(conversation
): Promise
<IConversation
>
Parameters
Name | Type |
---|---|
conversation | Partial <IConversation > |
Returns
Promise
<IConversation
>
Defined in
packages/convostack-models/dist/index.d.ts:60
createMessage
▸ createMessage(message
): Promise
<IMessage
>
Parameters
Name | Type |
---|---|
message | Partial <IMessage > |
Returns
Promise
<IMessage
>
Defined in
packages/convostack-models/dist/index.d.ts:65
createUser
▸ createUser(user
): Promise
<IUser
>
Parameters
Name | Type |
---|---|
user | Partial <IUser > |
Returns
Promise
<IUser
>
Defined in
packages/convostack-models/dist/index.d.ts:56
deleteConversation
▸ deleteConversation(id
): Promise
<void
>
Parameters
Name | Type |
---|---|
id | string |
Returns
Promise
<void
>
Defined in
packages/convostack-models/dist/index.d.ts:64
deleteMessage
▸ deleteMessage(id
): Promise
<void
>
Parameters
Name | Type |
---|---|
id | string |
Returns
Promise
<void
>
Defined in
packages/convostack-models/dist/index.d.ts:69
deleteUser
▸ deleteUser(id
): Promise
<void
>
Parameters
Name | Type |
---|---|
id | string |
Returns
Promise
<void
>
Defined in
packages/convostack-models/dist/index.d.ts:59
findConversation
▸ findConversation(filter
): Promise
<IConversation
>
Parameters
Name | Type |
---|---|
filter | IConversationFilter |
Returns
Promise
<IConversation
>
Defined in
packages/convostack-models/dist/index.d.ts:62
findConversations
▸ findConversations(filter?
, orderBy?
, skip?
, take?
): Promise
<IConversation
[]>
Parameters
Name | Type |
---|---|
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
Name | Type |
---|---|
filter | IMessageFilter |
Returns
Promise
<IMessage
>
Defined in
packages/convostack-models/dist/index.d.ts:67
findMessages
▸ findMessages(filter?
, orderBy?
, skip?
, take?
): Promise
<IMessage
[]>
Parameters
Name | Type |
---|---|
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
Name | Type |
---|---|
filter | IUserFilter |
Returns
Promise
<IUser
>
Defined in
packages/convostack-models/dist/index.d.ts:58
updateConversation
▸ updateConversation(id
, data
): Promise
<IConversation
>
Parameters
Name | Type |
---|---|
id | string |
data | Partial <IConversation > |
Returns
Promise
<IConversation
>
Defined in
packages/convostack-models/dist/index.d.ts:61
updateMessage
▸ updateMessage(id
, data
): Promise
<IMessage
>
Parameters
Name | Type |
---|---|
id | string |
data | Partial <IMessage > |
Returns
Promise
<IMessage
>
Defined in
packages/convostack-models/dist/index.d.ts:66
updateUser
▸ updateUser(id
, data
): Promise
<IUser
>
Parameters
Name | Type |
---|---|
id | string |
data | Partial <IUser > |
Returns
Promise
<IUser
>
Defined in
packages/convostack-models/dist/index.d.ts:57