n8n-nodes-pubrio 0.1.0

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.
Files changed (84) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +92 -0
  3. package/dist/credentials/PubrioApi.credentials.d.ts +13 -0
  4. package/dist/credentials/PubrioApi.credentials.js +50 -0
  5. package/dist/credentials/PubrioApi.credentials.js.map +1 -0
  6. package/dist/icons/pubrio.svg +8 -0
  7. package/dist/nodes/Pubrio/Pubrio.node.d.ts +5 -0
  8. package/dist/nodes/Pubrio/Pubrio.node.js +109 -0
  9. package/dist/nodes/Pubrio/Pubrio.node.js.map +1 -0
  10. package/dist/nodes/Pubrio/Pubrio.node.json +18 -0
  11. package/dist/nodes/Pubrio/resources/company/enrich.d.ts +2 -0
  12. package/dist/nodes/Pubrio/resources/company/enrich.js +51 -0
  13. package/dist/nodes/Pubrio/resources/company/enrich.js.map +1 -0
  14. package/dist/nodes/Pubrio/resources/company/index.d.ts +4 -0
  15. package/dist/nodes/Pubrio/resources/company/index.js +132 -0
  16. package/dist/nodes/Pubrio/resources/company/index.js.map +1 -0
  17. package/dist/nodes/Pubrio/resources/company/linkedinLookup.d.ts +2 -0
  18. package/dist/nodes/Pubrio/resources/company/linkedinLookup.js +20 -0
  19. package/dist/nodes/Pubrio/resources/company/linkedinLookup.js.map +1 -0
  20. package/dist/nodes/Pubrio/resources/company/lookup.d.ts +2 -0
  21. package/dist/nodes/Pubrio/resources/company/lookup.js +51 -0
  22. package/dist/nodes/Pubrio/resources/company/lookup.js.map +1 -0
  23. package/dist/nodes/Pubrio/resources/company/search.d.ts +2 -0
  24. package/dist/nodes/Pubrio/resources/company/search.js +149 -0
  25. package/dist/nodes/Pubrio/resources/company/search.js.map +1 -0
  26. package/dist/nodes/Pubrio/resources/monitor/create.d.ts +2 -0
  27. package/dist/nodes/Pubrio/resources/monitor/create.js +238 -0
  28. package/dist/nodes/Pubrio/resources/monitor/create.js.map +1 -0
  29. package/dist/nodes/Pubrio/resources/monitor/delete.d.ts +2 -0
  30. package/dist/nodes/Pubrio/resources/monitor/delete.js +20 -0
  31. package/dist/nodes/Pubrio/resources/monitor/delete.js.map +1 -0
  32. package/dist/nodes/Pubrio/resources/monitor/duplicate.d.ts +2 -0
  33. package/dist/nodes/Pubrio/resources/monitor/duplicate.js +33 -0
  34. package/dist/nodes/Pubrio/resources/monitor/duplicate.js.map +1 -0
  35. package/dist/nodes/Pubrio/resources/monitor/get.d.ts +2 -0
  36. package/dist/nodes/Pubrio/resources/monitor/get.js +20 -0
  37. package/dist/nodes/Pubrio/resources/monitor/get.js.map +1 -0
  38. package/dist/nodes/Pubrio/resources/monitor/index.d.ts +4 -0
  39. package/dist/nodes/Pubrio/resources/monitor/index.js +238 -0
  40. package/dist/nodes/Pubrio/resources/monitor/index.js.map +1 -0
  41. package/dist/nodes/Pubrio/resources/monitor/list.d.ts +2 -0
  42. package/dist/nodes/Pubrio/resources/monitor/list.js +96 -0
  43. package/dist/nodes/Pubrio/resources/monitor/list.js.map +1 -0
  44. package/dist/nodes/Pubrio/resources/monitor/stats.d.ts +2 -0
  45. package/dist/nodes/Pubrio/resources/monitor/stats.js +80 -0
  46. package/dist/nodes/Pubrio/resources/monitor/stats.js.map +1 -0
  47. package/dist/nodes/Pubrio/resources/monitor/testRun.d.ts +2 -0
  48. package/dist/nodes/Pubrio/resources/monitor/testRun.js +20 -0
  49. package/dist/nodes/Pubrio/resources/monitor/testRun.js.map +1 -0
  50. package/dist/nodes/Pubrio/resources/monitor/update.d.ts +2 -0
  51. package/dist/nodes/Pubrio/resources/monitor/update.js +91 -0
  52. package/dist/nodes/Pubrio/resources/monitor/update.js.map +1 -0
  53. package/dist/nodes/Pubrio/resources/people/enrich.d.ts +2 -0
  54. package/dist/nodes/Pubrio/resources/people/enrich.js +46 -0
  55. package/dist/nodes/Pubrio/resources/people/enrich.js.map +1 -0
  56. package/dist/nodes/Pubrio/resources/people/index.d.ts +4 -0
  57. package/dist/nodes/Pubrio/resources/people/index.js +179 -0
  58. package/dist/nodes/Pubrio/resources/people/index.js.map +1 -0
  59. package/dist/nodes/Pubrio/resources/people/linkedinLookup.d.ts +2 -0
  60. package/dist/nodes/Pubrio/resources/people/linkedinLookup.js +20 -0
  61. package/dist/nodes/Pubrio/resources/people/linkedinLookup.js.map +1 -0
  62. package/dist/nodes/Pubrio/resources/people/lookup.d.ts +2 -0
  63. package/dist/nodes/Pubrio/resources/people/lookup.js +46 -0
  64. package/dist/nodes/Pubrio/resources/people/lookup.js.map +1 -0
  65. package/dist/nodes/Pubrio/resources/people/redeem.d.ts +2 -0
  66. package/dist/nodes/Pubrio/resources/people/redeem.js +132 -0
  67. package/dist/nodes/Pubrio/resources/people/redeem.js.map +1 -0
  68. package/dist/nodes/Pubrio/resources/people/search.d.ts +2 -0
  69. package/dist/nodes/Pubrio/resources/people/search.js +162 -0
  70. package/dist/nodes/Pubrio/resources/people/search.js.map +1 -0
  71. package/dist/nodes/Pubrio/resources/profile/index.d.ts +4 -0
  72. package/dist/nodes/Pubrio/resources/profile/index.js +44 -0
  73. package/dist/nodes/Pubrio/resources/profile/index.js.map +1 -0
  74. package/dist/nodes/Pubrio/shared/descriptions.d.ts +4 -0
  75. package/dist/nodes/Pubrio/shared/descriptions.js +32 -0
  76. package/dist/nodes/Pubrio/shared/descriptions.js.map +1 -0
  77. package/dist/nodes/Pubrio/shared/transport.d.ts +3 -0
  78. package/dist/nodes/Pubrio/shared/transport.js +88 -0
  79. package/dist/nodes/Pubrio/shared/transport.js.map +1 -0
  80. package/dist/nodes/Pubrio/shared/types.d.ts +14 -0
  81. package/dist/nodes/Pubrio/shared/types.js +3 -0
  82. package/dist/nodes/Pubrio/shared/types.js.map +1 -0
  83. package/dist/package.json +42 -0
  84. package/package.json +42 -0
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Pubrio
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,92 @@
1
+ # n8n-nodes-pubrio
2
+
3
+ This is an n8n community node that integrates the [Pubrio](https://pubrio.com) B2B data intelligence API into your n8n workflows. Search companies and people, enrich records, reveal contact information, and monitor business signals — all from within n8n.
4
+
5
+ [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
6
+
7
+ ## Installation
8
+
9
+ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
10
+
11
+ 1. Open your n8n instance
12
+ 2. Go to **Settings > Community Nodes**
13
+ 3. Select **Install**
14
+ 4. Enter `n8n-nodes-pubrio` and confirm
15
+
16
+ ## Authentication
17
+
18
+ You need a Pubrio account with API access to use this node.
19
+
20
+ 1. Sign up or log in at [dashboard.pubrio.com](https://dashboard.pubrio.com)
21
+ 2. Go to **Settings** and copy your **API Key**
22
+ 3. Note your **Profile ID** (workspace identifier) from the dashboard
23
+ 4. In n8n, create a new **Pubrio API** credential and enter both values
24
+
25
+ For full API documentation, visit [docs.pubrio.com](https://docs.pubrio.com/en/api-reference/introduction).
26
+
27
+ ## Operations
28
+
29
+ ### Company
30
+
31
+ | Operation | Description |
32
+ |-----------|-------------|
33
+ | Search | Search companies with filters (name, domain, location, headcount, revenue, keywords) |
34
+ | Lookup | Look up a company by domain, LinkedIn URL, or ID |
35
+ | Enrich | Get enriched company data (consumes credits) |
36
+ | LinkedIn Lookup | Real-time LinkedIn company lookup |
37
+
38
+ ### Person
39
+
40
+ | Operation | Description |
41
+ |-----------|-------------|
42
+ | Search | Search people with filters (name, title, department, seniority, location) |
43
+ | Lookup | Look up a person by LinkedIn URL or ID |
44
+ | Enrich | Get enriched person data (consumes credits) |
45
+ | LinkedIn Lookup | Real-time LinkedIn person lookup |
46
+ | Redeem Contact | Reveal email or phone for a person (consumes credits) |
47
+ | Batch Redeem | Reveal contacts for multiple people at once |
48
+ | Query Batch | Check the status of a batch redeem operation |
49
+
50
+ ### Monitor
51
+
52
+ | Operation | Description |
53
+ |-----------|-------------|
54
+ | Create | Create a new signal monitor (jobs, news, ads) |
55
+ | Update | Update an existing monitor |
56
+ | Get | Get monitor details |
57
+ | List | List all monitors |
58
+ | Delete | Delete a monitor |
59
+ | Duplicate | Duplicate a monitor |
60
+ | Test Run | Test-run a monitor to preview results |
61
+ | Retry | Retry a failed monitor delivery |
62
+ | Get Stats | Get monitor statistics overview |
63
+ | Get Logs | Get monitor execution logs |
64
+
65
+ ### Profile
66
+
67
+ | Operation | Description |
68
+ |-----------|-------------|
69
+ | Get Details | Get workspace profile details |
70
+ | Get Usage | Get credit usage and subscription information |
71
+
72
+ ## Example Use Cases
73
+
74
+ - **Lead enrichment**: Trigger on new HubSpot contacts, enrich with Pubrio, update the CRM record
75
+ - **Company research**: Search for companies in a specific industry and region, export to Google Sheets
76
+ - **Signal monitoring**: Set up monitors for job postings at target accounts, receive webhook alerts
77
+ - **Contact discovery**: Search for decision-makers at target companies, reveal their email addresses
78
+
79
+ ## Compatibility
80
+
81
+ - Requires n8n version 1.0.0 or later
82
+ - Works on both n8n Cloud and self-hosted instances
83
+
84
+ ## Resources
85
+
86
+ - [Pubrio API Documentation](https://docs.pubrio.com/en/api-reference/introduction)
87
+ - [Pubrio Dashboard](https://dashboard.pubrio.com)
88
+ - [n8n Community Nodes Documentation](https://docs.n8n.io/integrations/community-nodes/)
89
+
90
+ ## License
91
+
92
+ [MIT](LICENSE.md)
@@ -0,0 +1,13 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class PubrioApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ icon: {
7
+ readonly light: "file:pubrio.svg";
8
+ readonly dark: "file:pubrio.svg";
9
+ };
10
+ properties: INodeProperties[];
11
+ authenticate: IAuthenticateGeneric;
12
+ test: ICredentialTestRequest;
13
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PubrioApi = void 0;
4
+ class PubrioApi {
5
+ constructor() {
6
+ this.name = 'pubrioApi';
7
+ this.displayName = 'Pubrio API';
8
+ this.documentationUrl = 'https://docs.pubrio.com/en/api-reference/introduction';
9
+ this.icon = {
10
+ light: 'file:pubrio.svg',
11
+ dark: 'file:pubrio.svg',
12
+ };
13
+ this.properties = [
14
+ {
15
+ displayName: 'API Key',
16
+ name: 'apiKey',
17
+ type: 'string',
18
+ typeOptions: { password: true },
19
+ default: '',
20
+ required: true,
21
+ description: 'Your Pubrio API key from the dashboard settings',
22
+ },
23
+ {
24
+ displayName: 'Profile ID',
25
+ name: 'profileId',
26
+ type: 'number',
27
+ default: 0,
28
+ required: true,
29
+ description: 'Your Pubrio workspace profile ID',
30
+ },
31
+ ];
32
+ this.authenticate = {
33
+ type: 'generic',
34
+ properties: {
35
+ headers: {
36
+ 'pubrio-api-key': '={{$credentials.apiKey}}',
37
+ },
38
+ },
39
+ };
40
+ this.test = {
41
+ request: {
42
+ baseURL: 'https://api.pubrio.com',
43
+ url: '/user',
44
+ method: 'GET',
45
+ },
46
+ };
47
+ }
48
+ }
49
+ exports.PubrioApi = PubrioApi;
50
+ //# sourceMappingURL=PubrioApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PubrioApi.credentials.js","sourceRoot":"","sources":["../../credentials/PubrioApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,SAAS;IAAtB;QACC,SAAI,GAAG,WAAW,CAAC;QAEnB,gBAAW,GAAG,YAAY,CAAC;QAE3B,qBAAgB,GAAG,uDAAuD,CAAC;QAE3E,SAAI,GAAG;YACN,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,iBAAiB;SACd,CAAC;QAEX,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,iDAAiD;aAC9D;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,kCAAkC;aAC/C;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,gBAAgB,EAAE,0BAA0B;iBAC5C;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,wBAAwB;gBACjC,GAAG,EAAE,OAAO;gBACZ,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAhDD,8BAgDC"}
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="3600" height="3600">
3
+ <path d="M0 0 C1188 0 2376 0 3600 0 C3600 1188 3600 2376 3600 3600 C2412 3600 1224 3600 0 3600 C0 2412 0 1224 0 0 Z " fill="#124EF5" transform="translate(0,0)"/>
4
+ <path d="M0 0 C198 0 396 0 600 0 C600 396 600 792 600 1200 C204 1200 -192 1200 -600 1200 C-600 1002 -600 804 -600 600 C-402 600 -204 600 0 600 C0 402 0 204 0 0 Z " fill="#FFFFFF" transform="translate(2175,1500)"/>
5
+ <path d="M0 0 C396 0 792 0 1200 0 C1200 198 1200 396 1200 600 C1002 600 804 600 600 600 C600 798 600 996 600 1200 C402 1200 204 1200 0 1200 C0 804 0 408 0 0 Z " fill="#FFFFFF" transform="translate(825,900)"/>
6
+ <path d="M0 0 C198 0 396 0 600 0 C600 198 600 396 600 600 C402 600 204 600 0 600 C0 402 0 204 0 0 Z " fill="#FFFFFF" transform="translate(750,2325)"/>
7
+ <path d="M0 0 C198 0 396 0 600 0 C600 198 600 396 600 600 C402 600 204 600 0 600 C0 402 0 204 0 0 Z " fill="#4FFFE0" transform="translate(2250,675)"/>
8
+ </svg>
@@ -0,0 +1,5 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class Pubrio implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Pubrio = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const company_1 = require("./resources/company");
6
+ const monitor_1 = require("./resources/monitor");
7
+ const people_1 = require("./resources/people");
8
+ const profile_1 = require("./resources/profile");
9
+ class Pubrio {
10
+ constructor() {
11
+ this.description = {
12
+ displayName: 'Pubrio',
13
+ name: 'pubrio',
14
+ icon: 'file:../../icons/pubrio.svg',
15
+ group: ['transform'],
16
+ version: 1,
17
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
18
+ description: 'Interact with Pubrio B2B data intelligence API',
19
+ defaults: {
20
+ name: 'Pubrio',
21
+ },
22
+ usableAsTool: true,
23
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
24
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
25
+ credentials: [
26
+ {
27
+ name: 'pubrioApi',
28
+ required: true,
29
+ },
30
+ ],
31
+ properties: [
32
+ {
33
+ displayName: 'Resource',
34
+ name: 'resource',
35
+ type: 'options',
36
+ noDataExpression: true,
37
+ options: [
38
+ {
39
+ name: 'Company',
40
+ value: 'company',
41
+ },
42
+ {
43
+ name: 'Monitor',
44
+ value: 'monitor',
45
+ },
46
+ {
47
+ name: 'Person',
48
+ value: 'people',
49
+ },
50
+ {
51
+ name: 'Profile',
52
+ value: 'profile',
53
+ },
54
+ ],
55
+ default: 'company',
56
+ },
57
+ ...profile_1.profileOperations,
58
+ ...profile_1.profileFields,
59
+ ...company_1.companyOperations,
60
+ ...company_1.companyFields,
61
+ ...people_1.peopleOperations,
62
+ ...people_1.peopleFields,
63
+ ...monitor_1.monitorOperations,
64
+ ...monitor_1.monitorFields,
65
+ ],
66
+ };
67
+ }
68
+ async execute() {
69
+ const items = this.getInputData();
70
+ const returnData = [];
71
+ const resource = this.getNodeParameter('resource', 0);
72
+ for (let i = 0; i < items.length; i++) {
73
+ try {
74
+ const operation = this.getNodeParameter('operation', i);
75
+ let responseData;
76
+ if (resource === 'profile') {
77
+ responseData = await profile_1.executeProfileOperation.call(this, operation, i);
78
+ }
79
+ else if (resource === 'company') {
80
+ responseData = await company_1.executeCompanyOperation.call(this, operation, i);
81
+ }
82
+ else if (resource === 'people') {
83
+ responseData = await people_1.executePeopleOperation.call(this, operation, i);
84
+ }
85
+ else if (resource === 'monitor') {
86
+ responseData = await monitor_1.executeMonitorOperation.call(this, operation, i);
87
+ }
88
+ else {
89
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {}, { message: `Unknown resource: ${resource}` });
90
+ }
91
+ const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
92
+ returnData.push(...executionData);
93
+ }
94
+ catch (error) {
95
+ if (this.continueOnFail()) {
96
+ returnData.push({
97
+ json: { error: error.message },
98
+ pairedItem: { item: i },
99
+ });
100
+ continue;
101
+ }
102
+ throw error;
103
+ }
104
+ }
105
+ return [returnData];
106
+ }
107
+ }
108
+ exports.Pubrio = Pubrio;
109
+ //# sourceMappingURL=Pubrio.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pubrio.node.js","sourceRoot":"","sources":["../../../nodes/Pubrio/Pubrio.node.ts"],"names":[],"mappings":";;;AAMA,+CAAiE;AAEjE,iDAAgG;AAChG,iDAAgG;AAChG,+CAA4F;AAC5F,iDAAgG;AAEhG,MAAa,MAAM;IAAnB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,QAAQ;YACrB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,6BAA6B;YACnC,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE;gBACT,IAAI,EAAE,QAAQ;aACd;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,WAAW;oBACjB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO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 "credentialDocumentation": [
8
+ {
9
+ "url": "https://docs.pubrio.com/en/api-reference/introduction"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://github.com/nicepubrio/n8n-nodes-pubrio"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const companyEnrichFields: INodeProperties[];
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.companyEnrichFields = void 0;
4
+ exports.companyEnrichFields = [
5
+ {
6
+ displayName: 'Lookup Type',
7
+ name: 'lookupType',
8
+ type: 'options',
9
+ required: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['company'],
13
+ operation: ['enrich'],
14
+ },
15
+ },
16
+ options: [
17
+ {
18
+ name: 'Domain',
19
+ value: 'domain',
20
+ description: 'Enrich by company domain',
21
+ },
22
+ {
23
+ name: 'Domain Search ID',
24
+ value: 'domainSearchId',
25
+ description: 'Enrich by Pubrio domain_search_id UUID',
26
+ },
27
+ {
28
+ name: 'LinkedIn URL',
29
+ value: 'linkedinUrl',
30
+ description: 'Enrich by LinkedIn company URL',
31
+ },
32
+ ],
33
+ default: 'domain',
34
+ description: 'How to identify the company to enrich',
35
+ },
36
+ {
37
+ displayName: 'Lookup Value',
38
+ name: 'lookupValue',
39
+ type: 'string',
40
+ required: true,
41
+ default: '',
42
+ displayOptions: {
43
+ show: {
44
+ resource: ['company'],
45
+ operation: ['enrich'],
46
+ },
47
+ },
48
+ description: 'The value to look up (domain, LinkedIn URL, or UUID). This operation consumes credits.',
49
+ },
50
+ ];
51
+ //# sourceMappingURL=enrich.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enrich.js","sourceRoot":"","sources":["../../../../../nodes/Pubrio/resources/company/enrich.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAsB;IACrD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,0BAA0B;aACvC;YACD;gBACC,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,wCAAwC;aACrD;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,gCAAgC;aAC7C;SACD;QACD,OAAO,EAAE,QAAQ;QACjB,WAAW,EAAE,uCAAuC;KACpD;IACD;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,WAAW,EACV,wFAAwF;KACzF;CACD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
+ export declare const companyOperations: INodeProperties[];
3
+ export declare const companyFields: INodeProperties[];
4
+ export declare function executeCompanyOperation(this: IExecuteFunctions, operation: string, itemIndex: number): Promise<IDataObject | IDataObject[]>;
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.companyFields = exports.companyOperations = void 0;
4
+ exports.executeCompanyOperation = executeCompanyOperation;
5
+ const transport_1 = require("../../shared/transport");
6
+ const enrich_1 = require("./enrich");
7
+ const linkedinLookup_1 = require("./linkedinLookup");
8
+ const lookup_1 = require("./lookup");
9
+ const search_1 = require("./search");
10
+ const LOOKUP_TYPE_MAP = {
11
+ domain: 'domain',
12
+ linkedinUrl: 'linkedin_url',
13
+ domainSearchId: 'domain_search_id',
14
+ };
15
+ exports.companyOperations = [
16
+ {
17
+ displayName: 'Operation',
18
+ name: 'operation',
19
+ type: 'options',
20
+ noDataExpression: true,
21
+ displayOptions: {
22
+ show: {
23
+ resource: ['company'],
24
+ },
25
+ },
26
+ options: [
27
+ {
28
+ name: 'Enrich',
29
+ value: 'enrich',
30
+ description: 'Get enriched company data by domain, LinkedIn URL, or ID',
31
+ action: 'Enrich a company',
32
+ },
33
+ {
34
+ name: 'LinkedIn Lookup',
35
+ value: 'linkedinLookup',
36
+ description: 'Real-time LinkedIn company lookup',
37
+ action: 'Look up a company on linked in in real time',
38
+ },
39
+ {
40
+ name: 'Lookup',
41
+ value: 'lookup',
42
+ description: 'Look up a company by domain, LinkedIn URL, or ID',
43
+ action: 'Look up a company',
44
+ },
45
+ {
46
+ name: 'Search',
47
+ value: 'search',
48
+ description: 'Search companies with filters',
49
+ action: 'Search companies',
50
+ },
51
+ ],
52
+ default: 'search',
53
+ },
54
+ ];
55
+ exports.companyFields = [
56
+ ...search_1.companySearchFields,
57
+ ...lookup_1.companyLookupFields,
58
+ ...enrich_1.companyEnrichFields,
59
+ ...linkedinLookup_1.companyLinkedinLookupFields,
60
+ ];
61
+ function buildSearchBody(context, itemIndex) {
62
+ const body = {};
63
+ const filters = context.getNodeParameter('filters', itemIndex, {});
64
+ if (filters.company_name)
65
+ body.company_name = filters.company_name;
66
+ if (filters.domains) {
67
+ body.domains = filters.domains.split(',').map((d) => d.trim());
68
+ }
69
+ if (filters.linkedin_urls) {
70
+ body.linkedin_urls = filters.linkedin_urls.split(',').map((u) => u.trim());
71
+ }
72
+ if (filters.locations) {
73
+ body.locations = filters.locations.split(',').map((l) => l.trim());
74
+ }
75
+ if (filters.exclude_locations) {
76
+ body.exclude_locations = filters.exclude_locations.split(',').map((l) => l.trim());
77
+ }
78
+ if (filters.employees) {
79
+ const parts = filters.employees.split(',').map(Number);
80
+ body.employees = [parts];
81
+ }
82
+ if (filters.revenue_min || filters.revenue_max) {
83
+ body.revenues = [filters.revenue_min || 0, filters.revenue_max || 999999999999];
84
+ }
85
+ if (filters.founded_year_start || filters.founded_year_end) {
86
+ body.founded_dates = [filters.founded_year_start || 1900, filters.founded_year_end || 2100];
87
+ }
88
+ if (filters.keywords) {
89
+ body.keywords = filters.keywords.split(',').map((k) => k.trim());
90
+ }
91
+ if (filters.job_titles) {
92
+ body.job_titles = filters.job_titles.split(',').map((t) => t.trim());
93
+ }
94
+ return body;
95
+ }
96
+ async function executeCompanyOperation(operation, itemIndex) {
97
+ if (operation === 'search') {
98
+ const returnAll = this.getNodeParameter('returnAll', itemIndex);
99
+ const body = buildSearchBody(this, itemIndex);
100
+ if (returnAll) {
101
+ return await transport_1.pubrioApiRequestAllItems.call(this, 'POST', '/companies/search', body);
102
+ }
103
+ const limit = this.getNodeParameter('limit', itemIndex);
104
+ body.per_page = limit;
105
+ body.page = 1;
106
+ return await transport_1.pubrioApiRequest.call(this, 'POST', '/companies/search', body);
107
+ }
108
+ if (operation === 'lookup') {
109
+ const lookupType = this.getNodeParameter('lookupType', itemIndex);
110
+ const lookupValue = this.getNodeParameter('lookupValue', itemIndex);
111
+ const bodyKey = LOOKUP_TYPE_MAP[lookupType];
112
+ return await transport_1.pubrioApiRequest.call(this, 'POST', '/companies/lookup', {
113
+ [bodyKey]: lookupValue,
114
+ });
115
+ }
116
+ if (operation === 'enrich') {
117
+ const lookupType = this.getNodeParameter('lookupType', itemIndex);
118
+ const lookupValue = this.getNodeParameter('lookupValue', itemIndex);
119
+ const bodyKey = LOOKUP_TYPE_MAP[lookupType];
120
+ return await transport_1.pubrioApiRequest.call(this, 'POST', '/companies/lookup/enrich', {
121
+ [bodyKey]: lookupValue,
122
+ });
123
+ }
124
+ if (operation === 'linkedinLookup') {
125
+ const linkedinUrl = this.getNodeParameter('linkedinUrl', itemIndex);
126
+ return await transport_1.pubrioApiRequest.call(this, 'POST', '/companies/linkedin/lookup', {
127
+ linkedin_url: linkedinUrl,
128
+ });
129
+ }
130
+ throw new Error(`Unknown company operation: ${operation}`);
131
+ }
132
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Pubrio/resources/company/index.ts"],"names":[],"mappings":";;;AA4GA,0DA6CC;AAvJD,sDAAoF;AACpF,qCAA+C;AAC/C,qDAA+D;AAC/D,qCAA+C;AAC/C,qCAA+C;AAE/C,MAAM,eAAe,GAA2B;IAC/C,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,kBAAkB;CAClC,CAAC;AAEW,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,0DAA0D;gBACvE,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,mCAAmC;gBAChD,MAAM,EAAE,6CAA6C;aACrD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kDAAkD;gBAC/D,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,+BAA+B;gBAC5C,MAAM,EAAE,kBAAkB;aAC1B;SACD;QACD,OAAO,EAAE,Q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,CAAC,CAAC;QAC5C,OAAO,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,0BAA0B,EAAE;YAC5E,CAAC,OAAO,CAAC,EAAE,WAAW;SACtB,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,SAAS,KAAK,gBAAgB,EAAE,CAAC;QACpC,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,SAAS,CAAW,CAAC;QAC9E,OAAO,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,4BAA4B,EAAE;YAC9E,YAAY,EAAE,WAAW;SACzB,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,8BAA8B,SAAS,EAAE,CAAC,CAAC;AAC5D,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const companyLinkedinLookupFields: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.companyLinkedinLookupFields = void 0;
4
+ exports.companyLinkedinLookupFields = [
5
+ {
6
+ displayName: 'LinkedIn URL',
7
+ name: 'linkedinUrl',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['company'],
14
+ operation: ['linkedinLookup'],
15
+ },
16
+ },
17
+ description: 'The LinkedIn company URL for real-time lookup. This operation may consume additional credits.',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=linkedinLookup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedinLookup.js","sourceRoot":"","sources":["../../../../../nodes/Pubrio/resources/company/linkedinLookup.ts"],"names":[],"mappings":";;;AAEa,QAAA,2BAA2B,GAAsB;IAC7D;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC7B;SACD;QACD,WAAW,EACV,+FAA+F;KAChG;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const companyLookupFields: INodeProperties[];
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.companyLookupFields = void 0;
4
+ exports.companyLookupFields = [
5
+ {
6
+ displayName: 'Lookup Type',
7
+ name: 'lookupType',
8
+ type: 'options',
9
+ required: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['company'],
13
+ operation: ['lookup'],
14
+ },
15
+ },
16
+ options: [
17
+ {
18
+ name: 'Domain',
19
+ value: 'domain',
20
+ description: 'Look up by company domain',
21
+ },
22
+ {
23
+ name: 'Domain Search ID',
24
+ value: 'domainSearchId',
25
+ description: 'Look up by Pubrio domain_search_id UUID',
26
+ },
27
+ {
28
+ name: 'LinkedIn URL',
29
+ value: 'linkedinUrl',
30
+ description: 'Look up by LinkedIn company URL',
31
+ },
32
+ ],
33
+ default: 'domain',
34
+ description: 'How to identify the company',
35
+ },
36
+ {
37
+ displayName: 'Lookup Value',
38
+ name: 'lookupValue',
39
+ type: 'string',
40
+ required: true,
41
+ default: '',
42
+ displayOptions: {
43
+ show: {
44
+ resource: ['company'],
45
+ operation: ['lookup'],
46
+ },
47
+ },
48
+ description: 'The value to look up (domain, LinkedIn URL, or UUID)',
49
+ },
50
+ ];
51
+ //# sourceMappingURL=lookup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookup.js","sourceRoot":"","sources":["../../../../../nodes/Pubrio/resources/company/lookup.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAsB;IACrD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,2BAA2B;aACxC;YACD;gBACC,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,yCAAyC;aACtD;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,iCAAiC;aAC9C;SACD;QACD,OAAO,EAAE,QAAQ;QACjB,WAAW,EAAE,6BAA6B;KAC1C;IACD;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,WAAW,EAAE,sDAAsD;KACnE;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const companySearchFields: INodeProperties[];