@@ -44,20 +44,25 @@ for (const enrichment of ALL_ENRICHMENTS) {
4444 outputProducers . set ( output . id , entry )
4545 }
4646}
47- const blockOutputs : Record < string , OutputFieldDefinition > = {
48- matched : { type : 'boolean' , description : 'Whether the enrichment found a result' } ,
49- provider : {
50- type : 'string' ,
51- description : 'Provider whose result was returned (e.g. "Hunter", "People Data Labs")' ,
52- } ,
53- }
47+ // Seed the enrichment outputs first so the reserved `matched` / `provider`
48+ // keys (assigned below) always win if a future enrichment ever declares an
49+ // output id that collides with them.
50+ const blockOutputs : Record < string , OutputFieldDefinition > = { }
5451for ( const [ id , { field, operations } ] of outputProducers ) {
5552 blockOutputs [ id ] = {
5653 type : mapFieldType ( field . type ) ,
5754 description : field . name ,
5855 condition : { field : 'operation' , value : operations } ,
5956 }
6057}
58+ blockOutputs . matched = {
59+ type : 'boolean' ,
60+ description : 'Whether the enrichment found a result' ,
61+ }
62+ blockOutputs . provider = {
63+ type : 'string' ,
64+ description : 'Provider whose result was returned (e.g. "Hunter", "People Data Labs")' ,
65+ }
6166
6267/**
6368 * Enrichment block — runs a code-defined Sim enrichment (Work Email, Phone
0 commit comments