(
{
channelId,
messageId,
threadId,
event,
integration,
id,
}: any /* TODO: add types */
)
| 12 | }); |
| 13 | |
| 14 | export async function processEmailIntegration( |
| 15 | { |
| 16 | channelId, |
| 17 | messageId, |
| 18 | threadId, |
| 19 | event, |
| 20 | integration, |
| 21 | id, |
| 22 | }: any /* TODO: add types */ |
| 23 | ) { |
| 24 | if (event === 'newThread') { |
| 25 | return 'not implemented yet'; |
| 26 | } |
| 27 | if (event === 'threadClosed') { |
| 28 | return 'not implemented yet'; |
| 29 | } |
| 30 | if (event === 'threadReopened') { |
| 31 | return 'not implemented yet'; |
| 32 | } |
| 33 | if (event === 'newMessage') { |
| 34 | return await processNewMessage(messageId!, integration, event); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | async function processNewMessage( |
| 39 | messageId: string, |
no test coverage detected