Skip to content

17406 components indiefunnels #17619

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 3 commits into
base: master
Choose a base branch
from

Conversation

luancazarine
Copy link
Collaborator

@luancazarine luancazarine commented Jul 14, 2025

Resolves #17406

Summary by CodeRabbit

  • New Features

    • Added IndieFunnels integration with actions to create and update contacts and members.
    • Introduced real-time event sources for contact updates, new booking sessions, form submissions, and new orders.
    • Provided sample event data for each source to facilitate testing and setup.
    • Enabled dynamic selection of member groups, subscriber lists, and other fields via option loaders.
  • Improvements

    • Enhanced property definitions and input validation for contacts and members.
    • Added utility functions for object cleaning and JSON parsing.
    • Implemented webhook lifecycle management for real-time event handling.
  • Chores

    • Updated package version and dependencies for IndieFunnels components.

Sources
 - New Booking Session (Instant)
 - New Form Submission (Instant)
 - New Order (Instant)
 - Contact Updated (Instant)

Actions
 - Create Contact
 - Update Contact
 - Create Member
 - Update Member
@luancazarine luancazarine linked an issue Jul 14, 2025 that may be closed by this pull request
Copy link

vercel bot commented Jul 14, 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) Visit Preview Jul 15, 2025 2:03pm
pipedream-docs ⬜️ Ignored (Inspect) Jul 15, 2025 2:03pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jul 15, 2025 2:03pm

Copy link
Contributor

coderabbitai bot commented Jul 14, 2025

Walkthrough

This update introduces a comprehensive IndieFunnels integration, adding four actions (create/update contact and member) and four webhook-based sources (booking session, form submission, order, and contact update). It implements utility functions, a constants file, and a fully-featured IndieFunnels app module with async option loaders, API methods, and property definitions. Supporting test event fixtures are also included.

Changes

File(s) Change Summary
components/indiefunnels/actions/create-contact/create-contact.mjs New action: Create Contact for IndieFunnels.
components/indiefunnels/actions/update-contact/update-contact.mjs New action: Update Contact for IndieFunnels.
components/indiefunnels/actions/create-member/create-member.mjs New action: Create Member for IndieFunnels.
components/indiefunnels/actions/update-member/update-member.mjs New action: Update Member for IndieFunnels.
components/indiefunnels/common/utils.mjs New utility functions: parseObject, cleanObj.
components/indiefunnels/common/constants.mjs New constant: LIMIT = 50.
components/indiefunnels/indiefunnels.app.mjs Full IndieFunnels app implementation: propDefinitions, async option loaders, API client methods.
components/indiefunnels/package.json Version bump to 0.1.0, add @pipedream/platform dependency, fix JSON structure.
components/indiefunnels/sources/common/base.mjs New base module for webhook lifecycle and event emission.
components/indiefunnels/sources/contact-updated-instant/contact-updated-instant.mjs New source: Contact Updated (Instant).
components/indiefunnels/sources/contact-updated-instant/test-event.mjs Test event fixture for contact updated.
components/indiefunnels/sources/new-booking-session-instant/new-booking-session-instant.mjs New source: New Booking Session (Instant).
components/indiefunnels/sources/new-booking-session-instant/test-event.mjs Test event fixture for new booking session.
components/indiefunnels/sources/new-form-submission-instant/new-form-submission-instant.mjs New source: New Form Submission (Instant).
components/indiefunnels/sources/new-form-submission-instant/test-event.mjs Test event fixture for new form submission.
components/indiefunnels/sources/new-order-instant/new-order-instant.mjs New source: New Order (Instant).
components/indiefunnels/sources/new-order-instant/test-event.mjs Test event fixture for new order.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Action/Source
    participant IndieFunnels App
    participant IndieFunnels API

    User->>Action/Source: Trigger action or webhook source
    Action/Source->>IndieFunnels App: Call API method (e.g., createContact, updateMember)
    IndieFunnels App->>IndieFunnels API: HTTP request (create/update/contact/member/webhook)
    IndieFunnels API-->>IndieFunnels App: API response
    IndieFunnels App-->>Action/Source: Return result or emit event
    Action/Source-->>User: Output response or event data
Loading

Assessment against linked issues

Objective Addressed Explanation
Implement webhook sources: new-booking-session, new-form-submission, new-order, contact-updated (#17406)
Implement actions: create-contact, update-contact, create-member, update-member (#17406)
Actions and sources must use correct API endpoints, handle required/optional fields, and support async options where specified (#17406)
Utility and app modules should provide necessary helpers, constants, and option loaders as per integration needs (#17406)

Suggested labels

action, trigger / source

Poem

A rabbit hopped through IndieFunnels’ gate,
Bringing actions and sources, oh, isn’t it great?
Contacts and members, now easy to create,
Bookings and orders, events that won’t wait.
With utils and constants, the groundwork is laid—
Let’s hop to automation, no need to be afraid!
🐇✨

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/indiefunnels/indiefunnels.app.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/indiefunnels/sources/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)


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between cee0992 and dfd7b79.

📒 Files selected for processing (2)
  • components/indiefunnels/indiefunnels.app.mjs (1 hunks)
  • components/indiefunnels/sources/common/base.mjs (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • components/indiefunnels/sources/common/base.mjs
🧰 Additional context used
🧠 Learnings (1)
components/indiefunnels/indiefunnels.app.mjs (9)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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: PipedreamHQ/pipedream#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: PipedreamHQ/pipedream#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.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14229
File: components/americommerce/actions/update-customer/update-customer.mjs:89-94
Timestamp: 2024-10-08T16:42:59.225Z
Learning: When defining boolean properties in AmeriCommerce components (e.g., in `update-customer.mjs`), ensure that the label and description are consistent and clearly indicate the intent, especially when using negations like "No Account", to avoid confusion.
Learnt from: jcortes
PR: PipedreamHQ/pipedream#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.
Learnt from: js07
PR: PipedreamHQ/pipedream#17375
File: components/zerobounce/actions/get-validation-results-file/get-validation-results-file.mjs:23-27
Timestamp: 2025-07-01T17:07:48.193Z
Learning: "dir" props in Pipedream components are hidden in the component form and not user-facing, so they don't require labels or descriptions for user clarity.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#13961
File: components/fakturoid/actions/create-invoice/create-invoice.mjs:95-99
Timestamp: 2024-10-15T15:07:38.361Z
Learning: An "object array" type is not yet supported for Pipedream props.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#15376
File: components/monday/sources/column-value-updated/column-value-updated.mjs:17-24
Timestamp: 2025-01-23T03:55:51.998Z
Learning: Alert props in Pipedream components are a special case that do not require a label property, and use the 'content' property as a replacement for description.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: pnpm publish
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Lint Code Base
🔇 Additional comments (3)
components/indiefunnels/indiefunnels.app.mjs (3)

245-245: Good fix on the user-agent header.

The trailing space in the user-agent header has been correctly removed.


248-256: Well-structured request method implementation.

The _makeRequest method provides a clean abstraction for HTTP requests with proper defaults and extensibility.


257-336: Comprehensive API method coverage.

The API methods provide good coverage of the IndieFunnels endpoints with consistent patterns and proper parameter handling.

✨ Finishing Touches
  • 📝 Generate Docstrings

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 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: 5

🧹 Nitpick comments (9)
components/indiefunnels/sources/new-order-instant/test-event.mjs (1)

1-74: Replace tab indents with 2-space indents to match component style guide

All other IndieFunnels component files use 2-space indentation. Mixing tabs and spaces hurts diff readability and violates the repo’s style convention.

components/indiefunnels/package.json (1)

12-17: Package metadata solid, but consider adding type:"module"

Since every file is .mjs, declaring "type": "module" avoids any ambiguity when consumers import this package.

components/indiefunnels/sources/contact-updated-instant/test-event.mjs (1)

19-22: Minor data realism nit – use non-zero subscriber list id

0 is usually a sentinel / invalid id in many systems. Using 1 (or another positive id) makes the fixture look more realistic and avoids confusion in tests that might treat 0 as falsy.

components/indiefunnels/actions/create-member/create-member.mjs (1)

177-205: Consider nested object cleaning for address objects.

The cleanObj function is applied to the entire data object, but the nested billingAddress and shippingAddress objects might contain empty/undefined values that won't be cleaned. Consider applying cleanObj to these nested objects as well.

   data: cleanObj({
     name: this.name,
     email: this.email,
     groups: this.groups,
     approved: this.approved,
     contactId: this.contactId,
-    billingAddress: {
+    billingAddress: cleanObj({
       phone: this.billingPhone,
       companyName: this.billingCompanyName,
       companyId: this.billingCompanyId,
       country: this.billingCountry,
       state: this.billingState,
       city: this.billingCity,
       zipCode: this.billingZipCode,
       address: this.billingAddress,
       address2: this.billingAddress2,
-    },
+    }),
-    shippingAddress: {
+    shippingAddress: cleanObj({
       phone: this.shippingPhone,
       companyName: this.shippingCompanyName,
       companyId: this.shippingCompanyId,
       country: this.shippingCountry,
       state: this.shippingState,
       city: this.shippingCity,
       zipCode: this.shippingZipCode,
       address: this.shippingAddress,
       address2: this.shippingAddress2,
-    },
+    }),
   }),
components/indiefunnels/sources/new-form-submission-instant/new-form-submission-instant.mjs (1)

18-20: Consider adding null safety for nested property access.

The getSummary method accesses website.systemDomain without checking if website exists, which could cause runtime errors if the webhook payload structure changes.

-    getSummary({ website }) {
-      return `New form submission from website: ${website.systemDomain}`;
+    getSummary({ website }) {
+      return `New form submission from website: ${website?.systemDomain || 'Unknown'}`;
components/indiefunnels/actions/update-contact/update-contact.mjs (1)

121-126: Add null safety for props.email access.

The additionalProps method accesses props.email.default without checking if props.email exists, which could cause runtime errors.

 async additionalProps(props) {
-  if (this.contactId) {
+  if (this.contactId && props.email) {
     props.email.default = this.contactId.label;
   }
   return {};
 },
components/indiefunnels/indiefunnels.app.mjs (3)

47-76: Consider adding pagination for groups and subscriber lists.

The groups and subscriberLists options load all items without pagination, which could cause performance issues with large datasets.

Consider implementing pagination similar to other options:

 async options() {
-  const items = await this.listMemberGroups();
+  const { items } = await this.listMemberGroups({
+    params: {
+      limit: LIMIT,
+      skip: 0, // Load first page only for options
+    },
+  });

127-132: Provide structure documentation for custom properties.

The properties field accepts an object but lacks documentation about expected structure or examples.

Update the description to include expected format:

 properties: {
   type: "object",
   label: "Properties",
-  description: "An object of custom properties, as defined in the CRM section in your website",
+  description: "An object of custom properties, as defined in the CRM section in your website. Example: `{\"customField1\": \"value1\", \"customField2\": \"value2\"}`",
 },

331-336: Add opts parameter to deleteHook for consistency.

The deleteHook method doesn't accept additional options like other API methods, which breaks consistency.

-deleteHook(webhookId) {
+deleteHook(webhookId, opts = {}) {
   return this._makeRequest({
     method: "DELETE",
     path: `/webhooks/${webhookId}`,
+    ...opts,
   });
 },
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between ee2408b and cee0992.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (17)
  • components/indiefunnels/actions/create-contact/create-contact.mjs (1 hunks)
  • components/indiefunnels/actions/create-member/create-member.mjs (1 hunks)
  • components/indiefunnels/actions/update-contact/update-contact.mjs (1 hunks)
  • components/indiefunnels/actions/update-member/update-member.mjs (1 hunks)
  • components/indiefunnels/common/constants.mjs (1 hunks)
  • components/indiefunnels/common/utils.mjs (1 hunks)
  • components/indiefunnels/indiefunnels.app.mjs (1 hunks)
  • components/indiefunnels/package.json (2 hunks)
  • components/indiefunnels/sources/common/base.mjs (1 hunks)
  • components/indiefunnels/sources/contact-updated-instant/contact-updated-instant.mjs (1 hunks)
  • components/indiefunnels/sources/contact-updated-instant/test-event.mjs (1 hunks)
  • components/indiefunnels/sources/new-booking-session-instant/new-booking-session-instant.mjs (1 hunks)
  • components/indiefunnels/sources/new-booking-session-instant/test-event.mjs (1 hunks)
  • components/indiefunnels/sources/new-form-submission-instant/new-form-submission-instant.mjs (1 hunks)
  • components/indiefunnels/sources/new-form-submission-instant/test-event.mjs (1 hunks)
  • components/indiefunnels/sources/new-order-instant/new-order-instant.mjs (1 hunks)
  • components/indiefunnels/sources/new-order-instant/test-event.mjs (1 hunks)
🧰 Additional context used
🧠 Learnings (15)
components/indiefunnels/sources/contact-updated-instant/test-event.mjs (3)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In `components/the_magic_drip/sources/common.mjs`, when processing items in `getAndProcessData`, `savedIds` is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#15376
File: components/monday/sources/name-updated/name-updated.mjs:6-6
Timestamp: 2025-01-23T03:55:15.166Z
Learning: Source names in Monday.com components don't need to start with "New" if they emit events for updated items (e.g., "Name Updated", "Column Value Updated") rather than new items. This follows the component guidelines exception where the "New" prefix is only required when emits are limited to new items.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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.
components/indiefunnels/package.json (1)
Learnt from: jcortes
PR: PipedreamHQ/pipedream#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/indiefunnels/sources/new-form-submission-instant/test-event.mjs (4)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In `components/the_magic_drip/sources/common.mjs`, when processing items in `getAndProcessData`, `savedIds` is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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: PipedreamHQ/pipedream#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.
components/indiefunnels/sources/new-booking-session-instant/test-event.mjs (1)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In `components/the_magic_drip/sources/common.mjs`, when processing items in `getAndProcessData`, `savedIds` is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.
components/indiefunnels/actions/create-contact/create-contact.mjs (1)
Learnt from: jcortes
PR: PipedreamHQ/pipedream#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/indiefunnels/sources/new-booking-session-instant/new-booking-session-instant.mjs (4)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In `components/the_magic_drip/sources/common.mjs`, when processing items in `getAndProcessData`, `savedIds` is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#15376
File: components/monday/sources/name-updated/name-updated.mjs:6-6
Timestamp: 2025-01-23T03:55:15.166Z
Learning: Source names in Monday.com components don't need to start with "New" if they emit events for updated items (e.g., "Name Updated", "Column Value Updated") rather than new items. This follows the component guidelines exception where the "New" prefix is only required when emits are limited to new items.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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.
components/indiefunnels/sources/new-form-submission-instant/new-form-submission-instant.mjs (4)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#15376
File: components/monday/sources/name-updated/name-updated.mjs:6-6
Timestamp: 2025-01-23T03:55:15.166Z
Learning: Source names in Monday.com components don't need to start with "New" if they emit events for updated items (e.g., "Name Updated", "Column Value Updated") rather than new items. This follows the component guidelines exception where the "New" prefix is only required when emits are limited to new items.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In `components/the_magic_drip/sources/common.mjs`, when processing items in `getAndProcessData`, `savedIds` is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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.
components/indiefunnels/actions/create-member/create-member.mjs (3)
Learnt from: jcortes
PR: PipedreamHQ/pipedream#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".
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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: PipedreamHQ/pipedream#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`.
components/indiefunnels/sources/new-order-instant/test-event.mjs (1)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In `components/the_magic_drip/sources/common.mjs`, when processing items in `getAndProcessData`, `savedIds` is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.
components/indiefunnels/sources/new-order-instant/new-order-instant.mjs (5)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In `components/the_magic_drip/sources/common.mjs`, when processing items in `getAndProcessData`, `savedIds` is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#15376
File: components/monday/sources/name-updated/name-updated.mjs:6-6
Timestamp: 2025-01-23T03:55:15.166Z
Learning: Source names in Monday.com components don't need to start with "New" if they emit events for updated items (e.g., "Name Updated", "Column Value Updated") rather than new items. This follows the component guidelines exception where the "New" prefix is only required when emits are limited to new items.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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: PipedreamHQ/pipedream#12697
File: components/salesforce_rest_api/sources/common.mjs:97-98
Timestamp: 2024-07-24T02:05:59.531Z
Learning: The `processTimerEvent` method in the `components/salesforce_rest_api/sources/common.mjs` file is intentionally left unimplemented to enforce that subclasses must implement this method, similar to an abstract class in object-oriented programming.
components/indiefunnels/actions/update-contact/update-contact.mjs (2)
Learnt from: jcortes
PR: PipedreamHQ/pipedream#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".
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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`.
components/indiefunnels/actions/update-member/update-member.mjs (3)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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: PipedreamHQ/pipedream#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: jcortes
PR: PipedreamHQ/pipedream#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/indiefunnels/sources/common/base.mjs (3)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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: PipedreamHQ/pipedream#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.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In `components/the_magic_drip/sources/common.mjs`, when processing items in `getAndProcessData`, `savedIds` is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.
components/indiefunnels/sources/contact-updated-instant/contact-updated-instant.mjs (4)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#15376
File: components/monday/sources/name-updated/name-updated.mjs:6-6
Timestamp: 2025-01-23T03:55:15.166Z
Learning: Source names in Monday.com components don't need to start with "New" if they emit events for updated items (e.g., "Name Updated", "Column Value Updated") rather than new items. This follows the component guidelines exception where the "New" prefix is only required when emits are limited to new items.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In `components/the_magic_drip/sources/common.mjs`, when processing items in `getAndProcessData`, `savedIds` is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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.
components/indiefunnels/indiefunnels.app.mjs (4)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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: PipedreamHQ/pipedream#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.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#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: PipedreamHQ/pipedream#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.
🪛 Biome (1.9.4)
components/indiefunnels/common/utils.mjs

[error] 37-37: Avoid the use of spread (...) syntax on accumulators.

Spread syntax should be avoided on accumulators (like those in .reduce) because it causes a time complexity of O(n^2).
Consider methods such as .splice or .push instead.

(lint/performance/noAccumulatingSpread)

🔇 Additional comments (16)
components/indiefunnels/common/constants.mjs (1)

1-1: Constant looks good

Single-source export is clean and self-describing.
No action needed.

components/indiefunnels/sources/new-form-submission-instant/test-event.mjs (2)

1-45: LGTM! Well-structured test event data.

The test event structure appropriately models a form submission with website details, contact information, form name, and form values. The data structure follows a logical pattern for webhook event testing.


20-20: Verify the timestamp value.

The createdOn timestamp (1752521431) corresponds to a date in 2025. Ensure this future timestamp is intentional for testing purposes.

components/indiefunnels/sources/new-booking-session-instant/new-booking-session-instant.mjs (1)

1-24: LGTM! Standard source component implementation.

The component correctly extends the common base module, defines the appropriate event type, and implements the required methods following the established pattern for webhook sources.

components/indiefunnels/actions/create-member/create-member.mjs (1)

174-210: LGTM! Comprehensive member creation implementation.

The action properly handles extensive member properties including billing and shipping addresses, uses the cleanObj utility appropriately, and follows the standard action pattern.

components/indiefunnels/sources/contact-updated-instant/contact-updated-instant.mjs (1)

1-24: LGTM! Standard source component implementation.

The component correctly extends the common base module, defines the appropriate event type for contact updates, and implements the required methods following the established pattern. The naming convention is correct for update events.

components/indiefunnels/actions/create-contact/create-contact.mjs (2)

110-138: LGTM! Well-implemented contact creation action.

The action properly handles contact properties including complex objects like properties, tags, and subscriber lists. The properties transformation logic correctly converts key-value pairs to the expected API format with name-value objects.


122-128: Excellent property transformation logic.

The properties transformation properly converts the parsed object into the expected API format using Object.entries() and mapping to name-value pairs.

components/indiefunnels/sources/new-order-instant/new-order-instant.mjs (1)

1-23: LGTM! Well-structured webhook source component.

The component correctly extends the common base and implements the required methods for a webhook source. The event type "order_created" aligns with the component's purpose, and the summary generation is properly implemented.

components/indiefunnels/sources/new-form-submission-instant/new-form-submission-instant.mjs (1)

1-23: LGTM! Consistent webhook source implementation.

The component follows the established pattern and correctly implements the required methods for form submission events.

components/indiefunnels/common/utils.mjs (1)

1-24: LGTM! Well-implemented JSON parsing utility with proper error handling.

The parseObject function handles arrays and strings appropriately with try-catch blocks for JSON parsing errors.

components/indiefunnels/actions/update-contact/update-contact.mjs (1)

1-156: LGTM! Well-structured contact update action with proper data transformation.

The action correctly uses utility functions to clean and parse input data, properly transforms properties into the expected API format, and provides appropriate feedback.

components/indiefunnels/actions/update-member/update-member.mjs (1)

1-211: LGTM! Well-organized member update action with proper data structuring.

The action correctly organizes the member data into nested billing and shipping address objects, uses the cleanObj utility to remove empty values, and provides appropriate feedback.

components/indiefunnels/sources/common/base.mjs (2)

1-9: Well-structured webhook source base module.

The imports and props follow standard Pipedream webhook source patterns correctly.


26-34: Add webhook payload verification or confirm security approach with IndieFunnels support

We weren’t able to find any official signature header for IndieFunnels webhooks in the public docs. To ensure your handler is secure:

  • Confirm with IndieFunnels support whether they provide a signature header (e.g. X-IndieFunnels-Signature) or plan to add one.
  • If no native support exists, implement an alternative verification strategy:
    • Validate a shared secret sent in a custom header or payload field
    • Whitelist incoming IP ranges for IndieFunnels
    • Use a timestamp + HMAC stored in your database

Update components/indiefunnels/sources/common/base.mjs accordingly:

   // components/indiefunnels/sources/common/base.mjs
   async run({ body }) {
+    // TODO: verify webhook payload before proceeding
+    // Example stub—adjust once IndieFunnels support details are confirmed:
+    // const secret    = this.db.get('webhookSecret');
+    // const signature = headers['x-indiefunnels-signature'];
+    // if (!validateHMAC(body, signature, secret)) {
+    //   throw new Error('Invalid webhook signature');
+    // }
     const ts = body.created || Date.now();
     this.$emit(body, {
       id: `${body.id}-${ts}`,
       summary: this.getSummary(body),
       ts,
     });
   },

Please reach out to IndieFunnels support to verify their webhook security mechanism and implement the appropriate verification logic.

components/indiefunnels/indiefunnels.app.mjs (1)

1-7: Proper app module structure and imports.

The module setup follows Pipedream app standards correctly.

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] indiefunnels
2 participants