@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@only-chat/types",
3
- "version": "0.2.0-beta.10",
3
+ "version": "0.2.0-beta.11",
4
4
  "description": "TypeScript definitions for only-chat",
5
5
  "homepage": "https://github.com/only-chat/node-backend/packages/types",
6
6
  "main": "",
package/queue.d.ts CHANGED
@@ -20,6 +20,7 @@ export interface TextMessage {
20
20
 
21
21
  export interface MessageDelete {
22
22
  messageId: string
23
+ deletedAt: Date
23
24
  }
24
25
 
25
26
  export interface MessageUpdate extends Partial<FileMessage>, Partial<TextMessage> {
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>