(subBlockIds: string[])
| 419 | * @returns Filtered and sorted array of subBlock IDs |
| 420 | */ |
| 421 | export function filterSubBlockIds(subBlockIds: string[]): string[] { |
| 422 | return subBlockIds |
| 423 | .filter((id) => { |
| 424 | if (TRIGGER_RUNTIME_SUBBLOCK_IDS.includes(id)) return false |
| 425 | if (SYSTEM_SUBBLOCK_IDS.some((sysId) => id === sysId || id.startsWith(`${sysId}_`))) |
| 426 | return false |
| 427 | if (isSyntheticToolSubBlockId(id)) return false |
| 428 | return true |
| 429 | }) |
| 430 | .sort() |
| 431 | } |
| 432 | |
| 433 | /** |
| 434 | * Normalizes trigger block subBlocks by populating null/empty individual fields |
no test coverage detected