(channelId: string)
| 63 | : Lark.Domain.Feishu; |
| 64 | } |
| 65 | |
| 66 | export function parseFeishuChannelId(channelId: string): string { |
| 67 | if (!channelId.startsWith("feishu-")) { |
| 68 | throw new Error(`[Feishu] Invalid channelId: ${channelId}`); |
| 69 | } |
| 70 | |
| 71 | const chatId = channelId.replace("feishu-", "").trim(); |
| 72 | if (!chatId) { |
| 73 | throw new Error(`[Feishu] Invalid channelId: ${channelId}`); |
| 74 | } |
| 75 | return chatId; |
| 76 | } |
| 77 | |
| 78 | export function normalizeFeishuMessage( |
no outgoing calls
no test coverage detected