Skip to content

Commit 8c74eb3

Browse files
committed
fix(findymail): remove optional from block outputs — not valid on BlockConfig output type
1 parent c92838f commit 8c74eb3

1 file changed

Lines changed: 22 additions & 34 deletions

File tree

apps/sim/blocks/blocks/findymail.ts

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -341,95 +341,83 @@ export const FindymailBlock: BlockConfig<FindymailResponse> = {
341341
},
342342
outputs: {
343343
// Verify Email
344-
verified: { type: 'boolean', description: 'Whether the email is deliverable', optional: true },
345-
provider: { type: 'string', description: 'Email service provider', optional: true },
344+
verified: { type: 'boolean', description: 'Whether the email is deliverable' },
345+
provider: { type: 'string', description: 'Email service provider' },
346346
// Find Email / LinkedIn
347347
contact: {
348348
type: 'json',
349349
description: 'Contact found (name, email, domain)',
350-
optional: true,
351350
},
352351
contacts: {
353352
type: 'array',
354353
description: 'Contacts found at the domain (name, email, domain)',
355-
optional: true,
356354
},
357355
// Reverse Email Lookup
358-
linkedin_url: { type: 'string', description: 'LinkedIn URL', optional: true },
359-
fullName: { type: 'string', description: 'Full name from LinkedIn profile', optional: true },
360-
username: { type: 'string', description: 'LinkedIn username', optional: true },
361-
headline: { type: 'string', description: 'Profile headline', optional: true },
362-
jobTitle: { type: 'string', description: 'Job title', optional: true },
363-
summary: { type: 'string', description: 'Profile summary', optional: true },
364-
city: { type: 'string', description: 'City', optional: true },
365-
region: { type: 'string', description: 'Region/state', optional: true },
366-
country: { type: 'string', description: 'Country', optional: true },
356+
linkedin_url: { type: 'string', description: 'LinkedIn URL' },
357+
fullName: { type: 'string', description: 'Full name from LinkedIn profile' },
358+
username: { type: 'string', description: 'LinkedIn username' },
359+
headline: { type: 'string', description: 'Profile headline' },
360+
jobTitle: { type: 'string', description: 'Job title' },
361+
summary: { type: 'string', description: 'Profile summary' },
362+
city: { type: 'string', description: 'City' },
363+
region: { type: 'string', description: 'Region/state' },
364+
country: { type: 'string', description: 'Country' },
367365
companyLinkedinUrl: {
368366
type: 'string',
369367
description: 'Current company LinkedIn URL',
370-
optional: true,
371368
},
372-
companyName: { type: 'string', description: 'Current company name', optional: true },
373-
companyWebsite: { type: 'string', description: 'Current company website', optional: true },
369+
companyName: { type: 'string', description: 'Current company name' },
370+
companyWebsite: { type: 'string', description: 'Current company website' },
374371
isPremium: {
375372
type: 'boolean',
376373
description: 'Whether the profile has LinkedIn Premium',
377-
optional: true,
378374
},
379-
isOpenProfile: { type: 'boolean', description: 'Whether the profile is open', optional: true },
380-
skills: { type: 'array', description: 'Profile skills', optional: true },
381-
jobs: { type: 'array', description: 'Job history entries', optional: true },
375+
isOpenProfile: { type: 'boolean', description: 'Whether the profile is open' },
376+
skills: { type: 'array', description: 'Profile skills' },
377+
jobs: { type: 'array', description: 'Job history entries' },
382378
educations: {
383379
type: 'array',
384380
description: 'Education history (school, degree, fieldOfStudy, startDate, endDate)',
385-
optional: true,
386381
},
387382
certificates: {
388383
type: 'array',
389384
description: 'Certifications (name, issuingOrganization, issueDate, expirationDate)',
390-
optional: true,
391385
},
392386
// Get Company
393-
name: { type: 'string', description: 'Company name', optional: true },
394-
domain: { type: 'string', description: 'Company domain', optional: true },
387+
name: { type: 'string', description: 'Company name' },
388+
domain: { type: 'string', description: 'Company domain' },
395389
company_size: {
396390
type: 'string',
397391
description: 'Headcount range (e.g., 1001-5000)',
398-
optional: true,
399392
},
400-
industry: { type: 'string', description: 'Industry classification', optional: true },
401-
description: { type: 'string', description: 'Company description', optional: true },
393+
industry: { type: 'string', description: 'Industry classification' },
394+
description: { type: 'string', description: 'Company description' },
402395
// Find Employees
403396
employees: {
404397
type: 'array',
405398
description: 'Employees found (name, linkedinUrl, companyWebsite, companyName, jobTitle)',
406-
optional: true,
407399
},
408400
// Find Phone
409401
phone: {
410402
type: 'string',
411403
description: 'Phone number in E.164 format (US only)',
412-
optional: true,
413404
},
414405
line_type: {
415406
type: 'string',
416407
description: 'Phone line type (Mobile, Landline)',
417-
optional: true,
418408
},
419409
// Technologies
420410
technologies: {
421411
type: 'array',
422412
description: 'Technologies (name, category, subcategory, last_detected_at)',
423-
optional: true,
424413
},
425414
// Get Credits
426-
credits: { type: 'number', description: 'Remaining finder credits', optional: true },
415+
credits: { type: 'number', description: 'Remaining finder credits' },
427416
verifier_credits: {
428417
type: 'number',
429418
description: 'Remaining verifier credits',
430-
optional: true,
431419
},
432420
// Verify / Reverse shared
433-
email: { type: 'string', description: 'Email address', optional: true },
421+
email: { type: 'string', description: 'Email address' },
434422
},
435423
}

0 commit comments

Comments
 (0)