(value: string | undefined, defaultValue: number)
| 270 | } |
| 271 | |
| 272 | private parsePositiveInt(value: string | undefined, defaultValue: number): number { |
| 273 | if (!value) return defaultValue |
| 274 | const parsed = Number.parseInt(value, 10) |
| 275 | if (Number.isNaN(parsed) || parsed <= 0) return defaultValue |
| 276 | return parsed |
| 277 | } |
| 278 | |
| 279 | private validateConversationId(conversationId?: string): void { |
| 280 | if (!conversationId || conversationId.trim() === '') { |
no outgoing calls
no test coverage detected