@@ -64,13 +64,15 @@ export const PeopleDataLabsBlock: BlockConfig<PdlPersonEnrichResponse> = {
6464 id : 'first_name' ,
6565 title : 'First Name' ,
6666 type : 'short-input' ,
67+ placeholder : 'Jane' ,
6768 condition : { field : 'operation' , value : [ 'pdl_person_enrich' , 'pdl_person_identify' ] } ,
6869 mode : 'advanced' ,
6970 } ,
7071 {
7172 id : 'last_name' ,
7273 title : 'Last Name' ,
7374 type : 'short-input' ,
75+ placeholder : 'Doe' ,
7476 condition : { field : 'operation' , value : [ 'pdl_person_enrich' , 'pdl_person_identify' ] } ,
7577 mode : 'advanced' ,
7678 } ,
@@ -185,6 +187,7 @@ export const PeopleDataLabsBlock: BlockConfig<PdlPersonEnrichResponse> = {
185187 id : 'pdl_id' ,
186188 title : 'PDL Company ID' ,
187189 type : 'short-input' ,
190+ placeholder : 'people-data-labs' ,
188191 condition : { field : 'operation' , value : 'pdl_company_enrich' } ,
189192 mode : 'advanced' ,
190193 } ,
@@ -268,6 +271,7 @@ export const PeopleDataLabsBlock: BlockConfig<PdlPersonEnrichResponse> = {
268271 id : 'identify_postal_code' ,
269272 title : 'Postal Code' ,
270273 type : 'short-input' ,
274+ placeholder : '94103' ,
271275 condition : { field : 'operation' , value : 'pdl_person_identify' } ,
272276 mode : 'advanced' ,
273277 } ,
@@ -366,6 +370,25 @@ export const PeopleDataLabsBlock: BlockConfig<PdlPersonEnrichResponse> = {
366370 mode : 'advanced' ,
367371 } ,
368372
373+ // Title case (shared by Person Enrich/Identify/Search, Company Enrich, Autocomplete)
374+ {
375+ id : 'titlecase' ,
376+ title : 'Title Case Names' ,
377+ type : 'switch' ,
378+ condition : {
379+ field : 'operation' ,
380+ value : [
381+ 'pdl_person_enrich' ,
382+ 'pdl_person_identify' ,
383+ 'pdl_person_search' ,
384+ 'pdl_company_enrich' ,
385+ 'pdl_company_search' ,
386+ 'pdl_autocomplete' ,
387+ ] ,
388+ } ,
389+ mode : 'advanced' ,
390+ } ,
391+
369392 // API Key
370393 {
371394 id : 'apiKey' ,
@@ -488,6 +511,18 @@ export const PeopleDataLabsBlock: BlockConfig<PdlPersonEnrichResponse> = {
488511 result . min_likelihood = undefined
489512 }
490513
514+ // titlecase is honored by enrich/identify/search/autocomplete; clear it for others
515+ if (
516+ op !== 'pdl_person_enrich' &&
517+ op !== 'pdl_person_identify' &&
518+ op !== 'pdl_person_search' &&
519+ op !== 'pdl_company_enrich' &&
520+ op !== 'pdl_company_search' &&
521+ op !== 'pdl_autocomplete'
522+ ) {
523+ result . titlecase = undefined
524+ }
525+
491526 if ( op === 'pdl_person_identify' ) {
492527 if ( params . identify_locality !== undefined ) result . locality = params . identify_locality
493528 if ( params . identify_region !== undefined ) result . region = params . identify_region
@@ -575,6 +610,8 @@ export const PeopleDataLabsBlock: BlockConfig<PdlPersonEnrichResponse> = {
575610 // Bulk
576611 requests : { type : 'string' , description : 'JSON array of bulk request objects' } ,
577612 required : { type : 'string' , description : 'Required-fields expression for bulk' } ,
613+ // Shared
614+ titlecase : { type : 'boolean' , description : 'Return name fields in title case' } ,
578615 } ,
579616
580617 outputs : {
0 commit comments