@only-chat/types 0.2.0-beta.10 → 0.2.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/queue.d.ts +1 -0
- package/store.d.ts +2 -2
package/package.json
CHANGED
package/queue.d.ts
CHANGED
package/store.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export interface TextMessage {
|
|
|
38
38
|
|
|
39
39
|
export interface MessageDelete {
|
|
40
40
|
messageId: string
|
|
41
|
+
deletedAt: Date
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
export interface MessageUpdate extends Partial<FileMessage>, Partial<TextMessage> {
|
|
@@ -102,10 +103,9 @@ export interface ConversationsResult {
|
|
|
102
103
|
|
|
103
104
|
export interface MessageStore {
|
|
104
105
|
findMessages: (r: FindRequest) => Promise<FindResult>
|
|
105
|
-
getConversationById: (id: string) => Promise<Conversation | undefined>
|
|
106
106
|
getLastMessagesTimestamps: (fromId: string, conversationId: string[]) => Promise<ConversationLastMessages>
|
|
107
107
|
getParticipantConversationById: (participant: string | undefined, id: string) => Promise<Conversation | undefined>
|
|
108
|
-
getParticipantConversations: (participant: string, excludeIds: string[], from: number, size: number) => Promise<ConversationsResult>
|
|
108
|
+
getParticipantConversations: (participant: string, ids: string[] | undefined, excludeIds: string[] | undefined, from: number | undefined, size: number | undefined) => Promise<ConversationsResult>
|
|
109
109
|
getParticipantLastMessage: (participant: string, conversationId: string) => Promise<Message | undefined>
|
|
110
110
|
getPeerToPeerConversationId(peer1: string, peer2: string): Promise<string | undefined>
|
|
111
111
|
saveConnection: (userId: string, instanceId: string) => Promise<SaveResponse>
|