(
resource: ResourceDescriptor & { type: FeishuSupportedResourceType },
index: number,
)
| 427 | } |
| 428 | |
| 429 | return attachments; |
| 430 | } |
| 431 | |
| 432 | private resolveResourceFilename( |
| 433 | resource: ResourceDescriptor & { type: FeishuSupportedResourceType }, |
| 434 | index: number, |
| 435 | ): string { |
| 436 | const filename = resource.fileName?.trim(); |
| 437 | if (filename) { |
| 438 | return filename; |
| 439 | } |
| 440 | return resource.type === "image" ? `image-${index + 1}.png` : `file-${index + 1}`; |
| 441 | } |
no outgoing calls
no test coverage detected