File size: 806 Bytes
4327358
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Original '@figuro/chatwoot-sdk'
// Doesn't have the right types for  client.client
// So we defined it here
import { ContactsApi } from '@figuro/chatwoot-sdk/dist/services/client/Contacts';
import { ConversationsApi } from '@figuro/chatwoot-sdk/dist/services/client/Conversations';
import { MessagesApi } from '@figuro/chatwoot-sdk/dist/services/client/Messages';

export interface ChatWootInboxAPI {
  contacts: ContactsApi;
  conversations: ConversationsApi;
  messages: MessagesApi;
}

export interface ChatWootAccountAPIConfig {
  url: string;
  accountId: number;
  accountToken: string;
}

export interface ChatWootInboxAPIConfig {
  url: string;
  inboxId: number;
  inboxIdentifier: string;
}

export interface ChatWootAPIConfig
  extends ChatWootAccountAPIConfig,
    ChatWootInboxAPIConfig {}