n8n-nodes-dataforb2b 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -327,6 +327,16 @@ class DataForB2B {
327
327
  show: { resource: ["search"], operation: ["searchPeople", "searchCompanies"] },
328
328
  },
329
329
  },
330
+ {
331
+ displayName: "Enrich Live",
332
+ name: "enrichLive",
333
+ type: "boolean",
334
+ default: false,
335
+ description: "Whether to enrich results with live data (additional credits)",
336
+ displayOptions: {
337
+ show: { resource: ["search"], operation: ["searchPeople", "searchCompanies"] },
338
+ },
339
+ },
330
340
  // === AGENTIC SEARCH PARAMETERS ===
331
341
  {
332
342
  displayName: "Query",
@@ -461,11 +471,13 @@ class DataForB2B {
461
471
  body = {
462
472
  filters: { op: filterLogic, conditions },
463
473
  count: this.getNodeParameter("count", i),
474
+ offset: this.getNodeParameter("offset", i),
475
+ enrich_live: this.getNodeParameter("enrichLive", i),
464
476
  };
465
477
  break;
466
478
  }
467
479
  case "searchCompanies": {
468
- endpoint = "/search/company";
480
+ endpoint = "/search/companies";
469
481
  const filterLogic = this.getNodeParameter("filterLogic", i);
470
482
  const companyFilters = this.getNodeParameter("companyFilters", i);
471
483
  const conditions = (companyFilters.conditions || []).map((cond) => {
@@ -485,6 +497,8 @@ class DataForB2B {
485
497
  body = {
486
498
  filters: { op: filterLogic, conditions },
487
499
  count: this.getNodeParameter("count", i),
500
+ offset: this.getNodeParameter("offset", i),
501
+ enrich_live: this.getNodeParameter("enrichLive", i),
488
502
  };
489
503
  break;
490
504
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-dataforb2b",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "n8n node for DataForB2B API - Search people, companies and enrich B2B data",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",