n8n-nodes-dataforb2b 1.0.10 → 1.0.12

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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataForB2B = void 0;
4
4
  const n8n_workflow_1 = require("n8n-workflow");
5
5
  const DATAFORB2B_API_BASE_URL = "https://api.dataforb2b.ai";
6
- // Operators disponibles par type
6
+ // Available operators by type
7
7
  const textOperators = [
8
8
  { name: "Equals", value: "eq" },
9
9
  { name: "Not Equals", value: "neq" },
@@ -40,8 +40,6 @@ const peopleFilterFields = [
40
40
  // Profile
41
41
  { name: "First Name", value: "first_name" },
42
42
  { name: "Last Name", value: "last_name" },
43
- { name: "Profile Headline", value: "profile_headline" },
44
- { name: "Summary", value: "summary" },
45
43
  { name: "Profile Location", value: "profile_location" },
46
44
  { name: "Profile Country", value: "profile_country" },
47
45
  { name: "Profile Industry", value: "profile_industry" },
@@ -51,18 +49,20 @@ const peopleFilterFields = [
51
49
  { name: "Current Company", value: "current_company" },
52
50
  { name: "Current Title", value: "current_title" },
53
51
  { name: "Current Job Location", value: "current_job_location" },
54
- { name: "Current Job Country", value: "current_job_country" },
55
52
  { name: "Current Company Industry", value: "current_company_industry" },
53
+ { name: "Current Company Category", value: "current_company_category" },
56
54
  { name: "Current Company Size", value: "current_company_size" },
57
55
  { name: "Current Company ID", value: "current_company_id" },
58
56
  { name: "Current Employment Type", value: "current_employment_type" },
59
57
  { name: "Years in Current Position", value: "years_in_current_position" },
60
58
  { name: "Years at Current Company", value: "years_at_current_company" },
59
+ { name: "Current Company Has Funding", value: "current_company_has_funding" },
60
+ { name: "Current Company Funding Stage", value: "current_company_funding_stage" },
61
+ { name: "Current Company Investor", value: "current_company_investor" },
61
62
  // Past Jobs
62
63
  { name: "Past Company", value: "past_company" },
63
64
  { name: "Past Title", value: "past_title" },
64
65
  { name: "Past Job Location", value: "past_job_location" },
65
- { name: "Past Job Country", value: "past_job_country" },
66
66
  { name: "Past Company Industry", value: "past_company_industry" },
67
67
  { name: "Past Company Size", value: "past_company_size" },
68
68
  { name: "Past Company ID", value: "past_company_id" },
@@ -118,22 +118,47 @@ const companyFilterFields = [
118
118
  { name: "Follower Count", value: "follower_count" },
119
119
  { name: "Page Verified", value: "page_verified" },
120
120
  { name: "Category", value: "category" },
121
+ // Funding
122
+ { name: "Last Funding Amount (USD)", value: "last_funding_amount_usd" },
123
+ { name: "Last Funding Date", value: "last_funding_date" },
124
+ { name: "Funding Stage", value: "funding_stage_normalized" },
125
+ { name: "Has Funding", value: "has_funding" },
121
126
  ];
122
127
  class DataForB2B {
123
128
  constructor() {
124
- this.description = {
129
+ this.description = ({
125
130
  displayName: "DataForB2B",
126
131
  name: "dataForB2B",
127
132
  icon: "file:dataforb2b.png",
128
133
  group: ["transform"],
129
134
  version: 1,
135
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
136
+ usableAsTool: true,
130
137
  description: "Access B2B data - Search people, companies and enrich profiles",
138
+ codex: {
139
+ categories: ["Sales"],
140
+ subcategories: {
141
+ Sales: ["Lead Generation", "Enrichment"],
142
+ },
143
+ alias: [
144
+ "Prospecting",
145
+ "Lead Generation",
146
+ "Leads",
147
+ "B2B",
148
+ "LinkedIn",
149
+ "Sales Navigator",
150
+ "Enrichment",
151
+ "People Search",
152
+ "Company Search",
153
+ "Email Finder",
154
+ ],
155
+ },
131
156
  defaults: {
132
157
  name: "DataForB2B",
133
158
  color: "#6366f1",
134
159
  },
135
- inputs: ["main"],
136
- outputs: ["main"],
160
+ inputs: ["main" /* NodeConnectionType.Main */],
161
+ outputs: ["main" /* NodeConnectionType.Main */],
137
162
  credentials: [
138
163
  {
139
164
  name: "dataForB2BApi",
@@ -148,8 +173,8 @@ class DataForB2B {
148
173
  type: "options",
149
174
  noDataExpression: true,
150
175
  options: [
151
- { name: "Search", value: "search" },
152
176
  { name: "Enrich", value: "enrich" },
177
+ { name: "Search", value: "search" },
153
178
  ],
154
179
  default: "search",
155
180
  },
@@ -163,9 +188,9 @@ class DataForB2B {
163
188
  show: { resource: ["search"] },
164
189
  },
165
190
  options: [
166
- { name: "Search People", value: "searchPeople", description: "Find professionals using 50+ filters", action: "Search people" },
167
- { name: "Search Companies", value: "searchCompanies", description: "Find companies with advanced filters", action: "Search companies" },
168
191
  { name: "Agentic Search (LLM)", value: "agenticSearch", description: "Natural language queries with AI interpretation", action: "Agentic search LLM" },
192
+ { name: "Search Companies", value: "searchCompanies", description: "Find companies with advanced filters", action: "Search companies" },
193
+ { name: "Search People", value: "searchPeople", description: "Find professionals using 50+ filters", action: "Search people" },
169
194
  { name: "Text to Filters", value: "textToFilters", description: "Convert natural language to structured filters", action: "Text to filters" },
170
195
  ],
171
196
  default: "searchPeople",
@@ -180,8 +205,8 @@ class DataForB2B {
180
205
  show: { resource: ["enrich"] },
181
206
  },
182
207
  options: [
183
- { name: "Enrich Profile", value: "enrichProfile", description: "Retrieve detailed professional data", action: "Enrich profile" },
184
208
  { name: "Enrich Company", value: "enrichCompany", description: "Retrieve comprehensive company information", action: "Enrich company" },
209
+ { name: "Enrich Profile", value: "enrichProfile", description: "Retrieve detailed professional data", action: "Enrich profile" },
185
210
  ],
186
211
  default: "enrichProfile",
187
212
  },
@@ -438,7 +463,7 @@ class DataForB2B {
438
463
  },
439
464
  },
440
465
  ],
441
- };
466
+ });
442
467
  }
443
468
  async execute() {
444
469
  var _a, _b;
@@ -0,0 +1,28 @@
1
+ {
2
+ "node": "n8n-nodes-dataforb2b.dataForB2B",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Sales"],
6
+ "subcategories": {
7
+ "Sales": ["Lead Generation", "Enrichment"]
8
+ },
9
+ "alias": [
10
+ "Prospecting",
11
+ "Lead Generation",
12
+ "Leads",
13
+ "B2B",
14
+ "LinkedIn",
15
+ "Sales Navigator",
16
+ "Enrichment",
17
+ "People Search",
18
+ "Company Search",
19
+ "Email Finder"
20
+ ],
21
+ "resources": {
22
+ "primaryDocumentation": [
23
+ {
24
+ "url": "https://api.dataforb2b.ai"
25
+ }
26
+ ]
27
+ }
28
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-dataforb2b",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "n8n node for DataForB2B API - Search people, companies and enrich B2B data",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -55,11 +55,11 @@
55
55
  "eslint": "^8.57.1",
56
56
  "eslint-plugin-n8n-nodes-base": "^1.11.0",
57
57
  "gulp": "^4.0.2",
58
+ "n8n-workflow": "1.62.0",
58
59
  "prettier": "^2.7.1",
59
60
  "typescript": "^4.8.4"
60
61
  },
61
62
  "peerDependencies": {
62
63
  "n8n-workflow": "*"
63
- },
64
- "dependencies": {}
64
+ }
65
65
  }