Skip to content

17531 components exact mails #17796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

luancazarine
Copy link
Collaborator

@luancazarine luancazarine commented Jul 24, 2025

Resolves #17531

Summary by CodeRabbit

  • New Features

    • Added actions to search for company, decision maker, LinkedIn, and person emails using the Exact Mails integration.
    • Each action includes user-friendly input fields and links to documentation.
  • Refactor

    • Improved and structured the Exact Mails integration for more reliable API interactions.
  • Chores

    • Updated package version and added a new dependency for enhanced platform compatibility.

Actions
 - Search Company Emails
 - Search Decision Maker Emails
 - Search LinkedIn Emails
 - Search Person Emails
@luancazarine luancazarine linked an issue Jul 24, 2025 that may be closed by this pull request
Copy link

vercel bot commented Jul 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored (Inspect) Jul 24, 2025 7:47pm
pipedream-docs ⬜️ Ignored (Inspect) Jul 24, 2025 7:47pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jul 24, 2025 7:47pm

Copy link
Contributor

coderabbitai bot commented Jul 24, 2025

Walkthrough

This update introduces a new Exact Mails integration, including a refactored API client and four new action modules for searching emails by person, company, LinkedIn profile, or decision maker. A reusable action base is provided, and package metadata is updated to include necessary dependencies and versioning.

Changes

File(s) Change Summary
components/exact_mails/actions/common/base.mjs Added a reusable base module for Exact Mails actions with standardized run, getFn, and getData structure.
components/exact_mails/actions/search-company-email/search-company-email.mjs New action: Search company email via Exact Mails API, with input for company domain.
components/exact_mails/actions/search-decision-maker-email/search-decision-maker-email.mjs New action: Search decision maker email, accepting company domain and optional role.
components/exact_mails/actions/search-linkedin-email/search-linkedin-email.mjs New action: Search email by LinkedIn profile URL.
components/exact_mails/actions/search-person-email/search-person-email.mjs New action: Search person email by username and optional domain.
components/exact_mails/exact_mails.app.mjs Refactored API client: Added structured API methods for various email search endpoints, removed placeholder logic.
components/exact_mails/package.json Updated version, added @pipedream/platform dependency, and fixed JSON syntax.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ActionModule
    participant BaseModule
    participant ExactMailsAPI

    User->>ActionModule: Provide input (e.g., company domain, username)
    ActionModule->>BaseModule: Call run({ $ })
    BaseModule->>ActionModule: getFn(), getData()
    ActionModule->>ExactMailsAPI: Call appropriate API method with data
    ExactMailsAPI-->>ActionModule: Return response
    ActionModule->>BaseModule: Return response
    BaseModule-->>User: Return result, set $summary
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~15–25 minutes

Poem

In the warren of code, new tunnels appear,
Exact Mails actions now hop far and near.
Search by company, LinkedIn, or name,
Decision makers join the game.
With a twitch of a nose and a click of a key,
🐇 Email discovery is as easy as can be!
Hooray for new features—let’s hop with glee!

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

components/exact_mails/actions/common/base.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:202:49)

components/exact_mails/actions/search-company-email/search-company-email.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:202:49)

components/exact_mails/actions/search-person-email/search-person-email.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:202:49)

  • 3 others

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 17531-components-exact-mails

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
components/exact_mails/exact_mails.app.mjs (1)

17-25: Consider adding error handling for better debugging experience.

While the current implementation is clean and functional, consider adding basic error handling in _makeRequest to provide more descriptive error messages for common API failures (authentication, rate limits, etc.).

 _makeRequest({
   $ = this, path, ...opts
 }) {
-  return axios($, {
-    url: this._baseUrl() + path,
-    auth: this._auth(),
-    ...opts,
-  });
+  try {
+    return axios($, {
+      url: this._baseUrl() + path,
+      auth: this._auth(),
+      ...opts,
+    });
+  } catch (error) {
+    throw new Error(`Exact Mails API request failed: ${error.message}`);
+  }
 }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cd0d7f7 and 147f48f.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (7)
  • components/exact_mails/actions/common/base.mjs (1 hunks)
  • components/exact_mails/actions/search-company-email/search-company-email.mjs (1 hunks)
  • components/exact_mails/actions/search-decision-maker-email/search-decision-maker-email.mjs (1 hunks)
  • components/exact_mails/actions/search-linkedin-email/search-linkedin-email.mjs (1 hunks)
  • components/exact_mails/actions/search-person-email/search-person-email.mjs (1 hunks)
  • components/exact_mails/exact_mails.app.mjs (1 hunks)
  • components/exact_mails/package.json (2 hunks)
🧰 Additional context used
🧠 Learnings (7)
components/exact_mails/package.json (1)

Learnt from: jcortes
PR: #14935
File: components/sailpoint/package.json:15-18
Timestamp: 2024-12-12T19:23:09.039Z
Learning: When developing Pipedream components, do not add built-in Node.js modules like fs to package.json dependencies, as they are native modules provided by the Node.js runtime.

components/exact_mails/actions/common/base.mjs (4)

Learnt from: GTFalcao
PR: #12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-07-04T18:11:59.822Z
Learning: When exporting a summary message in the run method of an action, ensure the message is correctly formatted. For example, in the hackerone-get-members action, the correct format is Successfully retrieved ${response.data.length} members.

Learnt from: GTFalcao
PR: #12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-10-08T15:33:38.240Z
Learning: When exporting a summary message in the run method of an action, ensure the message is correctly formatted. For example, in the hackerone-get-members action, the correct format is Successfully retrieved ${response.data.length} members.

Learnt from: GTFalcao
PR: #12697
File: components/salesforce_rest_api/sources/common-webhook-methods.mjs:1-71
Timestamp: 2024-10-08T15:33:38.240Z
Learning: The common-webhook-methods.mjs object is designed to be extended, similar to an abstract class, and intentionally does not implement certain methods like generateWebhookMeta and getEventType to enforce implementation in subclasses.

Learnt from: GTFalcao
PR: #12697
File: components/salesforce_rest_api/sources/common-webhook-methods.mjs:1-71
Timestamp: 2024-07-24T02:06:47.016Z
Learning: The common-webhook-methods.mjs object is designed to be extended, similar to an abstract class, and intentionally does not implement certain methods like generateWebhookMeta and getEventType to enforce implementation in subclasses.

components/exact_mails/actions/search-linkedin-email/search-linkedin-email.mjs (1)

Learnt from: jcortes
PR: #14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In components/gainsight_px/actions/create-account/create-account.mjs, the action name should be "Create Account" instead of "Create Memory".

components/exact_mails/actions/search-company-email/search-company-email.mjs (1)

Learnt from: jcortes
PR: #14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In components/gainsight_px/actions/create-account/create-account.mjs, the action name should be "Create Account" instead of "Create Memory".

components/exact_mails/exact_mails.app.mjs (2)

Learnt from: GTFalcao
PR: #16954
File: components/salesloft/salesloft.app.mjs:14-23
Timestamp: 2025-06-04T17:52:05.780Z
Learning: In the Salesloft API integration (components/salesloft/salesloft.app.mjs), the _makeRequest method returns response.data which directly contains arrays for list endpoints like listPeople, listCadences, listUsers, and listAccounts. The propDefinitions correctly call .map() directly on these responses without needing to destructure a nested data property.

Learnt from: GTFalcao
PR: #16954
File: components/salesloft/salesloft.app.mjs:14-23
Timestamp: 2025-06-04T17:52:05.780Z
Learning: The Salesloft API list endpoints (listPeople, listCadences, listUsers, listAccounts) return arrays directly in the response body, not wrapped in a metadata object with a nested data property. The _makeRequest method correctly returns response.data which contains the arrays that can be mapped over directly in propDefinitions.

components/exact_mails/actions/search-decision-maker-email/search-decision-maker-email.mjs (1)

Learnt from: jcortes
PR: #14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In components/gainsight_px/actions/create-account/create-account.mjs, the action name should be "Create Account" instead of "Create Memory".

components/exact_mails/actions/search-person-email/search-person-email.mjs (1)

Learnt from: jcortes
PR: #14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In components/gainsight_px/actions/create-account/create-account.mjs, the action name should be "Create Account" instead of "Create Memory".

🔇 Additional comments (12)
components/exact_mails/package.json (2)

3-3: LGTM: Appropriate version bump for new features.

The version update from 0.0.1 to 0.1.0 correctly follows semantic versioning for the addition of new action modules.


14-17: LGTM: Proper JSON structure and dependency management.

The JSON structure is correctly formatted and the @pipedream/platform dependency is appropriate for Pipedream components.

components/exact_mails/actions/common/base.mjs (1)

1-17: LGTM: Well-designed base action following template method pattern.

This base module provides excellent reusability for the Exact Mails actions:

  • Centralizes common execution logic in the run method
  • Uses template method pattern with getFn() and getData() for subclass customization
  • Properly exports summary for Pipedream UI
  • Follows established patterns for Pipedream component base classes
components/exact_mails/actions/search-linkedin-email/search-linkedin-email.mjs (1)

1-28: LGTM: Clean implementation following established patterns.

The LinkedIn email search action is well-implemented:

  • Properly extends the base module
  • Clear metadata and property definitions
  • Correct implementation of template methods (getFn() and getData())
  • Appropriate field mapping from linkedin to linkedin_url for the API
components/exact_mails/actions/search-company-email/search-company-email.mjs (1)

1-28: LGTM: Consistent implementation with other search actions.

The company email search action follows the established pattern correctly:

  • Proper base module extension
  • Clear property definition for company domain
  • Correct template method implementations
  • Appropriate field mapping from companyDomain to company_domain
components/exact_mails/actions/search-person-email/search-person-email.mjs (1)

1-35: LGTM: Proper handling of required and optional parameters.

The person email search action is well-implemented:

  • Consistent with other search actions in structure and patterns
  • Properly handles both required (username) and optional (domain) parameters
  • Correct template method implementations
  • Clear property definitions with appropriate descriptions
components/exact_mails/actions/search-decision-maker-email/search-decision-maker-email.mjs (3)

1-9: LGTM! Well-structured action component.

The component follows Pipedream conventions with proper imports, metadata, and inheritance from the base module. The action name is clear and descriptive.


10-23: Props are well-defined and appropriately configured.

The required companyDomain and optional role properties are properly typed with clear descriptions that will help users understand their purpose.


24-35: Clean method implementation with proper data transformation.

The getFn() and getData() methods follow a clear pattern, properly transforming camelCase properties to snake_case format expected by the API.

components/exact_mails/exact_mails.app.mjs (3)

1-7: Standard Pipedream app structure implemented correctly.

The app follows proper conventions with appropriate imports and structure.


8-25: Well-structured HTTP client implementation.

The helper methods provide good separation of concerns with centralized URL and auth handling. The _makeRequest method properly combines configuration while allowing flexible options.


26-53: Consistent API method implementations with clear intent.

All four search methods follow the same reliable pattern, using POST requests with flexible options handling. The consistent structure makes the API client predictable and maintainable.

Copy link
Collaborator

@michelle0927 michelle0927 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Components] Exact Mails
2 participants