n8n-nodes-dataforb2b 1.0.9 → 1.0.11

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.
@@ -2,6 +2,7 @@ import { ICredentialType, INodeProperties, IAuthenticateGeneric, ICredentialTest
2
2
  export declare class DataForB2BApi implements ICredentialType {
3
3
  name: string;
4
4
  displayName: string;
5
+ icon: "file:dataforb2b.png";
5
6
  documentationUrl: string;
6
7
  properties: INodeProperties[];
7
8
  authenticate: IAuthenticateGeneric;
@@ -5,6 +5,7 @@ class DataForB2BApi {
5
5
  constructor() {
6
6
  this.name = "dataForB2BApi";
7
7
  this.displayName = "DataForB2B API";
8
+ this.icon = "file:dataforb2b.png";
8
9
  this.documentationUrl = "https://docs.dataforb2b.ai/";
9
10
  this.properties = [
10
11
  {
@@ -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" },
@@ -121,19 +121,21 @@ const companyFilterFields = [
121
121
  ];
122
122
  class DataForB2B {
123
123
  constructor() {
124
- this.description = {
124
+ this.description = ({
125
125
  displayName: "DataForB2B",
126
126
  name: "dataForB2B",
127
127
  icon: "file:dataforb2b.png",
128
128
  group: ["transform"],
129
129
  version: 1,
130
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
131
+ usableAsTool: true,
130
132
  description: "Access B2B data - Search people, companies and enrich profiles",
131
133
  defaults: {
132
134
  name: "DataForB2B",
133
135
  color: "#6366f1",
134
136
  },
135
- inputs: ["main"],
136
- outputs: ["main"],
137
+ inputs: ["main" /* NodeConnectionType.Main */],
138
+ outputs: ["main" /* NodeConnectionType.Main */],
137
139
  credentials: [
138
140
  {
139
141
  name: "dataForB2BApi",
@@ -148,8 +150,8 @@ class DataForB2B {
148
150
  type: "options",
149
151
  noDataExpression: true,
150
152
  options: [
151
- { name: "Search", value: "search" },
152
153
  { name: "Enrich", value: "enrich" },
154
+ { name: "Search", value: "search" },
153
155
  ],
154
156
  default: "search",
155
157
  },
@@ -163,9 +165,9 @@ class DataForB2B {
163
165
  show: { resource: ["search"] },
164
166
  },
165
167
  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
168
  { name: "Agentic Search (LLM)", value: "agenticSearch", description: "Natural language queries with AI interpretation", action: "Agentic search LLM" },
169
+ { name: "Search Companies", value: "searchCompanies", description: "Find companies with advanced filters", action: "Search companies" },
170
+ { name: "Search People", value: "searchPeople", description: "Find professionals using 50+ filters", action: "Search people" },
169
171
  { name: "Text to Filters", value: "textToFilters", description: "Convert natural language to structured filters", action: "Text to filters" },
170
172
  ],
171
173
  default: "searchPeople",
@@ -180,8 +182,8 @@ class DataForB2B {
180
182
  show: { resource: ["enrich"] },
181
183
  },
182
184
  options: [
183
- { name: "Enrich Profile", value: "enrichProfile", description: "Retrieve detailed professional data", action: "Enrich profile" },
184
185
  { name: "Enrich Company", value: "enrichCompany", description: "Retrieve comprehensive company information", action: "Enrich company" },
186
+ { name: "Enrich Profile", value: "enrichProfile", description: "Retrieve detailed professional data", action: "Enrich profile" },
185
187
  ],
186
188
  default: "enrichProfile",
187
189
  },
@@ -438,7 +440,7 @@ class DataForB2B {
438
440
  },
439
441
  },
440
442
  ],
441
- };
443
+ });
442
444
  }
443
445
  async execute() {
444
446
  var _a, _b;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-dataforb2b",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
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
  }