(path: StartBlockPath, block: TriggerBlockLike)
| 195 | } |
| 196 | |
| 197 | function resolveInputKind(path: StartBlockPath, block: TriggerBlockLike): TriggerInputKind { |
| 198 | if (path === StartBlockPath.SPLIT_CHAT) return 'chat' |
| 199 | if (path === StartBlockPath.LEGACY_STARTER) { |
| 200 | return getLegacyStarterMode(block) === 'chat' ? 'chat' : 'fields' |
| 201 | } |
| 202 | if (path === StartBlockPath.EXTERNAL_TRIGGER) { |
| 203 | return block.type === 'schedule' ? 'none' : 'event_payload' |
| 204 | } |
| 205 | return 'fields' |
| 206 | } |
| 207 | |
| 208 | function buildTriggerRunOption( |
| 209 | candidate: StartBlockCandidate<TriggerBlockLike>, |
no test coverage detected