(inputFormat: InputFormatField[])
| 143 | } |
| 144 | |
| 145 | function buildFieldsSample(inputFormat: InputFormatField[]): Record<string, unknown> { |
| 146 | const sample: Record<string, unknown> = {} |
| 147 | for (const field of inputFormat) { |
| 148 | if (!field.name) continue |
| 149 | sample[field.name] = |
| 150 | field.value !== undefined && field.value !== null |
| 151 | ? coerceValue(field.type, field.value) |
| 152 | : mockValueForType(field.type, field.name) |
| 153 | } |
| 154 | return sample |
| 155 | } |
| 156 | |
| 157 | function resolveEventTriggerId(block: TriggerBlockLike): string { |
| 158 | const selected = readSubBlockValue(block, 'selectedTriggerId') |
no test coverage detected