( blockType: string, key: string, prefix: string, subBlocks: Record<string, SubBlockWithValue> | undefined )
| 422 | } |
| 423 | |
| 424 | function shouldFilterReservedField( |
| 425 | blockType: string, |
| 426 | key: string, |
| 427 | prefix: string, |
| 428 | subBlocks: Record<string, SubBlockWithValue> | undefined |
| 429 | ): boolean { |
| 430 | if (blockType !== TRIGGER_TYPES.START || prefix) { |
| 431 | return false |
| 432 | } |
| 433 | |
| 434 | if (!START_BLOCK_RESERVED_FIELDS.includes(key as any)) { |
| 435 | return false |
| 436 | } |
| 437 | |
| 438 | const normalizedInputFormat = normalizeInputFormatValue(subBlocks?.inputFormat?.value) |
| 439 | const isExplicitlyDefined = normalizedInputFormat.some((field) => field?.name?.trim() === key) |
| 440 | |
| 441 | return !isExplicitlyDefined |
| 442 | } |
| 443 | |
| 444 | function expandFileTypeProperties(path: string): string[] { |
| 445 | return USER_FILE_ACCESSIBLE_PROPERTIES.map((prop) => `${path}.${prop}`) |
no test coverage detected