(block: SerializedBlock)
| 86 | } |
| 87 | |
| 88 | export function buildResolutionFromBlock(block: SerializedBlock): ExecutorStartResolution | null { |
| 89 | const type = block.metadata?.id |
| 90 | if (!type) { |
| 91 | return null |
| 92 | } |
| 93 | |
| 94 | const category = block.metadata?.category |
| 95 | const triggerModeEnabled = block.config?.params?.triggerMode === true |
| 96 | |
| 97 | const path = classifyStartBlockType(type, { |
| 98 | category, |
| 99 | triggerModeEnabled, |
| 100 | }) |
| 101 | if (!path) { |
| 102 | return null |
| 103 | } |
| 104 | |
| 105 | return { |
| 106 | blockId: block.id, |
| 107 | block, |
| 108 | path, |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | function readMetadataSubBlockValue(block: SerializedBlock, key: string): unknown { |
| 113 | const metadata = block.metadata |
no test coverage detected